Skip to content

Commit

Permalink
chore: Drop support for Python 3.7 (#301)
Browse files Browse the repository at this point in the history
* chore: Drop support for Python 3.7

* [pre-commit.ci] auto fixes

* Update triggers

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
edgarrmondragon and pre-commit-ci[bot] committed Sep 5, 2023
1 parent 9df94a1 commit 6111c02
Show file tree
Hide file tree
Showing 6 changed files with 184 additions and 127 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/constraints.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
pip==23.2.1
poetry==1.6.1
nox==2023.4.22
nox-poetry==1.0.3
poetry==1.6.1
poetry-dynamic-versioning==1.0.1
53 changes: 53 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Publish with Dynamic Versioning

on:
release:
types: [published]

permissions:
contents: write
id-token: write

jobs:
publish:
name: Publish to PyPI
runs-on: ubuntu-latest
environment: publishing
env:
PIP_CONSTRAINT: .github/workflows/constraints.txt
steps:
- name: Checkout code
uses: actions/[email protected]
with:
fetch-depth: 0

- name: Set up Python
uses: actions/[email protected]
with:
python-version: "3.10"

- name: Upgrade pip
run: |
pip install pip
pip --version
- name: Install Poetry
run: |
pipx install poetry
pipx inject poetry poetry-dynamic-versioning[plugin]
poetry --version
poetry self show plugins
- name: Build
run: poetry build

- name: Upload wheel to release
uses: svenstaro/upload-release-action@v2
with:
file: dist/*.whl
tag: ${{ github.ref }}
overwrite: true
file_glob: true

- name: Publish
uses: pypa/[email protected]
6 changes: 5 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@

name: Test tap-bitso

on: [push]
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
tests:
Expand Down
2 changes: 1 addition & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
src_dir = "tap_bitso"
tests_dir = "tests"

python_versions = ["3.11", "3.10", "3.9", "3.8", "3.7"]
python_versions = ["3.11", "3.10", "3.9", "3.8"]
main_python_version = "3.10"
locations = src_dir, tests_dir, "noxfile.py"
nox.options.sessions = (
Expand Down
Loading

0 comments on commit 6111c02

Please sign in to comment.