From 1dacc8720e073e25ae867b3cd633c6d991e2ecc0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Francis=20Clairicia-Rose-Claire-Jos=C3=A9phine?= Date: Sun, 12 Nov 2023 15:32:37 +0100 Subject: [PATCH] Package version is now computed according to git tree (#162) --- .bumpversion.cfg | 9 +- .gitignore | 3 + docs/source/conf.py | 7 +- pdm.lock | 322 +++++++++++++++++++++++++++++++++++- pyproject.toml | 46 +++++- src/easynetwork/__init__.py | 3 +- 6 files changed, 370 insertions(+), 20 deletions(-) diff --git a/.bumpversion.cfg b/.bumpversion.cfg index 2f923c45..e7285879 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -1,22 +1,17 @@ [bumpversion] current_version = 1.0.0rc6 -parse = (?P\d+)\.(?P\d+)\.(?P\d+)(?:(?Prc|\.dev)(?P\d+))? +parse = (?P\d+)\.(?P\d+)\.(?P\d+)(?:(?Prc)(?P\d+))? serialize = {major}.{minor}.{patch}{release}{serial} {major}.{minor}.{patch} message = Bump version: {current_version} -> {new_version} [bumpversion:part:release] -first_value = .dev +first_value = rc optional_value = final values = - .dev rc final [bumpversion:part:serial] first_value = 1 - -[bumpversion:file:src/easynetwork/__init__.py] - -[bumpversion:file:docs/source/conf.py] diff --git a/.gitignore b/.gitignore index 511277cb..af631867 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,9 @@ .vscode/* !.vscode/settings.example.json +# Auto-generated files at build time +src/easynetwork/version.py + # Compiled requirements requirements*.txt diff --git a/docs/source/conf.py b/docs/source/conf.py index a16419f7..5d740bd6 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -8,19 +8,20 @@ import os.path import sys +from importlib.metadata import version as get_version # -- Project information ----------------------------------------------------- # https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information project = "EasyNetwork" copyright = "2023, Francis Clairicia-Rose-Claire-Josephine" author = "FrankySnow9" -release = "1.0.0rc6" -version = release +release = get_version("easynetwork") +version = ".".join(release.split(".")[:3]) # -- General configuration --------------------------------------------------- # https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration -sys.path.append(os.path.abspath("./_extensions")) +sys.path.append(os.path.abspath(os.path.join(os.curdir, "_extensions"))) extensions = [ # Built-in diff --git a/pdm.lock b/pdm.lock index d74a8281..3dec2506 100644 --- a/pdm.lock +++ b/pdm.lock @@ -5,7 +5,7 @@ groups = ["default", "bandit", "cbor", "dev", "doc", "encryption", "flake8", "format", "msgpack", "mypy", "sniffio", "test", "tox", "uvloop"] strategy = ["cross_platform"] lock_version = "4.4" -content_hash = "sha256:4591316b38963c84319e656024e87fb4b15b1d29f7e3ae5125a7424ad1ca53c0" +content_hash = "sha256:3806cef7d62cd3aae5bbd6e15325c21fc0594b400a8ec7bc17b07eee4f7cdd61" [[package]] name = "alabaster" @@ -17,6 +17,20 @@ files = [ {file = "alabaster-0.7.13.tar.gz", hash = "sha256:a27a4a084d5e690e16e01e03ad2b2e552c61a65469419b907243193de1a84ae2"}, ] +[[package]] +name = "anyio" +version = "4.0.0" +requires_python = ">=3.8" +summary = "High level compatibility layer for multiple asynchronous event loop implementations" +dependencies = [ + "idna>=2.8", + "sniffio>=1.1", +] +files = [ + {file = "anyio-4.0.0-py3-none-any.whl", hash = "sha256:cfdb2b588b9fc25ede96d8db56ed50848b0b649dca3dd1df0b11f683bb9e0b5f"}, + {file = "anyio-4.0.0.tar.gz", hash = "sha256:f7ed51751b2c2add651e5747c891b47e26d2a21be5d32d9311dfe9692f3e5d7a"}, +] + [[package]] name = "apeye" version = "1.4.1" @@ -478,6 +492,16 @@ files = [ {file = "domdf_python_tools-3.7.0.tar.gz", hash = "sha256:df1af9a91649af0fb2a4e7b3a4b0a0936e4f78389dd7280dd6fd2f53a339ca71"}, ] +[[package]] +name = "editables" +version = "0.5" +requires_python = ">=3.7" +summary = "Editable installations" +files = [ + {file = "editables-0.5-py3-none-any.whl", hash = "sha256:61e5ffa82629e0d8bfe09bc44a07db3c1ab8ed1ce78a6980732870f19b5e7d4c"}, + {file = "editables-0.5.tar.gz", hash = "sha256:309627d9b5c4adc0e668d8c6fa7bac1ba7c8c5d415c2d27f60f081f8e80d1de2"}, +] + [[package]] name = "enum-tools" version = "0.11.0" @@ -596,6 +620,74 @@ files = [ {file = "GitPython-3.1.40.tar.gz", hash = "sha256:22b126e9ffb671fdd0c129796343a02bf67bf2994b35449ffc9321aa755e18a4"}, ] +[[package]] +name = "h11" +version = "0.14.0" +requires_python = ">=3.7" +summary = "A pure-Python, bring-your-own-I/O implementation of HTTP/1.1" +files = [ + {file = "h11-0.14.0-py3-none-any.whl", hash = "sha256:e3fe4ac4b851c468cc8363d500db52c2ead036020723024a109d37346efaa761"}, + {file = "h11-0.14.0.tar.gz", hash = "sha256:8f19fbbe99e72420ff35c00b27a34cb9937e902a8b810e2c88300c6f0a3b699d"}, +] + +[[package]] +name = "hatch" +version = "1.7.0" +requires_python = ">=3.7" +summary = "Modern, extensible Python project management" +dependencies = [ + "click>=8.0.3", + "hatchling>=1.14.0", + "httpx>=0.22.0", + "hyperlink>=21.0.0", + "keyring>=23.5.0", + "packaging>=21.3", + "pexpect~=4.8", + "platformdirs>=2.5.0", + "pyperclip>=1.8.2", + "rich>=11.2.0", + "shellingham>=1.4.0", + "tomli-w>=1.0", + "tomlkit>=0.11.1", + "userpath~=1.7", + "virtualenv>=20.16.2", +] +files = [ + {file = "hatch-1.7.0-py3-none-any.whl", hash = "sha256:efc84112fd02ca85b7bab54f5e2ef71393a98dc849eac9aca390504031f8a1a8"}, + {file = "hatch-1.7.0.tar.gz", hash = "sha256:7afc701fd5b33684a6650e1ecab8957e19685f824240ba7458dcacd66f90fb46"}, +] + +[[package]] +name = "hatch-vcs" +version = "0.4.0" +requires_python = ">=3.8" +summary = "Hatch plugin for versioning with your preferred VCS" +dependencies = [ + "hatchling>=1.1.0", + "setuptools-scm>=6.4.0", +] +files = [ + {file = "hatch_vcs-0.4.0-py3-none-any.whl", hash = "sha256:b8a2b6bee54cf6f9fc93762db73890017ae59c9081d1038a41f16235ceaf8b2c"}, + {file = "hatch_vcs-0.4.0.tar.gz", hash = "sha256:093810748fe01db0d451fabcf2c1ac2688caefd232d4ede967090b1c1b07d9f7"}, +] + +[[package]] +name = "hatchling" +version = "1.18.0" +requires_python = ">=3.8" +summary = "Modern, extensible Python build backend" +dependencies = [ + "editables>=0.3", + "packaging>=21.3", + "pathspec>=0.10.1", + "pluggy>=1.0.0", + "trove-classifiers", +] +files = [ + {file = "hatchling-1.18.0-py3-none-any.whl", hash = "sha256:b66dc254931ec42aa68b5febd1d342c58142cc5267b7ff3b12ba3fa5b4900c93"}, + {file = "hatchling-1.18.0.tar.gz", hash = "sha256:50e99c3110ce0afc3f7bdbadff1c71c17758e476731c27607940cfa6686489ca"}, +] + [[package]] name = "html5lib" version = "1.1" @@ -610,6 +702,50 @@ files = [ {file = "html5lib-1.1.tar.gz", hash = "sha256:b2e5b40261e20f354d198eae92afc10d750afb487ed5e50f9c4eaf07c184146f"}, ] +[[package]] +name = "httpcore" +version = "1.0.2" +requires_python = ">=3.8" +summary = "A minimal low-level HTTP client." +dependencies = [ + "certifi", + "h11<0.15,>=0.13", +] +files = [ + {file = "httpcore-1.0.2-py3-none-any.whl", hash = "sha256:096cc05bca73b8e459a1fc3dcf585148f63e534eae4339559c9b8a8d6399acc7"}, + {file = "httpcore-1.0.2.tar.gz", hash = "sha256:9fc092e4799b26174648e54b74ed5f683132a464e95643b226e00c2ed2fa6535"}, +] + +[[package]] +name = "httpx" +version = "0.25.1" +requires_python = ">=3.8" +summary = "The next generation HTTP client." +dependencies = [ + "anyio", + "certifi", + "httpcore", + "idna", + "sniffio", +] +files = [ + {file = "httpx-0.25.1-py3-none-any.whl", hash = "sha256:fec7d6cc5c27c578a391f7e87b9aa7d3d8fbcd034f6399f9f79b45bcc12a866a"}, + {file = "httpx-0.25.1.tar.gz", hash = "sha256:ffd96d5cf901e63863d9f1b4b6807861dbea4d301613415d9e6e57ead15fc5d0"}, +] + +[[package]] +name = "hyperlink" +version = "21.0.0" +requires_python = ">=2.6, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" +summary = "A featureful, immutable, and correct URL for Python." +dependencies = [ + "idna>=2.5", +] +files = [ + {file = "hyperlink-21.0.0-py2.py3-none-any.whl", hash = "sha256:e6b14c37ecb73e89c77d78cdb4c2cc8f3fb59a885c5b3f819ff4ed80f25af1b4"}, + {file = "hyperlink-21.0.0.tar.gz", hash = "sha256:427af957daa58bc909471c6c40f74c5450fa123dd093fc53efd2e91d2705a56b"}, +] + [[package]] name = "identify" version = "2.5.31" @@ -640,6 +776,19 @@ files = [ {file = "imagesize-1.4.1.tar.gz", hash = "sha256:69150444affb9cb0d5cc5a92b3676f0b2fb7cd9ae39e947a5e11a36b4497cd4a"}, ] +[[package]] +name = "importlib-metadata" +version = "6.8.0" +requires_python = ">=3.8" +summary = "Read metadata from Python packages" +dependencies = [ + "zipp>=0.5", +] +files = [ + {file = "importlib_metadata-6.8.0-py3-none-any.whl", hash = "sha256:3ebb78df84a805d7698245025b975d9d67053cd94c79245ba4b3eb694abe68bb"}, + {file = "importlib_metadata-6.8.0.tar.gz", hash = "sha256:dbace7892d8c0c4ac1ad096662232f831d4e64f4c4545bd53016a3e9d4654743"}, +] + [[package]] name = "iniconfig" version = "2.0.0" @@ -660,6 +809,29 @@ files = [ {file = "isort-5.12.0.tar.gz", hash = "sha256:8bef7dde241278824a6d83f44a544709b065191b95b6e50894bdc722fcba0504"}, ] +[[package]] +name = "jaraco-classes" +version = "3.3.0" +requires_python = ">=3.8" +summary = "Utility functions for Python class constructs" +dependencies = [ + "more-itertools", +] +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]] +name = "jeepney" +version = "0.8.0" +requires_python = ">=3.7" +summary = "Low-level, pure Python DBus protocol wrapper." +files = [ + {file = "jeepney-0.8.0-py3-none-any.whl", hash = "sha256:c0a454ad016ca575060802ee4d590dd912e35c122fa04e70306de3d076cce755"}, + {file = "jeepney-0.8.0.tar.gz", hash = "sha256:5efe48d255973902f6badc3ce55e2aa6c5c3b3bc642059ef3a91247bcfcc5806"}, +] + [[package]] name = "jinja2" version = "3.1.2" @@ -673,6 +845,23 @@ files = [ {file = "Jinja2-3.1.2.tar.gz", hash = "sha256:31351a702a408a9e7595a8fc6150fc3f43bb6bf7e319770cbc0db9df9437e852"}, ] +[[package]] +name = "keyring" +version = "24.2.0" +requires_python = ">=3.8" +summary = "Store and access your passwords safely." +dependencies = [ + "SecretStorage>=3.2; sys_platform == \"linux\"", + "importlib-metadata>=4.11.4; python_version < \"3.12\"", + "jaraco-classes", + "jeepney>=0.4.2; sys_platform == \"linux\"", + "pywin32-ctypes>=0.2.0; sys_platform == \"win32\"", +] +files = [ + {file = "keyring-24.2.0-py3-none-any.whl", hash = "sha256:4901caaf597bfd3bbd78c9a0c7c4c29fcd8310dab2cffefe749e916b6527acd6"}, + {file = "keyring-24.2.0.tar.gz", hash = "sha256:ca0746a19ec421219f4d713f848fa297a661a8a8c1504867e55bfb5e09091509"}, +] + [[package]] name = "markdown-it-py" version = "3.0.0" @@ -735,6 +924,16 @@ files = [ {file = "mdurl-0.1.2.tar.gz", hash = "sha256:bb413d29f5eea38f31dd4754dd7377d4465116fb207585f97bf925588687c1ba"}, ] +[[package]] +name = "more-itertools" +version = "10.1.0" +requires_python = ">=3.8" +summary = "More routines for operating on iterables, beyond itertools" +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 = "msgpack" version = "1.0.7" @@ -863,6 +1062,18 @@ files = [ {file = "pbr-6.0.0.tar.gz", hash = "sha256:d1377122a5a00e2f940ee482999518efe16d745d423a670c27773dfbc3c9a7d9"}, ] +[[package]] +name = "pexpect" +version = "4.8.0" +summary = "Pexpect allows easy control of interactive console applications." +dependencies = [ + "ptyprocess>=0.5", +] +files = [ + {file = "pexpect-4.8.0-py2.py3-none-any.whl", hash = "sha256:0b48a55dcb3c05f3329815901ea4fc1537514d6ba867a152b581d69ae3710937"}, + {file = "pexpect-4.8.0.tar.gz", hash = "sha256:fc65a43959d153d0114afe13997d439c22823a27cefceb5ff35c2178c6784c0c"}, +] + [[package]] name = "platformdirs" version = "3.11.0" @@ -900,6 +1111,15 @@ files = [ {file = "pre_commit-3.5.0.tar.gz", hash = "sha256:5804465c675b659b0862f07907f96295d490822a450c4c40e747d0b1c6ebcb32"}, ] +[[package]] +name = "ptyprocess" +version = "0.7.0" +summary = "Run a subprocess in a pseudo terminal" +files = [ + {file = "ptyprocess-0.7.0-py2.py3-none-any.whl", hash = "sha256:4b41f3967fce3af57cc7e94b888626c18bf37a083e3651ca8feeb66d492fef35"}, + {file = "ptyprocess-0.7.0.tar.gz", hash = "sha256:5c5d0a3b48ceee0b48485e0c26037c0acd7d29765ca3fbb5cb3831d347423220"}, +] + [[package]] name = "pycodestyle" version = "2.11.1" @@ -940,6 +1160,14 @@ files = [ {file = "Pygments-2.16.1.tar.gz", hash = "sha256:1daff0494820c69bc8941e407aa20f577374ee88364ee10a98fdbe0aece96e29"}, ] +[[package]] +name = "pyperclip" +version = "1.8.2" +summary = "A cross-platform clipboard module for Python. (Only handles plain text for now.)" +files = [ + {file = "pyperclip-1.8.2.tar.gz", hash = "sha256:105254a8b04934f0bc84e9c24eb360a591aaf6535c9def5f29d92af107a9bf57"}, +] + [[package]] name = "pyproject-api" version = "1.6.1" @@ -1023,6 +1251,16 @@ files = [ {file = "pytest_xdist-3.3.1-py3-none-any.whl", hash = "sha256:ff9daa7793569e6a68544850fd3927cd257cc03a7ef76c95e86915355e82b5f2"}, ] +[[package]] +name = "pywin32-ctypes" +version = "0.2.2" +requires_python = ">=3.6" +summary = "A (partial) reimplementation of pywin32 using ctypes/cffi" +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"}, +] + [[package]] name = "pyyaml" version = "6.0.1" @@ -1114,6 +1352,20 @@ files = [ {file = "ruamel.yaml.clib-0.2.8.tar.gz", hash = "sha256:beb2e0404003de9a4cab9753a8805a8fe9320ee6673136ed7f04255fe60bb512"}, ] +[[package]] +name = "secretstorage" +version = "3.3.3" +requires_python = ">=3.6" +summary = "Python bindings to FreeDesktop.org Secret Service API" +dependencies = [ + "cryptography>=2.0", + "jeepney>=0.6", +] +files = [ + {file = "SecretStorage-3.3.3-py3-none-any.whl", hash = "sha256:f356e6628222568e3af06f2eba8df495efa13b3b63081dafd4f7d9a7b7bc9f99"}, + {file = "SecretStorage-3.3.3.tar.gz", hash = "sha256:2403533ef369eca6d2ba81718576c5e0f564d5cca1b58f73a8b23e7d4eeebd77"}, +] + [[package]] name = "setuptools" version = "68.2.2" @@ -1124,6 +1376,31 @@ files = [ {file = "setuptools-68.2.2.tar.gz", hash = "sha256:4ac1475276d2f1c48684874089fefcd83bd7162ddaafb81fac866ba0db282a87"}, ] +[[package]] +name = "setuptools-scm" +version = "8.0.4" +requires_python = ">=3.8" +summary = "the blessed package to manage your versions by scm tags" +dependencies = [ + "packaging>=20", + "setuptools", + "typing-extensions", +] +files = [ + {file = "setuptools-scm-8.0.4.tar.gz", hash = "sha256:b5f43ff6800669595193fd09891564ee9d1d7dcb196cab4b2506d53a2e1c95c7"}, + {file = "setuptools_scm-8.0.4-py3-none-any.whl", hash = "sha256:b47844cd2a84b83b3187a5782c71128c28b4c94cad8bfb871da2784a5cb54c4f"}, +] + +[[package]] +name = "shellingham" +version = "1.5.4" +requires_python = ">=3.7" +summary = "Tool to Detect Surrounding Shell" +files = [ + {file = "shellingham-1.5.4-py2.py3-none-any.whl", hash = "sha256:7ecfff8f2fd72616f7481040475a65b2bf8af90a56c89140852d1120324e8686"}, + {file = "shellingham-1.5.4.tar.gz", hash = "sha256:8dbca0739d487e5bd35ab3ca4b36e11c4078f3a234bfce294b0a0291363404de"}, +] + [[package]] name = "six" version = "1.16.0" @@ -1410,6 +1687,26 @@ files = [ {file = "tabulate-0.9.0.tar.gz", hash = "sha256:0095b12bf5966de529c0feb1fa08671671b3368eec77d7ef7ab114be2c068b3c"}, ] +[[package]] +name = "tomli-w" +version = "1.0.0" +requires_python = ">=3.7" +summary = "A lil' TOML writer" +files = [ + {file = "tomli_w-1.0.0-py3-none-any.whl", hash = "sha256:9f2a07e8be30a0729e533ec968016807069991ae2fd921a78d42f429ae5f4463"}, + {file = "tomli_w-1.0.0.tar.gz", hash = "sha256:f463434305e0336248cac9c2dc8076b707d8a12d019dd349f5c1e382dd1ae1b9"}, +] + +[[package]] +name = "tomlkit" +version = "0.12.2" +requires_python = ">=3.7" +summary = "Style preserving TOML library" +files = [ + {file = "tomlkit-0.12.2-py3-none-any.whl", hash = "sha256:eeea7ac7563faeab0a1ed8fe12c2e5a51c61f933f2502f7e9db0241a65163ad0"}, + {file = "tomlkit-0.12.2.tar.gz", hash = "sha256:df32fab589a81f0d7dc525a4267b6d7a64ee99619cbd1eeb0fae32c1dd426977"}, +] + [[package]] name = "tox" version = "4.11.3" @@ -1483,6 +1780,19 @@ files = [ {file = "urllib3-2.0.7.tar.gz", hash = "sha256:c97dfde1f7bd43a71c8d2a58e369e9b2bf692d1334ea9f9cae55add7d0dd0f84"}, ] +[[package]] +name = "userpath" +version = "1.9.1" +requires_python = ">=3.7" +summary = "Cross-platform tool for adding locations to the user PATH" +dependencies = [ + "click", +] +files = [ + {file = "userpath-1.9.1-py3-none-any.whl", hash = "sha256:e085053e5161f82558793c41d60375289efceb4b77d96033ea9c84fc0893f772"}, + {file = "userpath-1.9.1.tar.gz", hash = "sha256:ce8176728d98c914b6401781bf3b23fccd968d1647539c8788c7010375e02796"}, +] + [[package]] name = "uvloop" version = "0.19.0" @@ -1527,3 +1837,13 @@ files = [ {file = "webencodings-0.5.1-py2.py3-none-any.whl", hash = "sha256:a0af1213f3c2226497a97e2b3aa01a7e4bee4f403f95be16fc9acd2947514a78"}, {file = "webencodings-0.5.1.tar.gz", hash = "sha256:b36a1c245f2d304965eb4e0a82848379241dc04b865afcc4aab16748587e1923"}, ] + +[[package]] +name = "zipp" +version = "3.17.0" +requires_python = ">=3.8" +summary = "Backport of pathlib-compatible object wrapper for zip files" +files = [ + {file = "zipp-3.17.0-py3-none-any.whl", hash = "sha256:0e923e726174922dce09c53c59ad483ff7bbb8e572e00c7f7c46b88556409f31"}, + {file = "zipp-3.17.0.tar.gz", hash = "sha256:84e64a1c28cf7e91ed2078bb8cc8c259cb19b76942096c8d7b84947690cabaf0"}, +] diff --git a/pyproject.toml b/pyproject.toml index 39e301c5..169bcc91 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,5 @@ [build-system] -requires = ["hatchling >=1.13,<2"] +requires = ["hatchling >=1.13,<2", "hatch-vcs~=0.4.0"] build-backend = "hatchling.build" [project] @@ -68,6 +68,8 @@ sniffio = [ dev = [ "pre-commit>=2.20.0", "bump2version>=1.0.1", + "hatch~=1.7.0", + "hatch-vcs~=0.4.0", ] uvloop = [ "uvloop~=0.19.0; sys_platform!='win32'", @@ -123,7 +125,41 @@ exclude = [ packages = ["src/easynetwork"] [tool.hatch.version] -path = "src/easynetwork/__init__.py" +source = "vcs" + +[tool.hatch.build.hooks.vcs] +version-file = "src/easynetwork/version.py" +template = ''' +# Copyright 2021-2023, Francis Clairicia-Rose-Claire-Josephine +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +"""EasyNetwork version module. + +File generated by setuptools_scm. +Don't change, don't track in version control. +""" + +from __future__ import annotations + +__all__ = ["__version__", "__version_tuple__"] + +__version__: str +__version_tuple__: tuple[str | int, ...] + +__version__ = {version!r} +__version_tuple__ = {version_tuple!r} +''' ############################ Development tools configuration ############################ @@ -165,12 +201,6 @@ no_implicit_reexport = true strict_equality = true enable_error_code = ["truthy-bool", "ignore-without-code", "unused-awaitable"] -[[tool.mypy.overrides]] -module = [ - "cbor2", -] -ignore_missing_imports = true - [tool.pytest.ini_options] asyncio_mode = "strict" # Avoid some unwanted behaviour addopts = "--strict-markers" diff --git a/src/easynetwork/__init__.py b/src/easynetwork/__init__.py index 4d53b576..5e5b4365 100644 --- a/src/easynetwork/__init__.py +++ b/src/easynetwork/__init__.py @@ -30,4 +30,5 @@ __license__ = "Apache 2.0" __maintainer__ = "FrankySnow9" __status__ = "Development" -__version__ = "1.0.0rc6" + +from .version import __version__