Skip to content

Commit

Permalink
Merge pull request #215 from voxpupuli/python_3.10
Browse files Browse the repository at this point in the history
Test and build with Python 3.10 as main version
  • Loading branch information
gdubicki committed Nov 22, 2021
2 parents 4cbac43 + d1f0dc8 commit 3a247ae
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ jobs:

steps:
- uses: actions/checkout@v2
- name: Set up Python 3.9
- name: Set up Python 3.10
uses: actions/setup-python@v2
with:
python-version: 3.9
python-version: '3.10'
- name: Install dependencies
run: |
pip install wheel
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ jobs:

steps:
- uses: actions/checkout@v2
- name: Set up Python 3.9
- name: Set up Python 3.10
uses: actions/setup-python@v2
with:
python-version: 3.9
python-version: '3.10'
- name: Install dependencies
run: |
pip install bandit
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
strategy:
max-parallel: 5
matrix:
python-version: [3.6, 3.7, 3.8, 3.9, 3.10-dev]
python-version: [3.6, 3.7, 3.8, 3.9, '3.10']

steps:
- uses: actions/checkout@v2
Expand Down
3 changes: 2 additions & 1 deletion pypuppetdb/api/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,8 @@ def _query(self, endpoint=None, path=None, query=None,
:rtype: :obj:`dict` or :obj:`list`
"""

# inside the list comprehension the locals() value change so we need a function's local() copy
# inside the list comprehension the locals()'s value changes
# so we need to make a copy of the function's local() to use it there
function_locals = locals().copy()
log.debug("_query called with: " +
# comma-separated list of method arguments with their values
Expand Down

0 comments on commit 3a247ae

Please sign in to comment.