|
1 | | -from distutils.core import setup |
| 1 | +try: |
| 2 | + from setuptools import setup |
| 3 | +except ImportError: |
| 4 | + from distutils.core import setup |
| 5 | + |
| 6 | +from dendrogram_ts import __version__ |
| 7 | + |
2 | 8 |
|
3 | 9 | with open('README.rst') as readme_file: |
4 | 10 | readme = readme_file.read() |
5 | 11 |
|
6 | 12 | setup( |
7 | 13 | name = 'dendrogram_ts', |
8 | 14 | packages = ['dendrogram_ts'], |
9 | | - version = '0.1.0-beta.7', |
10 | | - license='MIT', |
| 15 | + version = __version__, |
| 16 | + license = 'MIT', |
11 | 17 | description = "Plotting time-series graphs in scipy's dendrogram", |
12 | 18 | long_description = readme, |
| 19 | + long_description_content_type = 'text/x-rst', |
13 | 20 | author = 'Jake Teo', |
14 | 21 | author_email = 'mapattacker@gmail.com', |
15 | 22 | url = 'https://github.com/mapattacker/dendrogram-ts', |
16 | | - download_url = 'https://github.com/mapattacker/dendrogram-ts/archive/refs/tags/v0.1.0-beta.7.tar.gz', |
| 23 | + download_url = 'https://github.com/mapattacker/dendrogram-ts/archive/refs/tags/v' + __version__ + '.tar.gz', |
17 | 24 | keywords = ['dendrogram', 'agglomerative clustering', 'timeseries'], |
18 | 25 | install_requires=[ |
19 | | - 'pandas==1.2.*', |
20 | | - 'numpy==1.20.*', |
21 | | - 'matplotlib==3.4.*', |
22 | | - 'scipy==1.6.*', |
| 26 | + 'pandas', |
| 27 | + 'numpy', |
| 28 | + 'matplotlib', |
| 29 | + 'scipy', |
23 | 30 | ], |
24 | 31 | classifiers=[ |
25 | 32 | 'Development Status :: 4 - Beta', # Chose either "3 - Alpha", "4 - Beta" or "5 - Production/Stable" as the current state of your package |
26 | 33 | 'Intended Audience :: Developers', |
27 | 34 | 'Topic :: Software Development :: Build Tools', |
28 | 35 | 'License :: OSI Approved :: MIT License', |
29 | 36 | 'Programming Language :: Python :: 3.6', |
30 | | - 'Programming Language :: Python :: 3.6', |
31 | 37 | 'Programming Language :: Python :: 3.7', |
32 | 38 | 'Programming Language :: Python :: 3.8' |
33 | 39 | ], |
|
0 commit comments