Skip to content

Commit 0b91d9c

Browse files
committed
update setup
1 parent 7c5b4c2 commit 0b91d9c

File tree

2 files changed

+31
-30
lines changed

2 files changed

+31
-30
lines changed

requirements.txt

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
numpy>=1.16
2+
scipy
3+
future

setup.py

+28-30
Original file line numberDiff line numberDiff line change
@@ -1,66 +1,64 @@
1-
# -*- coding: utf-8 -*-
2-
# Copyright (C) 2018 Thibault Hallouin
1+
# Copyright (C) 2018-2022 Thibault Hallouin
32
from setuptools import setup
43

54

6-
with open("README.md", "r") as fh:
5+
with open("README.rst", "r") as fh:
76
long_desc = fh.read()
87

98
with open('smartpy/version.py') as fv:
109
exec(fv.read())
1110

12-
setup(
13-
name='smartpy',
1411

15-
version=__version__,
12+
def requirements(filename):
13+
requires = []
14+
with open(filename, 'r') as fr:
15+
for line in fr:
16+
package = line.strip()
17+
if package:
18+
requires.append(package)
1619

17-
description='SMARTpy: an open-source rainfall-runoff model in Python',
18-
long_description=long_desc,
19-
long_description_content_type="text/markdown",
20+
return requires
2021

21-
url='https://github.com/ThibHlln/smartpy',
2222

23+
setup(
24+
name='smartpy',
25+
version=__version__,
26+
description='An implementation of the rainfall-runoff model SMART in Python',
27+
long_description=long_desc,
28+
long_description_content_type="text/x-rst",
29+
download_url="https://pypi.python.org/pypi/smartpy",
30+
project_urls={
31+
'Bug Tracker': 'https://github.com/thibhlln/smartpy/issues',
32+
'User Support': 'https://github.com/thibhlln/smartpy/discussions',
33+
'Documentation': 'https://thibhlln.github.io/smartpy',
34+
'Source Code': 'https://github.com/thibhlln/smartpy',
35+
},
2336
author='Thibault Hallouin, Eva Mockler, and Michael Bruen',
24-
author_email='thibault.hallouin@ucdconnect.ie',
25-
26-
license='GPLv3',
27-
37+
author_email='thibhlln@gmail.com',
38+
license='GPL-3.0',
2839
classifiers=[
2940
'Development Status :: 4 - Beta',
30-
3141
'Natural Language :: English',
32-
3342
'Intended Audience :: Science/Research',
3443
'Intended Audience :: Developers',
3544
'Topic :: Scientific/Engineering :: Hydrology',
36-
3745
'Operating System :: MacOS',
3846
'Operating System :: Microsoft :: Windows',
3947
'Operating System :: POSIX :: Linux',
40-
41-
4248
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
43-
4449
'Programming Language :: Python :: 2',
4550
'Programming Language :: Python :: 2.7',
4651
'Programming Language :: Python :: 3',
4752
'Programming Language :: Python :: 3.5',
4853
'Programming Language :: Python :: 3.6',
4954
'Programming Language :: Python :: Implementation :: CPython'
5055
],
51-
5256
packages=['smartpy', 'smartpy.montecarlo', 'examples'],
53-
54-
install_requires=[
55-
'numpy>=1.16',
56-
'scipy',
57-
'future'
58-
],
59-
57+
install_requires=requirements('requirements.txt'),
6058
extras_require={
6159
'with_netcdf': ['netCDF4'],
62-
'with_spotpy': ['spotpy>=1.3.27'],
60+
'with_spotpy': ['spotpy>=1.5.14'],
6361
'with_smartcpp': ['smartcpp'],
64-
'with_all_extras': ['netCDF4', 'spotpy', 'smartcpp']
62+
'with_all_extras': ['netCDF4', 'spotpy>=1.5.14', 'smartcpp']
6563
}
6664
)

0 commit comments

Comments
 (0)