File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed
Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff 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+
1828clean :
1929 rm -f README.org README
2030.PHONY : clean
You can’t perform that action at this time.
0 commit comments