From e4b04f75bae05d162ec180f9152a2b85aa7f752a Mon Sep 17 00:00:00 2001 From: John Du Hart Date: Tue, 18 Apr 2023 11:13:32 -0400 Subject: [PATCH 1/3] Add release workflow --- .github/workflows/check.yaml | 8 ++++---- .github/workflows/release.yaml | 24 ++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/release.yaml diff --git a/.github/workflows/check.yaml b/.github/workflows/check.yaml index e805744..f6a0911 100644 --- a/.github/workflows/check.yaml +++ b/.github/workflows/check.yaml @@ -6,23 +6,23 @@ on: jobs: lint: - name: Lint + name: 🧹 Lint runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - name: Install poetry run: pipx install poetry==1.4.2 - - name: Set up Python 3.10 + - name: Set up Python 3.11 uses: actions/setup-python@v4 with: - python-version: "3.10" + python-version: "3.11" cache: 'poetry' - name: Install dependencies run: poetry install --no-interaction - run: poetry run flake8 test: - name: ${{ matrix.os }} / ${{ matrix.python-version }} + name: 🧪 ${{ matrix.os }} / ${{ matrix.python-version }} runs-on: ${{ matrix.image }} strategy: matrix: diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..526e94d --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,24 @@ +name: Release +on: + release: + types: + - released + +jobs: + publish: + name: 📦 Publish + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Install poetry + run: pipx install poetry==1.4.2 + - name: Set up Python 3.11 + uses: actions/setup-python@v4 + with: + python-version: "3.11" + cache: 'poetry' + - name: Publish + env: + POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_API_TOKEN }} + run: | + poetry publish --build From 873fb73015975c91b62667c779d9e1e34b7e6af3 Mon Sep 17 00:00:00 2001 From: John Du Hart Date: Tue, 18 Apr 2023 12:01:50 -0400 Subject: [PATCH 2/3] Bump version to 1.5.0 --- CHANGELOG.md | 3 +++ pyproject.toml | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 370fb14..d6385a4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +# 1.5.0 +- Replace `cchardet` with `charset-normalizer` to support Python 3.11 + # 1.4.0 - Add `MAuthWSGIMiddleware` for authenticating requests in WSGI frameworks like Flask. - Remove `FlaskAuthenticator`. diff --git a/pyproject.toml b/pyproject.toml index 9a4ae5a..13034ae 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "mauth-client" -version = "1.4.0" +version = "1.5.0" description = "MAuth Client for Python" repository = "https://github.com/mdsol/mauth-client-python" authors = ["Medidata Solutions "] From afc79f781ea415ab406987271120f44665ca15a2 Mon Sep 17 00:00:00 2001 From: John Du Hart Date: Tue, 18 Apr 2023 12:55:21 -0400 Subject: [PATCH 3/3] remove travis config --- .travis.yml | 44 -------------------------------------------- 1 file changed, 44 deletions(-) delete mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index d0898a4..0000000 --- a/.travis.yml +++ /dev/null @@ -1,44 +0,0 @@ -dist: focal -language: python -cache: pip - -python: - - 3.7.13 # specify micro version to avoid having EnvCommandError - - 3.8 - - 3.9 - - 3.10 - -before_install: - - pip install poetry==1.4.2 - - pip install tox==3.28.0 tox-travis # 3.28.0 is the latest version supported by tox-travis - -install: poetry install -v - -script: tox - -stages: - - lint - - test - - name: publish - if: tag IS present - -jobs: - include: - - stage: lint - python: 3.10 - script: - - poetry run flake8 --version - - poetry run flake8 - - stage: publish - python: 3.10 - script: skip - before_deploy: - - poetry config pypi-token.pypi $POETRY_PYPI_TOKEN_PYPI # this may be unnecessary - - poetry build - deploy: - provider: script - script: poetry publish - skip_cleanup: true - on: - tags: true - all_branches: true