You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{"payload":{"allShortcutsEnabled":false,"fileTree":{"":{"items":[{"name":".github","path":".github","contentType":"directory"},{"name":"doc","path":"doc","contentType":"directory"},{"name":"pyperformance","path":"pyperformance","contentType":"directory"},{"name":".gitignore","path":".gitignore","contentType":"file"},{"name":"AUTHORS","path":"AUTHORS","contentType":"file"},{"name":"BENCHMARKS_FORMAT.md","path":"BENCHMARKS_FORMAT.md","contentType":"file"},{"name":"COPYING","path":"COPYING","contentType":"file"},{"name":"MANIFEST.in","path":"MANIFEST.in","contentType":"file"},{"name":"README.rst","path":"README.rst","contentType":"file"},{"name":"TODO.rst","path":"TODO.rst","contentType":"file"},{"name":"azure-pipelines.yml","path":"azure-pipelines.yml","contentType":"file"},{"name":"benchmarks","path":"benchmarks","contentType":"symlink_directory"},{"name":"requirements.in","path":"requirements.in","contentType":"file"},{"name":"requirements.txt","path":"requirements.txt","contentType":"symlink_file"},{"name":"runtests.py","path":"runtests.py","contentType":"file"},{"name":"setup.py","path":"setup.py","contentType":"file"},{"name":"tox.ini","path":"tox.ini","contentType":"file"}],"totalCount":17}},"fileTreeProcessingTime":28.217139,"foldersToFetch":[],"incompleteFileTree":false,"repo":{"id":65949828,"defaultBranch":"main","name":"pyperformance","ownerLogin":"python","currentUserCanPush":false,"isFork":false,"isEmpty":false,"createdAt":"2016-08-17T23:43:22.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/1525981?v=4","public":true,"private":false,"isOrgOwned":true},"codeLineWrapEnabled":false,"symbolsExpanded":false,"treeExpanded":true,"refInfo":{"name":"1.0.4","listCacheKey":"v0:1747766422.0","canEdit":false,"refType":"tag","currentOid":"034f58be960ee88010b7a8046265ca88f0c35aa4"},"path":"setup.py","currentUser":null,"blob":{"rawLines":["#!/usr/bin/env python3","","# FIXME:","#","# - REENABLE HG_STARTUP BENCHMARK.","# - REENABLE GENSHI BENCHMARK.","#","# Update dependencies:","#","# - python3 -m pip install --user --upgrade pip-tools","# - git clean -fdx # remove all untracked files!","# - (pip-compile --upgrade -o requirements.txt requirements.in)","#","# Prepare a release:","#","# - git pull --rebase","# - Remove untracked files/dirs: git clean -fdx","# - maybe update version in pyperformance/__init__.py and doc/conf.py","# - set release date in doc/changelog.rst","# - git commit -a -m \"prepare release x.y\"","# - run tests: tox --parallel auto","# - git push","# - check the CI status:","# https://github.com/python/pyperformance/actions","#","# Release a new version:","#","# - git tag VERSION","# - git push --tags","# - Remove untracked files/dirs: git clean -fdx","# - python3 setup.py sdist bdist_wheel","# - twine upload dist/*","#","# After the release:","#","# - set version to n+1: pyperformance/__init__.py and doc/conf.py","# - git commit -a -m \"post-release\"","# - git push","","# Import just to get the version","import pyperformance","","VERSION = pyperformance.__version__","","DESCRIPTION = 'Python benchmark suite'","CLASSIFIERS = ["," 'Development Status :: 5 - Production/Stable',"," 'Intended Audience :: Developers',"," 'License :: OSI Approved :: MIT License',"," 'Natural Language :: English',"," 'Operating System :: OS Independent',"," 'Programming Language :: Python :: 3',"," 'Programming Language :: Python',","]","","","# put most of the code inside main() to be able to import setup.py in","# unit tests","def main():"," import io"," import os.path"," from setuptools import setup, find_packages",""," with io.open('README.rst', encoding=\"utf8\") as fp:"," long_description = fp.read().strip()",""," options = {"," 'name': 'pyperformance',"," 'version': VERSION,"," 'author': 'Collin Winter and Jeffrey Yasskin',"," 'license': 'MIT license',"," 'description': DESCRIPTION,"," 'long_description': long_description,"," 'url': 'https://github.com/python/benchmarks',"," 'classifiers': CLASSIFIERS,"," 'packages': find_packages(),"," 'include_package_data': True,"," 'entry_points': {"," 'console_scripts': ['pyperformance=pyperformance.cli:main']"," },"," 'install_requires': [\"pyperf\", \"toml\", \"packaging\"],"," }"," setup(**options)","","","if __name__ == '__main__':"," main()"],"stylingDirectives":null,"colorizedLines":null,"csv":null,"csvError":null,"dependabotInfo":{"showConfigurationBanner":false,"configFilePath":null,"networkDependabotPath":"/python/pyperformance/network/updates","dismissConfigurationNoticePath":"/settings/dismiss-notice/dependabot_configuration_notice","configurationNoticeDismissed":null},"displayName":"setup.py","displayUrl":"https://github.com/python/pyperformance/blob/1.0.4/setup.py?raw=true","headerInfo":{"blobSize":"2.33 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":"5570e27","siteNavLoginPath":"/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fpyperformance%2Fblob%2F1.0.4%2Fsetup.py","isCSV":false,"isRichtext":false,"toc":null,"lineInfo":{"truncatedLoc":"87","truncatedSloc":"77"},"mode":"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":"/python/pyperformance/blob/1.0.4/setup.py","showFreeOrgGatedFeatureMessage":null,"showPlanSupportBanner":null,"upgradeDataAttributes":null,"upgradePath":null},"publishBannersInfo":{"dismissActionNoticePath":"/settings/dismiss-notice/publish_action_from_dockerfile","releasePath":"/python/pyperformance/releases/new?marketplace=true","showPublishActionBanner":false},"rawBlobUrl":"https://github.com/python/pyperformance/raw/refs/tags/1.0.4/setup.py","renderImageOrRaw":false,"richText":null,"renderedFileInfo":null,"shortPath":null,"symbolsEnabled":true,"tabSize":8,"topBannersInfo":{"overridingGlobalFundingFile":false,"globalPreferredFundingPath":"/python/.github/blob/5a0a7cb55767fb3667fe2391bcb66bda638edcb4/FUNDING.yml","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":"VERSION","kind":"constant","ident_start":1067,"ident_end":1074,"extent_start":1067,"extent_end":1102,"fully_qualified_name":"VERSION","ident_utf16":{"start":{"line_number":42,"utf16_col":0},"end":{"line_number":42,"utf16_col":7}},"extent_utf16":{"start":{"line_number":42,"utf16_col":0},"end":{"line_number":42,"utf16_col":35}}},{"name":"DESCRIPTION","kind":"constant","ident_start":1104,"ident_end":1115,"extent_start":1104,"extent_end":1142,"fully_qualified_name":"DESCRIPTION","ident_utf16":{"start":{"line_number":44,"utf16_col":0},"end":{"line_number":44,"utf16_col":11}},"extent_utf16":{"start":{"line_number":44,"utf16_col":0},"end":{"line_number":44,"utf16_col":38}}},{"name":"CLASSIFIERS","kind":"constant","ident_start":1143,"ident_end":1154,"extent_start":1143,"extent_end":1454,"fully_qualified_name":"CLASSIFIERS","ident_utf16":{"start":{"line_number":45,"utf16_col":0},"end":{"line_number":45,"utf16_col":11}},"extent_utf16":{"start":{"line_number":45,"utf16_col":0},"end":{"line_number":53,"utf16_col":1}}},{"name":"main","kind":"function","ident_start":1544,"ident_end":1548,"extent_start":1540,"extent_end":2345,"fully_qualified_name":"main","ident_utf16":{"start":{"line_number":58,"utf16_col":4},"end":{"line_number":58,"utf16_col":8}},"extent_utf16":{"start":{"line_number":58,"utf16_col":0},"end":{"line_number":82,"utf16_col":20}}}]}},"copilotInfo":null,"copilotAccessAllowed":false,"modelsAccessAllowed":false,"modelsRepoIntegrationEnabled":false,"csrf_tokens":{"/python/pyperformance/branches":{"post":"SUv2UNdUMPlDsgAYqkUKVk7VP718qPvYgbLmeSU6Ez1IE9kYBpj7_3_fbRutYfkmdrvhtgno4lBk-cXFZzvxfA"},"/repos/preferences":{"post":"DzjL1D_o3hs2tOG7a0V47Mm-d64G4Wrvg-9-_Jd1bWkqGR6TjOF2TwEvZ981pWDbMUchQu_D2eAJiXwJcyDIMw"}}},"title":"pyperformance/setup.py at 1.0.4 · python/pyperformance","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}}}