-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
52 lines (44 loc) · 1.59 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
import sys
from setuptools import setup
from setuptools.command.test import test as TestCommand
packageName = "arthur"
import re
versionLine = open("{0}/_version.py".format(packageName), "rt").read()
match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", versionLine, re.M)
versionString = match.group(1)
class Tox(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_suite = True
def run_tests(self):
#import here, cause outside the eggs aren't loaded
import tox
sys.exit(tox.cmdline([]))
setup(name=packageName,
version=versionString,
description='Software for the exercises in Crypto 101, the introductory '
'book on cryptography.',
long_description=open("README.rst").read(),
url='https://github.com/crypto101/' + packageName,
author='Laurens Van Houtven',
author_email='[email protected]',
packages=["arthur", "arthur.test"],
test_suite="arthur.test",
cmdclass={'test': Tox},
zip_safe=True,
license='ISC',
keywords="crypto urwid twisted",
classifiers=[
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Framework :: Twisted",
"Intended Audience :: Education",
"License :: OSI Approved :: ISC License (ISCL)",
"Programming Language :: Python :: 2 :: Only",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Topic :: Education",
"Topic :: Games/Entertainment",
"Topic :: Security :: Cryptography",
]
)