8000 python-readability/setup.py at v0.8.1 · buriy/python-readability · GitHub
[go: up one dir, main page]

Skip to content
{"payload":{"allShortcutsEnabled":false,"fileTree":{"":{"items":[{"name":"doc","path":"doc","contentType":"directory"},{"name":"readability","path":"readability","contentType":"directory"},{"name":"tests","path":"tests","contentType":"directory"},{"name":".gitignore","path":".gitignore","contentType":"file"},{"name":".travis.yml","path":".travis.yml","contentType":"file"},{"name":"LICENSE","path":"LICENSE","contentType":"file"},{"name":"Makefile","path":"Makefile","contentType":"file"},{"name":"README.rst","path":"README.rst","contentType":"file"},{"name":"requirements-dev.txt","path":"requirements-dev.txt","contentType":"file"},{"name":"requirements.txt","path":"requirements.txt","contentType":"file"},{"name":"setup.py","path":"setup.py","contentType":"file"},{"name":"tox.ini","path":"tox.ini","contentType":"file"}],"totalCount":12}},"fileTreeProcessingTime":7.385694,"foldersToFetch":[],"incompleteFileTree":false,"repo":{"id":1692659,"defaultBranch":"master","name":"python-readability","ownerLogin":"buriy","currentUserCanPush":false,"isFork":true,"isEmpty":false,"createdAt":"2011-05-02T18:51:48.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/21124?v=4","public":true,"private":false,"isOrgOwned":false},"codeLineWrapEnabled":false,"symbolsExpanded":false,"treeExpanded":true,"refInfo":{"name":"v0.8.1","listCacheKey":"v0:1746306661.0","canEdit":false,"refType":"tag","currentOid":"449dc2066b2773832b7efedcb83171a014c76ccb"},"path":"setup.py","currentUser":null,"blob":{"rawLines":["#!/usr/bin/env python","","from __future__ import print_function","import codecs","import os","import re","from setuptools import setup","import sys","","lxml_requirement = \"lxml\"","if sys.platform == \"darwin\":"," import platform",""," mac_ver = platform.mac_ver()[0]"," mac_ver_no = int(mac_ver.split(\".\")[1])"," if mac_ver_no \u003c 9:"," print(\"Using lxml\u003c2.4\")"," lxml_requirement = \"lxml\u003c2.4\"","","test_deps = ["," # Test timeouts"," \"timeout_decorator\",","]","","extras = {"," \"test\": test_deps,","}","","# Adapted from https://github.com/pypa/pip/blob/master/setup.py","def find_version(*file_paths):"," here = os.path.abspath(os.path.dirname(__file__))",""," # Intentionally *not* adding an encoding option to open, See:"," # https://github.com/pypa/virtualenv/issues/201#issuecomment-3145690"," with codecs.open(os.path.join(here, *file_paths), \"r\") as fp:"," version_file = fp.read()"," version_match = re.search("," r\"^__version__ = ['\\\"]([^'\\\"]*)['\\\"]\", version_file, re.M,"," )"," if version_match:"," return version_match.group(1)",""," raise RuntimeError(\"Unable to find version string.\")","","","setup("," name=\"readability-lxml\","," version=find_version(\"readability\", \"__init__.py\"),"," author=\"Yuri Baburov\","," author_email=\"burchik@gmail.com\","," 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\"],"," install_requires=[\"chardet\", lxml_requirement, \"cssselect\"],"," tests_require=test_deps,"," extras_require=extras,"," classifiers=["," \"Environment :: Web Environment\","," \"Intended Audience :: Developers\","," \"Operating System :: OS Independent\","," \"Topic :: Text Processing :: Indexing\","," \"Topic :: Utilities\","," \"Topic :: Internet\","," \"Topic :: Software Development :: Libraries :: Python Modules\","," \"Programming Language :: Python\","," \"Programming Language :: Python :: 2\","," \"Programming Language :: Python :: 2.7\","," \"Programming Language :: Python :: 3\","," \"Programming Language :: Python :: 3.5\","," \"Programming Language :: Python :: 3.6\","," \"Programming Language :: Python :: 3.7\","," \"Programming Language :: Python :: 3.8\","," ],",")"],"stylingDirectives":null,"colorizedLines":null,"csv":null,"csvError":null,"dependabotInfo":{"showConfigurationBanner":false,"configFilePath":null,"networkDependabotPath":"/buriy/python-readability/network/updates","dismissConfigurationNoticePath":"/settings/dismiss-notice/dependabot_configuration_notice","configurationNoticeDismissed":null},"displayName":"setup.py","displayUrl":"https://github.com/buriy/python-readability/blob/v0.8.1/setup.py?raw=true","headerInfo":{"blobSize":"2.43 KB","deleteTooltip":"You must be signed in to make or propose changes","editTooltip":"You must be signed in to make or propose changes","ghDesktopPath":null,"isGitLfs":false,"onBranch":false,"shortPath":"da90e87","siteNavLoginPath":"/login?return_to=https%3A%2F%2Fgithub.com%2Fburiy%2Fpython-readability%2Fblob%2Fv0.8.1%2Fsetup.py","isCSV":false,"isRichtext":false,"toc":null,"lineInfo":{"truncatedLoc":"78","truncatedSloc":"68"},"mode":"executable file"},"image":false,"isCodeownersFile":null,"isPlain":false,"isValidLegacyIssueTemplate":false,"issueTemplate":null,"discussionTemplate":null,"language":"Python","languageID":303,"large":false,"planSupportInfo":{"repoIsFork":null,"repoOwnedByCurrentUser":null,"requestFullPath":"/buriy/python-readability/blob/v0.8.1/setup.py","showFreeOrgGatedFeatureMessage":null,"showPlanSupportBanner":null,"upgradeDataAttributes":null,"upgradePath":null},"publishBannersInfo":{"dismissActionNoticePath":"/settings/dismiss-notice/publish_action_from_dockerfile","releasePath":"/buriy/python-readability/releases/new?marketplace=true","showPublishActionBanner":false},"rawBlobUrl":"https://github.com/buriy/python-readability/raw/refs/tags/v0.8.1/setup.py","renderImageOrRaw":false,"richText":null,"renderedFileInfo":null,"shortPath":null,"symbolsEnabled":true,"tabSize":8,"topBannersInfo":{"overridingGlobalFundingFile":false,"globalPreferredFundingPath":null,"showInvalidCitationWarning":false,"citationHelpUrl":"https://docs.github.com/github/creating-cloning-and-archiving-repositories/creating-a-repository-on-github/about-citation-files","actionsOnboardingTip":null},"truncated":false,"viewable":true,"workflowRedirectUrl":null,"symbols":{"timed_out":false,"not_analyzed":false,"symbols":[{"name":"lxml_requirement","kind":"constant","ident_start":136,"ident_end":152,"extent_start":136,"extent_end":161,"fully_qualified_name":"lxml_requirement","ident_utf16":{"start":{"line_number":9,"utf16_col":0},"end":{"line_number":9,"utf16_col":16}},"extent_utf16":{"start":{"line_number":9,"utf16_col":0},"end":{"line_number":9,"utf16_col":25}}},{"name":"test_deps","kind":"constant","ident_start":386,"ident_end":395,"extent_start":386,"extent_end":446,"fully_qualified_name":"test_deps","ident_utf16":{"start":{"line_number":19,"utf16_col":0},"end":{"line_number":19,"utf16_col":9}},"extent_utf16":{"start":{"line_number":19,"utf16_col":0},"end":{"line_number":22,"utf16_col":1}}},{"name":"extras","kind":"constant","ident_start":448,"ident_end":454,"extent_start":448,"extent_end":483,"fully_qualified_name":"extras","ident_utf16":{"start":{"line_number":24,"utf16_col":0},"end":{"line_number":24,"utf16_col":6}},"extent_utf16":{"start":{"line_number":24,"utf16_col":0},"end":{"line_number":26,"utf16_col":1}}},{"name":"find_version","kind":"function","ident_start":553,"ident_end":565,"extent_start":549,"extent_end":1116,"fully_qualified_name":"find_version","ident_utf16":{"start":{"line_number":29,"utf16_col":4},"end":{"line_number":29,"utf16_col":16}},"extent_utf16":{"start":{"line_number":29,"utf16_col":0},"end":{"line_number":42,"utf16_col":56}}}]}},"copilotInfo":null,"copilotAccessAllowed":false,"modelsAccessAllowed":false,"modelsRepoIntegrationEnabled":false,"csrf_tokens":{"/buriy/python-readability/branches":{"post":"FHbRTZF7KvRSoVg1EElNkvQSAH1cLEF12teC3gfU5XBgj0ode56fua1qIOKpzpMcwqTclWnuQ5tnuSI77GTaFA"},"/repos/preferences":{"post":"6fFfQhB8M--_VTuLbNZTSlGwUJDo92PsWFOjBXRhPAbKzE1a28ejPbj6NITm_9vT0Tg8-nq1hKHo6jXZPl03Hw"}}},"title":"python-readability/setup.py at v0.8.1 · buriy/python-readability","appPayload":{"helpUrl":"https://docs.github.com","findFileWorkerPath":"/assets-cdn/worker/find-file-worker-7d7eb7c71814.js","findInFileWorkerPath":"/assets-cdn/worker/find-in-file-worker-1ae9fa256942.js","githubDevUrl":null,"enabled_features":{"code_nav_ui_events":false,"react_blob_overlay":false,"accessible_code_button":true,"github_models_repo_integration":false}}}
0