Skip to content

Commit

Permalink
merge commit
Browse files Browse the repository at this point in the history
  • Loading branch information
alejandroroiz committed Aug 22, 2024
2 parents 7bf89ef + 36eb7df commit e70b57a
Show file tree
Hide file tree
Showing 9 changed files with 22 additions and 19 deletions.
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: ['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 @@ -936,7 +936,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
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
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

0 comments on commit e70b57a

Please sign in to comment.