-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathpyproject.toml
134 lines (114 loc) · 3.61 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
[tool.poetry]
name = "romt"
version = "0.7.0"
include = [
{ path = "CHANGES.rst", format="sdist" },
{ path = "LICENSE.rst", format="sdist" },
{ path = "README.rst", format="sdist" },
{ path = "maintainer.rst", format="sdist" },
{ path = "noxfile.py", format="sdist" },
{ path = "poetry.lock", format="sdist" },
{ path = "requirements.txt", format="sdist" },
{ path = "romt-wrapper.py", format="sdist" },
]
description = """\
Romt (Rust Offline Mirror Tool) enables mirroring of Rust \
programming language tools and crates for use in an offline context.\
"""
keywords = ["Rust", "mirror", "toolchain", "crates"]
authors = ["Michael Henry <drmikehenry@drmikehenry.com>"]
license = "MIT"
readme = "README.rst"
repository = "https://github.com/drmikehenry/romt"
classifiers = [
"Development Status :: 4 - Beta",
"Topic :: Utilities",
"Environment :: Console",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3",
"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",
# Include this classifier to prevent accidently publishing private code to PyPI.
# https://pypi.org/classifiers/
# "Private :: Do Not Upload",
]
[tool.poetry.dependencies]
# Some packages, such as scipy, constrain their upper bound of Python versions
# they support. Without also constraining the upper bound here, Poetry will not
# select those versions and will result in an old version being resolved/locked.
python = "^3.8, <3.13"
# GitPython >= 3.0.5 is required to avoid this traceback on Windows:
# Exception ignored in: <function Git.AutoInterrupt.__del__ at 0x...>
# See https://github.com/gitpython-developers/GitPython/issues/935.
gitpython = "^3.1"
python-gnupg = "^0.5"
httpx = "^0.26"
toml = "^0.10"
trio = "^0.23"
[tool.poetry.group.nox.dependencies]
nox-poetry = "*"
[tool.poetry.group.install.dependencies]
pyinstaller = "^6.3"
pypiwin32 = {version = "^223", platform = "win32"}
twine = "*"
[tool.poetry.group.test.dependencies]
pytest = "*"
pytest-cov = "*"
pytest-gitignore = "*"
[tool.poetry.group.type_check.dependencies]
mypy = "*"
# As of mypy 0.900, mypy no longer bundles the stubs for third-party libraries
# that reside in the typeshed project. Add these "types-" packages here if you
# depend on them (e.g. `types-requests`).
# See: http://mypy-lang.blogspot.com/2021/06/mypy-0900-released.html
# https://github.com/python/typeshed/tree/main/stubs
types-toml = "*"
types-setuptools = "*"
[tool.poetry.group.lint.dependencies]
ruff = "*"
[tool.poetry.scripts]
romt = "romt.cli:main"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
##############################################################################
# Source formatting
[tool.black]
line-length = 79
target-version = ["py38"]
##############################################################################
# Style checking
[tool.ruff]
line-length = 79
[tool.ruff.lint]
ignore = [
"N811",
"N812",
"N813",
"N814",
]
select = [
"C9",
"E",
"F",
"N",
"Q",
"W",
]
[tool.ruff.lint.flake8-quotes]
inline-quotes = "double"
[tool.ruff.lint.mccabe]
max-complexity = 15
##############################################################################
# Type checking
[tool.mypy]
strict = true
ignore_missing_imports = true
##############################################################################
# Coverage support
[tool.coverage.run]
branch = true