Skip to content

Commit 64d10a2

Browse files
authored
Merge branch 'master' into hyp6.6
2 parents 0646279 + 8ab1e61 commit 64d10a2

File tree

8 files changed

+45
-33
lines changed

8 files changed

+45
-33
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ jobs:
1616
- 3.6
1717
- 3.7
1818
- 3.8
19+
- 3.9
1920
- pypy3
2021

2122
steps:

CHANGELOG.rst

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,18 @@ dev
77
**Note:** The GitHub repository has been renamed to ``python-hyper/h2``, previously
88
was ``python-hyper/hyper-h2``. **The name of the package on PyPI is unchanged**
99

10-
**API Changes (Backward Incompatible)**
10+
API Changes (Backward-Compatible)
11+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
12+
13+
- Support for Python 3.9 has been added.
14+
15+
API Changes (Backward-Incompatible)
16+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1117

1218
-
1319

14-
**Bugfixes**
20+
Bugfixes
21+
~~~~~~~~
1522

1623
-
1724

MANIFEST.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
graft h2
1+
graft src/h2
22
graft docs
33
graft test
44
graft visualizer
55
graft examples
66
prune docs/build
77
recursive-include examples *.py *.crt *.key *.pem *.csr
8-
include README.rst LICENSE CHANGELOG.rst tox.ini Makefile
8+
include README.rst LICENSE CHANGELOG.rst tox.ini
99
global-exclude *.pyc *.pyo *.swo *.swp *.map *.yml *.DS_Store

Makefile

Lines changed: 0 additions & 5 deletions
This file was deleted.

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ h2: HTTP/2 Protocol Stack
99
:target: https://codecov.io/gh/python-hyper/h2
1010
:alt: Code Coverage
1111
.. image:: https://readthedocs.org/projects/h2/badge/?version=latest
12-
:target: https://h2.readthedocs.io
12+
:target: https://h2.readthedocs.io/en/latest/
1313
:alt: Documentation Status
1414
.. image:: https://img.shields.io/badge/chat-join_now-brightgreen.svg
1515
:target: https://gitter.im/python-hyper/community
1616
:alt: Chat community
1717

18-
.. image:: https://raw.github.com/Lukasa/hyper/development/docs/source/images/hyper.png
18+
.. image:: https://raw.github.com/python-hyper/documentation/master/source/logo/hyper-black-bg-white.png
1919

2020
This repository contains a pure-Python implementation of a HTTP/2 protocol
2121
stack. It's written from the ground up to be embeddable in whatever program you

setup.cfg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,7 @@ exclude_lines =
1818
source =
1919
src
2020
.tox/*/site-packages
21+
22+
[flake8]
23+
max-line-length = 120
24+
max-complexity = 10

setup.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
#!/usr/bin/env python
2-
# -*- coding: utf-8 -*-
1+
#!/usr/bin/env python3
2+
33
import os
44
import re
5-
import sys
65

76
from setuptools import setup, find_packages
87

@@ -11,12 +10,10 @@
1110
with open(os.path.join(PROJECT_ROOT, 'README.rst')) as file_:
1211
long_description = file_.read()
1312

14-
# Get the version
1513
version_regex = r'__version__ = ["\']([^"\']*)["\']'
1614
with open(os.path.join(PROJECT_ROOT, 'src/h2/__init__.py')) as file_:
1715
text = file_.read()
1816
match = re.search(version_regex, text)
19-
2017
if match:
2118
version = match.group(1)
2219
else:
@@ -32,10 +29,9 @@
3229
author_email='[email protected]',
3330
url='https://github.com/python-hyper/h2',
3431
packages=find_packages(where="src"),
35-
package_data={'': ['LICENSE', 'README.rst', 'CHANGELOG.rst']},
32+
package_data={'h2': []},
3633
package_dir={'': 'src'},
3734
python_requires='>=3.6.1',
38-
include_package_data=True,
3935
license='MIT License',
4036
classifiers=[
4137
'Development Status :: 5 - Production/Stable',
@@ -46,6 +42,7 @@
4642
'Programming Language :: Python :: 3.6',
4743
'Programming Language :: Python :: 3.7',
4844
'Programming Language :: Python :: 3.8',
45+
'Programming Language :: Python :: 3.9',
4946
'Programming Language :: Python :: Implementation :: CPython',
5047
'Programming Language :: Python :: Implementation :: PyPy',
5148
],

tox.ini

Lines changed: 23 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,22 @@
11
[tox]
2-
envlist = py36, py37, py38, pypy3, lint, docs, packaging
2+
envlist = py36, py37, py38, py39, pypy3, lint, docs, packaging
33

44
[gh-actions]
55
python =
66
3.6: py36
77
3.7: py37
8-
3.8: py38, format, mypy, lint, docs, packaging, h2spec
8+
3.8: py38
9+
3.9: py39, lint, docs, packaging, h2spec
910
pypy3: pypy3
1011

1112
[testenv]
1213
passenv =
1314
GITHUB_*
1415
deps =
15-
pytest==6.0.2
16-
pytest-cov==2.10.1
17-
pytest-xdist==2.1.0
18-
hypothesis>=5.49,<7
16+
pytest>=6.0.1,<7
17+
pytest-cov>=2.10.1,<3
18+
pytest-xdist>=2.0.0,<3
19+
hypothesis>=5.5,<7
1920
commands =
2021
pytest --cov-report=xml --cov-report=term --cov=h2 {posargs}
2122

@@ -24,34 +25,41 @@ commands =
2425
commands = pytest {posargs}
2526

2627
[testenv:lint]
27-
basepython = python3.8
2828
deps =
29-
flake8==3.8.3
30-
commands = flake8 --max-complexity 10 src test
29+
flake8>=3.9.1,<4
30+
commands = flake8 src/ test/
3131

3232
[testenv:docs]
33-
basepython = python3.8
3433
deps =
35-
sphinx==3.2.1
34+
sphinx>=4.0.2,<5
3635
whitelist_externals = make
3736
changedir = {toxinidir}/docs
3837
commands =
3938
make clean
4039
make html
4140

4241
[testenv:packaging]
43-
basepython = python3.8
42+
basepython = python3.9
4443
deps =
45-
check-manifest==0.42
46-
readme-renderer==26.0
47-
twine==3.2.0
44+
check-manifest==0.46
45+
readme-renderer==29.0
46+
twine>=3.4.1,<4
4847
whitelist_externals = rm
4948
commands =
5049
rm -rf dist/
5150
check-manifest
5251
python setup.py sdist bdist_wheel
5352
twine check dist/*
5453

54+
[testenv:publish]
55+
basepython = {[testenv:packaging]basepython}
56+
deps =
57+
{[testenv:packaging]deps}
58+
whitelist_externals = {[testenv:packaging]whitelist_externals}
59+
commands =
60+
{[testenv:packaging]commands}
61+
twine upload dist/*
62+
5563
[testenv:graphs]
5664
basepython = python3.8
5765
deps =

0 commit comments

Comments
 (0)