From f012a3525139a583e4e9c6f51fcba3704bcf14c4 Mon Sep 17 00:00:00 2001 From: Dawid Kowalczyk Date: Tue, 12 Dec 2023 15:32:57 +0100 Subject: [PATCH 1/3] update boto3 and botocore --- setup.cfg | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/setup.cfg b/setup.cfg index 618f47a..dc255ce 100644 --- a/setup.cfg +++ b/setup.cfg @@ -14,7 +14,7 @@ [metadata] name = flowlogs_reader -version = 5.0.0 +version = 5.0.1 license = Apache url = https://github.com/obsrvbl-oss/flowlogs-reader description = Reader for AWS VPC Flow Logs @@ -33,8 +33,8 @@ classifiers = packages = find: python_requires = >=3.6 install_requires = - boto3>=1.7.75 - botocore>=1.10.75 + boto3>=1.14.0 + botocore>=1.17.0 parquet>=1.3.1 python-dateutil>=2.7.0 From 08dbd1f536c725c4aaa4d8c684af7733c7abe610 Mon Sep 17 00:00:00 2001 From: Mark Gatheman Date: Wed, 13 Dec 2023 22:59:40 -0600 Subject: [PATCH 2/3] update actions to v3 --- .github/workflows/main.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3823cdb..5cf3e71 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -11,9 +11,9 @@ jobs: python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "pypy-3.8"] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v3 with: python-version: ${{ matrix.python-version }} - name: Install dependencies @@ -46,7 +46,7 @@ jobs: twine check dist/* - name: Upload packages if: "matrix.python-version == '3.8'" - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: flowlogs-reader-packages path: dist/* From d8f4317ff33fe5fe8e878a71bd61ca6a0b0442b7 Mon Sep 17 00:00:00 2001 From: Mark Gatheman Date: Wed, 13 Dec 2023 23:00:25 -0600 Subject: [PATCH 3/3] make tag events upload to PyPi --- .github/workflows/main.yml | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5cf3e71..8cc97b0 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -41,12 +41,29 @@ jobs: - name: Build packages if: "matrix.python-version == '3.8'" run: | - pip install -U twine wheel - python setup.py sdist bdist_wheel + pip install -U twine wheel build + pyproject-build . twine check dist/* - - name: Upload packages + - name: Save packages as GitHub Actions artifacts if: "matrix.python-version == '3.8'" uses: actions/upload-artifact@v3 with: name: flowlogs-reader-packages - path: dist/* + path: dist/ + + publish: + if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') + runs-on: ubuntu-latest + needs: + - build + permissions: + # https://docs.pypi.org/trusted-publishers/using-a-publisher/ + id-token: write + steps: + - uses: actions/checkout@v3 + - uses: actions/download-artifact@v3 + with: + name: flowlogs-reader-packages + path: dist/ + - name: Upload packages to PyPi + uses: pypa/gh-action-pypi-publish@release/v1