8000 django-test-query-counter/setup.py at master · sophilabs/django-test-query-counter · GitHub
[go: up one dir, main page]

Skip to content
{"payload":{"allShortcutsEnabled":false,"fileTree":{"":{"items":[{"name":".github","path":".github","contentType":"directory"},{"name":"docs","path":"docs","contentType":"directory"},{"name":"test_query_counter","path":"test_query_counter","contentType":"directory"},{"name":"tests","path":"tests","contentType":"directory"},{"name":".coveragerc","path":".coveragerc","contentType":"file"},{"name":".editorconfig","path":".editorconfig","contentType":"file"},{"name":".gitignore","path":".gitignore","contentType":"file"},{"name":".travis.yml","path":".travis.yml","contentType":"file"},{"name":"AUTHORS.rst","path":"AUTHORS.rst","contentType":"file"},{"name":"CONTRIBUTING.rst","path":"CONTRIBUTING.rst","contentType":"file"},{"name":"HISTORY.rst","path":"HISTORY.rst","contentType":"file"},{"name":"LICENSE","path":"LICENSE","contentType":"file"},{"name":"MANIFEST.in","path":"MANIFEST.in","contentType":"file"},{"name":"Makefile","path":"Makefile","contentType":"file"},{"name":"README.rst","path":"README.rst","contentType":"file"},{"name":"archive-artifact.png","path":"archive-artifact.png","contentType":"file"},{"name":"build-action.png","path":"build-action.png","contentType":"file"},{"name":"cop.sh","path":"cop.sh","contentType":"file"},{"name":"logo.png","path":"logo.png","contentType":"file"},{"name":"manage.py","path":"manage.py","contentType":"file"},{"name":"requirements.txt","path":"requirements.txt","contentType":"file"},{"name":"requirements_dev.txt","path":"requirements_dev.txt","contentType":"file"},{"name":"requirements_test.txt","path":"requirements_test.txt","contentType":"file"},{"name":"runtests.py","path":"runtests.py","contentType":"file"},{"name":"setup.cfg","path":"setup.cfg","contentType":"file"},{"name":"setup.py","path":"setup.py","contentType":"file"},{"name":"tox.ini","path":"tox.ini","contentType":"file"}],"totalCount":27}},"fileTreeProcessingTime":11.336748,"foldersToFetch":[],"incompleteFileTree":false,"repo":{"id":97185362,"defaultBranch":"master","name":"django-test-query-counter","ownerLogin":"sophilabs","currentUserCanPush":false,"isFork":false,"isEmpty":false,"createdAt":"2017-07-14T02:41:51.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/899657?v=4","public":true,"private":false,"isOrgOwned":true},"codeLineWrapEnabled":false,"symbolsExpanded":false,"treeExpanded":true,"refInfo":{"name":"master","listCacheKey":"v0:1513200763.0","canEdit":false,"refType":"branch","currentOid":"467419b40c6b2cd3f19047522ee25d843b73d768"},"path":"setup.py","currentUser":null,"blob":{"rawLines":["#!/usr/bin/env python","# -*- coding: utf-8 -*-","import os","import re","import sys","","try:"," from setuptools import setup","except ImportError:"," from distutils.core import setup","","","def get_version(*file_paths):"," \"\"\"Retrieves the version from test_query_counter/__init__.py\"\"\""," filename = os.path.join(os.path.dirname(__file__), *file_paths)"," version_file = open(filename).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.')","","","version = get_version(\"test_query_counter\", \"__init__.py\")","","","if sys.argv[-1] == 'publish':"," try:"," import wheel"," print(\"Wheel version: \", wheel.__version__) # noqa"," except ImportError:"," print('Wheel library missing. Please run \"pip install wheel\"') # noqa"," sys.exit()"," os.system('python setup.py sdist upload')"," os.system('python setup.py bdist_wheel upload')"," sys.exit()","","if sys.argv[-1] == 'tag':"," print(\"Tagging the version on git:\") # noqa"," os.system(\"git tag -a %s -m 'version %s'\" % (version, version))"," os.system(\"git push --tags\")"," sys.exit()","","readme = open('README.rst').read()","history = open('HISTORY.rst').read().replace('.. :changelog:', '')","","setup("," name='django-test-query-counter',"," version=version,"," description=\"\"\"A Django Toolkit for controlling Query count when testing\"\"\","," long_description=readme + '\\n\\n' + history,"," author='Ignacio Avas',"," author_email='iavas@sophilabs.com',"," url='https://github.com/sophilabs/django-request-query-count',"," packages=["," 'test_query_counter',"," ],"," include_package_data=True,"," install_requires=[],"," license=\"MIT\","," zip_safe=False,"," keywords='django-test-query-counter',"," classifiers=["," 'Development Status :: 3 - Alpha',"," 'Framework :: Django',"," 'Framework :: Django :: 1.8',"," 'Framework :: Django :: 1.9',"," 'Framework :: Django :: 1.10',"," 'Intended Audience :: Developers',"," 'License :: OSI Approved :: BSD License',"," 'Natural Language :: English',"," 'Programming Language :: Python :: 2',"," 'Programming Language :: Python :: 2.7',"," 'Programming Language :: Python :: 3',"," 'Programming Language :: Python :: 3.3',"," 'Programming Language :: Python :: 3.4',"," 'Programming Language :: Python :: 3.5',"," ],",")"],"stylingDirectives":null,"colorizedLines":null,"csv":null,"csvError":null,"dependabotInfo":{"showConfigurationBanner":false,"configFilePath":null,"networkDependabotPath":"/sophilabs/django-test-query-counter/network/updates","dismissConfigurationNoticePath":"/settings/dismiss-notice/dependabot_configuration_notice","configurationNoticeDismissed":null},"displayName":"setup.py","displayUrl":"https://github.com/sophilabs/django-test-query-counter/blob/master/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":"https://desktop.github.com","isGitLfs":false,"onBranch":true,"shortPath":"8509bac","siteNavLoginPath":"/login?return_to=https%3A%2F%2Fgithub.com%2Fsophilabs%2Fdjango-test-query-counter%2Fblob%2Fmaster%2Fsetup.py","isCSV":false,"isRichtext":false,"toc":null,"lineInfo":{"truncatedLoc":"79","truncatedSloc":"69"},"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":"/sophilabs/django-test-query-counter/blob/master/setup.py","showFreeOrgGatedFeatureMessage":null,"showPlanSupportBanner":null,"upgradeDataAttributes":null,"upgradePath":null},"publishBannersInfo":{"dismissActionNoticePath":"/settings/dismiss-notice/publish_action_from_dockerfile","releasePath":"/sophilabs/django-test-query-counter/releases/new?marketplace=true","showPublishActionBanner":false},"rawBlobUrl":"https://github.com/sophilabs/django-test-query-counter/raw/refs/heads/master/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":null},"copilotInfo":null,"copilotAccessAllowed":false,"modelsAccessAllowed":false,"modelsRepoIntegrationEnabled":false,"csrf_tokens":{"/sophilabs/django-test-query-counter/branches":{"post":"JT903-tM-cqyvP7tfAvu6hFVXQo-wG0Cq-CvnV0gezK7vc4DVwalmhbCdyXlUYlMdwwQLVwnINgMZXiHPHVYhA"},"/repos/preferences":{"post":"txmf3N25DKjBo3ip1S2UuEKqzaz48FKb9abv_Ve7ocNBijoZU8NhRoC6YmGCnQGKpC_zX4AF8SEUJpuGeOdqAg"}}},"title":"django-test-query-counter/setup.py at master · sophilabs/django-test-query-counter","appPayload":{"helpUrl":"https://docs.github.com","findFileWorkerPath":"/assets-cdn/worker/find-file-worker-263cab1760dd.js","findInFileWorkerPath":"/assets-cdn/worker/find-in-file-worker-b84e9496fc59.js","githubDevUrl":null,"enabled_features":{"code_nav_ui_events":false,"react_blob_overlay":false,"accessible_code_button":true}}}
0