forked from data61/clkhash
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
75 lines (72 loc) · 2.84 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
from setuptools import setup, find_packages
import sys
if sys.version_info[0] < 3:
import codecs
requirements = [
"bashplotlib>=0.6.5",
"bitarray-hardbyte>=1.0.0", # Fork of bitarray distributing binary wheels #153
"click>=6.7",
"cryptography>=2.3",
"enum34==1.1.6; python_version < '3.4'",
"future>=0.16",
"futures>=3.1; python_version < '3.2'", # Backport from Py3.2
"jsonschema>=3.0.2",
"mypy_extensions>=0.3",
"pyblake2>=1.1.1; python_version < '3.6'",
"requests>=2.20",
"retrying>=1.3",
"tqdm>=4.24",
"typing>=3.6; python_version < '3.5'" # Backport from Py3.5
]
if sys.version_info[0] < 3:
# Python 2.7 does not accept the parameter `encoding` to open a file
with codecs.open('README.md', 'r', 'utf-8') as f:
readme = f.read()
else:
# But on Windows, something wrong happens when creating the package
# and using codecs.open. related issues are https://github.com/di/markdown-description-example/issues/4
# But this is not exactly the same either...
with open('README.md', 'r', encoding='utf-8') as f:
readme = f.read()
setup(
name="clkhash",
version='0.15.1',
description='Encoding utility to create Cryptographic Linkage Keys',
long_description=readme,
long_description_content_type='text/markdown',
url='https://github.com/data61/clkhash',
license='Apache',
install_requires=requirements,
setup_requires=['pytest-runner'],
tests_require=['pytest', 'pytest-cov', 'requests-mock', 'codecov', 'nbval', 'hypothesis'],
packages=find_packages(exclude=['tests']),
package_data={'clkhash': ['data/*.csv', 'data/*.json', 'schemas/*.json']},
project_urls={
'Documentation': 'http://clkhash.readthedocs.io/',
'Source': 'https://github.com/data61/clkhash',
'Tracker': 'https://github.com/data61/clkhash/issues',
},
entry_points={
'console_scripts': [
'clkutil = clkhash.cli:cli'
],
},
classifiers=[
"Development Status :: 5 - Production/Stable",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Topic :: Security :: Cryptography",
"Environment :: Console",
"Operating System :: OS Independent",
"Natural Language :: English",
],
)