forked from wbond/certvalidator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
74 lines (52 loc) · 1.87 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
import os
import shutil
from setuptools import setup, find_packages, Command
from certvalidator import version
class CleanCommand(Command):
user_options = [
('all', 'a', '(Compatibility with original clean command)')
]
def initialize_options(self):
self.all = False
def finalize_options(self):
pass
def run(self):
folder = os.path.dirname(os.path.abspath(__file__))
for sub_folder in ['build', 'dist', 'certvalidator.egg-info']:
full_path = os.path.join(folder, sub_folder)
if os.path.exists(full_path):
shutil.rmtree(full_path)
setup(
name='certvalidator',
version=version.__version__,
description='Validates X.509 certificates and paths',
long_description='Docs for this project are maintained at https://github.com/wbond/certvalidator#readme.',
url='https://github.com/wbond/certvalidator',
author='wbond',
author_email='[email protected]',
license='MIT',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: Implementation :: PyPy',
'Topic :: Security :: Cryptography',
],
keywords='crypto pki x509 certificate crl ocsp',
install_requires=[
'asn1crypto>=0.22.0',
'oscrypto>=0.18.0'
],
packages=find_packages(exclude=['tests*', 'dev*']),
test_suite='tests.make_suite',
cmdclass={
'clean': CleanCommand,
}
)