Skip to content

Commit

Permalink
prepare v2.0.0 (#229)
Browse files Browse the repository at this point in the history
  • Loading branch information
p-fruck authored Apr 22, 2024
1 parent 13e9815 commit ff0358f
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 10 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]

steps:
- uses: actions/checkout@v3
Expand All @@ -24,9 +24,15 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
if [ -f test-requirements.txt ]; then pip install -r test-requirements.txt; fi
- name: Run unittests
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
python3 -m unittest
pytest
2 changes: 1 addition & 1 deletion custom/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"packageName": "pfruck_contabo",
"projectName": "pfruck_contabo",
"packageUrl": "https://github.com/p-fruck/python-contabo",
"packageVersion": "1.12.0"
"packageVersion": "2.0.0"
}
2 changes: 1 addition & 1 deletion pfruck_contabo/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
""" # noqa: E501


__version__ = "1.12.0"
__version__ = "2.0.0"

# import apis into sdk package
from pfruck_contabo.api.images_api import ImagesApi
Expand Down
2 changes: 1 addition & 1 deletion pfruck_contabo/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def __init__(
self.default_headers[header_name] = header_value
self.cookie = cookie
# Set default User-Agent.
self.user_agent = 'OpenAPI-Generator/1.12.0/python'
self.user_agent = 'OpenAPI-Generator/2.0.0/python'
self.client_side_validation = configuration.client_side_validation

def __enter__(self):
Expand Down
2 changes: 1 addition & 1 deletion pfruck_contabo/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ def to_debug_report(self):
"OS: {env}\n"\
"Python Version: {pyversion}\n"\
"Version of the API: 1.0.0\n"\
"SDK Package Version: 1.12.0".\
"SDK Package Version: 2.0.0".\
format(env=sys.platform, pyversion=sys.version)

def get_host_settings(self):
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "pfruck_contabo"
version = "1.12.0"
version = "2.0.0"
description = "Contabo API"
authors = ["OpenAPI Generator Community <[email protected]>"]
license = "NoLicense"
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools
NAME = "pfruck_contabo"
VERSION = "1.12.0"
VERSION = "2.0.0"
PYTHON_REQUIRES = ">=3.7"
REQUIRES = [
"urllib3 >= 1.25.3, < 2.1.0",
Expand Down

0 comments on commit ff0358f

Please sign in to comment.