Skip to content

Commit

Permalink
Merge pull request #23 from michaelosthege/fix-install-requirements
Browse files Browse the repository at this point in the history
fix installation of requirements via setup.py
  • Loading branch information
michaelosthege authored Jun 1, 2020
2 parents 1bb5b67 + de83dbe commit c238cdc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pyrff/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
from . thompson import sample_batch, get_probabilities
from . utils import multi_start_fmin

__version__ = '1.0.0'
__version__ = '1.0.1'
7 changes: 4 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
import setuptools

__packagename__ = 'pyrff'
ROOT = pathlib.Path(__file__).parent


def get_version():
VERSIONFILE = pathlib.Path(pathlib.Path(__file__).parent, __packagename__, '__init__.py')
VERSIONFILE = pathlib.Path(ROOT, __packagename__, '__init__.py')
initfile_lines = open(VERSIONFILE, 'rt').readlines()
VSRE = r"^__version__ = ['\"]([^'\"]*)['\"]"
for line in initfile_lines:
Expand All @@ -25,7 +26,7 @@ def get_version():
version=__version__,
description='Implementation of random fourier feature (RFF) approximations and Thompson sampling.',
license='AGPLv3',
long_description=open('README.md').read(),
long_description=open(pathlib.Path(ROOT, 'README.md')).read(),
long_description_content_type='text/markdown',
url='https://github.com/michaelosthege/pyrff',
author='Michael Osthege',
Expand All @@ -38,7 +39,7 @@ def get_version():
'Topic :: Scientific/Engineering :: Mathematics'
],
install_requires=[
# via requirements.txt
open(pathlib.Path(ROOT, 'requirements.txt')).readlines()
],
python_requires='>=3.6'
)

0 comments on commit c238cdc

Please sign in to comment.