Commit 48e35306 authored by Romain Muller's avatar Romain Muller

Fix shiv build

parent 90dee221
Pipeline #77630721 passed with stages
in 5 minutes and 19 seconds
......@@ -10,10 +10,9 @@ pyz:
artifacts:
name: "$CI_COMMIT_REF_SLUG"
paths:
- dist/backup_utils.pyz
- bin/backup_utils.pyz
before_script:
- pipenv install --dev
- mkdir dist
script: make build
.test_template:
......
......@@ -3,15 +3,19 @@
clean:
rm -rf src/*.egg-info
rm -rf src/dist
rm -rf src/bin
rm -rf src/build
build: clean
cp README.md ./src
pipenv run shiv --compressed -p "/usr/bin/env python3" -o ./dist/backup_utils.pyz -e backup_utils.main ./src
rm ./src/README.md
pipenv lock -r > requirements.txt
pipenv run pip install -r requirements.txt --target dist/
cp README.md dist/
cp -a ./src/. ./dist/
mkdir -p bin
pipenv run shiv --site-packages dist --compressed -p "/usr/bin/env python3" -o ./bin/backup_utils.pyz -e backup_utils.main
run: build
pipenv run python ./dist/backup_utils.pyz -v
pipenv run python ./bin/backup_utils.pyz -v
test:
PYTHONPATH="${PYTHONPATH}:${PWD}/src" pipenv run pytest --cov=backup_utils
......
......@@ -2,7 +2,7 @@ import argparse
from .Backup import Backup
__all__ = ["Backup", "main"]
__version__ = "2.0.0"
__version__ = "2.0.1"
__author__ = "Oprax <oprax@me.com>"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment