-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
51 lines (42 loc) · 1.48 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
#!/usr/bin/env python
import os
import re
from setuptools import setup
PACKAGE_NAME = "sscred"
INSTALL_REQUIRES = [
"petlib @ git+https://github.com/spring-epfl/petlib.git",
"attrs",
"zksk"
]
SETUP_REQUIRES = ["pytest-runner"]
TEST_REQUIRES = ["pytest"]
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, "README.md")) as f:
long_description = f.read()
with open(os.path.join(here, PACKAGE_NAME, "__init__.py")) as f:
matches = re.findall(r"(__.+__) = \"(.*)\"", f.read())
for var_name, var_value in matches:
globals()[var_name] = var_value
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, 'README.md'), encoding='utf-8') as f:
globals()['long_description'] = f.read()
setup(
packages=[PACKAGE_NAME],
install_requires=INSTALL_REQUIRES,
setup_requires=SETUP_REQUIRES,
tests_require=TEST_REQUIRES,
extras_require={"test": TEST_REQUIRES},
classifiers=[
"Intended Audience :: Developers",
"Natural Language :: English",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Security :: Cryptography",
"License :: OSI Approved :: BSD License",
],
)