forked from fedora-infra/mirrormanager2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
148 lines (132 loc) · 4.5 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
[tool.poetry]
name = "mirrormanager2"
version = "1.1.0"
description = "The application used to managed the Fedora mirrors all over the world."
authors = [
"Fedora Infrastructure team <[email protected]>",
]
maintainers = [
"Aurélien Bompard <[email protected]>",
"Pierre-Yves Chibon <[email protected]>",
]
homepage = "https://github.com/fedora-infra/mirrormanager2"
repository = "https://github.com/fedora-infra/mirrormanager2"
license = "MIT"
readme = "README.rst"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Framework :: Flask",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Operating System :: POSIX :: Linux",
]
packages = [
{ include = "mirrormanager2" },
{ include = "tests", format = "sdist" },
]
include = [
{ path = "runserver.py", format = "sdist" },
{ path = "mirrormanager.proto", format = "sdist" },
{ path = "doc", format = "sdist" },
{ path = "tox.ini", format = "sdist" },
{ path = "testdata", format = "sdist" },
{ path = "client/report_mirror.conf", format = "sdist" },
{ path = "utility", format = "sdist" },
]
[tool.poetry.dependencies]
python = "^3.9"
flask = "^2.2.3 || ^3.0.0"
flask-admin = "^1.6.0"
flask-healthz = "^1.0.0"
flask-oidc = "^2.0.0"
flask-xml-rpc-re = "^0.1.4"
flask-wtf = "^1.1.1"
wtforms = {extras = ["email"], version = "^3.0.1"}
backoff = "^2.2.1"
fedora-messaging = "^3.3.0"
sqlalchemy-helpers = "^1.0.0"
click = "^8.1.7"
geoip2 = "^4.7.0"
gunicorn = {version = "^21.2.0 || ^22.0.0 || ^23.0.0", optional = true}
psycopg2 = {version = "^2.9.9", optional = true}
rich = "^13.7.0"
mrtparse = "^2.2.0"
requests = "^2.31.0"
mirrormanager-messages = "^1.0.0"
[tool.poetry.group.dev.dependencies]
black = ">=22.6.0"
pytest = "^7.1.2 || ^8.0.0"
pytest-cov = ">=3.0.0"
coverage = {extras = ["toml"], version = ">=7.0.0"}
ruff = ">=0.0.253"
oidc-register = "^0.2.1"
responses = "^0.23.3 || ^0.25.0"
[tool.poetry.group.docs.dependencies]
sphinx = ">=6.1.3"
myst-parser = ">=0.16"
sphinxcontrib-httpdomain = "^1.8.1"
sphinxcontrib-mermaid = "^0.9.2 || ^1.0.0"
[tool.poetry.scripts]
report_mirror = { reference = "client/report_mirror", type = "file" }
mm2_crawler = "mirrormanager2.crawler.cli:main"
mm2_emergency-expire-repo = "mirrormanager2.utility.emergency_expire_repo:main"
mm2_generate-worldmap = "mirrormanager2.utility.generate_worldmap:main"
mm2_get-netblocks = "mirrormanager2.utility.netblocks:main"
mm2_move-devel-to-release = "mirrormanager2.utility.move_devel_to_release:main"
mm2_move-to-archive = "mirrormanager2.utility.move_to_archive:main"
mm2_update-EC2-netblocks = "mirrormanager2.utility.update_ec2_netblocks:main"
mm2_update-master-directory-list = "mirrormanager2.utility.update_master_directory_list:main"
mm2_create_install_repo = "mirrormanager2.utility.create_install_repo:main"
mm2_upgrade-install-repo = "mirrormanager2.utility.upgrade_install_repo:main"
mm2_last-sync = "mirrormanager2.utility.last_sync:main"
mm2_expire-stats = "mirrormanager2.utility.expire_statistics:main"
mm2_mirrorlist-statistics = "mirrormanager2.utility.mirrorlist_statistics:main"
mm2_add-product = "mirrormanager2.utility.add_product:main"
[tool.poetry.extras]
deploy = ["gunicorn", "psycopg2"]
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.black]
line-length = 100
[tool.ruff]
line-length = 100
target-version = "py39"
[tool.ruff.lint]
select = ["E", "F", "W", "I", "B", "UP"]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["S101", "S105", "S106"]
"doc/conf.py" = ["E402"]
"mirrormanager2/app.py" = ["E402"]
"mirrormanager2/default_config.py" = ["S105"]
"utility/*" = ["E402"]
"client/report_mirror" = ["E402"]
"mirrorlist/mirrorlist_statistics" = ["E402"]
[tool.coverage.run]
branch = true
source = ["mirrormanager2"]
[tool.coverage.paths]
source = ["mirrormanager2", "utility"]
[tool.coverage.report]
# fail_under = 80
show_missing = true
exclude_lines = [
"pragma: no cover",
"if __name__ == .__main__.:",
# Don't complain if tests don't hit defensive assertion code
"raise AssertionError",
"raise NotImplementedError",
"\\.\\.\\.",
]
omit = [
#"mirrormanager2/__init__.py",
"mirrormanager2/migrations/env.py",
"tests/*",
]