-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
89 lines (78 loc) · 2.8 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
89
#!/usr/bin/env python
import subprocess
import sys
import os
from setuptools import setup, find_packages, Command
class MypyCommand(Command):
description = 'Run MyPy type checker'
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
"""Run command."""
command = ['mypy', '--strict', '--strict-optional', '--warn-return-any', '--warn-no-return', '--warn-unused-ignores', '--warn-redundant-casts', '--warn-incomplete-stub', '--check-untyped-defs', '--disallow-untyped-calls', '--disallow-untyped-defs', '--disallow-incomplete-defs', '--allow-subclassing-any', '--disallow-untyped-decorators', '--disallow-any-generics', '--no-implicit-optional', '--warn-unused-configs', 'cryfs', 'tests']
myenv = os.environ.copy()
myenv["MYPYPATH"] = "stubs/"
returncode = subprocess.call(command, env=myenv)
sys.exit(returncode)
dependencies = [
# TODO Check if config flags needs to be changed (was setup for mypy 0.560)
'mypy == 0.590',
'attrs == v17.4.0',
'click == 6.7',
]
test_dependencies = [
'nose == 1.3.7',
'parameterized == 0.6.1',
'coverage == 4.4.1',
'asynctest == 0.10.0'
]
setup(name='cryfs-e2etest',
version='0.1.0',
description='Run end-to-end tests for the CryFS filesystem.',
author='Sebastian Messmer',
author_email='[email protected]',
license='GPLv3',
url='https://github.com/cryfs/cryfs-e2etest',
cmdclass={
'mypy': MypyCommand,
},
packages=find_packages(),
package_data = {
'cryfs.e2etest.fixtures': [
'*'
]
},
entry_points = {
'console_scripts': [
'cryfs-e2etest = cryfs.e2etest.__main__:main',
'cryfs-e2etest-create-data-tar = cryfs.e2etest.create_fixture:create_data_tar',
'cryfs-e2etest-create-encoded-tar = cryfs.e2etest.create_fixture:create_encoded_tar',
]
},
install_requires=dependencies,
tests_require=test_dependencies,
# For CI, we need to have a way of installing test dependencies.
# Let's abuse extras_require for that.
extras_require={
'test': test_dependencies
},
test_suite='nose.collector',
classifiers=[
"Development Status :: 2 - Pre-Alpha",
"Environment :: Console",
"Operating System :: MacOS",
"Operating System :: POSIX",
"Operating System :: POSIX :: Linux",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Natural Language :: English",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Topic :: System :: Filesystems",
"Topic :: Software Development :: Testing",
"Topic :: Utilities"
]
)