FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
gitdb/build-release.sh at master · gitpython-developers/gitdb · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
This repository was archived by the owner on Jul 26, 2026. It is now read-only.
gitpython-developers
/
gitdb
Public archive
Notifications
You must be signed in to change notification settings
Fork
68
Star
227
Code
Issues
6
Pull requests
0
Discussions
Actions
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
gitdb
/
build-release.sh
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
26 lines (23 loc) · 891 Bytes
Breadcrumbs
gitdb
/
build-release.sh
Copy path
File metadata and controls
executable file
·
26 lines (23 loc) · 891 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
#!
/bin/bash
#
#
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
}
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
function
suggest_venv()
{
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
"
}
trap
suggest_venv ERR
#
This keeps the original exit (error) code.
echo
'
Starting the build.
'
release_with python3
#
Outside a venv, use python3.
fi
Back
|
FazBrowse Home
|
New Git URL