Skip to content

Commit

Permalink
chore: add Python 3.12 build (#146)
Browse files Browse the repository at this point in the history
  • Loading branch information
gruebel authored Aug 3, 2023
1 parent 469f7b2 commit 9c68ed2
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 15 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,13 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python: ['3.7', '3.8', '3.9', '3.10', '3.11']
python: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
steps:
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3
- uses: actions/setup-python@bd6b4b6205c4dbad673328db7b31b7fab9e241c0 # v3
with:
python-version: ${{ matrix.python }}
allow-prereleases: true
- name: Install dependencies
run: |
pip install --upgrade pip
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,13 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python: ['3.7', '3.8', '3.9', '3.10', '3.11']
python: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
steps:
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3
- uses: actions/setup-python@bd6b4b6205c4dbad673328db7b31b7fab9e241c0 # v3
with:
python-version: ${{ matrix.python }}
allow-prereleases: true
- name: Install dependencies
run: |
pip install --upgrade pip
Expand Down
5 changes: 3 additions & 2 deletions detect_secrets/plugins/ibm_cos_hmac.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import datetime
import hashlib
import hmac
from datetime import datetime
from datetime import timezone
from typing import List

import requests
Expand Down Expand Up @@ -109,7 +110,7 @@ def query_ibm_cos_hmac(
request_parameters = ''

# assemble the standardized request
time = datetime.datetime.utcnow()
time = datetime.now(timezone.utc)
timestamp = time.strftime('%Y%m%dT%H%M%SZ')
datestamp = time.strftime('%Y%m%d')

Expand Down
18 changes: 9 additions & 9 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
coverage==7.2.5
coverage==7.2.7
flake8==5.0.4 # 6.0.0+ needs Python 3.8
gibberish-detector==0.1.1
monotonic==1.6
mypy==1.2.0
mypy==1.4.1
pre-commit==2.21.0
pyahocorasick==2.0.0
pytest==7.3.1
pyyaml==6.0
requests==2.28.2
responses==0.23.1
pytest==7.4.0
pyyaml==6.0.1
requests==2.31.0
responses==0.23.3
tox==3.28.0 # can't be updated to 4+ due to [email protected] needing importlib-metadata<4.3 and tox needs importlib-metadata>=5.1
types-pyyaml==6.0.12.9
types-requests==2.28.11.15
typing-extensions==4.5.0
types-pyyaml==6.0.12.11
types-requests==2.31.0.2
typing-extensions==4.7.1
unidiff==0.7.5
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ def get_version():
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'License :: OSI Approved :: Apache Software License',
'Intended Audience :: Developers',
'Topic :: Software Development',
Expand Down
2 changes: 1 addition & 1 deletion tests/core/scan_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def test_multi_line_results_accuracy():
if secret.line_number not in lines_with_findings:
lines_with_findings.add(secret.line_number)
else:
assert secret.line_number not in lines_with_findings,\
assert secret.line_number not in lines_with_findings, \
'Found multiple secrets on the same line number'


Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[tox]
project = detect_secrets
# These should match the ci python env list
envlist = py{37,38,39,310,311},mypy
envlist = py{37,38,39,310,311,312},mypy
skip_missing_interpreters = true

[testenv]
Expand Down

0 comments on commit 9c68ed2

Please sign in to comment.