python-getpaid-simulator 3.0.0a4__tar.gz → 3.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (77) hide show
  1. python_getpaid_simulator-3.1.0/.github/release-drafter.yml +31 -0
  2. {python_getpaid_simulator-3.0.0a4 → python_getpaid_simulator-3.1.0}/.github/workflows/ci.yml +3 -0
  3. python_getpaid_simulator-3.1.0/.github/workflows/release.yml +70 -0
  4. python_getpaid_simulator-3.1.0/.gitignore +20 -0
  5. python_getpaid_simulator-3.1.0/.pre-commit-config.yaml +15 -0
  6. python_getpaid_simulator-3.1.0/.python-version +1 -0
  7. python_getpaid_simulator-3.1.0/.readthedocs.yml +12 -0
  8. python_getpaid_simulator-3.1.0/CODE_OF_CONDUCT.md +132 -0
  9. python_getpaid_simulator-3.1.0/CONTRIBUTING.md +72 -0
  10. {python_getpaid_simulator-3.0.0a4 → python_getpaid_simulator-3.1.0}/Dockerfile.test +7 -4
  11. python_getpaid_simulator-3.1.0/LICENSE +21 -0
  12. {python_getpaid_simulator-3.0.0a4 → python_getpaid_simulator-3.1.0}/Makefile +4 -1
  13. {python_getpaid_simulator-3.0.0a4 → python_getpaid_simulator-3.1.0}/PKG-INFO +6 -3
  14. {python_getpaid_simulator-3.0.0a4 → python_getpaid_simulator-3.1.0}/README.md +1 -1
  15. {python_getpaid_simulator-3.0.0a4 → python_getpaid_simulator-3.1.0}/compose.test.yml +2 -2
  16. python_getpaid_simulator-3.1.0/docs/changelog.md +28 -0
  17. python_getpaid_simulator-3.1.0/docs/codeofconduct.md +2 -0
  18. python_getpaid_simulator-3.1.0/docs/conf.py +29 -0
  19. python_getpaid_simulator-3.1.0/docs/index.md +13 -0
  20. python_getpaid_simulator-3.1.0/docs/license.md +7 -0
  21. python_getpaid_simulator-3.1.0/docs/requirements.txt +3 -0
  22. {python_getpaid_simulator-3.0.0a4 → python_getpaid_simulator-3.1.0}/pyproject.toml +7 -7
  23. {python_getpaid_simulator-3.0.0a4 → python_getpaid_simulator-3.1.0}/src/getpaid_simulator/__init__.py +1 -1
  24. python_getpaid_simulator-3.1.0/src/getpaid_simulator/ui/templates/.gitkeep +0 -0
  25. {python_getpaid_simulator-3.0.0a4 → python_getpaid_simulator-3.1.0}/tests/test_smoke.py +10 -8
  26. python_getpaid_simulator-3.0.0a4/.gitignore +0 -77
  27. {python_getpaid_simulator-3.0.0a4 → python_getpaid_simulator-3.1.0}/Dockerfile +0 -0
  28. {python_getpaid_simulator-3.0.0a4 → python_getpaid_simulator-3.1.0}/Dockerfile.dockerignore +0 -0
  29. {python_getpaid_simulator-3.0.0a4 → python_getpaid_simulator-3.1.0}/Dockerfile.test.dockerignore +0 -0
  30. {python_getpaid_simulator-3.0.0a4 → python_getpaid_simulator-3.1.0}/docker-compose.yml +0 -0
  31. {python_getpaid_simulator-3.0.0a4 → python_getpaid_simulator-3.1.0}/src/getpaid_simulator/__main__.py +0 -0
  32. {python_getpaid_simulator-3.0.0a4 → python_getpaid_simulator-3.1.0}/src/getpaid_simulator/app.py +0 -0
  33. {python_getpaid_simulator-3.0.0a4 → python_getpaid_simulator-3.1.0}/src/getpaid_simulator/core/__init__.py +0 -0
  34. {python_getpaid_simulator-3.0.0a4 → python_getpaid_simulator-3.1.0}/src/getpaid_simulator/core/config.py +0 -0
  35. {python_getpaid_simulator-3.0.0a4 → python_getpaid_simulator-3.1.0}/src/getpaid_simulator/core/discovery.py +0 -0
  36. {python_getpaid_simulator-3.0.0a4 → python_getpaid_simulator-3.1.0}/src/getpaid_simulator/core/state.py +0 -0
  37. {python_getpaid_simulator-3.0.0a4 → python_getpaid_simulator-3.1.0}/src/getpaid_simulator/core/storage.py +0 -0
  38. {python_getpaid_simulator-3.0.0a4 → python_getpaid_simulator-3.1.0}/src/getpaid_simulator/core/webhooks.py +0 -0
  39. {python_getpaid_simulator-3.0.0a4 → python_getpaid_simulator-3.1.0}/src/getpaid_simulator/plugins.py +0 -0
  40. /python_getpaid_simulator-3.0.0a4/src/getpaid_simulator/ui/static/.gitkeep → /python_getpaid_simulator-3.1.0/src/getpaid_simulator/py.typed +0 -0
  41. {python_getpaid_simulator-3.0.0a4 → python_getpaid_simulator-3.1.0}/src/getpaid_simulator/spi.py +0 -0
  42. {python_getpaid_simulator-3.0.0a4 → python_getpaid_simulator-3.1.0}/src/getpaid_simulator/ui/__init__.py +0 -0
  43. {python_getpaid_simulator-3.0.0a4 → python_getpaid_simulator-3.1.0}/src/getpaid_simulator/ui/routes.py +0 -0
  44. {python_getpaid_simulator-3.0.0a4/src/getpaid_simulator/ui/templates → python_getpaid_simulator-3.1.0/src/getpaid_simulator/ui/static}/.gitkeep +0 -0
  45. {python_getpaid_simulator-3.0.0a4 → python_getpaid_simulator-3.1.0}/src/getpaid_simulator/ui/static/style.css +0 -0
  46. {python_getpaid_simulator-3.0.0a4 → python_getpaid_simulator-3.1.0}/src/getpaid_simulator/ui/templates/authorize.html +0 -0
  47. {python_getpaid_simulator-3.0.0a4 → python_getpaid_simulator-3.1.0}/src/getpaid_simulator/ui/templates/base.html +0 -0
  48. {python_getpaid_simulator-3.0.0a4 → python_getpaid_simulator-3.1.0}/src/getpaid_simulator/ui/templates/components/dashboard_payment_card.html +0 -0
  49. {python_getpaid_simulator-3.0.0a4 → python_getpaid_simulator-3.1.0}/src/getpaid_simulator/ui/templates/components/payment_card.html +0 -0
  50. {python_getpaid_simulator-3.0.0a4 → python_getpaid_simulator-3.1.0}/src/getpaid_simulator/ui/templates/components/status_badge.html +0 -0
  51. {python_getpaid_simulator-3.0.0a4 → python_getpaid_simulator-3.1.0}/src/getpaid_simulator/ui/templates/dashboard.html +0 -0
  52. {python_getpaid_simulator-3.0.0a4 → python_getpaid_simulator-3.1.0}/tests/__init__.py +0 -0
  53. {python_getpaid_simulator-3.0.0a4 → python_getpaid_simulator-3.1.0}/tests/conftest.py +0 -0
  54. {python_getpaid_simulator-3.0.0a4 → python_getpaid_simulator-3.1.0}/tests/e2e/__init__.py +0 -0
  55. {python_getpaid_simulator-3.0.0a4 → python_getpaid_simulator-3.1.0}/tests/e2e/conftest.py +0 -0
  56. {python_getpaid_simulator-3.0.0a4 → python_getpaid_simulator-3.1.0}/tests/e2e/test_e2e_dashboard.py +0 -0
  57. {python_getpaid_simulator-3.0.0a4 → python_getpaid_simulator-3.1.0}/tests/e2e/test_e2e_payu_flow.py +0 -0
  58. {python_getpaid_simulator-3.0.0a4 → python_getpaid_simulator-3.1.0}/tests/test_app.py +0 -0
  59. {python_getpaid_simulator-3.0.0a4 → python_getpaid_simulator-3.1.0}/tests/test_cli.py +0 -0
  60. {python_getpaid_simulator-3.0.0a4 → python_getpaid_simulator-3.1.0}/tests/test_config.py +0 -0
  61. {python_getpaid_simulator-3.0.0a4 → python_getpaid_simulator-3.1.0}/tests/test_discovery.py +0 -0
  62. {python_getpaid_simulator-3.0.0a4 → python_getpaid_simulator-3.1.0}/tests/test_legacy_provider_modules.py +0 -0
  63. {python_getpaid_simulator-3.0.0a4 → python_getpaid_simulator-3.1.0}/tests/test_paynow_payments.py +0 -0
  64. {python_getpaid_simulator-3.0.0a4 → python_getpaid_simulator-3.1.0}/tests/test_paynow_refunds.py +0 -0
  65. {python_getpaid_simulator-3.0.0a4 → python_getpaid_simulator-3.1.0}/tests/test_paynow_signing.py +0 -0
  66. {python_getpaid_simulator-3.0.0a4 → python_getpaid_simulator-3.1.0}/tests/test_paynow_webhooks.py +0 -0
  67. {python_getpaid_simulator-3.0.0a4 → python_getpaid_simulator-3.1.0}/tests/test_payu_lifecycle.py +0 -0
  68. {python_getpaid_simulator-3.0.0a4 → python_getpaid_simulator-3.1.0}/tests/test_payu_oauth.py +0 -0
  69. {python_getpaid_simulator-3.0.0a4 → python_getpaid_simulator-3.1.0}/tests/test_payu_orders.py +0 -0
  70. {python_getpaid_simulator-3.0.0a4 → python_getpaid_simulator-3.1.0}/tests/test_payu_refunds.py +0 -0
  71. {python_getpaid_simulator-3.0.0a4 → python_getpaid_simulator-3.1.0}/tests/test_payu_webhooks.py +0 -0
  72. {python_getpaid_simulator-3.0.0a4 → python_getpaid_simulator-3.1.0}/tests/test_state.py +0 -0
  73. {python_getpaid_simulator-3.0.0a4 → python_getpaid_simulator-3.1.0}/tests/test_storage.py +0 -0
  74. {python_getpaid_simulator-3.0.0a4 → python_getpaid_simulator-3.1.0}/tests/test_test_infrastructure.py +0 -0
  75. {python_getpaid_simulator-3.0.0a4 → python_getpaid_simulator-3.1.0}/tests/test_ui_authorize.py +0 -0
  76. {python_getpaid_simulator-3.0.0a4 → python_getpaid_simulator-3.1.0}/tests/test_ui_dashboard.py +0 -0
  77. {python_getpaid_simulator-3.0.0a4 → python_getpaid_simulator-3.1.0}/tests/test_webhooks.py +0 -0
