Skip to content

Commit d9a6042

Browse files
authored
Merge pull request #2519 from nexB/fix-configure
Fix configure across OSes
2 parents 3ebaf2d + 9679719 commit d9a6042

17 files changed

+389
-592
lines changed

CHANGELOG.rst

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Changelog
22
=========
33

4-
v21.4.x (next)
4+
v21.x.x (next)
55
--------------
66

77
Breaking API changes:
@@ -24,6 +24,19 @@ Breaking API changes:
2424
multiple manifests for a single package instance.
2525

2626

27+
v21.5.11
28+
--------
29+
30+
Breaking API changes:
31+
~~~~~~~~~~~~~~~~~~~~~
32+
33+
- The configure scripts for Linux, macOS and Windows are new. These are now
34+
only native scripts (.bat on Windows and .sh on POSIX) and the Python script
35+
etc/configure.py has been removed. Use the PYTHON_EXECUTABLE enviroment
36+
varibale to point to alternative non-default Python executable. An this on
37+
all OSes.
38+
39+
2740
Ouputs:
2841
~~~~~~~
2942

@@ -43,6 +56,7 @@ License scanning:
4356
- Till Jaeger @LeChasseur
4457

4558

59+
4660
v21.3.31
4761
--------
4862

MANIFEST.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ include *.toml
1616
include extractcode*
1717
include scancode*
1818

19+
# path to executable used by a built app
20+
include PYTHON_EXECUTABLE
1921

2022
include *.rst
2123
include Dockerfile

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ build: off
1616

1717
test_script:
1818
- python -c "import sys;print(sys.getdefaultencoding())"
19-
- cmd: "set PYTHON_EXE=%PYTHON%\\python.exe && configure --dev && Scripts\\pytest -vvs --reruns 2 tests\\scancode"
19+
- cmd: "set PYTHON_EXECUTABLE=%PYTHON%\\python.exe && configure --dev && Scripts\\pytest -vvs --reruns 2 tests\\scancode"

azure-pipelines.yml

Lines changed: 32 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ jobs:
1010
# These jobs are using VMs and Azure-provided Pythons 3.6
1111
################################################################################
1212

13-
- template: etc/ci/azure-linux.yml
13+
- template: etc/ci/azure-posix.yml
1414
parameters:
15-
job_name: vm_ubuntu16_py36
15+
job_name: core_tests
1616
image_name: ubuntu-16.04
1717
python_versions: ['3.6']
1818
test_suites:
@@ -66,27 +66,27 @@ jobs:
6666
tests/licensedcode/test_detection_validate.py \
6767
-k TestValidateLicenseBasic
6868
69-
license_validate_extended_1: |
69+
license_validate_ext_1: |
7070
bin/pytest -n 3 -vvs --test-suite=validate \
7171
tests/licensedcode/test_detection_validate.py \
7272
-k TestValidateLicenseExtended1
7373
74-
license_validate_extended_2: |
74+
license_validate_ext_2: |
7575
bin/pytest -n 3 -vvs --test-suite=validate \
7676
tests/licensedcode/test_detection_validate.py \
7777
-k TestValidateLicenseExtended2
7878
79-
license_validate_extended_3: |
79+
license_validate_ext_3: |
8080
bin/pytest -n 3 -vvs --test-suite=validate \
8181
tests/licensedcode/test_detection_validate.py \
8282
-k TestValidateLicenseExtended3
8383
84-
license_validate_extended_4: |
84+
license_validate_ext_4: |
8585
bin/pytest -n 3 -vvs --test-suite=validate \
8686
tests/licensedcode/test_detection_validate.py \
8787
-k TestValidateLicenseExtended4
8888
89-
license_validate_extended_5: |
89+
license_validate_ext_5: |
9090
bin/pytest -n 3 -vvs --test-suite=validate \
9191
tests/licensedcode/test_detection_validate.py \
9292
-k TestValidateLicenseExtended5
@@ -95,36 +95,39 @@ jobs:
9595
bin/pytest -n 3 -vvs --test-suite=all \
9696
tests/licensedcode/test_zzzz_cache.py
9797
98-
- template: etc/ci/azure-mac.yml
98+
- template: etc/ci/azure-posix.yml
9999
parameters:
100-
job_name: macos_1014_py3x
100+
job_name: mac1014
101101
image_name: macos-10.14
102102
python_versions: ['3.6', '3.7', '3.8', '3.9']
103+
python_architecture: x64
103104
test_suites:
104105
all: bin/pytest -n 2 -vvs tests/scancode/test_cli.py
105106

106107

107-
- template: etc/ci/azure-mac.yml
108+
- template: etc/ci/azure-posix.yml
108109
parameters:
109-
job_name: macos_1015_py3x
110+
job_name: mac1015
110111
image_name: macos-10.15
111112
python_versions: ['3.6', '3.7', '3.8', '3.9']
113+
python_architecture: x64
112114
test_suites:
113115
all: bin/pytest -n 2 -vvs tests/scancode/test_cli.py
114116

115117

116-
# - template: etc/ci/azure-mac.yml
118+
# - template: etc/ci/azure-posix.yml
117119
# parameters:
118-
# job_name: macos_110_py3x
120+
# job_name: mac1100
119121
# image_name: macos-11.0
120122
# python_versions: ['3.6', '3.7', '3.8', '3.9']
123+
# python_architecture: x64
121124
# test_suites:
122125
# all: bin/pytest -n 2 -vvs tests/scancode/test_cli.py
123126

124127

125128
- template: etc/ci/azure-win.yml
126129
parameters:
127-
job_name: win_2016_py3x
130+
job_name: win2016
128131
image_name: vs2017-win2016
129132
python_versions: ['3.6', '3.7', '3.8', '3.9']
130133
python_architecture: x64
@@ -134,37 +137,38 @@ jobs:
134137

135138
- template: etc/ci/azure-win.yml
136139
parameters:
137-
job_name: win_2019_py3x
140+
job_name: win2019
138141
image_name: windows-2019
139142
python_versions: ['3.6', '3.7', '3.8', '3.9']
140143
python_architecture: x64
141144
test_suites:
142145
all: Scripts\pytest -n 2 -vvs tests\scancode\test_cli.py
143146

144-
145-
- template: etc/ci/azure-linux.yml
147+
- template: etc/ci/azure-posix.yml
146148
parameters:
147-
job_name: vm_ubuntu16_py3x
149+
job_name: ubuntu16
148150
image_name: ubuntu-16.04
149151
python_versions: ['3.7', '3.8', '3.9']
152+
python_architecture: x64
150153
test_suites:
151154
all: bin/pytest -n 2 -vvs tests/scancode/test_cli.py
152155

153156

154-
- template: etc/ci/azure-linux.yml
157+
- template: etc/ci/azure-posix.yml
155158
parameters:
156-
job_name: vm_ubuntu18_py3x
159+
job_name: ubuntu18
157160
image_name: ubuntu-18.04
158161
python_versions: ['3.6', '3.7', '3.8', '3.9']
162+
python_architecture: x64
159163
test_suites:
160164
all: bin/pytest -n 2 -vvs tests/scancode/test_cli.py
161165

162-
163-
- template: etc/ci/azure-linux.yml
166+
- template: etc/ci/azure-posix.yml
164167
parameters:
165-
job_name: vm_ubuntu20_py3x
168+
job_name: ubuntu20
166169
image_name: ubuntu-20.04
167170
python_versions: ['3.6', '3.7', '3.8', '3.9']
171+
python_architecture: x64
168172
test_suites:
169173
all: bin/pytest -n 2 -vvs tests/scancode/test_cli.py
170174

@@ -175,7 +179,7 @@ jobs:
175179

176180
# - template: etc/ci/azure-container-deb.yml
177181
# parameters:
178-
# job_name: ubuntu18_py36
182+
# job_name: ubuntu18c
179183
# container: ubuntu:bionic
180184
# python_path: python3.6
181185
# python_version: '3.6'
@@ -186,7 +190,7 @@ jobs:
186190

187191
# - template: etc/ci/azure-container-deb.yml
188192
# parameters:
189-
# job_name: ubuntu20_py38
193+
# job_name: ubuntu20c
190194
# container: ubuntu:focal
191195
# python_path: python3.8
192196
# python_version: '3.8'
@@ -197,7 +201,7 @@ jobs:
197201

198202
# - template: etc/ci/azure-container-rpm.yml
199203
# parameters:
200-
# job_name: centos7_py36
204+
# job_name: centos7c
201205
# container: centos:7
202206
# python_path: python3.6
203207
# python_version: '3.6'
@@ -237,7 +241,7 @@ jobs:
237241

238242
# - template: etc/ci/azure-container-rpm.yml
239243
# parameters:
240-
# job_name: fedora30_py37
244+
# job_name: fedora30c
241245
# container: fedora:30
242246
# package_manager: dnf
243247
# python_path: python3.7
@@ -267,7 +271,7 @@ jobs:
267271
# here we build from sources
268272
# - template: etc/ci/azure-container-deb.yml
269273
# parameters:
270-
# job_name: debian9_py36
274+
# job_name: debian9c
271275
# container: debian:stretch
272276
# python_path: python3.6
273277
# python_version: '3.6'

codecov.yml

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)