From 926d0177468045b6b4ed7ff5bb2664fde537ff55 Mon Sep 17 00:00:00 2001 From: rogeliolopez Date: Tue, 31 Oct 2023 12:15:31 -0600 Subject: [PATCH 1/7] default update card params --- cuenca/resources/cards.py | 2 +- cuenca/version.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cuenca/resources/cards.py b/cuenca/resources/cards.py index ff739615..4ad8c816 100644 --- a/cuenca/resources/cards.py +++ b/cuenca/resources/cards.py @@ -89,7 +89,7 @@ def update( card_id: str, status: Optional[CardStatus] = None, pin_block: Optional[str] = None, - is_dynamic_cvv: bool = False, + is_dynamic_cvv: bool = None, *, session: Session = global_session, ) -> 'Card': diff --git a/cuenca/version.py b/cuenca/version.py index 7f440002..cdc0eaa6 100644 --- a/cuenca/version.py +++ b/cuenca/version.py @@ -1,3 +1,3 @@ -__version__ = '0.15.9' +__version__ = '0.15.10' CLIENT_VERSION = __version__ API_VERSION = '2020-03-19' From 6576f8161239d32c15e3d6adebef5c9eca8dd656 Mon Sep 17 00:00:00 2001 From: rogeliolopez Date: Tue, 31 Oct 2023 12:15:43 -0600 Subject: [PATCH 2/7] version --- cuenca/version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cuenca/version.py b/cuenca/version.py index cdc0eaa6..b65481ad 100644 --- a/cuenca/version.py +++ b/cuenca/version.py @@ -1,3 +1,3 @@ -__version__ = '0.15.10' +__version__ = '0.15.10.dev0' CLIENT_VERSION = __version__ API_VERSION = '2020-03-19' From 223cff9bcdd78790b1149d21c5b9d1efd5d9970e Mon Sep 17 00:00:00 2001 From: rogeliolopez Date: Tue, 31 Oct 2023 12:18:17 -0600 Subject: [PATCH 3/7] version --- cuenca/version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cuenca/version.py b/cuenca/version.py index b65481ad..01cbcdad 100644 --- a/cuenca/version.py +++ b/cuenca/version.py @@ -1,3 +1,3 @@ -__version__ = '0.15.10.dev0' +__version__ = '0.15.10.dev1' CLIENT_VERSION = __version__ API_VERSION = '2020-03-19' From aa0290a6927b10505a0f42e178ec8202f77b438f Mon Sep 17 00:00:00 2001 From: rogeliolopez Date: Tue, 31 Oct 2023 12:40:42 -0600 Subject: [PATCH 4/7] update GH actions --- .github/workflows/release.yml | 19 ++++++++++++------- cuenca/version.py | 2 +- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8d232cd7..618d91a9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,12 +1,19 @@ name: release -on: push +on: + release: + types: [published] jobs: publish-pypi: runs-on: ubuntu-latest + environment: + name: pypi + url: https://pypi.org/p/cuenca + permissions: + id-token: write steps: - - uses: actions/checkout@v2.4.0 + - uses: actions/checkout@master - name: Set up Python 3.8 uses: actions/setup-python@v2.3.1 with: @@ -15,9 +22,7 @@ jobs: run: pip install -qU setuptools wheel twine - name: Generating distribution archives run: python setup.py sdist bdist_wheel - - name: Publish distribution 📦 to PyPI - if: startsWith(github.event.ref, 'refs/tags') - uses: pypa/gh-action-pypi-publish@master + - name: Publish package distributions to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 with: - user: __token__ - password: ${{ secrets.pypi_password }} + user: __token__ \ No newline at end of file diff --git a/cuenca/version.py b/cuenca/version.py index 01cbcdad..70817404 100644 --- a/cuenca/version.py +++ b/cuenca/version.py @@ -1,3 +1,3 @@ -__version__ = '0.15.10.dev1' +__version__ = '0.15.10.dev2' CLIENT_VERSION = __version__ API_VERSION = '2020-03-19' From 566dcb488f83006a8cc7a966a09be63c04ce851b Mon Sep 17 00:00:00 2001 From: rogeliolopez Date: Tue, 31 Oct 2023 12:45:26 -0600 Subject: [PATCH 5/7] pass --- .github/workflows/release.yml | 3 ++- cuenca/version.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 618d91a9..6a8569a4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -25,4 +25,5 @@ jobs: - name: Publish package distributions to PyPI uses: pypa/gh-action-pypi-publish@release/v1 with: - user: __token__ \ No newline at end of file + user: __token__ + password: ${{ secrets.pypi_password }} diff --git a/cuenca/version.py b/cuenca/version.py index 70817404..f9a18d7c 100644 --- a/cuenca/version.py +++ b/cuenca/version.py @@ -1,3 +1,3 @@ -__version__ = '0.15.10.dev2' +__version__ = '0.15.10.dev3' CLIENT_VERSION = __version__ API_VERSION = '2020-03-19' From 485924710e156863c193e870b017cf01333e485b Mon Sep 17 00:00:00 2001 From: rogeliolopez Date: Tue, 31 Oct 2023 13:01:46 -0600 Subject: [PATCH 6/7] version --- .github/workflows/release.yml | 2 +- cuenca/version.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6a8569a4..f87eda39 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -22,7 +22,7 @@ jobs: run: pip install -qU setuptools wheel twine - name: Generating distribution archives run: python setup.py sdist bdist_wheel - - name: Publish package distributions to PyPI + - name: Publish distribution 📦 to PyPI uses: pypa/gh-action-pypi-publish@release/v1 with: user: __token__ diff --git a/cuenca/version.py b/cuenca/version.py index f9a18d7c..cdc0eaa6 100644 --- a/cuenca/version.py +++ b/cuenca/version.py @@ -1,3 +1,3 @@ -__version__ = '0.15.10.dev3' +__version__ = '0.15.10' CLIENT_VERSION = __version__ API_VERSION = '2020-03-19' From 21dfe384a0f0aee21b720e625f9de455d918ed88 Mon Sep 17 00:00:00 2001 From: rogeliolopez Date: Tue, 31 Oct 2023 13:20:28 -0600 Subject: [PATCH 7/7] fix --- cuenca/resources/cards.py | 3 ++- requirements-test.txt | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/cuenca/resources/cards.py b/cuenca/resources/cards.py index 4ad8c816..63de459b 100644 --- a/cuenca/resources/cards.py +++ b/cuenca/resources/cards.py @@ -89,7 +89,7 @@ def update( card_id: str, status: Optional[CardStatus] = None, pin_block: Optional[str] = None, - is_dynamic_cvv: bool = None, + is_dynamic_cvv: Optional[bool] = None, *, session: Session = global_session, ) -> 'Card': @@ -100,6 +100,7 @@ def update( :param card_id: existing card_id :param status: :param pin_block + :param is_dynamic_cvv: enable/disable dynamic cvv for virtual cards :param session: :return: Updated card object """ diff --git a/requirements-test.txt b/requirements-test.txt index 3207661f..d8d86c04 100644 --- a/requirements-test.txt +++ b/requirements-test.txt @@ -9,3 +9,4 @@ pytest-vcr==1.0.* requests-mock==1.9.* types-freezegun types-requests +vcrpy==4.1.1