Skip to content

Commit 55b4070

Browse files
authored
update to setup.py to use requirements.txt (#63)
1 parent 63b7f2a commit 55b4070

1 file changed

Lines changed: 12 additions & 8 deletions

File tree

setup.py

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,16 @@
1313
DESCRIPTION = 'A package for solving partial differential equations'
1414

1515
# Import the README and use it as the long-description.
16-
# Note: this will only work if 'README.md' is present in your MANIFEST.in file!
1716
try:
1817
with io.open(os.path.join(here, 'README.md'), encoding='utf-8') as f:
1918
LONG_DESCRIPTION = '\n' + f.read()
2019
except FileNotFoundError:
2120
long_description = DESCRIPTION
2221

22+
# Read requirements from requirements.txt
23+
with open('requirements.txt') as f:
24+
requirements = [line.strip() for line in f if line.strip() and not line.startswith('#')]
25+
2326
setup(
2427
name=NAME,
2528
version='0.1',
@@ -29,12 +32,13 @@
2932
author='Chelsea De Marseilla, Debdal Chowdhury',
3033
license='Apache License 2.0',
3134
packages=find_packages(),
32-
install_requires=[
33-
'matplotlib==3.9.2',
34-
'numpy==2.1.3',
35-
'scipy==1.14.1',
36-
'pandas==2.2.3',
37-
'pytest==8.3.4'
38-
],
35+
install_requires=requirements,
36+
extras_require={
37+
'package-tools': [
38+
'setuptools',
39+
'wheel',
40+
'twine'
41+
]
42+
},
3943
url='https://github.com/GPUEngineering/PDESolvers',
4044
)

0 commit comments

Comments
 (0)