Skip to content

Commit

Permalink
Releases packaging improvements.
Browse files Browse the repository at this point in the history
  • Loading branch information
buriy committed Jul 4, 2020
1 parent bb81dc2 commit 449dc20
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 11 deletions.
7 changes: 5 additions & 2 deletions .gitignore
@@ -1,7 +1,8 @@
*.pyc
__pycache__
*.egg-info
build
dist
/build
/dist
/bin
/include
/lib
Expand All @@ -12,3 +13,5 @@ nosetests.xml
.tox
.idea
.cache
/.noseids
/.venv
18 changes: 11 additions & 7 deletions Makefile
Expand Up @@ -4,6 +4,7 @@ PY := .venv/bin/python
PIP := .venv/bin/pip
PEP8 := .venv/bin/pep8
NOSE := .venv/bin/nosetests
TWINE := twine

# ###########
# Tests rule!
Expand All @@ -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
Expand All @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Expand Up @@ -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.
Expand Down
6 changes: 6 additions & 0 deletions requirements-dev.txt
@@ -0,0 +1,6 @@
lxml
chardet
nose
pep8
coverage
timeout_decorator
3 changes: 2 additions & 1 deletion setup.py
Expand Up @@ -48,9 +48,10 @@ def find_version(*file_paths):
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"],
Expand Down

0 comments on commit 449dc20

Please sign in to comment.