Skip to content

Commit b23389e

Browse files
committed
added pypi entry in Makefile. now it is possible to upload a new source distribution and update packages.python.org/should_dsl using make pypi
1 parent 4db0d59 commit b23389e

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,12 @@ tox:
99
integration: tox
1010
tox
1111

12+
distribute:
13+
@python -c 'from setuptools import _distribute' 2>/dev/null || pip install distribute
14+
15+
pypi: distribute
16+
python setup.py sdist upload
17+
cd docs && make html HTMLDIR=../build/docs
18+
python setup.py upload_docs
19+
1220
.PHONY: test integration

docs/Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ SPHINXOPTS =
66
SPHINXBUILD = sphinx-build
77
PAPER =
88
BUILDDIR = _build
9+
HTMLDIR = $(BUILDDIR)/html
910

1011
# Internal variables.
1112
PAPEROPT_a4 = -D latex_paper_size=a4
@@ -37,9 +38,9 @@ clean:
3738
-rm -rf $(BUILDDIR)/*
3839

3940
html: clean
40-
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
41+
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(HTMLDIR)
4142
@echo
42-
@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
43+
@echo "Build finished. The HTML pages are in $(HTMLDIR)."
4344

4445
dirhtml:
4546
$(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml

0 commit comments

Comments
 (0)