Skip to content

Commit

Permalink
use stdeb for making a package #38
Browse files Browse the repository at this point in the history
  • Loading branch information
infothrill committed Mar 23, 2015
1 parent bf50a1b commit 8a598fa
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ __pycache__/
# Distribution / packaging
bin/
build/
deb_dist/
develop-eggs/
dist/
eggs/
Expand Down
22 changes: 17 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
.PHONY: init test coverage install publish docs-init docs clean

PYTHON=python

init:
pip install -r requirements.txt

test:
python setup.py test
$(PYTHON) setup.py test

coverage:
coverage run --source=dyndnsc setup.py test
Expand All @@ -14,12 +16,12 @@ coveralls:
coveralls

install:
python setup.py install
$(PYTHON) setup.py install

publish:
python setup.py register
python setup.py sdist upload
python setup.py bdist_wheel upload
$(PYTHON) setup.py register
$(PYTHON) setup.py sdist upload
$(PYTHON) setup.py bdist_wheel upload


docs-init:
Expand All @@ -29,10 +31,20 @@ docs:
cd docs && make html
@echo "\033[95m\n\nBuild successful! View the docs homepage at docs/_build/html/index.html.\n\033[0m"

deb:
# this requires `apt-get install debhelper python3-all`
# Please note that this is not the way "official" debian packages are built
# Please also note that dyndnsc is best supported in python3, so debs for python2 are
# simply left out.
pip install stdeb
$(PYTHON) setup.py --command-packages=stdeb.command bdist_deb


clean:
@echo "Cleaning up distutils stuff"
rm -rf build
rm -rf dist
rm -rf deb_dist
rm -rf *.egg
rm -rf *.egg-info
@echo "Cleaning up byte compiled python stuff"
Expand Down

0 comments on commit 8a598fa

Please sign in to comment.