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
__pycache__
*.egg-info
build
dist
/build
/dist
/bin
/include
/lib
@ -12,3 +13,5 @@ nosetests.xml
.tox
.idea
.cache
/.noseids
/.venv

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

@ -52,7 +52,7 @@ Change Log
- 0.3 Added Document.encoding, positive\_keywords and negative\_keywords
Licensing
--------
---------
This code is under `the Apache 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"),
author="Yuri Baburov",
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",
long_description=open("README.rst").read(),
long_description_content_type='text/x-rst',
license="Apache License 2.0",
url="http://github.com/buriy/python-readability",
packages=["readability", "readability.compat"],

Loading…
Cancel
Save