File tree 5 files changed +25
-11
lines changed
5 files changed +25
-11
lines changed Original file line number Diff line number Diff line change 1
1
* .pyc
2
+ __pycache__
2
3
* .egg-info
3
- build
4
- dist
4
+ / build
5
+ / dist
5
6
/bin
6
7
/include
7
8
/lib
@@ -12,3 +13,5 @@ nosetests.xml
12
13
.tox
13
14
.idea
14
15
.cache
16
+ /.noseids
17
+ /.venv
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ PY := .venv/bin/python
4
4
PIP := .venv/bin/pip
5
5
PEP8 := .venv/bin/pep8
6
6
NOSE := .venv/bin/nosetests
7
+ TWINE := twine
7
8
8
9
# ###########
9
10
# Tests rule!
@@ -12,22 +13,24 @@ NOSE := .venv/bin/nosetests
12
13
test : venv develop $(NOSE )
13
14
$(NOSE ) --with-id -s tests
14
15
15
- $(NOSE ) :
16
- $(PIP ) install nose pep8 coverage
16
+ $(NOSE ) : setup
17
17
18
18
# #######
19
19
# INSTALL
20
20
# #######
21
21
.PHONY : all
22
- all : venv develop
22
+ all : setup develop
23
23
24
24
venv : .venv/bin/python
25
25
26
+ setup : venv
27
+ $(PIP ) install -r requirements-dev.txt
28
+
26
29
.venv/bin/python :
27
30
virtualenv .venv
28
31
29
- .PHONY : clean_venv
30
- clean_venv :
32
+ .PHONY : clean
33
+ clean :
31
34
rm -rf .venv
32
35
33
36
develop : .venv/lib/python* /site-packages/readability-lxml.egg-link
@@ -48,11 +51,12 @@ clean_all: clean_venv
48
51
# ###########
49
52
.PHONY : dist
50
53
dist :
51
- $(PY ) setup.py sdist
54
+ $(PY ) setup.py sdist bdist_wheel
55
+ $(TWINE ) check dist/*
52
56
53
57
.PHONY : upload
54
58
upload :
55
- $(PY ) setup.py sdist upload
59
+ $(TWINE ) upload dist/ *
56
60
57
61
.PHONY : version_update
58
62
version_update :
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ Change Log
52
52
- 0.3 Added Document.encoding, positive\_ keywords and negative\_ keywords
53
53
54
54
Licensing
55
- --------
55
+ ---------
56
56
57
57
This code is under `the Apache License
58
58
2.0 <http://www.apache.org/licenses/LICENSE-2.0> `__ license.
Original file line number Diff line number Diff line change
1
+ lxml
2
+ chardet
3
+ nose
4
+ pep8
5
+ coverage
6
+ timeout_decorator
Original file line number Diff line number Diff line change @@ -48,9 +48,10 @@ def find_version(*file_paths):
48
48
version = find_version ("readability" , "__init__.py" ),
49
49
author = "Yuri Baburov" ,
50
50
51
- description = "fast html to text parser (article readability tool) with python3 support" ,
51
+ description = "fast html to text parser (article readability tool) with python 3 support" ,
52
52
test_suite = "tests.test_article_only" ,
53
53
long_description = open ("README.rst" ).read (),
54
+ long_description_content_type = 'text/x-rst' ,
54
55
license = "Apache License 2.0" ,
55
56
url = "http://github.com/buriy/python-readability" ,
56
57
packages = ["readability" , "readability.compat" ],
You can’t perform that action at this time.
0 commit comments