Skip to content
Closed
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
8 changes: 4 additions & 4 deletions .github/workflows/code-quality.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Checkout master repository
uses: actions/checkout@v4
with:
path: ./multisafepay-python
path: ./python-sdk

- name: Clone MultiSafepay docker python
uses: actions/checkout@v4
Expand All @@ -31,8 +31,8 @@ jobs:

- name: Setup submodule
run: |
rm -rf ./docker-python/packages-source/multisafepay/multisafepay-python
mv ./multisafepay-python ./docker-python/packages-source/multisafepay/multisafepay-python
rm -rf ./docker-python/packages-source/multisafepay/python-sdk
mv ./python-sdk ./docker-python/packages-source/multisafepay/python-sdk

- name: Copy environment file
run: cp .env.example .env
Expand Down Expand Up @@ -62,6 +62,6 @@ jobs:
uses: codecov/codecov-action@v5
with:
fail_ci_if_error: true
files: ./docker-python/packages-source/multisafepay/multisafepay-python/coverage.xml
files: ./docker-python/packages-source/multisafepay/python-sdk/coverage.xml
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Checkout main repository
uses: actions/checkout@v4
with:
path: ./multisafepay-python
path: ./python-sdk

- name: Get the version
id: get_version
Expand All @@ -33,8 +33,8 @@ jobs:

- name: Setup submodule
run: |
rm -rf ./docker-python/packages-source/multisafepay/multisafepay-python
mv ./multisafepay-python ./docker-python/packages-source/multisafepay/multisafepay-python
rm -rf ./docker-python/packages-source/multisafepay/python-sdk
mv ./python-sdk ./docker-python/packages-source/multisafepay/python-sdk

- name: Copy environment file
run: cp .env.example .env
Expand All @@ -55,7 +55,7 @@ jobs:
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: ./docker-python/packages-source/multisafepay/multisafepay-python/dist/
packages-dir: ./docker-python/packages-source/multisafepay/python-sdk/dist/

- name: Create Release
id: create_release
Expand All @@ -75,7 +75,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GLOBAL_GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./docker-python/packages-source/multisafepay/multisafepay-python/dist/multisafepay-${{ env.VERSION }}.tar.gz
asset_path: ./docker-python/packages-source/multisafepay/python-sdk/dist/multisafepay-${{ env.VERSION }}.tar.gz
asset_name: multisafepay-${{ env.VERSION }}.tar.gz
asset_content_type: application/zip

Expand All @@ -86,6 +86,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GLOBAL_GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./docker-python/packages-source/multisafepay/multisafepay-python/dist/multisafepay-${{ env.VERSION }}-py3-none-any.whl
asset_path: ./docker-python/packages-source/multisafepay/python-sdk/dist/multisafepay-${{ env.VERSION }}-py3-none-any.whl
asset_name: multisafepay-${{ env.VERSION }}-py3-none-any.whl
asset_content_type: application/octet-stream
31 changes: 31 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Changelog

All notable changes to the MultiSafepay Python SDK will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.0.0rc1] - 2025-04-22

### Added
- Initial release candidate
- Core API functionality
- Support for payment methods
- Order creation and management
- Transaction handling
- Webhook support
- Comprehensive test suite
- Type hints and documentation

### Dependencies
- Python >=3.8,<3.14
- requests ^2.32.3
- toml ^0.10.2
- pydantic ^1.10.0
- python-dotenv ^1.0.1

## [Unreleased]

### Changed
- [PTHMINT-59] Update the pyproject.toml file.
- [PTHMINT-60] Rename the project folder in the workflows
46 changes: 40 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,47 @@
[tool.poetry]
authors = ["Multisafepay <[email protected]>"]
[build-system]
build-backend = "poetry.core.masonry.api"
requires = ["poetry-core>=1.0.0"]

[project]
name = "multisafepay"
version = "1.0.0rc1"
description = "Multisafepay API wrapper"
authors = [
{ name = "Multisafepay", email = "[email protected]" },
]
license = "OSL-3.0"
readme = "README.md"
repository = "https://github.com/MultiSafepay/python-sdk"
homepage = "https://multisafepay.com"
requires-python = ">=3.8"

classifiers = []
packages = [{include = "src"}]

maintainers = [
{ name = "Daniel Civit", email = "[email protected]" },
{ name = "Marco Gil", email = "[email protected]" }
]
license-files = ["LICENSE.md", "DISCLAIMER.md"]


[tool.poetry]
name = "multisafepay"
version = "1.0.0rc1"
description = "Multisafepay API wrapper"
authors = ["Multisafepay <[email protected]>"]
license = "OSL-3.0"
readme = "README.md"
repository = "https://github.com/MultiSafepay/python-sdk"
homepage = "https://multisafepay.com"

classifiers = []
packages = [{include = "src"}]

maintainers = [
"Daniel Civit <[email protected]>",
"Marco Gil <[email protected]>"
]

[tool.poetry.dependencies]
python = ">=3.8,<3.14"
Expand All @@ -24,10 +62,6 @@ pytest-rerunfailures = "^12.0"
[tool.pytest.ini_options]
pythonpath = ["src"]

[build-system]
build-backend = "poetry.core.masonry.api"
requires = ["poetry-core>=1.0.0"]

# configures some basic black settings per this article:
# https://ljvmiranda921.github.io/notebook/2018/06/21/precommits-using-black-and-flake8/
[tool.black]
Expand Down
Loading