Skip to content

Commit

Permalink
Drop python 3.6 (cherry-pick ethereum#2343)
Browse files Browse the repository at this point in the history
* Drop python 3.6

* Remove parity tests
  • Loading branch information
kclowes authored and BrendanGraham14 committed Dec 27, 2022
1 parent 77b123b commit baebb60
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 253 deletions.
231 changes: 1 addition & 230 deletions .circleci/config.yml
Expand Up @@ -59,44 +59,6 @@ docs_steps: &docs_steps
key: cache-docs-{{ .Environment.CIRCLE_JOB }}-{{ checksum "setup.py" }}-{{ checksum "tox.ini" }}
resource_class: xlarge

# parity_steps: &parity_steps
# working_directory: ~/repo
# steps:
# - checkout
# - restore_cache:
# keys:
# - cache-{{ .Environment.CIRCLE_JOB }}-{{ checksum "setup.py" }}-{{ checksum "tox.ini" }}
# - run:
# name: install dependencies
# command: pip install --user tox
# - run:
# name: install parity if needed
# command: |
# pip install --user requests eth_utils tqdm eth-hash[pycryptodome]
# echo "Job specifies Parity version $PARITY_VERSION"
# python tests/integration/parity/install_parity.py $PARITY_VERSION
# - run:
# name: update parity deps from testing repo if needed
# command: |
# [ "`cat /etc/*release | grep jessie`" != "" ] && echo "On Jessie - installing missing deps..." || echo "Not on Jessie - doing nothing."
# [ "`cat /etc/*release | grep jessie`" != "" ] || exit 0
# echo "deb http://ftp.debian.org/debian testing main" > testing.list && sudo mv testing.list /etc/apt/sources.list.d/
# sudo apt update
# sudo apt-get -t testing install libstdc++6
# - run:
# name: run tox
# command: ~/.local/bin/tox -r
# - save_cache:
# paths:
# - .tox
# - ~/.cache/pip
# - ~/.local
# - ./eggs
# - ~/.ethash
# - ~/.py-geth
# - ~/.parity-bin
# key: cache-{{ .Environment.CIRCLE_JOB }}-{{ checksum "setup.py" }}-{{ checksum "tox.ini" }}

geth_steps: &geth_steps
working_directory: ~/repo
steps:
Expand Down Expand Up @@ -243,7 +205,6 @@ windows_steps: &windows_steps
- .tox
key: windows-cache-{{ .Environment.CIRCLE_JOB }}-{{ checksum "setup.py" }}-{{ checksum "tox.ini" }}


jobs:
lint:
<<: *common
Expand All @@ -255,99 +216,10 @@ jobs:
docs:
<<: *docs_steps
docker:
- image: circleci/python:3.6
- image: circleci/python:3.9
environment:
TOXENV: docs

py36-core:
<<: *common
docker:
- image: circleci/python:3.6
environment:
TOXENV: py36-core

py36-ens:
<<: *common
docker:
- image: circleci/python:3.6
environment:
TOXENV: py36-ens

py36-ethpm:
<<: *ethpm_steps
docker:
- image: circleci/python:3.6
environment:
TOXENV: py36-ethpm
# Please don't use this key for any shenanigans
WEB3_INFURA_PROJECT_ID: 7707850c2fb7465ebe6f150d67182e22

py36-integration-goethereum-ipc:
<<: *geth_steps
docker:
- image: circleci/python:3.6
environment:
TOXENV: py36-integration-goethereum-ipc
GETH_VERSION: v1.10.23

py36-integration-goethereum-http:
<<: *geth_steps
docker:
- image: circleci/python:3.6
environment:
TOXENV: py36-integration-goethereum-http
GETH_VERSION: v1.10.23

py36-integration-goethereum-ws:
<<: *geth_steps
docker:
- image: circleci/python:3.6
environment:
TOXENV: py36-integration-goethereum-ws
GETH_VERSION: v1.10.23

# py36-integration-parity-ipc:
# <<: *parity_steps
# docker:
# - image: circleci/python:3.6-stretch
# environment:
# TOXENV: py36-integration-parity-ipc
# PARITY_VERSION: v2.3.5
# PARITY_OS: linux

# py36-integration-parity-http:
# <<: *parity_steps
# docker:
# - image: circleci/python:3.6-stretch
# environment:
# TOXENV: py36-integration-parity-http
# PARITY_VERSION: v2.3.5
# PARITY_OS: linux

# py36-integration-parity-ws:
# <<: *parity_steps
# docker:
# - image: circleci/python:3.6-stretch
# environment:
# TOXENV: py36-integration-parity-ws
# PARITY_VERSION: v2.3.5
# PARITY_OS: linux

py36-integration-ethtester-pyevm:
<<: *common
docker:
- image: circleci/python:3.6
environment:
TOXENV: py36-integration-ethtester
ETHEREUM_TESTER_CHAIN_BACKEND: eth_tester.backends.PyEVMBackend

py36-wheel-cli:
<<: *common
docker:
- image: circleci/python:3.6
environment:
TOXENV: py36-wheel-cli

#
# Python 3.7
#
Expand Down Expand Up @@ -398,33 +270,6 @@ jobs:
TOXENV: py37-integration-goethereum-ws
GETH_VERSION: v1.10.23

# py37-integration-parity-ipc:
# <<: *parity_steps
# docker:
# - image: circleci/python:3.7-stretch
# environment:
# TOXENV: py37-integration-parity-ipc
# PARITY_VERSION: v2.3.5
# PARITY_OS: linux

# py37-integration-parity-http:
# <<: *parity_steps
# docker:
# - image: circleci/python:3.7-stretch
# environment:
# TOXENV: py37-integration-parity-http
# PARITY_VERSION: v2.3.5
# PARITY_OS: linux

# py37-integration-parity-ws:
# <<: *parity_steps
# docker:
# - image: circleci/python:3.7-stretch
# environment:
# TOXENV: py37-integration-parity-ws
# PARITY_VERSION: v2.3.5
# PARITY_OS: linux

py37-integration-ethtester-pyevm:
<<: *common
docker:
Expand Down Expand Up @@ -495,33 +340,6 @@ jobs:
TOXENV: py38-integration-goethereum-ws
GETH_VERSION: v1.10.23

# py38-integration-parity-ipc:
# <<: *parity_steps
# docker:
# - image: circleci/python:3.8
# environment:
# TOXENV: py38-integration-parity-ipc
# PARITY_VERSION: v2.3.5
# PARITY_OS: linux

# py38-integration-parity-http:
# <<: *parity_steps
# docker:
# - image: circleci/python:3.8
# environment:
# TOXENV: py38-integration-parity-http
# PARITY_VERSION: v2.3.5
# PARITY_OS: linux

# py38-integration-parity-ws:
# <<: *parity_steps
# docker:
# - image: circleci/python:3.8
# environment:
# TOXENV: py38-integration-parity-ws
# PARITY_VERSION: v2.3.5
# PARITY_OS: linux

py38-integration-ethtester-pyevm:
<<: *common
docker:
Expand Down Expand Up @@ -587,33 +405,6 @@ jobs:
TOXENV: py39-integration-goethereum-ws
GETH_VERSION: v1.10.23

# py39-integration-parity-ipc:
# <<: *parity_steps
# docker:
# - image: circleci/python:3.9
# environment:
# TOXENV: py39-integration-parity-ipc
# PARITY_VERSION: v2.3.5
# PARITY_OS: linux

# py39-integration-parity-http:
# <<: *parity_steps
# docker:
# - image: circleci/python:3.9
# environment:
# TOXENV: py39-integration-parity-http
# PARITY_VERSION: v2.3.5
# PARITY_OS: linux

# py39-integration-parity-ws:
# <<: *parity_steps
# docker:
# - image: circleci/python:3.9
# environment:
# TOXENV: py39-integration-parity-ws
# PARITY_VERSION: v2.3.5
# PARITY_OS: linux

py39-integration-ethtester-pyevm:
<<: *common
docker:
Expand Down Expand Up @@ -642,31 +433,17 @@ workflows:
test:
jobs:
# These are the longest running tests, start them first
- py36-core
- py37-core
- py38-core
- py39-core
- lint
- docs
- benchmark
- py36-ens
- py36-ethpm
- py36-integration-goethereum-ipc
- py36-integration-goethereum-http
- py36-integration-goethereum-ws
# - py36-integration-parity-ipc
# - py36-integration-parity-http
# - py36-integration-parity-ws
- py36-integration-ethtester-pyevm
- py36-wheel-cli
- py37-ens
- py37-ethpm
- py37-integration-goethereum-ipc
- py37-integration-goethereum-http
- py37-integration-goethereum-ws
# - py37-integration-parity-ipc
# - py37-integration-parity-http
# - py37-integration-parity-ws
- py37-integration-ethtester-pyevm
- py37-wheel-cli
- py37-wheel-cli-windows
Expand All @@ -675,18 +452,12 @@ workflows:
- py38-integration-goethereum-ipc
- py38-integration-goethereum-http
- py38-integration-goethereum-ws
# - py38-integration-parity-ipc
# - py38-integration-parity-http
# - py38-integration-parity-ws
- py38-integration-ethtester-pyevm
- py38-wheel-cli
- py39-ens
- py39-ethpm
- py39-integration-goethereum-ipc
- py39-integration-goethereum-http
- py39-integration-goethereum-ws
# - py39-integration-parity-ipc
# - py39-integration-parity-http
# - py39-integration-parity-ws
- py39-integration-ethtester-pyevm
- py39-wheel-cli
19 changes: 9 additions & 10 deletions setup.py
Expand Up @@ -96,7 +96,7 @@
"typing-extensions>=3.7.4.1,<5;python_version<'3.8'",
"websockets>=9.1,<10",
],
python_requires=">=3.6,<4",
python_requires='>=3.7,<4',
extras_require=extras_require,
py_modules=["web3", "ens", "ethpm"],
entry_points={"pytest11": ["pytest_ethereum = web3.tools.pytest_ethereum.plugins"]},
Expand All @@ -106,14 +106,13 @@
packages=find_packages(exclude=["tests", "tests.*"]),
package_data={"web3": ["py.typed"]},
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
],
)
19 changes: 6 additions & 13 deletions tox.ini
@@ -1,13 +1,13 @@
[tox]
envlist=
py{36,37,38,39}-ens
py{36,37,38,39}-ethpm
py{36,37,38,39}-core
py{36,37,38,39}-integration-{goethereum,ethtester}
py{37,38,39}-ens
py{37,38,39}-ethpm
py{37,38,39}-core
py{37,38,39}-integration-{goethereum,ethtester}
lint
docs
benchmark
py{36,37,38,39}-wheel-cli
py{37,38,39}-wheel-cli

[isort]
combine_as_imports=True
Expand Down Expand Up @@ -48,8 +48,7 @@ passenv =
WEB3_INFURA_PROJECT_ID
WEB3_INFURA_API_SECRET
basepython =
docs: python3.6
py36: python3.6
docs: python3.9
py37: python3.7
py38: python3.8
py39: python3.9
Expand Down Expand Up @@ -80,12 +79,6 @@ commands=
/bin/bash -c 'pip install --upgrade "$(ls dist/web3-*-py3-none-any.whl)" --progress-bar off'
python -c "from web3.auto import w3"

[testenv:py36-wheel-cli]
deps={[common-wheel-cli]deps}
allowlist_externals={[common-wheel-cli]allowlist_externals}
commands={[common-wheel-cli]commands}
skip_install=true

[testenv:py37-wheel-cli]
deps={[common-wheel-cli]deps}
allowlist_externals={[common-wheel-cli]allowlist_externals}
Expand Down

0 comments on commit baebb60

Please sign in to comment.