-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix #27, #28, improve tests * Replace setup.py with pyproject.toml * make flake8 happy * Update requirements.txt * Fix pipeline
- Loading branch information
1 parent
c70519b
commit b7f9287
Showing
18 changed files
with
219 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
[flake8] | ||
exclude = __pycache__,built,build,venv | ||
ignore = E203, E266, W503 | ||
max-line-length = 88 | ||
max-complexity = 18 | ||
per-file-ignores = | ||
tests/test_v2.py: E501 | ||
tests/test_v3.py: E501 | ||
select = B,C,E,F,W,T4,B9 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,5 @@ htmlcov | |
__pycache__ | ||
*.egg-info | ||
*.tar.gz | ||
_test_files/ | ||
dist/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
VERSION = "1.0.6" | ||
__version__ = "1.0.7" | ||
VERSION = __version__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
[build-system] | ||
requires = ["hatchling"] | ||
build-backend = "hatchling.build" | ||
|
||
[project] | ||
name = "essentials-openapi" | ||
dynamic = ["version"] | ||
authors = [{ name = "Roberto Prevato", email = "[email protected]" }] | ||
description = "Classes to generate OpenAPI Documentation v3 and v2, in JSON and YAML." | ||
readme = "README.md" | ||
requires-python = ">=3.7" | ||
classifiers = [ | ||
"Development Status :: 5 - Production/Stable", | ||
"License :: OSI Approved :: MIT License", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Operating System :: OS Independent", | ||
] | ||
keywords = ["openapi", "docs", "swagger", "api", "documentation", "v3", "v2", "json", "yaml", "Markdown"] | ||
|
||
dependencies = ["PyYAML>=6", "essentials>=1.1.5"] | ||
|
||
[tool.hatch.version] | ||
path = "openapidocs/__init__.py" | ||
|
||
[project.optional-dependencies] | ||
full = ["click~=8.1.3", "Jinja2~=3.1.2", "MarkupSafe==2.1.2", "rich~=12.6.0", "httpx<1"] | ||
|
||
[project.scripts] | ||
openapidocs = "openapidocs.main:main" | ||
oad = "openapidocs.main:main" | ||
|
||
[tool.hatch.build.targets.wheel] | ||
packages = ["openapidocs"] | ||
|
||
[tool.hatch.build.targets.sdist] | ||
exclude = ["tests"] | ||
|
||
[tool.hatch.build] | ||
only-packages = true | ||
|
||
[project.urls] | ||
"Homepage" = "https://github.com/Neoteroi/essentials-openapi" | ||
"Bug Tracker" = "https://github.com/Neoteroi/essentials-openapi/issues" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.