Skip to content

Commit 04d67da

Browse files
authored
Merge pull request #3029 from nexB/release-31-0-0rc3-prep
Prepare Release 31.0.0rc3
2 parents 55c8fac + db0524c commit 04d67da

19 files changed

+96
-245
lines changed

.cirrus.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ env:
44

55
py36_task:
66
env:
7-
PYTHON_EXE: /usr/local/bin/python3.6
7+
PYTHON_EXE: /usr/local/bin/python3.8
88

99
freebsd_instance:
1010
matrix:
@@ -14,7 +14,7 @@ py36_task:
1414
install_script:
1515
- sed -i.bak -e 's,pkg+http://pkg.FreeBSD.org/\${ABI}/quarterly,pkg+http://pkg.FreeBSD.org/\${ABI}/latest,' /etc/pkg/FreeBSD.conf
1616
- pkg upgrade -y
17-
- pkg install -y python36 bash libxml2 libxslt
17+
- pkg install -y python38 bash libxml2 libxslt
1818

1919
script:
2020
- ./configure

CHANGELOG.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ Changelog
88
This is a major release with important bug and security fixes, new and improved
99
features and API changes.
1010

11+
Note that we no longer support Python 3.6. Use Python 3.7+ instead.
12+
1113

1214
Important API changes:
1315
~~~~~~~~~~~~~~~~~~~~~~~~

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# See https://aboutcode.org for more information about nexB OSS projects.
88
#
99

10-
FROM python:3.6-slim-buster
10+
FROM python:3.8-slim-buster
1111

1212
# Requirements as per https://scancode-toolkit.readthedocs.io/en/latest/getting-started/install.html
1313
RUN apt-get update \

INSTALL.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ Prerequisites
1616
-------------
1717

1818
Before installing ScanCode make sure you have installed these prerequisites.
19-
The main one is to have Python installed version 3.6, 3.7, 3.8 or 3.9.
19+
The main one is to have Python installed version 3.7, 3.8, 3.9 or 3.10
2020

21-
- For Linux(Ubuntu): ``sudo apt install python3.6-dev bzip2 xz-utils zlib1g libxml2-dev libxslt1-dev``
21+
- For Linux(Ubuntu): ``sudo apt install python3.8-dev bzip2 xz-utils zlib1g libxml2-dev libxslt1-dev``
2222
- For MacOS: Install Python 3.x from https://www.python.org/
2323
- For Windows: Install Python 3.x from https://www.python.org/ using the 64 bits amd64 variant
2424
- For FreeBSD: (this needs to be documented)

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ Installation
133133
============
134134

135135
Before installing ScanCode make sure that you have installed the prerequisites
136-
properly. This means installing Python 3.9 for x86/64 architectures. (Python 3.6+ is supported).
136+
properly. This means installing Python 3.98 for x86/64 architectures. (Python 3.7+ is supported).
137137

138138
See `prerequisites <https://scancode-toolkit.readthedocs.io/en/latest/getting-started/install.html#prerequisites>`_
139139
for detailed information on the support platforms and Python versions.

appveyor.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
################################################################################
66
environment:
77
matrix:
8-
- PYTHON: "C:\\Python36-x64"
98
# - PYTHON: "C:\\Python37-x64"
10-
# - PYTHON: "C:\\Python38-x64"
9+
- PYTHON: "C:\\Python38-x64"
1110
# - PYTHON: "C:\\Python39-x64"
11+
# - PYTHON: "C:\\Python310-x64"
1212

1313

1414
build: off

azure-pipelines.yml