@@ -0,0 +1,31 @@
1
+ name-template: 'v$RESOLVED_VERSION'
2
+ tag-template: 'v$RESOLVED_VERSION'
3
+ categories:
4
+ - title: ':boom: Breaking Changes'
5
+ label: 'breaking'
6
+ - title: ':rocket: Features'
7
+ label: 'enhancement'
8
+ - title: ':fire: Removals and Deprecations'
9
+ label: 'removal'
10
+ - title: ':beetle: Fixes'
11
+ label: 'bug'
12
+ - title: ':racehorse: Performance'
13
+ label: 'performance'
14
+ - title: ':rotating_light: Testing'
15
+ label: 'testing'
16
+ - title: ':construction_worker: Continuous Integration'
17
+ label: 'ci'
18
+ - title: ':books: Documentation'
19
+ label: 'documentation'
20
+ - title: ':hammer: Refactoring'
21
+ label: 'refactoring'
22
+ - title: ':lipstick: Style'
23
+ label: 'style'
24
+ - title: ':package: Dependencies'
25
+ labels:
26
+ - 'dependencies'
27
+ - 'build'
28
+ template: |
29
+ ## Changes
30
+
31
+ $CHANGES
@@ -29,6 +29,9 @@ jobs:
29
29
  - name: Lint with ruff
