Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,6 @@ crashlytics.properties
crashlytics-build.properties
fabric.properties

# uv
uv.lock

# Claude Code
.claude/
pr-review.md
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ COPY web3 ./web3/
COPY tests ./tests/
COPY ens ./ens/

COPY setup.py .
COPY pyproject.toml .
COPY README.md .

RUN pip install -e .[dev]
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ validate-newsfragments:
check-docs: build-docs validate-newsfragments

build-docs:
sphinx-apidoc -o docs/ . setup.py "*conftest*" "tests" "web3/tools/*"
sphinx-apidoc -o docs/ . "*conftest*" "tests" "web3/tools/*"
$(MAKE) -C docs clean
$(MAKE) -C docs html
$(MAKE) -C docs doctest
Expand Down
14 changes: 9 additions & 5 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,17 @@
# sys.path.insert(0, os.path.abspath('.'))

import os
import re

DIR = os.path.dirname(__file__)
with open(os.path.join(DIR, "../setup.py")) as f:
for line in f:
if "version=" in line:
setup_version = line.split('"')[1]
break
with open(os.path.join(DIR, "../pyproject.toml")) as f:
pyproject_contents = f.read()

setup_version = re.search(
r'^version = "([^"]+)"',
pyproject_contents,
re.MULTILINE,
).group(1)

# -- General configuration ------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion docs/contributing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ After confirming that the release package looks okay, release a new version:

This command will:

- Bump the version number as specified in ``.pyproject.toml`` and ``setup.py``.
- Bump the version number as specified in ``pyproject.toml``.
- Create a git commit and tag for the new version.
- Build the package.
- Push the commit and tag to github.
Expand Down
119 changes: 116 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,116 @@
[build-system]
requires = ["setuptools>=77", "wheel"]
build-backend = "setuptools.build_meta"

[project]
name = "web3"
version = "8.0.0-beta.3"
description = "web3: A Python library for interacting with Ethereum"
readme = "README.md"
requires-python = ">=3.10, <4"
license = "MIT"
license-files = ["LICENSE"]
authors = [
{ name = "The Ethereum Foundation", email = "snakecharmers@ethereum.org" },
]
keywords = ["ethereum"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Natural Language :: English",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
]
dependencies = [
# Note: ethereum-maintained libraries in this list should be added to the
# `install_pre_releases.py` script.
"eth-abi>=5.0.1",
"eth-account>=0.13.6",
"eth-hash[pycryptodome]>=0.5.1",
"eth-typing>=5.0.0",
"eth-utils>=5.3.0",
"hexbytes>=1.2.0",
"aiohttp>=3.7.4.post0",
"pydantic>=2.4.0",
"pywin32>=223;platform_system=='Windows'",
"requests>=2.23.0",
"typing-extensions>=4.0.1",
"types-requests>=2.0.0",
"websockets>=14.0.0",
"pyunormalize>=15.0.0",
]

[project.urls]
Homepage = "https://github.com/ethereum/web3.py"

[project.optional-dependencies]
tester = [
# Note: ethereum-maintained libraries in this list should be added to the
# `install_pre_releases.py` script.
"eth-tester[py-evm]>=0.13.0b1,<0.14.0b1",
"py-geth>=6.4.0",
]
docs = [
"sphinx>=6.0.0",
"sphinx-autobuild>=2021.3.14",
"sphinx_rtd_theme>=1.0.0",
"towncrier>=24,<25",
]
test = [
"pytest-asyncio>=1.3.0",
"pytest-mock>=1.10",
"pytest-xdist>=2.4.0",
"pytest>=7.0.0",
"flaky>=3.7.0",
"hypothesis>=3.31.2",
"tox>=4.0.0",
"mypy==1.10.0",
"pre-commit>=3.4.0",
"cached-property>=2.0.1",
"eth-tester[py-evm]>=0.13.0b1,<0.14.0b1",
"py-geth>=6.4.0",
]
dev = [
"build>=0.9.0",
"bump_my_version>=0.19.0",
"ipython",
"setuptools>=38.6.0",
"tqdm>4.32",
"twine>=1.13",
"wheel",
"sphinx>=6.0.0",
"sphinx-autobuild>=2021.3.14",
"sphinx_rtd_theme>=1.0.0",
"towncrier>=24,<25",
"pytest-asyncio>=1.3.0",
"pytest-mock>=1.10",
"pytest-xdist>=2.4.0",
"pytest>=7.0.0",
"flaky>=3.7.0",
"hypothesis>=3.31.2",
"tox>=4.0.0",
"mypy==1.10.0",
"pre-commit>=3.4.0",
"cached-property>=2.0.1",
"eth-tester[py-evm]>=0.13.0b1,<0.14.0b1",
"py-geth>=6.4.0",
]

[tool.setuptools]
include-package-data = true
zip-safe = false

[tool.setuptools.packages.find]
exclude = ["scripts", "scripts.*", "tests", "tests.*"]
namespaces = false

[tool.setuptools.package-data]
web3 = ["py.typed"]

[tool.autoflake]
exclude = "__init__.py"
remove_all_unused_imports = true
Expand Down Expand Up @@ -170,6 +283,6 @@ values = [
[tool.bumpversion.part.devnum]

[[tool.bumpversion.files]]
filename = "setup.py"
search = "version=\"{current_version}\""
replace = "version=\"{new_version}\""
filename = "pyproject.toml"
search = "version = \"{current_version}\""
replace = "version = \"{new_version}\""
105 changes: 0 additions & 105 deletions setup.py

This file was deleted.

Loading