wheezy.http 3.2.0__tar.gz → 3.2.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. wheezy_http-3.2.2/MANIFEST.in +1 -0
  2. {wheezy.http-3.2.0/src/wheezy.http.egg-info → wheezy_http-3.2.2}/PKG-INFO +19 -14
  3. {wheezy.http-3.2.0 → wheezy_http-3.2.2}/README.md +2 -2
  4. wheezy_http-3.2.2/pyproject.toml +76 -0
  5. wheezy_http-3.2.2/setup.py +60 -0
  6. {wheezy.http-3.2.0 → wheezy_http-3.2.2}/src/wheezy/http/__init__.py +1 -6
  7. wheezy_http-3.2.2/src/wheezy/http/_cgi.py +1012 -0
  8. {wheezy.http-3.2.0 → wheezy_http-3.2.2}/src/wheezy/http/application.py +0 -3
  9. {wheezy.http-3.2.0 → wheezy_http-3.2.2}/src/wheezy/http/authorization.py +0 -3
  10. {wheezy.http-3.2.0 → wheezy_http-3.2.2}/src/wheezy/http/cache.py +0 -3
  11. {wheezy.http-3.2.0 → wheezy_http-3.2.2}/src/wheezy/http/cachepolicy.py +0 -3
  12. {wheezy.http-3.2.0 → wheezy_http-3.2.2}/src/wheezy/http/cacheprofile.py +6 -8
  13. {wheezy.http-3.2.0 → wheezy_http-3.2.2}/src/wheezy/http/config.py +0 -4
  14. {wheezy.http-3.2.0 → wheezy_http-3.2.2}/src/wheezy/http/cookie.py +4 -5
  15. {wheezy.http-3.2.0 → wheezy_http-3.2.2}/src/wheezy/http/functional.py +1 -2
  16. {wheezy.http-3.2.0 → wheezy_http-3.2.2}/src/wheezy/http/method.py +0 -3
  17. {wheezy.http-3.2.0 → wheezy_http-3.2.2}/src/wheezy/http/middleware.py +0 -3
  18. {wheezy.http-3.2.0 → wheezy_http-3.2.2}/src/wheezy/http/parse.py +5 -4
  19. {wheezy.http-3.2.0 → wheezy_http-3.2.2}/src/wheezy/http/request.py +0 -2
  20. {wheezy.http-3.2.0 → wheezy_http-3.2.2}/src/wheezy/http/response.py +0 -3
  21. {wheezy.http-3.2.0 → wheezy_http-3.2.2}/src/wheezy/http/transforms.py +0 -3
  22. {wheezy.http-3.2.0 → wheezy_http-3.2.2/src/wheezy.http.egg-info}/PKG-INFO +19 -14
  23. {wheezy.http-3.2.0 → wheezy_http-3.2.2}/src/wheezy.http.egg-info/SOURCES.txt +2 -2
  24. wheezy_http-3.2.2/src/wheezy.http.egg-info/requires.txt +5 -0
  25. wheezy.http-3.2.0/MANIFEST.in +0 -1
  26. wheezy.http-3.2.0/setup.py +0 -77
  27. wheezy.http-3.2.0/src/wheezy/__init__.py +0 -8
  28. wheezy.http-3.2.0/src/wheezy.http.egg-info/namespace_packages.txt +0 -1
  29. wheezy.http-3.2.0/src/wheezy.http.egg-info/requires.txt +0 -1
  30. {wheezy.http-3.2.0 → wheezy_http-3.2.2}/LICENSE +0 -0
  31. {wheezy.http-3.2.0 → wheezy_http-3.2.2}/setup.cfg +0 -0
  32. {wheezy.http-3.2.0 → wheezy_http-3.2.2}/src/wheezy.http.egg-info/dependency_links.txt +0 -0
  33. {wheezy.http-3.2.0 → wheezy_http-3.2.2}/src/wheezy.http.egg-info/not-zip-safe +0 -0
  34. {wheezy.http-3.2.0 → wheezy_http-3.2.2}/src/wheezy.http.egg-info/top_level.txt +0 -0
