Skip to content

Commit

Permalink
Upgrade ScanCode-toolkit to latest 21.2.9 version #54
Browse files Browse the repository at this point in the history
  • Loading branch information
tdruez authored Feb 11, 2021
1 parent 0d339a7 commit 434f7f9
Show file tree
Hide file tree
Showing 5 changed files with 88 additions and 55 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ jobs:
strategy:
max-parallel: 4
matrix:
# Python 3.9 not supported until next scancode-toolkit version
python-version: [3.6, 3.7, 3.8]
python-version: [3.6, 3.7, 3.8, 3.9]

steps:
- name: Checkout code
Expand All @@ -42,9 +41,7 @@ jobs:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
make dev
make envfile
run: make venv upgrade-pip dev envfile

- name: Validate code format
run: make check
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

### v1.1.0 (unreleased)

- Upgrade scancode-toolkit to version 21.2.9

- Allow to start the pipeline run immediately on addition in the `add_pipeline` action
of the Project API endpoint.
https://github.com/nexB/scancode.io/issues/92
Expand Down
15 changes: 10 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,13 @@ else
SUDO_POSTGRES=
endif

conf:
@echo "-> Configure the Python venv and install dependencies"
venv:
@echo "-> Configure the Python venv"
${PYTHON_EXE} -m venv .

conf: venv
@echo "-> Install dependencies"
@${ACTIVATE} pip install -e .
# Workaround https://github.com/python/typing/issues/573#issuecomment-405986724
@${ACTIVATE} pip uninstall --yes typing

dev: conf
@echo "-> Configure and install development dependencies"
Expand All @@ -58,6 +59,10 @@ envfile:
@mkdir -p $(shell dirname ${ENV_FILE}) && touch ${ENV_FILE}
@echo SECRET_KEY=\"${GET_SECRET_KEY}\" > ${ENV_FILE}

upgrade-pip:
@echo "-> Upgrade pip to latest version"
@${ACTIVATE} pip install --upgrade pip

install:
@echo "-> Install and configure the Python env with base dependencies, offline"
${PYTHON_EXE} -m venv .
Expand Down Expand Up @@ -130,4 +135,4 @@ docs:
rm -rf docs/_build/
sphinx-build docs/ docs/_build/

.PHONY: conf dev envfile install check valid isort clean migrate postgres sqlite run test package bump docs
.PHONY: venv conf dev envfile upgrade-pip install check valid isort clean migrate postgres sqlite run test package bump docs
15 changes: 7 additions & 8 deletions etc/requirements/base.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# Configuration tools
pip==20.3.3
setuptools==51.1.2
pip==21.0.1
setuptools==53.0.0
wheel==0.36.2

# Django related
Django==3.1.5
Django==3.1.6
django-environ==0.4.5
django-crispy-forms==1.10.0
pytz==2020.5
django-crispy-forms==1.11.0
pytz==2021.1
django-filter==2.4.0
djangorestframework==3.12.2

Expand All @@ -30,9 +30,8 @@ gunicorn==20.0.4
container_inspector==3.1.2

# ScanCode-toolkit
scancode-toolkit[full]==3.2.3
# Remove the following once the new scancode-toolkit is available
commoncode==v20.10.20
scancode-toolkit[full]==21.2.9
extractcode-libarchive==3.5.1.210122

# Utilities
XlsxWriter==1.3.7
Loading

0 comments on commit 434f7f9

Please sign in to comment.