Skip to content

Commit a56250c

Browse files
committed
Merge main and fix conflicts
Signed-off-by: Thomas Druez <tdruez@nexb.com>
2 parents bca9ecb + b9829dc commit a56250c

26 files changed

Lines changed: 397 additions & 163 deletions

CHANGELOG.rst

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ v31.0.0 (next)
55
---------------
66

77
- WARNING: Drop support for Python 3.6 and 3.7. Add support for Python 3.10.
8-
Upgrade Django to version 4.x series.
8+
Upgrade Django to version 4.1 series.
99

10-
- Upgrade ScanCode-toolkit to version v31.
10+
- Upgrade ScanCode-toolkit to version 31.0.1.
1111
See https://github.com/nexB/scancode-toolkit/blob/develop/CHANGELOG.rst for an
12-
overview of the changes in v31 compared to v30.
12+
overview of the changes in the v31 compared to v30.
1313

1414
- Implement run status auto-refresh using the htmx JavaScript library.
1515
The statuses of queued and running pipeline are now automatically refreshed
@@ -98,6 +98,13 @@ v31.0.0 (next)
9898
how scancode-toolkit's JSON output returns ``package_uid``s in the
9999
``for_packages`` field for Resources.
100100

101+
- Add support for .tgz extension for input files in Docker pipeline
102+
https://github.com/nexB/scancode.io/issues/499
103+
104+
- Add support for resource missing file content in details view.
105+
Refine the annotation using the new className instead of type.
106+
https://github.com/nexB/scancode.io/issues/495
107+
101108
v30.2.0 (2021-12-17)
102109
--------------------
103110

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ sqlitedb:
113113
@$(MAKE) migrate
114114

115115
run:
116-
${MANAGE} runserver 8001 --insecure --noreload
116+
${MANAGE} runserver 8001 --insecure
117117

118118
test:
119119
@echo "-> Run the test suite"

docs/installation.rst

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,16 @@ An overview of the web application usage is available at :ref:`user_interface`.
7575

7676
.. warning::
7777
To access a dockerized ScanCode.io app from a remote location, the ``ALLOWED_HOSTS``
78-
setting needs to be provided in your ``.env`` file::
78+
and ``CSRF_TRUSTED_ORIGINS`` settings need to be provided in your ``.env`` file,
79+
for example::
7980

80-
ALLOWED_HOSTS=.domain.com,127.0.0.1
81+
ALLOWED_HOSTS=.your-domain.com,127.0.0.1
82+
CSRF_TRUSTED_ORIGINS=https://*.your-domain.com,http://127.0.0.1:8001
8183

82-
Refer to `Django ALLOWED_HOSTS settings <https://docs.djangoproject.com/
83-
en/dev/ref/settings/#allowed-hosts>`_ for more details.
84+
Refer to `ALLOWED_HOSTS settings <https://docs.djangoproject.com/
85+
en/dev/ref/settings/#allowed-hosts>`_ and `CSRF_TRUSTED_ORIGINS settings
86+
<https://docs.djangoproject.com/en/dev/ref/settings/
87+
#std-setting-CSRF_TRUSTED_ORIGINS>`_ for more details.
8488

8589
Execute a Command
8690
^^^^^^^^^^^^^^^^^
@@ -170,7 +174,7 @@ Before you install ScanCode.io, make sure you have the following prerequisites:
170174

171175
* **Python: versions 3.8 to 3.10** found at https://www.python.org/downloads/
172176
* **Git**: most recent release available at https://git-scm.com/
173-
* **PostgreSQL**: release 10 or later found at https://www.postgresql.org/ or
177+
* **PostgreSQL**: release 11 or later found at https://www.postgresql.org/ or
174178
https://postgresapp.com/ on macOS
175179

176180
.. _system_dependencies:

etc/thirdparty/virtualenv.pyz

1.3 MB
Binary file not shown.
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
about_resource: virtualenv.pyz
22
name: get-virtualenv
3-
version: 20.15.1
4-
download_url: https://github.com/pypa/get-virtualenv/raw/20.15.1/public/virtualenv.pyz
3+
version: 20.16.3
4+
download_url: https://github.com/pypa/get-virtualenv/raw/20.16.3/public/virtualenv.pyz
55
description: virtualenv is a tool to create isolated Python environments.
66
homepage_url: https://github.com/pypa/virtualenv
77
license_expression: lgpl-2.1-plus AND (bsd-new OR apache-2.0) AND mit AND python AND bsd-new
@@ -10,4 +10,4 @@ copyright: Copyright (c) The Python Software Foundation and others
1010
redistribute: yes
1111
attribute: yes
1212
track_changes: yes
13-
package_url: pkg:github/pypa/get-virtualenv@20.15.1#public/virtualenv.pyz
13+
package_url: pkg:github/pypa/get-virtualenv@20.16.3#public/virtualenv.pyz

scancodeio/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@
3030
SCAN_NOTICE = Path(__file__).resolve().parent.joinpath("scan.NOTICE").read_text()
3131

3232

33-
# Turn off the warnings from the `parameter_expansion` and `cluecode` modules.
34-
warnings.filterwarnings("ignore", module="parameter_expansion")
35-
warnings.filterwarnings("ignore", module="cluecode")
33+
# Turn off the warnings for the following modules.
34+
warnings.filterwarnings("ignore", module="extractcode")
35+
warnings.filterwarnings("ignore", module="typecode")
3636

3737

3838
def command_line():

scancodeio/static/ace-1.4.12.min.js

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

scancodeio/static/ace-1.9.5.min.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
1-
about_resource: ace-1.4.12.min.js
1+
about_resource: ace-1.9.5.min.js
22
name: ace
3-
version: 1.4.12
4-
download_url: https://github.com/ajaxorg/ace/archive/refs/tags/v1.4.12.tar.gz
3+
version: 1.9.5
4+
download_url: https://github.com/ajaxorg/ace/archive/refs/tags/v1.9.5.tar.gz
55
description: Ajax.org Code Editor is a full featured source code highlighting editor that powers
66
the Cloud9 IDE
77
homepage_url: http://github.com/ajaxorg/ace
88
license_expression: bsd-new
99
attribute: yes
10-
checksum_md5: a7bcd799f947f9857fbbee050072e11f
11-
checksum_sha1: e017d626e433b1e0ca6b752cd60fb69c5d2af3dc
12-
package_url: pkg:npm/ace@1.4.12
10+
package_url: pkg:npm/ace@1.9.5
1311
licenses:
1412
- key: bsd-new
1513
name: BSD-3-Clause

scancodeio/static/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ function setupTabs() {
7272

7373
activeLink.classList.remove('is-active');
7474
$el.parentNode.classList.add('is-active');
75-
activeTabContent.classList.remove('is-active');
76-
targetTabContent.classList.add('is-active');
75+
if (activeTabContent) activeTabContent.classList.remove('is-active');
76+
if (targetTabContent) targetTabContent.classList.add('is-active');
7777
});
7878
});
7979
}

0 commit comments

Comments
 (0)