Skip to content

Commit 62e153e

Browse files
committed
Start to update the module for a better directory layout
1 parent d11b928 commit 62e153e

5 files changed

Lines changed: 16 additions & 811 deletions

File tree

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ NOSE := bin/nosetests
1111
# ###########
1212
.PHONY: test
1313
test: venv $(NOSE)
14-
$(NOSE) --with-id -s tests
14+
$(NOSE) --with-id -s src/tests
1515

1616
$(NOSE):
1717
$(PY) setup.py test
@@ -28,7 +28,7 @@ bin/python:
2828

2929
.PHONY: clean_venv
3030
clean_venv:
31-
rm -rf bin include lib local man
31+
rm -rf bin include lib local man share
3232

3333
.PHONY: develop
3434
develop: lib/python*/site-packages/readability_lxml.egg-link

setup.py

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,23 @@
2121
keywords='readable read parse html document readability',
2222
long_description=open("README").read(),
2323
license="Apache License 2.0",
24-
url="http://github.com/buriy/python-readability",
25-
package_dir={'': 'readability'},
26-
packages=find_packages('readability', exclude=["*.tests", "*.tests.*"]),
27-
install_requires=install_requires,
28-
extras_require={'test': tests_require},
29-
test_suite = "nose.collector",
30-
# test_suite="tests.test_article_only",
3124
classifiers=[
3225
"Environment :: Web Environment",
3326
"Intended Audience :: Developers",
3427
"Operating System :: OS Independent",
3528
"Programming Language :: Python",
36-
],
29+
],
30+
url="http://github.com/buriy/python-readability",
31+
packages=find_packages('src'),
32+
package_dir = {'': 'src'},
33+
include_package_data=True,
34+
zip_safe=False,
35+
install_requires=install_requires,
36+
extras_require={'test': tests_require},
37+
test_suite = "nose.collector",
38+
entry_points={
39+
'console_scripts':
40+
['readability=readability_lxml:client.main']
41+
},
42+
3743
)

tests/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)