Skip to content

Commit 5632eb8

Browse files
committed
unify repository layout
1 parent 9eac101 commit 5632eb8

File tree

5 files changed

+28
-30
lines changed

5 files changed

+28
-30
lines changed

MANIFEST.in

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
graft src
1+
graft src/hyperframe
22
graft docs
33
graft test
44
prune docs/build
55
prune test/http2-frame-test-case
66
include README.rst LICENSE CHANGELOG.rst CONTRIBUTORS.rst tox.ini .gitmodules
7-
include src/hyperframe/py.typed
87
global-exclude *.pyc *.pyo *.swo *.swp *.map *.yml *.DS_Store

Makefile

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

setup.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ source =
1919

2020
[flake8]
2121
max-line-length = 120
22+
max-complexity = 10
2223

2324
[check-manifest]
2425
ignore =

setup.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
#!/usr/bin/env python
2-
# -*- coding: utf-8 -*-
3-
import itertools
1+
#!/usr/bin/env python3
2+
43
import os
54
import re
6-
import sys
75

86
from setuptools import setup, find_packages
97

@@ -12,12 +10,10 @@
1210
with open(os.path.join(PROJECT_ROOT, 'README.rst')) as file_:
1311
long_description = file_.read()
1412

15-
# Get the version
1613
version_regex = r'__version__ = ["\']([^"\']*)["\']'
1714
with open(os.path.join(PROJECT_ROOT, 'src/hyperframe/__init__.py')) as file_:
1815
text = file_.read()
1916
match = re.search(version_regex, text)
20-
2117
if match:
2218
version = match.group(1)
2319
else:
@@ -33,10 +29,9 @@
3329
author_email='[email protected]',
3430
url='https://github.com/python-hyper/hyperframe/',
3531
packages=find_packages(where="src"),
36-
package_data={'': ['LICENSE', 'README.rst', 'CHANGELOG.rst'], "hyperframe": ["py.typed"]},
32+
package_data={'hyperframe': ['py.typed']},
3733
package_dir={'': 'src'},
3834
python_requires='>=3.6.1',
39-
include_package_data=True,
4035
license='MIT License',
4136
classifiers=[
4237
'Development Status :: 5 - Production/Stable',
@@ -47,6 +42,7 @@
4742
'Programming Language :: Python :: 3.6',
4843
'Programming Language :: Python :: 3.7',
4944
'Programming Language :: Python :: 3.8',
45+
'Programming Language :: Python :: 3.9',
5046
'Programming Language :: Python :: Implementation :: CPython',
5147
'Programming Language :: Python :: Implementation :: PyPy',
5248
],

tox.ini

Lines changed: 22 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ envlist = py36, py37, py38, py39, pypy3, lint, docs, packaging
55
python =
66
3.6: py36
77
3.7: py37
8-
3.8: py38, lint, docs, packaging
9-
3.9: py39
8+
3.8: py38
9+
3.9: py39, lint, docs, packaging
1010
pypy3: pypy3
1111

1212
[testenv]
@@ -23,34 +23,41 @@ commands =
2323
# temporarily disable coverage testing on PyPy due to performance problems
2424
commands = pytest {posargs}
2525

26+
[testenv:lint]
27+
deps =
28+
flake8>=3.9.1,<4
29+
mypy==0.812
30+
commands =
31+
flake8 src/ test/
32+
mypy --strict src/
33+
2634
[testenv:docs]
27-
basepython = python3.8
2835
deps =
29-
sphinx>=3.5.4,<4
36+
sphinx>=4.0.2,<5
3037
whitelist_externals = make
3138
changedir = {toxinidir}/docs
3239
commands =
3340
make clean
3441
make html
3542

36-
[testenv:lint]
37-
basepython = python3.8
38-
deps =
39-
flake8==3.9.1
40-
mypy==0.812
41-
commands =
42-
flake8 --max-complexity 10 src test
43-
mypy --strict src/
44-
4543
[testenv:packaging]
46-
basepython = python3.8
44+
basepython = python3.9
4745
deps =
4846
check-manifest==0.46
4947
readme-renderer==29.0
50-
twine==3.4.1
48+
twine>=3.4.1,<4
5149
whitelist_externals = rm
5250
commands =
5351
rm -rf dist/
5452
check-manifest
5553
python setup.py sdist bdist_wheel
5654
twine check dist/*
55+
56+
[testenv:publish]
57+
basepython = {[testenv:packaging]basepython}
58+
deps =
59+
{[testenv:packaging]deps}
60+
whitelist_externals = {[testenv:packaging]whitelist_externals}
61+
commands =
62+
{[testenv:packaging]commands}
63+
twine upload dist/*

0 commit comments

Comments
 (0)