Skip to content

Commit bca47ce

Browse files
committed
Makefile: redid the upload command
"setup.py upload" is now broken for some reason, so I use twine directly
1 parent cfbb925 commit bca47ce

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

Makefile

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,26 @@ all: README README.org
55
%EADME %EADME.org: gnuplotlib.py README.footer.org extract_README.py
66
python3 extract_README.py gnuplotlib
77

8+
DIST_VERSION := $(or $(shell < gnuplotlib.py perl -ne "if(/__version__ = '(.*)'/) { print \$$1; exit}"), $(error "Couldn't parse the distribution version"))
9+
10+
DIST := dist/gnuplotlib-$(DIST_VERSION).tar.gz
11+
$(DIST): README
12+
813
# make distribution tarball
9-
dist:
14+
$(DIST):
1015
python3 setup.py sdist
16+
.PHONY: $(DIST) # rebuild it unconditionally
17+
18+
dist: $(DIST)
1119
.PHONY: dist
1220

21+
1322
# make and upload the distribution tarball
14-
dist_upload:
15-
python3 setup.py sdist upload
23+
dist_upload: $(DIST)
24+
twine upload --verbose $(DIST)
1625
.PHONY: dist_upload
1726

27+
1828
clean:
1929
rm -f README.org README
2030
.PHONY: clean

0 commit comments

Comments
 (0)