GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — python-readability/setup.py at master · hyperlinkapp/python-readability Expand file tree/ Copy pathsetup.pyMore file actions executable file ·42 lines (37 loc) · 1.18 KB / Copy pathsetup.pyFile metadata and controlsexecutable file ·42 lines (37 loc) · 1.18 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 40 41 42 #!/usr/bin/env python from setuptools import setup, find_packages import sys def _str_to_version_tuple(version): return tuple([int(i) for i in version.split('.')]) lxml_requirement = "lxml" if sys.platform == 'darwin': import platform # Solve bad case of comparison like 10.9 v.s. 10.10.1 mac_ver = _str_to_version_tuple(platform.mac_ver()[0]) cutoff_ver= _str_to_version_tuple('10.9') if mac_ver < cutoff_ver: print("Using lxml<2.4") lxml_requirement = "lxml<2.4" setup( name="PyReadability", version="0.4.0", author="Yuri Baburov", description="fast python port of arc90's readability tool", test_suite = "tests.test_article_only", long_description=open("README").read(), license="Apache License 2.0", url="http://github.com/hyperlinkapp/python-readability", packages=['readability'], install_requires=[ "chardet", "cssselect", lxml_requirement ], classifiers=[ "Environment :: Web Environment", "Intended Audience :: Developers", "Operating System :: OS Independent", "Programming Language :: Python", ], ) |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |