Skip to content

Commit 0355567

Browse files
committed
update setup file
1 parent 2c50056 commit 0355567

File tree

3 files changed

+62
-9
lines changed

3 files changed

+62
-9
lines changed

LICENSE.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2021 Fabian-Schaipp
3+
Copyright (c) 2019-2021 Fabian-Schaipp
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ seaborn
77
networkx
88
regain
99
warnings
10-
decorator=4.4.2
10+
decorator==4.4.2

setup.py

+60-7
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,68 @@
1+
import io
2+
import os
13
from setuptools import setup, find_packages
24

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"
313

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"]
618

19+
# What packages are optional?
20+
EXTRAS = {}
721

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:
846
setup(
9-
name="gglasso",
10-
author="Fabian Schaipp",
11-
author_email= "[email protected]",
47+
name=NAME,
48+
version=VERSION,
49+
description=DESCRIPTION,
1250
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]
1568
)

0 commit comments

Comments
 (0)