forked from tlsfuzzer/python-ecdsa
-
Notifications
You must be signed in to change notification settings - Fork 5
/
setup.py
executable file
·54 lines (50 loc) · 1.74 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
#!/usr/bin/env python
import os, subprocess, re
from distutils.core import setup, Command
from distutils.command.sdist import sdist as _sdist
from ecdsa.six import print_
import versioneer
versioneer.versionfile_source = "ecdsa/_version.py"
versioneer.versionfile_build = versioneer.versionfile_source
versioneer.tag_prefix = "python-ecdsa-"
versioneer.parentdir_prefix = "ecdsa-"
commands = versioneer.get_cmdclass().copy()
class Test(Command):
description = "run unit tests"
user_options = []
boolean_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
from ecdsa import numbertheory
numbertheory.__main__()
from ecdsa import ellipticcurve
ellipticcurve.__main__()
from ecdsa import ecdsa
ecdsa.__main__()
from ecdsa import test_pyecdsa
test_pyecdsa.unittest.main(module=test_pyecdsa, argv=["dummy"])
# all tests os.exit(1) upon failure
commands["test"] = Test
setup(name="ecdsa",
version=versioneer.get_version(),
description="ECDSA cryptographic signature library (pure python)",
author="Brian Warner",
author_email="[email protected]",
url="http://github.com/warner/python-ecdsa",
packages=["ecdsa"],
license="MIT",
cmdclass=commands,
classifiers=[
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.2",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
],
)