From: Tom Christie Date: Thu, 18 Sep 2025 12:24:02 +0000 (+0100) Subject: Drop __title__ and __version__ X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fheads%2Fdrop-title-version-api;p=thirdparty%2Fhttpx.git Drop __title__ and __version__ --- diff --git a/pyproject.toml b/pyproject.toml index e708b5d9..dec723e8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,7 +5,8 @@ build-backend = "hatchling.build" [project] name = "httpx" description = "HTTP, for Python." -requires-python = ">=3.10" +version = "1.0.dev3" +requires-python = ">=3.11" authors = [ { name = "Tom Christie", email = "tom@tomchristie.com" }, ] @@ -24,7 +25,3 @@ classifiers = [ dependencies = [ "certifi", ] -dynamic = ["version"] - -[tool.hatch.version] -path = "src/httpx/__version__.py" diff --git a/src/ahttpx/__init__.py b/src/ahttpx/__init__.py index 9e589ab6..2a2e58ac 100644 --- a/src/ahttpx/__init__.py +++ b/src/ahttpx/__init__.py @@ -1,4 +1,3 @@ -from .__version__ import __title__, __version__ from ._client import * # Client from ._content import * # Content, File, Files, Form, HTML, JSON, MultiPart, Text from ._headers import * # Headers @@ -15,8 +14,6 @@ from ._urls import * # QueryParams, URL __all__ = [ - "__title__", - "__version__", "ByteStream", "Client", "Connection", diff --git a/src/ahttpx/__version__.py b/src/ahttpx/__version__.py deleted file mode 100644 index 309fcb32..00000000 --- a/src/ahttpx/__version__.py +++ /dev/null @@ -1,2 +0,0 @@ -__title__ = "ahttpx" -__version__ = "1.0.dev3" \ No newline at end of file diff --git a/src/httpx/__init__.py b/src/httpx/__init__.py index 9e589ab6..2a2e58ac 100644 --- a/src/httpx/__init__.py +++ b/src/httpx/__init__.py @@ -1,4 +1,3 @@ -from .__version__ import __title__, __version__ from ._client import * # Client from ._content import * # Content, File, Files, Form, HTML, JSON, MultiPart, Text from ._headers import * # Headers @@ -15,8 +14,6 @@ from ._urls import * # QueryParams, URL __all__ = [ - "__title__", - "__version__", "ByteStream", "Client", "Connection", diff --git a/src/httpx/__version__.py b/src/httpx/__version__.py deleted file mode 100644 index ba1c14e7..00000000 --- a/src/httpx/__version__.py +++ /dev/null @@ -1,2 +0,0 @@ -__title__ = "httpx" -__version__ = "1.0.dev3" \ No newline at end of file