Skip to content

Commit 6578fea

Browse files
committed
Fix pip warning: add pyproject.toml
1 parent 955f1ba commit 6578fea

File tree

2 files changed

+108
-1
lines changed

2 files changed

+108
-1
lines changed

pyproject.toml

Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
[build-system]
2+
build-backend = "setuptools.build_meta"
3+
requires = ["setuptools", "setuptools-scm"]
4+
5+
[project]
6+
name = "charon"
7+
version = "1.3.3"
8+
authors = [
9+
{name = "RedHat EXD SPMM"},
10+
]
11+
readme = "README.md"
12+
keywords = ["charon", "mrrc", "maven", "npm", "build", "java"]
13+
license-files = ["LICENSE"]
14+
requires-python = ">=3.9"
15+
classifiers = [
16+
"Development Status :: 1 - Planning",
17+
"Intended Audience :: Developers",
18+
"License :: OSI Approved :: Apache Software License",
19+
"Topic :: Software Development :: Build Tools",
20+
"Topic :: Utilities",
21+
"Programming Language :: Python :: 3 :: Only",
22+
"Programming Language :: Python :: 3.9",
23+
"Programming Language :: Python :: 3.10",
24+
"Programming Language :: Python :: 3.11",
25+
"Programming Language :: Python :: 3.12",
26+
"Programming Language :: Python :: 3.13",
27+
]
28+
dependencies = [
29+
"Jinja2>=3.1.3",
30+
"boto3>=1.18.35",
31+
"botocore>=1.21.35",
32+
"click>=8.1.3",
33+
"requests>=2.25.0",
34+
"PyYAML>=5.4.1",
35+
"defusedxml>=0.7.1",
36+
"subresource-integrity>=0.2",
37+
"jsonschema>=4.9.1",
38+
"urllib3>=1.25.10",
39+
"semantic-version>=2.10.0"
40+
]
41+
42+
[project.optional-dependencies]
43+
dev = [
44+
"pylint",
45+
"flake8",
46+
"pep8",
47+
"mypy",
48+
"tox",
49+
]
50+
test = [
51+
"flexmock>=0.10.6",
52+
"responses>=0.9.0",
53+
"pytest<=7.1.3",
54+
"pytest-cov",
55+
"pytest-html",
56+
"requests-mock",
57+
"moto>=5.0.16,<6",
58+
"python-gnupg>=0.5.0,<1"
59+
]
60+
61+
[project.scripts]
62+
charon = "charon.cmd:cli"
63+
64+
[tool.setuptools]
65+
packages = ["charon"]
66+
67+
[tool.setuptools_scm]
68+
fallback_version = "1.3.4+dev.fallback"
69+
70+
[tool.setuptools.package-data]
71+
charon = ["schemas/*.json"]
72+
73+
[tool.mypy]
74+
python_version = "3.9"
75+
76+
[tool.coverage.report]
77+
skip_covered = true
78+
show_missing = true
79+
fail_under = 90
80+
exclude_lines = [
81+
"def __repr__",
82+
"if __name__ == .__main__.:",
83+
"if TYPE_CHECKING:",
84+
"return NotImplemented",
85+
]
86+
87+
[tool.pytest.ini_options]
88+
log_cli_level = "DEBUG"
89+
log_format = "%(asctime)s %(levelname)s %(message)s"
90+
log_date_format = "%Y-%m-%d %H:%M:%S"
91+
testpaths = [
92+
"tests",
93+
]
94+
95+
[tool.flake8]
96+
show_source = true
97+
ignore = [
98+
"D100", # missing docstring in public module
99+
"D104", # missing docstring in public package
100+
"D105", # missing docstring in magic method
101+
"W503", # line break before binary operator
102+
"E203", # whitespace before ':'
103+
"E501", # line too long
104+
"E731", # do not assign a lambda expression
105+
]
106+
per-file-ignores = [
107+
"tests/*:D101,D102,D103", # missing docstring in public class, method, function
108+
]

tests/requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ responses>=0.9.0
33
pytest<=7.1.3
44
pytest-cov
55
pytest-html
6-
flake8
76
requests-mock
87
moto>=5.0.16,<6
98
python-gnupg>=0.5.0,<1

0 commit comments

Comments
 (0)