Add debian packaging

This commit is contained in:
Ivan Habunek 2017-08-26 15:56:41 +02:00
parent e4c3a85045
commit 0ed906268c
5 changed files with 15 additions and 2 deletions

2
.gitignore vendored
View File

@ -2,9 +2,11 @@
*.pyc
.cache/
build/
deb_dist/
dist/
tmp/
.pypirc
/.env
/.coverage
/htmlcov
/toot-*.tar.gz

View File

@ -13,10 +13,13 @@ dist :
clean :
find . -name "*pyc" | xargs rm -rf $1
rm -rf build dist *.egg-info MANIFEST htmlcov
rm -rf build dist *.egg-info MANIFEST htmlcov deb_dist
publish :
twine upload dist/*
coverage:
py.test --cov=toot --cov-report html tests/
deb:
@python setup.py --command-packages=stdeb.command bdist_deb

View File

@ -1,4 +1,5 @@
pytest-cov~=2.4.0
pytest~=3.0.0
stdeb~=0.8.5
twine~=1.8.1
wheel~=0.29.0

View File

@ -30,7 +30,11 @@ setup(
'Programming Language :: Python :: 3.6',
],
packages=['toot'],
install_requires=install_requires,
install_requires=[
"requests>=2.13,<3.0",
"beautifulsoup4>=4.5.0,<5.0",
"future>=0.16",
],
entry_points={
'console_scripts': [
'toot=toot.console:main',

3
stdeb.cfg Normal file
View File

@ -0,0 +1,3 @@
[DEFAULT]
X-Python3-Version: >= 3.3
Copyright-File: LICENSE