Skip to content

Commit

Permalink
Add Python 3.11, add more black checks, remove upper pins (ethereum#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
kclowes authored Nov 9, 2022
1 parent c802e5d commit 7b0bc76
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 12 deletions.
7 changes: 7 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,12 @@ jobs:
- image: cimg/python:3.10
environment:
TOXENV: py310-core
py311-core:
<<: *common
docker:
- image: cimg/python:3.11
environment:
TOXENV: py311-core
pypy3-core:
<<: *common
docker:
Expand All @@ -88,4 +94,5 @@ workflows:
- py38-core
- py39-core
- py310-core
- py311-core
- pypy3-core
21 changes: 11 additions & 10 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,25 @@

extras_require = {
"test": [
"pytest>=6.2.5,<7",
"pytest>=6.2.5",
"pytest-xdist>=2.4.0,<3",
"tox==3.14.6",
],
"lint": [
"flake8==3.7.9",
"isort>=5.10.1,<6",
"isort>=5.10.1",
"mypy==0.770",
"pydocstyle>=5.0.0,<6",
"black>=22,<23",
"pydocstyle>=5.0.0",
"black>=22",
],
"doc": [
"Sphinx>=1.6.5,<2",
"sphinx_rtd_theme>=0.1.9,<1",
"towncrier>=21,<22",
"Sphinx>=1.6.5",
"sphinx_rtd_theme>=0.1.9",
"towncrier>=21",
],
"dev": [
"bumpversion>=0.5.3,<1",
"pytest-watch>=4.1.0,<5",
"bumpversion>=0.5.3",
"pytest-watch>=4.1.0",
"wheel",
"twine",
"ipython",
Expand Down Expand Up @@ -56,7 +56,7 @@
url="https://github.com/ethereum/<REPO_NAME>",
include_package_data=True,
install_requires=[
"eth-utils>=2,<3",
"eth-utils>=2",
],
python_requires=">=3.7, <4",
extras_require=extras_require,
Expand All @@ -78,6 +78,7 @@
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: Implementation :: PyPy",
],
)
5 changes: 3 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tox]
envlist=
py{37,38,39,310,py3}-core
py{37,38,39,310,311,py3}-core
lint
docs

Expand All @@ -27,6 +27,7 @@ basepython =
py38: python3.8
py39: python3.9
py310: python3.10
py311: python3.11
pypy3: pypy3
extras=
test
Expand All @@ -42,4 +43,4 @@ commands=
flake8 {toxinidir}/<MODULE_NAME> {toxinidir}/tests
isort --check-only --diff {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

0 comments on commit 7b0bc76

Please sign in to comment.