From 943f485bf5333f36a809e9d5c69825e58fc44c61 Mon Sep 17 00:00:00 2001 From: takunomi-build-bot Date: Thu, 1 May 2025 00:02:08 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=A4=96=20Repository=20layout=20updated=20?= =?UTF-8?q?to=20latest=20version?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit was automatically generated by [a script](https://gitfub.space/Jmaa/repo-manager) --- .gitea/workflows/python-package.yml | 4 ++++ .gitea/workflows/python-ruff.yml | 4 ++++ .gitea/workflows/python-test.yml | 4 ++++ .gitea/workflows/python-version-check.yml | 4 ++++ CONVENTIONS.md | 4 ++++ README.md | 11 +++-------- setup.py | 12 +++--------- 7 files changed, 26 insertions(+), 17 deletions(-) diff --git a/.gitea/workflows/python-package.yml b/.gitea/workflows/python-package.yml index 2ee342a..0e41ec0 100644 --- a/.gitea/workflows/python-package.yml +++ b/.gitea/workflows/python-package.yml @@ -1,3 +1,7 @@ +# WARNING! +# THIS IS AN AUTOGENERATED FILE! +# MANUAL CHANGES CAN AND WILL BE OVERWRITTEN! + name: Package Python on: push: diff --git a/.gitea/workflows/python-ruff.yml b/.gitea/workflows/python-ruff.yml index 72b480e..29803ca 100644 --- a/.gitea/workflows/python-ruff.yml +++ b/.gitea/workflows/python-ruff.yml @@ -1,3 +1,7 @@ +# WARNING! +# THIS IS AN AUTOGENERATED FILE! +# MANUAL CHANGES CAN AND WILL BE OVERWRITTEN! + name: Python Ruff Code Quality on: push: diff --git a/.gitea/workflows/python-test.yml b/.gitea/workflows/python-test.yml index 958e126..4c3eabb 100644 --- a/.gitea/workflows/python-test.yml +++ b/.gitea/workflows/python-test.yml @@ -1,3 +1,7 @@ +# WARNING! +# THIS IS AN AUTOGENERATED FILE! +# MANUAL CHANGES CAN AND WILL BE OVERWRITTEN! + name: Run Python tests (through Pytest) on: diff --git a/.gitea/workflows/python-version-check.yml b/.gitea/workflows/python-version-check.yml index 5f5cef8..88d14ec 100644 --- a/.gitea/workflows/python-version-check.yml +++ b/.gitea/workflows/python-version-check.yml @@ -1,3 +1,7 @@ +# WARNING! +# THIS IS AN AUTOGENERATED FILE! +# MANUAL CHANGES CAN AND WILL BE OVERWRITTEN! + name: Verify Python project can be installed, loaded and have version checked on: diff --git a/CONVENTIONS.md b/CONVENTIONS.md index 7fc9a32..9bdf447 100644 --- a/CONVENTIONS.md +++ b/CONVENTIONS.md @@ -1,3 +1,7 @@ + + + + # Conventions When contributing code to this project, you MUST follow the requirements diff --git a/README.md b/README.md index 065f793..84d7afd 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,6 @@ - - - - - + + + # Requests utilities @@ -31,12 +29,10 @@ Full list of requirements: - [requests_ratelimiter](https://pypi.org/project/requests_ratelimiter/) - [requests_cache](https://pypi.org/project/requests_cache/) - ## Contributing Feel free to submit pull requests. Please follow the [Code Conventions](CONVENTIONS.md) when doing so. - ### Testing Testing requires the [pytest](https://docs.pytest.org/en/stable/) library. @@ -53,7 +49,6 @@ Test coverage can be run using the [`pytest-cov`](https://pypi.org/project/pytes pytest --cov=requests_util test ``` - ## License ``` diff --git a/setup.py b/setup.py index 7dfaa28..76c944f 100644 --- a/setup.py +++ b/setup.py @@ -1,8 +1,6 @@ -# WARNING -# -# THIS IS AN AUTOGENERATED FILE. -# -# MANUAL CHANGES CAN AND WILL BE OVERWRITTEN. +# WARNING! +# THIS IS AN AUTOGENERATED FILE! +# MANUAL CHANGES CAN AND WILL BE OVERWRITTEN! import re @@ -25,7 +23,6 @@ understanding of the ratelimiting and caching behaviour of their associated webs PACKAGE_DESCRIPTION_SHORT = """ Utility for standarized usage of HTTP requests extension libraries in a modular fashion across different libraries.""".strip() - def parse_version_file(text: str) -> str: match = re.match(r'^__version__\s*=\s*(["\'])([\d\.]+)\1$', text) if match is None: @@ -33,11 +30,9 @@ def parse_version_file(text: str) -> str: raise Exception(msg) return match.group(2) - with open(PACKAGE_NAME + '/_version.py') as f: version = parse_version_file(f.read()) - REQUIREMENTS_MAIN = [ 'requests', 'requests_ratelimiter', @@ -47,7 +42,6 @@ REQUIREMENTS_TEST = [ 'pytest', ] - setup( name=PACKAGE_NAME, version=version,