Lines changed: 15 additions & 169 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ jobs:
8282
parameters:
8383
job_name: ubuntu18_cpython
8484
image_name: ubuntu-18.04
85-
python_versions: ['3.6', '3.7', '3.8', '3.9', '3.10']
85+
python_versions: ['3.7', '3.8', '3.9', '3.10']
8686
python_architecture: x64
8787
test_suites:
8888
all: venv/bin/pytest -n 2 -vvs tests/scancode/test_cli.py
@@ -91,7 +91,7 @@ jobs:
9191
parameters:
9292
job_name: ubuntu20_cpython
9393
image_name: ubuntu-20.04
94-
python_versions: ['3.6', '3.7', '3.8', '3.9', '3.10']
94+
python_versions: ['3.7', '3.8', '3.9', '3.10']
9595
python_architecture: x64
9696
test_suites:
9797
all: venv/bin/pytest -n 2 -vvs tests/scancode/test_cli.py
@@ -100,7 +100,7 @@ jobs:
100100
parameters:
101101
job_name: macos1015_cpython_1
102102
image_name: macos-10.15
103-
python_versions: ['3.6', '3.7', '3.8']
103+
python_versions: ['3.7', '3.8']
104104
python_architecture: x64
105105
test_suites:
106106
all: venv/bin/pytest -n 2 -vvs tests/scancode/test_cli.py
@@ -127,7 +127,7 @@ jobs:
127127
parameters:
128128
job_name: win2019_cpython_1
129129
image_name: windows-2019
130-
python_versions: ['3.6', '3.7', '3.8']
130+
python_versions: ['3.7', '3.8']
131131
python_architecture: x64
132132
test_suites:
133133
all: venv\Scripts\pytest -n 2 -vvs tests\scancode\test_cli.py
@@ -169,7 +169,7 @@ jobs:
169169
parameters:
170170
job_name: ubuntu20_test_all_supported_click_versions
171171
image_name: ubuntu-20.04
172-
python_versions: ['3.6', '3.7', '3.8', '3.9', '3.10']
172+
python_versions: ['3.7', '3.8', '3.9', '3.10']
173173
python_architecture: x64
174174
test_suites:
175175
click_versions: |
@@ -181,128 +181,6 @@ jobs:
181181
done
182182
183183
184-
################################################################################
185-
# These jobs are using containers and their own Python 3.6
186-
################################################################################
187-
188-
# - template: etc/ci/azure-container-deb.yml
189-
# parameters:
190-
# job_name: ubuntu18c
191-
# container: ubuntu:bionic
192-
# python_path: python3.6
193-
# python_version: '3.6'
194-
# install_python: sudo apt-get install -y python3.6 python3.6-venv python3.6-dev
195-
# test_suite_label: all
196-
# test_suite: venv/bin/pytest -n 3 -vvs tests/scancode
197-
198-
199-
# - template: etc/ci/azure-container-deb.yml
200-
# parameters:
201-
# job_name: ubuntu20c
202-
# container: ubuntu:focal
203-
# python_path: python3.8
204-
# python_version: '3.8'
205-
# install_python: sudo apt-get install -y python3.8 python3.8-venv python3.8-dev
206-
# test_suite_label: all
207-
# test_suite: venv/bin/pytest -n 3 -vvs tests/scancode
208-
209-
210-
# - template: etc/ci/azure-container-rpm.yml
211-
# parameters:
212-
# job_name: centos7c
213-
# container: centos:7
214-
# python_path: python3.6
215-
# python_version: '3.6'
216-
# install_python: |
217-
# set -e -x
218-
# sudo yum install -y epel-release
219-
# sudo yum install -y python36 python36-devel python36-virtualenv
220-
# test_suite_label: all
221-
# test_suite: venv/bin/pytest -n 2 -vvs
222-
#
223-
# - template: etc/ci/azure-container-rpm.yml
224-
# parameters:
225-
# job_name: manylinux1_py36
226-
# container: quay.io/pypa/manylinux1_x86_64:latest
227-
# python_path: /opt/python/cp36-cp36m/bin/python
228-
# python_version: '3.6'
229-
# install_packages: echo "No extra packages for now"
230-
# install_python: echo "Python is pre-installed"
231-
# test_suite_label: all
232-
# test_suite: venv/bin/pytest -n 2 -vvs
233-
#
234-
# - template: etc/ci/azure-container-rpm.yml
235-
# parameters:
236-
# job_name: manylinux2010_py36
237-
# container: quay.io/pypa/manylinux2010_x86_64:latest
238-
# python_path: /opt/python/cp36-cp36m/bin/python
239-
# python_version: '3.6'
240-
# install_packages: echo "No extra packages for now"
241-
# install_python: echo "Python is pre-installed"
242-
# test_suite_label: all
243-
# test_suite: venv/bin/pytest -n 2 -vvs
244-
245-
246-
################################################################################
247-
# These jobs are using containers and their own Python 3.7
248-
################################################################################
249-
250-
# - template: etc/ci/azure-container-rpm.yml
251-
# parameters:
252-
# job_name: fedora30c
253-
# container: fedora:30
254-
# package_manager: dnf
255-
# python_path: python3.7
256-
# python_version: '3.7'
257-
# install_python: |
258-
# set -e -x
259-
# sudo dnf install -y python3 python3-devel python3-virtualenv
260-
# test_suite_label: all
261-
# test_suite: venv/bin/pytest -n 2 -vvs
262-
#
263-
# - template: etc/ci/azure-container-rpm.yml
264-
# parameters:
265-
# job_name: manylinux2010_py37
266-
# container: quay.io/pypa/manylinux2010_x86_64:latest
267-
# python_path: /opt/python/cp37-cp37m/bin/python
268-
# python_version: '3.7'
269-
# install_packages: echo "No extra packages for now"
270-
# install_python: echo "Python is pre-installed"
271-
# test_suite_label: all
272-
# test_suite: venv/bin/pytest -n 2 -vvs
273-
274-
275-
################################################################################
276-
# These jobs are using containers and their own Python 3.6: FAILING FOR NOW
277-
################################################################################
278-
279-
# here we build from sources
280-
# - template: etc/ci/azure-container-deb.yml
281-
# parameters:
282-
# job_name: debian9c
283-
# container: debian:stretch
284-
# python_path: python3.6
285-
# python_version: '3.6'
286-
# install_python: |
287-
# set -e -x
288-
# sudo apt-get install -y \
289-
# libncurses5-dev libncursesw5-dev libreadline6-dev \
290-
# libdb-dev libgdbm-dev libsqlite3-dev libssl-dev \
291-
# libbz2-dev libexpat1-dev liblzma-dev zlib1g-dev \
292-
# libcurl4-openssl-dev libpam0g-dev \
293-
# libsqlite3-dev tk-dev libffi-dev \
294-
# curl
295-
# export PYVER=3.6.8
296-
# curl -o Python-$PYVER.tgz https://www.python.org/ftp/python/$PYVER/Python-$PYVER.tgz
297-
# tar -xvf Python-$PYVER.tgz
298-
# cd Python-$PYVER
299-
# ./configure --enable-optimizations
300-
# make -j8
301-
# sudo make altinstall
302-
# test_suite_label: basic tests
303-
# test_suite: venv/bin/pytest -n 2 -vvs
304-
305-
306184
################################################################################
307185
# Tests using a plain pip install to get the latest of all wheels
308186
################################################################################
@@ -312,79 +190,47 @@ jobs:
312190
parameters:
313191
job_name: ubuntu18_cpython_latest_from_pip
314192
image_name: ubuntu-18.04
315-
python_versions: ['3.6', '3.7', '3.8', '3.9', '3.10']
193+
python_versions: ['3.7', '3.8', '3.9', '3.10']
316194
test_suites:
317195
all: venv/bin/pip install --upgrade-strategy eager --force-reinstall --upgrade -e .[dev] && venv/bin/pytest -n 2 -vvs tests/scancode/test_cli.py
318196

