Skip to content

Commit

Permalink
Merge pull request #110 from hugovk/rm-3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk authored Nov 23, 2021
2 parents 4d3aaab + 5ceca78 commit ba114c9
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 39 deletions.
12 changes: 3 additions & 9 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,12 @@ jobs:
with:
fetch-depth: 0

- name: Cache
uses: actions/cache@v2.1.6
with:
path: ~/.cache/pip
key: deploy-${{ hashFiles('**/setup.py') }}
restore-keys: |
deploy-
- name: Set up Python
uses: actions/setup-python@v2.2.2
uses: actions/setup-python@v2
with:
python-version: "3.10"
cache: pip
cache-dependency-path: "setup.py"

- name: Install dependencies
run: |
Expand Down
21 changes: 4 additions & 17 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["pypy-3.8", "3.6", "3.7", "3.8", "3.9", "3.10"]
python-version: ["pypy-3.8", "3.7", "3.8", "3.9", "3.10"]
os: [ubuntu-latest, macos-latest]
include:
# Include new variables for Codecov
Expand All @@ -22,24 +22,11 @@ jobs:
- uses: actions/checkout@v2.3.5

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2.2.2
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Get pip cache dir
id: pip-cache
run: |
echo "::set-output name=dir::$(pip cache dir)"
- name: Cache
uses: actions/cache@v2.1.6
with:
path: ${{ steps.pip-cache.outputs.dir }}
key:
${{ matrix.os }}-${{ matrix.python-version }}-v1-${{
hashFiles('**/setup.py') }}
restore-keys: |
${{ matrix.os }}-${{ matrix.python-version }}-v1-
cache: pip
cache-dependency-path: "setup.py"

- name: Install dependencies
run: |
Expand Down
15 changes: 6 additions & 9 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,21 +1,18 @@
repos:
- repo: https://github.com/asottile/pyupgrade
rev: v2.29.0
rev: v2.29.1
hooks:
- id: pyupgrade
args: ["--py36-plus"]
args: [--py37-plus]

- repo: https://github.com/psf/black
rev: 21.10b0
rev: 21.11b1
hooks:
- id: black
args: ["--target-version", "py36"]
# override until resolved: https://github.com/psf/black/issues/402
files: \.pyi?$
types: []
args: [--target-version=py37]

- repo: https://github.com/PyCQA/isort
rev: 5.10.0
rev: 5.10.1
hooks:
- id: isort

Expand All @@ -41,7 +38,7 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/asottile/setup-cfg-fmt
rev: v1.19.0
rev: v1.20.0
hooks:
- id: setup-cfg-fmt

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tool.black]
target_version = ["py36"]
target_version = ["py37"]

[tool.isort]
profile = "black"
3 changes: 1 addition & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ classifiers =
Natural Language :: English
Programming Language :: Python :: 3
Programming Language :: Python :: 3 :: Only
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Expand All @@ -34,7 +33,7 @@ project_urls =

[options]
packages = find:
python_requires = >=3.6
python_requires = >=3.7
package_dir = =src
setup_requires =
setuptools-scm
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[tox]
envlist =
lint
py{py3, 310, 39, 38, 37, 36}
py{py3, 310, 39, 38, 37}

[testenv]
passenv =
Expand Down

0 comments on commit ba114c9

Please sign in to comment.