-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
50 lines (44 loc) · 1.61 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/usr/bin/env python
import os
import setuptools
from distutils.core import setup
def extract_version():
init_py = os.path.join(os.path.dirname(__file__), "phuzzy", "__init__.py")
version = "0.0.0"
with open(init_py) as init:
for line in init:
if line.startswith("__version__"):
version = line.split("=")[-1].strip().replace('"', '')
print("version", version)
return {"__version__": version}
if version == "0.0.0":
raise RuntimeError("Missing line starting with '__version__ =' in %s" % (init_py,))
DOWNLOAD_URL = 'https://github.com/lepy/phuzzy'
CLASSIFIERS = [
'Development Status :: 3 - Alpha',
'Environment :: Console',
'Operating System :: OS Independent',
'Intended Audience :: Science/Research',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Topic :: Scientific/Engineering']
with open(os.path.join('usage.rst')) as f:
long_description = ''.join(f)
setup(name="phuzzy",
description=("fuzzy data"),
version=extract_version()["__version__"],
author="Lepy",
author_email="[email protected]",
url="https://github.com/lepy/phuzzy",
packages=setuptools.find_packages(exclude=["tests"]),
tests_require=[
'pytest',
],
long_description=long_description,
classifiers=CLASSIFIERS,
install_requires=['numpy', 'pandas', 'scipy'],
)