319197
- template: etc/ci/azure-posix.yml
320198
parameters:
321199
job_name: ubuntu20_cpython_latest_from_pip
322200
image_name: ubuntu-20.04
323-
python_versions: ['3.6', '3.7', '3.8', '3.9', '3.10']
324-
test_suites:
325-
all: venv/bin/pip install --upgrade-strategy eager --force-reinstall --upgrade -e .[dev] && venv/bin/pytest -n 2 -vvs tests/scancode/test_cli.py
326-
327-
- template: etc/ci/azure-posix.yml
328-
parameters:
329-
job_name: macos1015_cpython_latest_from_pip1
330-
image_name: macos-10.15
331-
python_versions: ['3.6', '3.7']
201+
python_versions: ['3.7', '3.8', '3.9', '3.10']
332202
test_suites:
333203
all: venv/bin/pip install --upgrade-strategy eager --force-reinstall --upgrade -e .[dev] && venv/bin/pytest -n 2 -vvs tests/scancode/test_cli.py
334204

335205
- template: etc/ci/azure-posix.yml
336206
parameters:
337-
job_name: macos1015_cpython_latest_from_pip2
207+
job_name: macos1015_cpython_latest_from_pip
338208
image_name: macos-10.15
339-
python_versions: ['3.8', '3.9', '3.10']
340-
test_suites:
341-
all: venv/bin/pip install --upgrade-strategy eager --force-reinstall --upgrade -e .[dev] && venv/bin/pytest -n 2 -vvs tests/scancode/test_cli.py
342-
343-
- template: etc/ci/azure-posix.yml
344-
parameters:
345-
job_name: macos11_cpython_latest_from_pip1
346-
image_name: macos-11
347-
python_versions: ['3.7', '3.8', ]
209+
python_versions: ['3.7', '3.8', '3.9', '3.10']
348210
test_suites:
349211
all: venv/bin/pip install --upgrade-strategy eager --force-reinstall --upgrade -e .[dev] && venv/bin/pytest -n 2 -vvs tests/scancode/test_cli.py
350212

351213
- template: etc/ci/azure-posix.yml
352214
parameters:
353-
job_name: macos11_cpython_latest_from_pip2
215+
job_name: macos11_cpython_latest_from_pip
354216
image_name: macos-11
355-
python_versions: ['3.9', '3.10']
217+
python_versions: ['3.7', '3.8', '3.9', '3.10']
356218
test_suites:
357219
all: venv/bin/pip install --upgrade-strategy eager --force-reinstall --upgrade -e .[dev] && venv/bin/pytest -n 2 -vvs tests/scancode/test_cli.py
358220

