Skip to content

Commit

Permalink
Merge branch 'template' into upgrade-template
Browse files Browse the repository at this point in the history
  • Loading branch information
pacrob committed Apr 26, 2023
2 parents c2835b7 + 44b7c46 commit da071ff
Show file tree
Hide file tree
Showing 32 changed files with 659 additions and 343 deletions.
4 changes: 2 additions & 2 deletions .bumpversion.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ current_version = 0.8.0
commit = True
tag = True
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(-(?P<stage>[^.]*)\.(?P<devnum>\d+))?
serialize =
serialize =
{major}.{minor}.{patch}-{stage}.{devnum}
{major}.{minor}.{patch}

[bumpversion:part:stage]
optional_value = stable
first_value = stable
values =
values =
alpha
beta
stable
Expand Down
186 changes: 113 additions & 73 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: 2.0
version: 2.1

# heavily inspired by https://raw.githubusercontent.com/pinax/pinax-wiki/6bd2a99ab6f702e300d708532a6d1d9aa638b9f8/.circleci/config.yml

Expand All @@ -19,21 +19,49 @@ common: &common
when: on_fail
- restore_cache:
keys:
- cache-{{ .Environment.CIRCLE_JOB }}-{{ checksum "setup.py" }}-{{ checksum "tox.ini" }}
- cache-v1-{{ arch }}-{{ .Environment.CIRCLE_JOB }}-{{ checksum "setup.py" }}-{{ checksum "tox.ini" }}
- run:
name: install dependencies
command: pip install --user tox
command: |
python -m pip install --upgrade pip
python -m pip install tox
- run:
name: run tox
command: python -m tox -r
command: python -m tox run -r
- save_cache:
paths:
- .hypothesis
- .tox
- ~/.cache/pip
- ~/.local
- ./eggs
key: cache-{{ .Environment.CIRCLE_JOB }}-{{ checksum "setup.py" }}-{{ checksum "tox.ini" }}
key: cache-v1-{{ arch }}-{{ .Environment.CIRCLE_JOB }}-{{ checksum "setup.py" }}-{{ checksum "tox.ini" }}

orbs:
win: circleci/windows@5.0.0

windows_steps: &windows_steps
executor:
name: win/default
shell: bash.exe
working_directory: C:\Users\circleci\project\<REPO_NAME>
steps:
- checkout
- restore_cache:
keys:
- cache-v1-{{ arch }}-{{ .Environment.CIRCLE_JOB }}-{{ checksum "setup.py" }}-{{ checksum "tox.ini" }}
- run:
name: install dependencies
command: |
python -m pip install --upgrade pip
python -m pip install tox
- run:
name: run tox
command: python -m tox run -r
- save_cache:
paths:
- .tox
key: cache-v1-{{ arch }}-{{ .Environment.CIRCLE_JOB }}-{{ checksum "setup.py" }}-{{ checksum "tox.ini" }}

integration: &integration
working_directory: ~/repo
Expand All @@ -52,10 +80,12 @@ integration: &integration
when: on_fail
- restore_cache:
keys:
- cache-{{ .Environment.CIRCLE_JOB }}-{{ checksum "setup.py" }}-{{ checksum "tox.ini" }}
- cache-v1-{{ arch }}-{{ .Environment.CIRCLE_JOB }}-{{ checksum "setup.py" }}-{{ checksum "tox.ini" }}
- run:
name: install dependencies (python)
command: pip install --user tox
command: |
python -m pip install --upgrade pip
python -m pip install tox
- run:
name: install dependencies (node)
command: sudo -E bash tests/integration/ethers-cli/setup_node_v18.sh && sudo apt-get install -y nodejs
Expand All @@ -64,7 +94,7 @@ integration: &integration
command: cd tests/integration/ethers-cli && sudo npm install && sudo npm install -g . && cd ../../../
- run:
name: run tox
command: python -m tox -r
command: python -m tox run -r
- save_cache:
paths:
- .hypothesis
Expand All @@ -73,7 +103,7 @@ integration: &integration
- ~/.local
- ./eggs
- tests/integration/ethers-cli/node_modules
key: cache-{{ .Environment.CIRCLE_JOB }}-{{ checksum "setup.py" }}-{{ checksum "tox.ini" }}
key: cache-v1-{{ arch }}-{{ .Environment.CIRCLE_JOB }}-{{ checksum "setup.py" }}-{{ checksum "tox.ini" }}

