Skip to content

Commit 9a634a3

Browse files
committed
[chore] python 3.9 support; fixup ci
1 parent d360117 commit 9a634a3

5 files changed

Lines changed: 20 additions & 26 deletions

File tree

.github/workflows/default.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,32 +8,32 @@ jobs:
88

99
strategy:
1010
matrix:
11-
python-version: [3.6, 3.7, 3.8]
11+
python-version: [3.6, 3.7, 3.8, 3.9]
1212

1313
fail-fast: true
1414

1515
steps:
1616
- uses: actions/checkout@v2
17-
- uses: actions/setup-python@v1
17+
- uses: actions/setup-python@v2
1818
with:
1919
python-version: ${{ matrix.python-version }}
20-
- uses: Gr1N/setup-poetry@v1
20+
- uses: Gr1N/setup-poetry@v4
2121
with:
22-
poetry-version: 1.0.0
23-
- uses: actions/cache@v1
22+
poetry-version: 1.1.5
23+
- uses: actions/cache@v2
2424
with:
2525
path: ~/.cache/pypoetry/virtualenvs
2626
key: ${{ runner.os }}-${{ matrix.python-version }}-poetry-${{ hashFiles('pyproject.toml') }}
2727
restore-keys: |
2828
${{ runner.os }}-${{ matrix.python-version }}-poetry-
2929
- run: make install-deps
3030
- run: make lint
31-
if: matrix.python-version == 3.8
31+
if: matrix.python-version == 3.9
3232
- run: docker-compose up -d && sleep 10
3333
- run: make test
3434
- run: docker-compose down
3535
if: always()
3636
- run: make codecov
37-
if: matrix.python-version == 3.8
37+
if: matrix.python-version == 3.9
3838
env:
3939
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/release-created.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,18 @@ jobs:
1010

1111
steps:
1212
- uses: actions/checkout@v2
13-
- uses: actions/setup-python@v1
13+
- uses: actions/setup-python@v2
1414
with:
15-
python-version: 3.8
16-
- uses: Gr1N/setup-poetry@v1
15+
python-version: 3.9
16+
- uses: Gr1N/setup-poetry@v4
1717
with:
18-
poetry-version: 1.0.0
19-
- uses: actions/cache@v1
18+
poetry-version: 1.1.5
19+
- uses: actions/cache@v2
2020
with:
2121
path: ~/.cache/pypoetry/virtualenvs
22-
key: ${{ runner.os }}-3.8-poetry-${{ hashFiles('pyproject.toml') }}
22+
key: ${{ runner.os }}-3.9-poetry-${{ hashFiles('pyproject.toml') }}
2323
restore-keys: |
24-
${{ runner.os }}-3.8-poetry-
24+
${{ runner.os }}-3.9-poetry-
2525
- run: make install-deps
2626
- run: make publish
2727
env:

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## 0.9.0 (20XX-XX-XX)
44

5+
- Added Python 3.9.* support
6+
57
## 0.8.0 (2020-06-21)
68

79
- Added TSL support, #13 by @nineinchnick

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ lint-flake8:
2828
.PHONY: lint-isort
2929
lint-isort:
3030
@echo "\033[92m< linting using isort...\033[0m"
31-
@$(POETRY) run isort --check-only --diff --recursive .
31+
@$(POETRY) run isort --check-only --diff .
3232
@echo "\033[92m> done\033[0m"
3333
@echo
3434

pyproject.toml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,7 @@ exclude = '''
1919

2020
[tool.isort]
2121
combine_as_imports = true
22-
default_section = "LOCALFOLDER"
23-
force_grid_wrap = false
24-
include_trailing_comma = true
25-
known_first_party = "nats"
26-
known_standard_library = "dataclasses"
27-
known_third_party = "msgpack,pkg_resources,pytest"
28-
line_length = 88
29-
multi_line_output = 3
30-
not_skip = "__init__.py"
22+
profile = "black"
3123
sections = "FUTURE,STDLIB,THIRDPARTY,FIRSTPARTY,LOCALFOLDER"
3224
skip = ".eggs,.tox,venv,.venv"
3325

@@ -72,5 +64,5 @@ pytest = ">=4.1.0"
7264
pytest-cov = ">=2.6.1"
7365

7466
[build-system]
75-
requires = ["poetry>=1.0"]
76-
build-backend = "poetry.masonry.api"
67+
requires = ["poetry_core>=1.0.0"]
68+
build-backend = "poetry.core.masonry.api"

0 commit comments

Comments
 (0)