From 3401b1d1712ecf49eb5bf768a4095ecfe1e484cf Mon Sep 17 00:00:00 2001 From: koladev Date: Sat, 17 Sep 2022 00:27:20 +0100 Subject: [PATCH 1/7] :wrench: add github actions for testing and publishing to testpypi --- .github/workflows/ci-test.yml | 65 +++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 .github/workflows/ci-test.yml diff --git a/.github/workflows/ci-test.yml b/.github/workflows/ci-test.yml new file mode 100644 index 0000000..21b1e6f --- /dev/null +++ b/.github/workflows/ci-test.yml @@ -0,0 +1,65 @@ +name: CI for package + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + test: + name: Test Transfa API client + runs-on: ubuntu-latest + strategy: + matrix: + python-version: + [ + "3.8", + "3.9", + "3.10", + ] + + steps: + - uses: actions/checkout@v2 + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + - name: Install Dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + - name: Run Tests + run: | + pytest + build-n-publish: + name: Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI + needs: [test] + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - name: Set up Python 3.10 + uses: actions/setup-python@v3 + with: + python-version: "3.10" + - name: Install pypa/build + run: >- + python -m + pip install + build + --user + - name: Build a binary wheel and a source tarball + run: >- + python -m + build + --sdist + --wheel + --outdir dist/ + - name: Publish distribution 📦 to Test PyPI + uses: pypa/gh-action-pypi-publish@release/v1 + with: + password: ${{ secrets.TEST_PYPI_API_TOKEN }} + repository_url: https://test.pypi.org/legacy/ \ No newline at end of file From f8299bc0a29831985611d4219e3a7782f2d5233b Mon Sep 17 00:00:00 2001 From: koladev Date: Sat, 17 Sep 2022 00:34:52 +0100 Subject: [PATCH 2/7] :memo: update changelog --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index cddbae5..ccf88f2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,8 @@ Changelog [v0.1.0] - 2022-09-16 ------------------ +- Add payments resources +- Add tests for payment resources [v0.0.1] - 2022-09-16 ------------------ From fcae2c40c8509a084c879be68702afc9e6b9bb1a Mon Sep 17 00:00:00 2001 From: koladev Date: Sat, 17 Sep 2022 00:36:10 +0100 Subject: [PATCH 3/7] =?UTF-8?q?Bump=20version:=200.1.0=20=E2=86=92=200.1.1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 3 +++ pyproject.toml | 2 +- setup.cfg | 2 +- transfa/version.py | 2 +- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ccf88f2..a7329f2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,9 @@ Changelog [Unreleased] ------------ +[v0.1.1] - 2022-09-16 +------------------ + [v0.1.0] - 2022-09-16 ------------------ - Add payments resources diff --git a/pyproject.toml b/pyproject.toml index ae6e1a5..397a631 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,4 +6,4 @@ build-backend = "setuptools.build_meta" [project] name = "transfa-python-sdk" -version = "0.1.0" \ No newline at end of file +version = "0.1.1" \ No newline at end of file diff --git a/setup.cfg b/setup.cfg index 2f093f9..8d131b8 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 0.1.0 +current_version = 0.1.1 commit = True tag = True diff --git a/transfa/version.py b/transfa/version.py index 1cf6267..7d7c7c3 100644 --- a/transfa/version.py +++ b/transfa/version.py @@ -1 +1 @@ -VERSION = "0.1.0" +VERSION = "0.1.1" From 421cabe51a0996df305f5412928b77e29f12161f Mon Sep 17 00:00:00 2001 From: koladev Date: Sat, 17 Sep 2022 00:36:40 +0100 Subject: [PATCH 4/7] :memo: update changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index a7329f2..b79efb8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ Changelog [v0.1.1] - 2022-09-16 ------------------ +- add github actions for deploy on testpipy [v0.1.0] - 2022-09-16 ------------------ From 8f1e2558f87060aababdafa442f84806723fd871 Mon Sep 17 00:00:00 2001 From: koladev Date: Sat, 17 Sep 2022 00:45:50 +0100 Subject: [PATCH 5/7] :wrench: fix build on push events only --- .github/workflows/ci-test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci-test.yml b/.github/workflows/ci-test.yml index 21b1e6f..bc0d964 100644 --- a/.github/workflows/ci-test.yml +++ b/.github/workflows/ci-test.yml @@ -38,6 +38,7 @@ jobs: build-n-publish: name: Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI needs: [test] + if: ${{ github.event_name == 'push' }} runs-on: ubuntu-latest steps: - uses: actions/checkout@master From 343f9c684cc81742f6ecff00bb0371f0f9066578 Mon Sep 17 00:00:00 2001 From: koladev Date: Sat, 17 Sep 2022 00:46:05 +0100 Subject: [PATCH 6/7] =?UTF-8?q?Bump=20version:=200.1.1=20=E2=86=92=200.1.2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 3 +++ pyproject.toml | 2 +- setup.cfg | 2 +- transfa/version.py | 2 +- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b79efb8..7b121e4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,9 @@ Changelog [Unreleased] ------------ +[v0.1.2] - 2022-09-16 +------------------ + [v0.1.1] - 2022-09-16 ------------------ - add github actions for deploy on testpipy diff --git a/pyproject.toml b/pyproject.toml index 397a631..8fc8f4d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,4 +6,4 @@ build-backend = "setuptools.build_meta" [project] name = "transfa-python-sdk" -version = "0.1.1" \ No newline at end of file +version = "0.1.2" \ No newline at end of file diff --git a/setup.cfg b/setup.cfg index 8d131b8..02597b7 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 0.1.1 +current_version = 0.1.2 commit = True tag = True diff --git a/transfa/version.py b/transfa/version.py index 7d7c7c3..5411c9a 100644 --- a/transfa/version.py +++ b/transfa/version.py @@ -1 +1 @@ -VERSION = "0.1.1" +VERSION = "0.1.2" From 72dd3c2b84f245ab2a1acaebb067568e457d3d3c Mon Sep 17 00:00:00 2001 From: koladev Date: Sat, 17 Sep 2022 00:46:24 +0100 Subject: [PATCH 7/7] :memo: update changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7b121e4..fcbf799 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ Changelog [v0.1.2] - 2022-09-16 ------------------ +- fix deploy issues [v0.1.1] - 2022-09-16 ------------------