jobs:
docs:
Expand All @@ -82,66 +112,104 @@ jobs:
- image: cimg/python:3.8
environment:
TOXENV: docs
py37-lint:
<<: *common
docker:
- image: cimg/python:3.7
environment:
TOXENV: py37-lint
py37-core:
<<: *common
docker:
- image: cimg/python:3.7
environment:
TOXENV: py37-core
py38-lint:
<<: *common
docker:
- image: cimg/python:3.8
environment:
TOXENV: py38-lint
py38-core:
<<: *common
docker:
- image: cimg/python:3.8
environment:
TOXENV: py38-core
py39-lint:
<<: *common
docker:
- image: cimg/python:3.9
environment:
TOXENV: py39-lint
py39-core:
<<: *common
docker:
- image: cimg/python:3.9
environment:
TOXENV: py39-core
py310-lint:
py310-core:
<<: *common
docker:
- image: cimg/python:3.10
environment:
TOXENV: py310-lint
py310-core:
TOXENV: py310-core
py311-core:
<<: *common
docker:
- image: cimg/python:3.11
environment:
TOXENV: py311-core

py37-lint:
<<: *common
docker:
- image: cimg/python:3.7
environment:
TOXENV: py37-lint
py38-lint:
<<: *common
docker:
- image: cimg/python:3.8
environment:
TOXENV: py38-lint
py39-lint:
<<: *common
docker:
- image: cimg/python:3.9
environment:
TOXENV: py39-lint
py310-lint:
<<: *common
docker:
- image: cimg/python:3.10
environment:
TOXENV: py310-core
TOXENV: py310-lint
py311-lint:
<<: *common
docker:
- image: cimg/python:3.11
environment:
TOXENV: py311-lint
py311-core:

py37-wheel:
<<: *common
docker:
- image: cimg/python:3.7
environment:
TOXENV: py37-wheel
py38-wheel:
<<: *common
docker:
- image: cimg/python:3.8
environment:
TOXENV: py38-wheel
py39-wheel:
<<: *common
docker:
- image: cimg/python:3.9
environment:
TOXENV: py39-wheel
py310-wheel:
<<: *common
docker:
- image: cimg/python:3.10
environment:
TOXENV: py310-wheel
py311-wheel:
<<: *common
docker:
- image: cimg/python:3.11
environment:
TOXENV: py311-core
TOXENV: py311-wheel

py311-wheel-windows:
<<: *windows_steps
environment:
TOXENV: py311-wheel-windows

py37-integration:
<<: *integration
docker:
Expand Down Expand Up @@ -172,58 +240,30 @@ jobs:
- image: cimg/python:3.11
environment:
TOXENV: py311-integration
py37-wheel-cli:
<<: *common
docker:
- image: cimg/python:3.7
environment:
TOXENV: py37-wheel-cli
py38-wheel-cli:
<<: *common
docker:
- image: cimg/python:3.8
environment:
TOXENV: py38-wheel-cli
py39-wheel-cli:
<<: *common
docker:
- image: cimg/python:3.9
environment:
TOXENV: py39-wheel-cli
py310-wheel-cli:
<<: *common
docker:
- image: cimg/python:3.10
environment:
TOXENV: py310-wheel-cli
py311-wheel-cli:
<<: *common
docker:
- image: cimg/python:3.11
environment:
TOXENV: py311-wheel-cli

workflows:
version: 2
test:
jobs:
- docs
- py37-lint
- py38-lint
- py39-lint
- py310-lint
- py311-lint
- py37-core
- py38-core
- py39-core
- py310-core
- py311-core
- py37-lint
- py38-lint
- py39-lint
- py310-lint
- py311-lint
- py37-wheel
- py38-wheel
- py39-wheel
- py310-wheel
- py311-wheel
- py311-wheel-windows
- py37-integration
- py38-integration
- py39-integration
- py310-integration
- py311-integration
- py37-wheel-cli
- py38-wheel-cli
- py39-wheel-cli
- py310-wheel-cli
- py311-wheel-cli
38 changes: 0 additions & 38 deletions .github/ISSUE_TEMPLATE.md

This file was deleted.

0 comments on commit da071ff

Please sign in to comment.