Skip to content

Commit 7b61723

Browse files
committed
Minor simplification in setup.py
1 parent 9957103 commit 7b61723

File tree

1 file changed

+12
-15
lines changed

1 file changed

+12
-15
lines changed

setup.py

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,12 @@
1+
from pathlib import Path
12
from setuptools import setup
23

3-
with open('README.rst') as rdm:
4-
README = rdm.read()
5-
6-
DEPENDENCIES = [
7-
'loam>=0.3.1',
8-
'f90nml>=1.3.1',
9-
'setuptools_scm>=6.2',
10-
'numpy>=1.19',
11-
'scipy>=1.5',
12-
'pandas>=1.1',
13-
'h5py>=3.1',
14-
'matplotlib>=3.3',
15-
]
164

175
setup(
186
name='stagpy',
197

208
description='Tool for StagYY output files processing',
21-
long_description=README,
9+
long_description=Path("README.rst").read_text(),
2210

2311
url='https://github.com/StagPython/StagPy',
2412

@@ -43,5 +31,14 @@
4331
'console_scripts': ['stagpy = stagpy.__main__:main']
4432
},
4533
include_package_data=True,
46-
install_requires=DEPENDENCIES,
34+
install_requires=[
35+
'loam>=0.3.1',
36+
'f90nml>=1.3.1',
37+
'setuptools_scm>=6.2',
38+
'numpy>=1.19',
39+
'scipy>=1.5',
40+
'pandas>=1.1',
41+
'h5py>=3.1',
42+
'matplotlib>=3.3',
43+
],
4744
)

0 commit comments

Comments
 (0)