Skip to content

Commit 1bddb92

Browse files
authored
Merge pull request #2715 from nexB/post-release
Prepare bugfix release 30.0.1 #2713
2 parents a0d4d81 + c53e812 commit 1bddb92

File tree

7 files changed

+115
-58
lines changed

7 files changed

+115
-58
lines changed

CHANGELOG.rst

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,22 @@ Outputs:
6464

6565

6666

67+
30.0.1 - 2021-09-24
68+
--------------------
69+
70+
This is a minor bug fix release for these bugs:
71+
72+
- https://github.com/nexB/scancode-toolkit/issues/2713
73+
- https://github.com/nexB/scancode-toolkit/issues/2713
74+
75+
We now correctly work with all supported Click versions.
76+
77+
Thank you to:
78+
- Konstantin Kochin @vznncv
79+
- Thomas Druez @tdruez
80+
81+
82+
6783
30.0.0 - 2021-09-23
6884
--------------------
6985

@@ -204,6 +220,7 @@ particular:
204220
- Sarita Singh @itssingh
205221
- Siddhant Khare @Siddhant-K-code
206222
- Soim Kim @soimkim
223+
- Thomas Druez @tdruez
207224
- Thorsten Godau @tgodau
208225
- Yunus Rahbar @yns88
209226

azure-pipelines.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ jobs:
9090
bin/pytest -n 3 -vvs --test-suite=all \
9191
tests/licensedcode/test_zzzz_cache.py
9292
93+
9394
- template: etc/ci/azure-posix.yml
9495
parameters:
9596
job_name: mac1014
@@ -159,6 +160,28 @@ jobs:
159160
all: bin/pytest -n 2 -vvs tests/scancode/test_cli.py
160161

161162

163+
################################################################################
164+
# Test using many version of Click to work around regressions in API
165+
################################################################################
166+
167+
168+
- template: etc/ci/azure-posix.yml
169+
parameters:
170+
job_name: ubuntu20_test_all_supported_click_versions
171+
image_name: ubuntu-20.04
172+
python_versions: ['3.6', '3.7', '3.8', '3.9']
173+
python_architecture: x64
174+
test_suites:
175+
click_versions: |
176+
for clk_ver in 8.0.1 7.1.2 7.1.1 7.1 6.7;
177+
do
178+
bin/pip install click==$clk_ver;
179+
bin/scancode -i samples/ -n3 --json foo.json;
180+
bin/scancode -i --verbose samples/ -n3 --json foo.json;
181+
done
182+
183+
184+
162185
################################################################################
163186
# These jobs are using containers and their own Python 3.6
164187
################################################################################

etc/release/scancode-create-release.sh

