mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-07-29 05:31:17 -07:00
Remove requirements.txt as a dependency (#1111)
* Remove requirements.txt as a dependency This converts both docker and tox to use poetry, eliminating usage of requirements.txt in both flows. - In tox, uses the tox-poetry package which installs dependencies from the lockfile. - In docker, uses https://stackoverflow.com/questions/53835198/integrating-python-poetry-with-docker as a reference. * Don't copy pyproject.toml * Remove obsoleted docs about requirements.txt * Add --full-trace option to pytest * Fix liccheck liccheck works with requirements.txt, not with poetry, so there needs to be an extra translation step. * TEMP: Add WIP fix for pandas issue This is just to see if the github actions would pass once this fix gets merged, but it's being reviewed separately. * Revert "TEMP: Add WIP fix for pandas issue" This reverts commit 06e38e8cc77f5f3105c6e7a9449901db67aa1c82.
This commit is contained in:
parent
f90ec76295
commit
0abf04d6c2
7 changed files with 60 additions and 140 deletions
15
data/data-pipeline/scripts/run-liccheck.sh
Normal file
15
data/data-pipeline/scripts/run-liccheck.sh
Normal file
|
@ -0,0 +1,15 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Script to run liccheck using poetry, because we use poetry but liccheck uses
|
||||
# requirements.txt.
|
||||
|
||||
# http://redsymbol.net/articles/unofficial-bash-strict-mode/
|
||||
set -euo pipefail
|
||||
|
||||
if ! command -v which; then
|
||||
echo "You must have poetry installed to run this script."
|
||||
fi
|
||||
|
||||
poetry export --without-hashes --output requirements.txt
|
||||
liccheck
|
||||
rm -f requirements.txt
|
Loading…
Add table
Add a link
Reference in a new issue