Skip to content

Commit

Permalink
address feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
pacrob committed Apr 30, 2024
1 parent 68e56b0 commit e15806f
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ logs
# vs-code
.vscode

# jupyter notebook files
*.ipynb

# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm
# For a more precise, explicit template, see:
# https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
Expand Down
2 changes: 1 addition & 1 deletion .project-template/template_vars.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
web3
web3
web3.py
web3.py
web3py
web3.py
A Python library for interacting with Ethereum
2 changes: 1 addition & 1 deletion .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ python:

# Build all formats for RTD Downloads - htmlzip, pdf, epub
# formats: all
# Turning off pdf for now - won't build due to long line lenghts
# Turning off pdf for now - won't build due to long line lengths
formats:
- epub
- htmlzip
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ clean: clean-build clean-pyc
clean-build:
rm -fr build/
rm -fr dist/
rm -fr *.egg-info

clean-pyc:
find . -name '*.pyc' -exec rm -f {} +
Expand All @@ -32,7 +33,7 @@ lint:
)

test:
python -m pytest tests
python -m pytest tests/core tests/ens tests/integration

benchmark:
python -m tox run -e benchmark
Expand All @@ -41,7 +42,7 @@ autobuild-docs:
sphinx-autobuild --open-browser docs docs/_build/html

build-docs:
sphinx-apidoc -o docs/ . setup.py "*conftest*"
sphinx-apidoc -o docs/ . setup.py "*conftest*" "tests" "web3/tools/*"
$(MAKE) -C docs clean
$(MAKE) -C docs html
$(MAKE) -C docs doctest
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
[![Build Status](https://circleci.com/gh/ethereum/web3.py.svg?style=shield)](https://circleci.com/gh/ethereum/web3.py)
[![PyPI version](https://badge.fury.io/py/web3.svg)](https://badge.fury.io/py/web3)
[![Python versions](https://img.shields.io/pypi/pyversions/web3.svg)](https://pypi.python.org/pypi/web3)
[![Docs build](https://readthedocs.org/projects/web3.py/badge/?version=latest)](https://web3.py.readthedocs.io/en/latest/?badge=latest)
[![Docs build](https://readthedocs.org/projects/web3py/badge/?version=latest)](https://web3py.readthedocs.io/en/latest/?badge=latest)

A Python library for interacting with Ethereum.

Expand Down
2 changes: 2 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ allowlist_externals=
/bin/rm
/bin/bash
commands=
/bin/bash {toxinidir}/web3/scripts/release/test_wheel_install.sh
python -m pip install --upgrade pip
/bin/rm -rf build dist
python -m build
Expand All @@ -88,6 +89,7 @@ deps=
allowlist_externals=
bash.exe
commands=
bash.exe {toxinidir}/web3/scripts/release/test_windows_wheel_install.sh
python --version
python -m pip install --upgrade pip
bash.exe -c "rm -rf build dist"
Expand Down
10 changes: 10 additions & 0 deletions web3/scripts/release/test_wheel_install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

set -e
rm -rf build dist
python -m build
cd $(mktemp -d)
python -m venv venv-test
source venv-test/bin/activate
pip install --upgrade "$(ls ~/repo/dist/web3-*-py3-none-any.whl)"
python -c "import web3"
11 changes: 11 additions & 0 deletions web3/scripts/release/test_windows_wheel_install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

bash.exe -c "set -e"
bash.exe -c "rm -rf build dist"
python -m build
bash.exe -c "export temp_dir=$(mktemp -d)"
cd $temp_dir
python -m venv venv-test
bash.exe -c "source venv-test/Scripts/activate"
bash.exe -c 'pip install --upgrade "$(ls /c/Users/circleci/project/web3py/dist/web3-*-py3-none-any.whl)" --progress-bar off'
python -c "from web3 import Web3"

0 comments on commit e15806f

Please sign in to comment.