conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Change name of the package from admin_tools_zinnia to admin-tools-zinnia\n"
},
{
"from": "human",
"value": "\"\"\"Setup script for admin-tools-zinnia\"\"\"\nfrom setuptools import setup\nfrom setuptools import find_packages\n\nimport admin_tools_zinnia\n\nsetup(\n ... | python | chosen |
[
{
"from": "system",
"value": "Edit handler fix is backwards incompatible with Wagtail <= 0.8\n"
},
{
"from": "human",
"value": "#!/usr/bin/env python\n\"\"\"\nInstall wagtailnews using setuptools\n\"\"\"\n\nfrom wagtailnews import __version__\n\nwith open('README.rst', 'r') as f:\n readme = f... | python | chosen |
[
{
"from": "system",
"value": "Add missing dependency required to run tests.\n"
},
{
"from": "human",
"value": "# coding: utf-8\n\nimport sys\n\nfrom setuptools import setup\n\ninstall_requires = []\n\nif sys.version_info < (2, 7):\n raise DeprecationWarning('Python 2.6 and older are no longer... | python | chosen |
[
{
"from": "system",
"value": "Stop installing the 'forum' demo project (but still ship it in the release tarball).\n"
},
{
"from": "human",
"value": "import os\nfrom setuptools import setup, find_packages\n\noverview = file('docs/overview.txt')\ndata = overview.read()\noverview.close()\n\nsetup(... | python | chosen |
[
{
"from": "system",
"value": "Fix for Python 3.4 extension compilation.\n\nAn extra extension compilation option introduced in Python 3.4 collided with\n-std=c99; added -Wno-declaration-after-statement negates this.\n"
},
{
"from": "human",
"value": "#!/usr/bin/env python\n# -*- coding: utf-8 -*... | python | chosen |
[
{
"from": "system",
"value": "Add header and url to package_data to fix pip installs from VCS\n\npip installations directly from VCS does not include the `header`\nand `url` modules by default, so they have to be included in the\n`package_data` dependency in setup.py.\n"
},
{
"from": "human",
"v... | python | chosen |
[
{
"from": "system",
"value": "Fix the inclusion of the TODO.rst file.\n"
},
{
"from": "human",
"value": "import os\n\nfrom setuptools import setup, find_packages\n\ndef read(*paths):\n \"\"\"Build a file path from *paths* and return the contents.\"\"\"\n with open(os.path.join(*paths), 'r'... | python | chosen |
[
{
"from": "system",
"value": "Prepare package for v2.0.1 release\n\nThe most important change in this release is the fix for the `apns-send` error when attempting to `pip install` this package."
},
{
"from": "human",
"value": "from distutils.core import setup\n\nsetup(\n author = 'Simon Whita... | python | chosen |
[
{
"from": "system",
"value": "Revert \"Pinning restclients to 1.1.\"\n\nThis reverts commit 0d33ddd392d33c7eca57289554feedd25b851ca2.\n"
},
{
"from": "human",
"value": "import os\nfrom setuptools import setup\n\nREADME = open(os.path.join(os.path.dirname(__file__), 'README.md')).read()\n\n# allo... | python | chosen |
[
{
"from": "system",
"value": "Add in python patterns for py pkg test\n"
},
{
"from": "human",
"value": "# capture executables on all nodes\nhostname_patterns = [\n ['KEEP', '.*']\n]\npath_patterns = [\n ['PKGS', r'.*\\/test_record_pkg'],\n ['SKIP', r'.*\\/lua'],\n ['SKIP', r'.*\\/expr'],\n ... | python | chosen |
[
{
"from": "system",
"value": "Add get message details code.\n"
},
{
"from": "human",
"value": "import requests\n\nACCOUNT_SID = None\nAUTH_TOKEN = None\nFROM_NUMBER = None\n\nresponse = requests.post(\n 'https://{account_sid}:{auth_token}@api.twilio.com/2010-04-01/Accounts/{account_sid}/Messa... | python | chosen |
[
{
"from": "system",
"value": "Use render, rather than render_to_response\n"
},
{
"from": "human",
"value": "#!/usr/bin/env python\n# vim: ai ts=4 sts=4 et sw=4\n\nfrom django.contrib.auth.decorators import login_required\nfrom django.contrib.auth.views import login as django_login\nfrom django.c... | python | chosen |
[
{
"from": "system",
"value": "Fix misprint after adding push/pull sockets.\n"
},
{
"from": "human",
"value": "\"\"\"\nZeroMQ integration into Twisted reactor.\n\"\"\"\nfrom txzmq.connection import ZmqConnection, ZmqEndpoint, ZmqEndpointType\nfrom txzmq.factory import ZmqFactory\nfrom txzmq.pubsu... | python | chosen |
[
{
"from": "system",
"value": "Fix a field lookup to be compatible with all versions of Django.\n\nRecent versions of Django removed Meta.get_field_by_name(), which our\nbuilt-in evolutions were trying to use. Fortunately, all supported\nversions have Meta.get_field(), which works just as well. This change\n... | python | chosen |
[
{
"from": "system",
"value": "FIX only sponsorships can go through waiting_welcome state\n"
},
{
"from": "human",
"value": "# -*- coding: utf-8 -*-\n##############################################################################\n#\n# Copyright (C) 2017 Compassion CH (http://www.compassion.ch)... | python | chosen |
[
{
"from": "system",
"value": "Disable README test (too long)\n"
},
{
"from": "human",
"value": "\nimport os\n\ndef test_README():\n\tthisDir = os.path.dirname(os.path.realpath(__file__))\n\tparentDir = os.path.dirname(thisDir)\n\treadmePath = os.path.join(parentDir,'README.rst')\n\n\treadmeTestP... | python | chosen |
[
{
"from": "system",
"value": "Change LoginForm parameter for BooleanField\n"
},
{
"from": "human",
"value": "from flask_wtf import Form\nfrom wtforms import StringField, PasswordField, SubmitField, RadioField, validators, IntegerField, BooleanField\nfrom wtforms.validators import DataRequired, E... | python | chosen |
[
{
"from": "system",
"value": "Improve ObjectWithoutField.__str__ to idenfify singleton values\n\nSigned-off-by: Stefan Marr <46f1a0bd5592a2f9244ca321b129902a06b53e03@stefan-marr.de>\n"
},
{
"from": "human",
"value": "from rlib.jit import promote\n\nfrom som.vmobjects.abstract_object import Abstr... | python | chosen |
[
{
"from": "system",
"value": "Use .get methods when retrieving uuid keys\n"
},
{
"from": "human",
"value": "#!/usr/bin/env python\nimport argparse\nfrom bioblend import galaxy\nimport json\n\ndef main():\n \"\"\"\n This script uses bioblend to import .ga workflow files into a running i... | python | chosen |
[
{
"from": "system",
"value": "Use from dials_regression.image_examples.get_all_working_images import get_all_working_images method to get list of images"
},
{
"from": "human",
"value": "def tst_dxtbx():\n import libtbx.load_env\n import os\n dials_regression = libtbx.env.dis... | python | chosen |
[
{
"from": "system",
"value": "Remove all relative imports. We have always been at war with relative imports.\n\ngit-svn-id: 4f9f921b081c523744c7bf24d959a0db39629563@17009 bcc190cf-cafb-0310-a4f2-bffc1f526a37\n"
},
{
"from": "human",
"value": "\"\"\"\nJP-specific Form helpers\n\"\"\"\n\nfrom dja... | python | chosen |
[
{
"from": "system",
"value": "Fix move to return only int, draw functions cannot handle floats as coordinates\n"
},
{
"from": "human",
"value": "from math import cos, sin, pi, hypot\n\ndef rotate(polygon, angle):\n rotated_points = []\n cos_result = cos(angle)\n sin_result = sin(angle)\... | python | chosen |
[
{
"from": "system",
"value": "Document PR command line syntax\n"
},
{
"from": "human",
"value": "import click\nfrom ghutil.util import default_command, package_group\n\n@package_group(__package__, __file__, invoke_without_command=True)\n@click.pass_context\ndef cli(ctx):\n \"\"\" Manage pul... | python | chosen |
[
{
"from": "system",
"value": "Add a new test for roundtripping in the opposite direction.\n"
},
{
"from": "human",
"value": "import unittest\nfrom hypothesis import given\nfrom hypothesis.extra.datetime import datetimes\n\nimport qual\n\nfrom datetime import date\n\nclass TestIsoUtils(unittest.T... | python | chosen |
[
{
"from": "system",
"value": "Add empty time tests (for ui testing)\n"
},
{
"from": "human",
"value": "import unittest\n\n\nclass TestG(unittest.TestCase):\n def test_feat_1_case_1(self):\n pass\n\n def test_feat_1_case_2(self):\n pass\n\n def test_feat_1_case_3(self):\n ... | python | chosen |
[
{
"from": "system",
"value": "Add write dump to file\n"
},
{
"from": "human",
"value": "#!/usr/bin/python3\n# THIS FILE IS AN EXPERIMENTAL PROGRAM TO LEARN ABOUT OS_WALK\n\nimport os, sys\n\nwalk_dir = sys.argv[1]\n\nprint(\"walk directory: \" + walk_dir)\n\nprint(\"Walk directory (absolute) = \... | python | chosen |
[
{
"from": "system",
"value": "Put ValidationError on top-level namespace\n"
},
{
"from": "human",
"value": "# -*- coding: utf-8 -*-\nfrom __future__ import absolute_import\n\n__version__ = '1.0.0-dev'\n__author__ = 'Steven Loria'\n__license__ = 'MIT'\n\nfrom marshmallow.schema import (\n Sche... | python | chosen |
[
{
"from": "system",
"value": "MAINT: Remove duplicate Series sort_index check\n\nDuplicate boolean validation check for sort_index in series/test_validate.py"
},
{
"from": "human",
"value": "import pytest\nfrom pandas.core.series import Series\n\n\nclass TestSeriesValidate(object):\n \"\"\"Te... | python | chosen |
[
{
"from": "system",
"value": "Support SNI in the example client\n\nFixes: gh-36\n"
},
{
"from": "human",
"value": "import socket, ssl\nimport h11\n\nclass MyHttpClient:\n def __init__(self, host, port):\n self.sock = socket.create_connection((host, port))\n if port == 443:\n ... | python | chosen |
[
{
"from": "system",
"value": "Use dict for dump data format\n"
},
{
"from": "human",
"value": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\nimport os\nimport sys\n\nfrom gwv import version\nfrom validator import validate\n\n\ndef main(args=None):\n if args is None:\n args = sys.ar... | python | chosen |
[
{
"from": "system",
"value": "Refactor setup.root to never again need to be changed if the file moves\n"
},
{
"from": "human",
"value": "from pathlib import Path\n\nSETTINGS_PATH = 'conf/settings.py'\nPARTIALS_PATH = 'conf/partials.txt'\n\n\ndef load_config(path=SETTINGS_PATH):\n settings = e... | python | chosen |
[
{
"from": "system",
"value": "Fix __doc__ not being replaced\n"
},
{
"from": "human",
"value": "from virtualbox import library\n\n\"\"\"\nAdd helper code to the default IProgress class.\n\"\"\"\n\n\n# Helper function for IProgress to print out a current progress state\n# in __str__ \n_progress_t... | python | chosen |
[
{
"from": "system",
"value": "Add user registration via api\n"
},
{
"from": "human",
"value": "from django.contrib.auth.models import User\nfrom rest_framework import serializers, viewsets\n\n\nclass UserSerializer(serializers.HyperlinkedModelSerializer):\n class Meta:\n model = User\n... | python | chosen |
[
{
"from": "system",
"value": "Add stop method, fix dangerous args.\n"
},
{
"from": "human",
"value": "#! /usr/bin/env python3\n\n\"\"\"Main XOInvader module, that is entry point to game.\n\nPrepare environment for starting game and start it.\"\"\"\n\n\nimport curses\n\nfrom xoinvader.menu import... | python | chosen |
[
{
"from": "system",
"value": "Make apitestcase __all__ a tuple\n"
},
{
"from": "human",
"value": "from apitestcase.testcase import TestCase\n\n\n__version__ = (\"0\", \"1\", \"0\")\n\n__all__ = [\n \"TestCase\",\n \"__version__\",\n]\n"
},
{
"from": "gpt",
"value": "from apites... | python | chosen |
[
{
"from": "system",
"value": "Add decode_responses option to redis\n"
},
{
"from": "human",
"value": "from flask import Flask\nfrom flask_redis import FlaskRedis\nfrom config import BaseConfig\n\napp = Flask(__name__)\napp.config.from_object(BaseConfig)\ndb = FlaskRedis(app)\n"
},
{
"fro... | python | chosen |
[
{
"from": "system",
"value": "Split out writing to disk into it's own mfunction\n"
},
{
"from": "human",
"value": "import os\nimport re\nimport subprocess\nimport requests\n\nGITHUB_API_ADDRESS = \"https://api.github.com/\"\n\n\ndef get_git_address():\n\n response = subprocess.check_output(['... | python | chosen |
[
{
"from": "system",
"value": "AndroidResource: Add a UiautoApk resource type.\n\nWhen moving to Uiautomation 2, tests are now complied into apk files rather than\njar files. To avoid conflicts with regular workload apks a new resource type is\nadded to retrieve the test files which will be renamed to have t... | python | chosen |
[
{
"from": "system",
"value": "Add creation of js message files to management command\n"
},
{
"from": "human",
"value": "#!/usr/bin/python\nfrom django.core.management.base import BaseCommand\nfrom redistricting.utils import *\n\nclass Command(BaseCommand):\n \"\"\"\n This command prints cr... | python | chosen |
[
{
"from": "system",
"value": "Fix pre-commit issue for the cli_eigenvals test.\n"
},
{
"from": "human",
"value": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\n# (c) 2015-2018, ETH Zurich, Institut fuer Theoretische Physik\n# Author: Dominik Gresch <greschd@gmx.ch>\n\nimport os\n\nimport pyt... | python | chosen |
[
{
"from": "system",
"value": "Add charset to connect mysql\n"
},
{
"from": "human",
"value": "import MySQLdb\nimport MySQLdb.cursors\nfrom hakoblog.config import CONFIG\n\n\nclass DB():\n def __init__(self):\n self.conn = MySQLdb.connect(\n db=CONFIG.DATABASE,\n h... | python | chosen |
[
{
"from": "system",
"value": "Make IsPostOrSuperuserOnly a non-object-level permission.\n"
},
{
"from": "human",
"value": "# Copyright (c) 2011-2014 Berkeley Model United Nations. All rights reserved.\n# Use of this source code is governed by a BSD License (see LICENSE).\n\nfrom rest_framework i... | python | chosen |
[
{
"from": "system",
"value": "Add a comment explaining why the filter cache doesn't need exipiring\n"
},
{
"from": "human",
"value": "# -*- coding: utf-8 -*-\n# Copyright 2015, 2016 OpenMarket Ltd\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this fil... | python | chosen |
[
{
"from": "system",
"value": "Replace triple dots with ellipsis in search commands\n"
},
{
"from": "human",
"value": "from django.core.management.base import BaseCommand\n\nfrom wagtail.search import models\n\n\nclass Command(BaseCommand):\n def handle(self, **options):\n # Clean daily... | python | chosen |
[
{
"from": "system",
"value": "Remove a leftover module from the `__all__` attribute.\n"
},
{
"from": "human",
"value": "# __ \n# | |--.---.-.-----.---.-.-----.---.-. .--------.---.-.--.--.---.-.\n# | _ | _ | | _ | ... | python | chosen |
[
{
"from": "system",
"value": "Fix for 1.6 & 1.7\n"
},
{
"from": "human",
"value": "try:\n from django.conf.urls.defaults import patterns, include, url\nexcept ImportError:\n from django.conf.urls import patterns, url, include\n\nimport settings\nimport os\n\nfrom django.contrib import admi... | python | chosen |
[
{
"from": "system",
"value": "Update import for classproperty in django 3.1 and above\n"
},
{
"from": "human",
"value": "# coding=utf-8\nfrom django.conf import settings\nfrom django.core.cache import cache\nfrom django.db import models\nfrom django.utils.decorators import classproperty\nfrom ta... | python | chosen |
[
{
"from": "system",
"value": "Put admin at the top of the default URLs\n"
},
{
"from": "human",
"value": "from django.conf.urls import patterns, include, url\n\nfrom django.contrib import admin\nadmin.autodiscover()\n\nurlpatterns = patterns('',\n # include urls from your app like so\n # u... | python | chosen |
[
{
"from": "system",
"value": "Change to fireteam email address.\n"
},
{
"from": "human",
"value": "# -*- coding: utf-8 -*-\nimport os\nfrom setuptools import setup\nfrom setuptools.dist import Distribution\n\n\nwith open(os.path.join(os.path.dirname(__file__), 'README')) as f:\n doc = f.read(... | python | chosen |
[
{
"from": "system",
"value": "Fix for non-existent rst README\n"
},
{
"from": "human",
"value": "from setuptools import setup\n\ninstall_requires = [\n 'Flask',\n 'Flask-Babel',\n]\n\nwith open('README') as f:\n readme = f.read()\n\nsetup(\n name='Flask-Table',\n packages=['flask_... | python | chosen |
[
{
"from": "system",
"value": "Install rl when installing voltron\n"
},
{
"from": "human",
"value": "from setuptools import setup\n\nsetup(\n name = \"voltron\",\n version = \"0.1\",\n author = \"snare\",\n author_email = \"snare@ho.ax\",\n description = (\"A UI for GDB & LLDB\"),\... | python | chosen |
[
{
"from": "system",
"value": "Use the pillow master branch directly.\n"
},
{
"from": "human",
"value": "# -*- coding: utf-8 -*-\n#\n# setup.py\n# colorific\n#\n\n\"\"\"\nPackage information for colorific.\n\"\"\"\n\nimport sys\n\n# check for the supported Python version\nversion = tuple(sys.ve... | python | chosen |
[
{
"from": "system",
"value": "Fix bug with multiprocessing and Nose.\n"
},
{
"from": "human",
"value": "#!/usr/bin/env python\n\ntry:\n from setuptools import setup, find_packages\n from setuptools.command.test import test\nexcept ImportError:\n from ez_setup import use_setuptools\n ... | python | chosen |
[
{
"from": "system",
"value": "Remove specific argparse version (not necessary); a=bustage\n"
},
{
"from": "human",
"value": "# This Source Code Form is subject to the terms of the Mozilla Public\n# License, v. 2.0. If a copy of the MPL was not distributed with this\n# file, You can obtain one at... | python | chosen |
[
{
"from": "system",
"value": "Set cov-core dependency to 1.9\n"
},
{
"from": "human",
"value": "import setuptools\n\nsetuptools.setup(name='pytest-cov',\n version='1.6',\n description='py.test plugin for coverage reporting with '\n 'support for bot... | python | chosen |
[
{
"from": "system",
"value": "Revert \"Upgrading dependency on relengapi\"\n\nThis reverts commit fd7d52947b7fe590ce2549aefbbd636b9f416b9d.\n"
},
{
"from": "human",
"value": "#!/usr/bin/env python\n\nfrom setuptools import setup, find_packages\n\nsetup(name='relengapi-mapper',\n version='0.... | python | chosen |
[
{
"from": "system",
"value": "Use requirements.txt file for... requirements\n"
},
{
"from": "human",
"value": "#!/usr/bin/python\n\nfrom setuptools import setup, find_packages\nsetup(\n name = \"docker-scripts\",\n version = \"0.2.2\",\n packages = find_packages(),\n entry_points={\n... | python | chosen |
[
{
"from": "system",
"value": "Use io.open with encoding='utf-8' and flake8 compliance\n"
},
{
"from": "human",
"value": "from setuptools import setup, find_packages\n\nlong_description = (\n open('README.rst').read()\n + '\\n' +\n open('CHANGES.txt').read())\n\nsetup(\n name='more.st... | python | chosen |
[
{
"from": "system",
"value": "Update package description and version\n"
},
{
"from": "human",
"value": "#!/usr/bin/env python\ntry:\n from setuptools import setup\nexcept ImportError:\n from distutils.core import setup\n\nrequirements = [\n]\n\ntest_requirements = [\n]\n\nsetup(\n name=... | python | chosen |
[
{
"from": "system",
"value": "Make version spec more clear.\n"
},
{
"from": "human",
"value": "import os, io\nfrom setuptools import setup, find_packages\n\nlong_description = (\n io.open('README.rst', encoding='utf-8').read()\n + '\\n' +\n io.open('CHANGES.txt', encoding='utf-8').read(... | python | chosen |
[
{
"from": "system",
"value": "Fix build broken by previous commit.\n"
},
{
"from": "human",
"value": "# -*- coding: utf-8 -*-\n\nfrom setuptools import setup, find_packages\n\ndeps = [ line.strip()\n for line in open(\"deps.txt\")\n if line and not line.startswith(\"#\") ]\n\nmet... | python | chosen |
[
{
"from": "system",
"value": "Revert \"opens README.md in utf-8 encoding\"\n\nThis reverts commit f73fd446dc9b953c57c773f21744616265adc754.\n"
},
{
"from": "human",
"value": "from setuptools import setup\n\nsetup(\n name='unicode-slugify',\n version='0.1.3',\n description='A slug genera... | python | chosen |
[
{
"from": "system",
"value": "Add development version and correct url to github\n"
},
{
"from": "human",
"value": "\"\"\"\nFlask-MongoKit\n--------------\n\nFlask-MongoKit simplifies to use MongoKit, a powerful MongoDB ORM in Flask \napplications.\n\nLinks\n`````\n\n* `documentation <http:/... | python | chosen |
[
{
"from": "system",
"value": "Add classifier for Python 3.5\n"
},
{
"from": "human",
"value": "import sys\nfrom shutil import rmtree\nfrom setuptools import setup, find_packages\n\n\nif sys.argv[:2] == ['setup.py', 'bdist_wheel']:\n # Remove previous build dir when creating a wheel build, sin... | python | chosen |
[
{
"from": "system",
"value": "Set the download link to the current version of django-request, not latest git.\n"
},
{
"from": "human",
"value": "#!/usr/bin/env python\nfrom distutils.core import setup\nimport request\n\nsetup(\n name='django-request',\n version='%s' % request.__version__,\... | python | chosen |
[
{
"from": "system",
"value": "Remove empty defaults and deprecated settings\n"
},
{
"from": "human",
"value": "#\n# linter.py\n# Markdown Linter for SublimeLinter, a code checking framework\n# for Sublime Text 3\n#\n# Written by Jon LaBelle\n# Copyright (c) 2018 Jon LaBelle\n#\n# License: MIT\n#... | python | chosen |
[
{
"from": "system",
"value": "Use 'ruby -S' to find ruby-lint executable\n"
},
{
"from": "human",
"value": "#\n# linter.py\n# Linter for SublimeLinter3, a code checking framework for Sublime Text 3\n#\n# Written by Joshua Hagins\n# Copyright (c) 2015 Joshua Hagins\n#\n# License: MIT\n#\n\n\"\"\"... | python | chosen |
[
{
"from": "system",
"value": "Add support for handling errors and warnings\n"
},
{
"from": "human",
"value": "#\n# linter.py\n# Linter for SublimeLinter3, a code checking framework for Sublime Text 3\n#\n# Written by @kungfusheep\n# Copyright (c) 2016 @kungfusheep\n#\n# License: MIT\n#\n\"\"\"Th... | python | chosen |
[
{
"from": "system",
"value": "Add mock as it's required by the unit tests.\n"
},
{
"from": "human",
"value": "import os\nfrom setuptools import setup\n\nREADME = open(os.path.join(os.path.dirname(__file__), 'README.md')).read()\n\n# allow setup.py to be run from any path\nos.chdir(os.path.normpa... | python | chosen |
[
{
"from": "system",
"value": "Put back the __version__ technique\n"
},
{
"from": "human",
"value": "#!/usr/bin/env python\n\nfrom setuptools import setup\n\nimport i18n\n\nsetup(\n name='edx-i18n-tools',\n version='0.3.3',\n description='edX Internationalization Tools',\n author='edX... | python | chosen |
[
{
"from": "system",
"value": "Update pycodestyle requirement from <2.4.0,>=2.3.0 to >=2.3.0,<2.6.0\n\nUpdates the requirements on [pycodestyle](https://github.com/PyCQA/pycodestyle) to permit the latest version.\n- [Release notes](https://github.com/PyCQA/pycodestyle/releases)\n- [Changelog](https://github.... | python | chosen |
[
{
"from": "system",
"value": "Tag eve version more precisly\n"
},
{
"from": "human",
"value": "#!/usr/bin/env python\n\ntry:\n from setuptools import setup\nexcept ImportError:\n from distutils.core import setup\n\nwith open('README.rst', 'r') as f:\n readme = f.read()\n\nsetup(\n na... | python | chosen |
[
{
"from": "system",
"value": "Remove nonexistent packages from find_packages\n"
},
{
"from": "human",
"value": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\nfrom setuptools import find_packages\nfrom setuptools import setup\n\n__version__ = \"0.13.0\"\n\nsetup(\n name='pyramid_zipkin',\n ... | python | chosen |
[
{
"from": "system",
"value": "Fix to improperly disabled docs\n"
},
{
"from": "human",
"value": "#!/usr/bin/env python\n\nfrom ez_setup import use_setuptools\nuse_setuptools()\n\nfrom setuptools import setup\n\nimport re\nmain_py = open('flatcat/__init__.py').read()\nmetadata = dict(re.findall(\... | python | chosen |
[
{
"from": "system",
"value": "Move koala-serializer to extra requirements\n"
},
{
"from": "human",
"value": "import sys\nfrom setuptools import setup, find_packages\n\n\nsetup(\n name='chillin-server',\n version='2.0.0',\n description='Chillin AI Game Framework (Python Server)',\n lo... | python | chosen |
[
{
"from": "system",
"value": "Update repo URL for Jazzband ownership transfer"
},
{
"from": "human",
"value": "#!/usr/bin/env python\n\nfrom setuptools import setup, find_packages\n\nsetup(\n name='django-ical',\n version='1.5',\n description=\"iCal feeds for Django based on Django's sy... | python | chosen |
[
{
"from": "system",
"value": "Add dependencies for `dev` and `postgres` extras.\n"
},
{
"from": "human",
"value": "import setuptools\n\nfrom eventkit import __version__\n\nsetuptools.setup(\n name='eventkit',\n version=__version__,\n packages=setuptools.find_packages(),\n install_req... | python | chosen |
[
{
"from": "system",
"value": "Add explicit versions for dependencies\n"
},
{
"from": "human",
"value": "from twilio import __version__\nfrom setuptools import setup, find_packages\n\nsetup(\n name = \"twilio\",\n version = __version__,\n description = \"Twilio API client and TwiML gener... | python | chosen |
[
{
"from": "system",
"value": "Use README.rst for long description\n"
},
{
"from": "human",
"value": "from setuptools import setup\nimport os\n\n#Function to read README\ndef read(fname):\n return open(os.path.join(os.path.dirname(__file__), fname)).read()\n\nsetup(\n name='clipboard_memo',... | python | chosen |
[
{
"from": "system",
"value": "Remove Django REST Framework from dependencies\n"
},
{
"from": "human",
"value": "#!/usr/bin/env python\n\nimport os\nimport sys\n\ntry:\n from setuptools import setup\nexcept ImportError:\n from distutils.core import setup\n\nif sys.argv[-1] == 'publish':\n ... | python | chosen |
[
{
"from": "system",
"value": "Add commands to make and drop db tables from a terminal."
},
{
"from": "human",
"value": "# -*- coding: utf-8 -*-\n\nfrom flask.ext.script import Manager, Server\nfrom massa import create_app\n\n\nmanager = Manager(create_app)\nmanager.add_option('-c', '--configfile... | python | chosen |
[
{
"from": "system",
"value": "Update dependency jsonschema to v2.6.0\n"
},
{
"from": "human",
"value": "# -*- coding: utf-8 -*-\n\nimport os\nimport sys\n\nfrom setuptools import (\n find_packages,\n setup,\n)\n\nhere = os.path.dirname(__file__)\nrequires = [\n 'jsonschema==2.4.0',\n]\n... | python | chosen |
[
{
"from": "system",
"value": "Fix bug in get_offsets with span == 1\n\nVery specific bug made span of 1 include center (start) point.\n"
},
{
"from": "human",
"value": "from __future__ import division\n\nimport itertools\n\n\ndef get_offsets(span):\n \"\"\"\n Get matrix offsets for a squar... | python | chosen |
[
{
"from": "system",
"value": "Update deps to pull in YAML support\n"
},
{
"from": "human",
"value": "#!/usr/bin/env python\n\nimport os, sys, glob\nfrom setuptools import setup, find_packages\n\nsetup(\n name='aegea',\n version='0.1.0',\n url='https://github.com/kislyuk/aegea',\n lic... | python | chosen |
[
{
"from": "system",
"value": "Fix broken line in setip.py\n"
},
{
"from": "human",
"value": "#!/usr/bin/env python\n\nfrom setuptools import setup\nfrom setuptools import find_packages\n\nimport derpibooru\n\nsetup(\n name = \"DerPyBooru\",\n description = \"Python bindings for Derpibooru's AP... | python | chosen |
[
{
"from": "system",
"value": "Correct dependencies so it depends on toml.py\n"
},
{
"from": "human",
"value": "from setuptools import setup, find_packages\n\nsetup(\n name=\"handlebar.py\",\n version=\"0.1\",\n\n author=\"José Pedro Arvela\",\n author_email=\"jparvela@gmail.com\",\n ... | python | chosen |
[
{
"from": "system",
"value": "Add PyPI description and such\n"
},
{
"from": "human",
"value": "from setuptools.command.test import test as TestCommand\nimport sys\n\nclass PyTest(TestCommand):\n def finalize_options(self):\n TestCommand.finalize_options(self)\n self.test_args = ... | python | chosen |
[
{
"from": "system",
"value": "Add entry point for monitor runner\n"
},
{
"from": "human",
"value": "from setuptools import setup, find_packages\n\nsetup(\n name='cosmo',\n version='1.0.0',\n description='Monitors for HST/COS',\n keywords=['astronomy'],\n classifiers=[\n 'Pr... | python | chosen |
[
{
"from": "system",
"value": "Drop requirement for urllib3 - it is part of requests.\n"
},
{
"from": "human",
"value": "from setuptools import setup, find_packages\n\nsetup(\n name='ckanext-archiver',\n version='0.1',\n packages=find_packages(),\n install_requires=[\n 'celery=... | python | chosen |
[
{
"from": "system",
"value": "Set `zip_safe` to false so that we can install pygrow from source.\n"
},
{
"from": "human",
"value": "from pip import req\nimport pip\nfrom setuptools import find_packages\nfrom setuptools import setup\n\n_install_requirements = req.parse_requirements(\n 'require... | python | chosen |
[
{
"from": "system",
"value": "Add python module memcache dependency\n"
},
{
"from": "human",
"value": "#!/usr/bin/env python\n#coding: utf-8\n\nfrom setuptools import setup, find_packages\nfrom os.path import join, dirname\n\nsetup(\n name='mosecom_air',\n version='1.2',\n description='... | python | chosen |
[
{
"from": "system",
"value": "Update to 2.9.0.0 and use equivalent version of redis-py\n"
},
{
"from": "human",
"value": "#!/usr/bin/env python\n\nfrom setuptools import setup, find_packages\n\n# Match releases to redis-py versions\n__version__ = '2.8.0.4'\n\n# Jenkins will replace __build__ wit... | python | chosen |
[
{
"from": "system",
"value": "Update googlemaps to 2.5.0 version"
},
{
"from": "human",
"value": "from setuptools import setup, find_packages\nimport politicalplaces\n\nsetup(\n name='django-political-map',\n version=politicalplaces.__version__,\n description='Django application to stor... | python | chosen |
[
{
"from": "system",
"value": "Change PyPI development status from pre-alpha to beta.\n"
},
{
"from": "human",
"value": "#!/usr/bin/env python\n\nfrom os.path import dirname, join\nfrom distutils.core import setup\n\nfrom colorama import VERSION\n\n\nNAME = 'colorama'\n\n\ndef get_long_descriptio... | python | chosen |
[
{
"from": "system",
"value": "Remove a ref to now-gone sample_project.\n"
},
{
"from": "human",
"value": "from setuptools import setup, find_packages\n\nsetup(\n name='django-crumbs',\n version=__import__('crumbs').__version__,\n author='Caktus Consulting Group',\n author_email='solu... | python | chosen |
[
{
"from": "system",
"value": "Include test data files in package. Otherwise, they are not copied to the build directory and the tests fail.\n"
},
{
"from": "human",
"value": "import re\nimport setuptools\n\nwith open(\"README.md\", \"r\") as fin:\n long_description = fin.read()\n\nlong_descri... | python | chosen |
[
{
"from": "system",
"value": "Use develop for djsonb repository\n"
},
{
"from": "human",
"value": "#!/usr/bin/env python\n\nfrom setuptools import setup, find_packages\n\ntests_require = []\n\nsetup(\n name='ashlar',\n version='0.0.2',\n description='Define and validate schemas for meta... | python | chosen |
[
{
"from": "system",
"value": "Add all supported python versions to classifiers.\n"
},
{
"from": "human",
"value": "import sys\nfrom setuptools import setup, find_packages\n\nif sys.version_info < (2, 7, 0):\n print(\"Error: signac requires python version >= 2.7.x.\")\n sys.exit(1)\n\nsetup... | python | chosen |
[
{
"from": "system",
"value": "Tweak so that version information is picked up from version.txt.\n\n"
},
{
"from": "human",
"value": "#!/usr/bin/env python\n\nfrom distutils.core import setup\n\nsetup(name='icalendar',\n version='0.10',\n description='iCalendar support module',\n pa... | python | chosen |
[
{
"from": "system",
"value": "Correct requires to force installation.\n"
},
{
"from": "human",
"value": "from setuptools import setup\n\nsetup(\n name='jinjer',\n version='0.1',\n packages=['jinjer'],\n package_dir={'': 'src'},\n url='https://github.com/andrematheus/jinjer',\n ... | python | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.