Uh oh!
There was an error while loading. Please reload this page.
forked from buriy/python-readability
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
Latest commit
executable file
·39 lines (35 loc) · 1.22 KB
/
Copy pathsetup.py
File metadata and controls
executable file
·39 lines (35 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/usr/bin/env python
# -*- coding: utf-8 -*-
importos
fromdistribute_setupimportuse_setuptools; use_setuptools()
fromsetuptoolsimportsetup, find_packages
rel_file=lambda*args: os.path.join(os.path.dirname(os.path.abspath(__file__)), *args)
cleanup=lambdalines: filter(None, map(lambdas: s.strip(), lines))
defread_from(filename):
fp=open(filename)
try:
returnfp.read()
finally:
fp.close()
defget_requirements():
returncleanup(read_from(rel_file('REQUIREMENTS')).splitlines())
setup(
name="readability-lxml",
version="0.2.6.2",
author="Roberto Alamos",
author_email="roberto@rebelmouse.com",
description="modification of buriy's readability tool",
test_suite="tests.test_article_only",
long_description="Given a html, it pulls out the main body text",
license="Apache License 2.0",
url="http://github.com/ralamosm/python-readability",
packages=find_packages(where='src'),
package_dir= {'': 'src'},
install_requires=get_requirements(),
classifiers=[
"Environment :: Web Environment",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python",
]
)