GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — GitPython/build-release.sh at main · gitpython-developers/GitPython Expand file tree/ Copy pathbuild-release.shMore file actions executable file ·30 lines (26 loc) · 1014 Bytes / Copy pathbuild-release.shFile metadata and controlsexecutable file ·30 lines (26 loc) · 1014 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 #!/bin/bash # # This file is part of GitPython and is released under the # 3-Clause BSD License: https://opensource.org/license/bsd-3-clause/ # # This script builds a release. If run in a venv, it auto-installs its tools. # You may want to run "make release" instead of running this script directly. set -eEu function release_with() { "$1" -m build --sdist --wheel } function suggest_venv() { local venv_cmd='python -m venv env && source env/bin/activate' printf "HELP: To avoid this error, use a virtual-env with '%s' instead.\n" "$venv_cmd" } if test -n "${VIRTUAL_ENV-}"; then deps=(build twine) # Install twine along with build, as we need it later. echo "Virtual environment detected. Adding packages: ${deps[*]}" pip install --quiet --upgrade "${deps[@]}" echo 'Starting the build.' release_with python else trap suggest_venv ERR # This keeps the original exit (error) code. echo 'Starting the build.' release_with python3 # Outside a venv, use python3. fi |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |