-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade template #57
Upgrade template #57
Changes from all commits
621cd56
cb3f556
30e3c1d
e342fe7
4ac9e87
608a0a9
3fed49f
8ffe3b8
b853f5c
2eff6f8
bdd1a34
c72ec7f
7b16351
73b6a68
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Add python3.12 support |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Merge template updates, adding build tests for all docs formats, add ``blocklint`` to lint tools |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
def test_import(): | ||
def test_import_and_version(): | ||
import eth_typing | ||
|
||
assert isinstance(eth_typing.__version__, str) |
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -1,9 +1,9 @@ | ||||||
[tox] | ||||||
envlist= | ||||||
py{38,39,310,311}-core | ||||||
py{38,39,310,311}-lint | ||||||
py{38,39,310,311}-wheel | ||||||
py311-wheel-windows | ||||||
py{38,39,310,311,312}-core | ||||||
py{38,39,310,311,312}-lint | ||||||
py{38,39,310,311,312}-wheel | ||||||
windows-wheel | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. maybe:
Suggested change
for consistency? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. As it is, it just keeps circleci config drier. See .circleci/config.yml -> windows-wheel-steps -> windows-wheel-setup. If specified different TOXENVs, the whole windows-wheel-setup step would need to be duplicated for each job. Happy to make the change if you think it helps with clarity. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nah, I think it's good as-is. ✨ |
||||||
docs | ||||||
|
||||||
[flake8] | ||||||
|
@@ -12,28 +12,34 @@ extend-ignore=E203 | |||||
max-line-length=88 | ||||||
per-file-ignores=__init__.py:F401 | ||||||
|
||||||
[blocklint] | ||||||
max_issue_threshold=1 | ||||||
|
||||||
[testenv] | ||||||
usedevelop=True | ||||||
commands= | ||||||
core: pytest {posargs:tests/core} | ||||||
docs: make check-docs | ||||||
docs: make check-docs-ci | ||||||
basepython= | ||||||
docs: python | ||||||
windows-wheel: python | ||||||
py38: python3.8 | ||||||
py39: python3.9 | ||||||
py310: python3.10 | ||||||
py311: python3.11 | ||||||
py312: python3.12 | ||||||
extras= | ||||||
test | ||||||
docs | ||||||
allowlist_externals=make,pre-commit | ||||||
|
||||||
[testenv:py{38,39,310,311}-lint] | ||||||
[testenv:py{38,39,310,311,312}-lint] | ||||||
deps=pre-commit | ||||||
commands= | ||||||
pre-commit install | ||||||
pre-commit run --all-files --show-diff-on-failure | ||||||
|
||||||
[testenv:py{38,39,310,311}-wheel] | ||||||
[testenv:py{38,39,310,311,312}-wheel] | ||||||
deps= | ||||||
wheel | ||||||
build[virtualenv] | ||||||
|
@@ -48,13 +54,14 @@ commands= | |||||
python -c "import eth_typing" | ||||||
skip_install=true | ||||||
|
||||||
[testenv:py311-wheel-windows] | ||||||
[testenv:windows-wheel] | ||||||
deps= | ||||||
wheel | ||||||
build[virtualenv] | ||||||
allowlist_externals= | ||||||
bash.exe | ||||||
commands= | ||||||
python --version | ||||||
python -m pip install --upgrade pip | ||||||
bash.exe -c "rm -rf build dist" | ||||||
python -m build | ||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this find all other files in the repo? I think I was trying with listing directories to include but if this works I like it better.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've tried sticking blocked words in various files and it hasn't missed one yet.