|
1
|
|
|
import os |
|
2
|
|
|
import re |
|
3
|
|
|
|
|
4
|
|
|
from setuptools import setup |
|
5
|
|
|
from setuptools import find_packages |
|
6
|
|
|
|
|
7
|
|
|
with open("README.md", "r") as fh: |
|
8
|
|
|
long_description = fh.read() |
|
9
|
|
|
|
|
10
|
|
|
requires = ["numpy", "pandas", "tqdm", "dill"] |
|
11
|
|
|
|
|
12
|
|
|
|
|
13
|
|
|
def find_version(*filepath): |
|
14
|
|
|
here = os.path.abspath(os.path.dirname(__file__)) |
|
15
|
|
|
with open(os.path.join(here, *filepath)) as fp: |
|
16
|
|
|
version_match = re.search( |
|
17
|
|
|
r"^__version__ = ['\"]([^'\"]*)['\"]", fp.read(), re.M |
|
18
|
|
|
) |
|
19
|
|
|
if version_match: |
|
20
|
|
|
return version_match.group(1) |
|
21
|
|
|
raise RuntimeError("Unable to find version string.") |
|
22
|
|
|
|
|
23
|
|
|
|
|
24
|
|
|
setup( |
|
25
|
|
|
name="optimization_metadata", |
|
26
|
|
|
version=find_version("optimization_metadata/__init__.py"), |
|
27
|
|
|
author="Simon Blanke", |
|
28
|
|
|
author_email="[email protected]", |
|
29
|
|
|
license="MIT", |
|
30
|
|
|
description="Meta-data core functionalities for Hyperactive", |
|
31
|
|
|
long_description=long_description, |
|
32
|
|
|
long_description_content_type="text/markdown", |
|
33
|
|
|
keywords=["visualization", "data-science"], |
|
34
|
|
|
url="https://github.com/SimonBlanke/Optimization-Metadata", |
|
35
|
|
|
packages=find_packages(), |
|
36
|
|
|
classifiers=[ |
|
37
|
|
|
"Programming Language :: Python :: 3", |
|
38
|
|
|
"Programming Language :: Python :: 3.5", |
|
39
|
|
|
"Programming Language :: Python :: 3.6", |
|
40
|
|
|
"Programming Language :: Python :: 3.7", |
|
41
|
|
|
"License :: OSI Approved :: MIT License", |
|
42
|
|
|
"Operating System :: OS Independent", |
|
43
|
|
|
"Topic :: Scientific/Engineering :: Information Analysis", |
|
44
|
|
|
"Topic :: Scientific/Engineering :: Mathematics", |
|
45
|
|
|
"Topic :: Software Development :: Libraries :: Python Modules", |
|
46
|
|
|
"Intended Audience :: Developers", |
|
47
|
|
|
"Intended Audience :: Information Technology", |
|
48
|
|
|
"Intended Audience :: Science/Research", |
|
49
|
|
|
], |
|
50
|
|
|
install_requires=requires, |
|
51
|
|
|
) |
|
52
|
|
|
|