359221
- template: etc/ci/azure-win.yml
360222
parameters:
361-
job_name: win2019_cpython_latest_from_pip1
362-
image_name: windows-2019
363-
python_versions: ['3.6', '3.7']
364-
test_suites:
365-
all: venv\Scripts\pip install --upgrade-strategy eager --force-reinstall --upgrade -e .[dev] && venv\Scripts\pytest -n 2 -vvs tests\scancode\test_cli.py
366-
367-
- template: etc/ci/azure-win.yml
368-
parameters:
369-
job_name: win2019_cpython_latest_from_pip2
223+
job_name: win2019_cpython_latest_from_pip
370224
image_name: windows-2019
371-
python_versions: ['3.8', '3.9', '3.10']
372-
test_suites:
373-
all: venv\Scripts\pip install --upgrade-strategy eager --force-reinstall --upgrade -e .[dev] && venv\Scripts\pytest -n 2 -vvs tests\scancode\test_cli.py
374-
375-
- template: etc/ci/azure-win.yml
376-
parameters:
377-
job_name: win2022_cpython_latest_from_pip1
378-
image_name: windows-2022
379-
python_versions: ['3.7', '3.8']
225+
python_versions: ['3.7', '3.8', '3.9', '3.10']
380226
test_suites:
381227
all: venv\Scripts\pip install --upgrade-strategy eager --force-reinstall --upgrade -e .[dev] && venv\Scripts\pytest -n 2 -vvs tests\scancode\test_cli.py
382228

383229
- template: etc/ci/azure-win.yml
384230
parameters:
385-
job_name: win2022_cpython_latest_from_pip2
231+
job_name: win2022_cpython_latest_from_pip
386232
image_name: windows-2022
387-
python_versions: ['3.9', '3.10']
233+
python_versions: ['3.7', '3.8', '3.9', '3.10']
388234
test_suites:
389235
all: venv\Scripts\pip install --upgrade-strategy eager --force-reinstall --upgrade -e .[dev] && venv\Scripts\pytest -n 2 -vvs tests\scancode\test_cli.py
390236

docs/source/contribute/contrib_dev.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ recursive dependencies.
186186

187187
There are utility scripts in ``etc/release`` that can help with the dependencies
188188
management process in particular to build or update wheels with native code for
189-
multiple OSes (Linux, macOS and Windows) and multiple Python versions (3.6+),
189+
multiple OSes (Linux, macOS and Windows) and multiple Python versions (3.7+),
190190
which is not a completely simple operation (and requires eventually 12 wheels
191191
and one source distribution to be published as we support 3 OSes and 4 Python
192192
versions).

docs/source/getting-started/install.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ There are four main ways to install ScanCode.
3131
Before Installing
3232
-----------------
3333

34-
- ScanCode requires a Python version 3.6, 3.7, 3.8. or 3.9 and is
34+
- ScanCode requires a Python version 3.7, 3.8, 3.9 or 3.10 and is
3535
tested on Linux, macOS, and Windows. It should work fine on FreeBSD.
3636

3737

@@ -55,8 +55,8 @@ System Requirements
5555
Prerequisites
5656
^^^^^^^^^^^^^
5757

58-
ScanCode needs a Python 3.6+ interpreter; We support all Python versions from
59-
3.6 to 3.9.
58+
ScanCode needs a Python 3.7+ interpreter; We support all Python versions from
59+
3.7 to 3.10.
6060

6161
- **On Linux**:
6262

@@ -74,23 +74,23 @@ ScanCode needs a Python 3.6+ interpreter; We support all Python versions from
7474

7575
- On RPM-based distros run::
7676

77-
sudo yum install python3.6-devel zlib bzip2-libs xz-libs libxml2-devel libxslt-devel libpopt0
77+
sudo yum install python3.8-devel zlib bzip2-libs xz-libs libxml2-devel libxslt-devel libpopt0
7878

7979
- On Fedora 22 and later run::
8080

81-
sudo dnf install python3.6-devel xz-libs zlib libxml2-devel libxslt-devel bzip2-libs libpopt0
81+
sudo dnf install python3.8-devel xz-libs zlib libxml2-devel libxslt-devel bzip2-libs libpopt0
8282

8383

8484
If these packages are not available from your package manager, you must
8585
compile them from sources.
8686

8787
- **On Mac**:
8888

89-
Download and install Python 3.6 or higher from https://www.python.org/
89+
Download and install Python 3.7 or higher from https://www.python.org/
9090

9191
- **On Windows**:
9292

93-
Download and install Python 3.6 or higher from https://www.python.org/
93+
Download and install Python 3.7 or higher from https://www.python.org/
9494

9595
.. Note::
9696

etc/scripts/utils_requirements.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
# See https://github.com/nexB/skeleton for support or download.
99
# See https://aboutcode.org for more information about nexB OSS projects.
1010
#
11+
12+
import os
1113
import re
1214
import subprocess
1315

0 commit comments

Comments
 (0)