30
30
  run: uv run ruff check .
31
31
 
32
+ - name: Audit dependencies
33
+ run: uv run pip-audit --strict
34
+
32
35
  - name: Run unit tests
33
36
  run: make test-unit
34
37
 
@@ -0,0 +1,70 @@
1
+ name: Release
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+ - master
8
+
9
+ jobs:
10
+ release:
11
+ name: Release
12
+ runs-on: ubuntu-latest
13
+ steps:
14
+ - name: Check out the repository
15
+ uses: actions/checkout@v4
16
+ with:
17
+ fetch-depth: 0 # Full history needed for version detection
18
+
19
+ - name: Set up Python
20
+ uses: actions/setup-python@v5
21
+ with:
22
+ python-version: "3.12"
23
+
24
+ - name: Install uv
25
+ run: pip install uv
26
+
27
+ # Version is read from __init__.py (dynamic via hatch)
28
+ - name: Detect version from __init__.py
29
+ id: get-version
30
+ run: |
31
+ init_py=$(grep -A2 '\[tool\.hatch\.version\]' pyproject.toml | grep '^path\s*=' | head -1 | sed -E "s/path\s*=\s*['\"]([^'\"]+)['\"].*/\1/")
32
+ version=$(grep '__version__' "$init_py" | head -1 | sed -E "s/.*= ['\"]([^'\"]+)['\"].*/\1/")
33
+ echo "version=$version" >> "$GITHUB_OUTPUT"
34
+
35
+ - name: Check if tag already exists
36
+ id: check-tag
37
+ run: |
38
+ tag="v${{ steps.get-version.outputs.version }}"
39
+ if git rev-parse "$tag" >/dev/null 2>&1; then
40
+ echo "already_tagged=true" >> "$GITHUB_OUTPUT"
41
+ else
42
+ echo "already_tagged=false" >> "$GITHUB_OUTPUT"
43
+ fi
44
+
45
+ - name: Tag new version
46
+ if: steps.check-tag.outputs.already_tagged == 'false'
47
+ run: |
48
+ tag="v${{ steps.get-version.outputs.version }}"
49
+ git config user.name "github-actions[bot]"
50
+ git config user.email "github-actions[bot]@users.noreply.github.com"
51
+ git tag -a "$tag" -m "Release $tag"
52
+ git push origin "$tag"
53
+
54
+ - name: Build package
55
+ run: uv build
56
+
57
+ - name: Publish package on PyPI
58
+ uses: pypa/gh-action-pypi-publish@release/v1
59
+ with:
60
+ password: ${{ secrets.PYPI_TOKEN }}
61
+
62
+ - name: Publish the release notes
63
+ if: steps.check-tag.outputs.already_tagged == 'false'
64
+ uses: release-drafter/release-drafter@v5.20.0
65
+ with:
66
+ publish: true
67
+ name: v${{ steps.get-version.outputs.version }}
68
+ tag: v${{ steps.get-version.outputs.version }}
69
+ env:
70
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -0,0 +1,20 @@
1
+ # Python-generated files
2
+ __pycache__/
3
+ *.py[oc]
4
+ build/
5
+ dist/
6
+ wheels/
7
+ *.egg-info
8
+
9
+ # Virtual environments
10
+ .venv
11
+
12
+ # Coverage
13
+ .coverage
14
+ htmlcov/
15
+
16
+ # Sphinx build output
17
+ docs/_build/
18
+
19
+ # uv lock file
20
+ uv.lock
@@ -0,0 +1,15 @@
1
+ repos:
2
+ - repo: https://github.com/pre-commit/pre-commit-hooks
3
+ rev: v5.0.0
4
+ hooks:
5
+ - id: trailing-whitespace
6
+ - id: end-of-file-fixer
7
+ - id: check-yaml
8
+ - id: check-added-large-files
9
+
10
+ - repo: https://github.com/astral-sh/ruff-pre-commit
11
+ rev: v0.11.12
12
+ hooks:
13
+ - id: ruff
14
+ args: [--fix]
15
+ - id: ruff-format
@@ -0,0 +1 @@
1
+ 3.12
@@ -0,0 +1,12 @@
1
+ version: 2
2
+ build:
3
+ os: ubuntu-24.04
4
+ tools:
5
+ python: "3.12"
6
+ sphinx:
7
+ configuration: docs/conf.py
8
+ formats: all
9
+ python:
10
+ install:
11
+ - requirements: docs/requirements.txt
12
+ - path: .
@@ -0,0 +1,132 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our
6
+ community a harassment-free experience for everyone, regardless of age, body
7
+ size, visible or invisible disability, ethnicity, sex characteristics, gender
8
+ identity and expression, level of experience, education, socio-economic status,
9
+ nationality, personal appearance, race, caste, color, religion, or sexual
10
+ identity and orientation.
11
+
12
+ We pledge to act and interact in ways that contribute to an open, welcoming,
13
+ diverse, inclusive, and healthy community.
14
+
15
+ ## Our Standards
16
+
17
+ Examples of behavior that contributes to a positive environment for our
18
+ community include:
19
+
20
+ - Demonstrating empathy and kindness toward other people
21
+ - Being respectful of differing opinions, viewpoints, and experiences
22
+ - Giving and gracefully accepting constructive feedback
23
+ - Accepting responsibility and apologizing to those affected by our mistakes,
24
+ and learning from the experience
25
+ - Focusing on what is best not just for us as individuals, but for the overall
26
+ community
27
+
28
+ Examples of unacceptable behavior include:
29
+
30
+ - The use of sexualized language or imagery, and sexual attention or advances of
31
+ any kind
32
+ - Trolling, insulting or derogatory comments, and personal or political attacks
33
+ - Public or private harassment
34
+ - Publishing others' private information, such as a physical or email address,
35
+ without their explicit permission
36
+ - Other conduct which could reasonably be considered inappropriate in a
37
+ professional setting
38
+
39
+ ## Enforcement Responsibilities
40
+
41
+ Community leaders are responsible for clarifying and enforcing our standards of
42
+ acceptable behavior and will take appropriate and fair corrective action in
43
+ response to any behavior that they deem inappropriate, threatening, offensive,
44
+ or harmful.
45
+
46
+ Community leaders have the right and responsibility to remove, edit, or reject
47
+ comments, commits, code, wiki edits, issues, and other contributions that are
48
+ not aligned to this Code of Conduct, and will communicate reasons for moderation
49
+ decisions when appropriate.
50
+
51
+ ## Scope
52
+
53
+ This Code of Conduct applies within all community spaces, and also applies when
54
+ an individual is officially representing the community in public spaces.
55
+ Examples of representing our community include using an official e-mail address,
56
+ posting via an official social media account, or acting as an appointed
57
+ representative at an online or offline event.
58
+
59
+ ## Enforcement
60
+
61
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
62
+ reported to the community leaders responsible for enforcement at
63
+ [dominik@kozaczko.info](mailto:dominik@kozaczko.info).
64
+ All complaints will be reviewed and investigated promptly and fairly.
65
+
66
+ All community leaders are obligated to respect the privacy and security of the
67
+ reporter of any incident.
68
+
69
+ ## Enforcement Guidelines
70
+
71
+ Community leaders will follow these Community Impact Guidelines in determining
72
+ the consequences for any action they deem in violation of this Code of Conduct:
73
+
74
+ ### 1. Correction
75
+
76
+ **Community Impact**: Use of inappropriate language or other behavior deemed
77
+ unprofessional or unwelcome in the community.
78
+
79
+ **Consequence**: A private, written warning from community leaders, providing
80
+ clarity around the nature of the violation and an explanation of why the
81
+ behavior was inappropriate. A public apology may be requested.
82
+
83
+ ### 2. Warning
84
+
85
+ **Community Impact**: A violation through a single incident or series of
86
+ actions.
87
+
88
+ **Consequence**: A warning with consequences for continued behavior. No
89
+ interaction with the people involved, including unsolicited interaction with
90
+ those enforcing the Code of Conduct, for a specified period of time. This
91
+ includes avoiding interactions in community spaces as well as external channels
92
+ like social media. Violating these terms may lead to a temporary or permanent
93
+ ban.
94
+
95
+ ### 3. Temporary Ban
96
+
97
+ **Community Impact**: A serious violation of community standards, including
98
+ sustained inappropriate behavior.
99
+
100
+ **Consequence**: A temporary ban from any sort of interaction or public
101
+ communication with the community for a specified period of time. No public or
102
+ private interaction with the people involved, including unsolicited interaction
103
+ with those enforcing the Code of Conduct, is allowed during this period.
104
+ Violating these terms may lead to a permanent ban.
105
+
106
+ ### 4. Permanent Ban
107
+
108
+ **Community Impact**: Demonstrating a pattern of violation of community
109
+ standards, including sustained inappropriate behavior, harassment of an
110
+ individual, or aggression toward or disparagement of classes of individuals.
111
+
112
+ **Consequence**: A permanent ban from any sort of public interaction within the
113
+ community.
114
+
115
+ ## Attribution
116
+
117
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage],
118
+ version 2.1, available at
119
+ [https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
120
+
121
+ Community Impact Guidelines were inspired by
122
+ [Mozilla's code of conduct enforcement ladder][mozilla coc].
123
+
124
+ For answers to common questions about this code of conduct, see the FAQ at
125
+ [https://www.contributor-covenant.org/faq][faq]. Translations are available at
126
+ [https://www.contributor-covenant.org/translations][translations].
127
+
128
+ [homepage]: https://www.contributor-covenant.org
129
+ [v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
130
+ [mozilla coc]: https://github.com/mozilla/diversity
131
+ [faq]: https://www.contributor-covenant.org/faq
132
+ [translations]: https://www.contributor-covenant.org/translations
@@ -0,0 +1,72 @@
1
+ # Contributor Guide
2
+
3
+ Thank you for your interest in improving python-getpaid-simulator.
4
+ This project is open-source under the [MIT license](https://github.com/django-getpaid/python-getpaid-simulator/blob/main/LICENSE) and
5
+ welcomes contributions in the form of bug reports, feature requests, and pull requests.
6
+
7
+ ## Resources
8
+
9
+ - [Source Code](https://github.com/django-getpaid/python-getpaid-simulator)
10
+ - [Issue Tracker](https://github.com/django-getpaid/python-getpaid-simulator/issues)
11
+
12
+ ## How to report a bug
13
+
14
+ Report bugs on the [Issue Tracker](https://github.com/django-getpaid/python-getpaid-simulator/issues).
15
+
16
+ When filing an issue, include:
17
+
18
+ - Operating system and Python version
19
+ - python-getpaid-simulator version
20
+ - Steps to reproduce
21
+ - Expected vs actual behavior
22
+
23
+ ## How to set up your development environment
24
+
25
+ You need Python 3.12+ and [uv](https://docs.astral.sh/uv/).
26
+
27
+ Clone and install:
28
+
29
+ ```bash
30
+ git clone https://github.com/django-getpaid/python-getpaid-simulator.git
31
+ cd python-getpaid-simulator
32
+ uv sync
33
+ ```
34
+
35
+ Run unit tests:
36
+
37
+ ```bash
38
+ make test-unit
39
+ ```
40
+
41
+ Run integration tests (requires Docker):
42
+
43
+ ```bash
44
+ make test-integration
45
+ ```
46
+
47
+ Run E2E tests (requires Docker + Playwright):
48
+
49
+ ```bash
50
+ make test-e2e
51
+ ```
52
+
53
+ Run linting:
54
+
55
+ ```bash
56
+ uv run ruff check src/ tests/
57
+ uv run ruff format --check src/ tests/
58
+ ```
59
+
60
+ ## How to submit changes
61
+
62
+ 1. Fork the repository and create a feature branch
63
+ 2. Write tests for your changes
64
+ 3. Ensure all tests pass
65
+ 4. Ensure linting passes
66
+ 5. Open a pull request
67
+
68
+ Your pull request needs to:
69
+
70
+ - Pass the test suite without errors
71
+ - Include tests for new functionality
72
+ - Update documentation if adding features
@@ -26,10 +26,13 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
26
26
 
27
27
  RUN pip install --no-cache-dir uv
28
28
 
29
- COPY getpaid-core/ /app/getpaid-core/
30
- COPY getpaid-payu/ /app/getpaid-payu/
31
- COPY getpaid-paynow/ /app/getpaid-paynow/
32
- COPY getpaid-simulator/ /app/getpaid-simulator/
29
+ # Copy only the simulator repo (CI checks out a single repo, not the workspace)
30
+ COPY . /app/getpaid-simulator
31
+
32
+ # Strip local editable-source overrides so uv resolves from PyPI in CI.
33
+ # The [tool.uv.sources] section points to sibling repos that don't exist
34
+ # in a standalone checkout.
35
+ RUN sed -i '/^\[tool\.uv\.sources\]/,/^$/d' pyproject.toml
33
36
 
34
37
  ENV PLAYWRIGHT_BROWSERS_PATH="/app/getpaid-simulator/.cache/ms-playwright"
35
38
 
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright © 2022 Dominik Kozaczko
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -1,4 +1,4 @@
1
- .PHONY: test test-unit test-integration test-e2e test-build test-down
1
+ .PHONY: test test-unit test-integration test-e2e test-build test-down pip-audit
2
2
 
3
3
  UNIT_TESTS = \
4
4
  tests/test_cli.py \
@@ -48,3 +48,6 @@ test-build:
48
48
 
49
49
  test-down:
50
50
  docker compose -f compose.test.yml down -v
51
+
52
+ pip-audit:
53
+ uv run pip-audit --strict
@@ -1,12 +1,15 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-getpaid-simulator
3
- Version: 3.0.0a4
3
+ Version: 3.1.0
4
4
  Summary: Payment gateway simulator for testing the python-getpaid ecosystem.
5
5
  Project-URL: Homepage, https://github.com/django-getpaid/python-getpaid-simulator
6
6
  Project-URL: Repository, https://github.com/django-getpaid/python-getpaid-simulator
7
+ Project-URL: Documentation, https://python-getpaid-simulator.readthedocs.io
8
+ Project-URL: Changelog, https://github.com/django-getpaid/python-getpaid-simulator/releases
7
9
  Author-email: Dominik Kozaczko <dominik@kozaczko.info>
8
10
  License: MIT
9
- Classifier: Development Status :: 3 - Alpha
11
+ License-File: LICENSE
12
+ Classifier: Development Status :: 5 - Production/Stable
10
13
  Classifier: Intended Audience :: Developers
11
14
  Classifier: License :: OSI Approved :: MIT License
12
15
  Classifier: Programming Language :: Python :: 3.12
@@ -96,7 +99,7 @@ Example:
96
99
  ```toml
97
100
  [project.optional-dependencies]
98
101
  simulator = [
99
- "python-getpaid-simulator>=3.0.0a4",
102
+ "python-getpaid-simulator>=3.0.0",
100
103
  "litestar>=2.0",
101
104
  ]
102
105
  ```
@@ -73,7 +73,7 @@ Example:
73
73
  ```toml
74
74
  [project.optional-dependencies]
75
75
  simulator = [
76
- "python-getpaid-simulator>=3.0.0a4",
76
+ "python-getpaid-simulator>=3.0.0",
77
77
  "litestar>=2.0",
78
78
  ]
79
79
  ```
@@ -15,8 +15,8 @@ services:
15
15
 
16
16
  tests:
17
17
  build:
18
- context: ..
19
- dockerfile: getpaid-simulator/Dockerfile.test
18
+ context: .
19
+ dockerfile: Dockerfile.test
20
20
  depends_on:
21
21
  testdb:
22
22
  condition: service_healthy
@@ -0,0 +1,28 @@
1
+ # Changelog
2
+
3
+ ## v3.0.0 (2026-06-04)
4
+
5
+ Stable release of the payment gateway simulator host.
6
+
7
+ ### Breaking Changes
8
+
9
+ - Version bumped from `3.0.0a4` to `3.0.0` (stable).
10
+ - Development status changed from `Alpha` to `Production/Stable`.
11
+ - Provider dependency floors raised to `>=3.0.0` (from `>=3.0.0a4`).
12
+
13
+ ### Features
14
+
15
+ - Generic Litestar host with plugin-based provider discovery via entry points.
16
+ - Stable SPI (Simulator Provider Interface) with version validation.
17
+ - Dashboard UI for managing test payments across providers.
18
+ - Webhook transport with retry handling.
19
+ - In-memory storage with deep-copy isolation.
20
+ - Plugin failure modes: `warn` (default) and `strict`.
21
+ - CLI entry point with environment variable and argument configuration.
22
+ - Docker support for local development and testing.
23
+ - E2E test suite with Playwright.
24
+
25
+ ### Migration from alpha
26
+
27
+ - Update dependency from `python-getpaid-simulator>=3.0.0a4` to `python-getpaid-simulator>=3.0.0`.
28
+ - No API changes — all public interfaces remain stable.
@@ -0,0 +1,2 @@
1
+ :::{include} ../CODE_OF_CONDUCT.md
2
+ :::
@@ -0,0 +1,29 @@
1
+ """Sphinx configuration for getpaid-simulator."""
2
+
3
+ project = "getpaid-simulator"
4
+ author = "Dominik Kozaczko"
5
+ project_copyright = "2022-2026, Dominik Kozaczko"
6
+
7
+ extensions = [
8
+ "sphinx.ext.autodoc",
9
+ "sphinx.ext.autosummary",
10
+ "sphinx.ext.napoleon",
11
+ "sphinx.ext.intersphinx",
12
+ "myst_parser",
13
+ ]
14
+
15
+ autodoc_typehints = "description"
16
+ autodoc_member_order = "bysource"
17
+ autosummary_generate = True
18
+
19
+ html_theme = "furo"
20
+ html_title = "getpaid-simulator"
21
+
22
+ myst_enable_extensions = [
23
+ "colon_fence",
24
+ "fieldlist",
25
+ ]
26
+
27
+ intersphinx_mapping = {
28
+ "python": ("https://docs.python.org/3", None),
29
+ }
@@ -0,0 +1,13 @@
1
+ :::{include} ../README.md
2
+ :end-before: "## License"
3
+ :::
4
+
5
+ ```{toctree}
6
+ :hidden:
7
+ :maxdepth: 2
8
+
9
+ changelog
10
+ contributing
11
+ Code of Conduct <codeofconduct>
12
+ License <license>
13
+ ```
@@ -0,0 +1,7 @@
1
+ # License
2
+
3
+ ```{literalinclude} ../LICENSE
4
+ ---
5
+ language: none
6
+ ---
7
+ ```
@@ -0,0 +1,3 @@
1
+ furo>=2024.8.6
2
+ sphinx>=8.0
3
+ myst-parser>=4.0
@@ -9,7 +9,7 @@ authors = [
9
9
  ]
10
10
  requires-python = '>=3.12'
11
11
  classifiers = [
12
- 'Development Status :: 3 - Alpha',
12
+ 'Development Status :: 5 - Production/Stable',
13
13
  'Intended Audience :: Developers',
14
14
  'License :: OSI Approved :: MIT License',
15
15
  'Programming Language :: Python :: 3.12',
@@ -36,15 +36,13 @@ dev = [
36
36
  'litestar[testing]',
37
37
  'respx>=0.21.0',
38
38
  "playwright>=1.40.0",
39
- 'python-getpaid-core>=3.0.0a4',
40
- 'python-getpaid-payu>=3.0.0a4',
41
- 'python-getpaid-paynow>=3.0.0a4',
39
+ 'python-getpaid-core>=3.0.0',
40
+ 'python-getpaid-payu>=3.0.0',
41
+ 'python-getpaid-paynow>=3.0.0',
42
+ 'pip-audit>=2.7.0',
42
43
  ]
43
44
  e2e = [
44
45
  {include-group = "dev"},
45
- 'python-getpaid-core>=3.0.0a4',
46
- 'python-getpaid-payu',
47
- 'python-getpaid-paynow',
48
46
  ]
49
47
 
50
48
  [project.scripts]
@@ -53,6 +51,8 @@ getpaid-simulator = "getpaid_simulator.__main__:main"
53
51
  [project.urls]
54
52
  Homepage = 'https://github.com/django-getpaid/python-getpaid-simulator'
55
53
  Repository = 'https://github.com/django-getpaid/python-getpaid-simulator'
54
+ Documentation = 'https://python-getpaid-simulator.readthedocs.io'
55
+ Changelog = 'https://github.com/django-getpaid/python-getpaid-simulator/releases'
56
56
 
57
57
  [build-system]
58
58
  requires = ['hatchling']
@@ -1,3 +1,3 @@
1
1
  """Payment gateway simulator for testing the python-getpaid ecosystem."""
2
2
 
3
- __version__ = "3.0.0a4"
3
+ __version__ = "3.1.0"
@@ -10,25 +10,27 @@ import getpaid_simulator
10
10
 
11
11
  def test_version():
12
12
  """Test that version is accessible."""
13
- assert getpaid_simulator.__version__ == "3.0.0a4"
13
+ assert getpaid_simulator.__version__ == "3.0.0"
14
14
 
15
15
 
16
16
  def test_e2e_core_dependency_floor():
17
- """E2E dependency group requires the published core alpha."""
17
+ """E2E dependency group requires the published core."""
18
18
  pyproject_data = tomllib.loads(Path("pyproject.toml").read_text())
19
+ # e2e includes dev, which has the core dependency
20
+ dev_deps = pyproject_data["dependency-groups"]["dev"]
19
21
  assert (
20
- "python-getpaid-core>=3.0.0a4"
21
- in pyproject_data["dependency-groups"]["e2e"]
22
+ "python-getpaid-core>=3.0.0"
23
+ in dev_deps
22
24
  )
23
25
 
24
26
 
25
27
  def test_dev_provider_dependency_floors():
26
- """Simulator dev environment tracks published provider alpha floors."""
28
+ """Simulator dev environment tracks published provider floors."""
27
29
  pyproject_data = tomllib.loads(Path("pyproject.toml").read_text())
28
30
  dev_dependencies = pyproject_data["dependency-groups"]["dev"]
29
- assert "python-getpaid-core>=3.0.0a4" in dev_dependencies
30
- assert "python-getpaid-payu>=3.0.0a4" in dev_dependencies
31
- assert "python-getpaid-paynow>=3.0.0a4" in dev_dependencies
31
+ assert "python-getpaid-core>=3.0.0" in dev_dependencies
32
+ assert "python-getpaid-payu>=3.0.0" in dev_dependencies
33
+ assert "python-getpaid-paynow>=3.0.0" in dev_dependencies
32
34
 
33
35
 
34
36
  @pytest.mark.asyncio
@@ -1,77 +0,0 @@
1
- *.py[cod]
2
- __pycache__
3
-
4
- # C extensions
5
- *.so
6
-
7
- # Packages
8
- *.egg
9
- *.egg-info
10
- dist
11
- build
12
- eggs
13
- parts
14
- bin
15
- var
16
- sdist
17
- develop-eggs
18
- .installed.cfg
19
- lib
20
- lib64
21
-
22
- # Installer logs
23
- pip-log.txt
24
-
25
- # Unit test / coverage reports
26
- .coverage
27
- coverage.xml
28
- .tox
29
- nosetests.xml
30
- htmlcov
31
-
32
- # Translations
33
- *.mo
34
-
35
- # Mr Developer
36
- .mr.developer.cfg
37
- .project
38
- .pydevproject
39
-
40
- # Pycharm/Intellij
41
- .idea
42
-
43
- # Complexity
44
- output/*.html
45
- output/*/index.html
46
-
47
- # Sphinx
48
- docs/_build
49
-
50
- # Default Django Database
51
- db.sqlite3
52
-
53
- # pipenv
54
- /Pipfile
55
- /Pipfile.lock
56
-
57
- # pyenv
58
- .python-version
59
-
60
- # virtualenv
61
- venv
62
- .venv
63
- virtualenv
64
- .virtualenv
65
-
66
- # poetry
67
- /poetry.lock
68
-
69
- # Codacy
70
- /.codacy-coverage
71
- /codacy-coverage.json
72
-
73
- # Sublime text (editor)
74
- *.sublime-project
75
- *.sublime-workspace
76
- .sisyphus
77
- uv.lock