Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
67 commits
Select commit Hold shift + click to select a range
84a532b
Update README.rst
jdelarubia Mar 5, 2021
b4ff0b3
Update request.py
jdelarubia Mar 5, 2021
bb3777a
Add files to ignore
jdelarubia Mar 6, 2021
3cdf49a
migrate to poetry + add pre-commit + isort + black
systemallica Dec 26, 2020
bb6f965
cleanup
systemallica Dec 26, 2020
39e3628
update README
systemallica Dec 26, 2020
cb8d4f0
update license
systemallica Dec 26, 2020
22c6f14
update README
systemallica Dec 26, 2020
d611b23
add tests + cleanup
systemallica Dec 28, 2020
08b77b7
replace pycrypto(abandoned) by pycryptodome
systemallica Dec 28, 2020
b64740a
cleanup
systemallica Dec 28, 2020
b256225
version info
systemallica Dec 28, 2020
679361c
refacto constants
systemallica Dec 28, 2020
498fbdc
update README
systemallica Dec 28, 2020
3a38a36
0.4.0
systemallica Dec 28, 2020
e51a111
refacto Request + tests
systemallica Dec 30, 2020
6ae38b1
cleanup + typing
systemallica Dec 30, 2020
f2aabd8
update README
systemallica Dec 30, 2020
ba592fc
refacto Response + tests
systemallica Dec 30, 2020
ae7282e
cleanup
systemallica Dec 30, 2020
93079d1
1.0.0
systemallica Dec 30, 2020
adfe9ad
typo
systemallica Dec 30, 2020
58d48f7
1.0.1
systemallica Dec 30, 2020
86cda69
fix: typing + secret_key is mandatory now
systemallica Dec 30, 2020
50765c5
IDE settings
systemallica Dec 30, 2020
ee5f9c6
create github action + update settings + python 3.7
systemallica Dec 30, 2020
c4983fa
update LICENSE
systemallica Jan 7, 2021
f7220a9
Update request.py
jdelarubia Mar 6, 2021
249fb8a
Match dict traversal style between class init and setattr method
jdelarubia Mar 7, 2021
620a649
[test] Test static methods throw exception when strings are too long
jdelarubia Mar 7, 2021
4edda16
typo
systemallica Mar 24, 2021
325ad7c
1.0.2
systemallica Mar 24, 2021
5de8a44
build: update deps + add python-semantic-release
systemallica Sep 20, 2021
8247be2
build: add Makefile
systemallica Sep 20, 2021
bd67414
build: modify makefile
systemallica Sep 20, 2021
621e058
Add Ds_Amount_Euro parameter to response
polrodoreda2 Sep 21, 2021
54c8535
1.0.3
Sep 21, 2021
9339059
update changelog
systemallica Sep 21, 2021
12ce78f
chore: update dependencies
systemallica Oct 19, 2021
4ad9e32
chore: add pyupgrade
systemallica Oct 19, 2021
0f25ffa
chore: refactor clean_amount in response
systemallica Oct 19, 2021
5ffe624
chore: update pipeline
systemallica Oct 19, 2021
81accb0
oops
systemallica Oct 19, 2021
9c3a02a
Expose 'parameters' attr in Response
limonrojo-nm Oct 6, 2021
5dd4157
1.1.0
systemallica Oct 19, 2021
defd832
fix #7
limonrojo-nm Jan 4, 2022
cfcfee6
change Response: include non-listed merchant parameters, mantaining o…
limonrojo-nm Jan 5, 2022
158280c
chore: update deps
systemallica Jan 5, 2022
2656c3b
1.1.1
Jan 5, 2022
2f1768d
chore: changelog
systemallica Jan 5, 2022
63ef58a
Payment option with BIZUM #11
ronaldsaenz88 Feb 16, 2023
1f1816a
allow order ids with 12 chars
erral Nov 3, 2022
2e2e311
use 12 char order in tests
erral Nov 3, 2022
0cea494
adapt the tests to the 12 char length of the order number
erral Nov 3, 2022
a965a23
chore: update pre-commit
systemallica Oct 27, 2023
66ae02d
chore: update deps
systemallica Oct 27, 2023
2c788ee
chore: update project configuration
systemallica Oct 27, 2023
b6ad931
chore: run pre-commit on all files
systemallica Oct 27, 2023
6c9f723
chore: update Makefile
systemallica Oct 27, 2023
711ba73
chore: update python-semantic-release
systemallica Oct 27, 2023
e4b11aa
1.2.0
Oct 27, 2023
d36de8d
Update python-app.yml
systemallica Oct 27, 2023
45dde75
chore: migrate project to uv
systemallica Jun 24, 2026
be12501
chore: update dependencies
systemallica Jun 24, 2026
e10ad5d
ci: add manual release workflow
systemallica Jun 24, 2026
ab46851
chore: update pre-commit
systemallica Jun 25, 2026
a7ca029
chore: remove Makefile
systemallica Jun 25, 2026
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
32 changes: 32 additions & 0 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# This workflow will install Python dependencies, run tests and lint with a single version of Python
name: python-redsys

