-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
162 additions
and
159 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ common: &common | |
- checkout | ||
- restore_cache: | ||
keys: | ||
- cache-{{ .Environment.CIRCLE_JOB }}-{{ checksum "setup.py" }}-{{ checksum "tox.ini" }} | ||
- cache-{{ .Environment.CIRCLE_JOB }}-{{ checksum "pyproject.toml" }}-{{ checksum "tox.ini" }} | ||
- run: | ||
name: checkout ethpm-spec submodule | ||
command: git submodule update --init --recursive | ||
|
@@ -26,15 +26,15 @@ common: &common | |
- ./eggs | ||
- ~/.ethash | ||
- ~/.py-geth | ||
key: cache-{{ .Environment.CIRCLE_JOB }}-{{ checksum "setup.py" }}-{{ checksum "tox.ini" }} | ||
key: cache-{{ .Environment.CIRCLE_JOB }}-{{ checksum "pyproject.toml" }}-{{ checksum "tox.ini" }} | ||
|
||
docs_steps: &docs_steps | ||
working_directory: ~/repo | ||
steps: | ||
- checkout | ||
- restore_cache: | ||
keys: | ||
- cache-docs-{{ .Environment.CIRCLE_JOB }}-{{ checksum "setup.py" }}-{{ checksum "tox.ini" }} | ||
- cache-docs-{{ .Environment.CIRCLE_JOB }}-{{ checksum "pyproject.toml" }}-{{ checksum "tox.ini" }} | ||
- run: | ||
name: checkout ethpm-spec submodule | ||
command: git submodule update --init --recursive | ||
|
@@ -55,15 +55,15 @@ docs_steps: &docs_steps | |
- ./eggs | ||
- ~/.ethash | ||
- ~/.py-geth | ||
key: cache-docs-{{ .Environment.CIRCLE_JOB }}-{{ checksum "setup.py" }}-{{ checksum "tox.ini" }} | ||
key: cache-docs-{{ .Environment.CIRCLE_JOB }}-{{ checksum "pyproject.toml" }}-{{ checksum "tox.ini" }} | ||
|
||
geth_steps: &geth_steps | ||
working_directory: ~/repo | ||
steps: | ||
- checkout | ||
- restore_cache: | ||
keys: | ||
- cache-{{ .Environment.CIRCLE_JOB }}-{{ checksum "setup.py" }}-{{ checksum "tox.ini" }} | ||
- cache-{{ .Environment.CIRCLE_JOB }}-{{ checksum "pyproject.toml" }}-{{ checksum "tox.ini" }} | ||
- run: | ||
name: install dependencies | ||
command: pip install --user tox | ||
|
@@ -99,15 +99,15 @@ geth_steps: &geth_steps | |
- ./eggs | ||
- ~/.ethash | ||
- ~/.py-geth | ||
key: cache-{{ .Environment.CIRCLE_JOB }}-{{ checksum "setup.py" }}-{{ checksum "tox.ini" }} | ||
key: cache-{{ .Environment.CIRCLE_JOB }}-{{ checksum "pyproject.toml" }}-{{ checksum "tox.ini" }} | ||
|
||
geth_custom_steps: &geth_custom_steps | ||
working_directory: ~/repo | ||
steps: | ||
- checkout | ||
- restore_cache: | ||
keys: | ||
- cache-{{ .Environment.CIRCLE_JOB }}-{{ checksum "setup.py" }}-{{ checksum "tox.ini" }} | ||
- cache-{{ .Environment.CIRCLE_JOB }}-{{ checksum "pyproject.toml" }}-{{ checksum "tox.ini" }} | ||
- run: | ||
name: install dependencies | ||
command: pip install --user tox | ||
|
@@ -138,15 +138,15 @@ geth_custom_steps: &geth_custom_steps | |
- ~/.local | ||
- ./eggs | ||
- ~/.ethash | ||
key: cache-{{ .Environment.CIRCLE_JOB }}-{{ checksum "setup.py" }}-{{ checksum "tox.ini" }} | ||
key: cache-{{ .Environment.CIRCLE_JOB }}-{{ checksum "pyproject.toml" }}-{{ checksum "tox.ini" }} | ||
|
||
ethpm_steps: ðpm_steps | ||
working_directory: ~/repo | ||
steps: | ||
- checkout | ||
- restore_cache: | ||
keys: | ||
- ethpm-cache-{{ .Environment.CIRCLE_JOB }}-{{ checksum "setup.py" }}-{{ checksum "tox.ini" }} | ||
- ethpm-cache-{{ .Environment.CIRCLE_JOB }}-{{ checksum "pyproject.toml" }}-{{ checksum "tox.ini" }} | ||
- run: | ||
name: install ipfs | ||
command: | ||
|
@@ -172,7 +172,7 @@ ethpm_steps: ðpm_steps | |
- .tox | ||
- ~/.cache/pip | ||
- ~/.local | ||
key: ethpm-cache-{{ .Environment.CIRCLE_JOB }}-{{ checksum "setup.py" }}-{{ checksum "tox.ini" }} | ||
key: ethpm-cache-{{ .Environment.CIRCLE_JOB }}-{{ checksum "pyproject.toml" }}-{{ checksum "tox.ini" }} | ||
|
||
orbs: | ||
win: circleci/[email protected] | ||
|
@@ -186,7 +186,7 @@ windows_steps: &windows_steps | |
- checkout | ||
- restore_cache: | ||
keys: | ||
- windows-cache-{{ .Environment.CIRCLE_JOB }}-{{ checksum "setup.py" }}-{{ checksum "tox.ini" }} | ||
- windows-cache-{{ .Environment.CIRCLE_JOB }}-{{ checksum "pyproject.toml" }}-{{ checksum "tox.ini" }} | ||
- run: | ||
name: checkout ethpm-spec submodule | ||
command: git submodule update --init --recursive | ||
|
@@ -199,7 +199,7 @@ windows_steps: &windows_steps | |
- save_cache: | ||
paths: | ||
- .tox | ||
key: windows-cache-{{ .Environment.CIRCLE_JOB }}-{{ checksum "setup.py" }}-{{ checksum "tox.ini" }} | ||
key: windows-cache-{{ .Environment.CIRCLE_JOB }}-{{ checksum "pyproject.toml" }}-{{ checksum "tox.ini" }} | ||
|
||
|
||
jobs: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,130 @@ | ||
[build-system] | ||
requires = ["hatchling>=0.21.0"] | ||
build-backend = "hatchling.build" | ||
|
||
[project] | ||
name = "web3" | ||
description = "Web3.py" | ||
readme = "README.md" | ||
license = "MIT" | ||
requires-python = ">=3.7,<3.11" | ||
authors = [ | ||
{ name = "Piper Merriam", email = "[email protected]" }, | ||
] | ||
keywords = [ | ||
"ethereum", | ||
] | ||
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.7", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
] | ||
dependencies = [ | ||
"aiohttp>=3.7.4.post0,<4", | ||
"eth-abi>=3.0.0,<4.0.0", | ||
"eth-account>=0.6.0,<0.7.0", | ||
"eth-hash[pycryptodome]>=0.2.0,<1.0.0", | ||
"eth-typing>=3.0.0,<4.0.0", | ||
"eth-utils>=2.0.0,<3.0.0", | ||
"hexbytes>=0.1.0,<1.0.0", | ||
"ipfshttpclient==0.8.0a2", | ||
"jsonschema>=4.0.0,<5", | ||
"lru-dict>=1.1.6,<2.0.0", | ||
"protobuf>=3.10.0,<4", | ||
"pywin32>=223;platform_system=='Windows'", | ||
"requests>=2.16.0,<3.0.0", | ||
# remove typing_extensions after python_requires>=3.8, see web3._utils.compat | ||
"typing-extensions>=3.7.4.1,<5;python_version<'3.8'", | ||
"websockets>=10.0.0,<11", | ||
] | ||
dynamic = ["version"] | ||
|
||
[project.optional-dependencies] | ||
dev = [ | ||
"bumpversion", | ||
"build", | ||
"flaky>=3.7.0,<4", | ||
"hypothesis>=3.31.2,<6", | ||
"pytest>=6.2.5,<7", | ||
"pytest-asyncio>=0.18.1,<0.19", | ||
"pytest-mock>=1.10,<2", | ||
"pytest-pythonpath>=0.3", | ||
"pytest-watch>=4.2,<5", | ||
"pytest-xdist>=1.29,<2", | ||
"setuptools>=38.6.0", | ||
"tox>=1.8.0", | ||
"tqdm>4.32,<5", | ||
"twine>=1.13,<2", | ||
"pluggy==0.13.1", | ||
"when-changed>=0.3.0,<0.4", | ||
# Self references supported since pip v20.2 | ||
"web3[docs,linter,tester]", | ||
] | ||
docs = [ | ||
"click>=5.1", | ||
"configparser==3.5.0", | ||
"contextlib2>=0.5.4", | ||
"mock", | ||
"py-geth>=3.6.0,<4", | ||
"py-solc>=0.4.0", | ||
"pytest>=6.2.5,<7", | ||
"sphinx-better-theme>=0.1.4", | ||
"sphinx>=4.2.0,<5", | ||
"sphinx_rtd_theme>=0.1.9", | ||
"toposort>=1.4", | ||
"towncrier==18.5.0", | ||
"urllib3", | ||
"wheel", | ||
] | ||
linter = [ | ||
"flake8==3.8.3", | ||
"isort>=4.2.15,<4.3.5", | ||
"mypy==0.910", | ||
"types-protobuf>=3.18.2,<4", | ||
"types-requests>=2.26.1,<3", | ||
"types-setuptools>=57.4.4,<58", | ||
] | ||
tester = [ | ||
"eth-tester[py-evm]==v0.6.0-beta.5", | ||
"py-geth>=3.7.0,<4", | ||
] | ||
|
||
[project.entry-points.pytest11] | ||
pytest_ethereum = "web3.tools.pytest_ethereum.plugins" | ||
|
||
[project.urls] | ||
Homepage = "https://github.com/ethereum/web3.py" | ||
|
||
[tool.hatch.version] | ||
path = "web3/__init__.py" | ||
|
||
[tool.hatch.build.targets.sdist] | ||
include = [ | ||
"/ens", | ||
"/ethpm", | ||
"/web3", | ||
"/requirements*.txt", | ||
] | ||
|
||
[tool.hatch.build.targets.wheel] | ||
include = [ | ||
"/ens", | ||
"/ethpm", | ||
"/web3", | ||
] | ||
exclude = [ | ||
"/ethpm/ethpm-spec/*", | ||
"/ethpm/ethpm-spec/bin", | ||
"/ethpm/ethpm-spec/docs", | ||
"/ethpm/ethpm-spec/tests", | ||
] | ||
|
||
[tool.towncrier] | ||
package="web3" | ||
filename = "docs/releases.rst" | ||
|
Oops, something went wrong.