Add debian packaging

pull/31/head
Ivan Habunek 2017-08-26 15:56:41 +02:00
rodzic e4c3a85045
commit 0ed906268c
5 zmienionych plików z 15 dodań i 2 usunięć

2
.gitignore vendored
Wyświetl plik

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

Wyświetl plik

@ -13,10 +13,13 @@ dist :
clean : clean :
find . -name "*pyc" | xargs rm -rf $1 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 : publish :
twine upload dist/* twine upload dist/*
coverage: coverage:
py.test --cov=toot --cov-report html tests/ py.test --cov=toot --cov-report html tests/
deb:
@python setup.py --command-packages=stdeb.command bdist_deb

Wyświetl plik

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

Wyświetl plik

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

3
stdeb.cfg 100644
Wyświetl plik

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