Skip to content

Commit

Permalink
Additional Requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
RogerMoens committed Jan 29, 2024
1 parent ee9c93a commit b3a7342
Show file tree
Hide file tree
Showing 3 changed files with 75 additions and 0 deletions.
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pre-commit
19 changes: 19 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[flake8]
# References:
# https://flake8.readthedocs.io/en/latest/user/configuration.html
# https://flake8.readthedocs.io/en/latest/user/error-codes.html
# https://pycodestyle.pycqa.org/en/latest/intro.html#error-codes
exclude = __init__.py,versioneer.py
ignore =
E20, # Extra space in brackets
E231,E241, # Multiple spaces around ","
E26, # Comments
E4, # Import formatting
E721, # Comparing types instead of isinstance
E731, # Assigning lambda expression
E741, # Ambiguous variable names
W503, # line break before binary operator
W504, # line break after binary operator
F811, # redefinition of unused 'loop' from line 10
F401, # It gives some errors to importing Figure
max-line-length = 120
55 changes: 55 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
import setuptools

with open("README.md") as fh:
long_description = fh.read()

install_requires = [
"numpy >= 1.19.4",
"scipy >= 1.5.4",
"scikit-learn",
"scikit-image",
"fbpca >= 1.0",
"joblib",
"h5py",
"astropy",
"hdfdict",
"matplotlib",
]

# extras_require["complete"] = sorted({v for req in extras_require.values() for v in req})

packages = [
"hannibal_specter",
"hannibal_specter.decomposition",
"hannibal_specter.data",
"hannibal_specter.fake",
"hannibal_specter.file",
"hannibal_specter.gridsearch",
"hannibal_specter.template",
"hannibal_specter.preprocess",
"hannibal_specter.plot",
"hannibal_specter.quality",
"hannibal_specter.varia",
"hannibal_specter.math",
]

tests = [p + ".tests" for p in packages]

setuptools.setup(
name="hannibal-specter",
version="0.0.1",
author="R.A.R. MOENS",
author_email="[email protected]",
description="A small package for robust matrix decomposition.",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/RogerMoens/hannibal-specter",
packages=packages + tests,
install_requires=install_requires,
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
python_requires=">=3.6",
)

0 comments on commit b3a7342

Please sign in to comment.