-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
232 lines (199 loc) · 7.8 KB
/
pyproject.toml
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "shadowsocks-manager"
version = "0.1.17"
requires-python = ">=2.7"
dependencies = [
"future",
"six",
"boto3",
"celery",
# required by dns-lexicon
# 20240526 - py2.7 - cryptography==3.3.2 (latest version for py2.7) requires openssl 1.1 on os.
# "cryptography",
"Django<4",
# required by django-admin-lazy-load
# 20240531 - py2.7
"django-admin-easy==0.4.1; python_version <= '2.7'",
"django-admin-easy; python_version > '2.7'",
# 20240531 - py2.7
# 20240531 - enhancement and fix
# "django-admin-lazy-load",
"django-admin-lazy-load-alexforks",
"django-allowedsites-dynamic",
"django-cache-lock",
# 20210314 - py2.7 - workaround for: ERROR: Could not find a version that satisfies the requirement django-timezone-field<5.0,>=4.1.0 (from django-celery-beat->-r requirements.txt (line 10)) (from versions: 0.3.1, 0.3.2, 0.4, 1.0, 1.1, 1.2, 1.3, 2.0rc1, 2.0, 2.1, 3.0rc1, 3.0, 3.1)
"django-celery-beat==1.6.0; python_version <= '2.7'",
# 20240319 - py3.8 - workaround for: Exception: django-celery-beat 2.6.0 requires CPython 3.8 or later!
"django-celery-beat<2.6.0; python_version > '2.7' and python_version < '3.8'",
"django-celery-beat; python_version >= '3.8'",
# 20210917 - py2.7 - workaround for: ERROR: django-celery-results 2.2.0 requires celery<6.0,>=5.0, but you'll have celery 4.4.7 which is incompatible.
"django-celery-results==2.0.1; python_version <= '2.7'",
"django-celery-results; python_version > '2.7'",
# 20220622 - py2.7 - workaround for: ImportError: No module named enum
"django-enumfield<3.0; python_version <= '2.7'",
"django-enumfield; python_version > '2.7'",
# 20210314 - py2.7 - workaround for: SyntaxError: invalid syntax: File python2.7/site-packages/django_filters/filterset.py, line 184
# https://github.com/carltongibson/django-filter/issues/954
"django-filter~=1.1; python_version <= '2.7'",
"django-filter; python_version > '2.7'",
# 20240602 - py3.12 - v4.0.7 - import ERROR: module 'django.utils.formats' has no attribute 'sanitize_strftime_format'
# 20240602 - py3.12 - v4.0.0 - export ERROR: AttributeError: 'AccountAdmin' object has no attribute 'search_help_text': File import_export/admin.py, line 670: changelist_kwargs["search_help_text"] = self.search_help_text
# "django-import-export",
"django-import-export<=3.3.9",
"djangorestframework",
"dns-lexicon[full]",
"dnspython",
"docopt",
# ipaddress is available since Python 3.3
"ipaddress; python_version < '3.3'",
"psutil",
# 20230202 - py2.7
"python-crontab==2.6.0; python_version <= '2.7'",
"python-crontab; python_version > '2.7'",
"python-decouple",
# 20240319 - py3.x - workaround for: AttributeError: 'Client' object has no attribute '_deletetouch': File python3.12/site-packages/django/core/cache/backends/memcached.py, line 202
# "python-memcached==1.59; python_version <= '2.7'",
# "python-memcached; python_version > '2.7'",
"python-memcached==1.59",
"pytz",
"requests",
# 20240430 - removed. the installation of Shadowsocks service should be handled outside of this project.
# 20240417 - workaround for: AttributeError: dlsym(0x8c358790, EVP_CIPHER_CTX_cleanup): symbol not found: File python3.12/site-packages/shadowsocks/crypto/openssl.py, line 52
# 20240417 - py3.10+ - workaround for: AttributeError: module 'collections' has no attribute 'MutableMapping': File python3.12/site-packages/shadowsocks/lru_cache.py, line 34
# "shadowsocks",
# "shadowsocks-alexforks",
# required by dns-lexicon[full]
# 20240526 - py2.7 - workaround for: ERROR: Could not find a version that satisfies the requirement prettytable>=2.0.0
"Softlayer==5.8.0; python_version <= '2.7'",
"Softlayer; python_version > '2.7'",
"tldextract",
"uWSGI",
]
optional-dependencies.test = [
"mock; python_version <= '2.7'",
"coverage[toml]; python_version >= '2.7' and python_version < '3.11'",
"coverage; python_version >= '3.11'",
]
optional-dependencies.release = [
"codecov",
"build",
"bump-my-version",
"setuptools",
"twine",
"wheel",
]
authors = [{name = "Alex", email = "[email protected]"}]
maintainers = []
readme = "README.md"
license = {file = "LICENSE"}
description = "A shadowsocks manager for multi-user and traffic statistics"
keywords = ["shadowsocks", "manager", "django", "web", "statistics", "cluster", "celery", "uwsgi", "pypi", "docker", "github-actions"]
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Web Environment",
"Framework :: Django",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: MacOS",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"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 :: 3.12",
"Topic :: Internet :: Proxy Servers",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
"Topic :: Security :: Cryptography",
"Topic :: System :: Networking :: Firewalls"
]
[project.urls]
homepage = "https://www.0xbeta.com/shadowsocks-manager/"
repository = "https://github.com/alexzhangs/shadowsocks-manager"
issues = "https://github.com/alexzhangs/shadowsocks-manager/issues"
[project.scripts]
ssm = "shadowsocks_manager.__main__:main"
ssm-manage = "shadowsocks_manager.utils.manage:main"
ssm-uwsgi = "shadowsocks_manager.utils.uwsgi:main"
ssm-celery = "shadowsocks_manager.utils.celery_app:main"
ssm-dotenv = "shadowsocks_manager.utils.dotenv:main"
ssm-version = "shadowsocks_manager.utils.version:main"
[tool.setuptools]
script-files = [
"bin/ssm-setup",
"bin/ssm-dev-start",
"bin/ssm-dev-stop",
]
[tool.setuptools.packages]
find = {}
[tool.setuptools.package-data]
shadowsocks_manager = ["**/fixtures/*"]
[tool.distutils.bdist_wheel]
universal = true
[tool.bumpversion]
current_version = "0.1.17"
parse = """
(?P<major>\\d+)\\.
(?P<minor>\\d+)\\.
(?P<patch>\\d+)
(
\\- # separator
(?P<suffix>[0-9]\\d*) # suffix Number
)? # suffix is optional
"""
serialize = [
"{major}.{minor}.{patch}-{suffix}",
"{major}.{minor}.{patch}",
]
search = "{current_version}"
replace = "{new_version}"
regex = false
ignore_missing_version = false
ignore_missing_files = false
tag = true
sign_tags = false
tag_name = "{new_version}"
tag_message = "Bump version: {current_version} → {new_version}"
allow_dirty = true
commit = true
message = "Bump version: {current_version} → {new_version}"
commit_args = "--no-verify"
[[tool.bumpversion.files]]
filename = "pyproject.toml"
search = '^version = "{current_version}"$'
replace = 'version = "{new_version}"'
regex = true
[[tool.bumpversion.files]]
filename = "setup.cfg"
search = '^version = {current_version}$'
replace = 'version = {new_version}'
regex = true
[[tool.bumpversion.files]]
filename = "shadowsocks_manager/shadowsocks_manager/__init__.py"
search = '^__version__ = "{current_version}"$'
replace = '__version__ = "{new_version}"'
regex = true
[tool.coverage.run]
source = [
"shadowsocks_manager",
]
branch = true
omit = [
"**/tasks.py",
"**/admin.py",
"**/migrations/*",
"shadowsocks_manager/manage.py",
"shadowsocks_manager/shadowsocks_manager/wsgi.py",
]
parallel = true
[tool.coverage.report]
show_missing = true
skip_covered = true