Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop python 3.8 support #64

Merged
merged 4 commits into from
Aug 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
10 changes: 9 additions & 1 deletion .github/workflows/functional_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,21 @@ on:

jobs:
functional_tests:
name: Functional tests for Python ${{ matrix.python-version }}
runs-on: "ubuntu-latest"
environment: test

strategy:
fail-fast: false
max-parallel: 1
matrix:
python-version: [ "3.9", "3.10", "3.11", "3.12", "pypy3.9", "pypy3.10" ]

steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
python-version: ${{ matrix.python-version }}
- name: "Install dependencies"
run: |
python -m pip install --upgrade pip
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:

strategy:
matrix:
python-version: [ "3.8", "3.9", "3.10", "3.11", "3.12", "pypy3.10" ]
python-version: [ "3.9", "3.10", "3.11", "3.12", "pypy3.9", "pypy3.10" ]

steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ This Python package is automatically generated by the [Swagger Codegen](https://

The following Python versions are supported:

- Python >= 3.8
- Python >= 3.9

## Installation & Usage
### pip install
Expand Down
4 changes: 2 additions & 2 deletions fingerprint_pro_server_api_sdk/rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ def __init__(self, resp: urllib3.HTTPResponse):

def getheaders(self):
"""Returns a dictionary of the response headers."""
return self.urllib3_response.getheaders()
return self.urllib3_response.headers

def getheader(self, name, default=None):
"""Returns a given response header."""
return self.urllib3_response.getheader(name, default)
return self.urllib3_response.headers.get(name, default)


class RESTClientObject:
Expand Down
8 changes: 4 additions & 4 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
certifi >= 14.05.14
python_dateutil >= 2.5.3
setuptools >= 21.0.0
urllib3<1.27,>=1.21.1
certifi >= 2023.7.22
python-dateutil >= 2.5.3
setuptools >= 65.5.1
urllib3>=1.23
python-dotenv
cryptography
14 changes: 9 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,10 @@
# http://pypi.python.org/pypi/setuptools

REQUIRES = [
"certifi>=2017.4.17",
"python-dateutil>=2.1",
"urllib3>=1.23"
"certifi>=2023.7.22",
"python-dateutil>=2.5.3",
"urllib3>=1.23",
"cryptography"
]


Expand All @@ -44,7 +45,11 @@
license_files=["LICENSE"],
author="Fingerprint",
author_email="[email protected]",
url="https://github.com/fingerprintjs/fingerprint-pro-server-api-python-sdk",
project_urls={
"Changelog": "https://github.com/fingerprintjs/fingerprint-pro-server-api-python-sdk/blob/main/CHANGELOG.md",
"Code": "https://github.com/fingerprintjs/fingerprint-pro-server-api-python-sdk",
"Issue Tracker": "https://github.com/fingerprintjs/fingerprint-pro-server-api-python-sdk/issues",
},
keywords=["Swagger", "Fingerprint Pro Server API", "browser", "detection", "fingerprint", "identification",
"fingerprinting", "browser-fingerprinting", "browser-fingerprint", "fraud-detection", "fraud",
"audio-fingerprinting", "fingerprintjs", "fingerprintjs-pro", "visitor-identifier"],
Expand All @@ -56,7 +61,6 @@
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.12',
Expand Down
2 changes: 1 addition & 1 deletion template/README.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ For more information, please visit [{{{infoUrl}}}]({{{infoUrl}}})

The following Python versions are supported:

- Python >= 3.8
- Python >= 3.9

## Installation & Usage
### pip install
Expand Down
4 changes: 2 additions & 2 deletions template/rest.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ class RESTResponse(io.IOBase):

def getheaders(self):
"""Returns a dictionary of the response headers."""
return self.urllib3_response.getheaders()
return self.urllib3_response.headers

def getheader(self, name, default=None):
"""Returns a given response header."""
return self.urllib3_response.getheader(name, default)
return self.urllib3_response.headers.get(name, default)


class RESTClientObject:
Expand Down
8 changes: 4 additions & 4 deletions template/setup.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@ NAME = "{{{projectName}}}"
# http://pypi.python.org/pypi/setuptools

REQUIRES = [
"certifi>=2017.4.17",
"python-dateutil>=2.1",
"urllib3>=1.23"
"certifi>=2023.7.22",
"python-dateutil>=2.5.3",
"urllib3>=1.23",
"cryptography"
]

{{#asyncio}}
Expand Down Expand Up @@ -57,7 +58,6 @@ setup(
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.12',
Expand Down
Loading