mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2026-02-12 16:10:57 +00:00
Add Python 3.11, add more black checks, remove upper pins (#69)
This commit is contained in:
@ -72,6 +72,12 @@ jobs:
|
|||||||
- image: cimg/python:3.10
|
- image: cimg/python:3.10
|
||||||
environment:
|
environment:
|
||||||
TOXENV: py310-core
|
TOXENV: py310-core
|
||||||
|
py311-core:
|
||||||
|
<<: *common
|
||||||
|
docker:
|
||||||
|
- image: cimg/python:3.11
|
||||||
|
environment:
|
||||||
|
TOXENV: py311-core
|
||||||
pypy3-core:
|
pypy3-core:
|
||||||
<<: *common
|
<<: *common
|
||||||
docker:
|
docker:
|
||||||
@ -88,4 +94,5 @@ workflows:
|
|||||||
- py38-core
|
- py38-core
|
||||||
- py39-core
|
- py39-core
|
||||||
- py310-core
|
- py310-core
|
||||||
|
- py311-core
|
||||||
- pypy3-core
|
- pypy3-core
|
||||||
|
|||||||
21
setup.py
21
setup.py
@ -7,25 +7,25 @@ from setuptools import (
|
|||||||
|
|
||||||
extras_require = {
|
extras_require = {
|
||||||
"test": [
|
"test": [
|
||||||
"pytest>=6.2.5,<7",
|
"pytest>=6.2.5",
|
||||||
"pytest-xdist>=2.4.0,<3",
|
"pytest-xdist>=2.4.0,<3",
|
||||||
"tox==3.14.6",
|
"tox==3.14.6",
|
||||||
],
|
],
|
||||||
"lint": [
|
"lint": [
|
||||||
"flake8==3.7.9",
|
"flake8==3.7.9",
|
||||||
"isort>=5.10.1,<6",
|
"isort>=5.10.1",
|
||||||
"mypy==0.770",
|
"mypy==0.770",
|
||||||
"pydocstyle>=5.0.0,<6",
|
"pydocstyle>=5.0.0",
|
||||||
"black>=22,<23",
|
"black>=22",
|
||||||
],
|
],
|
||||||
"doc": [
|
"doc": [
|
||||||
"Sphinx>=1.6.5,<2",
|
"Sphinx>=1.6.5",
|
||||||
"sphinx_rtd_theme>=0.1.9,<1",
|
"sphinx_rtd_theme>=0.1.9",
|
||||||
"towncrier>=21,<22",
|
"towncrier>=21",
|
||||||
],
|
],
|
||||||
"dev": [
|
"dev": [
|
||||||
"bumpversion>=0.5.3,<1",
|
"bumpversion>=0.5.3",
|
||||||
"pytest-watch>=4.1.0,<5",
|
"pytest-watch>=4.1.0",
|
||||||
"wheel",
|
"wheel",
|
||||||
"twine",
|
"twine",
|
||||||
"ipython",
|
"ipython",
|
||||||
@ -56,7 +56,7 @@ setup(
|
|||||||
url="https://github.com/ethereum/<REPO_NAME>",
|
url="https://github.com/ethereum/<REPO_NAME>",
|
||||||
include_package_data=True,
|
include_package_data=True,
|
||||||
install_requires=[
|
install_requires=[
|
||||||
"eth-utils>=2,<3",
|
"eth-utils>=2",
|
||||||
],
|
],
|
||||||
python_requires=">=3.7, <4",
|
python_requires=">=3.7, <4",
|
||||||
extras_require=extras_require,
|
extras_require=extras_require,
|
||||||
@ -78,6 +78,7 @@ setup(
|
|||||||
"Programming Language :: Python :: 3.8",
|
"Programming Language :: Python :: 3.8",
|
||||||
"Programming Language :: Python :: 3.9",
|
"Programming Language :: Python :: 3.9",
|
||||||
"Programming Language :: Python :: 3.10",
|
"Programming Language :: Python :: 3.10",
|
||||||
|
"Programming Language :: Python :: 3.11",
|
||||||
"Programming Language :: Python :: Implementation :: PyPy",
|
"Programming Language :: Python :: Implementation :: PyPy",
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|||||||
5
tox.ini
5
tox.ini
@ -1,6 +1,6 @@
|
|||||||
[tox]
|
[tox]
|
||||||
envlist=
|
envlist=
|
||||||
py{37,38,39,310,py3}-core
|
py{37,38,39,310,311,py3}-core
|
||||||
lint
|
lint
|
||||||
docs
|
docs
|
||||||
|
|
||||||
@ -27,6 +27,7 @@ basepython =
|
|||||||
py38: python3.8
|
py38: python3.8
|
||||||
py39: python3.9
|
py39: python3.9
|
||||||
py310: python3.10
|
py310: python3.10
|
||||||
|
py311: python3.11
|
||||||
pypy3: pypy3
|
pypy3: pypy3
|
||||||
extras=
|
extras=
|
||||||
test
|
test
|
||||||
@ -42,4 +43,4 @@ commands=
|
|||||||
flake8 {toxinidir}/<MODULE_NAME> {toxinidir}/tests
|
flake8 {toxinidir}/<MODULE_NAME> {toxinidir}/tests
|
||||||
isort --check-only --diff {toxinidir}/<MODULE_NAME> {toxinidir}/tests
|
isort --check-only --diff {toxinidir}/<MODULE_NAME> {toxinidir}/tests
|
||||||
pydocstyle --explain {toxinidir}/<MODULE_NAME> {toxinidir}/tests
|
pydocstyle --explain {toxinidir}/<MODULE_NAME> {toxinidir}/tests
|
||||||
black --check {toxinidir}/<MODULE_NAME> {toxinidir}/tests setup.py
|
black --check {toxinidir}/<MODULE_NAME> {toxinidir}/docs {toxinidir}/tests {toxinidir}/setup.py
|
||||||
|
|||||||
Reference in New Issue
Block a user