conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Disable SSL for default run\n"
},
{
"from": "human",
"value": "\"\"\"\nThis file contains gunicorn settings.\nTo run sqmpy with gunicorn run the following command:\n\n gunicorn -c gunicorn_cfg.py run:app\n\nIn order to daemonize gunicorn add -D flag:\n\n gunic... | python | chosen |
[
{
"from": "system",
"value": "Update the sample proxy list\n"
},
{
"from": "human",
"value": "\"\"\"\nProxy Server \"Phone Book\".\n\nSimplify running browser tests through a proxy server\nby adding your frequently-used proxies here.\n\nNow you can do something like this on the command line:\n\"... | python | chosen |
[
{
"from": "system",
"value": "Update the example proxy list\n"
},
{
"from": "human",
"value": "\"\"\"\nProxy Server \"Phone Book\".\n\nSimplify running browser tests through a proxy server\nby adding your frequently-used proxies here.\n\nNow you can do something like this on the command line:\n\... | python | chosen |
[
{
"from": "system",
"value": "Use multi-link pipeline construction syntax.\n"
},
{
"from": "human",
"value": "from mpipe import OrderedStage, Pipeline\n\ndef increment(value):\n return value + 1\n\ndef double(value):\n return value * 2\n\nstage1 = OrderedStage(increment, 3)\nstage2 = Order... | python | chosen |
[
{
"from": "human",
"value": "Add common db static methods\n"
},
{
"from": "gpt",
"value": "import pymongo\n\nclass Database:\n\tURI = 'mongodb://127.0.0.1:27017'\n\tDATABASE = None\n\n\t@staticmethod\n\tdef initialize():\n\t\tclient = pymongo.MongoClient(Database.URI)\n\t\tDatabase.DATABASE = cl... | python | chosen |
[
{
"from": "system",
"value": "Make sliding token lifetime defaults a bit more conservative\n"
},
{
"from": "human",
"value": "from __future__ import unicode_literals\n\nfrom datetime import timedelta\n\nfrom django.conf import settings\nfrom rest_framework.settings import APISettings\n\nUSER_SET... | python | chosen |
[
{
"from": "system",
"value": "Document reason for class instead of free function\n"
},
{
"from": "human",
"value": "from django.contrib import messages\nfrom django.core.mail import send_mail\nfrom django.utils.translation import ugettext_lazy as _\n\nimport stored_messages\n\nfrom osmaxx.excerp... | python | chosen |
[
{
"from": "system",
"value": "Use README.rst as long description for PyPi\n"
},
{
"from": "human",
"value": "import sys\nfrom setuptools import setup\n\nif sys.version_info < (2, 6):\n raise Exception('Wiggelen requires Python 2.6 or higher.')\n\n# Todo: How does this play with pip freeze req... | python | chosen |
[
{
"from": "system",
"value": "Add new libs python on install requires Opps CMS\n"
},
{
"from": "human",
"value": "#!/usr/bin/env python\n# -*- coding:utf-8 -*-\n\nfrom setuptools import setup, find_packages\n\nimport opps\n\n\n\ninstall_requires = [\"Django>=1.4\", \"south>=0.7\"]\n\nclassifiers... | python | chosen |
[
{
"from": "system",
"value": "Update package versions, bump to 1.0.22\n"
},
{
"from": "human",
"value": "#!/usr/bin/env python\n\nfrom setuptools import find_packages, setup\n\n\nsetup(name='qwertyui',\n version='1.0.21',\n description='Some common Python functions and algorithms',\n ... | python | chosen |
[
{
"from": "system",
"value": "Add Python 3 trove classifier\n"
},
{
"from": "human",
"value": "#-*- encoding: utf-8 -*-\nfrom setuptools import setup\n\nfrom setuptools.command.test import test as TestCommand\nimport sys\n\nclass Tox(TestCommand):\n def finalize_options(self):\n TestCo... | python | chosen |
[
{
"from": "system",
"value": "Setup.py: Fix author field and maintainer one\n"
},
{
"from": "human",
"value": "from setuptools import setup, find_packages\nimport os\n\nname = 'docrepr'\nhere = os.path.abspath(os.path.dirname(__file__))\n\nversion_ns = {}\nwith open(os.path.join(here, name, '_ve... | python | chosen |
[
{
"from": "system",
"value": "Increment lib version to 0.3a15.\n"
},
{
"from": "human",
"value": "from setuptools import setup\n\nsetup(name='dpaw-utils',\n version='0.3a12',\n description='Utilities for Django/Python apps',\n url='https://github.com/parksandwildlife/dpaw-utils',\... | python | chosen |
[
{
"from": "system",
"value": "Make Python try to build extension.\n"
},
{
"from": "human",
"value": "from setuptools import setup\n\nsetup(\n maintainer='Adam Grandquist',\n maintainer_email='grandquista@gmail.com',\n name='libReQL',\n url='https://github.com/grandquista/ReQL-Core',\... | python | chosen |
[
{
"from": "system",
"value": "Add requests dependency, bump to 0.0.4\n"
},
{
"from": "human",
"value": "try:\n from setuptools import setup\nexcept ImportError:\n from distutils.core import setup\n\nversion = \"0.0.3\"\n\nsetup(\n name=\"pyopen\",\n version=version,\n author=\"Tim... | python | chosen |
[
{
"from": "system",
"value": "Install templates with wrapweb package\n"
},
{
"from": "human",
"value": "#!/usr/bin/env python3\n\nimport setuptools\nimport unittest\n\n\ndef discover_tests():\n test_loader = unittest.TestLoader()\n return test_loader.discover('.', pattern='*_test.py')\n\n\... | python | chosen |
[
{
"from": "system",
"value": "Prepare for test PyPI upload\n"
},
{
"from": "human",
"value": "import os\n\ntry:\n from setuptools import setup\nexcept ImportError:\n from distutils.core import setup\n\n# Utility function to read the README file.\n# Used for the long_description. It's nice... | python | chosen |
[
{
"from": "system",
"value": "Add versions to install requirements\n"
},
{
"from": "human",
"value": "#\n# Copyright 2016 BMC Software, Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obta... | python | chosen |
[
{
"from": "system",
"value": "Add min version of ldap3\n"
},
{
"from": "human",
"value": "import sys\n\nfrom setuptools import find_packages, setup\n\nVERSION = '2.0.dev0'\n\nsetup(\n name='django-arcutils',\n version=VERSION,\n url='https://github.com/PSU-OIT-ARC/django-arcutils',\n ... | python | chosen |
[
{
"from": "system",
"value": "Fix missing symbols from static linking\n"
},
{
"from": "human",
"value": "from setuptools import setup, Extension\n\nfrom Cython.Build import cythonize\nfrom Cython.Distutils import build_ext\n\nimport numpy\n\n\next = Extension('noisily.noise',\n sources=['... | python | chosen |
[
{
"from": "system",
"value": "Correct definition of path to version information for package.\n"
},
{
"from": "human",
"value": "import io\nimport os\nimport re\n\nfrom setuptools import setup, find_packages\n\n\nhere = os.path.abspath(os.path.dirname(__file__))\n\nwith open(os.path.join(here, 'o... | python | chosen |
[
{
"from": "system",
"value": "Bump version number for release.\n"
},
{
"from": "human",
"value": "from setuptools import setup\n\nimport io\nimport os\n\n\nversion = '0.2.4'\n\n\nreadme_path = os.path.join(os.path.dirname(__file__), 'README.rst')\nwith io.open(readme_path, encoding='utf-8') as f... | python | chosen |
[
{
"from": "system",
"value": "Remove badges from pypi description\n"
},
{
"from": "human",
"value": "from setuptools import setup\nfrom os import path\n\n\nproject_dir = path.abspath(path.dirname(__file__))\n\ndef read_from(filename):\n with open(path.join(project_dir, filename), encoding='ut... | python | chosen |
[
{
"from": "system",
"value": "Move gin-config to install_requires to fix build.\n\nPiperOrigin-RevId: 258563598\n"
},
{
"from": "human",
"value": "\"\"\"Install Mesh TensorFlow.\"\"\"\n\nfrom setuptools import find_packages\nfrom setuptools import setup\n\nsetup(\n name='mesh-tensorflow',\n ... | python | chosen |
[
{
"from": "system",
"value": "Include migrations in the sdist package.\n\nFixes https://github.com/zlorf/django-dbsettings/issues/18\n\nfind_packages(include=...) does not appear to get submodules.\n"
},
{
"from": "human",
"value": "from setuptools import setup, find_packages\n\n# Dynamically ca... | python | chosen |
[
{
"from": "system",
"value": "[CI] Include .anno and .test_data in dist\n"
},
{
"from": "human",
"value": "#!/usr/bin/env python\n# -*- coding: UTF-8 -*-\n\nimport os.path as op\n\nfrom glob import glob\nfrom setuptools import setup\nfrom setup_helper import SetupHelper\n\n\nname = \"goatools\"\... | python | chosen |
[
{
"from": "system",
"value": "Add a description, because metadata is hard.\n"
},
{
"from": "human",
"value": "import sys\n\nfrom setuptools import setup\nfrom setuptools.command.test import test as TestCommand\n\nclass PyTest(TestCommand):\n def finalize_options(self):\n TestCommand.fi... | python | chosen |
[
{
"from": "system",
"value": "Add python-keystoneclient as a dependency\n"
},
{
"from": "human",
"value": "from distutils.core import setup\n\nsetup(\n name='Juju XaaS Client Binding',\n version='0.1.0',\n author='Justin SB',\n author_email='justin@fathomdb.com',\n packages=['juju... | python | chosen |
[
{
"from": "system",
"value": "Remove lxml requirement b/c it is not easily easy_installable\n"
},
{
"from": "human",
"value": "from setuptools import setup, find_packages\nimport sys, os\n\nversion = '0.1'\n\nsetup(name='FastPt',\n version=version,\n description=\"Really fast well-form... | python | chosen |
[
{
"from": "system",
"value": "Add missing dependency on h5py.\n"
},
{
"from": "human",
"value": "from setuptools import setup\n\nsetup(name='keras_tf_multigpu',\n version='0.1',\n description='Multi-GPU data-parallel training in Keras/TensorFlow',\n url='https://github.com/rossuma... | python | chosen |
[
{
"from": "system",
"value": "Bump version, allow newer lxml\n"
},
{
"from": "human",
"value": "from setuptools import setup, find_packages\nimport os\n\nsetup(\n name=\"cpgintegrate\",\n version=\"0.2.17-SNAPSHOT\",\n packages=find_packages(),\n include_package_data=True,\n insta... | python | chosen |
[
{
"from": "system",
"value": "Add the repos URL in Metadata\n"
},
{
"from": "human",
"value": "from setuptools import setup, find_packages\nimport os\n\n# The version of the wrapped library is the starting point for the\n# version number of the python package.\n# In bugfix releases of the python... | python | chosen |
[
{
"from": "system",
"value": "Install isal wheels on windows too."
},
{
"from": "human",
"value": "from setuptools import setup, find_packages\n\nwith open('README.rst') as f:\n long_description = f.read()\n\nsetup(\n name='xopen',\n use_scm_version={'write_to': 'src/xopen/_version.py'}... | python | chosen |
[
{
"from": "system",
"value": "Fix typo in command name\n"
},
{
"from": "human",
"value": "from setuptools import setup, find_packages\n\nsetup(\n name='sgfs',\n version='0.1.0b',\n description='Translation layer between Shotgun entities and a file structure.',\n url='http://github.co... | python | chosen |
[
{
"from": "system",
"value": "Upgrade tangled from 0.1a5 to 0.1a8\n"
},
{
"from": "human",
"value": "from setuptools import setup\n\n\nsetup(\n name='tangled.contrib',\n version='0.1a4.dev0',\n description='Tangled namespace for contributed packages',\n long_description=open('README.... | python | chosen |
[
{
"from": "system",
"value": "Add myself as a maintainer & update the url\n"
},
{
"from": "human",
"value": "#!/usr/bin/env python\nimport os\n\nfrom setuptools import find_packages, setup\n\n\ndef read(*rnames):\n return open(os.path.join(os.path.dirname(__file__), *rnames)).read()\n\n\nsetu... | python | chosen |
[
{
"from": "system",
"value": "Remove line added by mistake\n"
},
{
"from": "human",
"value": "#!/usr/bin/env python\nimport re\nfrom setuptools import setup, find_packages\n\nwith open('rhino/__init__.py') as f:\n version = re.findall(r\"^__version__ = '(.*)'\", f.read(), re.M)[0]\n\nwith ope... | python | chosen |
[
{
"from": "system",
"value": "Remove C file from package sent to pip env\n"
},
{
"from": "human",
"value": "\ntry:\n from distutils.core import setup\nexcept ImportError:\n from setuptools import setup\n\nopen('MANIFEST.in', 'w').write(\"\\n\".join((\n 'include *.rst',\n 'include doc... | python | chosen |
[
{
"from": "system",
"value": "Add missing libraries to the install_requires list (we import from them, so they really should be declared.\n"
},
{
"from": "human",
"value": "from setuptools import setup\n\nversion = '0.5.dev0'\n\nlong_description = '\\n\\n'.join([\n open('README.rst').read(),\... | python | chosen |
[
{
"from": "system",
"value": "Fix dependencies with new package ldap3\n\nOld package 'python3_ldap' is now called 'ldap3'. And 'python3_ldap' version 0.9.5.3 is no more available on pypi"
},
{
"from": "human",
"value": "from setuptools import setup, find_packages\n\nfrom django_python3_ldap impo... | python | chosen |
[
{
"from": "system",
"value": "Drop python 2.6 support from metadata\n"
},
{
"from": "human",
"value": "import codecs\nimport re\nfrom os import path\nfrom setuptools import setup\n\n\ndef read(*parts):\n file_path = path.join(path.dirname(__file__), *parts)\n return codecs.open(file_path).... | python | chosen |
[
{
"from": "system",
"value": "Remove the reference to README."
},
{
"from": "human",
"value": "import os\nimport re\nimport sys\n\nfrom setuptools import setup, find_packages\n\n\nif sys.version_info[:2] < (2, 6):\n raise RuntimeError('Requires Python 2.6 or better')\n\nhere = os.path.abspath... | python | chosen |
[
{
"from": "system",
"value": "Make version number match patchboard, bitvault\n"
},
{
"from": "human",
"value": "from setuptools import setup, find_packages\n\n\nsetup(name='coinop',\n version='0.0.3',\n description='Crypto-currency conveniences',\n url='http://github.com/BitVault/... | python | chosen |
[
{
"from": "system",
"value": "Add long description (from README.md)\n"
},
{
"from": "human",
"value": "#!/usr/bin/env python\n\nfrom setuptools import setup\n\nsetup(name='pyannotate',\n version='1.0.5',\n description=\"PyAnnotate: Auto-generate PEP-484 annotations\",\n author='Dr... | python | chosen |
[
{
"from": "system",
"value": "Add python 3.9 to trove classifiers\n"
},
{
"from": "human",
"value": "from setuptools import find_packages, setup\n\nwith open(\"README.rst\") as readme_file:\n readme = readme_file.read()\n\nsetup(\n name=\"homebrew\",\n version=\"0.2.1\",\n descriptio... | python | chosen |
[
{
"from": "system",
"value": "Add requirements to package definition.\n"
},
{
"from": "human",
"value": "import os\nimport setuptools\n\n\nrequirements = [\n \"numpy\",\n \"scipy\",\n \"lasagne\",\n]\n\n\ndef readme():\n base_dir = os.path.abspath(os.path.dirname(__file__))\n with... | python | chosen |
[
{
"from": "system",
"value": "Add classifier for Python 3\n"
},
{
"from": "human",
"value": "\"\"\"Setup script for zinnia-theme-bootstrap\"\"\"\nfrom setuptools import setup\nfrom setuptools import find_packages\n\nimport zinnia_bootstrap\n\nsetup(\n name='zinnia-theme-bootstrap',\n versi... | python | chosen |
[
{
"from": "system",
"value": "Update pypi version, update requirements.\n"
},
{
"from": "human",
"value": "import os\nfrom setuptools import find_packages, setup\n\nwith open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme:\n README = readme.read()\n\n# allow setup.py to be ru... | python | chosen |
[
{
"from": "system",
"value": "Prepare for next development cycle\n"
},
{
"from": "human",
"value": "#!/usr/bin/env python\n# coding: utf-8\n\nfrom setuptools import setup, find_packages\nsetup(\n name=\"bentoo\",\n description=\"Benchmarking tools\",\n version=\"0.9\",\n packages=fin... | python | chosen |
[
{
"from": "system",
"value": "Rename package name to lightmatchingengine\n"
},
{
"from": "human",
"value": "from setuptools import setup, find_packages\n\nsetup(\n name=\"LightMatchingEngine\",\n url=\"https://github.com/gavincyi/LightMatchingEngine\",\n license='MIT',\n\n author=\"G... | python | chosen |
[
{
"from": "system",
"value": "Improve parameters usage of create_path function.\n"
},
{
"from": "human",
"value": "# -*- coding: utf-8 -*-\n\nfrom setuptools import setup, find_packages\n\nVERSION = '1.4.0'\n\nsetup(\n name='tornadoes',\n version=VERSION,\n description=\"A tornado-power... | python | chosen |
[
{
"from": "system",
"value": "Update email address and home page.\n"
},
{
"from": "human",
"value": "#\n# This file is part of ArgProc. ArgProc is free software that is made\n# available under the MIT license. Consult the file \"LICENSE\" that is\n# distributed together with this file for the ex... | python | chosen |
[
{
"from": "system",
"value": "MNT: Use the version specified in depfinder.py\n"
},
{
"from": "human",
"value": "from setuptools import setup\n\nsetup(name='depfinder',\n version='0.0.1',\n author='Eric Dill',\n author_email='thedizzle@gmail.com',\n py_modules=['depfinder'],\n... | python | chosen |
[
{
"from": "system",
"value": "Upgrade ldap3 1.0.4 => 1.1.2\n"
},
{
"from": "human",
"value": "import sys\n\nfrom setuptools import find_packages, setup\n\n\nwith open('VERSION') as version_fp:\n VERSION = version_fp.read().strip()\n\n\ninstall_requires = [\n 'django-local-settings>=1.0a14'... | python | chosen |
[
{
"from": "system",
"value": "Move requirements to separate file\n"
},
{
"from": "human",
"value": "#!/usr/bin/env python\n\nimport sys\nfrom os.path import join, dirname\nfrom setuptools import setup\n\nsys.path.append(join(dirname(__file__), 'src'))\n\nexecfile(join(dirname(__file__), 'src', '... | python | chosen |
[
{
"from": "system",
"value": "Make it work with older python versions as well"
},
{
"from": "human",
"value": "#!/usr/bin/env python\nfrom distutils.core import setup\nfrom os.path import dirname, join\n\nsetup(name='hashids',\n version='0.8.3',\n description='Python implementation of ... | python | chosen |
[
{
"from": "system",
"value": "Rework Cython to avoid duplicated build, include numpy headers\n"
},
{
"from": "human",
"value": "#!/usr/bin/env python\n\nfrom setuptools import Extension, setup\nfrom Cython.Build import cythonize\nimport numpy\n\nsourcefiles = [ 'SuchTree/SuchTree.pyx' ]\n\nexten... | python | chosen |
[
{
"from": "system",
"value": "Fix bug in getting long_description.\n"
},
{
"from": "human",
"value": "#!/usr/bin/env python\n\nfrom distutils.core import setup\nfrom vaspy import __version__ as version\n\nmaintainer = 'Shao-Zheng-Jiang'\nmaintainer_email = 'shaozhengjiang@gmail.com'\nauthor = ma... | python | chosen |
[
{
"from": "system",
"value": "Use version suffix instead of renaming\n"
},
{
"from": "human",
"value": "import sys\n\nfrom setuptools import setup\n\nextra = {}\nif sys.version_info >= (3,):\n extra['use_2to3'] = True\n\nsetup(name='mockito-edgeware',\n version='1.0.0',\n packages=['m... | python | chosen |
[
{
"from": "system",
"value": "Use tarball to match current version\n"
},
{
"from": "human",
"value": "import os\nfrom setuptools import setup, find_packages\nfrom wagtailmenus import __version__\n\nwith open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme:\n README = readme.re... | python | chosen |
[
{
"from": "system",
"value": "Make comment about time accuracy more universal\n"
},
{
"from": "human",
"value": "import time\n\nfrom influxdb import InfluxDBClient\nfrom influxdb import SeriesHelper\n\nfrom . import config\n\n# expects Cozify devices type json data\ndef getMultisensorData(data):... | python | chosen |
[
{
"from": "system",
"value": "Fix a typo in documentation.\n"
},
{
"from": "human",
"value": "# -*- coding: utf-8 -*-\n\nfrom django.db import models\nfrom django.utils.translation import ugettext_lazy as _\n\nfrom basic_extras.utils import now\n\n\nclass MetaBase(models.Model):\n \"\"\"Abstr... | python | chosen |
[
{
"from": "system",
"value": "Fix dumb bug in release task\n"
},
{
"from": "human",
"value": "from os import mkdir\nfrom os.path import join\nfrom shutil import rmtree, copytree\n\nfrom invoke import Collection, ctask as task\nfrom invocations.docs import docs, www\nfrom invocations.packaging im... | python | chosen |
[
{
"from": "system",
"value": "Add teardown function as well\n"
},
{
"from": "human",
"value": "import unittest\nimport os\n\nfrom main import generate_files\n\nclass WordsTest(unittest.TestCase):\n def setUp(self):\n for fname in [\"test_sequences\", \"test_words\"]:\n if os... | python | chosen |
[
{
"from": "system",
"value": "Improve performance of 'test' task\n"
},
{
"from": "human",
"value": "# Project tasks (for use with invoke task runner)\n\nimport subprocess\nfrom invoke import task\n\n\n@task\ndef test(cover=False):\n # Run tests using nose called with coverage\n code = subp... | python | chosen |
[
{
"from": "system",
"value": "Add self to test cases\n\nChange-Id: Ib8a8fea97fb7390613a5521103f0f9d31615f262\n"
},
{
"from": "human",
"value": "#coding:utf8\n\nimport unittest\n\n\nclass TestFunctions(unittest.TestCase):\n\n def first(self):\n assertEqual('test', 'test')\n\n def sec... | python | chosen |
[
{
"from": "system",
"value": "Improve yml template test case.\n\nPrint out yml file name when failed to loading yml.\n\nChange-Id: Ie34282b91ec8101ffa2676e3144acf5a054578b0\n"
},
{
"from": "human",
"value": "# Copyright 2015 Intel, Inc\n#\n# Licensed under the Apache License, Version 2.0 (the \"... | python | chosen |
[
{
"from": "system",
"value": "Modify handling of module conflict in shortest augmenting path maxflow\n"
},
{
"from": "human",
"value": "from networkx.algorithms.flow.maxflow import *\nfrom networkx.algorithms.flow.mincost import *\nfrom networkx.algorithms.flow.preflow_push import *\nfrom networ... | python | chosen |
[
{
"from": "system",
"value": "Fix typo in package description\n"
},
{
"from": "human",
"value": "import os\nimport shutil\n\nfrom setuptools import setup, find_packages, Command\n\nimport oscrypto\n\n\n\nclass CleanCommand(Command):\n user_options = []\n\n def initialize_options(self):\n ... | python | chosen |
[
{
"from": "system",
"value": "Fix last issues with new implementation\n"
},
{
"from": "human",
"value": "from setuptools import setup\n\nwith open('README.md') as f:\n long_description = f.read()\n\nsetup(\n name='abraia',\n version='0.3.2',\n description='Abraia Python SDK',\n lo... | python | chosen |
[
{
"from": "system",
"value": "Add console logging option to sg_train_func.\n"
},
{
"from": "human",
"value": "# -*- coding: utf-8 -*-\nfrom distutils.core import setup\n\nsetup(\n name='sugartensor',\n packages=['sugartensor'],\n version='0.0.1.4',\n description='A slim tensorflow wr... | python | chosen |
[
{
"from": "system",
"value": "Change python module author to @tonyseek\n"
},
{
"from": "human",
"value": "#!/usr/bin/env python\n\nfrom setuptools import setup\n\n\ndef fread(filepath):\n with open(filepath, 'r') as f:\n return f.read()\n\n\nsetup(\n name='GB2260',\n version='0.1... | python | chosen |
[
{
"from": "system",
"value": "Add dependency to vcstools>=0.1.34 (to be released)\n"
},
{
"from": "human",
"value": "from setuptools import setup\n\nimport imp\n\n\ndef get_version():\n ver_file = None\n try:\n ver_file, pathname, description = imp.find_module('__version__', ['src/w... | python | chosen |
[
{
"from": "system",
"value": "Add base trove classifier for Django.\n\nImplying \"currently supported versions\".\n"
},
{
"from": "human",
"value": "from setuptools import find_packages, setup\nfrom channels import __version__\n\nsetup(\n name='channels',\n version=__version__,\n url='h... | python | chosen |
[
{
"from": "system",
"value": "Add collections package to required list.\n"
},
{
"from": "human",
"value": "#!/usr/bin/env python\n# -*- coding: UTF-8 -*-\n\nfrom setuptools import setup\nfrom glob import glob\n\nclassifiers = [\n 'Development Status :: 4 - Beta',\n 'Intended Audience :: Sc... | python | chosen |
[
{
"from": "system",
"value": "Add also Pillow as a test depdenency\n"
},
{
"from": "human",
"value": "from setuptools import setup, find_packages\nimport os, sys\n\nversion = '0.0.1'\n\nhere = os.path.abspath(os.path.dirname(__file__))\ntry:\n README = open(os.path.join(here, 'README.rst')).r... | python | chosen |
[
{
"from": "system",
"value": "Add missing required package: psycopg2"
},
{
"from": "human",
"value": "#! /usr/bin/env python\n\nfrom setuptools import find_packages, setup\n\nsetup(name='oemof.db',\n version='0.0.2',\n description='The oemof database extension',\n namespace_packag... | python | chosen |
[
{
"from": "system",
"value": "Check if you are using python 3.3+\n"
},
{
"from": "human",
"value": "# -*- coding: utf-8 -*-\n\n\"\"\"\nA text interface to Taiga.\n\"\"\"\n\nfrom taiga_ncurses import __name__, __description__, __version__\n\nfrom setuptools import setup, find_packages\n\nREQUIREM... | python | chosen |
[
{
"from": "system",
"value": "Append License, Topic to classifiers.\n\nSigned-off-by: Kouhei Maeda <c9f1823971fa1a4c79cdb50b3311094021cee31e@palmtb.net>\n"
},
{
"from": "human",
"value": "#!/usr/bin/env python\n\nimport sys\nassert sys.version >= '2.5', \"Requires Python v2.5 or above.\"\nfrom s... | python | chosen |
[
{
"from": "system",
"value": "Add classifiers and a fuller version number.\n"
},
{
"from": "human",
"value": "#!/usr/bin/env python\n\nfrom setuptools import setup\n\nsetup(name = \"medea\",\n license = \"Apache\",\n version = \"0.0\",... | python | chosen |
[
{
"from": "system",
"value": "Implement Anodized Robo Cub, Grove Tender\n"
},
{
"from": "human",
"value": "from ..utils import *\n\n\n##\n# Minions\n\n# Druid of the Fang\nclass GVG_080:\n\tdef action(self):\n\t\tif self.poweredUp:\n\t\t\tself.morph(\"GVG_080t\")\n"
},
{
"from": "gpt",
... | python | chosen |
[
{
"from": "system",
"value": "Remove upper-bound on required Sphinx version"
},
{
"from": "human",
"value": "#!/usr/bin/env python\n\nfrom setuptools import setup\n\n# Version info -- read without importing\n_locals = {}\nwith open('releases/_version.py') as fp:\n exec(fp.read(), None, _local... | python | chosen |
[
{
"from": "system",
"value": "Update author & use Color's new GH repo\n"
},
{
"from": "human",
"value": "try:\n from setuptools import setup\nexcept ImportError:\n from distutils.core import setup\n\n\nsetup(\n name=\"clrsvsim\",\n version=\"0.1.0\",\n description=\"Color Genomics... | python | chosen |
[
{
"from": "system",
"value": "Use unittest2 test loader when available.\n\nWhen default setuptools test loader is used, tests are collected into\nunittest.TestSuite instead of unittest2.TestSuite. As a result,\nsetUpClass() methods are not called and tests fail on Python 2.6.\n\nInstead, use unittest2 test ... | python | chosen |
[
{
"from": "system",
"value": "Create optional README in rst for pypi\n"
},
{
"from": "human",
"value": "# -*- coding: utf-8 -*\n\nimport os\nfrom setuptools import setup, find_packages\n\nreadme = os.path.join(os.path.dirname(__file__), 'README.md')\nlong_description = open(readme).read()\n\nset... | python | chosen |
[
{
"from": "system",
"value": "Cut a new version to update the README on PyPi.\n"
},
{
"from": "human",
"value": "\"\"\"A setuptools based setup module.\nSee:\nhttps://packaging.python.org/en/latest/distributing.html\nhttps://github.com/pypa/sampleproject\n\"\"\"\n\n# Always prefer setuptools ove... | python | chosen |
[
{
"from": "system",
"value": "Change url protocol to https for secure access"
},
{
"from": "human",
"value": "from setuptools import setup\n\nsetup(\n name='simpleblogging',\n version='2.0.13',\n packages=['simple'],\n url='http://github.com/orf/simple',\n license='MIT',\n auth... | python | chosen |
[
{
"from": "system",
"value": "Correct installation script to use the correct name for the package.\n\nBug solved\n"
},
{
"from": "human",
"value": "#!/usr/bin/env python\n\nfrom setuptools import setup\n\nsetup(name='hyppocratic',\n version='0.1',\n description='Software to convert tex... | python | chosen |
[
{
"from": "system",
"value": "Exclude tests from being installed.\n\nThey would polute global package namespace.\n"
},
{
"from": "human",
"value": "# -*- coding: utf-8 -*-\nimport codecs\nimport re\nfrom os import path\nfrom distutils.core import setup\nfrom setuptools import find_packages\n\n\n... | python | chosen |
[
{
"from": "system",
"value": "Update to Flask-Login 0.2.2 and bump version number\n"
},
{
"from": "human",
"value": "\"\"\"\nFlask-GoogleLogin\n-----------------\nFlask-GoogleLogin extends Flask-Login to use Google's OAuth2 authorization\n\nLinks\n`````\n* `documentation <http://packages.python.... | python | chosen |
[
{
"from": "system",
"value": "Fix name for extra arguments\n"
},
{
"from": "human",
"value": "#!/usr/bin/env python\n\nfrom setuptools import setup\n\nversion = '0.6.0.dev'\n\nrequired = open('requirements.txt').read().split('\\n')\nextra = {'all': ['mist', 'rime']}\n\nsetup(\n name='thunder-... | python | chosen |
[
{
"from": "system",
"value": "Put buqeyemodel back in folder for multi-file use\n"
},
{
"from": "human",
"value": "from distutils.core import setup\n\nsetup(\n name='buqeyemodel',\n # packages=['buqeyemodel'],\n py_modules=['buqeyemodel'],\n version='0.1',\n description='A statist... | python | chosen |
[
{
"from": "system",
"value": "Rename cmsocialServer to cmsPracticeWebServer, to avoid problems\n"
},
{
"from": "human",
"value": "# -*- coding: utf-8 -*-\n\n\"\"\"Build and installation routines for CMSocial.\n\n\"\"\"\n\nfrom __future__ import absolute_import\nfrom __future__ import print_funct... | python | chosen |
[
{
"from": "system",
"value": "Add more metadata for the package on PyPi\n"
},
{
"from": "human",
"value": "from setuptools import setup\n\n\nsetup(name='fntools',\n description='Functional programming tools for data processing',\n author=u'Taurus Olson',\n author_email=u'taurusols... | python | chosen |
[
{
"from": "system",
"value": "Make sure random values are random across processes\n"
},
{
"from": "human",
"value": "import logging\nimport random\nimport os\nfrom unittest import TestLoader, TestSuite\nimport unittest.util\n\nfrom exchangelib.util import PrettyXmlHandler\n\n\nclass RandomTestSu... | python | chosen |
[
{
"from": "system",
"value": "Fix warning from hypothesis above scope of resources() fixture\n"
},
{
"from": "human",
"value": "import os\nimport sys\nfrom pathlib import Path\n\nimport pytest\n\n\nif sys.version_info < (3, 4):\n print(\"Requires Python 3.4+\")\n sys.exit(1)\n\n\nTESTS_ROO... | python | chosen |
[
{
"from": "system",
"value": "Add shared fixtures for Mod and Game\n"
},
{
"from": "human",
"value": "\"\"\"Global test configuration\"\"\"\n\n\nimport os\nfrom pathlib import Path\n\nimport betamax\nimport pytest\n\nfrom mccurse import curse\n\n\n# Ensure cassete dir\nCASSETE_DIR = 'tests/casse... | python | chosen |
[
{
"from": "system",
"value": "[AC-7049] Add tests for the functionality added\n"
},
{
"from": "human",
"value": "# MIT License\n# Copyright (c) 2017 MassChallenge, Inc.\n\nfrom __future__ import unicode_literals\n\nfrom django.test import TestCase\n\nfrom accelerator.tests.factories import Progr... | python | chosen |
[
{
"from": "system",
"value": "Fix bug in nick configuration\n"
},
{
"from": "human",
"value": "from ConfigParser import SafeConfigParser\n\nclass ConfReader(object):\n def __init__(self, fn):\n defaults = {\n 'nick': 'pollirio',\n 'channel': '#polloalforno',\n ... | python | chosen |
[
{
"from": "system",
"value": "Add build comparison model keys\n"
},
{
"from": "human",
"value": "# This program is free software: you can redistribute it and/or modify\n# it under the terms of the GNU Affero General Public License as\n# published by the Free Software Foundation, either version 3... | python | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.