on:
push:
branches: [ master ]
pull_request: {}

jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]

steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v6
with:
enable-cache: true
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: uv sync --locked --python ${{ matrix.python-version }}
- name: Lint and format with ruff
run: uv run ruff check . && uv run ruff format . --check
- name: Test with pytest
run: uv run pytest
60 changes: 60 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: release

on:
workflow_dispatch:
inputs:
bump:
description: Version bump
required: true
default: patch
type: choice
options:
- patch
- minor
- major

jobs:
release:
runs-on: ubuntu-latest
environment: pypi
permissions:
contents: write
id-token: write

steps:
- uses: actions/checkout@v4
with:
ref: master
fetch-depth: 0

- name: Install uv
uses: astral-sh/setup-uv@v6
with:
enable-cache: true

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.14"

- name: Install dependencies
run: uv sync --locked --python 3.14

- name: Lint and format with ruff
run: uv run ruff check . && uv run ruff format . --check

- name: Test with pytest
run: uv run pytest

- name: Create release
run: uv run semantic-release version --${{ inputs.bump }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Upload assets to GitHub release
run: uv run semantic-release publish
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
233 changes: 212 additions & 21 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
### Python template
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
Expand All @@ -8,7 +9,6 @@ __pycache__/

# Distribution / packaging
.Python
env/
build/
develop-eggs/
dist/
Expand All @@ -20,6 +20,7 @@ lib64/
parts/
sdist/
var/
wheels/
*.egg-info/
.installed.cfg
*.egg
Expand All @@ -39,51 +40,241 @@ htmlcov/
.tox/
.coverage
.coverage.*
.coveragerc
.cache
nosetests.xml
coverage.xml
*,cover
*.cover
.hypothesis/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy
staticfiles/

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# IPython Notebook
.ipynb_checkpoints

# pyenv
.python-version

# celery beat schedule file
celerybeat-schedule

# dotenv
# Environments
.envrc
.env

# virtualenv
.venv
env/
venv/
ENV/

# Spyder project settings
.spyderproject

# Rope project settings
.ropeproject
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/


### Node template
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# Typescript v1 declaration files
typings/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity


### Linux template
*~

# temporary files which can be created if a process still has a handle open of a deleted file
.fuse_hidden*

# KDE directory preferences
.directory

# Linux trash folder which might appear on any partition or disk
.Trash-*

# .nfs files are created when an open file is removed but is still being accessed
.nfs*


### VisualStudioCode template
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json





### Windows template
# Windows thumbnail cache files
Thumbs.db
ehthumbs.db
ehthumbs_vista.db

# Dump file
*.stackdump

# Folder config file
Desktop.ini

# Recycle Bin used on file shares
$RECYCLE.BIN/

# Windows Installer files
*.cab
*.msi
*.msm
*.msp

# Windows shortcuts
*.lnk


### macOS template
# General
*.DS_Store
.AppleDouble
.LSOverride

# Icon must end with two \r
Icon

# Thumbnails
._*

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk


### SublimeText template
# Cache files for Sublime Text
*.tmlanguage.cache
*.tmPreferences.cache
*.stTheme.cache

# Workspace files are user-specific
*.sublime-workspace

# Project files should be checked into the repository, unless a significant
# proportion of contributors will probably not be using Sublime Text
# *.sublime-project

# SFTP configuration file
sftp-config.json

# Package control specific files
Package Control.last-run
Package Control.ca-list
Package Control.ca-bundle
Package Control.system-ca-bundle
Package Control.cache/
Package Control.ca-certs/
Package Control.merged-ca-bundle
Package Control.user-ca-bundle
oscrypto-ca-bundle.crt
bh_unicode_properties.cache

# Sublime-github package stores a github token in this file
# https://packagecontrol.io/packages/sublime-github
GitHub.sublime-settings


### Vim template
# Swap
[._]*.s[a-v][a-z]
[._]*.sw[a-p]
[._]s[a-v][a-z]
[._]sw[a-p]

# Session
Session.vim

# Temporary
.netrwhist

# VSCode
.vscode

# Auto-generated tag files
tags

### Project template
.envs
dmenu/media/
.pytest_cache/
.idea/
.ipynb_checkpoints/
7 changes: 7 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.19
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
- id: ruff-format
Loading
Loading