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

upgrade to py310 #60

Merged
merged 6 commits into from
Aug 22, 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: 5 additions & 5 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
on: pull_request
jobs:
pre-commit:
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Setup python 3.6
- name: Setup python 3.10
uses: actions/setup-python@v1
with:
python-version: 3.6
python-version: 3.10.14
- name: Install pre-commit
run: pip install pre-commit
- name: Run pre-commit
Expand Down Expand Up @@ -36,10 +36,10 @@ jobs:
# - name: Run license finder
# run: license_finder
test:
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: ['2.7.x', '3.6.x', '3.7.x', '3.8.x']
python-version: ['3.10.x']
steps:
- name: Checkout
uses: actions/checkout@v1
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ on:
jobs:
build-and-publish-python-module:
name: Build and publish python module to pypi
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Setup python 3.6
- name: Setup python 3.10
uses: actions/setup-python@v1
with:
python-version: 3.6
python-version: 3.10.14
- name: Add wheel dependency
run: pip install wheel
- name: Generate dist
Expand Down
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ repos:
hooks:
- id: flake8
additional_dependencies:
- flake8==3.3.0
- flake8-tidy-imports==1.0.6
- flake8
- flake8-tidy-imports
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 2.5.3

* upgrade to python3.10

## 2.2.0

* remove upper bound for dependency of cryptography
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ test: test_unit

test_unit:
mkdir -p build
nosetests tests/unit
pytest tests/unit
2 changes: 1 addition & 1 deletion confidant_client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -932,7 +932,7 @@ def get_certificate_from_csr(self, ca, csr, validity=120):
try:
response = self._execute_request(
'post',
'{0}/v1/certificates/{1}'.format(
'{0}/v1/certificates/{1}'.format( # noqa: F522
self.config['url'],
ca,
data={
Expand Down
7 changes: 3 additions & 4 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,9 @@ flake8==2.3.0
# Upstream url: https://pypi.python.org/pypi/coverage
coverage==3.7.1

# nose makes testing easier
# License: GNU Library or Lesser General Public License (LGPL)
# Upstream url: http://readthedocs.org/docs/nose
nose==1.3.3
# License: MIT
# Upstream url: https://pypi.org/project/pytest/
pytest

# Mocking and Patching Library for Testing
# License: BSD
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

setup(
name="confidant-client",
version="2.5.2",
version="2.5.3",
packages=find_packages(exclude=["test*"]),
install_requires=[
# Boto3 is the Amazon Web Services (AWS) Software Development Kit (SDK)
Expand Down Expand Up @@ -97,13 +97,13 @@
],
},
classifiers=[
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.10',
],
)
4 changes: 2 additions & 2 deletions tests/unit/confidant_client/client_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,13 @@ def test_validate_config(self):
# invalid token version
token_version=3
)
assert(confidant_client.ConfidantClient(
assert (confidant_client.ConfidantClient(
'http://localhost/',
'alias/authnz-testing',
{'from': 'test', 'to': 'test'},
token_version=1
))
assert(confidant_client.ConfidantClient(
assert (confidant_client.ConfidantClient(
'http://localhost/',
'alias/authnz-testing',
{'from': 'test', 'to': 'test', 'user_type': 'service'}
Expand Down
Loading