From eca756577edc46e8f73f2b1da3b815dfba96c7cc Mon Sep 17 00:00:00 2001 From: Anton Bagrianov Date: Thu, 16 Nov 2023 21:05:24 +0400 Subject: [PATCH] Update README.md --- .github/workflows/makefile.yml | 2 +- README.md | 3 +++ poetry.lock | 38 ++++++++++++++++++++++++++++++++-- pyproject.toml | 8 +++---- 4 files changed, 44 insertions(+), 7 deletions(-) diff --git a/.github/workflows/makefile.yml b/.github/workflows/makefile.yml index 40eabff..078e470 100644 --- a/.github/workflows/makefile.yml +++ b/.github/workflows/makefile.yml @@ -11,7 +11,7 @@ jobs: - name: Install poetry run: pipx install poetry # Reference: https://github.com/actions/setup-python/tree/main - - uses: actions/setup-python@v4.7.1 + - uses: actions/setup-python@v4 with: python-version-file: 'pyproject.toml' cache: 'poetry' diff --git a/README.md b/README.md index e69de29..53d510b 100644 --- a/README.md +++ b/README.md @@ -0,0 +1,3 @@ +# AnyPython + +![CI Workflow](https://github.com/antibagr/Any-Python-Template/actions/workflows/makefile.yml/badge.svg?event=push)![coverage badge](./coverage.svg) \ No newline at end of file diff --git a/poetry.lock b/poetry.lock index d922ad2..ec1c46f 100644 --- a/poetry.lock +++ b/poetry.lock @@ -17,6 +17,7 @@ GitPython = ">=1.0.1" PyYAML = ">=5.3.1" rich = "*" stevedore = ">=1.20.0" +tomli = {version = ">=1.1.0", optional = true, markers = "python_version < \"3.11\" and extra == \"toml\""} [package.extras] test = ["beautifulsoup4 (>=4.8.0)", "coverage (>=4.5.4)", "fixtures (>=3.0.0)", "flake8 (>=4.0.0)", "pylint (==1.9.4)", "stestr (>=2.5.0)", "testscenarios (>=0.5.0)", "testtools (>=2.3.0)", "tomli (>=1.1.0)"] @@ -56,6 +57,8 @@ mypy-extensions = ">=0.4.3" packaging = ">=22.0" pathspec = ">=0.9.0" platformdirs = ">=2" +tomli = {version = ">=1.1.0", markers = "python_version < \"3.11\""} +typing-extensions = {version = ">=4.0.1", markers = "python_version < \"3.11\""} [package.extras] colorama = ["colorama (>=0.4.3)"] @@ -149,9 +152,26 @@ files = [ {file = "coverage-7.3.2.tar.gz", hash = "sha256:be32ad29341b0170e795ca590e1c07e81fc061cb5b10c74ce7203491484404ef"}, ] +[package.dependencies] +tomli = {version = "*", optional = true, markers = "python_full_version <= \"3.11.0a6\" and extra == \"toml\""} + [package.extras] toml = ["tomli"] +[[package]] +name = "exceptiongroup" +version = "1.1.3" +description = "Backport of PEP 654 (exception groups)" +optional = false +python-versions = ">=3.7" +files = [ + {file = "exceptiongroup-1.1.3-py3-none-any.whl", hash = "sha256:343280667a4585d195ca1cf9cef84a4e178c4b6cf2274caef9859782b567d5e3"}, + {file = "exceptiongroup-1.1.3.tar.gz", hash = "sha256:097acd85d473d75af5bb98e41b61ff7fe35efe6675e4f9370ec6ec5126d160e9"}, +] + +[package.extras] +test = ["pytest (>=6)"] + [[package]] name = "flake8" version = "6.1.0" @@ -311,6 +331,7 @@ files = [ [package.dependencies] mypy-extensions = ">=1.0.0" +tomli = {version = ">=1.1.0", markers = "python_version < \"3.11\""} typing-extensions = ">=4.1.0" [package.extras] @@ -442,9 +463,11 @@ files = [ [package.dependencies] colorama = {version = "*", markers = "sys_platform == \"win32\""} +exceptiongroup = {version = ">=1.0.0rc8", markers = "python_version < \"3.11\""} iniconfig = "*" packaging = "*" pluggy = ">=0.12,<2.0" +tomli = {version = ">=1.0.0", markers = "python_version < \"3.11\""} [package.extras] testing = ["argcomplete", "attrs (>=19.2.0)", "hypothesis (>=3.56)", "mock", "nose", "pygments (>=2.7.2)", "requests", "setuptools", "xmlschema"] @@ -587,6 +610,17 @@ files = [ [package.dependencies] pbr = ">=2.0.0,<2.1.0 || >2.1.0" +[[package]] +name = "tomli" +version = "2.0.1" +description = "A lil' TOML parser" +optional = false +python-versions = ">=3.7" +files = [ + {file = "tomli-2.0.1-py3-none-any.whl", hash = "sha256:939de3e7a6161af0c887ef91b7d41a53e7c5a1ca976325f429cb46ea9bc30ecc"}, + {file = "tomli-2.0.1.tar.gz", hash = "sha256:de526c12914f0c550d15924c62d72abc48d6fe7364aa87328337a31007fe8a4f"}, +] + [[package]] name = "typing-extensions" version = "4.8.0" @@ -600,5 +634,5 @@ files = [ [metadata] lock-version = "2.0" -python-versions = "^3.11.0" -content-hash = "dbe8d10feade98ae3fa195a89f544f42e7939daaf52f42bf01d69d703f0d57ae" +python-versions = "3.10.11" +content-hash = "92e1ba4a8530b042d083ab4223fa1b8f426d6a9f148f3012198f8f6e19392fe6" diff --git a/pyproject.toml b/pyproject.toml index ac16297..0707511 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,7 +6,7 @@ authors = ["TEMPLATE_AUTHOR "] maintainers = ["TEMPLATE_AUTHOR "] [tool.poetry.dependencies] -python = "^3.11.0" +python = "3.10.11" [tool.poetry.group.dev.dependencies] black = "23.11.0" @@ -14,9 +14,9 @@ isort = "5.12.0" flake8 = "6.1.0" mypy = "1.7.0" bandit = {extras = ["toml"], version = "1.7.5"} -pytest-cov = "^4.1.0" -coverage = "^7.3.2" -pytest-asyncio = "^0.21.1" +pytest-cov = {extras = ["toml"], version = "^4.1.0"} +coverage = {extras = ["toml"], version = "^7.3.2"} +pytest-asyncio = "0.21.1" [tool.black] line-length = 100