-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathsetup.py
78 lines (69 loc) · 2.22 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
# Copyright (c) str4d <str4d@mail.i2p>
# See COPYING for details.
from setuptools import setup
from os import path
import sys
here = path.abspath(path.dirname(__file__))
def readme():
with open(path.join(here, 'README.rst')) as f:
return f.read()
install_requires = [
'Parsley>=1.2',
]
# future is only a requirement for Py2
# This will not work on Py3 if any of the 14 standard library modules listed
# here get used later on:
# http://python-future.org/standard_library_imports.html#list-standard-library-refactored
if sys.version_info[0] < 3:
install_requires.append('future>=0.14.0')
install_requires.append('Twisted>=10.1')
else:
install_requires.append('Twisted>=15.4')
setup(
name='txi2p',
description='I2P bindings for Twisted',
long_description=readme(),
author='str4d',
author_email='str4d@i2pmail.org',
url='https://github.com/str4d/txi2p',
classifiers=[
'Development Status :: 4 - Beta',
'Framework :: Twisted',
'Intended Audience :: Developers',
'License :: OSI Approved :: ISC License (ISCL)',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Topic :: Internet',
],
license='ISC',
# This is left to support installation with pip < 10 or with another tool.
# However, it is expected that modern installations will be performed with
# pip >= 10 and will look at pyproject.toml first, mooting this
# declaration.
setup_requires=['vcversioner>=1'],
vcversioner={
'version_module_paths': ['txi2p/_version.py'],
},
install_requires=install_requires,
packages=[
'txi2p',
'txi2p.bob',
'txi2p.sam',
'txi2p.test',
'txi2p.bob.test',
'txi2p.sam.test',
'twisted.plugins',
],
)
# Make Twisted regenerate the dropin.cache, if possible. This is necessary
# because in a site-wide install, dropin.cache cannot be rewritten by
# normal users.
try:
from twisted.plugin import IPlugin, getPlugins
except ImportError:
pass
else:
list(getPlugins(IPlugin))