From b3c0fe8a42d826956be52cf873160f620072eef6 Mon Sep 17 00:00:00 2001 From: Tom Harrison Date: Thu, 4 Jan 2024 19:54:04 -0500 Subject: [PATCH 1/3] fix: partial implementation of newer version of semver --- CHANGELOG.md | 100 ++++++- Makefile | 9 +- poetry.lock | 425 +++++----------------------- pyproject.toml | 76 ++++- src/python_app_template/__init__.py | 1 - version.py | 1 + 6 files changed, 246 insertions(+), 366 deletions(-) create mode 100644 version.py diff --git a/CHANGELOG.md b/CHANGELOG.md index 0723dfb..c5c37f6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,13 +1,55 @@ # CHANGELOG +## Unreleased -## v0.3.0 (2024-01-02) +### Unknown + +* Build badge ([`f43c1a6`](https://github.com/tomharrisonjr/python-app-template/commit/f43c1a66be4a884f8ef0964ffebb0ce2ebf01ce2)) + + + +## v0.5.0 (2024-01-04) + +### Chore + +* chore: partial implementation. ([`e541aab`](https://github.com/tomharrisonjr/python-app-template/commit/e541aab915a08ba19f082e6ec7b2829990afbfa0)) + +### Feature + +* feat: Docker build and local deploy ([`f704e78`](https://github.com/tomharrisonjr/python-app-template/commit/f704e78fccc1bedcfdbb4e38eac89a144027c6c0)) + +### Fix + +* fix: lint ([`531e5b9`](https://github.com/tomharrisonjr/python-app-template/commit/531e5b95124ff3c8b2ebb9446105c4bd44c7da14)) + +* fix: downgrade to semantic-release v7.x as 8.x is completely different ([`f815f49`](https://github.com/tomharrisonjr/python-app-template/commit/f815f49961728e261708295a93937efa113957a7)) + +### Unknown + +* Merge pull request #7 from tomharrisonjr/feat/dockerize + +Feat: dockerize ([`abd4f6c`](https://github.com/tomharrisonjr/python-app-template/commit/abd4f6cb6446efe6ac6d5ccd15b099c3b0e03731)) + +* Merge pull request #6 + +remerge ([`bacf3d6`](https://github.com/tomharrisonjr/python-app-template/commit/bacf3d63119735d407013765d8c9357dc475de67)) + + +## v0.3.0 (2024-01-03) ### Feature * feat: new ver ([`843d219`](https://github.com/tomharrisonjr/python-app-template/commit/843d219afba6f2b3b5617e2dc34961d316ce521f)) +### Unknown + +* 0.3.0 [skip ci] ([`12b73c4`](https://github.com/tomharrisonjr/python-app-template/commit/12b73c4d916ff7bbee5320a4d7959508704dda3e)) + +* Merge pull request #5 from tomharrisonjr/feat/semver + +Feat/semver ([`ca156e5`](https://github.com/tomharrisonjr/python-app-template/commit/ca156e58cafdfc85e4eb26bc98a4200b2fb2dbe4)) + ## v0.2.0 (2024-01-03) @@ -15,11 +57,17 @@ * feat: new ver ([`a57ab22`](https://github.com/tomharrisonjr/python-app-template/commit/a57ab2239dc13e8fd89747b35028477d0f779b16)) +### Unknown + +* 0.2.0 [skip ci] ([`081de73`](https://github.com/tomharrisonjr/python-app-template/commit/081de73a6eab6ae35d14f81426602298087d0928)) + ## v0.1.0 (2024-01-03) ### Feature +* feat: semver release ([`37e4802`](https://github.com/tomharrisonjr/python-app-template/commit/37e48025f7f6534ec8a84e3c011f1823728887c4)) + * feat: docstrings via mkdocs ([`d39ef49`](https://github.com/tomharrisonjr/python-app-template/commit/d39ef49a4e0c709d9d36c43e72cfd0ff372aa91c)) * feat: mkdocs doc (missing tab2) ([`73ba374`](https://github.com/tomharrisonjr/python-app-template/commit/73ba374d2f9c9051e2072f394e1ae14287673f29)) @@ -38,18 +86,68 @@ initial commit of mashup from two medium posts on getting poetry working, and se ### Fix +* fix: yaml formatting 3, and pr, not push ([`21b69a8`](https://github.com/tomharrisonjr/python-app-template/commit/21b69a80e3abbc4ed564593f3d3cea68b27a3ccb)) + * fix: yaml formatting ([`0d6c12e`](https://github.com/tomharrisonjr/python-app-template/commit/0d6c12e60489b5c71f128758304c73cc6efe1666)) * fix: docstrings via mkdocs (fix typo) ([`a426343`](https://github.com/tomharrisonjr/python-app-template/commit/a42634367dfa3f20ad4c2a7cfa9760d2642e64e7)) +* fix: permissions ([`5da63b6`](https://github.com/tomharrisonjr/python-app-template/commit/5da63b6282230aac8f351ef2616596eb9392d72d)) + * fix: unneeded "with" ([`b6f0f61`](https://github.com/tomharrisonjr/python-app-template/commit/b6f0f619e9444d51780608b2e5acff0a95291d42)) * fix: vars ([`5e008d2`](https://github.com/tomharrisonjr/python-app-template/commit/5e008d27a7de1c6e6d8e68d9bf39b16eddf1aafd)) +* fix: colon not equals ([`322dcf7`](https://github.com/tomharrisonjr/python-app-template/commit/322dcf78ec3166fa89a8e1667e25149a02d5f12b)) + +* fix: poetry version ([`0ace52c`](https://github.com/tomharrisonjr/python-app-template/commit/0ace52c267d5f4cffecbb0a00376a7393f98bacf)) + +* fix: format file ([`c051ecf`](https://github.com/tomharrisonjr/python-app-template/commit/c051ecf2a25b8ecdd467e08669c1b8f182c1dfd8)) + +* fix: correct name ([`a405ddb`](https://github.com/tomharrisonjr/python-app-template/commit/a405ddbcc841ea9d42f20c017188fc582788daba)) + +* fix: remove scripts code + +* annotate makefile with help +* check in ([`2aecee1`](https://github.com/tomharrisonjr/python-app-template/commit/2aecee13fc91c78fff83b57191a982f14b40c763)) + +* fix: remove scripts code + +* annotate makefile with help +* check in ([`b9dc57f`](https://github.com/tomharrisonjr/python-app-template/commit/b9dc57f47bde216c70c2f3b9fdd37ac51a6bf43a)) + +* fix: remove scripts ([`26c7b53`](https://github.com/tomharrisonjr/python-app-template/commit/26c7b533668031b28f0da46a94ec8daac50aa51c)) + +* fix: remove pre-commit stuff ([`d9aa4cf`](https://github.com/tomharrisonjr/python-app-template/commit/d9aa4cf5a721511d8f87af7793c48d7eecbfa341)) + +* fix: remove other writer's broken example ([`434a7f0`](https://github.com/tomharrisonjr/python-app-template/commit/434a7f01245e31d3e580906422589b93b40e97a1)) + +* fix: remove other writer's broken example ([`d38504f`](https://github.com/tomharrisonjr/python-app-template/commit/d38504f8b83e1f270f10087d4fdd13610c1dabfa)) + ### Unknown +* 0.1.0 [skip ci] ([`b1504e7`](https://github.com/tomharrisonjr/python-app-template/commit/b1504e7a1081d1cfdc8b7423e130c2715d80904b)) + * Docs badge ([`d40e2e2`](https://github.com/tomharrisonjr/python-app-template/commit/d40e2e22f0641d04fb4d990389795a285f2e7dbe)) +* Merge pull request #4 from tomharrisonjr/feat/docstrings + +feat: docstrings via mkdocs ([`f225955`](https://github.com/tomharrisonjr/python-app-template/commit/f2259558acd7e5acde410ddd33f4ed55c4b2a85b)) + +* Merge pull request #3 from tomharrisonjr/feat/docs + +mkdocs ([`aa81f63`](https://github.com/tomharrisonjr/python-app-template/commit/aa81f63479745900e0302fc0d1f4e52edc9a4691)) + * Testing badge ([`9d21c77`](https://github.com/tomharrisonjr/python-app-template/commit/9d21c778b2afb64d627b523acb41061ee12957f9)) +* Merge pull request #2 from tomharrisonjr/feat/unit-tests + +feature: unit tests ([`c358fc5`](https://github.com/tomharrisonjr/python-app-template/commit/c358fc54442df3a8ce0ce451b5db09f5be98714b)) + * linting badge ([`23f02a5`](https://github.com/tomharrisonjr/python-app-template/commit/23f02a5dbba94a6bf5ad9c70b2833525eb72b29f)) + +* Merge pull request #1 from tomharrisonjr/feat-lint + +Feat lint ([`bd5add7`](https://github.com/tomharrisonjr/python-app-template/commit/bd5add7d993621b3d1b0592746a30868819bd531)) + +* Initial commit ([`35885b4`](https://github.com/tomharrisonjr/python-app-template/commit/35885b44ac542e822967cf80e088b9737bae36eb)) diff --git a/Makefile b/Makefile index 7f8520a..2a5c833 100644 --- a/Makefile +++ b/Makefile @@ -80,13 +80,10 @@ clean: clean-cov clean-docs ## Cleans up all generated files ##@ Releases -current-version: ## returns the current version - @semantic-release print-version --current +next-version: ## prints the version to be used as a tag for next release + @semantic-release --noop version --print -next-version: ## returns the next version - @semantic-release print-version --next - -current-changelog: ## returns the current changelog +make-changelog: ## returns the current changelog @semantic-release changelog --released next-changelog: ## returns the next changelog diff --git a/poetry.lock b/poetry.lock index d3ff191..d3323a0 100644 --- a/poetry.lock +++ b/poetry.lock @@ -296,20 +296,6 @@ files = [ [package.dependencies] colorama = {version = "*", markers = "platform_system == \"Windows\""} -[[package]] -name = "click-log" -version = "0.4.0" -description = "Logging integration for Click" -optional = false -python-versions = "*" -files = [ - {file = "click-log-0.4.0.tar.gz", hash = "sha256:3970f8570ac54491237bcdb3d8ab5e3eef6c057df29f8c3d1151a51a9c23b975"}, - {file = "click_log-0.4.0-py2.py3-none-any.whl", hash = "sha256:a43e394b528d52112af599f2fc9e4b7cf3c15f94e53581f74fa6867e68c91756"}, -] - -[package.dependencies] -click = "*" - [[package]] name = "colorama" version = "0.4.6" @@ -385,62 +371,6 @@ files = [ [package.extras] toml = ["tomli"] -[[package]] -name = "cryptography" -version = "41.0.7" -description = "cryptography is a package which provides cryptographic recipes and primitives to Python developers." -optional = false -python-versions = ">=3.7" -files = [ - {file = "cryptography-41.0.7-cp37-abi3-macosx_10_12_universal2.whl", hash = "sha256:3c78451b78313fa81607fa1b3f1ae0a5ddd8014c38a02d9db0616133987b9cdf"}, - {file = "cryptography-41.0.7-cp37-abi3-macosx_10_12_x86_64.whl", hash = "sha256:928258ba5d6f8ae644e764d0f996d61a8777559f72dfeb2eea7e2fe0ad6e782d"}, - {file = "cryptography-41.0.7-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:5a1b41bc97f1ad230a41657d9155113c7521953869ae57ac39ac7f1bb471469a"}, - {file = "cryptography-41.0.7-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:841df4caa01008bad253bce2a6f7b47f86dc9f08df4b433c404def869f590a15"}, - {file = "cryptography-41.0.7-cp37-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:5429ec739a29df2e29e15d082f1d9ad683701f0ec7709ca479b3ff2708dae65a"}, - {file = "cryptography-41.0.7-cp37-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:43f2552a2378b44869fe8827aa19e69512e3245a219104438692385b0ee119d1"}, - {file = "cryptography-41.0.7-cp37-abi3-musllinux_1_1_aarch64.whl", hash = "sha256:af03b32695b24d85a75d40e1ba39ffe7db7ffcb099fe507b39fd41a565f1b157"}, - {file = "cryptography-41.0.7-cp37-abi3-musllinux_1_1_x86_64.whl", hash = "sha256:49f0805fc0b2ac8d4882dd52f4a3b935b210935d500b6b805f321addc8177406"}, - {file = "cryptography-41.0.7-cp37-abi3-win32.whl", hash = "sha256:f983596065a18a2183e7f79ab3fd4c475205b839e02cbc0efbbf9666c4b3083d"}, - {file = "cryptography-41.0.7-cp37-abi3-win_amd64.whl", hash = "sha256:90452ba79b8788fa380dfb587cca692976ef4e757b194b093d845e8d99f612f2"}, - {file = "cryptography-41.0.7-pp310-pypy310_pp73-macosx_10_12_x86_64.whl", hash = "sha256:079b85658ea2f59c4f43b70f8119a52414cdb7be34da5d019a77bf96d473b960"}, - {file = "cryptography-41.0.7-pp310-pypy310_pp73-manylinux_2_28_aarch64.whl", hash = "sha256:b640981bf64a3e978a56167594a0e97db71c89a479da8e175d8bb5be5178c003"}, - {file = "cryptography-41.0.7-pp310-pypy310_pp73-manylinux_2_28_x86_64.whl", hash = "sha256:e3114da6d7f95d2dee7d3f4eec16dacff819740bbab931aff8648cb13c5ff5e7"}, - {file = "cryptography-41.0.7-pp310-pypy310_pp73-win_amd64.whl", hash = "sha256:d5ec85080cce7b0513cfd233914eb8b7bbd0633f1d1703aa28d1dd5a72f678ec"}, - {file = "cryptography-41.0.7-pp38-pypy38_pp73-macosx_10_12_x86_64.whl", hash = "sha256:7a698cb1dac82c35fcf8fe3417a3aaba97de16a01ac914b89a0889d364d2f6be"}, - {file = "cryptography-41.0.7-pp38-pypy38_pp73-manylinux_2_28_aarch64.whl", hash = "sha256:37a138589b12069efb424220bf78eac59ca68b95696fc622b6ccc1c0a197204a"}, - {file = "cryptography-41.0.7-pp38-pypy38_pp73-manylinux_2_28_x86_64.whl", hash = "sha256:68a2dec79deebc5d26d617bfdf6e8aab065a4f34934b22d3b5010df3ba36612c"}, - {file = "cryptography-41.0.7-pp38-pypy38_pp73-win_amd64.whl", hash = "sha256:09616eeaef406f99046553b8a40fbf8b1e70795a91885ba4c96a70793de5504a"}, - {file = "cryptography-41.0.7-pp39-pypy39_pp73-macosx_10_12_x86_64.whl", hash = "sha256:48a0476626da912a44cc078f9893f292f0b3e4c739caf289268168d8f4702a39"}, - {file = "cryptography-41.0.7-pp39-pypy39_pp73-manylinux_2_28_aarch64.whl", hash = "sha256:c7f3201ec47d5207841402594f1d7950879ef890c0c495052fa62f58283fde1a"}, - {file = "cryptography-41.0.7-pp39-pypy39_pp73-manylinux_2_28_x86_64.whl", hash = "sha256:c5ca78485a255e03c32b513f8c2bc39fedb7f5c5f8535545bdc223a03b24f248"}, - {file = "cryptography-41.0.7-pp39-pypy39_pp73-win_amd64.whl", hash = "sha256:d6c391c021ab1f7a82da5d8d0b3cee2f4b2c455ec86c8aebbc84837a631ff309"}, - {file = "cryptography-41.0.7.tar.gz", hash = "sha256:13f93ce9bea8016c253b34afc6bd6a75993e5c40672ed5405a9c832f0d4a00bc"}, -] - -[package.dependencies] -cffi = ">=1.12" - -[package.extras] -docs = ["sphinx (>=5.3.0)", "sphinx-rtd-theme (>=1.1.1)"] -docstest = ["pyenchant (>=1.6.11)", "sphinxcontrib-spelling (>=4.0.1)", "twine (>=1.12.0)"] -nox = ["nox"] -pep8test = ["black", "check-sdist", "mypy", "ruff"] -sdist = ["build"] -ssh = ["bcrypt (>=3.1.5)"] -test = ["pretend", "pytest (>=6.2.0)", "pytest-benchmark", "pytest-cov", "pytest-xdist"] -test-randomorder = ["pytest-randomly"] - -[[package]] -name = "docutils" -version = "0.20.1" -description = "Docutils -- Python Documentation Utilities" -optional = false -python-versions = ">=3.7" -files = [ - {file = "docutils-0.20.1-py3-none-any.whl", hash = "sha256:96f387a2c5562db4476f09f13bbab2192e764cac08ebbf3a34a95d9b1e4a59d6"}, - {file = "docutils-0.20.1.tar.gz", hash = "sha256:f08a4e276c3a1583a86dce3e34aba3fe04d02bba2dd51ed16106244e8a923e3b"}, -] - [[package]] name = "dotty-dict" version = "1.3.1" @@ -665,23 +595,19 @@ files = [ ] [[package]] -name = "importlib-metadata" -version = "7.0.1" -description = "Read metadata from Python packages" +name = "importlib-resources" +version = "6.1.1" +description = "Read resources from Python packages" optional = false python-versions = ">=3.8" files = [ - {file = "importlib_metadata-7.0.1-py3-none-any.whl", hash = "sha256:4805911c3a4ec7c3966410053e9ec6a1fecd629117df5adee56dfc9432a1081e"}, - {file = "importlib_metadata-7.0.1.tar.gz", hash = "sha256:f238736bb06590ae52ac1fab06a3a9ef1d8dce2b7a35b5ab329371d6c8f5d2cc"}, + {file = "importlib_resources-6.1.1-py3-none-any.whl", hash = "sha256:e8bf90d8213b486f428c9c39714b920041cb02c184686a3dee24905aaa8105d6"}, + {file = "importlib_resources-6.1.1.tar.gz", hash = "sha256:3893a00122eafde6894c59914446a512f728a0c1a45f9bb9b63721b6bacf0b4a"}, ] -[package.dependencies] -zipp = ">=0.5" - [package.extras] docs = ["furo", "jaraco.packaging (>=9.3)", "jaraco.tidelift (>=1.4)", "rst.linker (>=1.9)", "sphinx (<7.2.5)", "sphinx (>=3.5)", "sphinx-lint"] -perf = ["ipython"] -testing = ["flufl.flake8", "importlib-resources (>=1.3)", "packaging", "pyfakefs", "pytest (>=6)", "pytest-black (>=0.3.7)", "pytest-checkdocs (>=2.4)", "pytest-cov", "pytest-enabler (>=2.2)", "pytest-mypy (>=0.9.1)", "pytest-perf (>=0.9.2)", "pytest-ruff"] +testing = ["pytest (>=6)", "pytest-black (>=0.3.7)", "pytest-checkdocs (>=2.4)", "pytest-cov", "pytest-enabler (>=2.2)", "pytest-mypy (>=0.9.1)", "pytest-ruff", "zipp (>=3.17)"] [[package]] name = "iniconfig" @@ -694,17 +620,6 @@ files = [ {file = "iniconfig-2.0.0.tar.gz", hash = "sha256:2d91e135bf72d31a410b17c16da610a82cb55f6b0477d1a902134b24a455b8b3"}, ] -[[package]] -name = "invoke" -version = "2.2.0" -description = "Pythonic task execution" -optional = false -python-versions = ">=3.6" -files = [ - {file = "invoke-2.2.0-py3-none-any.whl", hash = "sha256:6ea924cc53d4f78e3d98bc436b08069a03077e6f85ad1ddaa8a116d7dad15820"}, - {file = "invoke-2.2.0.tar.gz", hash = "sha256:ee6cbb101af1a859c7fe84f2a264c059020b0cb7fe3535f9424300ab568f6bd5"}, -] - [[package]] name = "isort" version = "5.13.2" @@ -719,39 +634,6 @@ files = [ [package.extras] colors = ["colorama (>=0.4.6)"] -[[package]] -name = "jaraco-classes" -version = "3.3.0" -description = "Utility functions for Python class constructs" -optional = false -python-versions = ">=3.8" -files = [ - {file = "jaraco.classes-3.3.0-py3-none-any.whl", hash = "sha256:10afa92b6743f25c0cf5f37c6bb6e18e2c5bb84a16527ccfc0040ea377e7aaeb"}, - {file = "jaraco.classes-3.3.0.tar.gz", hash = "sha256:c063dd08e89217cee02c8d5e5ec560f2c8ce6cdc2fcdc2e68f7b2e5547ed3621"}, -] - -[package.dependencies] -more-itertools = "*" - -[package.extras] -docs = ["furo", "jaraco.packaging (>=9.3)", "jaraco.tidelift (>=1.4)", "rst.linker (>=1.9)", "sphinx (>=3.5)", "sphinx-lint"] -testing = ["pytest (>=6)", "pytest-black (>=0.3.7)", "pytest-checkdocs (>=2.4)", "pytest-cov", "pytest-enabler (>=2.2)", "pytest-mypy (>=0.9.1)", "pytest-ruff"] - -[[package]] -name = "jeepney" -version = "0.8.0" -description = "Low-level, pure Python DBus protocol wrapper." -optional = false -python-versions = ">=3.7" -files = [ - {file = "jeepney-0.8.0-py3-none-any.whl", hash = "sha256:c0a454ad016ca575060802ee4d590dd912e35c122fa04e70306de3d076cce755"}, - {file = "jeepney-0.8.0.tar.gz", hash = "sha256:5efe48d255973902f6badc3ce55e2aa6c5c3b3bc642059ef3a91247bcfcc5806"}, -] - -[package.extras] -test = ["async-timeout", "pytest", "pytest-asyncio (>=0.17)", "pytest-trio", "testpath", "trio"] -trio = ["async_generator", "trio"] - [[package]] name = "jinja2" version = "3.1.2" @@ -770,41 +652,43 @@ MarkupSafe = ">=2.0" i18n = ["Babel (>=2.7)"] [[package]] -name = "keyring" -version = "24.3.0" -description = "Store and access your passwords safely." +name = "markdown" +version = "3.5.1" +description = "Python implementation of John Gruber's Markdown." optional = false python-versions = ">=3.8" files = [ - {file = "keyring-24.3.0-py3-none-any.whl", hash = "sha256:4446d35d636e6a10b8bce7caa66913dd9eca5fd222ca03a3d42c38608ac30836"}, - {file = "keyring-24.3.0.tar.gz", hash = "sha256:e730ecffd309658a08ee82535a3b5ec4b4c8669a9be11efb66249d8e0aeb9a25"}, + {file = "Markdown-3.5.1-py3-none-any.whl", hash = "sha256:5874b47d4ee3f0b14d764324d2c94c03ea66bee56f2d929da9f2508d65e722dc"}, + {file = "Markdown-3.5.1.tar.gz", hash = "sha256:b65d7beb248dc22f2e8a31fb706d93798093c308dc1aba295aedeb9d41a813bd"}, ] -[package.dependencies] -"jaraco.classes" = "*" -jeepney = {version = ">=0.4.2", markers = "sys_platform == \"linux\""} -pywin32-ctypes = {version = ">=0.2.0", markers = "sys_platform == \"win32\""} -SecretStorage = {version = ">=3.2", markers = "sys_platform == \"linux\""} - [package.extras] -completion = ["shtab (>=1.1.0)"] -docs = ["furo", "jaraco.packaging (>=9.3)", "jaraco.tidelift (>=1.4)", "rst.linker (>=1.9)", "sphinx (<7.2.5)", "sphinx (>=3.5)", "sphinx-lint"] -testing = ["pytest (>=6)", "pytest-black (>=0.3.7)", "pytest-checkdocs (>=2.4)", "pytest-cov", "pytest-enabler (>=2.2)", "pytest-mypy (>=0.9.1)", "pytest-ruff"] +docs = ["mdx-gh-links (>=0.2)", "mkdocs (>=1.5)", "mkdocs-gen-files", "mkdocs-literate-nav", "mkdocs-nature (>=0.6)", "mkdocs-section-index", "mkdocstrings[python]"] +testing = ["coverage", "pyyaml"] [[package]] -name = "markdown" -version = "3.5.1" -description = "Python implementation of John Gruber's Markdown." +name = "markdown-it-py" +version = "3.0.0" +description = "Python port of markdown-it. Markdown parsing, done right!" optional = false python-versions = ">=3.8" files = [ - {file = "Markdown-3.5.1-py3-none-any.whl", hash = "sha256:5874b47d4ee3f0b14d764324d2c94c03ea66bee56f2d929da9f2508d65e722dc"}, - {file = "Markdown-3.5.1.tar.gz", hash = "sha256:b65d7beb248dc22f2e8a31fb706d93798093c308dc1aba295aedeb9d41a813bd"}, + {file = "markdown-it-py-3.0.0.tar.gz", hash = "sha256:e3f60a94fa066dc52ec76661e37c851cb232d92f9886b15cb560aaada2df8feb"}, + {file = "markdown_it_py-3.0.0-py3-none-any.whl", hash = "sha256:355216845c60bd96232cd8d8c40e8f9765cc86f46880e43a8fd22dc1a1a8cab1"}, ] +[package.dependencies] +mdurl = ">=0.1,<1.0" + [package.extras] -docs = ["mdx-gh-links (>=0.2)", "mkdocs (>=1.5)", "mkdocs-gen-files", "mkdocs-literate-nav", "mkdocs-nature (>=0.6)", "mkdocs-section-index", "mkdocstrings[python]"] -testing = ["coverage", "pyyaml"] +benchmarking = ["psutil", "pytest", "pytest-benchmark"] +code-style = ["pre-commit (>=3.0,<4.0)"] +compare = ["commonmark (>=0.9,<1.0)", "markdown (>=3.4,<4.0)", "mistletoe (>=1.0,<2.0)", "mistune (>=2.0,<3.0)", "panflute (>=2.3,<3.0)"] +linkify = ["linkify-it-py (>=1,<3)"] +plugins = ["mdit-py-plugins"] +profiling = ["gprof2dot"] +rtd = ["jupyter_sphinx", "mdit-py-plugins", "myst-parser", "pyyaml", "sphinx", "sphinx-copybutton", "sphinx-design", "sphinx_book_theme"] +testing = ["coverage", "pytest", "pytest-cov", "pytest-regressions"] [[package]] name = "markupsafe" @@ -886,6 +770,17 @@ files = [ {file = "mccabe-0.7.0.tar.gz", hash = "sha256:348e0240c33b60bbdf4e523192ef919f28cb2c3d7d5c7794f74009290f236325"}, ] +[[package]] +name = "mdurl" +version = "0.1.2" +description = "Markdown URL utilities" +optional = false +python-versions = ">=3.7" +files = [ + {file = "mdurl-0.1.2-py3-none-any.whl", hash = "sha256:84008a41e51615a49fc9966191ff91509e3c40b939176e643fd50a5c2196b8f8"}, + {file = "mdurl-0.1.2.tar.gz", hash = "sha256:bb413d29f5eea38f31dd4754dd7377d4465116fb207585f97bf925588687c1ba"}, +] + [[package]] name = "mergedeep" version = "1.3.4" @@ -1024,17 +919,6 @@ files = [ griffe = ">=0.37" mkdocstrings = ">=0.20" -[[package]] -name = "more-itertools" -version = "10.1.0" -description = "More routines for operating on iterables, beyond itertools" -optional = false -python-versions = ">=3.8" -files = [ - {file = "more-itertools-10.1.0.tar.gz", hash = "sha256:626c369fa0eb37bac0291bce8259b332fd59ac792fa5497b59837309cd5b114a"}, - {file = "more_itertools-10.1.0-py3-none-any.whl", hash = "sha256:64e0735fcfdc6f3464ea133afe8ea4483b1c5fe3a3d69852e6503b43a0b222e6"}, -] - [[package]] name = "mypy" version = "1.8.0" @@ -1092,31 +976,6 @@ files = [ {file = "mypy_extensions-1.0.0.tar.gz", hash = "sha256:75dbf8955dc00442a438fc4d0666508a9a97b6bd41aa2f0ffe9d2f2725af0782"}, ] -[[package]] -name = "nh3" -version = "0.2.15" -description = "Python bindings to the ammonia HTML sanitization library." -optional = false -python-versions = "*" -files = [ - {file = "nh3-0.2.15-cp37-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl", hash = "sha256:9c0d415f6b7f2338f93035bba5c0d8c1b464e538bfbb1d598acd47d7969284f0"}, - {file = "nh3-0.2.15-cp37-abi3-macosx_10_12_x86_64.whl", hash = "sha256:6f42f99f0cf6312e470b6c09e04da31f9abaadcd3eb591d7d1a88ea931dca7f3"}, - {file = "nh3-0.2.15-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ac19c0d68cd42ecd7ead91a3a032fdfff23d29302dbb1311e641a130dfefba97"}, - {file = "nh3-0.2.15-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:5f0d77272ce6d34db6c87b4f894f037d55183d9518f948bba236fe81e2bb4e28"}, - {file = "nh3-0.2.15-cp37-abi3-manylinux_2_17_ppc64.manylinux2014_ppc64.whl", hash = "sha256:8d595df02413aa38586c24811237e95937ef18304e108b7e92c890a06793e3bf"}, - {file = "nh3-0.2.15-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:86e447a63ca0b16318deb62498db4f76fc60699ce0a1231262880b38b6cff911"}, - {file = "nh3-0.2.15-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:3277481293b868b2715907310c7be0f1b9d10491d5adf9fce11756a97e97eddf"}, - {file = "nh3-0.2.15-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:60684857cfa8fdbb74daa867e5cad3f0c9789415aba660614fe16cd66cbb9ec7"}, - {file = "nh3-0.2.15-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:3b803a5875e7234907f7d64777dfde2b93db992376f3d6d7af7f3bc347deb305"}, - {file = "nh3-0.2.15-cp37-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:0d02d0ff79dfd8208ed25a39c12cbda092388fff7f1662466e27d97ad011b770"}, - {file = "nh3-0.2.15-cp37-abi3-musllinux_1_2_armv7l.whl", hash = "sha256:f3b53ba93bb7725acab1e030bc2ecd012a817040fd7851b332f86e2f9bb98dc6"}, - {file = "nh3-0.2.15-cp37-abi3-musllinux_1_2_i686.whl", hash = "sha256:b1e97221cedaf15a54f5243f2c5894bb12ca951ae4ddfd02a9d4ea9df9e1a29d"}, - {file = "nh3-0.2.15-cp37-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:a5167a6403d19c515217b6bcaaa9be420974a6ac30e0da9e84d4fc67a5d474c5"}, - {file = "nh3-0.2.15-cp37-abi3-win32.whl", hash = "sha256:427fecbb1031db085eaac9931362adf4a796428ef0163070c484b5a768e71601"}, - {file = "nh3-0.2.15-cp37-abi3-win_amd64.whl", hash = "sha256:bc2d086fb540d0fa52ce35afaded4ea526b8fc4d3339f783db55c95de40ef02e"}, - {file = "nh3-0.2.15.tar.gz", hash = "sha256:d1e30ff2d8d58fb2a14961f7aac1bbb1c51f9bdd7da727be35c63826060b0bf3"}, -] - [[package]] name = "outcome" version = "1.3.0.post0" @@ -1163,20 +1022,6 @@ files = [ {file = "pathspec-0.12.1.tar.gz", hash = "sha256:a482d51503a1ab33b1c67a6c3813a26953dbdc71c31dacaef9a838c4e29f5712"}, ] -[[package]] -name = "pkginfo" -version = "1.9.6" -description = "Query metadata from sdists / bdists / installed packages." -optional = false -python-versions = ">=3.6" -files = [ - {file = "pkginfo-1.9.6-py3-none-any.whl", hash = "sha256:4b7a555a6d5a22169fcc9cf7bfd78d296b0361adad412a346c1226849af5e546"}, - {file = "pkginfo-1.9.6.tar.gz", hash = "sha256:8fd5896e8718a4372f0ea9cc9d96f6417c9b986e23a4d116dda26b62cc29d046"}, -] - -[package.extras] -testing = ["pytest", "pytest-cov"] - [[package]] name = "platformdirs" version = "4.1.0" @@ -1514,13 +1359,13 @@ cli = ["click (>=5.0)"] [[package]] name = "python-gitlab" -version = "3.15.0" -description = "Interact with GitLab API" +version = "4.3.0" +description = "A python wrapper for the GitLab API" optional = false -python-versions = ">=3.7.0" +python-versions = ">=3.8.0" files = [ - {file = "python-gitlab-3.15.0.tar.gz", hash = "sha256:c9e65eb7612a9fbb8abf0339972eca7fd7a73d4da66c9b446ffe528930aff534"}, - {file = "python_gitlab-3.15.0-py3-none-any.whl", hash = "sha256:8f8d1c0d387f642eb1ac7bf5e8e0cd8b3dd49c6f34170cee3c7deb7d384611f3"}, + {file = "python-gitlab-4.3.0.tar.gz", hash = "sha256:eb31d1f2bfd8653f74996f9d0bf84ce7afb0843f9122a257c9a93b0e027d1df0"}, + {file = "python_gitlab-4.3.0-py3-none-any.whl", hash = "sha256:cc1dc49c562c02ffbad3656e668234c45ea6210688ade59865b284313f45000d"}, ] [package.dependencies] @@ -1529,49 +1374,37 @@ requests-toolbelt = ">=0.10.1" [package.extras] autocompletion = ["argcomplete (>=1.10.0,<3)"] -yaml = ["PyYaml (>=5.2)"] +yaml = ["PyYaml (>=6.0.1)"] [[package]] name = "python-semantic-release" -version = "7.34.6" +version = "8.7.0" description = "Automatic Semantic Versioning for Python projects" optional = false -python-versions = "*" +python-versions = ">=3.7" files = [ - {file = "python-semantic-release-7.34.6.tar.gz", hash = "sha256:e9b8fb788024ae9510a924136d573588415a16eeca31cc5240f2754a80a2e831"}, - {file = "python_semantic_release-7.34.6-py3-none-any.whl", hash = "sha256:7e3969ba4663d9b2087b02bf3ac140e202551377bf045c34e09bfe19753e19ab"}, + {file = "python-semantic-release-8.7.0.tar.gz", hash = "sha256:6bbd11b1e8ac70e0946ed6d257094c851b2507edfbc393eef6093d0ed1dbe0b4"}, + {file = "python_semantic_release-8.7.0-py3-none-any.whl", hash = "sha256:a016b1cf43a5f3667ce2cfddd8e30b6210a2d52b0e2f6b487aae1164f2540eaa"}, ] [package.dependencies] -click = ">=7,<9" -click-log = ">=0.3,<1" +click = ">=8,<9" dotty-dict = ">=1.3.0,<2" gitpython = ">=3.0.8,<4" -invoke = ">=1.4.1,<3" -packaging = "*" -python-gitlab = ">=2,<4" +importlib-resources = ">=5.7,<7" +jinja2 = ">=3.1.2,<4" +pydantic = ">=2,<3" +python-gitlab = ">=2,<5" requests = ">=2.25,<3" -semver = ">=2.10,<3" +rich = ">=12.5.1" +shellingham = ">=1.5.0.post1" tomlkit = ">=0.10,<1.0" -twine = ">=3,<4" -wheel = "*" [package.extras] -dev = ["black", "isort", "tox"] -docs = ["Jinja2 (==3.0.3)", "Sphinx (==1.8.6)"] +dev = ["pre-commit", "ruff (==0.1.8)", "tox"] +docs = ["Sphinx (<=6.0.0)", "furo (>=2023.3.27)", "sphinx-autobuild (==2021.03.14)", "sphinxcontrib-apidoc (==0.3.0)"] mypy = ["mypy", "types-requests"] -test = ["coverage (>=5,<6)", "mock (==1.3.0)", "pytest (>=7,<8)", "pytest-mock (>=2,<3)", "pytest-xdist (>=1,<2)", "responses (==0.13.3)"] - -[[package]] -name = "pywin32-ctypes" -version = "0.2.2" -description = "A (partial) reimplementation of pywin32 using ctypes/cffi" -optional = false -python-versions = ">=3.6" -files = [ - {file = "pywin32-ctypes-0.2.2.tar.gz", hash = "sha256:3426e063bdd5fd4df74a14fa3cf80a0b42845a87e1d1e81f6549f9daec593a60"}, - {file = "pywin32_ctypes-0.2.2-py3-none-any.whl", hash = "sha256:bf490a1a709baf35d688fe0ecf980ed4de11d2b3e37b51e5442587a75d9957e7"}, -] +test = ["coverage[toml] (>=6,<8)", "pytest (>=7,<8)", "pytest-clarity (>=1.0.1)", "pytest-cov (>=4,<5)", "pytest-lazy-fixture (>=0.6.3,<0.7.0)", "pytest-mock (>=3,<4)", "pytest-pretty (>=1.2.0,<2)", "pytest-xdist (>=2,<4)", "requests-mock (>=1.10.0,<2)", "responses (==0.23.3)", "types-pytest-lazy-fixture (>=0.6.3.3)"] [[package]] name = "pyyaml" @@ -1646,25 +1479,6 @@ files = [ [package.dependencies] pyyaml = "*" -[[package]] -name = "readme-renderer" -version = "42.0" -description = "readme_renderer is a library for rendering readme descriptions for Warehouse" -optional = false -python-versions = ">=3.8" -files = [ - {file = "readme_renderer-42.0-py3-none-any.whl", hash = "sha256:13d039515c1f24de668e2c93f2e877b9dbe6c6c32328b90a40a49d8b2b85f36d"}, - {file = "readme_renderer-42.0.tar.gz", hash = "sha256:2d55489f83be4992fe4454939d1a051c33edbab778e82761d060c9fc6b308cd1"}, -] - -[package.dependencies] -docutils = ">=0.13.1" -nh3 = ">=0.2.14" -Pygments = ">=2.5.1" - -[package.extras] -md = ["cmarkgfm (>=0.8.0)"] - [[package]] name = "regex" version = "2023.12.25" @@ -1817,43 +1631,32 @@ files = [ httpx = ">=0.21.0" [[package]] -name = "rfc3986" -version = "2.0.0" -description = "Validating URI References per RFC 3986" -optional = false -python-versions = ">=3.7" -files = [ - {file = "rfc3986-2.0.0-py2.py3-none-any.whl", hash = "sha256:50b1502b60e289cb37883f3dfd34532b8873c7de9f49bb546641ce9cbd256ebd"}, - {file = "rfc3986-2.0.0.tar.gz", hash = "sha256:97aacf9dbd4bfd829baad6e6309fa6573aaf1be3f6fa735c8ab05e46cecb261c"}, -] - -[package.extras] -idna2008 = ["idna"] - -[[package]] -name = "secretstorage" -version = "3.3.3" -description = "Python bindings to FreeDesktop.org Secret Service API" +name = "rich" +version = "13.7.0" +description = "Render rich text, tables, progress bars, syntax highlighting, markdown and more to the terminal" optional = false -python-versions = ">=3.6" +python-versions = ">=3.7.0" files = [ - {file = "SecretStorage-3.3.3-py3-none-any.whl", hash = "sha256:f356e6628222568e3af06f2eba8df495efa13b3b63081dafd4f7d9a7b7bc9f99"}, - {file = "SecretStorage-3.3.3.tar.gz", hash = "sha256:2403533ef369eca6d2ba81718576c5e0f564d5cca1b58f73a8b23e7d4eeebd77"}, + {file = "rich-13.7.0-py3-none-any.whl", hash = "sha256:6da14c108c4866ee9520bbffa71f6fe3962e193b7da68720583850cd4548e235"}, + {file = "rich-13.7.0.tar.gz", hash = "sha256:5cb5123b5cf9ee70584244246816e9114227e0b98ad9176eede6ad54bf5403fa"}, ] [package.dependencies] -cryptography = ">=2.0" -jeepney = ">=0.6" +markdown-it-py = ">=2.2.0" +pygments = ">=2.13.0,<3.0.0" + +[package.extras] +jupyter = ["ipywidgets (>=7.5.1,<9)"] [[package]] -name = "semver" -version = "2.13.0" -description = "Python helper for Semantic Versioning (http://semver.org/)" +name = "shellingham" +version = "1.5.4" +description = "Tool to Detect Surrounding Shell" optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" +python-versions = ">=3.7" files = [ - {file = "semver-2.13.0-py2.py3-none-any.whl", hash = "sha256:ced8b23dceb22134307c1b8abfa523da14198793d9787ac838e70e29e77458d4"}, - {file = "semver-2.13.0.tar.gz", hash = "sha256:fa0fe2722ee1c3f57eac478820c3a5ae2f624af8264cbdf9000c980ff7f75e3f"}, + {file = "shellingham-1.5.4-py2.py3-none-any.whl", hash = "sha256:7ecfff8f2fd72616f7481040475a65b2bf8af90a56c89140852d1120324e8686"}, + {file = "shellingham-1.5.4.tar.gz", hash = "sha256:8dbca0739d487e5bd35ab3ca4b36e11c4078f3a234bfce294b0a0291363404de"}, ] [[package]] @@ -1942,26 +1745,6 @@ files = [ {file = "tomlkit-0.12.3.tar.gz", hash = "sha256:75baf5012d06501f07bee5bf8e801b9f343e7aac5a92581f20f80ce632e6b5a4"}, ] -[[package]] -name = "tqdm" -version = "4.66.1" -description = "Fast, Extensible Progress Meter" -optional = false -python-versions = ">=3.7" -files = [ - {file = "tqdm-4.66.1-py3-none-any.whl", hash = "sha256:d302b3c5b53d47bce91fea46679d9c3c6508cf6332229aa1e7d8653723793386"}, - {file = "tqdm-4.66.1.tar.gz", hash = "sha256:d88e651f9db8d8551a62556d3cff9e3034274ca5d66e93197cf2490e2dcb69c7"}, -] - -[package.dependencies] -colorama = {version = "*", markers = "platform_system == \"Windows\""} - -[package.extras] -dev = ["pytest (>=6)", "pytest-cov", "pytest-timeout", "pytest-xdist"] -notebook = ["ipywidgets (>=6)"] -slack = ["slack-sdk"] -telegram = ["requests"] - [[package]] name = "trio" version = "0.23.2" @@ -1981,29 +1764,6 @@ outcome = "*" sniffio = ">=1.3.0" sortedcontainers = "*" -[[package]] -name = "twine" -version = "3.8.0" -description = "Collection of utilities for publishing packages on PyPI" -optional = false -python-versions = ">=3.6" -files = [ - {file = "twine-3.8.0-py3-none-any.whl", hash = "sha256:d0550fca9dc19f3d5e8eadfce0c227294df0a2a951251a4385797c8a6198b7c8"}, - {file = "twine-3.8.0.tar.gz", hash = "sha256:8efa52658e0ae770686a13b675569328f1fba9837e5de1867bfe5f46a9aefe19"}, -] - -[package.dependencies] -colorama = ">=0.4.3" -importlib-metadata = ">=3.6" -keyring = ">=15.1" -pkginfo = ">=1.8.1" -readme-renderer = ">=21.0" -requests = ">=2.20" -requests-toolbelt = ">=0.8.0,<0.9.0 || >0.9.0" -rfc3986 = ">=1.4.0" -tqdm = ">=4.14" -urllib3 = ">=1.26.0" - [[package]] name = "typing-extensions" version = "4.9.0" @@ -2307,36 +2067,7 @@ files = [ {file = "websockets-12.0.tar.gz", hash = "sha256:81df9cbcbb6c260de1e007e58c011bfebe2dafc8435107b0537f393dd38c8b1b"}, ] -[[package]] -name = "wheel" -version = "0.42.0" -description = "A built-package format for Python" -optional = false -python-versions = ">=3.7" -files = [ - {file = "wheel-0.42.0-py3-none-any.whl", hash = "sha256:177f9c9b0d45c47873b619f5b650346d632cdc35fb5e4d25058e09c9e581433d"}, - {file = "wheel-0.42.0.tar.gz", hash = "sha256:c45be39f7882c9d34243236f2d63cbd58039e360f85d0913425fbd7ceea617a8"}, -] - -[package.extras] -test = ["pytest (>=6.0.0)", "setuptools (>=65)"] - -[[package]] -name = "zipp" -version = "3.17.0" -description = "Backport of pathlib-compatible object wrapper for zip files" -optional = false -python-versions = ">=3.8" -files = [ - {file = "zipp-3.17.0-py3-none-any.whl", hash = "sha256:0e923e726174922dce09c53c59ad483ff7bbb8e572e00c7f7c46b88556409f31"}, - {file = "zipp-3.17.0.tar.gz", hash = "sha256:84e64a1c28cf7e91ed2078bb8cc8c259cb19b76942096c8d7b84947690cabaf0"}, -] - -[package.extras] -docs = ["furo", "jaraco.packaging (>=9.3)", "jaraco.tidelift (>=1.4)", "rst.linker (>=1.9)", "sphinx (<7.2.5)", "sphinx (>=3.5)", "sphinx-lint"] -testing = ["big-O", "jaraco.functools", "jaraco.itertools", "more-itertools", "pytest (>=6)", "pytest-black (>=0.3.7)", "pytest-checkdocs (>=2.4)", "pytest-cov", "pytest-enabler (>=2.2)", "pytest-ignore-flaky", "pytest-mypy (>=0.9.1)", "pytest-ruff"] - [metadata] lock-version = "2.0" python-versions = "^3.12.1" -content-hash = "ba075cef62a0b55d7caffa4afaeaa21a5fbc3104816bab93ed371950250c19cd" +content-hash = "26da3cd62a84723ea85782f8b227b6ee405e89c10ba1cd85fa828ae98b8b3507" diff --git a/pyproject.toml b/pyproject.toml index ca0e99c..623815e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -47,19 +47,73 @@ mkdocstrings = {extras = ["python"], version = "^0.24.0"} [tool.poetry.group.semver.dependencies] -python-semantic-release = "^7.32.2" +python-semantic-release = "^8.0.0" + +#[tool.semantic_release] +#branch = "main" +#version_variable = ["src/python_app_template/__init__.py:__version__"] +#version_toml = ["pyproject.toml:tool.poetry.version"] +#version_source = "tag" +#commit_message = "{version} [skip ci]" # skip ci pipeline for version bumps +#commit_version_number = true +#tag_commit = true +#upload_to_pypi = false +#upload_to_release = false +#hvcs = "github" [tool.semantic_release] -branch = "main" -version_variable = ["src/python_app_template/__init__.py:__version__"] -version_toml = ["pyproject.toml:tool.poetry.version"] -version_source = "tag" -commit_message = "{version} [skip ci]" # skip ci pipeline for version bumps -commit_version_number = true -tag_commit = true -upload_to_pypi = false -upload_to_release = false -hvcs = "github" +assets = [] +commit_message = "{version}\n\nAutomatically generated by python-semantic-release" +commit_parser = "angular" +logging_use_named_masks = false +major_on_zero = true +tag_format = "v{version}" +version_variable = ["version.py:__version__"] + +[tool.semantic_release.branches.main] +match = "(main|master)" +prerelease_token = "rc" +prerelease = false + +[tool.semantic_release.changelog] +template_dir = "templates" +changelog_file = "CHANGELOG.md" +exclude_commit_patterns = [] + +[tool.semantic_release.changelog.environment] +block_start_string = "{%" +block_end_string = "%}" +variable_start_string = "{{" +variable_end_string = "}}" +comment_start_string = "{#" +comment_end_string = "#}" +trim_blocks = false +lstrip_blocks = false +newline_sequence = "\n" +keep_trailing_newline = false +extensions = [] +autoescape = true + +[tool.semantic_release.commit_author] +env = "GIT_COMMIT_AUTHOR" +default = "semantic-release " + +[tool.semantic_release.commit_parser_options] +allowed_tags = ["build", "chore", "ci", "docs", "feat", "fix", "perf", "style", "refactor", "test"] +minor_tags = ["feat"] +patch_tags = ["fix", "perf"] + +[tool.semantic_release.remote] +name = "origin" +type = "github" +ignore_token_for_push = false + +[tool.semantic_release.remote.token] +env = "GH_TOKEN" + +[tool.semantic_release.publish] +dist_glob_patterns = ["dist/*"] +upload_to_vcs_release = true diff --git a/src/python_app_template/__init__.py b/src/python_app_template/__init__.py index 3d18726..e69de29 100644 --- a/src/python_app_template/__init__.py +++ b/src/python_app_template/__init__.py @@ -1 +0,0 @@ -__version__ = "0.5.0" diff --git a/version.py b/version.py new file mode 100644 index 0000000..2b8877c --- /dev/null +++ b/version.py @@ -0,0 +1 @@ +__version__ = '0.5.0' From 8fe2193dc1ebdc476bc3f94177e76bb099755d47 Mon Sep 17 00:00:00 2001 From: Tom Harrison Date: Thu, 4 Jan 2024 19:58:45 -0500 Subject: [PATCH 2/3] fix: formatting --- version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/version.py b/version.py index 2b8877c..3d18726 100644 --- a/version.py +++ b/version.py @@ -1 +1 @@ -__version__ = '0.5.0' +__version__ = "0.5.0" From b411e0ae1a3bc1e30612aaf08feae4b61462ac8b Mon Sep 17 00:00:00 2001 From: Tom Harrison Date: Thu, 4 Jan 2024 20:24:07 -0500 Subject: [PATCH 3/3] revert: move version --- src/python_app_template/__init__.py | 1 + src/python_app_template/app.py | 2 +- version.py | 1 - 3 files changed, 2 insertions(+), 2 deletions(-) delete mode 100644 version.py diff --git a/src/python_app_template/__init__.py b/src/python_app_template/__init__.py index e69de29..3d18726 100644 --- a/src/python_app_template/__init__.py +++ b/src/python_app_template/__init__.py @@ -0,0 +1 @@ +__version__ = "0.5.0" diff --git a/src/python_app_template/app.py b/src/python_app_template/app.py index f2decde..56bf687 100644 --- a/src/python_app_template/app.py +++ b/src/python_app_template/app.py @@ -3,7 +3,7 @@ from fastapi import FastAPI, HTTPException, Path, status from httpx import Response -from python_app_template import __version__ +from . import __version__ # app app: FastAPI = FastAPI( diff --git a/version.py b/version.py deleted file mode 100644 index 3d18726..0000000 --- a/version.py +++ /dev/null @@ -1 +0,0 @@ -__version__ = "0.5.0"