Skip to content

Commit 52b9bbd

Browse files
committed
Swagger Generator replaced by OpenAPI Generator.
1 parent 69f94da commit 52b9bbd

348 files changed

Lines changed: 31818 additions & 24955 deletions

File tree

Some content is hidden

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

.github/workflows/generate.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# TODO: java -jar openapi-generator-cli.jar \
2+
# generate \
3+
# -i "./Billingo-Billingo-3.0.14-resolved.json" \
4+
# -g python \
5+
# -o "billingo-python" \
6+
# --git-user-id client-api \
7+
# --git-repo-id billingo-python \
8+
# --additional-properties=packageName=clientapi_billingo,packageVersion=1.0.1

.github/workflows/main.yaml

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
strategy:
1414
matrix:
15-
python-version: ["pypy3.9", "pypy3.10", "3.9", "3.10", "3.11", "3.12"]
15+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
1616

1717
steps:
1818
- uses: actions/checkout@v4
@@ -22,23 +22,12 @@ jobs:
2222
with:
2323
python-version: ${{ matrix.python-version }}
2424

25-
- name: Display Python version
26-
run: python -c "import sys; print(sys.version)"
27-
2825
- name: Install dependencies
2926
run: |
3027
python -m pip install --upgrade pip
31-
pip install flake8 pytest
32-
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
33-
if [ -f test-requirements.txt ]; then pip install -r test-requirements.txt; fi
34-
35-
- name: Lint with flake8
36-
run: |
37-
# stop the build if there are Python syntax errors or undefined names
38-
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
39-
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
40-
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
28+
pip install -r requirements.txt
29+
pip install -r test-requirements.txt
4130
4231
- name: Test with pytest
4332
run: |
44-
pytest
33+
pytest --cov={{packageName}}

.github/workflows/publish.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
name: Publish
1+
name: Build
22

33
on:
44
release:
55
types: [published]
66

77
jobs:
88
deploy:
9+
910
runs-on: ubuntu-latest
1011
steps:
1112
- uses: actions/checkout@v4
@@ -18,10 +19,13 @@ jobs:
1819
- name: Install dependencies
1920
run: |
2021
python -m pip install --upgrade pip
22+
pip install -r requirements.txt
23+
pip install -r test-requirements.txt
2124
pip install build
2225
2326
- name: Build package
24-
run: python -m build
27+
run: |
28+
python -m build
2529
2630
- name: Publish package
2731
uses: pypa/gh-action-pypi-publish@release/v1

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ coverage.xml
4545
*,cover
4646
.hypothesis/
4747
venv/
48+
.venv/
4849
.python-version
50+
.pytest_cache
4951

5052
# Translations
5153
*.mo

.gitlab-ci.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# NOTE: This file is auto generated by OpenAPI Generator.
2+
# URL: https://openapi-generator.tech
3+
#
4+
# ref: https://docs.gitlab.com/ee/ci/README.html
5+
# ref: https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Python.gitlab-ci.yml
6+
7+
stages:
8+
- test
9+
10+
.pytest:
11+
stage: test
12+
script:
13+
- pip install -r requirements.txt
14+
- pip install -r test-requirements.txt
15+
- pytest --cov=clientapi_billingo
16+
17+
pytest-3.8:
18+
extends: .pytest
19+
image: python:3.8-alpine
20+
pytest-3.9:
21+
extends: .pytest
22+
image: python:3.9-alpine
23+
pytest-3.10:
24+
extends: .pytest
25+
image: python:3.10-alpine
26+
pytest-3.11:
27+
extends: .pytest
28+
image: python:3.11-alpine
29+
pytest-3.12:
30+
extends: .pytest
31+
image: python:3.12-alpine
Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
# Swagger Codegen Ignore
2-
# Generated by swagger-codegen https://github.com/swagger-api/swagger-codegen
1+
# OpenAPI Generator Ignore
2+
# Generated by openapi-generator https://github.com/openapitools/openapi-generator
33

44
# Use this file to prevent files from being overwritten by the generator.
55
# The patterns follow closely to .gitignore or .dockerignore.
66

77
# As an example, the C# client generator defines ApiClient.cs.
8-
# You can make changes and tell Swagger Codgen to ignore just this file by uncommenting the following line:
8+
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
99
#ApiClient.cs
1010

1111
# You can match any string of characters against a directory, file or extension with a single asterisk (*):
@@ -21,3 +21,11 @@
2121
#docs/*.md
2222
# Then explicitly reverse the ignore rule for a single file:
2323
#!docs/README.md
24+
25+
.github/workflows/main.yaml
26+
.github/workflows/publish.yaml
27+
.github/workflows/generate.yaml
28+
.github/dependabot.yml
29+
clientapi_billingo/billingo.py
30+
example/**
31+
README.md

0 commit comments

Comments
 (0)