Skip to content

Commit

Permalink
Simplify dependency handling in setup.py
Browse files Browse the repository at this point in the history
Removed the parse_requirements function and directly listed all dependencies within the setup.py file. This change improves setup script readability and eliminates the need to parse an external requirements file.
dadelforge committed Nov 28, 2024
1 parent fe4bf51 commit 3f0b17e
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
from setuptools import setup, find_packages

def parse_requirements(filename):
""" load requirements from a pip requirements file """
with open(filename, 'r') as f:
lines = f.readlines()
return [line.strip() for line in lines if
line.strip() and not line.startswith('#')]

setup(
name='ssalib',
version='0.1.0b1',
@@ -21,7 +14,15 @@ def parse_requirements(filename):
description='Singular Spectrum Analysis Library (SSALib)',
long_description=open('README.md').read(),
long_description_content_type='text/markdown',
install_requires=parse_requirements('requirements.txt'),
install_requires=[
'joblib',
'numpy',
'matplotlib',
'pandas',
'scipy',
'scikit-learn',
'statsmodels'
],
extras_require={
'test': [
'pytest',
@@ -48,4 +49,4 @@ def parse_requirements(filename):
'Topic :: Scientific/Engineering',
],
keywords='singular spectrum analysis, time series, decomposition',
)
)

0 comments on commit 3f0b17e

Please sign in to comment.