-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsetup.py
executable file
·88 lines (70 loc) · 2.44 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
76
77
78
79
80
81
82
83
84
85
86
87
88
#!/usr/bin/env python3
"""
Setup script for module `python-camellia`.
Usage:
setup.py build Build extension modules and prepare for install.
setup.py install Install module.
setup.py sdist Create source package.
setup.py bdist_wheel Create a `wheel` binary package.
"""
from __future__ import print_function
import sys
try:
from setuptools import setup, find_packages
except ImportError:
print('This module requires setuptools.')
print('Please install setuptools with get-pip.py!')
sys.exit(1)
description = 'Camellia block cipher in Python'
def long_description(short=description):
"""Try to read README.rst or returns fallback."""
try:
return open('README.rst').read()
except FileNotFoundError:
return short
setup(
name='python-camellia',
version='1.1.0.dev0',
description=description,
long_description=long_description(),
author='Simon Biewald',
author_email='[email protected]',
url='https://github.com/Varbin/python-camellia',
project_urls={
'Documentation': 'https://python-camellia.readthedocs.io',
'Source': 'https://github.com/Varbin/python-camellia',
'Tracker': 'https://github.com/Varbin/python-camellia/issues'
},
packages=['camellia'],
package_dir={'': 'src'},
package_data={
"": ["py.typed", "*.pyi"],
},
cffi_modules=['src/_camellia_build/camellia_build.py:ffi'],
license='MIT and BSD-2-Clause',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'License :: OSI Approved :: BSD License',
'Programming Language :: C',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
'Topic :: Security :: Cryptography',
'Typing :: Typed'
],
keywords=[
'camellia', 'encryption', 'block cipher'
],
platforms=['all'],
setup_requires=['cffi>=1.0.0', 'pytest-runner'],
tests_require=['pytest', 'pytest-runner'],
install_requires=['cffi>=1.0.0', 'pep272-encryption'],
extras_require={
'docs': ['sphinx', 'sphinx_rtd_theme'],
'tests': ['coverage', 'pytest', 'pytest-runner'],
}
)