File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,10 +13,10 @@ jobs:
1313 - uses : actions/checkout@v5
1414 with :
1515 fetch-depth : 0
16- - name : Set up Python 3.9
16+ - name : Set up Python 3.10
1717 uses : actions/setup-python@v6
1818 with :
19- python-version : 3.9
19+ python-version : 3.10
2020
2121 - name : Install dependencies
2222 run : pip install tox wheel
Original file line number Diff line number Diff line change @@ -13,10 +13,10 @@ jobs:
1313 - uses : actions/checkout@v5
1414 with :
1515 fetch-depth : 0
16- - name : Set up Python 3.9
16+ - name : Set up Python 3.10
1717 uses : actions/setup-python@v6
1818 with :
19- python-version : 3.9
19+ python-version : 3.10
2020
2121 - name : Install dependencies
2222 run : pip install tox wheel
Original file line number Diff line number Diff line change 77 runs-on : ubuntu-latest
88 strategy :
99 matrix :
10- python-version : [3.9 ]
10+ python-version : ["3.10" ]
1111 steps :
1212 - name : Checkout repository
1313 uses : actions/checkout@v5
2626 runs-on : ubuntu-latest
2727 strategy :
2828 matrix :
29- python-version : [3.9 ]
29+ python-version : ["3.10" ]
3030 steps :
3131 - name : Checkout repository
3232 uses : actions/checkout@v5
4747 strategy :
4848 matrix :
4949 python-version : [
50- ["3.9", "39"],
5150 ["3.10", "310"],
5251 ["3.11", "311"],
5352 ["3.12", "312"],
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ version: 2
33build :
44 os : ubuntu-lts-latest
55 tools :
6- python : " 3.9 "
6+ python : " 3.10 "
77
88sphinx :
99 configuration : doc/source/conf.py
Original file line number Diff line number Diff line change 1111can be used to create insecure hash functions like MD4 and MD5 if they are
1212passed as algorithm names to this function.
1313
14- For Python versions prior to 3.9, this check is similar to B303 blacklist
15- except that this checks for insecure hash functions created using
16- ``hashlib.new`` function. For Python version 3.9 and later, this check
17- does additional checking for usage of keyword usedforsecurity on all
14+ This check does additional checking for usage of keyword usedforsecurity on all
1815function variations of hashlib.
1916
2017Similar to ``hashlib``, this plugin also checks for usage of one of the
Original file line number Diff line number Diff line change 1616
1717hashlib .new (name = 'SHA' , data = b'test' )
1818
19- # usedforsecurity arg only availabe in Python 3.9+
2019hashlib .new ('sha1' , usedforsecurity = True )
2120
2221# Test that plugin does not flag valid hash functions.
2322hashlib .new ('sha256' )
2423
2524hashlib .new ('SHA512' )
2625
27- # usedforsecurity arg only availabe in Python 3.9+
2826hashlib .new (name = 'sha1' , usedforsecurity = False )
Original file line number Diff line number Diff line change @@ -17,7 +17,6 @@ classifiers =
1717 Operating System :: MacOS :: MacOS X
1818 Programming Language :: Python
1919 Programming Language :: Python :: 3
20- Programming Language :: Python :: 3.9
2120 Programming Language :: Python :: 3.10
2221 Programming Language :: Python :: 3.11
2322 Programming Language :: Python :: 3.12
Original file line number Diff line number Diff line change 1313
1414
1515setuptools .setup (
16- python_requires = ">=3.9 " ,
16+ python_requires = ">=3.10 " ,
1717 setup_requires = ["pbr>=2.0.0" ],
1818 pbr = True ,
1919 data_files = data_files ,
Original file line number Diff line number Diff line change 11[tox]
22minversion = 3.2.0
3- envlist = py39 ,pep8
3+ envlist = py310 ,pep8
44
55[testenv]
66usedevelop = True
You can’t perform that action at this time.
0 commit comments