Lines changed: 68 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -65,34 +65,42 @@ function run_app_smoke_tests {
6565

6666
echo " "
6767
echo "### Testing app with Python $python_app_dot_version on OS: $operating_system"
68-
archive_to_test=$(ls -1 -R release/archives/ | grep "$python_app_version-$operating_system")
6968

70-
echo "#### Testing $archive_to_test with Python $python_app_dot_version on OS: $operating_system"
69+
# check if the tag file exist meaning we have already completed the tests
70+
tag_file="scancode-release-tested-for-python-$python_app_dot_version-$operating_system"
71+
if [ ! -f $tag_file ]; then
72+
archive_to_test=$(ls -1 -R release/archives/ | grep "$python_app_version-$operating_system")
7173

72-
# Check checksum of archive and script since it transits through file.io
73-
sha_arch=$(sha256sum release/archives/$archive_to_test | awk '{ print $1 }')
74-
sha_py=$(sha256sum etc/release/scancode_release_tests.py | awk '{ print $1 }')
74+
echo "#### Testing $archive_to_test with Python $python_app_dot_version on OS: $operating_system"
7575

76-
echo "#### Creating a temp archive that contains the tested archive: $archive_file and the test script"
77-
archive_file=input.tar.gz
78-
tar -czf $archive_file \
79-
-C release/archives $archive_to_test \
80-
-C ../../etc/release scancode_release_tests.py
76+
# Check checksum of archive and script since it transits through file.io
77+
sha_arch=$(sha256sum release/archives/$archive_to_test | awk '{ print $1 }')
78+
sha_py=$(sha256sum etc/release/scancode_release_tests.py | awk '{ print $1 }')
8179

82-
tar -tvf $archive_file
80+
echo "#### Creating a temp archive that contains the tested archive: $archive_file and the test script"
81+
archive_file=input.tar.gz
82+
tar -czf $archive_file \
83+
-C release/archives $archive_to_test \
84+
-C ../../etc/release scancode_release_tests.py
8385

84-
echo "#### Remote test command: python scancode_release_tests.py app $archive_to_test sha_arch:$sha_arch sha_py:$sha_py"
86+
tar -tvf $archive_file
8587

86-
romp \
87-
--interpreter cpython \
88-
--architecture x86_64 \
89-
--check-period 5 \
90-
--version $python_app_dot_version \
91-
--platform $operating_system \
92-
--archive-file $archive_file \
93-
--command "python scancode_release_tests.py app $archive_to_test $sha_arch $sha_py"
88+
echo "#### Remote test command: python scancode_release_tests.py app $archive_to_test sha_arch:$sha_arch sha_py:$sha_py"
9489

95-
echo "#### RELEASE TEST: Completed App tests of $archive_to_test with Python $python_app_dot_version on OS: $operating_system"
90+
romp \
91+
--interpreter cpython \
92+
--architecture x86_64 \
93+
--check-period 5 \
94+
--version $python_app_dot_version \
95+
--platform $operating_system \
96+
--archive-file $archive_file \
97+
--command "python scancode_release_tests.py app $archive_to_test $sha_arch $sha_py"
98+
99+
echo "#### RELEASE TEST: Completed App tests of $archive_to_test with Python $python_app_dot_version on OS: $operating_system"
100+
touch $tag_file
101+
else
102+
echo "#### RELEASE TEST: NOT RE-TESTING $archive_to_test with Python $python_app_dot_version on OS: $operating_system"
103+
fi
96104
}
97105

98106

@@ -109,46 +117,55 @@ function run_pypi_smoke_tests {
109117
python_dot_versions=$2
110118
operating_systems=$3
111119

120+
# check if the tag file exist meaning we have already completed the tests
121+
tag_file="scancode-release-pypi-tested-for-$archive_to_test"
122+
112123
echo " "
113124
echo "### Testing $archive_to_test with Pythons: $python_dot_versions on OSses: $operating_systems"
114125

115-
# Check checksum of archive and script since it transits through file.io
116-
sha_arch=$(sha256sum release/pypi/$archive_to_test | awk '{ print $1 }')
117-
sha_py=$(sha256sum etc/release/scancode_release_tests.py | awk '{ print $1 }')
126+
if [ ! -f $tag_file ]; then
118127

119-
echo "#### Creating a temp archive that contains the tested archive: $archive_file and the test script"
120-
archive_file=input.tar.gz
121-
tar -czf $archive_file \
122-
-C release/pypi $archive_to_test \
123-
-C ../../etc/release scancode_release_tests.py
128+
# Check checksum of archive and script since it transits through file.io
129+
sha_arch=$(sha256sum release/pypi/$archive_to_test | awk '{ print $1 }')
130+
sha_py=$(sha256sum etc/release/scancode_release_tests.py | awk '{ print $1 }')
124131

125-
tar -tvf $archive_file
132+
echo "#### Creating a temp archive that contains the tested archive: $archive_to_test and the test script: release scancode_release_tests.py"
133+
archive_file=input.tar.gz
134+
tar -czf $archive_file \
135+
-C release/pypi $archive_to_test \
136+
-C ../../etc/release scancode_release_tests.py
126137

127-
echo "#### Remote test command: python scancode_release_tests.py pypi archive_to_test:$archive_to_test sha_arch:$sha_arch sha_py:$sha_py"
138+
tar -tvf $archive_file
128139

129-
# build options for Python versions and OS
130-
ver_opts=" "
131-
for pdv in $python_dot_versions
132-
do
133-
ver_opts="$ver_opts --version $pdv"
134-
done
140+
echo "#### Remote test command: python scancode_release_tests.py pypi archive_to_test:$archive_to_test sha_arch:$sha_arch sha_py:$sha_py"
135141

136-
os_opts=" "
137-
for os in $operating_systems
138-
do
139-
os_opts="$os_opts --platform $os"
140-
done
142+
# build options for Python versions and OS
143+
ver_opts=" "
144+
for pdv in $python_dot_versions
145+
do
146+
ver_opts="$ver_opts --version $pdv"
147+
done
141148

142-
romp \
143-
--interpreter cpython \
144-
--architecture x86_64 \
145-
--check-period 5 \
146-
$ver_opts \
147-
$os_opts \
148-
--archive-file $archive_file \
149-
--command "python scancode_release_tests.py pypi $archive_to_test $sha_arch $sha_py"
149+
os_opts=" "
150+
for os in $operating_systems
151+
do
152+
os_opts="$os_opts --platform $os"
153+
done
150154

151-
echo "#### RELEASE TEST: Completed PyPI tests of $archive_to_test with Pythons: $python_dot_versions on OSses: $operating_systems"
155+
romp \
156+
--interpreter cpython \
157+
--architecture x86_64 \
158+
--check-period 5 \
159+
$ver_opts \
160+
$os_opts \
161+
--archive-file $archive_file \
162+
--command "python scancode_release_tests.py pypi $archive_to_test $sha_arch $sha_py"
163+
164+
echo "#### RELEASE TEST: Completed PyPI tests of $archive_to_test with Pythons: $python_dot_versions on OSses: $operating_systems"
165+
touch $tag_file
166+
else
167+
echo "#### RELEASE TEST: NOT RE-TESTING Pypi $archive_to_test with Python $python_app_dot_version on OSses: $operating_systems"
168+
fi
152169

153170
}
154171

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ cffi==1.14.5
99
chardet==4.0.0
1010
click==8.0.1
1111
colorama==0.4.4
12-
commoncode==21.8.31
12+
commoncode==30.0.0
1313
construct==2.10.67
1414
cryptography==3.4.7
1515
debian-inspector==30.0.0

