-
Notifications
You must be signed in to change notification settings - Fork 40
/
setup.py
executable file
·88 lines (78 loc) · 2.95 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 python
from setuptools import setup, Command
import versioneer
commands = versioneer.get_cmdclass().copy()
class Trial(Command):
description = "run trial"
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
import sys
from twisted.scripts import trial
sys.argv = ["trial", "--rterrors", "foolscap.test"]
trial.run() # does not return
commands["trial"] = Trial
commands["test"] = Trial
trove_classifiers = [
"Development Status :: 6 - Mature",
"Operating System :: OS Independent",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Internet",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: System :: Distributed Computing",
"Topic :: System :: Networking",
"Topic :: Software Development :: Object Brokering",
]
setup_args = {
"name": "foolscap",
"version": versioneer.get_version(),
"description": "Foolscap contains an RPC protocol for Twisted.",
"author": "Brian Warner",
"author_email": "[email protected]",
"url": "http://foolscap.lothar.com/trac",
"license": "MIT",
"long_description": """\
Foolscap (aka newpb) is a new version of Twisted's native RPC protocol, known
as 'Perspective Broker'. This allows an object in one process to be used by
code in a distant process. This module provides data marshaling, a remote
object reference system, and a capability-based security model.
""",
"classifiers": trove_classifiers,
"platforms": ["any"],
"package_dir": {"": "src"},
"packages": ["foolscap", "foolscap.slicers", "foolscap.logging",
"foolscap.connections",
"foolscap.appserver", "foolscap.test"],
"entry_points": {"console_scripts": [
"flogtool = foolscap.logging.cli:run_flogtool",
"flappserver = foolscap.appserver.cli:run_flappserver",
"flappclient = foolscap.appserver.client:run_flappclient",
] },
"cmdclass": commands,
"install_requires": ["six", "twisted[tls] >= 16.0.0", "pyOpenSSL"],
"extras_require": {
"dev": ["txtorcon >= 19.0.0",
"txi2p-tahoe >= 0.3.5; python_version > '3.0'",
"txi2p >= 0.3.2; python_version < '3.0'",
"pywin32 ; sys_platform == 'win32'"],
"tor": ["txtorcon >= 19.0.0"],
"i2p": ["txi2p-tahoe >= 0.3.5; python_version > '3.0'",
"txi2p >= 0.3.2; python_version < '3.0'"],
},
"python_requires": ">=3.8",
}
setup_args.update(
include_package_data=True,
)
if __name__ == "__main__":
setup(**setup_args)