From fe62914a47e8eebde74536b65de2c35f75f421d8 Mon Sep 17 00:00:00 2001 From: Abubakar Abid Date: Mon, 2 Dec 2024 13:42:23 -0500 Subject: [PATCH 1/2] move --- pyproject.toml | 2 +- safehttpx/__init__.py | 2 +- version.txt => safehttpx/version.txt | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename version.txt => safehttpx/version.txt (100%) diff --git a/pyproject.toml b/pyproject.toml index b8efa46..379aa4b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -31,5 +31,5 @@ dev = ["pytest"] packages = ["safehttpx"] [tool.hatch.version] -path = "version.txt" +path = "safehttpx/version.txt" pattern = "^(?P[0-9]+\\.[0-9]+\\.[0-9]+)$" diff --git a/safehttpx/__init__.py b/safehttpx/__init__.py index 05153f4..bde3639 100644 --- a/safehttpx/__init__.py +++ b/safehttpx/__init__.py @@ -8,7 +8,7 @@ import httpx def get_version(): - version_file = Path(__file__).parent.parent / 'version.txt' + version_file = Path(__file__).parent / 'version.txt' with open(version_file, 'r') as f: return f.read().strip() diff --git a/version.txt b/safehttpx/version.txt similarity index 100% rename from version.txt rename to safehttpx/version.txt From dff7f60631f51caa2a9aa0749be0273d77dc3b0a Mon Sep 17 00:00:00 2001 From: Abubakar Abid Date: Mon, 2 Dec 2024 13:43:34 -0500 Subject: [PATCH 2/2] bump --- safehttpx/version.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/safehttpx/version.txt b/safehttpx/version.txt index def9a01..a192233 100644 --- a/safehttpx/version.txt +++ b/safehttpx/version.txt @@ -1 +1 @@ -0.1.5 \ No newline at end of file +0.1.6 \ No newline at end of file