Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
42 changes: 21 additions & 21 deletions .github/workflows/github_master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,33 +38,33 @@ jobs:
# Change version number on files
sed -i -e 's/'$current_release'/'$new_release'/g' setup.py iyzipay/iyzipay_resource.py VERSION pyproject.toml

- name: Github Tasks
run: |
set -e
git config user.name "iyzico-ci"
git config user.email iyzico-ci@iyzico.com
git add .
git commit -m "Automatic commit by iyzico-ci v${{env.NEW_RELEASE}}"
git push origin master
git tag -a v${{env.NEW_RELEASE}} -m "Automatic tag by iyzico-ci v${{env.NEW_RELEASE}}"
git push origin v${{env.NEW_RELEASE}}
#- name: Github Tasks
#run: |
#set -e
#git config user.name "iyzico-ci"
#git config user.email iyzico-ci@iyzico.com
#git add .
#git commit -m "Automatic commit by iyzico-ci v${{env.NEW_RELEASE}}"
#git push origin master
#git tag -a v${{env.NEW_RELEASE}} -m "Automatic tag by iyzico-ci v${{env.NEW_RELEASE}}"
#git push origin v${{env.NEW_RELEASE}}

- name: Github Release
run: |
#- name: Github Release
#run: |
# Use the new release version in release creation step
echo "Creating release ${{env.NEW_RELEASE}}..."
result=$( curl -# -XPOST -H "Authorization: token ${{secrets.TOKEN_GITHUB}}" -H "Content-Type: application/json" -H "Accept:application/json" --data-binary '{"tag_name": "v${{env.NEW_RELEASE}}","target_commitish": "master","name": "iyzipay-python ${{env.NEW_RELEASE}}","body": "version ${{env.NEW_RELEASE}}","draft": false,"prerelease": false}' https://api.github.com/repos/iyzico/iyzipay-python/releases )
echo $result
echo "GitHub release ${{env.NEW_RELEASE}} created!"
#echo "Creating release ${{env.NEW_RELEASE}}..."
#result=$( curl -# -XPOST -H "Authorization: token ${{secrets.TOKEN_GITHUB}}" -H "Content-Type: application/json" -H "Accept:application/json" --data-binary '{"tag_name": "v${{env.NEW_RELEASE}}","target_commitish": "master","name": "iyzipay-python ${{env.NEW_RELEASE}}","body": "version ${{env.NEW_RELEASE}}","draft": false,"prerelease": false}' https://api.github.com/repos/iyzico/iyzipay-python/releases )
#echo $result
#echo "GitHub release ${{env.NEW_RELEASE}} created!"

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
user: __token__
password: ${{ secrets.TOKEN_PYPI }}
#- name: Publish package
#uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
#with:
#user: __token__
#password: ${{ secrets.TOKEN_PYPI }}
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.48
1.0.43
2 changes: 1 addition & 1 deletion iyzipay/iyzipay_resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class IyzipayResource:
header = {
"Accept": "application/json",
"Content-type": "application/json",
'x-iyzi-client-version': 'iyzipay-python-1.0.48'
'x-iyzi-client-version': 'iyzipay-python-1.0.43'
}

def __init__(self):
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "iyzipay"
version = "1.0.48"
version = "1.0.43"
dynamic = ["description", "readme", "license", "authors", "classifiers"]
description = "iyzipay api python client"
readme = { file = "README.md", content-type = "text/markdown" }
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@

setup(
name='iyzipay',
version='1.0.48',
version='1.0.43',
use_scm_version=True,
setup_requires=['setuptools_scm', 'future'],
description='iyzipay api python client',
# description='iyzipay api python client',
# long_description=README,
long_description="Test Description",
author='iyzico',
Expand Down