|
| 1 | +import io |
| 2 | +import os |
1 | 3 | from setuptools import setup, find_packages
|
2 | 4 |
|
| 5 | +# Package meta-data. |
| 6 | +NAME = 'gglasso' |
| 7 | +DESCRIPTION = 'Algorithms for Single and Multiple Graphical Lasso problems.' |
| 8 | +URL = 'https://github.com/fabian-sp/GGLasso' |
| 9 | + |
| 10 | +AUTHOR = 'Fabian Schaipp' |
| 11 | +REQUIRES_PYTHON = '>=3.7.0' |
| 12 | +VERSION = "0.1.0" |
3 | 13 |
|
4 |
| -with open("README.md", "r") as fh: |
5 |
| - long_description = fh.read() |
| 14 | +# What packages are required for this module to be executed? |
| 15 | +REQUIRED = [ |
| 16 | + "numpy>=1.17.3", "scipy>=0.11.0", "numba>=0.46.0", "pandas", |
| 17 | + "matplotlib", "seaborn", "networkx", "regain", "warnings", "decorator==4.4.2"] |
6 | 18 |
|
| 19 | +# What packages are optional? |
| 20 | +EXTRAS = {} |
7 | 21 |
|
| 22 | +here = os.path.abspath(os.path.dirname(__file__)) |
| 23 | + |
| 24 | +# Import the README and use it as the long-description. |
| 25 | +# Note: this will only work if 'README.md' is present in your MANIFEST.in file! |
| 26 | +try: |
| 27 | + with io.open(os.path.join(here, 'README.md'), encoding='utf-8') as f: |
| 28 | + long_description = '\n' + f.read() |
| 29 | +except FileNotFoundError: |
| 30 | + long_description = DESCRIPTION |
| 31 | + |
| 32 | + |
| 33 | +CLASSIFIERS = """\ |
| 34 | +Development Status :: 5 - Production/Stable |
| 35 | +Intended Audience :: Science/Research |
| 36 | +Intended Audience :: Developers |
| 37 | +License :: OSI Approved |
| 38 | +Programming Language :: Python |
| 39 | +Programming Language :: Python :: 3 |
| 40 | +Topic :: Software Development |
| 41 | +Operating System :: Unix |
| 42 | +""" |
| 43 | + |
| 44 | + |
| 45 | +# Where the magic happens: |
8 | 46 | setup(
|
9 |
| - name="gglasso", |
10 |
| - author="Fabian Schaipp", |
11 |
| - author_email= "[email protected]", |
| 47 | + name=NAME, |
| 48 | + version=VERSION, |
| 49 | + description=DESCRIPTION, |
12 | 50 | long_description=long_description,
|
13 |
| - long_description_content_type="text/markdown", |
14 |
| - packages=find_packages() |
| 51 | + long_description_content_type='text/markdown', |
| 52 | + author=AUTHOR, |
| 53 | + author_email=EMAIL, |
| 54 | + python_requires=REQUIRES_PYTHON, |
| 55 | + url=URL, |
| 56 | + packages=["gglasso"], |
| 57 | + install_requires=REQUIRED, |
| 58 | + extras_require=EXTRAS, |
| 59 | + include_package_data=True, |
| 60 | + license='MIT', |
| 61 | + keywords=[ |
| 62 | + "network inference", |
| 63 | + "graphcial models", |
| 64 | + "graphical lasso", |
| 65 | + "optimization" |
| 66 | + ], |
| 67 | + classifiers=[_f for _f in CLASSIFIERS.split("\n") if _f] |
15 | 68 | )
|
0 commit comments