Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
e1155b2
Create release.yml
antolo-arch May 10, 2023
265f211
Create gh-release.yml
antolo-arch May 10, 2023
413a942
Create release.yml
antolo-arch May 10, 2023
4f2efe7
Create release.js
antolo-arch May 10, 2023
c7e81bc
Create package.json
antolo-arch May 10, 2023
e9ab32d
Delete package.json
antolo-arch May 10, 2023
7930ae1
Update release.js
antolo-arch May 10, 2023
c686684
Update release.js
antolo-arch May 10, 2023
e0837dd
Update release.js
antolo-arch May 10, 2023
26d0cfb
Delete codeql-analysis.yml
antolo-arch May 10, 2023
b97e4dc
Update release.js
antolo-arch May 10, 2023
b04d36b
Update release.js
antolo-arch May 10, 2023
4c06532
Update release.js
antolo-arch May 10, 2023
41af40d
Update release.yml
antolo-arch May 10, 2023
2ee7b40
Update release.js
antolo-arch May 10, 2023
513a40e
Update release.yml
antolo-arch May 10, 2023
3141188
Update release.yml
antolo-arch May 10, 2023
d137888
Update release.js
antolo-arch May 10, 2023
17be2a2
Update release.yml
antolo-arch May 10, 2023
773dfb6
chore(release): bump to 8.0.2
May 10, 2023
d306c05
Merge pull request #1 from antolo-arch/automation/release
antolo-arch May 10, 2023
01dfc9f
Update settings.py
antolo-arch May 12, 2023
17c1fd1
Update settings.py
antolo-arch May 12, 2023
3aa0fa5
Update release.js
antolo-arch May 12, 2023
f0441c8
Update release.js
antolo-arch May 12, 2023
b3929af
chore(release): bump to 8.0.3
May 12, 2023
9f9b075
Merge pull request #2 from antolo-arch/automation/release
antolo-arch May 12, 2023
2eab67b
Update README.md
antolo-arch May 12, 2023
d16d685
Update release.js
antolo-arch May 12, 2023
996ccc3
Update release.yml
antolo-arch May 12, 2023
0bbce65
Update release.yml
antolo-arch May 12, 2023
00747e1
Update release.yml
antolo-arch May 12, 2023
67afdad
Update release.yml
antolo-arch May 12, 2023
e6a2ffd
Update gh-release.yml
antolo-arch May 12, 2023
e005419
Update release.yml
antolo-arch May 12, 2023
d732eda
Update gh-release.yml
antolo-arch May 12, 2023
2622515
Delete .github/scripts directory
antolo-arch May 12, 2023
8f04a39
Update release.yml
antolo-arch May 12, 2023
2ac05de
Update README.md
antolo-arch May 12, 2023
322e5e0
Update gh-release.yml
antolo-arch May 12, 2023
f76d056
Update README.md
antolo-arch May 12, 2023
7208845
Update README.md
antolo-arch May 12, 2023
692b68c
Update settings.py
antolo-arch May 12, 2023
19f7d1a
Update setup.py
antolo-arch May 12, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
changelog:
exclude:
authors:
- renovate[bot]
- dependabot[bot]
categories:
- title: Breaking Changes 🛠
labels:
- Breaking change
- title: New Features 💎
labels:
- Feature
- title: Fixes ⛑️
labels:
- Fix
- title: Other Changes 🖇️
labels:
- "*"
51 changes: 0 additions & 51 deletions .github/workflows/codeql-analysis.yml

This file was deleted.

43 changes: 43 additions & 0 deletions .github/workflows/gh-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Github Release

on:
workflow_dispatch:
push:
branches:
- main

jobs:
gh_release:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: Get the release script
run: |
wget https://raw.githubusercontent.com/Adyen/adyen-node-api-library/develop/.github/scripts/release.js -P ./.github/scripts
- uses: actions/checkout@v3
with:
fetch-depth: 0
token: ${{ secrets.ADYEN_AUTOMATION_BOT_ACCESS_TOKEN }}
- name: Grab version
uses: actions/github-script@v6
id: release
with:
script: |
const release = require('./.github/scripts/release.js')
core.setOutput('version', release.setupPythonVersion())
- name: Create new release
env:
GH_TOKEN: ${{ secrets.ADYEN_AUTOMATION_BOT_ACCESS_TOKEN }}
run: |
gh release create v${{steps.release.outputs.version}} \
--title 'Adyen Python API Library v${{steps.release.outputs.version}}' \
--generate-notes --target main
- name: Delete the release script
run: |
rm -f ./.github/scripts/release.js
- name: Update develop branch
run: |
git checkout develop
git merge main
git push origin develop
64 changes: 64 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: Release request

on:
workflow_dispatch:
push:
branches:
- develop

jobs:
release:
permissions:
contents: write
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: main
- name: Reset promotion branch
run: |
git fetch origin develop:develop
git reset --hard develop
- name: Get the release script
run: |
wget https://raw.githubusercontent.com/Adyen/adyen-node-api-library/develop/.github/scripts/release.js -P ./.github/scripts
- name: Prepare release request
uses: actions/github-script@v6
id: release
with:
script: |
const release = require('./.github/scripts/release.js')
const options = { github, context, core, getCurrentVersion: release.setupPythonVersion };
await release.bump(options);
- name: Bump version
uses: actions/github-script@v6
with:
script: |
const release = require('./.github/scripts/release.js')
await release.updatePythonVersion("${{steps.release.outputs.nextVersion}}");
- name: Delete the release script
run: |
rm -f ./.github/scripts/release.js
- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@284f54f989303d2699d373481a0cfa13ad5a6666 # v5.0.1
with:
token: ${{ secrets.ADYEN_AUTOMATION_BOT_ACCESS_TOKEN }}
committer: ${{ secrets.ADYEN_AUTOMATION_BOT_EMAIL }}
author: ${{ secrets.ADYEN_AUTOMATION_BOT_EMAIL }}
branch: automation/release
title: Release v${{steps.release.outputs.nextVersion}}
body: |
Merged pull requests to be released:
${{steps.release.outputs.changelog}}
commit-message: "chore(release): bump to ${{steps.release.outputs.nextVersion}}"
delete-branch: true
- name: Enable Pull Request Automerge
if: steps.cpr.outputs.pull-request-operation == 'created'
uses: peter-evans/enable-pull-request-automerge@a660677d5469627102a1c1e11409dd063606628d # v3.0.0
with:
token: ${{ secrets.ADYEN_AUTOMATION_BOT_ACCESS_TOKEN }}
pull-request-number: ${{ steps.cpr.outputs.pull-request-number }}
merge-method: merge

2 changes: 1 addition & 1 deletion Adyen/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
API_PAYMENT_VERSION = "v68"
API_PAYOUT_VERSION = "v68"
API_TERMINAL_VERSION = "v1"
LIB_VERSION = "8.0.1"
API_TRANSFERS_VERSION = "v3"
API_LEGAL_ENTITY_MANAGEMENT_VERSION = "v3"
API_STORED_VALUE_VERSION = "v46"
LIB_NAME = "adyen-python-api-library"
LIB_VERSION = "8.0.1"
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# Adyen APIs Library for Python

[![version](https://img.shields.io/badge/version-8.0.1-blue.svg)](https://docs.adyen.com/development-resources/libraries)
[![version](https://img.shields.io/pypi/v/Adyen.svg)](https://docs.adyen.com/development-resources/libraries)

This is the officially supported Python library for using Adyen's APIs.

Expand Down