Skip to content

Commit 4f9b94f

Browse files
authored
Merge pull request #248 from cisagov/improvement/sslyze3
Add support for sslyze 3 (superset of PR #214)
2 parents b8014be + 2343690 commit 4f9b94f

File tree

5 files changed

+168
-174
lines changed

5 files changed

+168
-174
lines changed

.github/workflows/build.yml

Lines changed: 11 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,7 @@ jobs:
2323
- id: setup-python
2424
uses: actions/setup-python@v4
2525
with:
26-
# A lower version is used because of a dependency issue in Python
27-
# versions 3.8-3.11
28-
python-version: "3.7"
26+
python-version: "3.10"
2927
# We need the Go version and Go cache location for the actions/cache step,
3028
# so the Go installation must happen before that.
3129
- id: setup-go
@@ -115,24 +113,12 @@ jobs:
115113
matrix:
116114
os:
117115
- ubuntu-latest
118-
# The versions of nassl pinned by our sslyze version constraint only
119-
# have bdists available for Python 3.6 and 3.7, so we can only support
120-
# those versions of Python. The error seen when trying to install on
121-
# Python 3.8+ is:
122-
# ERROR: Cannot install pshtt because these package versions have
123-
# conflicting dependencies.
124-
# The conflict is caused by:
125-
# sslyze 2.1.4 depends on nassl<2.3.0 and >=2.2.0
126-
# sslyze 2.1.3 depends on nassl<2.3.0 and >=2.2.0
127116
python-version:
128117
- "3.7"
129-
# - "3.8"
130-
# - "3.9"
131-
# - "3.10"
118+
- "3.8"
119+
- "3.9"
120+
- "3.10"
132121
# - "3.11"
133-
include:
134-
- os: ubuntu-20.04
135-
python-version: "3.6"
136122
steps:
137123
- uses: actions/checkout@v3
138124
- id: setup-python
@@ -182,9 +168,7 @@ jobs:
182168
- id: setup-python
183169
uses: actions/setup-python@v4
184170
with:
185-
# A lower version is used because of a dependency issue in Python
186-
# versions 3.8-3.11
187-
python-version: "3.7"
171+
python-version: "3.10"
188172
- uses: actions/cache@v3
189173
env:
190174
BASE_CACHE_KEY: "${{ github.job }}-${{ runner.os }}-\
@@ -224,20 +208,10 @@ jobs:
224208
- ubuntu-latest
225209
python-version:
226210
- "3.7"
227-
# Disabled due to an unresolvable dependency issue between sslyze and
228-
# nassl:
229-
# ERROR: Cannot install pshtt because these package versions have
230-
# conflicting dependencies.
231-
# The conflict is caused by:
232-
# sslyze 2.1.4 depends on nassl<2.3.0 and >=2.2.0
233-
# sslyze 2.1.3 depends on nassl<2.3.0 and >=2.2.0
234-
# - "3.8"
235-
# - "3.9"
236-
# - "3.10"
211+
- "3.8"
212+
- "3.9"
213+
- "3.10"
237214
# - "3.11"
238-
include:
239-
- os: ubuntu-20.04
240-
python-version: "3.6"
241215
steps:
242216
- uses: actions/checkout@v3
243217
- id: setup-python
@@ -284,20 +258,10 @@ jobs:
284258
- ubuntu-latest
285259
python-version:
286260
- "3.7"
287-
# Disabled due to an unresolvable dependency issue between sslyze and
288-
# nassl:
289-
# ERROR: Cannot install pshtt because these package versions have
290-
# conflicting dependencies.
291-
# The conflict is caused by:
292-
# sslyze 2.1.4 depends on nassl<2.3.0 and >=2.2.0
293-
# sslyze 2.1.3 depends on nassl<2.3.0 and >=2.2.0
294-
# - "3.8"
295-
# - "3.9"
296-
# - "3.10"
261+
- "3.8"
262+
- "3.9"
263+
- "3.10"
297264
# - "3.11"
298-
include:
299-
- os: ubuntu-20.04
300-
python-version: "3.6"
301265
steps:
302266
- uses: actions/checkout@v3
303267
- id: setup-python

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ organizations](https://github.com/cisagov/pshtt/graphs/contributors).
3030

3131
## Getting started ##
3232

33-
`pshtt` requires **Python 3.6 or 3.7**. Python 2 is not supported.
34-
3533
`pshtt` can be installed as a module, or run directly from the
3634
repository.
3735

setup.py

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -75,18 +75,14 @@ def get_version(version_file):
7575
# that you indicate whether you support Python 2, Python 3 or both.
7676
"Programming Language :: Python :: 3",
7777
"Programming Language :: Python :: 3 :: Only",
78-
"Programming Language :: Python :: 3.6",
7978
"Programming Language :: Python :: 3.7",
80-
# "Programming Language :: Python :: 3.8",
81-
# "Programming Language :: Python :: 3.9",
82-
# "Programming Language :: Python :: 3.10",
79+
"Programming Language :: Python :: 3.8",
80+
"Programming Language :: Python :: 3.9",
81+
"Programming Language :: Python :: 3.10",
8382
# "Programming Language :: Python :: 3.11",
8483
"Programming Language :: Python :: Implementation :: CPython",
8584
],
86-
# The versions of nassl pinned by our sslyze version constraint only have
87-
# bdists available for cp36 and cp37 on PyPI so we can only support Python
88-
# 3.6 and 3.7 at this time.
89-
python_requires=">=3.6, <3.8",
85+
python_requires=">=3.7",
9086
# What does your project relate to?
9187
keywords="https best practices",
9288
packages=find_packages(where="src"),
@@ -103,7 +99,7 @@ def get_version(version_file):
10399
"requests>=2.18.4",
104100
# This is necessary to support the python_requires kwarg
105101
"setuptools >= 24.2.0",
106-
"sslyze>=2.1.3,<3.0.0",
102+
"sslyze>=3.0.0,<5.0.0",
107103
"wget>=3.2",
108104
],
109105
extras_require={

src/pshtt/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
"""This file defines the version of this module."""
2-
__version__ = "0.6.10"
2+
__version__ = "0.7.0"

0 commit comments

Comments
 (0)