Releases packaging improvements.

pull/152/head v0.8.1
Yuri Baburov 4 years ago
parent bb81dc2c74
commit 449dc2066b

7
.gitignore vendored

@ -1,7 +1,8 @@
*.pyc *.pyc
__pycache__
*.egg-info *.egg-info
build /build
dist /dist
/bin /bin
/include /include
/lib /lib
@ -12,3 +13,5 @@ nosetests.xml
.tox .tox
.idea .idea
.cache .cache
/.noseids
/.venv

@ -4,6 +4,7 @@ PY := .venv/bin/python
PIP := .venv/bin/pip PIP := .venv/bin/pip
PEP8 := .venv/bin/pep8 PEP8 := .venv/bin/pep8
NOSE := .venv/bin/nosetests NOSE := .venv/bin/nosetests
TWINE := twine
# ########### # ###########
# Tests rule! # Tests rule!
@ -12,22 +13,24 @@ NOSE := .venv/bin/nosetests
test: venv develop $(NOSE) test: venv develop $(NOSE)
$(NOSE) --with-id -s tests $(NOSE) --with-id -s tests
$(NOSE): $(NOSE): setup
$(PIP) install nose pep8 coverage
# ####### # #######
# INSTALL # INSTALL
# ####### # #######
.PHONY: all .PHONY: all
all: venv develop all: setup develop
venv: .venv/bin/python venv: .venv/bin/python
setup: venv
$(PIP) install -r requirements-dev.txt
.venv/bin/python: .venv/bin/python:
virtualenv .venv virtualenv .venv
.PHONY: clean_venv .PHONY: clean
clean_venv: clean:
rm -rf .venv rm -rf .venv
develop: .venv/lib/python*/site-packages/readability-lxml.egg-link develop: .venv/lib/python*/site-packages/readability-lxml.egg-link
@ -48,11 +51,12 @@ clean_all: clean_venv
# ########### # ###########
.PHONY: dist .PHONY: dist
dist: dist:
$(PY) setup.py sdist $(PY) setup.py sdist bdist_wheel
$(TWINE) check dist/*
.PHONY: upload .PHONY: upload
upload: upload:
$(PY) setup.py sdist upload $(TWINE) upload dist/*
.PHONY: version_update .PHONY: version_update
version_update: version_update:

@ -52,7 +52,7 @@ Change Log
- 0.3 Added Document.encoding, positive\_keywords and negative\_keywords - 0.3 Added Document.encoding, positive\_keywords and negative\_keywords
Licensing Licensing
-------- ---------
This code is under `the Apache License This code is under `the Apache License
2.0 <http://www.apache.org/licenses/LICENSE-2.0>`__ license. 2.0 <http://www.apache.org/licenses/LICENSE-2.0>`__ license.

@ -0,0 +1,6 @@
lxml
chardet
nose
pep8
coverage
timeout_decorator

@ -48,9 +48,10 @@ setup(
version=find_version("readability", "__init__.py"), version=find_version("readability", "__init__.py"),
author="Yuri Baburov", author="Yuri Baburov",
author_email="burchik@gmail.com", author_email="burchik@gmail.com",
description="fast html to text parser (article readability tool) with python3 support", description="fast html to text parser (article readability tool) with python 3 support",
test_suite="tests.test_article_only", test_suite="tests.test_article_only",
long_description=open("README.rst").read(), long_description=open("README.rst").read(),
long_description_content_type='text/x-rst',
license="Apache License 2.0", license="Apache License 2.0",
url="http://github.com/buriy/python-readability", url="http://github.com/buriy/python-readability",
packages=["readability", "readability.compat"], packages=["readability", "readability.compat"],

Loading…
Cancel
Save