Skip to content

Commit 67f6af8

Browse files
authored
Return all attendee tickets in attendee-tickets API (#9)
We don't limit to only admission tickets anymore
1 parent f6c5e41 commit 67f6af8

File tree

15 files changed

+2366
-2523
lines changed

15 files changed

+2366
-2523
lines changed

.editorconfig

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# EditorConfig is awesome: https://EditorConfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
[*.py]
7+
indent_style = space
8+
indent_size = 4
9+
end_of_line = lf
10+
charset = utf-8
11+
trim_trailing_whitespace = true
12+
insert_final_newline = true

.github/workflows/autofix-linting.yml

Lines changed: 0 additions & 59 deletions
This file was deleted.

.github/workflows/deploy.yml

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ jobs:
3030
uses: actions/setup-python@v2
3131
with:
3232
python-version: 3.9
33-
- name: Install poetry
34-
run: pip install poetry
33+
- name: Install pdm
34+
run: pip install pdm
3535
- name: Metadata
3636
id: metadata
3737
run: echo "::set-output name=commit::$(git rev-parse HEAD)"
@@ -58,33 +58,38 @@ jobs:
5858
5959
Releasing commit [${{ steps.metadata.outputs.commit }}] to PyPi as pre-release! :package:
6060
edit-mode: replace
61+
- name: Install pdm-manage-version
62+
run: pdm plugin add pdm-manage-version
6163
- name: Update version
6264
if: ${{ github.ref == 'refs/heads/main' }}
63-
run: poetry version patch
65+
run: pdm version patch
6466
- name: Update to pre-release version
6567
if: ${{ github.ref != 'refs/heads/main' }}
6668
run: |
67-
poetry version patch
68-
poetry version $(poetry version -s)-dev.$(date '+%s')
69+
pdm version patch
70+
current_version=$(pdm version)
71+
pdm version $current_version-dev.$(date '+%s')
6972
- name: Build & Publish
7073
id: release
7174
env:
72-
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }}
75+
PDM_PUBLISH_PASSWORD: ${{ secrets.PYPI_TOKEN }}
7376
run: |
74-
poetry publish --username __token__ --build
75-
echo "::set-output name=version::$(poetry version -s)"
77+
pdm publish --username __token__
78+
current_version=$(pdm version)
79+
echo "::set-output name=version::$current_version"
7680
- name: Commit version
7781
if: ${{ github.ref == 'refs/heads/main' }}
7882
env:
7983
GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }}
8084
run: |
85+
current_version=$(pdm version)
8186
git remote set-url origin https://${{ secrets.BOT_TOKEN }}@github.com/${{ github.repository }}
8287
8388
git config user.name "Python Italia [bot]"
8489
git config user.email "[email protected]"
8590
8691
git add pyproject.toml
87-
git commit -m "🔨 Publish plugin v$(poetry version -s) [skip ci]"
92+
git commit -m "🔨 Publish plugin v$current_version [skip ci]"
8893
git push
8994
- name: Create or update comment
9095
uses: peter-evans/create-or-update-comment@v1

.github/workflows/style.yml

Lines changed: 0 additions & 102 deletions
This file was deleted.

.github/workflows/tests.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,17 @@ jobs:
2020
uses: actions/setup-python@v1
2121
with:
2222
python-version: 3.9
23-
- name: Install poetry
24-
run: pip install poetry
25-
- name: Set Poetry config
26-
run: |
27-
poetry config virtualenvs.path ~/.virtualenvs
23+
- name: Install pdm
24+
run: pip install pdm
2825
- uses: actions/cache@v1
2926
with:
3027
path: ~/.virtualenvs
31-
key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }}
28+
key: ${{ runner.os }}-pdm-${{ hashFiles('**/pdm.lock') }}
3229
restore-keys: |
33-
${{ runner.os }}-poetry-
30+
${{ runner.os }}-pdm-
3431
- name: Install system dependencies
3532
run: sudo apt update && sudo apt install gettext
3633
- name: Install Dependencies
37-
run: poetry install
34+
run: pdm install
3835
- name: Run checks
39-
run: poetry run pytest tests
36+
run: pdm run pytest tests

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,5 @@ target/
6161

6262
#Ipython Notebook
6363
.ipynb_checkpoints
64+
65+
.pdm-python

.pre-commit-config.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
repos:
2+
- repo: https://github.com/charliermarsh/ruff-pre-commit
3+
rev: 'v0.0.261'
4+
hooks:
5+
- id: ruff
6+
args: [--fix, --exit-non-zero-on-fix]
7+
- repo: https://github.com/psf/black
8+
rev: 23.3.0
9+
hooks:
10+
- id: black
11+
language_version: python3.9

0 commit comments

Comments
 (0)