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:
- dist/backup_utils.pyz
- bin/backup_utils.pyz
- pipenv install --dev
- mkdir dist
script: make build
......@@ -3,15 +3,19 @@
rm -rf src/*.egg-info
rm -rf src/dist
rm -rf src/bin
rm -rf src/build
build: clean
cp ./src
pipenv run shiv --compressed -p "/usr/bin/env python3" -o ./dist/backup_utils.pyz -e backup_utils.main ./src
rm ./src/
pipenv lock -r > requirements.txt
pipenv run pip install -r requirements.txt --target dist/
cp 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
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 <>"
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