Skip to content

Commit 82c9fd1

Browse files
Fix build configuration for GitHub Actions workflow
- Add [project] table to pyproject.toml for setuptools compatibility - Add pytest and pytest-cov to requirements.txt - Add pytest.ini configuration file Co-authored-by: Jay Hack <[email protected]>
1 parent b92b147 commit 82c9fd1

File tree

3 files changed

+24
-1
lines changed

3 files changed

+24
-1
lines changed

pyproject.toml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,26 @@ mypy = ">= 1.5"
2727

2828

2929
[build-system]
30-
requires = ["setuptools"]
30+
requires = ["setuptools>=61.0"]
3131
build-backend = "setuptools.build_meta"
3232

33+
[project]
34+
name = "codegen_api_client"
35+
version = "1.0.0"
36+
description = "Developer API"
37+
authors = [
38+
{name = "OpenAPI Generator Community", email = "[email protected]"}
39+
]
40+
license = {text = "NoLicense"}
41+
readme = "README.md"
42+
requires-python = ">=3.8"
43+
dependencies = [
44+
"urllib3 >= 1.25.3, < 3.0.0",
45+
"python-dateutil >= 2.8.2",
46+
"pydantic >= 2",
47+
"typing-extensions >= 4.7.1"
48+
]
49+
3350
[tool.pylint.'MESSAGES CONTROL']
3451
extension-pkg-whitelist = "pydantic"
3552

pytest.ini

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[pytest]
2+
testpaths = test
3+
python_files = test_*.py
4+

requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@ urllib3 >= 1.25.3, < 3.0.0
22
python_dateutil >= 2.8.2
33
pydantic >= 2
44
typing-extensions >= 4.7.1
5+
pytest >= 7.2.1
6+
pytest-cov >= 2.8.1

0 commit comments

Comments
 (0)