Import upstream version 4.0.0+git20210606.1.02afcab
Debian Janitor
2 years ago
0 | 0 | Release History |
1 | 1 | =============== |
2 | ||
3 | dev | |
4 | --- | |
5 | ||
6 | **API Changes (Backward Incompatible)** | |
7 | ||
8 | - | |
9 | ||
10 | **Bugfixes** | |
11 | ||
12 | - | |
13 | ||
2 | 14 | |
3 | 15 | 4.0.0 (2020-08-30) |
4 | 16 | ------------------ |
5 | 17 | |
6 | API Changes (Backward-Incompatible) | |
7 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
18 | **API Changes (Backward Incompatible)** | |
8 | 19 | |
9 | 20 | - Support for Python 2.7 has been removed. |
10 | 21 | - Support for Python 3.4 has been removed. |
0 | graft src | |
0 | graft src/hpack | |
1 | 1 | graft docs |
2 | 2 | graft test |
3 | 3 | prune bench |
6 | 6 | exclude tasks.py |
7 | 7 | exclude test/test_fixtures/*/*.json |
8 | 8 | exclude test/test_hpack_integration.py |
9 | include README.rst LICENSE CHANGELOG.rst CONTRIBUTORS.rst tox.ini Makefile | |
9 | include README.rst LICENSE CHANGELOG.rst CONTRIBUTORS.rst tox.ini | |
10 | 10 | global-exclude *.pyc *.pyo *.swo *.swp *.map *.yml *.DS_Store |
0 | .PHONY: publish sample_output | |
1 | ||
2 | publish: | |
3 | rm -rf dist/ | |
4 | tox -e packaging | |
5 | twine upload -s dist/* | |
6 | ||
7 | sample_output: | |
8 | rm -rf hpack-test-case/ | |
9 | git clone https://github.com/http2jp/hpack-test-case.git | |
10 | tox -e create_test_output -- hpack-test-case |
0 | 0 | Metadata-Version: 2.1 |
1 | 1 | Name: hpack |
2 | Version: 4.0.0 | |
2 | Version: 4.1.0+dev | |
3 | 3 | Summary: Pure-Python HPACK header compression |
4 | 4 | Home-page: https://github.com/python-hyper/hpack |
5 | 5 | Author: Cory Benfield |
22 | 22 | :target: https://gitter.im/python-hyper/community |
23 | 23 | :alt: Chat community |
24 | 24 | |
25 | .. image:: https://raw.github.com/Lukasa/hyper/development/docs/source/images/hyper.png | |
25 | .. image:: https://raw.github.com/python-hyper/documentation/master/source/logo/hyper-black-bg-white.png | |
26 | 26 | |
27 | 27 | This module contains a pure-Python HTTP/2 header encoding (HPACK) logic for use |
28 | 28 | in Python programs that implement HTTP/2. |
29 | ||
30 | Documentation | |
31 | ============= | |
32 | ||
33 | Documentation is available at https://hpack.readthedocs.io . | |
29 | 34 | |
30 | 35 | Contributing |
31 | 36 | ============ |
60 | 65 | Classifier: Programming Language :: Python :: 3.6 |
61 | 66 | Classifier: Programming Language :: Python :: 3.7 |
62 | 67 | Classifier: Programming Language :: Python :: 3.8 |
68 | Classifier: Programming Language :: Python :: 3.9 | |
63 | 69 | Classifier: Programming Language :: Python :: Implementation :: CPython |
64 | 70 | Classifier: Programming Language :: Python :: Implementation :: PyPy |
65 | 71 | Requires-Python: >=3.6.1 |
14 | 14 | :target: https://gitter.im/python-hyper/community |
15 | 15 | :alt: Chat community |
16 | 16 | |
17 | .. image:: https://raw.github.com/Lukasa/hyper/development/docs/source/images/hyper.png | |
17 | .. image:: https://raw.github.com/python-hyper/documentation/master/source/logo/hyper-black-bg-white.png | |
18 | 18 | |
19 | 19 | This module contains a pure-Python HTTP/2 header encoding (HPACK) logic for use |
20 | 20 | in Python programs that implement HTTP/2. |
21 | ||
22 | Documentation | |
23 | ============= | |
24 | ||
25 | Documentation is available at https://hpack.readthedocs.io . | |
21 | 26 | |
22 | 27 | Contributing |
23 | 28 | ============ |
0 | #!/usr/bin/env python | |
1 | # -*- coding: utf-8 -*- | |
2 | import codecs | |
0 | #!/usr/bin/env python3 | |
1 | ||
3 | 2 | import os |
4 | 3 | import re |
5 | import sys | |
6 | 4 | |
7 | 5 | from setuptools import setup, find_packages |
8 | 6 | |
11 | 9 | with open(os.path.join(PROJECT_ROOT, 'README.rst')) as file_: |
12 | 10 | long_description = file_.read() |
13 | 11 | |
14 | # Get the version | |
15 | 12 | version_regex = r'__version__ = ["\']([^"\']*)["\']' |
16 | 13 | with open(os.path.join(PROJECT_ROOT, 'src/hpack/__init__.py')) as file_: |
17 | 14 | text = file_.read() |
18 | 15 | match = re.search(version_regex, text) |
19 | ||
20 | 16 | if match: |
21 | 17 | version = match.group(1) |
22 | 18 | else: |
23 | 19 | raise RuntimeError("No version number found!") |
24 | ||
25 | # Stealing this from Kenneth Reitz | |
26 | if sys.argv[-1] == 'publish': | |
27 | os.system('python setup.py sdist upload') | |
28 | sys.exit() | |
29 | 20 | |
30 | 21 | setup( |
31 | 22 | name='hpack', |
37 | 28 | author_email='cory@lukasa.co.uk', |
38 | 29 | url='https://github.com/python-hyper/hpack', |
39 | 30 | packages=find_packages(where="src"), |
40 | package_data={'': ['LICENSE', 'README.rst', 'CHANGELOG.rst']}, | |
31 | package_data={'hpack': []}, | |
41 | 32 | package_dir={'': 'src'}, |
42 | 33 | python_requires='>=3.6.1', |
43 | include_package_data=True, | |
44 | 34 | license='MIT License', |
45 | 35 | classifiers=[ |
46 | 36 | 'Development Status :: 5 - Production/Stable', |
51 | 41 | 'Programming Language :: Python :: 3.6', |
52 | 42 | 'Programming Language :: Python :: 3.7', |
53 | 43 | 'Programming Language :: Python :: 3.8', |
44 | 'Programming Language :: Python :: 3.9', | |
54 | 45 | 'Programming Language :: Python :: Implementation :: CPython', |
55 | 46 | 'Programming Language :: Python :: Implementation :: PyPy', |
56 | 47 | ], |
0 | 0 | Metadata-Version: 2.1 |
1 | 1 | Name: hpack |
2 | Version: 4.0.0 | |
2 | Version: 4.1.0+dev | |
3 | 3 | Summary: Pure-Python HPACK header compression |
4 | 4 | Home-page: https://github.com/python-hyper/hpack |
5 | 5 | Author: Cory Benfield |
22 | 22 | :target: https://gitter.im/python-hyper/community |
23 | 23 | :alt: Chat community |
24 | 24 | |
25 | .. image:: https://raw.github.com/Lukasa/hyper/development/docs/source/images/hyper.png | |
25 | .. image:: https://raw.github.com/python-hyper/documentation/master/source/logo/hyper-black-bg-white.png | |
26 | 26 | |
27 | 27 | This module contains a pure-Python HTTP/2 header encoding (HPACK) logic for use |
28 | 28 | in Python programs that implement HTTP/2. |
29 | ||
30 | Documentation | |
31 | ============= | |
32 | ||
33 | Documentation is available at https://hpack.readthedocs.io . | |
29 | 34 | |
30 | 35 | Contributing |
31 | 36 | ============ |
60 | 65 | Classifier: Programming Language :: Python :: 3.6 |
61 | 66 | Classifier: Programming Language :: Python :: 3.7 |
62 | 67 | Classifier: Programming Language :: Python :: 3.8 |
68 | Classifier: Programming Language :: Python :: 3.9 | |
63 | 69 | Classifier: Programming Language :: Python :: Implementation :: CPython |
64 | 70 | Classifier: Programming Language :: Python :: Implementation :: PyPy |
65 | 71 | Requires-Python: >=3.6.1 |
0 | 0 | [tox] |
1 | envlist = py36, py37, py38, pypy3, lint, docs, packaging | |
1 | envlist = py36, py37, py38, py39, pypy3, lint, docs, packaging | |
2 | 2 | |
3 | 3 | [gh-actions] |
4 | 4 | python = |
5 | 5 | 3.6: py36 |
6 | 6 | 3.7: py37 |
7 | 3.8: py38, lint, docs, packaging | |
7 | 3.8: py38 | |
8 | 3.9: py39, lint, docs, packaging | |
8 | 9 | pypy3: pypy3 |
9 | 10 | |
10 | 11 | [testenv] |
11 | 12 | passenv = |
12 | 13 | GITHUB_* |
13 | 14 | deps = |
14 | pytest==6.0.1 | |
15 | pytest-cov==2.10.1 | |
16 | pytest-xdist==2.0.0 | |
17 | hypothesis>=5.5,<6 | |
18 | attrs==19.3.0 | |
15 | pytest>=6.0.1,<7 | |
16 | pytest-cov>=2.10.1,<3 | |
17 | pytest-xdist>=2.0.0,<3 | |
18 | hypothesis>=5.5,<7 | |
19 | 19 | commands = |
20 | 20 | pytest --cov-report=xml --cov-report=term --cov=hpack {posargs} |
21 | 21 | |
24 | 24 | commands = pytest {posargs} |
25 | 25 | |
26 | 26 | [testenv:lint] |
27 | basepython = python3.8 | |
28 | 27 | deps = |
29 | flake8==3.8.3 | |
30 | commands = flake8 --max-complexity 10 src test utils | |
28 | flake8>=3.9.1,<4 | |
29 | commands = flake8 src/ test/ utils/ | |
31 | 30 | |
32 | 31 | [testenv:docs] |
33 | basepython = python3.8 | |
34 | 32 | deps = |
35 | sphinx==3.2.1 | |
33 | sphinx>=4.0.2,<5 | |
36 | 34 | whitelist_externals = make |
37 | 35 | changedir = {toxinidir}/docs |
38 | 36 | commands = |
40 | 38 | make html |
41 | 39 | |
42 | 40 | [testenv:packaging] |
43 | basepython = python3.8 | |
41 | basepython = python3.9 | |
44 | 42 | deps = |
45 | check-manifest==0.42 | |
46 | readme-renderer==26.0 | |
47 | twine==3.2.0 | |
43 | check-manifest==0.46 | |
44 | readme-renderer==29.0 | |
45 | twine>=3.4.1,<4 | |
46 | whitelist_externals = rm | |
48 | 47 | commands = |
48 | rm -rf dist/ | |
49 | 49 | check-manifest |
50 | 50 | python setup.py sdist bdist_wheel |
51 | 51 | twine check dist/* |
52 | ||
53 | [testenv:publish] | |
54 | basepython = {[testenv:packaging]basepython} | |
55 | deps = | |
56 | {[testenv:packaging]deps} | |
57 | whitelist_externals = {[testenv:packaging]whitelist_externals} | |
58 | commands = | |
59 | {[testenv:packaging]commands} | |
60 | twine upload dist/* | |
52 | 61 | |
53 | 62 | [testenv:bench] |
54 | 63 | deps = |
59 | 68 | |
60 | 69 | [testenv:create_test_output] |
61 | 70 | basepython = python3.7 |
71 | ; rm -rf hpack-test-case/ | |
72 | ; git clone https://github.com/http2jp/hpack-test-case.git | |
62 | 73 | commands = python {toxinidir}/utils/create_test_output.py {posargs} |