@@ -0,0 +1 @@
1
+ include LICENSE README.md
@@ -1,23 +1,23 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: wheezy.http
3
- Version: 3.2.0
3
+ Version: 3.2.2
4
4
  Summary: A lightweight http request-response library
5
- Home-page: https://github.com/akornatskyy/wheezy.http
6
- Author: Andriy Kornatskyy
7
- Author-email: andriy.kornatskyy@live.com
8
- License: MIT
9
- Keywords: wsgi http request response cache cachepolicy cookie functional middleware transforms
10
- Platform: any
5
+ Author-email: Andriy Kornatskyy <andriy.kornatskyy@live.com>
6
+ License-Expression: MIT
7
+ Project-URL: Homepage, https://github.com/akornatskyy/wheezy.http
8
+ Project-URL: Source, https://github.com/akornatskyy/wheezy.http
9
+ Project-URL: Issues, https://github.com/akornatskyy/wheezy.http/issues
10
+ Keywords: wsgi,http,request,response,cache,cachepolicy,cookie,functional,middleware,transforms
11
11
  Classifier: Environment :: Web Environment
12
12
  Classifier: Intended Audience :: Developers
13
- Classifier: License :: OSI Approved :: MIT License
14
13
  Classifier: Natural Language :: English
15
14
  Classifier: Operating System :: OS Independent
16
15
  Classifier: Programming Language :: Python
17
- Classifier: Programming Language :: Python :: 3.8
18
- Classifier: Programming Language :: Python :: 3.9
19
16
  Classifier: Programming Language :: Python :: 3.10
20
17
  Classifier: Programming Language :: Python :: 3.11
18
+ Classifier: Programming Language :: Python :: 3.12
19
+ Classifier: Programming Language :: Python :: 3.13
20
+ Classifier: Programming Language :: Python :: 3.14
21
21
  Classifier: Programming Language :: Python :: Implementation :: CPython
22
22
  Classifier: Programming Language :: Python :: Implementation :: PyPy
23
23
  Classifier: Topic :: Internet :: WWW/HTTP
@@ -28,13 +28,18 @@ Classifier: Topic :: Internet :: WWW/HTTP :: WSGI :: Middleware
28
28
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
29
29
  Classifier: Topic :: Software Development :: Quality Assurance
30
30
  Classifier: Topic :: Software Development :: Testing
31
- Requires-Python: >=3.8
31
+ Requires-Python: >=3.10
32
32
  Description-Content-Type: text/markdown
33
33
  License-File: LICENSE
34
+ Requires-Dist: wheezy.core>=3.2.2
35
+ Provides-Extra: cython
36
+ Requires-Dist: Cython>=3.0; extra == "cython"
37
+ Requires-Dist: setuptools>=61.0; extra == "cython"
38
+ Dynamic: license-file
34
39
 
35
40
  # wheezy.http
36
41
 
37
- [![Build Status](https://travis-ci.org/akornatskyy/wheezy.http.svg?branch=master)](https://travis-ci.org/akornatskyy/wheezy.http)
42
+ [![tests](https://github.com/akornatskyy/wheezy.http/actions/workflows/tests.yml/badge.svg)](https://github.com/akornatskyy/wheezy.http/actions/workflows/tests.yml)
38
43
  [![Coverage Status](https://coveralls.io/repos/github/akornatskyy/wheezy.http/badge.svg?branch=master)](https://coveralls.io/github/akornatskyy/wheezy.http?branch=master)
39
44
  [![Documentation Status](https://readthedocs.org/projects/wheezyhttp/badge/?version=latest)](https://wheezyhttp.readthedocs.io/en/latest/?badge=latest)
40
45
  [![pypi version](https://badge.fury.io/py/wheezy.http.svg)](https://badge.fury.io/py/wheezy.http)
@@ -59,7 +64,7 @@ Resources:
59
64
  ## Install
60
65
 
61
66
  [wheezy.http](https://pypi.org/project/wheezy.http/) requires
62
- [python](https://www.python.org) version 3.8+. It is independent of operating
67
+ [python](https://www.python.org) version 3.10+. It is independent of operating
63
68
  system. You can install it from [pypi](https://pypi.org/project/wheezy.http/)
64
69
  site:
65
70
 
@@ -1,6 +1,6 @@
1
1
  # wheezy.http
2
2
 
3
- [![Build Status](https://travis-ci.org/akornatskyy/wheezy.http.svg?branch=master)](https://travis-ci.org/akornatskyy/wheezy.http)
3
+ [![tests](https://github.com/akornatskyy/wheezy.http/actions/workflows/tests.yml/badge.svg)](https://github.com/akornatskyy/wheezy.http/actions/workflows/tests.yml)
4
4
  [![Coverage Status](https://coveralls.io/repos/github/akornatskyy/wheezy.http/badge.svg?branch=master)](https://coveralls.io/github/akornatskyy/wheezy.http?branch=master)
5
5
  [![Documentation Status](https://readthedocs.org/projects/wheezyhttp/badge/?version=latest)](https://wheezyhttp.readthedocs.io/en/latest/?badge=latest)
6
6
  [![pypi version](https://badge.fury.io/py/wheezy.http.svg)](https://badge.fury.io/py/wheezy.http)
@@ -25,7 +25,7 @@ Resources:
25
25
  ## Install
26
26
 
27
27
  [wheezy.http](https://pypi.org/project/wheezy.http/) requires
28
- [python](https://www.python.org) version 3.8+. It is independent of operating
28
+ [python](https://www.python.org) version 3.10+. It is independent of operating
29
29
  system. You can install it from [pypi](https://pypi.org/project/wheezy.http/)
30
30
  site:
31
31
 
@@ -0,0 +1,76 @@
1
+ [build-system]
2
+ requires = ["setuptools>=61.0", "wheel"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "wheezy.http"
7
+ dynamic = ["version"]
8
+ description = "A lightweight http request-response library"
9
+ readme = { file = "README.md", content-type = "text/markdown" }
10
+ requires-python = ">=3.10"
11
+ license = "MIT"
12
+ license-files = ["LICENSE"]
13
+ authors = [{ name = "Andriy Kornatskyy", email = "andriy.kornatskyy@live.com" }]
14
+ keywords = [
15
+ "wsgi",
16
+ "http",
17
+ "request",
18
+ "response",
19
+ "cache",
20
+ "cachepolicy",
21
+ "cookie",
22
+ "functional",
23
+ "middleware",
24
+ "transforms",
25
+ ]
26
+ classifiers = [
27
+ "Environment :: Web Environment",
28
+ "Intended Audience :: Developers",
29
+ "Natural Language :: English",
30
+ "Operating System :: OS Independent",
31
+ "Programming Language :: Python",
32
+ "Programming Language :: Python :: 3.10",
33
+ "Programming Language :: Python :: 3.11",
34
+ "Programming Language :: Python :: 3.12",
35
+ "Programming Language :: Python :: 3.13",
36
+ "Programming Language :: Python :: 3.14",
37
+ "Programming Language :: Python :: Implementation :: CPython",
38
+ "Programming Language :: Python :: Implementation :: PyPy",
39
+ "Topic :: Internet :: WWW/HTTP",
40
+ "Topic :: Internet :: WWW/HTTP :: Dynamic Content",
41
+ "Topic :: Internet :: WWW/HTTP :: WSGI",
42
+ "Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
43
+ "Topic :: Internet :: WWW/HTTP :: WSGI :: Middleware",
44
+ "Topic :: Software Development :: Libraries :: Python Modules",
45
+ "Topic :: Software Development :: Quality Assurance",
46
+ "Topic :: Software Development :: Testing",
47
+ ]
48
+ dependencies = ["wheezy.core>=3.2.2"]
49
+
50
+ [project.optional-dependencies]
51
+ cython = ["Cython>=3.0", "setuptools>=61.0"]
52
+
53
+ [project.urls]
54
+ Homepage = "https://github.com/akornatskyy/wheezy.http"
55
+ Source = "https://github.com/akornatskyy/wheezy.http"
56
+ Issues = "https://github.com/akornatskyy/wheezy.http/issues"
57
+
58
+ [tool.setuptools]
59
+ packages = ["wheezy.http"]
60
+ package-dir = { "" = "src" }
61
+ zip-safe = false
62
+ include-package-data = true
63
+
64
+ # [tool.setuptools.package-data]
65
+ # "wheezy.core" = ["py.typed"]
66
+
67
+ [tool.setuptools.dynamic]
68
+ version = { attr = "wheezy.http.__version__" }
69
+
70
+ [tool.pytest.ini_options]
71
+ pythonpath = ["src"]
72
+ consider_namespace_packages = true
73
+
74
+ [tool.coverage.run]
75
+ source = ["src/wheezy/http"]
76
+ omit = ["*/test_*.py", "*/tests/*", "src/wheezy/http/_cgi.py"]
@@ -0,0 +1,60 @@
1
+ #!/usr/bin/env python
2
+
3
+ import os
4
+ from glob import glob
5
+
6
+ from setuptools import Extension, setup # type: ignore[import]
7
+
8
+
9
+ def module_name_from_src_path(path: str) -> str:
10
+ """Derive a fully-qualified module name from a file path under ./src.
11
+
12
+ Cython's default path-to-module logic relies on finding __init__.py files.
13
+ For PEP 420 namespace packages (e.g. "wheezy"), that inference stops too
14
+ early, which can produce incorrect module names (e.g. "http.*").
15
+ """
16
+
17
+ rel = os.path.relpath(path, "src")
18
+ rel_no_ext = os.path.splitext(rel)[0]
19
+ return rel_no_ext.replace(os.sep, ".")
20
+
21
+
22
+ def optional_cython_extensions() -> object:
23
+ try:
24
+ from Cython.Build import cythonize # type: ignore[import]
25
+ except ImportError:
26
+ return None
27
+
28
+ package_root = os.path.join("src", "wheezy", "http")
29
+
30
+ sources: list[str] = []
31
+ sources.extend(glob(os.path.join(package_root, "*.py")))
32
+
33
+ extensions: list[Extension] = []
34
+ for src_path in sources:
35
+ basename = os.path.basename(src_path)
36
+ if basename in ("__init__.py", "_cgi.py"):
37
+ continue
38
+ extensions.append(
39
+ Extension(module_name_from_src_path(src_path), [src_path])
40
+ )
41
+
42
+ return cythonize(
43
+ extensions,
44
+ nthreads=2,
45
+ compiler_directives={"language_level": 3},
46
+ quiet=True,
47
+ )
48
+
49
+
50
+ def main() -> None:
51
+ extra = {}
52
+ ext_modules = optional_cython_extensions()
53
+ if ext_modules is not None:
54
+ extra["ext_modules"] = ext_modules
55
+
56
+ setup(**extra)
57
+
58
+
59
+ if __name__ == "__main__":
60
+ main()
@@ -1,8 +1,3 @@
1
- """
2
- """
3
-
4
- # flake8: noqa: F401
5
-
6
1
  from wheezy.http.application import WSGIApplication
7
2
  from wheezy.http.authorization import secure
8
3
  from wheezy.http.cache import response_cache
@@ -72,4 +67,4 @@ __all__ = (
72
67
  "temporary_redirect",
73
68
  "unauthorized",
74
69
  )
75
- __version__ = "3.2.0"
70
+ __version__ = "3.2.2"