diff --git a/.github/workflows/code-quality.yaml b/.github/workflows/code-quality.yaml index c84dfd9..b696986 100644 --- a/.github/workflows/code-quality.yaml +++ b/.github/workflows/code-quality.yaml @@ -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 @@ -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 @@ -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 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9658b2e..518e1a4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..e9b1d69 --- /dev/null +++ b/CHANGELOG.md @@ -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 diff --git a/pyproject.toml b/pyproject.toml index cb6cf21..8f5b3b7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,9 +1,47 @@ -[tool.poetry] -authors = ["Multisafepay "] +[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 = "integration@multisafepay.com" }, +] 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 = "daniel.civit@multisafepay.com" }, + { name = "Marco Gil", email = "marco.gil@multisafepay.com" } +] +license-files = ["LICENSE.md", "DISCLAIMER.md"] + + +[tool.poetry] name = "multisafepay" version = "1.0.0rc1" +description = "Multisafepay API wrapper" +authors = ["Multisafepay "] +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 ", + "Marco Gil " +] [tool.poetry.dependencies] python = ">=3.8,<3.14" @@ -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]