Skip to content Navigation Menu Toggle navigation Sign in Appearance settings PlatformAI CODE CREATIONGitHub CopilotWrite better code with AIGitHub Copilot appDirect agents from issue to mergeMCP RegistryNewIntegrate external toolsDEVELOPER WORKFLOWSActionsAutomate any workflowCodespacesInstant dev environmentsIssuesPlan and track workCode ReviewManage code changesAPPLICATION SECURITYGitHub Advanced SecurityFind and fix vulnerabilitiesCode securitySecure your code as you buildSecret protectionStop leaks before they startEXPLOREWhy GitHubDocumentationBlogChangelogMarketplaceView all featuresSolutionsBY COMPANY SIZEEnterprisesSmall and medium teamsStartupsNonprofitsBY USE CASEApp ModernizationDevSecOpsDevOpsCI/CDView all use casesBY INDUSTRYHealthcareFinancial servicesManufacturingGovernmentView all industriesView all solutionsResourcesEXPLORE BY TOPICAISoftware DevelopmentDevOpsSecurityView all topicsEXPLORE BY TYPECustomer storiesEvents & webinarsEbooks & reportsBusiness insightsGitHub SkillsSUPPORT & SERVICESDocumentationCustomer supportCommunity forumTrust centerPartnersView all resourcesOpen SourceCOMMUNITYGitHub SponsorsFund open source developersPROGRAMSSecurity LabMaintainer CommunityAcceleratorGitHub StarsArchive ProgramREPOSITORIESTopicsTrendingCollectionsEnterpriseENTERPRISE SOLUTIONSEnterprise platformAI-powered developer platformAVAILABLE ADD-ONSGitHub Advanced SecurityEnterprise-grade security featuresCopilot for BusinessEnterprise-grade AI featuresPremium SupportEnterprise-grade 24/7 supportPricing Search or jump to... Search code, repositories, users, issues, pull requests... Search Clear Search syntax tips Provide feedback We read every piece of feedback, and take your input very seriously. Include my email address so I can be contacted Saved searches Use saved searches to filter your results more quickly Name Query To see all available qualifiers, see our documentation. Sign in Sign up Appearance settings Resetting focus You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert {{ message }} gitpython-developers / GitPython Public Uh oh! There was an error while loading. Please reload this page. Notifications You must be signed in to change notification settings Fork 980 Star 5.1k Code Issues 166 Pull requests 11 Discussions Actions Security and quality 8 Insights Additional navigation options Code Issues Pull requests Discussions Actions Security and quality Insights FilesExpand file tree mainBreadcrumbsGitPython/build-release.shCopy pathBlameMore file actionsBlameMore file actions Latest commit HistoryHistoryHistoryexecutable file·30 lines (26 loc) · 1014 Bytes mainBreadcrumbsGitPython/build-release.shCopy pathTopFile metadata and controlsCodeBlameexecutable file·30 lines (26 loc) · 1014 BytesRawCopy raw fileDownload raw fileOpen symbols panelEdit and raw actions123456789101112131415161718192021222324252627282930#!/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 pythonelse 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 can’t perform that action at this time.