Skip to content

Commit

Permalink
Merge pull request #17 from dryan/python3.10-support
Browse files Browse the repository at this point in the history
✅ add Python 3.10 to test matrix
  • Loading branch information
dryan authored Aug 31, 2022
2 parents 9b5995f + c6d1639 commit 44b5cd7
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release_new_tags.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
python-version: 3.7
- name: Install poetry
run: |
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/install-poetry.py | python -
curl -sSL https://install.python-poetry.org/ | python -
sudo ln -s $HOME/.poetry/bin/poetry /usr/local/bin/poetry
poetry config virtualenvs.path ~/.poetry/environments
- name: Build & Publish
Expand Down
18 changes: 2 additions & 16 deletions .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,26 +7,22 @@ jobs:
name: Python Test Suite
strategy:
matrix:
python-version: [3.7, 3.8, 3.9]
python-version: [3.7, 3.8, 3.9, "3.10"]
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
D3PLOY_DEBUG: true
D3PLOY_TEST_BUCKET: d3ploy-tests-${{ matrix.python-version }}
runs-on: ubuntu-latest
steps:
- uses: dryan/action-polynotify@v1
with:
slack_webhook_url: ${{ secrets.SLACK_WEBHOOK_URL }}
message: Running d3ploy tests on Python ${{ matrix.python-version }}
- uses: actions/checkout@v2
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install poetry
run: |
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/install-poetry.py | python
curl -sSL https://install.python-poetry.org/ | python -
sudo ln -s $HOME/.poetry/bin/poetry /usr/local/bin/poetry
poetry config virtualenvs.path ~/.poetry/environments
- name: Cache Python packages
Expand Down Expand Up @@ -62,13 +58,3 @@ jobs:
with:
name: python-coverage
path: htmlcov
- uses: dryan/action-polynotify@v1
with:
slack_webhook_url: ${{ secrets.SLACK_WEBHOOK_URL }}
message: d3ploy tests on Python ${{ matrix.python-version }} succeeded
if: success()
- uses: dryan/action-polynotify@v1
with:
slack_webhook_url: ${{ secrets.SLACK_WEBHOOK_URL }}
message: d3ploy tests on Python ${{ matrix.python-version }} failed
if: failure()
2 changes: 1 addition & 1 deletion d3ploy/d3ploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
from colorama import init as colorama_init
from tqdm import tqdm

VERSION = "4.1.5"
VERSION = "4.2.0"

VALID_ACLS = [
"private",
Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "d3ploy"
version = "4.1.5"
version = "4.2.0"
description = "Easily deploy to S3 with multiple environment support."
authors = ["dryan <[email protected]>"]
license = "MIT"
Expand All @@ -13,7 +13,7 @@ readme = "README.md"
d3ploy = "d3ploy.d3ploy:cli"

[tool.poetry.dependencies]
python = "^3.7 || ^3.8 || ^3.9"
python = "^3.7 || ^3.8 || ^3.9 || ^3.10"
boto3 = "^1.19.2"
pathspec = "^0.9.0"
tqdm = "^4.62.3"
Expand All @@ -29,7 +29,7 @@ twine = "^3.4.2"

[tool.black]
line-length = 88
target_version = ['py39']
target_version = ['py37', 'py38', 'py39']
include = '\.pyi?$'
exclude = '/(\.eggs|\.git|\.hg|\.mypy_cache|\.nox|\.tox|\.venv|_build|buck-out|build|dist|node_modules)/'

Expand Down

0 comments on commit 44b5cd7

Please sign in to comment.