setup-mini.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = scancode-toolkit-mini
3-
version = 30.0.0
3+
version = 30.0.1
44
license = Apache-2.0 AND CC-BY-4.0 AND LicenseRef-scancode-other-permissive AND LicenseRef-scancode-other-copyleft
55

66
description = ScanCode is a tool to scan code for license, copyright, package and their documented dependencies and other interesting facts. scancode-toolkit-mini is a special build that does not come with pre-built binary dependencies by default. These are instead installed separately or with the extra_requires scancode-toolkit-mini[full]
@@ -59,7 +59,7 @@ install_requires =
5959
chardet >= 3.0.0
6060
click >= 6.7, !=7.0
6161
colorama >= 0.3.9
62-
commoncode >= 21.8.31
62+
commoncode >= 30.0.0
6363
debian-inspector >= 30.0.0
6464
dparse >= 0.5.1
6565
fasteners

setup.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = scancode-toolkit
3-
version = 30.0.0
3+
version = 30.0.1
44
license = Apache-2.0 AND CC-BY-4.0 AND LicenseRef-scancode-other-permissive AND LicenseRef-scancode-other-copyleft
55

66
description = ScanCode is a tool to scan code for license, copyright, package and their documented dependencies and other interesting facts.
@@ -59,7 +59,7 @@ install_requires =
5959
chardet >= 3.0.0
6060
click >= 6.7, !=7.0
6161
colorama >= 0.3.9
62-
commoncode >= 21.8.31
62+
commoncode >= 30.0.0
6363
debian-inspector >= 30.0.0
6464
dparse >= 0.5.1
6565
fasteners

src/scancode_config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,10 @@ def _create_dir(location):
7777

7878
# in case package is not installed or we do not have setutools/pkg_resources
7979
# on hand fall back to this version
80-
__version__ = '30.0.0'
80+
__version__ = '30.0.1'
8181

8282
# used to warn user when the version is out of date
83-
__release_date__ = datetime.datetime(2021, 9, 23)
83+
__release_date__ = datetime.datetime(2021, 9, 24)
8484

8585
# See https://github.com/nexB/scancode-toolkit/issues/2653 for more information
8686
# on the data format version

0 commit comments

Comments
 (0)