Skip to content

Commit

Permalink
move requirements to setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
thurber committed Jun 4, 2021
1 parent 073b6d2 commit 5648cb1
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 26 deletions.
18 changes: 1 addition & 17 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,17 +1 @@
bmipy==2.0
dask[complete]==2021.5.1
matplotlib==3.4.2
nc-time-axis==1.2.0
netCDF4==1.5.6
numexpr==2.7.3
numpy==1.20.3
pandas==1.2.4
pathvalidate==2.3.0
psutil==5.8.0
pyarrow==4.0.1
python-benedict==0.24.0
regex==2021.4.4
requests==2.25.1
rioxarray==0.4.2
tqdm==4.60.0
xarray==0.18.2
.[dev]
37 changes: 28 additions & 9 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,9 @@ def readme():
return f.read()


def get_requirements():
"""Return a list of package requirements from the requirements.txt file."""
with open('requirements.txt') as f:
return f.read().split()


setup(
name='mosartwmpy',
version='0.0.5',
version='0.0.6',
packages=find_packages(),
url='https://github.com/IMMM-SFA/mosartwmpy',
license='BSD2-Simplified',
Expand All @@ -26,8 +20,33 @@ def get_requirements():
long_description_content_type="text/markdown",
python_requires='>=3.7.*, <4',
include_package_data=True,
install_requires=get_requirements(),
install_requires=[
'bmipy==2.0',
'dask[complete]==2021.5.1',
'matplotlib==3.4.2',
'nc-time-axis==1.2.0',
'netCDF4==1.5.6',
'numexpr==2.7.3',
'numpy==1.20.3',
'pandas==1.2.4',
'pathvalidate==2.3.0',
'psutil==5.8.0',
'pyarrow==4.0.1',
'python-benedict==0.24.0',
'regex==2021.4.4',
'requests==2.25.1',
'rioxarray==0.4.2',
'tqdm==4.60.0',
'xarray==0.18.2'
],
extras_require={
'dev': ['build==0.4.0', 'recommonmark==0.7.1', 'setuptools==54.1.2', 'sphinx==3.5.2', 'sphinx-rtd-theme==0.5.1', 'twine==3.4.1']
'dev': [
'build==0.4.0',
'recommonmark==0.7.1',
'setuptools==54.1.2',
'sphinx==3.5.2',
'sphinx-rtd-theme==0.5.1',
'twine==3.4.1'
]
}
)

0 comments on commit 5648cb1

Please sign in to comment.