Skip to content

Commit ad4e667

Browse files
committed
Merge branch 'main' into upgrade-latest-eventsourcingdb-version
2 parents 80c4a9f + 9334215 commit ad4e667

File tree

166 files changed

+85
-244
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

166 files changed

+85
-244
lines changed

.github/workflows/qa.yml

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,33 +2,19 @@ name: QA
22

33
on: pull_request
44

5-
permissions:
6-
contents: read
7-
packages: read
8-
95
jobs:
106
qa:
117
name: QA
12-
runs-on: ${{ matrix.os }}
8+
runs-on: ubuntu-latest
139
timeout-minutes: 15
14-
strategy:
15-
matrix:
16-
os: [ubuntu-latest]
17-
python-version: ["3.10"]
1810

1911
steps:
2012
- name: Clone repository
2113
uses: actions/checkout@v3
22-
- name: Login to GitHub container registry
23-
uses: docker/login-action@v2
24-
with:
25-
registry: ghcr.io
26-
username: ${{ github.actor }}
27-
password: ${{ secrets.GITHUB_TOKEN }}
28-
- name: Use Python ${{ matrix.python-version }}
14+
- name: Use Python
2915
uses: actions/setup-python@v4
3016
with:
31-
python-version: ${{ matrix.python-version }}
17+
python-version: '3.13'
3218
- name: Install dependencies
3319
run: |
3420
pip install poetry

.github/workflows/release.yml

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,17 @@ jobs:
2121
with:
2222
fetch-depth: '0'
2323
token: ${{ secrets.TOKEN_GITHUB_TO_GITHUB_REPOSITORIES_RW }}
24-
- name: Login to GitHub container registry
25-
uses: docker/login-action@v2
26-
with:
27-
registry: ghcr.io
28-
username: ${{ github.actor }}
29-
password: ${{ secrets.GITHUB_TOKEN }}
3024
- name: Use Python
3125
uses: actions/setup-python@v4
3226
with:
33-
python-version: "3.10"
27+
python-version: '3.13'
3428
- name: Install dependencies
3529
run: |
30+
# First install Poetry in latest version, then install
31+
# build and twine in matching versions. The following
32+
# commands should not be run in a single line.
3633
pip install poetry
34+
pip install build twine
3735
poetry install
3836
- name: Run QA
3937
run: make qa
@@ -51,3 +49,14 @@ jobs:
5149
git push
5250
git tag ${{ steps.get_next_version.outputs.version }}
5351
git push origin ${{ steps.get_next_version.outputs.version }}
52+
- name: Build package
53+
if: ${{ steps.get_next_version.outputs.hasNextVersion == 'true' }}
54+
run: |
55+
python -m build
56+
- name: Publish package
57+
if: ${{ steps.get_next_version.outputs.hasNextVersion == 'true' }}
58+
env:
59+
TWINE_USERNAME: __token__
60+
TWINE_PASSWORD: ${{ secrets.TOKEN_GITHUB_TO_PYPI_RW }}
61+
run: |
62+
twine upload dist/*

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
1+
# Python folders
2+
__pycache__/
3+
14
# OS generated files and folders
25
.DS_Store

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
qa: analyze test
22

33
analyze:
4-
@poetry run pylint eventsourcingdb_client_python tests
4+
@poetry run pylint eventsourcingdb tests
55

66
fix:
77
@poetry run autopep8 --in-place --aggressive --max-line-length=100 --recursive eventsourcingdb_client_python tests

README.md

Lines changed: 2 additions & 2 deletions
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)