File: 0003-use-python3-in-Makefile.patch

package info (click to toggle)
vorta 0.11.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,532 kB
  • sloc: python: 12,262; makefile: 89; xml: 65; sh: 51
file content (31 lines) | stat: -rw-r--r-- 1,206 bytes parent folder | download
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
31
From: Nicholas D Steeves <sten@debian.org>
Date: Tue, 12 Jan 2021 17:15:45 -0500
Subject: use python3 in Makefile

---
 Makefile | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile
index 653e317..9d28c9c 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
 export VORTA_SRC := src/vorta
 export APPSTREAM_METADATA := src/vorta/assets/metadata/com.borgbase.Vorta.appdata.xml
-VERSION := $(shell uv run python -c "from src.vorta._version import __version__; print(__version__)")
+VERSION := $(shell python3 -c "from src.vorta._version import __version__; print(__version__)")
 
 .PHONY : help clean lint test
 .DEFAULT_GOAL := help
@@ -33,8 +33,8 @@ github-release: dist/Vorta.dmg  ## Add new Github release and attach macOS DMG
 	git checkout master
 
 pypi-release: translations-to-qm  ## Upload new release to PyPi
-	uv run python -m build --sdist
-	uv run twine upload dist/vorta-${VERSION}.tar.gz
+	python3 -m build --sdist
+	twine upload dist/vorta-${VERSION}.tar.gz
 
 bump-version:  ## Tag new version. First set new version number in src/vorta/_version.py
 	xmlstarlet ed -L -u 'component/releases/release/@date' -v $(shell date +%F) ${APPSTREAM_METADATA}