commit
stringlengths
40
40
subject
stringlengths
1
3.25k
old_file
stringlengths
4
311
new_file
stringlengths
4
311
old_contents
stringlengths
0
26.3k
lang
stringclasses
3 values
proba
float64
0
1
diff
stringlengths
0
7.82k
66785400dee22d97202413d23812c897266ce990
remove marge marks
setup.py
setup.py
import os from glob import glob from setuptools import find_namespace_packages, setup from setuptools.command.build_py import build_py as _build_py # From https://github.com/pypa/setuptools/pull/1574 class build_py(_build_py): def find_package_modules(self, package, package_dir): modules = super().find_package_modules(package, package_dir) patterns = self._get_platform_patterns( self.exclude_package_data, package, package_dir, ) excluded_module_files = [] for pattern in patterns: excluded_module_files.extend(glob(pattern)) for f in excluded_module_files: for module in modules: if module[2] == f: modules.remove(module) return modules with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme: README = readme.read() os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='fiduswriter-books', <<<<<<< HEAD version='3.10.dev1', ======= version='3.9.5', >>>>>>> 4eaa2b917a3241f1f30098b48a2360bb1615af8f packages=find_namespace_packages(), exclude_package_data={ "": ["configuration.py", "django-admin.py", "build/*"] }, include_package_data=True, license='AGPL License', description=( 'A Fidus Writer plugin to allow creation of books ' 'and article collections' ), long_description=README, url='https://www.github.org/fiduswriter/fiduswriter-books', author='Johannes Wilm', author_email='johannes@fiduswriter.org', classifiers=[ 'Environment :: Web Environment', 'Framework :: Django', 'Framework :: Django :: 3.1', 'Intended Audience :: Developers', 'License :: OSI Approved :: GNU Affero General Public License v3', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Programming Language :: Python :: 3', 'Topic :: Internet :: WWW/HTTP', 'Topic :: Internet :: WWW/HTTP :: Dynamic Content', ], cmdclass={'build_py': build_py} )
Python
0.999987
@@ -1019,21 +1019,8 @@ s',%0A -%3C%3C%3C%3C%3C%3C%3C HEAD%0A @@ -1044,86 +1044,8 @@ 1',%0A -=======%0A version='3.9.5',%0A%3E%3E%3E%3E%3E%3E%3E 4eaa2b917a3241f1f30098b48a2360bb1615af8f%0A
0147809b494d1a46c18afb7ecf1f60be49425a77
VERSION 2!
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup setup(name="pullme", version="1.0.1", description="A smart pull script for GitHub", author="Andrew Lorente", author_email="andrew.lorente@gmail.com", scripts=["scripts/pullme"])
Python
0
@@ -86,13 +86,13 @@ on=%22 -1.0.1 +2.0.0 %22,%0A
efa88a14e21455bbe2aa4d0dd4944472cfab1261
fix python3 'pip install' bug
setup.py
setup.py
#!/usr/bin/python # -*- coding: utf-8 -*- from __future__ import absolute_import from setuptools import setup, find_packages from itertools import ifilter from os import path from ast import parse import pip requirements = pip.req.parse_requirements("requirements.txt", session=pip.download.PipSession()) pip_requirements = [str(r.req) for r in requirements] with open('README.rst') as readme_file: readme = readme_file.read() with open('LICENSE.txt') as readme_file: license = readme_file.read() with open(path.join('gendo', '__init__.py')) as f: __version__ = parse(next(ifilter( lambda line: line.startswith('__version__'), f))).body[0].value.s setup( name='gendobot', author='Nick Ficano', author_email='nficano@gmail.com', version=__version__, packages=find_packages(exclude=['tests*']), url='http://nickficano.com', description="a lightweight Slackbot framework for Python", zip_safe=False, install_requires=pip_requirements, long_description=readme, license=license, classifiers=[ "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python", "Topic :: Internet", ] )
Python
0
@@ -118,16 +118,25 @@ ackages%0A +try:%0A from ite @@ -157,16 +157,45 @@ ifilter%0A +except:%0A ifilter = filter%0A from os
decfd45d96ef3ed83acfa7d357de72e3e9931ee2
Fix ECPy dependency version
setup.py
setup.py
#from distribute_setup import use_setuptools #use_setuptools() from setuptools import setup, find_packages from os.path import dirname, join import os here = dirname(__file__) setup( name='ledgerblue', version='0.1.18', author='Ledger', author_email='hello@ledger.fr', description='Python library to communicate with Ledger Blue/Nano S', long_description=open(join(here, 'README.md')).read(), url='https://github.com/LedgerHQ/blue-loader-python', packages=find_packages(), install_requires=['hidapi>=0.7.99', 'protobuf>=2.6.1', 'pycryptodomex>=3.6.1', 'future', 'ecpy>=0.8.1', 'pillow>=3.4.0', 'python-u2flib-host>=3.0.2'], extras_require = { 'smartcard': [ 'python-pyscard>=1.6.12-4build1' ] }, include_package_data=True, zip_safe=False, classifiers=[ 'License :: OSI Approved :: Apache Software License', 'Operating System :: POSIX :: Linux', 'Operating System :: Microsoft :: Windows', 'Operating System :: MacOS :: MacOS X' ] )
Python
0
@@ -219,17 +219,17 @@ n='0.1.1 -8 +9 ',%0A a @@ -606,11 +606,11 @@ %3E=0. -8.1 +9.0 ', '
84c9bdcb388f6fd77cf58ccdcd6b9d298017389a
order setup
setup.py
setup.py
# encoding: utf-8 import numpy from distutils.core import setup from distutils.extension import Extension from Cython.Distutils import build_ext import sys DESCRIPTION = 'TSNE implementations for python' if sys.platform == 'darwin': ext_modules = [Extension( name='bh_sne', sources=['tsne/bh_sne_src/quadtree.cpp', 'tsne/bh_sne_src/tsne.cpp', 'tsne/bh_sne.pyx'], include_dirs=[numpy.get_include(), 'tsne/bh_sne_src/'], extra_compile_args=['-I/System/Library/Frameworks/vecLib.framework/Headers'], extra_link_args=['-Wl,-framework', '-Wl,Accelerate', '-lcblas'], language='c++')] else: ext_modules = [Extension( name='bh_sne', sources=['tsne/bh_sne_src/quadtree.cpp', 'tsne/bh_sne_src/tsne.cpp', 'tsne/bh_sne.pyx'], include_dirs=[numpy.get_include(), '/usr/local/include', 'tsne/bh_sne_src/'], library_dirs=['/usr/local/lib'], extra_compile_args=['-msse2', '-O3', '-fPIC', '-w'], extra_link_args=['-lopenblas'], language='c++')] setup( name='tsne', version='0.0.1', maintainer='Daniel Rodriguez', maintainer_email='df.rodriguez143@gmail.com', packages=['tsne'], ext_modules=ext_modules, description=DESCRIPTION, license='see LICENCE.txt', cmdclass={'build_ext': build_ext}, long_description=open('README.txt').read(), url='https://github.com/danielfrg/py_tsne', install_requires=[ 'Cython==0.19.1', 'numpy==1.7.1', 'scipy==0.12.0' ], )
Python
0.000001
@@ -1310,16 +1310,64 @@ l.com',%0A + url='https://github.com/danielfrg/py_tsne',%0A pack @@ -1561,56 +1561,8 @@ (),%0A - url='https://github.com/danielfrg/py_tsne',%0A
2d18428d1774e4a15840462ad512e15e2a199c3d
add setuptools
setup.py
setup.py
from distutils.core import setup #with open("README.md", "r") as fh: # long_description = fh.read() setup(name='pyviko', version='1.1.0.6', description='Design knockout viruses in Python', author='LJ Taylor', author_email='l'+'taylor'+str(3+4)+'@'+'tu'+'lane.edu', url='https://github.com/louiejtaylor/pyViKO', packages=['pyviko'], #install_requires=['future'], license='MIT License', classifiers = ['Intended Audience :: Science/Research', 'Environment :: Console', 'Environment :: Web Environment', 'License :: OSI Approved :: MIT License', 'Programming Language :: Python :: 3', 'Topic :: Scientific/Engineering :: Bio-Informatics',], py_modules = ['pyviko.core', 'pyviko.mutation', 'pyviko.restriction'] )
Python
0
@@ -1,8 +1,26 @@ +import setuptools%0A from dis
640e97b41c0cddacc28199560817fae1083f7b39
Add Python 3.10 to the list of supported versions
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup, Command, Extension from setuptools.command.build_ext import build_ext import distutils from distutils.command import build from subprocess import check_output, check_call import sys, os PY_MAJOR = sys.version_info[0] PY_MINOR = sys.version_info[1] # Disable SourceLink during the build until it can read repo-format v1, #1613 os.environ["EnableSourceControlManagerQueries"] = "false" class DotnetLib: def __init__(self, name, path, **kwargs): self.name = name self.path = path self.args = kwargs class build_dotnet(Command): """Build command for dotnet-cli based builds""" description = "Build DLLs with dotnet-cli" user_options = [ ("dotnet-config=", None, "dotnet build configuration"), ( "inplace", "i", "ignore build-lib and put compiled extensions into the source " + "directory alongside your pure Python modules", ), ] def initialize_options(self): self.dotnet_config = None self.build_lib = None self.inplace = False def finalize_options(self): if self.dotnet_config is None: self.dotnet_config = "release" build = self.distribution.get_command_obj("build") build.ensure_finalized() if self.inplace: self.build_lib = "." else: self.build_lib = build.build_lib def run(self): dotnet_modules = self.distribution.dotnet_libs for lib in dotnet_modules: output = os.path.join( os.path.abspath(self.build_lib), lib.args.pop("output") ) rename = lib.args.pop("rename", {}) opts = sum( [ ["--" + name.replace("_", "-"), value] for name, value in lib.args.items() ], [], ) opts.extend(["--configuration", self.dotnet_config]) opts.extend(["--output", output]) self.announce("Running dotnet build...", level=distutils.log.INFO) self.spawn(["dotnet", "build", lib.path] + opts) for k, v in rename.items(): source = os.path.join(output, k) dest = os.path.join(output, v) if os.path.isfile(source): try: os.remove(dest) except OSError: pass self.move_file(src=source, dst=dest, level=distutils.log.INFO) else: self.warn( "Can't find file to rename: {}, current dir: {}".format( source, os.getcwd() ) ) # Add build_dotnet to the build tasks: from distutils.command.build import build as _build from setuptools.command.develop import develop as _develop from wheel.bdist_wheel import bdist_wheel as _bdist_wheel from setuptools import Distribution import setuptools class build(_build): sub_commands = _build.sub_commands + [("build_dotnet", None)] class develop(_develop): def install_for_development(self): # Build extensions in-place self.reinitialize_command("build_dotnet", inplace=1) self.run_command("build_dotnet") return super().install_for_development() class bdist_wheel(_bdist_wheel): def finalize_options(self): # Monkey patch bdist_wheel to think the package is pure even though we # include DLLs super().finalize_options() self.root_is_pure = True # Monkey-patch Distribution s.t. it supports the dotnet_libs attribute Distribution.dotnet_libs = None cmdclass = { "build": build, "build_dotnet": build_dotnet, "develop": develop, "bdist_wheel": bdist_wheel, } with open("README.rst", "r") as f: long_description = f.read() dotnet_libs = [ DotnetLib( "python-runtime", "src/runtime/Python.Runtime.csproj", output="pythonnet/runtime", ) ] setup( cmdclass=cmdclass, name="pythonnet", version="3.0.0.dev1", description=".Net and Mono integration for Python", url="https://pythonnet.github.io/", license="MIT", author="The Contributors of the Python.NET Project", author_email="pythonnet@python.org", packages=["pythonnet", "pythonnet.find_libpython"], install_requires=["clr_loader"], long_description=long_description, long_description_content_type="text/x-rst", py_modules=["clr"], dotnet_libs=dotnet_libs, classifiers=[ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: C#", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Operating System :: Microsoft :: Windows", "Operating System :: POSIX :: Linux", "Operating System :: MacOS :: MacOS X", ], zip_safe=False, )
Python
0.000001
@@ -238,71 +238,8 @@ os%0A%0A -PY_MAJOR = sys.version_info%5B0%5D%0APY_MINOR = sys.version_info%5B1%5D%0A%0A # Di @@ -5017,16 +5017,66 @@ : 3.9%22,%0A + %22Programming Language :: Python :: 3.10%22,%0A
4d58ec18e687d6e2c39eabf8678e20278df73e9d
Update test
test/util/test_procrunner.py
test/util/test_procrunner.py
from __future__ import division import dials.util.procrunner import mock import pytest @pytest.mark.skipif(dials.util.procrunner.dummy, reason='procrunner class set to dummy mode') @mock.patch('dials.util.procrunner._NonBlockingStreamReader') @mock.patch('dials.util.procrunner.time') @mock.patch('dials.util.procrunner.subprocess') def test_run_command_aborts_after_timeout(mock_subprocess, mock_time, mock_streamreader): mock_process = mock.Mock() mock_process.returncode = None mock_subprocess.Popen.return_value = mock_process task = ['___'] with pytest.raises(Exception): dials.util.procrunner.run_process(task, -1, False) assert mock_subprocess.Popen.called assert mock_process.terminate.called assert mock_process.kill.called @pytest.mark.skipif(dials.util.procrunner.dummy, reason='procrunner class set to dummy mode') @mock.patch('dials.util.procrunner._NonBlockingStreamReader') @mock.patch('dials.util.procrunner.subprocess') def test_run_command_runs_command_and_directs_pipelines(mock_subprocess, mock_streamreader): (mock_stdout, mock_stderr) = (mock.Mock(), mock.Mock()) mock_stdout.get_output.return_value = mock.sentinel.proc_stdout mock_stderr.get_output.return_value = mock.sentinel.proc_stderr (stream_stdout, stream_stderr) = (mock.sentinel.stdout, mock.sentinel.stderr) mock_process = mock.Mock() mock_process.stdout = stream_stdout mock_process.stderr = stream_stderr mock_process.returncode = 99 command = ['___'] def streamreader_processing(*args, **kwargs): return {(stream_stdout,): mock_stdout, (stream_stderr,): mock_stderr}[args] mock_streamreader.side_effect = streamreader_processing mock_subprocess.Popen.return_value = mock_process expected = { 'stderr': mock.sentinel.proc_stderr, 'stdout': mock.sentinel.proc_stdout, 'exitcode': mock_process.returncode, 'command': command, 'runtime': mock.ANY, 'timeout': False, 'time_start': mock.ANY, 'time_end': mock.ANY } actual = dials.util.procrunner.run_process(command, 0.5, False) assert mock_subprocess.Popen.called mock_streamreader.assert_has_calls([mock.call(stream_stdout, output=mock.ANY), mock.call(stream_stderr, output=mock.ANY)], any_order=True) assert not mock_process.terminate.called assert not mock_process.kill.called assert actual == expected def test_nonblockingstreamreader_can_read(): import time class _stream: def __init__(self): self.data = [] self.closed = False def write(self, string): self.data.append(string) def readline(self): while (len(self.data) == 0) and not self.closed: time.sleep(0.3) return self.data.pop(0) if len(self.data) > 0 else '' def close(self): self.closed=True teststream = _stream() testdata = ['a', 'b', 'c'] streamreader = dials.util.procrunner._NonBlockingStreamReader(teststream, output=False) for d in testdata: teststream.write(d) assert not streamreader.has_finished() teststream.close() time.sleep(0.6) assert streamreader.has_finished() assert streamreader.get_output() == ''.join(testdata)
Python
0.000001
@@ -2164,16 +2164,32 @@ mock.ANY +, debug=mock.ANY ), mock. @@ -2223,16 +2223,32 @@ mock.ANY +, debug=mock.ANY )%5D, any_
01f33d9760d68e79913b8eee0174e8dfc46fbae7
remove the msl-loadlib version number in the dependency
setup.py
setup.py
import os import re import sys from setuptools import setup, find_packages sys.path.insert(0, os.path.join(os.path.abspath(os.path.dirname(__file__)), 'docs')) import docs_commands def read(filename): with open(filename) as fp: text = fp.read() return text def fetch_init(key): # open the __init__.py file to determine the value instead of importing the package to get the value init_text = read('msl/equipment/__init__.py') return re.compile(r'{}\s*=\s*(.*)'.format(key)).search(init_text).group(1)[1:-1] testing = {'test', 'tests', 'pytest'}.intersection(sys.argv) pytest_runner = ['pytest-runner'] if testing else [] needs_sphinx = {'doc', 'docs', 'apidoc', 'apidocs', 'build_sphinx'}.intersection(sys.argv) sphinx = ['sphinx', 'sphinx_rtd_theme'] if needs_sphinx else [] requirements = [pkg for pkg in read('requirements.txt').splitlines() if not pkg.startswith('http')] setup( name='msl-equipment', version=fetch_init('__version__'), author=fetch_init('__author__'), author_email='joseph.borbely@measurement.govt.nz', url='https://github.com/MSLNZ/msl-equipment', description='Manage and communicate with equipment in the laboratory.', long_description=read('README.rst'), license='MIT', platforms='any', classifiers=[ 'Development Status :: 3 - Alpha', 'Environment :: Console', 'Intended Audience :: Science/Research', 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Programming Language :: Python', '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', 'Programming Language :: Python :: 3.6', 'Topic :: Scientific/Engineering :: Physics', ], setup_requires=sphinx + pytest_runner, tests_require=['pytest-cov', 'pytest'], install_requires=['msl-loadlib==0.3.1'] + requirements if not testing else [], dependency_links=['https://github.com/MSLNZ/msl-loadlib/tarball/master#egg=msl-loadlib-0.3.1'], cmdclass={ 'docs': docs_commands.BuildDocs, 'apidocs': docs_commands.ApiDocs, }, packages=find_packages(include=('msl*',)), include_package_data=True, )
Python
0
@@ -2084,15 +2084,8 @@ dlib -==0.3.1 '%5D + @@ -2218,12 +2218,8 @@ ib-0 -.3.1 '%5D,%0A
879915958ed8be4b57e2d53ca744a97b3429dd5e
Update setup.py
setup.py
setup.py
import sys sys.path.append('./pyCGM_Single') # TODO update to pycgm when fixed from _about import __version__ import setuptools with open("README.md", "r",encoding="utf8") as fh: long_description = fh.read() setuptools.setup( name="pyCGM", version= __version__, author="", # Many author_email="cadop@umich.edu", description="A Python Implementation of the Conventional Gait Model", long_description=long_description, long_description_content_type="text/markdown", url="https://github.com/cadop/pycgm", packages=setuptools.find_packages(), classifiers=[ "Programming Language :: Python :: 3", "License :: OSI Approved :: MIT", "Operating System :: OS Independent", ], python_requires='>=3', install_requires=['numpy>=1.15'], package_data={ "": ["SampleData/ROM/*.c3d","SampleData/ROM/*.vsk"], # TODO Need to fix }, include_package_data=True, )
Python
0
@@ -797,16 +797,24 @@ y%3E=1.15' +,'scipy' %5D,%0A p
c96dfa0387380da023f72b77b2d159e400d2f491
Update to the latest version of wptrunner.
setup.py
setup.py
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this file, # You can obtain one at http://mozilla.org/MPL/2.0/. from setuptools import setup PACKAGE_VERSION = '0.1' deps = ['fxos-appgen>=0.2.7', 'marionette_client>=0.7.1.1', 'marionette_extension >= 0.1', 'mozdevice >= 0.33', 'mozlog >= 1.8', 'moznetwork >= 0.24', 'mozprocess >= 0.18', 'wptserve >= 1.0.1', 'wptrunner >= 0.2.8, < 0.3'] setup(name='fxos-certsuite', version=PACKAGE_VERSION, description='Certification suite for FirefoxOS', classifiers=[], keywords='mozilla', author='Mozilla Automation and Testing Team', author_email='tools@lists.mozilla.org', url='https://github.com/mozilla-b2g/fxos-certsuite', license='MPL', packages=['certsuite'], include_package_data=True, zip_safe=False, install_requires=deps, entry_points=""" # -*- Entry points: -*- [console_scripts] runcertsuite = certsuite:harness_main cert = certsuite:certcli """)
Python
0
@@ -522,17 +522,8 @@ r %3E= - 0.2.8, %3C 0.3
23301d890239db74ebd754175c11314c4d8a91ec
Remove the pbr version requirements in setup.py
setup.py
setup.py
#!/usr/bin/env python # Copyright (c) 2013 Hewlett-Packard Development Company, L.P. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or # implied. # See the License for the specific language governing permissions and # limitations under the License. # THIS FILE IS MANAGED BY THE GLOBAL REQUIREMENTS REPO - DO NOT EDIT import setuptools setuptools.setup( setup_requires=['pbr>=0.5.21,<1.0'], pbr=True)
Python
0
@@ -760,21 +760,8 @@ 'pbr -%3E=0.5.21,%3C1.0 '%5D,%0A @@ -773,8 +773,9 @@ br=True) +%0A
50a89b33201e1ceec8207b705b3829a72bca51c4
Bump to version 10
setup.py
setup.py
from setuptools import setup, find_packages setup( name='kobold', version='9', packages=find_packages(), install_requires=['python-dateutil==2.2'], tests_require=['nosetests'], )
Python
0
@@ -81,9 +81,10 @@ on=' -9 +10 ',%0A
632f97f4e2e63735ff04e6a0fd689bf6f8fd6018
Set version to 2013.2
setup.py
setup.py
#!/usr/bin/env python # vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. import setuptools from tempest.openstack.common import setup as common_setup requires = common_setup.parse_requirements() depend_links = common_setup.parse_dependency_links() setuptools.setup(name='tempest', version="2012.2", description='Integration test tools', author='OpenStack', author_email='openstack-qa@lists.launchpad.net', url='http://www.openstack.org/', classifiers=['Environment :: OpenStack', 'Intended Audience :: Information Technology', 'Intended Audience :: System Administrators', 'Intended Audience :: Developers', 'License :: OSI Approved :' ': Apache Software License', 'Operating System :: POSIX :: Linux', 'Programming Language :: Python', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.7', ], cmdclass=common_setup.get_cmdclass(), packages=setuptools.find_packages(exclude=['bin']), install_requires=requires, dependency_links=depend_links, include_package_data=True, test_suite='nose.collector', setup_requires=['setuptools_git>=0.4'], scripts=['bin/tempest'], py_modules=[])
Python
0
@@ -1032,16 +1032,53 @@ ion= +common_setup.get_version('tempest', %22201 -2 +3 .2%22 +) ,%0A
974f8211b20020c29ed893b0541a50ec1d3ba79a
Add secret key to test
test.py
test.py
import sys import django from django.conf import settings if django.VERSION >= (2, 0, 0): middleware_settings_key = "MIDDLEWARE" else: middleware_settings_key = 'MIDDLEWARE_CLASSES' configuration = { 'DEBUG': True, 'DATABASES': { 'default': { 'ENGINE': 'django.db.backends.sqlite3', } }, 'INSTALLED_APPS': [ 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'shopify_auth', ], 'AUTHENTICATION_BACKENDS': ['shopify_auth.backends.ShopUserBackend'], 'TEMPLATES': [ { 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'APP_DIRS': True } ], 'ROOT_URLCONF': 'shopify_auth.tests.urls', 'SHOPIFY_APP_NAME': 'Test App', 'SHOPIFY_APP_API_KEY': 'test-api-key', 'SHOPIFY_APP_API_SECRET': 'test-api-secret', 'SHOPIFY_APP_API_VERSION': 'unstable', 'SHOPIFY_APP_API_SCOPE': ['read_products'], 'SHOPIFY_APP_IS_EMBEDDED': True, 'SHOPIFY_APP_DEV_MODE': False, 'SHOPIFY_APP_THIRD_PARTY_COOKIE_CHECK': True, middleware_settings_key: [ 'django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', ] } settings.configure(**configuration) django.setup() from django.test.runner import DiscoverRunner test_runner = DiscoverRunner() failures = test_runner.run_tests(['shopify_auth']) if failures: sys.exit(failures)
Python
0.000001
@@ -1098,24 +1098,96 @@ ECK': True,%0A + 'SECRET_KEY': 'uq8e140t1rm3%5Ekk&blqxi*y9h_j5yd9ghjv+fd1p%2508g4%25t6%25i',%0A middlewa
005a723b576c1ff3326524814f3461ffa01a5f36
add six to install_requires, refs #288
setup.py
setup.py
""" Based entirely on Django's own ``setup.py``. """ import os import sys from distutils.command.install_data import install_data from distutils.command.install import INSTALL_SCHEMES try: from setuptools import setup except ImportError: from distutils.core import setup # NOQA class osx_install_data(install_data): # On MacOS, the platform-specific lib dir is at: # /System/Library/Framework/Python/.../ # which is wrong. Python 2.5 supplied with MacOS 10.5 has an Apple-specific # fix for this in distutils.command.install_data#306. It fixes install_lib # but not install_data, which is why we roll our own install_data class. def finalize_options(self): # By the time finalize_options is called, install.install_lib is set to # the fixed directory, so we set the installdir to install_lib. The # install_data class uses ('install_data', 'install_dir') instead. self.set_undefined_options('install', ('install_lib', 'install_dir')) install_data.finalize_options(self) if sys.platform == "darwin": cmdclasses = {'install_data': osx_install_data} else: cmdclasses = {'install_data': install_data} def fullsplit(path, result=None): """ Split a pathname into components (the opposite of os.path.join) in a platform-neutral way. """ if result is None: result = [] head, tail = os.path.split(path) if head == '': return [tail] + result if head == path: return result return fullsplit(head, [tail] + result) # Tell distutils to put the data_files in platform-specific installation # locations. See here for an explanation: # http://groups.google.com/group/comp.lang.python/browse_thread/thread/35ec7b2fed36eaec/2105ee4d9e8042cb for scheme in INSTALL_SCHEMES.values(): scheme['data'] = scheme['purelib'] # Compile the list of packages available, because distutils doesn't have # an easy way to do this. packages, data_files = [], [] root_dir = os.path.dirname(__file__) if root_dir != '': os.chdir(root_dir) extensions_dir = 'django_extensions' for dirpath, dirnames, filenames in os.walk(extensions_dir): # Ignore dirnames that start with '.' if os.path.basename(dirpath).startswith("."): continue if '__init__.py' in filenames: packages.append('.'.join(fullsplit(dirpath))) elif filenames: data_files.append([dirpath, [os.path.join(dirpath, f) for f in filenames]]) version = __import__('django_extensions').__version__ setup( name='django-extensions', version=version, description="Extensions for Django", long_description="""django-extensions bundles several useful additions for Django projects. See the project page for more information: http://github.com/django-extensions/django-extensions""", author='Michael Trier', author_email='mtrier@gmail.com', maintainer='Bas van Oostveen', maintainer_email='v.oostveen@gmail.com', url='http://github.com/django-extensions/django-extensions', license='New BSD License', platforms=['any'], packages=packages, cmdclass=cmdclasses, data_files=data_files, tests_require=['Django'], test_suite='run_tests.main', classifiers=[ 'Development Status :: 4 - Beta', 'Development Status :: 5 - Production/Stable', 'Environment :: Web Environment', 'Framework :: Django', 'Intended Audience :: Developers', 'License :: OSI Approved :: BSD License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Topic :: Utilities', ], )
Python
0
@@ -3144,24 +3144,54 @@ data_files,%0A + install_requires=%5B'six'%5D,%0A tests_re
64a069447b81cbfd6deb8cc753226fb8462ee4a2
test 5
test.py
test.py
import mwclient import MySQLdb from config import * # Test stuff # site = mwclient.Site('en.wikipedia.org') # page = site.Pages['Battle of Trenton'] # text = page.text() # print 'Trenton thingy: ', text.encode('utf-8') db = MySQLdb.connect( host = credentials['host'], user = credentials['user'], passwd = credentials['pass'], db = credentials['db'] ) cur = db.cursor() cur.execute( "SELECT p.page_title, p.page_touched FROM page p ORDER BY p.page_touched DESC LIMIT 20" ) site = mwclient.Site('test.wikipedia.org') page = site.Pages['DBR test'] text = page.text() print 'Page default text was: ', text newtext = '' for row in cur.fetchall() : newtext = newtext + cur[0] + '\n' page.save(newtext, summary = 'bot test edit')
Python
0.000035
@@ -514,16 +514,63 @@ a.org')%0A +site.login( testbot%5B'user'%5D, testbot%5B'pass'%5D )%0A page = s
fc75a8c5d5cccc3ab674394d1980d21af08324b5
fix a couple of bugs in the windows release command
setup.py
setup.py
#!/usr/bin/env python # # setup.py # # Copyright (C) 2009 Damien Churchill <damoxc@gmail.com> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3, or (at your option) # any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, write to: # The Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor # Boston, MA 02110-1301, USA. # import os import sys sys.path.append(os.path.join(os.path.dirname(__file__), '.pyrex')) try: from setuptools import setup, Extension except ImportError: import ez_setup ez_setup.use_setuptools() from setuptools import setup, Extension from distutils import log from distutils.cmd import Command from distutils.command.clean import clean as _clean from Cython.Distutils import build_ext as _build_ext _extra_compile_args = [ '-DMSDBLIB' ] ROOT = os.path.dirname(__file__) WINDOWS = False if sys.platform == 'win32': WINDOWS = True freetds_dir = os.path.join(ROOT, 'win32', 'freetds') include_dirs = [os.path.join(freetds_dir, 'include')] library_dirs = [os.path.join(freetds_dir, 'lib')] libraries = [ 'msvcrt', 'kernel32', 'user32', 'gdi32', 'winspool', 'ws2_32', 'comdlg32', 'advapi32', 'shell32', 'ole32', 'oleaut32', 'uuid', 'odbc32', 'odbccp32', 'libTDS', 'dblib' ] else: include_dirs = [ '/usr/local/include', '/usr/local/include/freetds', # first local install '/usr/include', '/usr/include/freetds', # some generic Linux paths '/usr/include/freetds_mssql', # some versions of Mandriva '/usr/local/freetds/include', # FreeBSD '/usr/pkg/freetds/include' # NetBSD ] library_dirs = [ '/usr/local/lib', '/usr/local/lib/freetds', '/usr/lib64', '/usr/lib', '/usr/lib/freetds', '/usr/lib/freetds_mssql', '/usr/local/freetds/lib', '/usr/pkg/freetds/lib' ] libraries = [ "sybdb" ] # on Mandriva you may have to change it to sybdb_mssql if sys.platform == 'darwin': fink = '/sw/' include_dirs.insert(0, fink + 'include') library_dirs.insert(0, fink + 'lib') # some mac ports paths include_dirs += [ '/opt/local/include', '/opt/local/include/freetds', '/opt/local/freetds/include' ] library_dirs += [ '/opt/local/lib', '/opt/local/lib/freetds', '/opt/local/freetds/lib' ] class build_ext(_build_ext): """ Subclass the Cython build_ext command so it extracts freetds.zip if it hasn't already been done. """ def run(self): # Not running on windows means we don't want to do this if not WINDOWS: return _build_ext.run(self) freetds_dir = os.path.join(ROOT, 'win32', 'freetds') # If the directory exists, it's probably been extracted already. if os.path.isdir(freetds_dir): return _build_ext.run(self) win32 = os.path.join(ROOT, 'win32') log.info('extracting FreeTDS') from zipfile import ZipFile zip = ZipFile(os.path.join(win32, 'freetds.zip')) zip.extractall(win32) zip.close() return _build_ext.run(self) class clean(_clean): """ Subclass clean so it removes all the Cython generated C files. """ def run(self): _clean.run(self) for ext in self.distribution.ext_modules: cy_sources = [s for s in ext.sources if s.endswith('.pyx')] for cy_source in cy_sources: c_source = cy_source[:-3] + 'c' if os.path.exists(c_source): log.info('removing %s', c_source) os.remove(c_source) class release(Command): """ Setuptools command to run all the required commands to perform a release. This acts differently depending on the platform it is being run on. """ description = "Run all the commands required for a release." user_options = [] def initialize_options(self): pass def finalize_options(self): pass def run(self): if WINDOWS: self.release_windows() else: self.release_unix() def release_window(self): sdist = self.distribution.get_command_obj('sdist') sdist.formats = 'zip' sdist.ensure_finalized() sdist.run() bdist = self.distribution.get_command_obj('bdist') bdist.formats = 'zip,wininst' bdist.ensure_finalized() bdist.run() bdist_egg = self.distribution.get_command_obj('bdist_egg') bdist_egg.bdist.ensure_finalized() bdist_egg.run() def release_unix(self): sdist = self.distribution.get_command_obj('sdist') sdist.formats = 'zip,gztar,bztar' sdist.ensure_finalized() sdist.run() setup( name = 'pymssql', version = '1.9.906', description = 'A simple database interface to MS-SQL for Python.', long_description = 'A simple database interface to MS-SQL for Python.', author = 'Damien Churchill', author_email = 'damoxc@gmail.com', license = 'LGPL', url = 'http://pymssql.sourceforge.net', cmdclass = { 'build_ext': build_ext, 'clean': clean, 'release': release }, data_files = [ ('', ['_mssql.pyx', 'pymssql.pyx']) ], setup_requires=["Cython>=0.12"], ext_modules = [Extension('_mssql', ['_mssql.pyx'], extra_compile_args = _extra_compile_args, include_dirs = include_dirs, library_dirs = library_dirs, libraries = libraries), Extension('pymssql', ['pymssql.pyx'], extra_compile_args = _extra_compile_args, include_dirs = include_dirs, library_dirs = library_dirs, libraries = libraries)] )
Python
0.000001
@@ -4786,16 +4786,17 @@ e_window +s (self):%0A @@ -5182,22 +5182,16 @@ ist_egg. -bdist. ensure_f
1b6b8fb4939062067e914d5ab94a743d5bc1268f
add click dep
setup.py
setup.py
# ---------------------------------------------------------------------------- # Copyright (c) 2013--, BP development team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file LICENSE, distributed with this software. # ---------------------------------------------------------------------------- import os from setuptools import setup from setuptools.extension import Extension from setuptools.command.build_py import build_py from setuptools.command.install import install from setuptools.command.develop import develop from setuptools.command.egg_info import egg_info import subprocess import numpy as np classes = """ Development Status :: 4 - Beta License :: OSI Approved :: BSD License Topic :: Scientific/Engineering Programming Language :: Python Programming Language :: Python :: 3.5 Programming Language :: Python :: 3.6 Operating System :: Unix Operating System :: POSIX Operating System :: MacOS :: MacOS X """ classifiers = [s.strip() for s in classes.split('\n') if s] long_description = """An implementation of a balanced tree as described by Cordova and Navarro""" curdir = os.path.abspath(__file__).rsplit('/', 1)[0] bitarr = os.path.join(curdir, 'bp/BitArray') class common: def build_bitarray(self): subprocess.run(['make', '-C', bitarr, 'libbitarr.a']) class BitArrayBuild(build_py, common): def run(self): self.build_bitarray() build_py.run(self) class BitArrayInstall(install, common): def run(self): self.build_bitarray() install.run(self) class BitArrayDevelop(develop, common): def run(self): self.build_bitarray() develop.run(self) class BitArrayEggInfo(egg_info, common): def run(self): self.build_bitarray() egg_info.run(self) USE_CYTHON = os.environ.get('USE_CYTHON', True) ext = '.pyx' if USE_CYTHON else '.c' extensions = [Extension("bp._bp", ["bp/_bp" + ext], include_dirs=[bitarr], library_dirs=[bitarr], libraries=['bitarr']), Extension("bp._io", ["bp/_io" + ext], ), Extension("bp._conv", ["bp/_conv" + ext], ), Extension("bp._binary_tree", ["bp/_binary_tree" + ext], ), Extension("bp._insert", ["bp/_insert" + ext], ), Extension("bp.GPL._insert", ["bp/GPL/_insert" + ext], ), Extension("bp.tests.test_bp_cy", ["bp/tests/test_bp_cy" + ext], include_dirs=['bp/BitArray/'], library_dirs=['bp/BitArray/'], libraries=['bitarr']), ] extensions.extend([Extension("bp._ba", ["bp/_ba" + ext], include_dirs=['bp/BitArray/'], library_dirs=['bp/BitArray/'], libraries=['bitarr'])]) if USE_CYTHON: from Cython.Build import cythonize extensions = cythonize(extensions) setup(name='iow', version="0.1.3", description='Balanced parentheses', author='Daniel McDonald', author_email='mcdonadt@colorado.edu', maintainer='Daniel McDonald', maintainer_email='mcdonadt@colorado.edu', url='https://github.com/wasade/improved-octo-waddle', packages=['bp'], ext_modules=extensions, include_dirs=[np.get_include(), bitarr], setup_requires=['numpy >= 1.9.2'], package_data={'bp': ['BitArray/*', ]}, install_requires=[ 'numpy >= 1.9.2', 'nose >= 1.3.7', 'cython >= 0.24.1', 'pandas', 'scikit-bio >= 0.5.0, < 0.6.0'], long_description=long_description, cmdclass={'build_py': BitArrayBuild, 'install': BitArrayInstall, 'develop': BitArrayDevelop, 'egg_info': BitArrayEggInfo }, entry_points=''' [console_scripts] bp=bp._cli:cli ''')
Python
0
@@ -3829,24 +3829,43 @@ 'pandas',%0A + 'click',%0A 's
da8916e883594197ca0605f0daa4c54021eb9681
Fix build issue with Python3
setup.py
setup.py
# # This file is part of gruvi. Gruvi is free software available under the # terms of the MIT license. See the file "LICENSE" that was provided # together with this source file for the licensing terms. # # Copyright (c) 2012-2013 the gruvi authors. See the file "AUTHORS" for a # complete list. from __future__ import absolute_import, print_function import os import sys import textwrap import subprocess from setuptools import setup # CFFI is needed to call setup(). Therefore it needs to be installed before the # setup script can be run. I had hoped that specifying setup_requires with # setup() would force pip to download it before installing an sdist from PyPI. # That appears not to be the case. We don't want our script to do too much # magic (like installing it automatically), so we just instruct the user to # install CFFI and bail out. try: import cffi except ImportError: sys.stderr.write('Error: CFFI (required for setup) is not available.\n') sys.stderr.write('Please use "pip install cffi", or equivalent.\n') sys.exit(1) version_info = { 'name': 'gruvi', 'version': '0.9.0', 'description': 'Synchronous evented IO with pyuv and greenlets', 'author': 'Geert Jansen', 'author_email': 'geertj@gmail.com', 'url': 'https://github.com/geertj/gruvi', 'license': 'MIT', 'classifiers': [ 'Development Status :: 4 - Beta', 'License :: OSI Approved :: MIT License', 'Operating System :: POSIX', 'Operating System :: Microsoft :: Windows', 'Operating System :: MacOS :: MacOS X', 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3.3' ] } topdir, _ = os.path.split(os.path.abspath(__file__)) def update_version(): """Update the _version.py file.""" fname = os.path.join('.', 'gruvi', '_version.py') try: with open(fname) as fin: current = fin.read() except IOError: current = None new = textwrap.dedent("""\ # This file is autogenerated. Do not edit. __version__ = '{0[version]}' """.format(version_info)) if current == new: return tmpname = '{0}.{1}-tmp'.format(fname, os.getpid()) with open(tmpname, 'w') as fout: fout.write(new) os.rename(tmpname, fname) print('Updated _version.py') def update_manifest(): """Update the MANIFEST.in file from git, if necessary.""" # It would be more efficient to create MANIFEST directly, rather # than creating a MANIFEST.in where every line just includes one file. # Unfortunately, setuptools/distribute do not support this (distutils # does). gitdir = os.path.join('.', '.git') try: st = os.stat(gitdir) except OSError: return cmd = subprocess.Popen(['git', 'ls-tree', '-r', 'master', '--name-only'], stdout=subprocess.PIPE) stdout, _ = cmd.communicate() files = stdout.splitlines() files.append('gruvi/_version.py') lines = ['include {0}\n'.format(fname) for fname in files] new = ''.join(sorted(lines)) try: with open('MANIFEST.in', 'r') as fin: current = fin.read() except IOError: current = None if new == current: return tmpname = 'MANIFEST.in.{0}-tmp'.format(os.getpid()) with open(tmpname, 'w') as fout: fout.write(new) os.rename(tmpname, 'MANIFEST.in') print('Updated MANIFEST.in') # Remove the SOURCES.txt that setuptools maintains. It appears not to # accurately regenerate it when MANIFEST.in changes. sourcestxt = os.path.join('lib', 'gruvi.egg-info', 'SOURCES.txt') if not os.access(sourcestxt, os.R_OK): return os.unlink(sourcestxt) print('Removed {0}'.format(sourcestxt)) def main(): os.chdir(topdir) update_version() update_manifest() sys.path.append('gruvi') import dbus_ffi, http_ffi, jsonrpc_ffi sys.path.pop() setup( packages = ['gruvi', 'gruvi.txdbus'], install_requires = ['greenlet', 'pyuv', 'cffi', 'six'], test_suite = 'nose.collector', zip_safe = False, ext_modules = [dbus_ffi.ffi.verifier.get_extension(), http_ffi.ffi.verifier.get_extension(), jsonrpc_ffi.ffi.verifier.get_extension()], **version_info ) if __name__ == '__main__': main()
Python
0
@@ -3010,16 +3010,32 @@ stdout. +decode('ascii'). splitlin
7f18350b161c03e95afe9064d79236afc82f26b2
Update trove classifiers
setup.py
setup.py
from setuptools import setup setup( name='tangled.sqlalchemy', version='0.1a2.dev0', description='Tangled SQLAlchemy integration', long_description=open('README.rst').read(), url='http://tangledframework.org/', author='Wyatt Baldwin', author_email='self@wyattbaldwin.com', packages=[ 'tangled', 'tangled.sqlalchemy', ], install_requires=[ 'tangled>=0.1.dev0', 'SQLAlchemy', ], extras_require={ 'dev': [ 'tangled[dev]', ], }, classifiers=[ 'Development Status :: 1 - Planning', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Programming Language :: Python :: 3', ], )
Python
0.000001
@@ -585,20 +585,17 @@ :: -1 - Planning +3 - Alpha ',%0A @@ -730,16 +730,67 @@ hon :: 3 +.3',%0A 'Programming Language :: Python :: 3.4 ',%0A %5D
a769a25fd6117c82020d40712444587658f1acf2
Handle distutils deprecation.
setup.py
setup.py
# Copyright (C) 2007-2009 Cournapeau David <cournape@gmail.com> # 2010 Fabian Pedregosa <fabian.pedregosa@inria.fr> # 2014 Gael Varoquaux # 2014-2016 Sergei Lebedev <superbobry@gmail.com> # 2018- Antony Lee from distutils.version import LooseVersion from io import open import setuptools from setuptools import Extension, find_packages, setup from setuptools.command.build_ext import build_ext # Added support for environment markers in install_requires. if LooseVersion(setuptools.__version__) < "36.2": raise ImportError("setuptools>=36.2 is required") class build_ext(build_ext): def finalize_options(self): # The key point: here, Cython and numpy will have been installed by # pip. from Cython.Build import cythonize import numpy as np import numpy.distutils self.distribution.ext_modules[:] = cythonize("**/*.pyx") # Sadly, this part needs to be done manually. for ext in self.distribution.ext_modules: for k, v in np.distutils.misc_util.get_info("npymath").items(): setattr(ext, k, v) ext.include_dirs = [np.get_include()] super().finalize_options() def build_extensions(self): try: self.compiler.compiler_so.remove("-Wstrict-prototypes") except (AttributeError, ValueError): pass super().build_extensions() setup( name="hmmlearn", description="Hidden Markov Models in Python with scikit-learn like API", long_description=open("README.rst", encoding="utf-8").read(), maintainer="Antony Lee", url="https://github.com/hmmlearn/hmmlearn", license="new BSD", classifiers=[ "Development Status :: 3 - Alpha", "License :: OSI Approved", "Intended Audience :: Developers", "Intended Audience :: Science/Research", "Topic :: Software Development", "Topic :: Scientific/Engineering", "Programming Language :: Cython", "Programming Language :: Python", "Programming Language :: Python :: 3", ], cmdclass={"build_ext": build_ext}, py_modules=[], packages=find_packages("lib"), package_dir={"": "lib"}, ext_modules=[Extension("", [])], package_data={}, python_requires=">=3.5", setup_requires=[ "Cython", "numpy>=1.10", "setuptools_scm>=3.3", # fallback_version. ], use_scm_version=lambda: { # xref __init__.py "version_scheme": "post-release", "local_scheme": "node-and-date", "write_to": "lib/hmmlearn/_version.py", "fallback_version": "0+unknown", }, install_requires=[ "numpy>=1.10", # np.broadcast_to. "scikit-learn>=0.16", # sklearn.utils.check_array. "scipy>=0.19", # scipy.special.logsumexp. ], extras_require={ "tests": ["pytest"], "docs": ["Sphinx", "sphinx-gallery", "Pillow", "matplotlib"], }, entry_points={ "console_scripts": [], "gui_scripts": [], }, )
Python
0
@@ -262,51 +262,8 @@ e%0A%0A%0A -from distutils.version import LooseVersion%0A from @@ -409,175 +409,8 @@ t%0A%0A%0A -# Added support for environment markers in install_requires.%0Aif LooseVersion(setuptools.__version__) %3C %2236.2%22:%0A raise ImportError(%22setuptools%3E=36.2 is required%22)%0A%0A%0A clas
90e144154f4b29ef0bd81c54546325fc62c7b649
set the version to 2.1.0
setup.py
setup.py
import os.path try: from setuptools import setup except ImportError: from distutils.core import setup ROOT_DIR = os.path.dirname(os.path.abspath(__file__)) README_FILE = os.path.join(ROOT_DIR, "README.rst") with open(README_FILE) as f: long_description = f.read() setup( name="xutils", version="2.0.4", description="A Fragmentary Python Library, no any third-part dependencies.", long_description=long_description, author="xgfone", author_email="xgfone@126.com", maintainer="xgfone", maintainer_email="xgfone@126.com", url="https://github.com/xgfone/xutils", packages=["xutils"], classifiers=[ "License :: OSI Approved :: MIT License", "Programming Language :: Python", "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", "Programming Language :: Python :: 3.6", ], )
Python
0.999325
@@ -318,11 +318,11 @@ =%222. -0.4 +1.0 %22,%0A @@ -1079,16 +1079,65 @@ : 3.6%22,%0A + %22Programming Language :: Python :: 3.7%22,%0A %5D,%0A)
d88afa58333d6279b1c0f8c56539bd835a177ece
Fix spelling
setup.py
setup.py
# coding: utf-8 from distutils.version import LooseVersion from setuptools import find_packages, setup def check_setuptools(): import pkg_resources st_version = pkg_resources.get_distribution('setuptools').version if LooseVersion(st_version) < LooseVersion('20.2.2'): exit('The Instana sensor requires a newer verion of `setuptools` (>=20.2.2).\n' 'Please run `pip install --upgrade setuptools` to upgrade. \n' ' and then try the install again.\n' 'Also:\n' ' `pip show setuptools` - shows the current version\n' ' To see the setuptool releases: \n' ' https://setuptools.readthedocs.io/en/latest/history.html') check_setuptools() setup(name='instana', version='1.8.1', download_url='https://github.com/instana/python-sensor', url='https://www.instana.com/', license='MIT', author='Instana Inc.', author_email='peter.lombardo@instana.com', description='🐍 Python Distributed Tracing & Metrics Sensor for Instana', packages=find_packages(exclude=['tests', 'examples']), long_description="The instana package collects and reports Python metrics and distibuted \ traces to your Instana dashboard.", zip_safe=False, install_requires=['autowrapt>=1.0', 'basictracer>=3.0.0', 'certifi>=2018.4.16', 'fysom>=2.1.2', 'opentracing>=2.0.0', 'requests>=2.8.0', 'urllib3>=1.18.1'], entry_points={ 'instana': ['string = instana:load'], 'flask': ['flask = instana.flaskana:hook'], 'runtime': ['string = instana:load'], # deprecated: use same as 'instana' 'django': ['string = instana:load'], # deprecated: use same as 'instana' 'django19': ['string = instana:load'], # deprecated: use same as 'instana' }, extras_require={ 'test': [ 'asynqp>=0.4', 'django>=1.11', 'nose>=1.0', 'flask>=0.12.2', 'lxml>=3.4', 'mock>=2.0.0', 'MySQL-python>=1.2.5;python_version<="2.7"', 'psycopg2>=2.7.1', 'pyOpenSSL>=16.1.0;python_version<="2.7"', 'pytest>=3.0.1', 'redis>=2.10.6', 'requests>=2.17.1', 'sqlalchemy>=1.1.15', 'spyne>=2.9', 'suds-jurko>=0.6', 'urllib3[secure]>=1.15' ], }, test_suite='nose.collector', project_urls={ 'CI: Travis': 'https://travis-ci.org/instana/python-sensor', 'Documentation': 'https://docs.instana.io/ecosystem/python/', 'GitHub: issues': 'https://github.com/instana/python-sensor/issues', 'GitHub: repo': 'https://github.com/instana/python-sensor', 'Support': 'https://support.instana.com', }, keywords=['performance', 'opentracing', 'metrics', 'monitoring', 'tracing', 'distributed-tracing'], classifiers=[ 'Development Status :: 5 - Production/Stable', 'Framework :: Django', 'Framework :: Flask', 'Intended Audience :: Developers', 'Intended Audience :: Information Technology', 'Intended Audience :: Science/Research', 'Intended Audience :: System Administrators', 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', 'Topic :: Internet :: WWW/HTTP :: WSGI :: Middleware', 'Topic :: System :: Monitoring', 'Topic :: System :: Networking :: Monitoring', 'Topic :: Software Development :: Libraries :: Python Modules'])
Python
0.999999
@@ -1206,16 +1206,17 @@ and dist +r ibuted %5C
7895c1a50fe1ecfd031a4158d35e4d9b348bc90b
version 0.1.2
setup.py
setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup, find_packages try: from pypandoc import convert read_md = lambda f: convert(f, 'rst') except ImportError: print("warning: pypandoc module not found, could not convert Markdown to RST") read_md = lambda f: open(f, 'r').read() LONG_DESCRIPTION = read_md('README.md') setup( name="django-loadjson", version='0.1.1', description="Loadjson management command for Django", long_description=LONG_DESCRIPTION, classifiers=[ "Development Status :: 3 - Alpha", "Environment :: Console", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Software Development :: Libraries :: Python Modules", "Framework :: Django", "Framework :: Django :: 1.7", "Framework :: Django :: 1.8", "Framework :: Django :: 1.9", "Intended Audience :: Developers" ], keywords='django management json', author="Terry Yanchynskyy", author_email='tarasics@gmail.com', url='https://github.com/onebit0fme/django-loadjson', license='MIT', packages=find_packages(), include_package_data=True, test_suite='testrunner', install_requires=[ 'python-dateutil', 'six', ], zip_safe=False, )
Python
0.000003
@@ -405,17 +405,17 @@ on='0.1. -1 +2 ',%0A d @@ -559,16 +559,15 @@ :: -3 - Alph +4 - Bet a%22,%0A
27655d233b8d45e97a713fd6035fd946aa142e1f
Change the version number
setup.py
setup.py
from setuptools import setup, find_packages setup( name="seed.xylem", version='0.0.2', url='http://github.com/praekeltfoundation/seed-xylem', license='MIT', description="A distributed service for managing container databases and shared storage", author='Colin Alston', author_email='colin@praekelt.com', packages=find_packages(), include_package_data=True, install_requires=[ 'Twisted', 'rhumba', 'psycopg2', 'pycrypto' ], classifiers=[ 'Development Status :: 4 - Beta', 'Intended Audience :: System Administrators', 'License :: OSI Approved :: MIT License', 'Operating System :: POSIX', 'Programming Language :: Python', 'Topic :: System :: Distributed Computing', ], )
Python
0.999832
@@ -86,17 +86,17 @@ on='0.0. -2 +3 ',%0A u
effa51d6752775b5dcd1b7c3afd7423414484b2d
bump version number
setup.py
setup.py
from setuptools import setup, find_packages setup( name='heospy', version='0.1.4', author='Stephan Heuel', author_email='mail@ping13.net', packages=find_packages(), entry_points = { 'console_scripts': ['heos_player=heospy.heos_player:main'], }, url='http://pypi.python.org/pypi/heospy/', license='LICENSE.txt', description='Control Denon\'s HEOS speakers with Python.', install_requires=[ 'six', 'future' ], long_description=open('Readme.md').read(), long_description_content_type='text/markdown' )
Python
0.000004
@@ -85,9 +85,9 @@ 0.1. -4 +5 ',%0A
423ec8ebdccd251b13c6adc599a372f50df7bf59
Version 1.34.7
setup.py
setup.py
""" The setup package to install SeleniumBase dependencies and plugins (Uses selenium 3.x and is compatible with Python 2.7+ and Python 3.5+) """ from setuptools import setup, find_packages # noqa import os import sys this_directory = os.path.abspath(os.path.dirname(__file__)) long_description = None try: with open(os.path.join(this_directory, 'README.md'), 'rb') as f: long_description = f.read().decode('utf-8') except IOError: long_description = 'Reliable Browser Automation & Testing Framework' if sys.argv[-1] == 'publish': reply = None input_method = input if not sys.version_info[0] >= 3: input_method = raw_input # noqa reply = str(input_method( '>>> Confirm release PUBLISH to PyPI? (yes/no): ')).lower().strip() if reply == 'yes': print("\n*** Checking code health with flake8:\n") flake8_status = os.system("flake8 --exclude=temp") if flake8_status != 0: print("\nWARNING! Fix flake8 issues before publishing to PyPI!\n") sys.exit() else: print("*** No flake8 issues detected. Continuing...") print("\n*** Rebuilding distribution packages: ***\n") os.system('rm -f dist/*.egg; rm -f dist/*.tar.gz; rm -f dist/*.whl') os.system('python setup.py sdist bdist_wheel') # Create new tar/wheel print("\n*** Installing twine: *** (Required for PyPI uploads)\n") os.system("python -m pip install 'twine>=1.15.0'") print("\n*** Publishing The Release to PyPI: ***\n") os.system('python -m twine upload dist/*') # Requires ~/.pypirc Keys print("\n*** The Release was PUBLISHED SUCCESSFULLY to PyPI! :) ***\n") else: print("\n>>> The Release was NOT PUBLISHED to PyPI! <<<\n") sys.exit() setup( name='seleniumbase', version='1.34.6', description='Fast, Easy, and Reliable Browser Automation & Testing.', long_description=long_description, long_description_content_type='text/markdown', url='https://github.com/seleniumbase/SeleniumBase', platforms=["Windows", "Linux", "Unix", "Mac OS-X"], author='Michael Mintz', author_email='mdmintz@gmail.com', maintainer='Michael Mintz', license="MIT", classifiers=[ "License :: OSI Approved :: MIT License", "Development Status :: 5 - Production/Stable", "Topic :: Internet", "Topic :: Scientific/Engineering", "Topic :: Software Development", "Topic :: Software Development :: Quality Assurance", "Topic :: Software Development :: Testing", "Topic :: Software Development :: Testing :: Acceptance", "Topic :: Software Development :: Testing :: Traffic Generation", "Topic :: Utilities", "Intended Audience :: Developers", "Intended Audience :: Information Technology", "Operating System :: Microsoft :: Windows", "Operating System :: Unix", "Operating System :: MacOS", "Framework :: Pytest", "Programming Language :: Python", "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", ], install_requires=[ 'pip>=19.3.1', # >= 19.3.1 required for Python 3.8+ 'setuptools', 'setuptools-scm', 'wheel', 'six', 'nose', 'ipdb', 'idna==2.8', # Must stay in sync with "requests" 'chardet==3.0.4', # Must stay in sync with "requests" 'urllib3==1.25.7', # Must stay in sync with "requests" 'requests==2.22.0', 'selenium==3.141.0', 'pluggy>=0.13.1', 'attrs>=19.3.0', 'pytest>=4.6.8;python_version<"3"', # For Python 2 compatibility 'pytest>=5.3.2;python_version>="3"', 'pytest-cov>=2.8.1', 'pytest-forked>=1.1.3', 'pytest-html==1.22.1;python_version<"3.6"', 'pytest-html==2.0.1;python_version>="3.6"', 'pytest-metadata>=1.8.0', 'pytest-ordering>=0.6', 'pytest-rerunfailures>=8.0', 'pytest-timeout>=1.3.3', 'pytest-xdist>=1.31.0', 'parameterized>=0.7.1', 'soupsieve==1.9.5', 'beautifulsoup4==4.8.2', 'atomicwrites==1.3.0', 'portalocker==1.5.2', 'cryptography==2.8', 'asn1crypto==1.2.0', 'pyopenssl==19.1.0', 'pygments>=2.5.2', 'colorama==0.4.3', 'coverage>=5.0.1', 'pymysql==0.9.3', 'pyotp==2.3.0', 'boto==2.49.0', 'cffi>=1.13.2', 'tqdm>=4.41.0', 'flake8==3.7.9', 'certifi>=2019.11.28', 'pdfminer.six==20191110', ], packages=[ 'seleniumbase', 'seleniumbase.common', 'seleniumbase.config', 'seleniumbase.console_scripts', 'seleniumbase.core', 'seleniumbase.drivers', 'seleniumbase.extensions', 'seleniumbase.fixtures', 'seleniumbase.masterqa', 'seleniumbase.plugins', 'seleniumbase.utilities', 'seleniumbase.utilities.selenium_grid', 'seleniumbase.utilities.selenium_ide', 'seleniumbase.virtual_display', ], include_package_data=True, entry_points={ 'console_scripts': [ 'seleniumbase = seleniumbase.console_scripts.run:main', ], 'nose.plugins': [ 'base_plugin = seleniumbase.plugins.base_plugin:Base', 'selenium = seleniumbase.plugins.selenium_plugin:SeleniumBrowser', 'page_source = seleniumbase.plugins.page_source:PageSource', 'screen_shots = seleniumbase.plugins.screen_shots:ScreenShots', 'test_info = seleniumbase.plugins.basic_test_info:BasicTestInfo', ('db_reporting = ' 'seleniumbase.plugins.db_reporting_plugin:DBReporting'), 's3_logging = seleniumbase.plugins.s3_logging_plugin:S3Logging', ], 'pytest11': ['seleniumbase = seleniumbase.plugins.pytest_plugin'] } ) # print(os.system("cat seleniumbase.egg-info/PKG-INFO")) print("\n*** SeleniumBase Installation Complete! ***\n")
Python
0
@@ -1841,17 +1841,17 @@ n='1.34. -6 +7 ',%0A d
b1ecec6bb1edb86ee33f1595ba63d61d19588c8a
Version number
setup.py
setup.py
# Copyright 2009 Jason Stitt # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in # all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. from distutils.core import setup longdesc = """\ `PyTidyLib`_ is a Python package that wraps the `HTML Tidy`_ library. This allows you, from Python code, to "fix" invalid (X)HTML markup. Some of the library's many capabilities include: * Clean up unclosed tags and unescaped characters such as ampersands * Output HTML 4 or XHTML, strict or transitional, and add missing doctypes * Convert named entities to numeric entities, which can then be used in XML documents without an HTML doctype. * Clean up HTML from programs such as Word (to an extent) * Indent the output, including proper (i.e. no) indenting for ``pre`` elements, which some (X)HTML indenting code overlooks. Version usage ============= * Windows: 0.2.0 and later * Python 3: Tests pass on 0.2.3 * tidylib itself is not actively updated and may have problems with newer HTML Small example of use ==================== The following code cleans up an invalid HTML document and sets an option:: from tidylib import tidy_document document, errors = tidy_document('''<p>f&otilde;o <img src="bar.jpg">''', options={'numeric-entities':1}) print document print errors Docs ==== Documentation is shipped with the source distribution and is available at the `PyTidyLib`_ web page. .. _`HTML Tidy`: http://tidy.sourceforge.net/ .. _`PyTidyLib`: http://countergram.com/open-source/pytidylib/ """ VERSION = "0.2.3" setup( name="pytidylib", version=VERSION, description="Python wrapper for HTML Tidy (tidylib) on Python 2 and 3", long_description=longdesc, author="Jason Stitt", author_email="js@jasonstitt.com", url="http://countergram.com/open-source/pytidylib/", packages=['tidylib'], classifiers=[ 'Development Status :: 5 - Production/Stable', 'Environment :: Other Environment', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Programming Language :: Python', 'Programming Language :: Python :: 3', 'Natural Language :: English', 'Topic :: Utilities', 'Topic :: Text Processing :: Markup :: HTML', 'Topic :: Text Processing :: Markup :: XML', ], )
Python
0.000099
@@ -2481,17 +2481,17 @@ = %220.2. -3 +4 %22%0A%0Asetup
bfb0416df3547a7d2aa3dd4e0fc791ff5f7fd97e
Fix setup.py information
setup.py
setup.py
from distutils.core import setup import sys import fitparse requires = None if sys.version_info < (2, 7): requires = ['argparse'] setup( name='fitparse', version=fitparse.__version__, description='Python library to parse ANT/Garmin .FIT files', author='David Cooper', author_email='dave@kupesoft.com', url='https://www.github.com/dtcooper/python-fitparse', license=open('LICENSE').read(), packages=['fitparse'], scripts=['scripts/fitdump'], # Don't include generate_profile.py install_requires=requires, )
Python
0
@@ -283,16 +283,29 @@ d Cooper +, K%C3%A9vin Gomez ',%0A a @@ -334,16 +334,39 @@ soft.com +, contact@kevingomez.fr ',%0A u @@ -381,12 +381,8 @@ s:// -www. gith @@ -392,16 +392,15 @@ com/ -dtcooper +K-Phoen /pyt
2fdce95486934464f1b4bb4e102492af206e8942
Bump version number. Semi-important bugfix.
setup.py
setup.py
from distutils.core import setup setup( name = "Cytoplasm", version = "0.06.1", author = "startling", author_email = "tdixon51793@gmail.com", url = "http://cytoplasm.somethingsido.com", keywords = ["blogging", "site compiler", "blog compiler"], description = "A static, blog-aware website generator written in python.", packages = ['cytoplasm'], scripts = ['scripts/cytoplasm'], install_requires = ['Mako'], classifiers = [ "Programming Language :: Python", "Programming Language :: Python :: 3", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Topic :: Internet :: WWW/HTTP :: Site Management", "Topic :: Internet :: WWW/HTTP :: Dynamic Content :: News/Diary", ] )
Python
0
@@ -78,17 +78,17 @@ = %220.06. -1 +2 %22,%0A a
2fcde65de436ace5424ff2eb5893c6eb5cd07002
update setup.py to conform better to PyPi standards
setup.py
setup.py
from distutils.core import setup setup( name = 'pygameday', version = '0.3', author = 'Chris Anderson', author_email = 'christian.c.anderson@gmail.com', packages = ['pygameday'], url = 'https://github.com/chrander/pygameday', license='LICENSE.txt', description = 'Module for scraping, parsing, and ingesting MLB GameDay data into a database', long_description=open('README.md').read(), install_requires=[ 'python-dateutil', 'sqlalchemy', 'tqdm' ], download_url = 'https://github.com/chrander/pygameday/tarball/0.3', keywords = ['baseball', 'gameday', 'database', 'scraping'], classifiers = [], )
Python
0
@@ -1,8 +1,10 @@ +# from dis @@ -28,17 +28,116 @@ t setup%0A -%0A +import setuptools%0A%0Awith open(%22README.md%22, %22r%22) as fh:%0A long_description = fh.read()%0A%0A%0Asetuptools. setup(%0A @@ -177,16 +177,18 @@ n = '0.3 +.4 ',%0A a @@ -285,21 +285,34 @@ s = -%5B'pygameday'%5D +setuptools.find_packages() ,%0A @@ -510,56 +510,137 @@ ion= -open('README.md').read(),%0A install_requires=%5B +long_description,%0A long_description_content_type='text/markdown',%0A install_requires=%5B%0A 'tqdm',%0A 'sqlalchemy', %0A @@ -668,34 +668,32 @@ ',%0A ' -sqlalchemy +requests ',%0A ' @@ -692,20 +692,20 @@ ' -tqdm +lxml '%0A %5D, @@ -774,16 +774,18 @@ ball/0.3 +.4 ',%0A k @@ -858,17 +858,163 @@ ssifiers - = %5B +=%5B%0A %22Programming Language :: Python :: 3%22,%0A %22License :: OSI Approved :: MIT License%22,%0A %22Operating System :: OS Independent%22,%0A %5D,%0A)%0A
faf475d93c8d357840959820627aedaaacfe29c8
fix for readthedocs
setup.py
setup.py
import os import sys import re from distutils.core import setup # long_description: Take from README file with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as f: readme = f.read() # Version Number with open(os.path.join(os.path.dirname(__file__), 'xlwings', '__init__.py')) as f: version = re.compile(r".*__version__ = '(.*?)'", re.S).match(f.read()).group(1) # Dependencies if sys.platform.startswith('win'): install_requires = ['comtypes'] # pywin32 can't be installed (yet) with pip # This places dlls next to python.exe for standard setup and in the parent folder for virtualenv data_files = [('', ['xlwings32.dll', 'xlwings64.dll'])] elif sys.platform.startswith('darwin'): install_requires = ['psutil >= 2.0.0', 'appscript >= 1.0.1'] data_files =[] else: on_rtd = os.environ.get('READTHEDOCS', None) == 'True' data_files = [] if not on_rtd: raise OSError("currently only Windows and OSX are supported.") setup( name='xlwings', version=version, url='http://xlwings.org', license='BSD 3-clause', author='Zoomer Analytics LLC', author_email='felix.zumstein@zoomeranalytics.com', description='Make Excel fly: Interact with Excel from Python and vice versa.', long_description=readme, data_files=data_files, packages=['xlwings', 'xlwings.tests'], package_data={'xlwings': ['*.bas', 'tests/*.xlsx', 'xlwings_template.xltm']}, keywords=['xls', 'excel', 'spreadsheet', 'workbook', 'vba', 'macro'], install_requires=install_requires, classifiers=[ 'Development Status :: 4 - Beta', 'Operating System :: Microsoft :: Windows', 'Operating System :: MacOS :: MacOS X', 'Programming Language :: Python', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.1', 'Programming Language :: Python :: 3.2', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Topic :: Office/Business :: Financial :: Spreadsheet', 'License :: OSI Approved :: BSD License'], platforms=['Windows', 'Mac OS X'], )
Python
0
@@ -860,16 +860,35 @@ 'True'%0A + if on_rtd:%0A data @@ -907,21 +907,12 @@ -if not on_rtd +else :%0A
1a950cb8d417fdca4933ee9df37b35fc11ca3ee6
Fix missing import.
setup.py
setup.py
#!/usr/bin/env python # -*- encoding: utf-8 -*- from __future__ import absolute_import, print_function import io import os import re from distutils.command.build import build from glob import glob from os.path import basename from os.path import dirname from os.path import join from os.path import relpath from os.path import splitext from setuptools import Extension from setuptools import find_packages from setuptools import setup from setuptools.command.build_ext import build_ext from setuptools.command.develop import develop from setuptools.command.easy_install import easy_install from setuptools.command.install_lib import install_lib try: # Allow installing package without any Cython available. This # assumes you are going to include the .c files in your sdist. import Cython except ImportError: Cython = None def read(*names, **kwargs): return io.open( join(dirname(__file__), *names), encoding=kwargs.get('encoding', 'utf8') ).read() # Enable code coverage for C code: we can't use CFLAGS=-coverage in tox.ini, since that may mess with compiling # dependencies (e.g. numpy). Therefore we set SETUPPY_CFLAGS=-coverage in tox.ini and copy it to CFLAGS here (after # deps have been safely installed). if 'TOXENV' in os.environ and 'SETUPPY_CFLAGS' in os.environ: os.environ['CFLAGS'] = os.environ['SETUPPY_CFLAGS'] class BuildWithPTH(build): def run(self): build.run(self) src = join(dirname(__file__), 'src', 'hunter.embed') path = join(dirname(__file__), 'src', 'hunter.pth') with open(src) as sh: with open(path, 'w') as fh: fh.write( 'import os, sys;' 'exec(%r)' % sh.read().replace(' ', ' ') ) dest = join(self.build_lib, basename(path)) self.copy_file(path, dest) class EasyInstallWithPTH(easy_install): def run(self): easy_install.run(self) path = join(dirname(__file__), 'src', 'hunter.pth') dest = join(self.install_dir, basename(path)) self.copy_file(path, dest) class InstallLibWithPTH(install_lib): def run(self): install_lib.run(self) path = join(dirname(__file__), 'src', 'hunter.pth') dest = join(self.install_dir, basename(path)) self.copy_file(path, dest) self.outputs = [dest] def get_outputs(self): return chain(install_lib.get_outputs(self), self.outputs) class DevelopWithPTH(develop): def run(self): develop.run(self) path = join(dirname(__file__), 'src', 'hunter.pth') dest = join(self.install_dir, basename(path)) self.copy_file(path, dest) class OptionalBuildExt(build_ext): """Allow the building of C extensions to fail.""" def run(self): try: build_ext.run(self) except Exception as e: self._unavailable(e) self.extensions = [] # avoid copying missing files (it would fail). def _unavailable(self, e): print('*' * 80) print('''WARNING: An optional code optimization (C extension) could not be compiled. Optimizations for this package will not be available! ''') print('CAUSE:') print('') print(' ' + repr(e)) print('*' * 80) setup( name='hunter', version='1.0.1', license='BSD', description='Hunter is a flexible code tracing toolkit.', long_description='%s\n%s' % ( re.compile('^.. start-badges.*^.. end-badges', re.M|re.S).sub('', read('README.rst')), re.sub(':[a-z]+:`~?(.*?)`', r'``\1``', read('CHANGELOG.rst')) ), author='Ionel Cristian Mărieș', author_email='contact@ionelmc.ro', url='https://github.com/ionelmc/python-hunter', packages=find_packages('src'), package_dir={'': 'src'}, py_modules=[splitext(basename(path))[0] for path in glob('src/*.py')], include_package_data=True, zip_safe=False, classifiers=[ # complete classifier list: http://pypi.python.org/pypi?%3Aaction=list_classifiers 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'License :: OSI Approved :: BSD License', 'Operating System :: Unix', 'Operating System :: POSIX', 'Operating System :: Microsoft :: Windows', 'Programming Language :: Python', 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: Implementation :: CPython', 'Programming Language :: Python :: Implementation :: PyPy', 'Topic :: Utilities', 'Topic :: Software Development :: Debuggers', ], keywords=[ 'trace', 'tracer', 'settrace', 'debugger', 'debugging', 'code', 'source' ], install_requires=[ 'fields', 'colorama', 'six', ], extras_require={ # eg: 'rst': ['docutils>=0.11'], }, entry_points={ 'console_scripts': [ ] }, cmdclass={ 'build': BuildWithPTH, 'easy_install': EasyInstallWithPTH, 'install_lib': InstallLibWithPTH, 'develop': DevelopWithPTH, 'build_ext': OptionalBuildExt, }, setup_requires=[ 'cython', ] if Cython else [], ext_modules=[ Extension( splitext(relpath(path, 'src').replace(os.sep, '.'))[0], sources=[path], include_dirs=[dirname(path)] ) for root, _, _ in os.walk('src') for path in glob(join(root, '*.pyx' if Cython else '*.c')) ], )
Python
0.00004
@@ -79,17 +79,39 @@ e_import -, +%0Afrom __future__ import print_f @@ -213,16 +213,44 @@ rt glob%0A +from itertools import chain%0A from os.
503ce1a97145fa56f38e5e26b7f18cb2bfd035ef
version bump
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup, find_packages VERSION = '1.0.1' LONG_DESC = """\ This is a simple, easily extendible rpc library that provides several useful tools for creating and publishing web services in python. This package features on-demand wsdl generation for the published services, a wsgi-compliant web application, support for complex class structures, binary attachments, and a simple framework for creating additional serialization mechanisms. This project uses lxml as it's XML API, providing full namespace support. """ SHORT_DESC="A transport and architecture agnostic rpc (de)serialization " \ "library that focuses on making small, rpc-oriented messaging work." setup( name='rpclib', packages=find_packages('src'), package_dir={'':'src'}, version=VERSION, description=SHORT_DESC, long_description=LONG_DESC, classifiers=[ 'Programming Language :: Python', 'Operating System :: OS Independent', 'Natural Language :: English', 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'Topic :: Internet :: WWW/HTTP :: Dynamic Content', ], keywords=('soap', 'wsdl', 'wsgi', 'zeromq', 'rest', 'rpc','json'), author='Burak Arslan', author_email='burak-rpclib@arskom.com.tr', maintainer='Burak Arslan', maintainer_email='burak-rpclib@arskom.com.tr', url='http://github.com/arskom/rpclib', license='LGPL', zip_safe=False, install_requires=[ 'pytz', 'lxml>=2.2.1', ], test_suite='tests.test_suite', )
Python
0.000001
@@ -76,17 +76,17 @@ = '1.0. -1 +2 '%0ALONG_D
aa96f3254241c03f244bdc3ce064b11078400918
disable yapf for setup.py
setup.py
setup.py
from setuptools import find_packages, setup def readme(): with open('README.rst') as f: return f.read() setup( name='icrawler', version='0.3.0', description='A mini framework of image crawlers', long_description=readme(), keywords='image crawler spider', packages=find_packages(), classifiers=[ 'Development Status :: 3 - Alpha', 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Topic :: Utilities', 'Topic :: Internet :: WWW/HTTP', 'Topic :: Software Development :: Libraries :: Python Modules', ], url='https://github.com/hellock/icrawler', author='Kai Chen', author_email='chenkaidev@gmail.com', license='MIT', install_requires=[ 'beautifulsoup4>=4.4.1', 'lxml', 'Pillow', 'requests>=2.9.1', 'six>=1.10.0' ], zip_safe=False)
Python
0
@@ -1051,16 +1051,32 @@ .1', - 'lxml', +%0A 'lxml',%0A 'Pi @@ -1081,16 +1081,24 @@ Pillow', +%0A 'reques @@ -1156,10 +1156,28 @@ fe=False -) +%0A) # yapf: disable %0A
b37d2a376dbcbb8c042934ee6950dafd90ec9c25
Bump pre-commit from 1.18.3 to 1.19.0
setup.py
setup.py
# -*- coding: utf-8 -*- import codecs import re import sys from setuptools import setup INSTALL_REQUIRES = ["click>=4.0", "click-completion>=0.3.1", "click-didyoumean>=0.0.3"] if "win32" in str(sys.platform).lower(): # Terminal colors for Windows INSTALL_REQUIRES.append("colorama>=0.2.4") EXTRAS_REQUIRE = { "tests": [ "pytest", 'IPython<6; python_version < "3"', 'IPython==6.5.0; python_version >= "3"', ], "lint": [ "flake8==3.7.8", 'flake8-bugbear==19.8.0; python_version >= "3.5"', "pre-commit==1.18.3", ], } EXTRAS_REQUIRE["dev"] = EXTRAS_REQUIRE["tests"] + EXTRAS_REQUIRE["lint"] + ["tox"] def find_version(fname): """Attempts to find the version number in the file names fname. Raises RuntimeError if not found. """ version = "" with codecs.open(fname, "r", encoding="utf-8") as fp: reg = re.compile(r'__version__ = [\'"]([^\'"]*)[\'"]') for line in fp: m = reg.match(line) if m: version = m.group(1) break if not version: raise RuntimeError("Cannot find version information") return version def read(fname): with codecs.open(fname, "r", encoding="utf-8") as fp: content = fp.read() return content setup( name="doitlive", version=find_version("doitlive/__version__.py"), description="Because sometimes you need to do it live.", long_description=read("README.rst"), author="Steven Loria", author_email="sloria1@gmail.com", url="https://github.com/sloria/doitlive", install_requires=INSTALL_REQUIRES, extras_require=EXTRAS_REQUIRE, license="MIT", zip_safe=False, keywords="doitlive cli live coding presentations shell", classifiers=[ "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "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", "Environment :: Console", ], packages=["doitlive"], entry_points={"console_scripts": ["doitlive = doitlive.cli:cli"]}, tests_require=["pytest"], project_urls={ "Bug Reports": "https://github.com/sloria/doitlive/issues", "Source": "https://github.com/sloria/doitlive/", }, )
Python
0.000008
@@ -572,11 +572,11 @@ =1.1 -8.3 +9.0 %22,%0A
c0301ec4efcf84ec6e644aa48f716edfc570c092
remove redundant cythoning
setup.py
setup.py
# coding: utf-8 from __future__ import division, print_function __author__ = "adrn <adrn@astro.columbia.edu>" # Standard library import os, sys from distutils.core import setup from distutils.extension import Extension # Third-party import numpy as np from Cython.Distutils import build_ext from Cython.Build import cythonize # Get numpy path numpy_base_path = os.path.split(np.__file__)[0] numpy_incl_path = os.path.join(numpy_base_path, "core", "include") extensions = [] potential = Extension("gary.potential.*", ["gary/potential/*.pyx", "gary/potential/_cbuiltin.c"], include_dirs=[numpy_incl_path]) extensions.append(potential) integrate = Extension("gary.integrate.*", ["gary/integrate/*.pyx"], include_dirs=[numpy_incl_path]) extensions.append(integrate) dopri = Extension("gary.integrate.*", ["gary/integrate/*.pyx", "gary/integrate/dopri/dop853.h", "gary/integrate/dopri/dop853.c"], include_dirs=[numpy_incl_path]) extensions.append(dopri) # dynamics = Extension("gary.dynamics.*", # ["gary/dynamics/*.pyx"], # include_dirs=[numpy_incl_path]) # extensions.append(dynamics) setup( name="gary", version="0.1", author="Adrian M. Price-Whelan", author_email="adrn@astro.columbia.edu", license="MIT", cmdclass={'build_ext': build_ext}, ext_modules=cythonize(extensions), packages=["gary", "gary.coordinates", "gary.io", "gary.observation", "gary.integrate", "gary.dynamics", "gary.inference", "gary.potential"], scripts=['bin/plotsnap', 'bin/moviesnap', 'bin/snap2gal'], package_data={'gary.potential': ['*.pxd','*.c','*.h'], 'gary.integrate': ['*.pxd','*.c','*.h'] }, )
Python
0.999981
@@ -792,176 +792,14 @@ pyx%22 -%5D ,%0A - include_dirs=%5Bnumpy_incl_path%5D)%0Aextensions.append(integrate)%0A%0Adopri = Extension(%22gary.integrate.*%22,%0A %5B%22gary/integrate/*.pyx%22,%0A @@ -846,16 +846,20 @@ 853.h%22,%0A + @@ -913,32 +913,36 @@ + include_dirs=%5Bnu @@ -975,21 +975,25 @@ .append( -dopri +integrate )%0A%0A# dyn
54baf43c700138518c678cee87c439d3a9335aa8
support MINGW32 compiler: fix clashing 'hypot' definition; statically link libgcc and libstdc++
setup.py
setup.py
import distutils from distutils.core import setup, Extension from distutils.command.build_ext import build_ext from distutils.cmd import Command import platform # when compiling for Windows Python 2.7, force distutils to use Visual Studio # 2010 instead of 2008, as the latter doesn't support c++0x if platform.system() == 'Windows': try: import distutils.msvc9compiler except distutils.errors.DistutilsPlatformError: pass # importing msvc9compiler raises when running under MinGW else: orig_find_vcvarsall = distutils.msvc9compiler.find_vcvarsall def patched_find_vcvarsall(version): return orig_find_vcvarsall(version if version != 9.0 else 10.0) distutils.msvc9compiler.find_vcvarsall = patched_find_vcvarsall class TestCommand(Command): """ Run all *_test.py scripts in 'tests' folder with the same Python interpreter used to run setup.py. """ user_options = [] def initialize_options(self): pass def finalize_options(self): pass def run(self): import sys, os, subprocess, glob curr_dir = os.path.abspath(os.path.dirname(os.path.realpath(__file__))) test_dir = os.path.join(curr_dir, 'python', 'tests') os.chdir(test_dir) for test in glob.glob("*_test.py"): try: subprocess.check_call([sys.executable, test]) except subprocess.CalledProcessError: raise SystemExit(1) class BuildExt(build_ext): def get_source_files(self): filenames = build_ext.get_source_files(self) for ext in self.extensions: filenames.extend(ext.depends) return filenames def build_extension(self, ext): c_sources = [] cxx_sources = [] for source in ext.sources: if source.endswith(".c"): c_sources.append(source) else: cxx_sources.append(source) extra_args = ext.extra_compile_args or [] objects = [] for lang, sources in (("c", c_sources), ("c++", cxx_sources)): if lang == "c++": if self.compiler.compiler_type in ["unix", "cygwin", "mingw32"]: extra_args.append("-std=c++0x") elif self.compiler.compiler_type == "msvc": extra_args.append("/EHsc") macros = ext.define_macros[:] if platform.system() == "Darwin": macros.append(("OS_MACOSX", "1")) for undef in ext.undef_macros: macros.append((undef,)) objs = self.compiler.compile(sources, output_dir=self.build_temp, macros=macros, include_dirs=ext.include_dirs, debug=self.debug, extra_postargs=extra_args, depends=ext.depends) objects.extend(objs) self._built_objects = objects[:] if ext.extra_objects: objects.extend(ext.extra_objects) extra_args = ext.extra_link_args or [] ext_path = self.get_ext_fullpath(ext.name) # Detect target language, if not provided language = ext.language or self.compiler.detect_language(sources) self.compiler.link_shared_object( objects, ext_path, libraries=self.get_libraries(ext), library_dirs=ext.library_dirs, runtime_library_dirs=ext.runtime_library_dirs, extra_postargs=extra_args, export_symbols=self.get_export_symbols(ext), debug=self.debug, build_temp=self.build_temp, target_lang=language) brotli = Extension("brotli", sources=[ "python/brotlimodule.cc", "enc/backward_references.cc", "enc/block_splitter.cc", "enc/brotli_bit_stream.cc", "enc/encode.cc", "enc/entropy_encode.cc", "enc/histogram.cc", "enc/literal_cost.cc", "enc/metablock.cc", "enc/static_dict.cc", "enc/streams.cc", "dec/bit_reader.c", "dec/decode.c", "dec/huffman.c", "dec/streams.c", "dec/state.c", ], depends=[ "enc/backward_references.h", "enc/bit_cost.h", "enc/block_splitter.h", "enc/brotli_bit_stream.h", "enc/cluster.h", "enc/command.h", "enc/context.h", "enc/dictionary.h", "enc/dictionary_hash.h", "enc/encode.h", "enc/entropy_encode.h", "enc/fast_log.h", "enc/find_match_length.h", "enc/hash.h", "enc/histogram.h", "enc/literal_cost.h", "enc/metablock.h", "enc/port.h", "enc/prefix.h", "enc/ringbuffer.h", "enc/static_dict.h", "enc/static_dict_lut.h", "enc/streams.h", "enc/transform.h", "enc/write_bits.h", "dec/bit_reader.h", "dec/context.h", "dec/decode.h", "dec/dictionary.h", "dec/huffman.h", "dec/prefix.h", "dec/port.h", "dec/streams.h", "dec/transform.h", "dec/types.h", "dec/state.h", ], language="c++", ) setup( name="Brotli", version="0.1", url="https://github.com/google/brotli", description="Python binding of the Brotli compression library", author="Khaled Hosny", author_email="khaledhosny@eglug.org", license="Apache 2.0", ext_modules=[brotli], cmdclass={ 'build_ext': BuildExt, 'test': TestCommand }, )
Python
0
@@ -2509,16 +2509,365 @@ , %221%22))%0A + elif self.compiler.compiler_type == %22mingw32%22:%0A # On Windows Python 2.7, pyconfig.h defines %22hypot%22 as %22_hypot%22,%0A # This clashes with GCC's cmath, and causes compilation errors when%0A # building under MinGW: http://bugs.python.org/issue11566%0A macros.append((%22_hypot%22, %22hypot%22))%0A @@ -3567,32 +3567,288 @@ _link_args or %5B%5D +%0A # when using GCC on Windows, we statically link libgcc and libstdc++,%0A # so that we don't need to package extra DLLs%0A if self.compiler.compiler_type == %22mingw32%22:%0A extra_args.extend(%5B'-static-libgcc', '-static-libstdc++'%5D) %0A%0A ext_pa
9ebb25310f99b4a129c8efdfbd87d121051d66a6
Prepare for more development.
setup.py
setup.py
from distutils.core import setup setup( name='udiskie', version='0.3.7', description='Removable disk automounter for udisks', author='Byron Clark', author_email='byron@theclarkfamily.name', url='http://bitbucket.org/byronclark/udiskie', license='MIT', packages=[ 'udiskie', ], scripts=[ 'bin/udiskie', 'bin/udiskie-umount', ], )
Python
0
@@ -75,9 +75,9 @@ 0.3. -7 +8 ',%0A
35dbaef6d834cd34b3cfb9923fe73440a465b340
Fix bug in setup.py
setup.py
setup.py
#!/usr/bin/env python2.7 from setuptools import setup description = '''Adds a command to dynamically get the version from the VCS of choice''' with open('README.txt', 'r') as f: long_description = f.read() setup( author='Joost Molenaar', author_email='j.j.molenaar@gmail.com', url='https://github.com/j0057/setuptools-version-command', name='setuptools-version-command', version='1.0', description=description, long_description=long_description, packages=['setuptools_version_command'], entry_points={ 'distutils.setup_keywords': [ 'version_command = setuptools_metadata:execute_version_command' ] })
Python
0
@@ -623,16 +623,23 @@ ols_ -metadata +version_command :exe
5263f87283a8890aacb2e1d7aaa9266635836723
fix pip install failure on mac os mojav with anaconda
setup.py
setup.py
# -*- coding: utf-8 -*- from setuptools import setup, find_packages import sys try: from Cython.Distutils import build_ext except ImportError: def build_ext(*args, **kwargs): from Cython.Distutils import build_ext return build_ext(*args, **kwargs) class lazy_extlist(list): def __init__(self, callback): self._list, self.callback = None, callback def c_list(self): if self._list is None: self._list = self.callback() return self._list def __iter__(self): for e in self.c_list(): yield e def __getitem__(self, ii): return self.c_list()[ii] def __len__(self): return len(self.c_list()) def extensions(): __builtins__.__NUMPY_SETUP__ = False from Cython.Distutils import Extension import numpy as np return [Extension( 'pydtw.dtw', ["pydtw/dtw.pyx"], cython_directives={'language_level': sys.version_info[0]}, extra_compile_args=["-O3"], include_dirs=[np.get_include()], language="c++") ] setup( name="pydtw", description='Fast Imprementation of the Dynamic Wime Warping', version="2.0.0", long_description=open('README.rst').read(), packages=find_packages(), setup_requires=["numpy", 'cython'], ext_modules=lazy_extlist(extensions), cmdclass={'build_ext': build_ext}, author='Shunsuke Aihara', author_email="aihara@argmax.jp", url='https://github.com/shunsukeaihara/pydtw', license="MIT License", include_package_data=True, test_suite='nose.collector', tests_require=['nose', 'numpy', 'cython'], classifiers=[ "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 2", ] )
Python
0
@@ -73,16 +73,17 @@ rt sys%0A%0A +%0A try:%0A @@ -828,16 +828,271 @@ y as np%0A + extra_compile_args = %5B%22-O3%22%5D%0A extra_link_args = %5B%5D%0A if sys.platform == %22darwin%22:%0A extra_compile_args.append(%22-mmacosx-version-min=10.9%22)%0A extra_compile_args.append('-stdlib=libc++')%0A extra_link_args.append('-stdlib=libc++')%0A retu @@ -1106,16 +1106,16 @@ ension(%0A - @@ -1248,23 +1248,75 @@ le_args= -%5B%22-O3%22%5D +extra_compile_args,%0A extra_link_args=extra_link_args ,%0A @@ -1491,17 +1491,17 @@ on=%222.0. -0 +2 %22,%0A l
1cb5d658cdaebc89ab93e0ce6a926298bb028312
version 0.52
setup.py
setup.py
from setuptools import setup, find_packages with open('requirements.txt') as f: requirements = f.readlines() setup( name='framepy', packages=find_packages(exclude=('tests',)), version='0.51', description='Very simple web application framework with support for AMQP and DI', author='Michal Korman', author_email='m.korman94@gmail.com', url='https://github.com/mkorman9/framepy', download_url='https://github.com/mkorman9/framepy/tarball/0.51', keywords=['web', 'framework', 'amqp', 'di', 'db'], classifiers=[], install_requires=[requirement for requirement in requirements if len(requirement) > 0] )
Python
0.000001
@@ -199,17 +199,17 @@ ion='0.5 -1 +2 ',%0A d @@ -474,9 +474,9 @@ /0.5 -1 +2 ',%0A
2022d618fd68894c92df7968d5e3ae4a8436ca88
add sqlalchemy and keyring to the requirement list of the setup file
setup.py
setup.py
#! /usr/bin/env python from distutils.core import setup setup( name='oemof-pg' , version='0.0.1dev' , description='The oemof postgis extension' , package_dir = {'oemof_pg': 'oemof_pg'} )
Python
0
@@ -57,17 +57,16 @@ %0A%0Asetup( - name='oe @@ -72,23 +72,23 @@ emof-pg' +, %0A -, version @@ -98,23 +98,23 @@ .0.1dev' +, %0A -, descrip @@ -151,15 +151,15 @@ ion' +, %0A -, pac @@ -170,11 +170,9 @@ _dir - = += %7B'oe @@ -195,13 +195,94 @@ pg'%7D +, %0A + install_requires=%5B'sqlalchemy %3E= 1.0',%0A 'keyring %3E= 4.0'%5D ) -%0A %0A
6da15fd8f95638d919e47fe1150acce5a9401745
Add six to the requirements
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup, find_packages import conveyor install_requires = [ "APScheduler", "forklift", "redis", "xmlrpc2", ] setup( name="conveyor", version=conveyor.__version__, description="Warehouse and PyPI Synchronization", long_description=open("README.rst").read(), url="https://github.com/crateio/conveyor/", license=open("LICENSE").read(), author="Donald Stufft", author_email="donald.stufft@gmail.com", install_requires=install_requires, packages=find_packages(exclude=["tests"]), zip_safe=False, )
Python
0.000017
@@ -147,16 +147,27 @@ redis%22,%0A + %22six%22,%0A %22xml
f42904aee050b522b320c32d67c20afeb7021efd
Include the openquake-minimal.jar in the dist folder (DOH)
setup.py
setup.py
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. import glob import os import sys from distutils.core import setup from setuptools import find_packages scripts = ["bin/%s" % x for x in os.listdir('bin')] scripts.extend( ["openquake/utils/%s" % x for x in os.listdir('openquake/utils')]) scripts.append('celeryconfig.py') libs = [] for x in os.listdir('lib'): if x[-4:] == '.jar': libs.append("lib/%s" % x)) dist = [] for x in os.listdir('dist'): if x[-4:] == '.jar': libs.append("dist/%s" % x)) with os.popen("which gfortran") as gf: if not gf: raise EnvironmentError("You need to install gfortran") setup(name='openquake', version='0.11', description='OpenQuake Platform', author='gem-core', author_email='openquake-dev@googlegroups.com', url='http://www.openquake.org/', packages=['openquake','openquake.hazard', 'openquake.job','openquake.kvs', 'openquake.output','openquake.parser', 'openquake.risk', 'openquake.risk.job', 'openquake.seismicsources'], data_files=[('/etc/openquake', ['celeryconfig.py']), ('lib', libs),('dist', dist)], scripts=scripts, install_requires=["pyyaml", "shapely", "python-gflags", "pylibmc==0.9.2", "lxml", "sphinx", "eventlet", "guppy", "libLAS", "numpy", "scipy", "celery", "nose", "django", "ordereddict"])
Python
0.000008
@@ -986,17 +986,16 @@ %25s%22 %25 x) -) %0A%0Adist = @@ -1086,17 +1086,16 @@ %25s%22 %25 x) -) %0A
a2af58c583397e978f841535580ba4a2bfd6cc0a
Upgrade black in hopes of fixing CI error running black
setup.py
setup.py
# Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. from setuptools import setup, find_packages setup_args = dict( name="emojicompat", use_scm_version={"write_to": "src/emojicompat/_version.py"}, package_dir={'': 'src'}, packages=find_packages(where='src'), entry_points={ 'console_scripts': [ 'emojicompat=emojicompat.emojicompat:main', ], }, setup_requires=["setuptools_scm"], include_package_data=True, install_requires=[ "absl-py>=0.9.0", "fonttools>=4.31.2", "flatbuffers>=2.0", ], extras_require={ "dev": [ "pytest", "pytest-clarity", "black==21.12b0", "pytype==2020.11.23; python_version < '3.9'", ], }, # this is so we can use the built-in dataclasses module python_requires=">=3.7", # this is for type checker to use our inline type hints: # https://www.python.org/dev/peps/pep-0561/#id18 package_data={ "emojicompat": [ "py.typed", ], }, # metadata to display on PyPI author="Rod S", author_email="rsheeter@google.com", description=("Utility to insert emojicompat metadata into an emoji font"), ) if __name__ == "__main__": setup(**setup_args)
Python
0
@@ -1212,13 +1212,12 @@ k==2 -1.12b +2.3. 0%22,%0A
fa667269f789a3bfe64d2da772823ce99116c578
Fix RTD by making pytables optional in setup.py
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup, find_packages # Sets the __version__ variable exec(open('calliope/_version.py').read()) setup( name='calliope', version=__version__, author='Stefan Pfenninger', author_email='stefan@pfenninger.org', description='A multi-scale energy systems (MUSES) modeling framework', license='Apache 2.0', url='http://www.callio.pe/', download_url='https://github.com/calliope-project/calliope/releases', packages=find_packages(), package_data={'calliope': ['config/*.yaml', 'example_model/*.yaml', 'example_model/model_config/*.yaml', 'example_model/model_config/data/*.csv', 'test/common/*.yaml', 'test/common/t_1h/*.csv', 'test/common/t_6h/*.csv', 'test/common/t_erroneous/*.csv']}, install_requires=[ "pyomo >= 4.0", "numpy >= 1.9.0", "numexpr >= 2.3.1", "pandas >= 0.16.0", "pyyaml >= 3.11", "tables >= 3.2.0", # Requires cython to build "click >= 3.3" ], entry_points={ 'console_scripts': [ 'calliope = calliope.cli:cli' ] }, classifiers=[ 'Intended Audience :: Science/Research', 'License :: OSI Approved :: Apache Software License', 'Programming Language :: Python', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3 :: Only' ], keywords=['energy systems', 'optimization', 'mathematical programming'] )
Python
0
@@ -1140,16 +1140,130 @@ %0A + # Removed tables from required dependencies here because it causes%0A # readthedocs builds to fail%0A # %22tables
07e04b0bb699389eeb04b6c12f54a907c50b1f1c
Update setup.py(change version number, etc)
setup.py
setup.py
from setuptools import setup, find_packages setup( name='anomaly_detector', version='1.0.0', packages=find_packages(exclude=('tests', 'docs')), include_package_data=True, test_suite='tests', install_requires=[ ] )
Python
0
@@ -91,13 +91,101 @@ on=' -1.0.0 +0.0.1',%0A description='Anomaly detection library with Python',%0A author='Hirofumi Tsuruta ',%0A
99417bf5d95ad2d4409ba27941d3e79b82b7777b
version 0.0.1.4
setup.py
setup.py
from distutils.core import setup setup( name = 'gitnb', packages = ['gitnb'], version = '0.0.1.3', description = 'Git Tracking for Python Notebooks', author = 'Brookie Guzder-Williams', author_email = 'brook.williams@gmail.com', url = 'https://github.com/brookisme/gitnb', download_url = 'https://github.com/brookisme/gitnb/tarball/0.1', keywords = ['ipython', 'notebook','git'], include_package_data=True, data_files=[ ('config',[ 'gitnb/default.config.yaml', 'gitnb/dot_gitnb/notebooks', 'gitnb/dot_gitnb/precommit', 'gitnb/dot_gitnb/default_gitignore' ] ) ], classifiers = [], entry_points={ 'console_scripts': [ 'gitnb=gitnb:main', ], } )
Python
0.000002
@@ -98,9 +98,9 @@ 0.1. -3 +4 ',%0A
f6f750e2ba83dd6b19b9bd701de467fcc44bdd02
Update version number to 0.1.6
setup.py
setup.py
from setuptools import setup install_requires = [ 'oauth2client>=1.3.2', 'pyOpenSSL==0.14', 'simplejson>=2.3.2', ] packages = ['identitytoolkit',] setup( name = 'identity-toolkit-python-client', packages = packages, install_requires = install_requires, license="Apache 2.0", version = '0.1.5', description = 'Google Identity Toolkit python client library', author = 'Jin Liu', url = 'https://github.com/google/identity-toolkit-python-client', download_url = 'https://github.com/google/identity-toolkit-python-client/archive/master.zip', keywords = ['identity', 'google', 'login', 'toolkit'], # arbitrary keywords classifiers = [], )
Python
0.000009
@@ -308,9 +308,9 @@ 0.1. -5 +6 ',%0A
c209ec1d98a85917c629c0dc259884da30d03f00
Bump version number
setup.py
setup.py
from setuptools import setup setup( name='discord-curious', version='0.1.0', packages=['curious', 'curious.http', 'curious.commands', 'curious.dataclasses', 'curious.ext'], url='https://github.com/SunDwarf/curious', license='MIT', author='Laura Dickinson', author_email='l@veriny.tf', description='A curio library for the Discord API', install_requires=[ "cuiows>=0.1.10", "curio==0.4.0", "h11==0.7.0", "multidict==2.1.4", "pylru==1.0.9", "yarl==0.8.1", ] )
Python
0.000002
@@ -75,17 +75,17 @@ on='0.1. -0 +1 ',%0A p
27fbdd6bd0bfdee6275fd9939e7b98f1785338bb
version bump
setup.py
setup.py
# -*- coding: utf-8 -*- from setuptools import setup, find_packages, Extension from setuptools.command.build_ext import build_ext import sys import os import traceback import functools def has_option(name): try: sys.argv.remove('--%s' % name) return True except ValueError: pass # allow passing all cmd line options also as environment variables env_val = os.getenv(name.upper().replace('-', '_'), 'false').lower() if env_val == "true": return True return False include_diagnostics = has_option("include-diagnostics") force_cythonize = has_option("force-cythonize") try: from Cython.Build import cythonize cython_directives = { 'embedsignature': True, "profile": include_diagnostics } if include_diagnostics: Extension = functools.partial(Extension, define_macros=[ ("CYTHON_TRACE_NOGIL", "1"), ]) extensions = cythonize([ Extension( name="brainpy._speedup", sources=["brainpy/_speedup.pyx"], include_dirs=["brainpy/_c/"]), Extension( name="brainpy._c.composition", sources=["brainpy/_c/composition.pyx"], include_dirs=["brainpy/_c/"]), Extension( name="brainpy._c.double_vector", sources=["brainpy/_c/double_vector.pyx"], include_dirs=["brainpy/_c/"]), Extension( name="brainpy._c.isotopic_constants", sources=["brainpy/_c/isotopic_constants.pyx"], include_dirs=["brainpy/_c/"]), Extension( name="brainpy._c.isotopic_distribution", sources=["brainpy/_c/isotopic_distribution.pyx"], include_dirs=["brainpy/_c/"]) ], compiler_directives=cython_directives, force=force_cythonize) except ImportError: extensions = ([ Extension( name="brainpy._speedup", sources=["brainpy/_speedup.c"], include_dirs=["brainpy/_c/"]), Extension( name="brainpy._c.composition", sources=["brainpy/_c/composition.c"], include_dirs=["brainpy/_c/"]), Extension( name="brainpy._c.double_vector", sources=["brainpy/_c/double_vector.c"], include_dirs=["brainpy/_c/"]), Extension( name="brainpy._c.isotopic_constants", sources=["brainpy/_c/isotopic_constants.c"], include_dirs=["brainpy/_c/"]), Extension( name="brainpy._c.isotopic_distribution", sources=["brainpy/_c/isotopic_distribution.c"], include_dirs=["brainpy/_c/"]) ]) class BuildFailed(Exception): def __init__(self): self.cause = sys.exc_info()[1] # work around py 2/3 different syntax def __str__(self): return str(self.cause) class ve_build_ext(build_ext): # This class allows C extension building to fail. def run(self): try: build_ext.run(self) except Exception: traceback.print_exc() raise BuildFailed() def build_extension(self, ext): try: build_ext.build_extension(self, ext) except Exception: traceback.print_exc() raise BuildFailed() except ValueError: # this can happen on Windows 64 bit, see Python issue 7511 traceback.print_exc() if "'path'" in str(sys.exc_info()[1]): # works with both py 2/3 raise BuildFailed() raise cmdclass = {} cmdclass['build_ext'] = ve_build_ext def status_msgs(*msgs): print('*' * 75) for msg in msgs: print(msg) print('*' * 75) def run_setup(include_cext=True): setup( name='brain-isotopic-distribution', version='1.5.10', packages=find_packages(), description="Fast and efficient theoretical isotopic profile generation", long_description=''' :mod:`brainpy` is a small Python library implementing the *B* afflingly *R* ecursive *A* lgorithm for *I* sotopic Patter *N* generation [Dittwald2014]_. It includes three implementations, a pure-Python object oriented implementation, a :title-reference:`Cython` accelerated version of the object oriented implementation, and a pure :title-reference:`C` implementation, listed in order of ascending speed. The C implementation is used by default when available. BRAIN, implemented in :func:`brainpy.isotopic_variants`, takes an elemental composition represented by any :class:`~.collections.abc.Mapping`-like Python object and uses it to compute its aggregated isotopic distribution. All isotopic variants of the same number of neutrons are collapsed into a single centroid peak, meaning it does not consider isotopic fine structure. Installing ---------- :mod:`brainpy` has three implementations, a pure Python implementation, a Cython translation of that implementation, and a pure C implementation that releases the :title-reference:`GIL`. To install from a package index, you will need to have a C compiler appropriate to your Python version to build these extension modules. Additionally, there are prebuilt wheels for Windows available on `PyPI <https://pypi.org/project/brain-isotopic-distribution/>`_: .. code-block:: sh $ pip install brain-isotopic-distribution To build from source, in addition to a C compiler you will also need to install a recent version of `Cython <https://pypi.org/project/Cython/>`_ to transpile C code. References ---------- This package is an implementation of the algorithm originally described in P. Dittwald, J. Claesen, T. Burzykowski, D. Valkenborg, and A. Gambin, "BRAIN: a universal tool for high-throughput calculations of the isotopic distribution for mass spectrometry.", Anal. Chem., vol. 85, no. 4, pp. 1991–4, Feb. 2013. H. Hu, P. Dittwald, J. Zaia, and D. Valkenborg, "Comment on 'Computation of isotopic peak center-mass distribution by fourier transform'.", Anal. Chem., vol. 85, no. 24, pp. 12189–92, Dec. 2013. ''', long_description_content_type='text/markdown', author=', '.join(["Joshua Klein", "Han Hu"]), author_email="jaklein@bu.edu", url="https://github.com/mobiusklein/brainpy", maintainer='Joshua Klein', keywords=["isotopic distribution", "isotopic pattern"], maintainer_email="jaklein@bu.edu", ext_modules=extensions if include_cext else None, include_package_data=True, cmdclass=cmdclass, classifiers=[ 'Development Status :: 4 - Beta', 'Intended Audience :: Science/Research', 'License :: OSI Approved :: Apache Software License', 'Topic :: Scientific/Engineering :: Bio-Informatics'], project_urls={ "Bug Tracker": "https://github.com/mobiusklein/brainpy/issues", "Source Code": "https://github.com/mobiusklein/brainpy", "Documentation": "http://mobiusklein.github.io/brainpy", } ) if __name__ == '__main__': try: run_setup(True) except Exception as exc: run_setup(False) status_msgs( "WARNING: The C extension could not be compiled, " + "speedups are not enabled.", "Plain-Python build succeeded." )
Python
0.000001
@@ -3709,17 +3709,17 @@ n='1.5.1 -0 +1 ',%0A
6242ea8a44e34d5c7dadf6d5c667c1d8170952ef
Update sphinx_rtd_theme
setup.py
setup.py
#!/usr/bin/env python from codecs import open from os import path from setuptools import setup here = path.abspath(path.dirname(__file__)) with open(path.join(here, 'README.rst'), encoding='utf-8') as f: long_description = f.read() with open(path.join(here, 'gyazo/__about__.py')) as f: exec(f.read()) package_data = { 'gyazo': ['*.pyi'], } install_requires = [ 'python-dateutil>=2.4.2', 'requests>=2.7.0', ] extras_require = { ':python_version < "3.5"': [ 'typing', ], 'docs': [ 'Sphinx>=1.7,<1.8', 'sphinx_rtd_theme>=0.2.4,<0.3', ], 'mypy:python_version >= "3.4"': [ 'mypy', ], 'test': [ 'coverage>=4.3.4,<5.0.0', 'coveralls>=1.1,<2.0', 'flake8>=3.3.0,<4.0.0', ], 'test:python_version < "3.3"': [ 'mock>=2.0.0,<3.0.0', ], } classifiers = [ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: Implementation :: CPython', 'Programming Language :: Python :: Implementation :: PyPy', 'Topic :: Internet', ] setup( name='python-gyazo', version=__version__, description='A Python wrapper for Gyazo API', long_description=long_description, author='Yusuke Miyazaki', author_email='miyazaki.dev@gmail.com', url='https://github.com/ymyzk/python-gyazo', license='MIT', packages=['gyazo'], package_data=package_data, test_suite='tests', python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, <4', install_requires=install_requires, extras_require=extras_require, classifiers=classifiers, )
Python
0.000001
@@ -581,16 +581,16 @@ %3E=0. -2.4 +3.0 ,%3C0. -3 +4 ',%0A
f09eddcc04ebcf74daf968a973d3275feaee3b66
correct email address
setup.py
setup.py
# -*- coding: utf-8 -*- from setuptools import setup, find_packages setup(name='yamlmd', version='0.1.4', description='Read and write to Markdown files with yaml headers', url='https://github.com/dougmet/yamlmd', author='Doug Ashton', author_email='dashton@mango-solutions.com', license='MIT', packages=find_packages(exclude=['contrib', 'docs', 'tests*']), zip_safe=False, install_requires=['ruamel.yaml>0.15'])
Python
0.999218
@@ -279,30 +279,29 @@ l='d +ouglas.j. ashton@ +g ma -ngo-solutions +il .com
af2f42fb652aea20d7fbbe7a6355408a98b40dba
Add dry-run to UploadBot
uploadlibrary/UploadBot.py
uploadlibrary/UploadBot.py
import sys import re import pywikibot import pywikibot.textlib as textlib import upload import data_ingestion from data_ingestion import Photo, DataIngestionBot class DataIngestionBot(DataIngestionBot): def _doUpload(self, photo): duplicates = photo.findDuplicateImages(self.site) if duplicates: pywikibot.output(u"Skipping duplicate of %r" % (duplicates, )) return duplicates[0] title = cleanUpTitle(photo.getTitle(self.titlefmt)) description = textlib.glue_template_and_params((self.pagefmt, photo.metadata)) bot = upload.UploadRobot(url=photo.URL, description=description, useFilename=title, keepFilename=True, verifyDescription=True, uploadByUrl=False, targetSite=self.site) bot._contents = photo.downloadPhoto().getvalue() bot._retrieved = True print title print description bot.run() return title def cleanUpTitle(title): """Clean up the title of a potential mediawiki page. Otherwise the title of the page might not be allowed by the software. """ title = title.strip() title = re.sub(u"[<{\\[]", u"(", title) title = re.sub(u"[>}\\]]", u")", title) title = re.sub(u"[ _]?\\(!\\)", u"", title) title = re.sub(u",:[ _]", u", ", title) title = re.sub(u"[;:][ _]", u", ", title) title = re.sub(u"[\t\n ]+", u" ", title) title = re.sub(u"[\r\n ]+", u" ", title) title = re.sub(u"[\n]+", u"", title) title = re.sub(u"[?!]([.\"]|$)", u"\\1", title) title = re.sub(u"[&#%?!]", u"^", title) title = re.sub(u"[;]", u",", title) title = re.sub(u"[/+\\\\:]", u"-", title) title = re.sub(u"--+", u"-", title) title = re.sub(u",,+", u",", title) title = re.sub(u"[-,^]([.]|$)", u"\\1", title) title = title.replace(u" ", u"_") return title
Python
0
@@ -1176,16 +1176,561 @@ title%0A%0A + def _debug_description(self, photo):%0A title = cleanUpTitle(photo.getTitle(self.titlefmt))%0A description = textlib.glue_template_and_params((self.pagefmt,%0A photo.metadata))%0A print %22= %25s =%22 %25 title%0A print %22%7B%7Bcollapse%7Ctitle=%25s%7C1=%3Cpre%3E%5Cn%25s%5Cn%3C/pre%3E%7D%7D%22 %25 (title,%0A description)%0A print description%0A%0A def dry_run(self):%0A for photo in self.reader:%0A self._debug_description(photo)%0A%0A %0Adef cle
d3edf99aafd2233a13cd3b86bae3628803eb64ff
update pyyaml (#29)
setup.py
setup.py
from setuptools import find_packages, setup setup( name='django-stardate', version='0.1.0.a5', author=u'Benjamin Turner', author_email='benturn@gmail.com', packages=find_packages(), url='https://github.com/blturner/django-stardate', download_url='https://github.com/blturner/django-stardate/archive/v0.1.0.a5.tar.gz', license='BSD', description='Another django blog app.', zip_safe=False, install_requires=[ 'Django>=1.4,<1.12', 'django-markupfield==1.4.0', 'dropbox==8.8.1', 'Markdown==2.6.5', 'PyYAML==3.11', 'python-dateutil==2.4.2', 'pytz<2015.7', 'social-auth-app-django==2.1.0', 'watchdog==0.8.3', ], test_requires=['mock==1.3.0',] )
Python
0
@@ -54,17 +54,17 @@ name= -' +%22 django-s @@ -66,25 +66,25 @@ ngo-stardate -' +%22 ,%0A versio @@ -89,17 +89,17 @@ ion= -' +%22 0.1.0.a5 ',%0A @@ -94,17 +94,17 @@ 0.1.0.a5 -' +%22 ,%0A au @@ -109,17 +109,17 @@ author=u -' +%22 Benjamin @@ -125,17 +125,17 @@ n Turner -' +%22 ,%0A au @@ -145,17 +145,17 @@ r_email= -' +%22 benturn@ @@ -163,17 +163,17 @@ mail.com -' +%22 ,%0A pa @@ -200,25 +200,25 @@ (),%0A url= -' +%22 https://gith @@ -248,17 +248,17 @@ stardate -' +%22 ,%0A do @@ -268,17 +268,17 @@ oad_url= -' +%22 https:// @@ -337,17 +337,17 @@ 5.tar.gz -' +%22 ,%0A li @@ -356,13 +356,13 @@ nse= -'BSD' +%22BSD%22 ,%0A @@ -375,17 +375,17 @@ ription= -' +%22 Another @@ -400,17 +400,17 @@ log app. -' +%22 ,%0A zi @@ -454,17 +454,17 @@ -' +%22 Django%3E= @@ -472,17 +472,17 @@ .4,%3C1.12 -' +%22 ,%0A @@ -483,17 +483,17 @@ -' +%22 django-m @@ -509,17 +509,17 @@ d==1.4.0 -' +%22 ,%0A @@ -520,17 +520,17 @@ -' +%22 dropbox= @@ -535,17 +535,17 @@ x==8.8.1 -' +%22 ,%0A @@ -546,17 +546,17 @@ -' +%22 Markdown @@ -562,17 +562,17 @@ n==2.6.5 -' +%22 ,%0A @@ -577,22 +577,21 @@ -'PyYAML==3.11' +%22PyYaml==5.1%22 ,%0A @@ -596,17 +596,17 @@ -' +%22 python-d @@ -619,17 +619,17 @@ l==2.4.2 -' +%22 ,%0A @@ -630,17 +630,17 @@ -' +%22 pytz%3C201 @@ -642,17 +642,17 @@ z%3C2015.7 -' +%22 ,%0A @@ -653,17 +653,17 @@ -' +%22 social-a @@ -683,17 +683,17 @@ o==2.1.0 -' +%22 ,%0A @@ -694,17 +694,17 @@ -' +%22 watchdog @@ -710,17 +710,17 @@ g==0.8.3 -' +%22 ,%0A %5D, @@ -739,17 +739,17 @@ quires=%5B -' +%22 mock==1. @@ -755,10 +755,10 @@ .3.0 -',%5D +%22%5D, %0A)%0A
09f3b3d8abacecd84d1ff6fbd65c991f2c0dbfd0
Version bump
setup.py
setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import sys try: from setuptools import setup except ImportError: from distutils.core import setup version = "1.3.2" if sys.argv[-1] == 'publish': try: import wheel # noqa except ImportError: raise ImportError("Fix: pip install wheel") os.system('python setup.py sdist bdist_wheel upload') print("You probably want to also tag the version now:") print(" git tag -a %s -m 'version %s'" % (version, version)) print(" git push --tags") sys.exit() if sys.argv[-1] == 'tag': print("Tagging the version on github:") 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:', '') def get_requirements(filename): with open(filename) as fp: reqs = [x.strip() for x in fp.read().splitlines() if not x.strip().startswith('#')] return reqs setup( name='stupid', version=version, description="""Slack super perfomance team collaboration bot""", long_description=readme + '\n\n' + history, author='Petr Demin', author_email='petr.demin@nih.gov', url='https://github.com/peterdemin/stupid', include_package_data=True, packages=['stupid'], install_requires=get_requirements('requirements.txt'), license="BSD", zip_safe=False, keywords='stupid', classifiers=[ 'Development Status :: 2 - Pre-Alpha', 'Intended Audience :: Developers', 'License :: OSI Approved :: BSD License', 'Natural Language :: English', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', ], entry_points={ 'console_scripts': [ 'stupid = stupid.main:main', ] }, setup_requires=['nose>=1.0', 'pytest-runner'], tests_require=get_requirements('requirements-dev.txt'), )
Python
0.000001
@@ -173,17 +173,17 @@ = %221.3. -2 +3 %22%0A%0Aif sy
d10bf29735da04789b4710519a2d4cc006d9d95e
Bump up version number to 0.7.
setup.py
setup.py
from setuptools import setup, find_packages long_description = ''' =========================================== tessagon: tessellation / tiling with python =========================================== Tessellate your favorite 3D surfaces (technically, 2D manifolds) with triangles, hexagons, or a number of other curated tiling types! Please visit the Github repository for documentation: `<https://github.com/cwant/tessagon>`_ Either checkout the code from the Github project, or install via pip:: python3 -m pip install tessagon or:: pip3 install tessagon '''[1:-1] setup( name='tessagon', version='0.6', description='Tessellate your favorite 2D manifolds with triangles, ' + 'hexagons, and other interesting patterns.', long_description=long_description, url='https://github.com/cwant/tessagon', author='Chris Want', classifiers=['Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'Intended Audience :: Manufacturing', 'Intended Audience :: Science/Research', 'License :: OSI Approved :: Apache Software License', 'Natural Language :: English', 'Programming Language :: Python :: 3 :: Only', 'Topic :: Artistic Software', 'Topic :: Multimedia :: Graphics :: 3D Modeling', 'Topic :: Scientific/Engineering :: Mathematics', 'Topic :: Scientific/Engineering :: Visualization'], keywords='tesselation tiling modeling blender vtk', packages=find_packages(exclude=['tests', 'demo', 'wire_skin.py']), python_requires='~=3.5' )
Python
0.000039
@@ -624,9 +624,9 @@ ='0. -6 +7 ',%0A @@ -1660,9 +1660,9 @@ es=' -~ +%3E =3.5
62388517c5b3c3ff37ebc65d097c76761ca07120
Remove pytest-runner from install_requires
setup.py
setup.py
#! /usr/bin/env python import os from setuptools import setup os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'test_settings') CLASSIFIERS = [ 'Environment :: Web Environment', 'Intended Audience :: Developers', 'License :: OSI Approved :: BSD License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Topic :: Internet :: WWW/HTTP', 'Topic :: Internet :: WWW/HTTP :: Dynamic Content', 'Topic :: Software Development :: Libraries :: Application Frameworks', 'Topic :: Software Development :: Libraries :: Python Modules'] setup( name='django-prices-openexchangerates', author='Mirumee Software', author_email='hello@mirumee.com', description='openexchangerates.org support for django-prices', license='BSD', version='0.1.15', url='https://github.com/mirumee/django-prices-openexchangerates', packages=[ 'django_prices_openexchangerates', 'django_prices_openexchangerates.management', 'django_prices_openexchangerates.management.commands', 'django_prices_openexchangerates.migrations', 'django_prices_openexchangerates.templatetags'], include_package_data=True, classifiers=CLASSIFIERS, install_requires=['Django>=1.4', 'pytest-runner', 'django-prices>=0.6.1', 'prices>=1.0.0-beta'], platforms=['any'], setup_requires=['pytest-runner'], tests_require=['mock==1.0.1', 'pytest'], test_suite='django_prices_openexchangerates.tests', zip_safe=False)
Python
0
@@ -1398,25 +1398,8 @@ .4', - 'pytest-runner', 'dj
6a98b8938d8555a483bd09c124b1129a3d9cc81a
Add Django 1.11 to the setup.py classifiers list
setup.py
setup.py
from __future__ import print_function import os import sys from distutils.util import convert_path from fnmatch import fnmatchcase from setuptools import setup, find_packages version = '0.2.0' # Provided as an attribute, so you can append to these instead # of replicating them: standard_exclude = ('*.py', '*.pyc', '*$py.class', '*~', '.*', '*.bak') standard_exclude_directories = ('.*', 'CVS', '_darcs', './build', './dist', 'EGG-INFO', '*.egg-info') # (c) 2005 Ian Bicking and contributors; written for Paste (http://pythonpaste.org) # Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php # Note: you may want to copy this into your setup.py file verbatim, as # you can't import this from another package, when you don't know if # that package is installed yet. def find_package_data( where='.', package='', exclude=standard_exclude, exclude_directories=standard_exclude_directories, only_in_packages=True, show_ignored=False): """ Return a dictionary suitable for use in ``package_data`` in a distutils ``setup.py`` file. The dictionary looks like:: {'package': [files]} Where ``files`` is a list of all the files in that package that don't match anything in ``exclude``. If ``only_in_packages`` is true, then top-level directories that are not packages won't be included (but directories under packages will). Directories matching any pattern in ``exclude_directories`` will be ignored; by default directories with leading ``.``, ``CVS``, and ``_darcs`` will be ignored. If ``show_ignored`` is true, then all the files that aren't included in package data are shown on stderr (for debugging purposes). Note patterns use wildcards, or can be exact paths (including leading ``./``), and all searching is case-insensitive. """ out = {} stack = [(convert_path(where), '', package, only_in_packages)] while stack: where, prefix, package, only_in_packages = stack.pop(0) for name in os.listdir(where): fn = os.path.join(where, name) if os.path.isdir(fn): bad_name = False for pattern in exclude_directories: if (fnmatchcase(name, pattern) or fn.lower() == pattern.lower()): bad_name = True if show_ignored: print( "Directory %s ignored by pattern %s" % (fn, pattern), file=sys.stderr ) break if bad_name: continue if (os.path.isfile(os.path.join(fn, '__init__.py')) and not prefix): if not package: new_package = name else: new_package = package + '.' + name stack.append((fn, '', new_package, False)) else: stack.append((fn, prefix + name + '/', package, only_in_packages)) elif package or not only_in_packages: # is a file bad_name = False for pattern in exclude: if (fnmatchcase(name, pattern) or fn.lower() == pattern.lower()): bad_name = True if show_ignored: print( "File %s ignored by pattern %s" % (fn, pattern), file=sys.stderr ) break if bad_name: continue out.setdefault(package, []).append(prefix+name) return out def get_requirements(): with open(os.path.join(os.path.dirname(__file__), "requirements.txt")) as f: requirements_list = [req.strip() for req in f.readlines()] requirements_list.append("setuptools") requirements_list.append("pytz") return requirements_list LONG_DESCRIPTION = """ =============== django-helpdesk =============== This is a Django-powered helpdesk ticket tracker, designed to plug into an existing Django website and provide you with internal (or, perhaps, external) helpdesk management. """ setup( name='django-helpdesk', version=version, description="Django-powered ticket tracker for your helpdesk", long_description=LONG_DESCRIPTION, classifiers=[ "Development Status :: 4 - Beta", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Framework :: Django", "Framework :: Django :: 1.8", "Framework :: Django :: 1.9", "Framework :: Django :: 1.10", "Environment :: Web Environment", "Operating System :: OS Independent", "Intended Audience :: Customer Service", "License :: OSI Approved :: BSD License", "Topic :: Software Development :: Bug Tracking", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Office/Business", "Natural Language :: English", ], keywords=['django', 'helpdesk', 'django-helpdesk', 'tickets', 'incidents', 'cases', 'bugs', 'track', 'support'], author='Ross Poulton', author_email='ross@rossp.org', maintainer='Jonathan Barratt', maintainer_email='jonathan@the-im.com', url='https://github.com/django-helpdesk/django-helpdesk', license='BSD', packages=find_packages(), package_data=find_package_data("helpdesk", only_in_packages=False), include_package_data=True, zip_safe=False, install_requires=get_requirements(), )
Python
0.000001
@@ -5028,16 +5028,55 @@ 1.10%22,%0A + %22Framework :: Django :: 1.11%22,%0A
39974144af20ed4c4e2f110e345e75745e38bbc6
FIX #10
setup.py
setup.py
from distutils.core import setup setup( name = "django-templatetag-sugar", version = __import__("templatetag_sugar").__version__, author = "Alex Gaynor", author_email = "alex.gaynor@gmail.com", description = "A library to make Django's template tags sweet.", long_description = open("README").read(), license = "BSD", url = "http://github.com/alex/django-templatetag-sugar/", packages = [ "templatetag_sugar", ], classifiers = [ "Development Status :: 3 - Alpha", "Environment :: Web Environment", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Framework :: Django", ] )
Python
0
@@ -311,16 +311,20 @@ (%22README +.rst %22).read(
196f58111987bb42e8bbaf5d3d99d92366d298a2
fix broken homepage url
setup.py
setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup setup(name='aiohttp-json-rpc', version='0.2.0', author='Florian Scherf', url='https://github.com/pengutronix/aiohttp-json-rpc/tree/doc', author_email='f.scherf@pengutronix.de', license='Apache 2.0', install_requires=['aiohttp>=0.17.0'], packages=['aiohttp_json_rpc'], zip_safe=False)
Python
0
@@ -120,17 +120,17 @@ on='0.2. -0 +1 ',%0A @@ -218,16 +218,8 @@ rpc/ -tree/doc ',%0A
5d8774dd28d5b1cff077ed69ccd04a334647169e
Add dependencies for windows packaging
setup.py
setup.py
import platform import sys from config import get_version from jmxfetch import JMX_FETCH_JAR_NAME try: from setuptools import setup, find_packages # required to build the cython extensions from distutils.extension import Extension #pylint: disable=no-name-in-module except ImportError: from ez_setup import use_setuptools use_setuptools() from setuptools import setup, find_packages # Extra arguments to pass to the setup function extra_args = {} # Prereqs of the build. Won't get installed when deploying the egg. setup_requires = [ ] # Prereqs of the install. Will install when deploying the egg. install_requires=[ ] if sys.platform == 'win32': from glob import glob import py2exe import pysnmp_mibs install_requires.extend([ 'tornado==3.0.1', 'pywin32==217', 'wmi==1.4.9', 'simplejson==3.3.3', 'mysql-python==1.2.3', 'pymongo==2.3', 'pg8000==1.9.6', 'python-memcached==1.48', 'adodbapi==2.4.2.2', 'elementtree==1.2.7.20070827-preview', 'pycurl==7.19.0', 'pymysql==0.6.1', 'psutil==2.1.1', 'redis==2.10.1', 'requests==2.3.0', 'httplib2==0.9', 'pysnmp==4.2.5', 'pysnmp-mibs==0.1.4' ]) # Modules to force-include in the exe include_modules = [ # 3p 'win32service', 'win32serviceutil', 'win32event', 'simplejson', 'adodbapi', 'elementtree.ElementTree', 'pycurl', 'tornado.curl_httpclient', 'pymongo', 'pymysql', 'psutil', 'pg8000', 'redis', 'requests', 'pysnmp', 'pysnmp.smi.mibs.*', 'pysnmp.smi.mibs.instances.*', 'pysnmp_mibs.*', 'pysnmp.entity.rfc3413.oneliner.*', # agent 'checks.network_checks', 'httplib2', # pup 'pup', 'pup.pup', 'tornado.websocket', 'tornado.web', 'tornado.ioloop', ] class Target(object): def __init__(self, **kw): self.__dict__.update(kw) self.version = get_version() self.company_name = 'Datadog, Inc.' self.copyright = 'Copyright 2013 Datadog, Inc.' self.cmdline_style = 'pywin32' agent_svc = Target(name='Datadog Agent', modules='win32.agent', dest_base='ddagent') extra_args = { 'options': { 'py2exe': { 'includes': ','.join(include_modules), 'optimize': 0, 'compressed': True, 'bundle_files': 3, 'excludes': ['numpy'], 'dll_excludes': [ "IPHLPAPI.DLL", "NSI.dll", "WINNSI.DLL", "WTSAPI32.dll"], 'ascii':False, }, }, 'console': ['win32\shell.py'], 'service': [agent_svc], 'windows': [{'script': 'win32\gui.py', 'dest_base': "agent-manager", 'uac_info': "requireAdministrator", # The manager needs to be administrator to stop/start the service 'icon_resources': [(1, r"packaging\datadog-agent\win32\install_files\dd_agent_win_256.ico")], }], 'data_files': [ ("Microsoft.VC90.CRT", glob(r'C:\Python27\redist\*.*')), ('pup', [r'pup\pup.html', r'pup\status.html']), ('pup/static', glob('pup/static/*.*')), ('jmxfetch', [r'checks\libs\%s' % JMX_FETCH_JAR_NAME]), ('gohai', [r'gohai\gohai.exe']) ], } setup( name='datadog-agent', version=get_version(), description="DevOps' best friend", author='DataDog', author_email='dev@datadoghq.com', url='http://www.datadoghq.com', install_requires=install_requires, setup_requires=setup_requires, packages=find_packages(exclude=['ez_setup']), include_package_data=True, test_suite='nose.collector', zip_safe=False, **extra_args )
Python
0.000001
@@ -1267,16 +1267,42 @@ ==0.1.4' +,%0A 'pyvmomi==5.5.0' %0A %5D)%0A @@ -1897,24 +1897,56 @@ rk_checks',%0A + 'checks.libs.vmware.*',%0A 'htt
3aabf183a84aeb8201f210fe3ee5e8cac7804297
update description for setup
setup.py
setup.py
__author__ = 'manu' import os from setuptools import setup, find_packages from oct import __version__ BASE_DIR = os.path.abspath(os.path.dirname(__file__)) setup( name='oct', version=__version__, author='Emmanuel Valette', author_email='manu.valette@gmail.com', packages=['oct', 'oct.core', 'oct.multimechanize', 'oct.testing', 'oct.multimechanize.utilities', 'oct.utilities', 'oct.tools'], package_data={'oct.utilities': ['templates/css/*']}, description='A library based on multi-mechanize for performances testing', url='https://github.com/karec/oct', download_url='https://github.com/karec/oct/archive/master.zip', keywords=['testing', 'multi-mechanize', 'perfs', 'webscrapper', 'browser', 'web', 'performances'], classifiers=[ 'Development Status :: 3 - Alpha', 'Environment :: Console', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', ], install_requires=[ 'argparse', 'requests', 'lxml', 'celery', 'cssselect', 'pygal', 'cairosvg', 'tinycss' ], entry_points={'console_scripts': [ 'multimech-run = oct.multimechanize.utilities.run:main', 'multimech-newproject = oct.multimechanize.utilities.newproject:main', 'multimech-gridgui = oct.multimechanize.utilities.gridgui:main', 'oct-run = oct.utilities.run:oct_main', 'oct-newproject = oct.utilities.newproject:main', 'octtools-sitemap-to-csv = oct.tools.xmltocsv:sitemap_to_csv', 'octtools-user-generator = oct.tools.email_generator:email_generator' ]}, )
Python
0
@@ -494,17 +494,17 @@ ription= -' +%22 A librar @@ -550,25 +550,65 @@ nces testing -' +, using custom browser for writing tests%22 ,%0A url='h @@ -805,16 +805,24 @@ rmances' +, 'lxml' %5D,%0A c
ad4a51f79ab51bb64e91bc716758295dd071072d
Upgrade scramp to latest version
setup.py
setup.py
#!/usr/bin/env python import versioneer from setuptools import setup long_description = """\ pg8000 ------ pg8000 is a Pure-Python interface to the PostgreSQL database engine. It is \ one of many PostgreSQL interfaces for the Python programming language. pg8000 \ is somewhat distinctive in that it is written entirely in Python and does not \ rely on any external libraries (such as a compiled python module, or \ PostgreSQL's libpq library). pg8000 supports the standard Python DB-API \ version 2.0. pg8000's name comes from the belief that it is probably about the 8000th \ PostgreSQL interface for Python.""" cmdclass = dict(versioneer.get_cmdclass()) version = versioneer.get_version() setup( name="pg8000", version=version, cmdclass=cmdclass, description="PostgreSQL interface library", long_description=long_description, author="Mathieu Fenniak", author_email="biziqe@mathieu.fenniak.net", url="https://github.com/tlocke/pg8000", license="BSD", python_requires='>=3.5', install_requires=['scramp==1.1.0'], classifiers=[ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: Implementation", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: Jython", "Programming Language :: Python :: Implementation :: PyPy", "Operating System :: OS Independent", "Topic :: Database :: Front-Ends", "Topic :: Software Development :: Libraries :: Python Modules", ], keywords="postgresql dbapi", packages=("pg8000",) )
Python
0
@@ -1053,17 +1053,17 @@ mp==1.1. -0 +1 '%5D,%0A
943ea720f49c3b15d7fa08c39af3db4697550022
Update authors
setup.py
setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import find_packages, setup with open('README.md') as file: long_description = file.read() setup( name='django-qa', version='0.0.1', description='Pluggable django app for Q&A', long_description=long_description, author='arjunkomath, cdvv7788', author_email='dev@swapps.co', url='https://github.com/swappsco/django-qa', license='MIT', packages=find_packages(), classifiers=[ 'Development Status :: 4 - Beta', 'Framework :: Django', 'Intended Audience :: Developers', 'License :: OSI Approved :: BSD License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3.3', ], install_requires=[ 'django-annoying', 'django_bootstrap3', 'django_markdown', 'pillow', ], extras_require={ 'i18n': [ 'django-modeltranslation>=0.5b1', ], }, include_package_data=True, zip_safe=False, )
Python
0
@@ -322,16 +322,32 @@ cdvv7788 +, sebastian-code ',%0A a
f96eaa7bea3536c8843c2059757dabf005a63a42
Add include_package_data=True to setup.py.
setup.py
setup.py
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. import os import subprocess from setuptools import setup, find_packages from setuptools.command.sdist import sdist from sphinx.setup_command import BuildDoc from nova.utils import parse_mailmap, str_dict_replace class local_BuildDoc(BuildDoc): def run(self): for builder in ['html', 'man']: self.builder = builder self.finalize_options() BuildDoc.run(self) class local_sdist(sdist): """Customized sdist hook - builds the ChangeLog file from VC first""" def run(self): if os.path.isdir('.bzr'): # We're in a bzr branch env = os.environ.copy() env['BZR_PLUGIN_PATH'] = os.path.abspath('./bzrplugins') log_cmd = subprocess.Popen(["bzr", "log", "--novalog"], stdout=subprocess.PIPE, env=env) changelog = log_cmd.communicate()[0] mailmap = parse_mailmap() with open("ChangeLog", "w") as changelog_file: changelog_file.write(str_dict_replace(changelog, mailmap)) sdist.run(self) setup(name='nova', version='2011.1', description='cloud computing fabric controller', author='OpenStack', author_email='nova@lists.launchpad.net', url='http://www.openstack.org/', cmdclass={ 'sdist': local_sdist, 'build_sphinx' : local_BuildDoc }, packages=find_packages(exclude=['bin', 'smoketests']), scripts=['bin/nova-api', 'bin/nova-compute', 'bin/nova-dhcpbridge', 'bin/nova-import-canonical-imagestore', 'bin/nova-instancemonitor', 'bin/nova-manage', 'bin/nova-network', 'bin/nova-objectstore', 'bin/nova-scheduler', 'bin/nova-volume', 'tools/nova-debug'])
Python
0
@@ -2222,16 +2222,49 @@ sts'%5D),%0A + include_package_data=True,%0A sc
29518e734b9026c47abb28037e8abeeb4e18a61d
add markov-clustering as a dependency
setup.py
setup.py
#!/usr/bin/env python3 from setuptools import setup, find_packages, Extension import os import io import re import numpy def read(*names, **kwargs): with io.open( os.path.join(os.path.dirname(__file__), *names), encoding=kwargs.get("encoding", "utf8") ) as fp: return fp.read() def find_version(*file_paths): version_file = read(*file_paths) 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.") pccup = Extension( 'camoco.PCCUP', sources=['camoco/PCCUP.pyx'], # extra_compile_args=['-ffast-math'], include_dirs=[numpy.get_include()] ) refgendist = Extension( 'camoco.RefGenDist', sources=['camoco/RefGenDist.pyx'], # extra_compile_args=['-ffast-math'], include_dirs=[numpy.get_include()] ) setup( name = 'camoco', version = find_version('camoco','__init__.py'), packages = find_packages(), scripts = [ 'camoco/cli/camoco' ], ext_modules = [pccup,refgendist], cmdclass = { }, package_data = { '':['*.cyx'] }, setup_requires = [ # Setuptools 18.0 properly handles Cython extensions. 'setuptools>=18.0', #'numpy==1.14.5', 'cython', ], # include_dirs=['camoco/include'], install_requires = [ 'minus80>=0.1.5', 'cython>=0.16', 'igraph>=0.1.11', 'pyyaml>=3.12', 'matplotlib>=2.0.0', 'numpy>=1.12.0', 'scipy>=1.1.0', 'pandas>=0.19.2', 'scikit-learn>=0.18.1', 'statsmodels>=0.8.0', 'termcolor>=1.1.0', 'powerlaw>=1.3.5', 'flask>=0.12.2', #'apsw', #'minus80', ], dependency_links = [ #'git+https://github.com/LinkageIO/Minus80' #'git+https://github.com/rogerbinns/apsw' ], include_package_data=True, author = 'Rob Schaefer', author_email = 'rob@linkgae.io', description = 'Library for Co-Analysis of Molecular Componenets.', license = "Copyright Linkage Analytics 2017, Available under the MIT License", url = 'https://github.com/schae234/camoco' )
Python
0.000001
@@ -1801,24 +1801,65 @@ k%3E=0.12.2',%0A + 'markov-clustering%3E=0.0.3.dev0',%0A #'ap
a26e023272b3b99cfa7578dcaa8570b8e451e03b
switch to pyannote.algorithms 0.8
setup.py
setup.py
#!/usr/bin/env python # encoding: utf-8 # The MIT License (MIT) # Copyright (c) 2015-2018 CNRS # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # The above copyright notice and this permission notice shall be included in # all copies or substantial portions of the Software. # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. # AUTHORS # Herve BREDIN - http://herve.niderb.fr from setuptools import setup, find_packages import versioneer setup( # package namespace_packages=['pyannote'], packages=find_packages(), scripts=[ "scripts/pyannote-structure.py", "scripts/pyannote-face.py" ], install_requires=[ 'pyannote.core >= 1.3.1', 'pyannote.algorithms >= 0.7.3', 'numpy >= 1.8', 'docopt >= 0.6.2', 'tqdm >= 4.23.2', 'dlib == 19.12', 'opencv-python == 3.4.1.15', 'munkres >= 1.0.7', 'moviepy == 0.2.3.4', 'pandas >= 0.20.3', ], version=versioneer.get_version(), cmdclass=versioneer.get_cmdclass(), # PyPI name='pyannote.video', description=('Video processing (including face detection, tracking, and clustering)'), author='Herve Bredin', author_email='bredin@limsi.fr', url='http://herve.niderb.fr/', classifiers=[ "Development Status :: 4 - Beta", "Intended Audience :: Science/Research", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Scientific/Engineering" ], )
Python
0.000002
@@ -1541,11 +1541,9 @@ = 0. -7.3 +8 ',%0A
5ffa6281781215a165256b6bd57aea25e63b9902
bump version
setup.py
setup.py
#!/usr/bin/env python from distutils.core import setup for cmd in ('egg_info', 'develop'): import sys if cmd in sys.argv: from setuptools import setup version='0.3' setup( name='port-for', version=version, author='Mikhail Korobov', author_email='kmike84@gmail.com', packages=['port_for'], scripts=['scripts/port-for'], url='https://github.com/kmike/port-for/', license = 'MIT license', description = """Utility that helps with local TCP ports managment. It can find an unused TCP localhost port and remember the association.""", long_description = open('README.rst').read(), classifiers=[ 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'Intended Audience :: System Administrators', 'License :: OSI Approved :: MIT License', 'Programming Language :: Python', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.5', 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.2', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Operating System :: POSIX', 'Topic :: System :: Installation/Setup', 'Topic :: System :: Systems Administration', 'Topic :: Internet :: WWW/HTTP :: Site Management', ], )
Python
0
@@ -174,16 +174,18 @@ ion='0.3 +.1 '%0A%0Asetup
2d78c50ca67b2a7434bd074b7246f1213567b8af
Version 0.1.1 ready t ship.
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup, find_packages import os requirements = open(os.path.join(os.path.dirname(__file__), 'requirements.txt')).read() test_requirements = open(os.path.join(os.path.dirname(__file__), 'test_requirements.txt')).read() setup( name='Flask-Breathalyzer', version='0.1.0', license='BSD', url='https://github.com/mindflayer/flask-breathalyzer', author='Giorgio Salluzzo', author_email='giorgio.salluzzo@gmail.com', description='Flask module for submitting timings and exceptions to Datadog.', packages=find_packages(exclude=('tests',)), classifiers=[ 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'Intended Audience :: System Administrators', 'Operating System :: OS Independent', 'Framework :: Flask', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.2', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'License :: OSI Approved :: BSD License', 'Programming Language :: Python', 'Topic :: Software Development', ], test_suite='runtests.runtests', platforms='any', install_requires=requirements, tests_require=test_requirements, extras_require={ 'datadog': ('datadog',), }, )
Python
0
@@ -313,17 +313,17 @@ on='0.1. -0 +1 ',%0A l
16364ea9a1e7f0c0a79b2c6dbef71733dad89285
Bump version
setup.py
setup.py
from setuptools import setup, find_packages setup( name="cpgintegrate", version="0.0.1", packages=find_packages(), include_package_data=True, install_requires=[ 'requests>=2.10', 'lxml>=3', 'pandas>=0.18.1', 'xlrd', 'walrus', ] )
Python
0
@@ -85,19 +85,19 @@ sion=%220. -0.1 +1.0 %22,%0A p
a96b2e468f7e2e61ba451e2fedccef21f3047ff2
Set the root factory
usingnamespace/__init__.py
usingnamespace/__init__.py
import logging log = logging.getLogger(__name__) from pyramid.config import Configurator from pyramid.session import UnencryptedCookieSessionFactoryConfig from pyramid.authentication import AuthTktAuthenticationPolicy from pyramid.authorization import ACLAuthorizationPolicy from sqlalchemy import engine_from_config from sqlalchemy.exc import DBAPIError from models import DBSession required_settings = [ 'pyramid.secret.session', 'pyramid.secret.auth', 'usingnamespace.upload_path', ] def main(global_config, **settings): """ This function returns a Pyramid WSGI application. """ engine = engine_from_config(settings, 'sqlalchemy.') DBSession.configure(bind=engine) config = Configurator(settings=settings) do_start = True for _req in required_settings: if _req not in settings: log.error('{} is not set in configuration file.'.format(_req)) do_start = False if do_start is False: log.error('Unable to start due to missing configuration') exit(-1) # Create the session factory, we are using the stock one _session_factory = UnencryptedCookieSessionFactoryConfig( settings['pyramid.secret.session'], cookie_httponly=True, cookie_max_age=864000 ) # Create the authentication policy, we are using a stock one _authn_policy = AuthTktAuthenticationPolicy( settings['pyramid.secret.auth'], max_age=864000, http_only=True, debug=True, hashalg='sha512', callback=lambda x, y: 0, ) # The stock standard authorization policy will suffice for our needs _authz_policy = ACLAuthorizationPolicy() config.set_session_factory(_session_factory) config.set_authentication_policy(_authn_policy) config.set_authorization_policy(_authz_policy) config.include(add_routes) config.include(add_views) config.include(add_events) # Set-up deform so that it uses bootstrap config.include('deform_bootstrap') # Add in pyramid_mailer for sending out emails config.include('pyramid_mailer') return config.make_wsgi_app() def add_routes(config): config.add_static_view('static', 'static', cache_max_age=3600) config.add_static_view('deform_static', 'deform:static', cache_max_age=3600) config.add_static_view('files', config.registry.settings['usingnamespace.upload_path'], cache_max_age=3600) config.add_route('uns.home', '/') # Set up the routes for "archive" urls. year/month/day config.add_route('uns.year.month.day.title', '/{year:\d{4}}/{month:\d{2}}/{day:\d{2}}/{title}/', pregenerator=route_zero_extend_month_day) config.add_route('uns.year.month.day', '/{year:\d{4}}/{month:\d{2}}/{day:\d{2}}/', pregenerator=route_zero_extend_month_day) config.add_route('uns.year.month', '/{year:\d{4}}/{month:\d{2}}/', pregenerator=route_zero_extend_month_day) config.add_route('uns.year', '/{year:\d{4}}/') # Set up routes for tags config.add_route('uns.tag', '/tag/{tagname}/') config.add_route('uns.tagnoname', '/tag/') config.add_route('uns.tags', '/tags/') # Backwards compatible routes. Blogofile created these. May end up keeping them. config.add_route('uns.home.pagenonum', '/page/') config.add_route('uns.home.page', '/page/{num:\d+}/') # Management routes config.add_route('uns.management', '/manage/') config.add_route('uns.management.posts', '/manage/posts/') def add_views(config): config.add_view('usingnamespace.views.home.home', route_name='uns.home', renderer='chronological.mako') config.add_view('usingnamespace.views.home.redirhome', route_name='uns.home.pagenonum') config.add_view('usingnamespace.views.archive.article', route_name='uns.year.month.day.title', renderer='permapage.mako') config.add_view('usingnamespace.views.archive.ymd_list', route_name='uns.year.month.day', renderer='chronological.mako') config.add_view('usingnamespace.views.archive.ym_list', route_name='uns.year.month', renderer='chronological.mako') config.add_view('usingnamespace.views.archive.y_list', route_name='uns.year', renderer='yearly.mako') # Error pages #config.add_view('usingnamespace.views.errors.db_failed', context=DBAPIError, renderer='db_failed.mako') # Add a slash if the view has not been found. config.add_notfound_view('usingnamespace.views.errors.not_found', renderer='not_found.mako', append_slash=True) def add_events(config): config.add_subscriber('usingnamespace.events.view_helpers.view_helpers', 'pyramid.events.BeforeRender') def route_zero_extend_month_day(request, elements, kw): if 'day' in kw: kw['day'] = "{0:02d}".format(kw['day']) if 'month' in kw: kw['month'] = "{0:02d}".format(kw['month']) return elements, kw
Python
0.000023
@@ -757,16 +757,52 @@ settings +, root_factory='.traversal.MainRoot' )%0A%0A d
57587e536edd06682abcad1b2256358df3f874cc
Fix python3 compability for release check. Make sure we can run release check on shallow clone
setup.py
setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import re from setuptools import setup, find_packages, Command readme = open('README.rst').read() history = open('HISTORY.rst').read().replace('.. :changelog:', '') def read_reqs(name): with open(os.path.join(os.path.dirname(__file__), name)) as f: return [line for line in f.read().split('\n') if line and not line.strip().startswith('#')] def read_version(): with open(os.path.join('lib', 'tri/form', '__init__.py')) as f: m = re.search(r'''__version__\s*=\s*['"]([^'"]*)['"]''', f.read()) if m: return m.group(1) raise ValueError("couldn't find version") class Tag(Command): user_options = [] def initialize_options(self): pass def finalize_options(self): pass def run(self): from subprocess import call version = read_version() errno = call(['git', 'tag', '--annotate', version, '--message', 'Version %s' % version]) if errno == 0: print("Added tag for version %s" % version) raise SystemExit(errno) class ReleaseCheck(Command): user_options = [] def initialize_options(self): pass def finalize_options(self): pass def run(self): from subprocess import check_output tag = check_output(['git', 'describe', 'HEAD']).strip() version = read_version() if tag != version: print('Missing %s tag on release' % version) raise SystemExit(1) current_branch = check_output(['git', 'rev-parse', '--abbrev-ref', 'HEAD']).strip() if current_branch != 'master': print('Only release from master') raise SystemExit(1) print("Ok to distribute files") # NB: _don't_ add namespace_packages to setup(), it'll break # everything using imp.find_module setup( name='tri.form', version=read_version(), description='tri.form is a form library', long_description=readme + '\n\n' + history, author='Anders Hovmöller', author_email='anders.hovmoller@trioptima.com', url='https://github.com/TriOptima/tri.form', packages=find_packages('lib'), package_dir={'': 'lib'}, include_package_data=True, install_requires=['Django >= 1.8'] + read_reqs('requirements.txt'), license="BSD", zip_safe=False, keywords='tri.form', classifiers=[ 'Development Status :: 5 - Production/Stable', '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.6', ], test_suite='tests', cmdclass={'tag': Tag, 'release_check': ReleaseCheck}, )
Python
0
@@ -1309,17 +1309,54 @@ k_output -%0A +, CalledProcessError%0A try:%0A @@ -1402,32 +1402,103 @@ 'HEAD'%5D).strip() +.decode('utf8')%0A except CalledProcessError:%0A tag = '' %0A version @@ -1723,16 +1723,31 @@ .strip() +.decode('utf8') %0A
f83dc5e92969e1585515329300436b03ff465325
Make brightness a parameter
tree.py
tree.py
from blinkstick import blinkstick from time import sleep from random import randint from datetime import datetime, time, timedelta import requests import logging RED = (255, 0, 0) WHITE = (255, 255, 255) STANDUP_TIME = time(11, 45) def random_colours(max_rgb): while True: yield randint(0, max_rgb), randint(0, max_rgb), randint(0, max_rgb) def christmas_colours(max_rgb): colours = ((max_rgb, 0, 0), (0, max_rgb, 0), (0, 0, max_rgb)) while True: yield colours[randint(0, len(colours) - 1)] def morph(colours, steps=100): r_start, g_start, b_start = 0, 0, 0 for r_end, g_end, b_end in colours: yield (r_start, g_start, b_start) for n in range(1, steps): d = 1.0 * n / steps r = (r_start * (1 - d)) + (r_end * d) g = (g_start * (1 - d)) + (g_end * d) b = (b_start * (1 - d)) + (b_end * d) yield (r, g, b) r_start, g_start, b_start = r_end, g_end, b_end def flash(colour, speed=20): def colours(): while True: yield 0, 0, 0 yield colour return morph(colours(), speed) def single_colour(colour): while True: yield colour class BuildStatus(object): def __init__(self, branch): self.url = 'http://buildbot.eng.velocix.com/cgi-bin/results.py?page=recentbuilds&type=json&branch=%s&limit=1' % branch self.last_poll = datetime(1970, 1, 1) self.build_info = {} def failing(self): time_since_last_poll = datetime.now() - self.last_poll if time_since_last_poll.seconds > 300: logging.info("Polling build") try: self.build_info = requests.get(self.url).json()[0] logging.info("Build status: %s", self.build_info) except requests.exceptions.ConnectionError: logging.exception("Unable to connect to buildbot for build status") self.last_poll = datetime.now() return self.build_info.get('result', 0) != 0 class Tree(object): def __init__(self, led_count=10): self.bstick = None self.led_count = led_count self.colours = [morph(christmas_colours(20)) for _ in range(led_count)] self.red_flash = [flash(RED) for _ in range(led_count)] self.red = [single_colour((20, 0, 0)) for _ in range(led_count)] self.white_flash = [flash(WHITE) for _ in range(led_count)] self.alert_since = None self.build = BuildStatus('raptor') def connect(self): self.bstick = blinkstick.BlinkStickPro(r_led_count=self.led_count) self.bstick.connect() def alert(self): alert_condition = self.build.failing() if alert_condition and self.alert_since is None: self.alert_since = datetime.now() if not alert_condition and self.alert_since is not None: self.alert_since = None return alert_condition def alert_duration(self): if self.alert_since is None: return timedelta() return datetime.now() - self.alert_since def alarm(self): now = datetime.now().time() alarm_active = (STANDUP_TIME.hour == now.hour and STANDUP_TIME.minute == now.minute) if alarm_active: logging.warning("Alarm: Daily Stand-Up") return alarm_active def select_colours(self): if self.alert(): if self.alert_duration().seconds < 10: return self.red_flash return self.red if self.alarm(): return self.white_flash return self.colours def loop(self): try: while True: colours = self.select_colours() for index in range(self.led_count): r, g, b = next(colours[index]) self.bstick.set_color(channel=0, index=index, r=r, g=g, b=b) self.bstick.send_data_all() sleep(0.01) finally: if self.bstick: self.bstick.off() def main(): logging.basicConfig(level=logging.INFO) tree = Tree() tree.connect() tree.loop() if __name__ == '__main__': main()
Python
0.000804
@@ -2081,16 +2081,31 @@ count=10 +, brightness=20 ):%0A @@ -2209,18 +2209,26 @@ colours( -20 +brightness )) for _
2ba600bced29cc029707f3817e7bc7e0aefb095d
Version 1.7.2.
setup.py
setup.py
#-*-Mode:python;coding:utf-8;tab-width:4;c-basic-offset:4;indent-tabs-mode:()-*- # ex: set ft=python fenc=utf-8 sts=4 ts=4 sw=4 et: import setuptools from distutils.core import setup, Command, Extension class PyTest(Command): user_options = [] def initialize_options(self): pass def finalize_options(self): pass def run(self): import tests.erlang_tests import unittest suite = unittest.TestSuite() suite.addTests(tests.erlang_tests.get_suite()) unittest.TextTestRunner().run(suite) setup( name='erlang_py', py_modules=['erlang'], cmdclass = {'test': PyTest}, license='MIT', classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Programming Language :: Python :: 3', 'Programming Language :: Erlang', 'Topic :: Software Development :: Libraries :: Python Modules', 'Topic :: System :: Distributed Computing', ], version='1.7.1', description='Erlang Binary Term Format for Python', author='Michael Truog', author_email='mjtruog@gmail.com', url='https://github.com/okeuday/erlang_py', )
Python
0
@@ -1148,17 +1148,17 @@ on='1.7. -1 +2 ',%0A d
ebdaac2211b3fff048b421b07ddfd20a0b162683
add description
setup.py
setup.py
import os from setuptools import setup here = os.path.abspath(os.path.dirname(__file__)) with open(os.path.join(here, 'README.rst')) as f: README = f.read() with open(os.path.join(here, 'CHANGES.txt')) as f: CHANGES = f.read() install_requires = [ 'babel', 'pyramid', 'pytz', ] tests_require = install_requires + [ 'nose', 'webtest', ] setup( name='djed.formatter', version='0.1.dev0', description='djed.formatter', long_description='\n\n'.join([README, CHANGES]), classifiers=[ "Framework :: Pyramid", "Intended Audience :: Developers", "License :: OSI Approved :: ISC License (ISCL)", "Programming Language :: Python", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Topic :: Internet :: WWW/HTTP", ], author='Djed developers', author_email='djedproject@googlegroups.com', url='https://github.com/djedproject/djed.formatter', license='ISC License (ISCL)', keywords='web pyramid pylons', packages=['djed.formatter'], include_package_data=True, install_requires=install_requires, extras_require={ 'testing': tests_require, }, test_suite='nose.collector', )
Python
0.000004
@@ -438,30 +438,46 @@ iption=' -djed.formatter +Formatting helpers for pyramid ',%0A l
71a8ba9fef93a9918f71852d2dbb7a023583d017
Fix setup.py
setup.py
setup.py
from setuptools import setup setup( name='python-ev3dev', version='0.0.1', description='Python language bindings for ev3dev', author='Ralph Hempel', license='MIT', url='https://github.com/rhempel/ev3dev-lang-python', include_package_data=True, packages=['ev3dev'] )
Python
0.000484
@@ -271,21 +271,23 @@ e,%0A p -ackag +y_modul es=%5B'ev3
14adcaa2f7b01695ca7a975cc4c0de8602f25cc6
Bump version
setup.py
setup.py
from setuptools import setup with open("README.md", "r") as fh: long_description = fh.read() config = { 'name': 'timew-report', 'version': '1.3.0', 'description': 'An interface for TimeWarrior report data', 'long_description': long_description, 'long_description_content_type': 'text/markdown', 'url': 'https://github.com/lauft/timew-report.git', 'author': 'Thomas Lauf', 'author_email': 'Thomas.Lauf@tngtech.com', 'license': 'MIT License', 'classifiers': [ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'Topic :: Utilities', 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Programming Language :: Python :: 3.4', ], 'keywords': 'timewarrior taskwarrior time-tracking', 'packages': ['timewreport'], 'install_requires': ['python-dateutil'], } setup(**config)
Python
0
@@ -155,9 +155,9 @@ 1.3. -0 +1 ',%0A
aaa094dd48e99d36a9dd9db513063b11cb86f92a
Bump version to 1.4
setup.py
setup.py
import os from setuptools import find_packages, setup with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme: README = readme.read() setup( name='django-postgres-extra', version='1.3', packages=find_packages(), include_package_data=True, license='MIT License', description='Bringing all of PostgreSQL\'s awesomeness to Django.', long_description=README, url='https://github.com/SectorLabs/django-postgres-extra', author='Sector Labs', author_email='open-source@sectorlabs.ro', keywords=['django', 'postgres', 'extra', 'hstore', 'ltree'], classifiers=[ 'Environment :: Web Environment', 'Framework :: Django', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Programming Language :: Python :: 3.5', 'Topic :: Internet :: WWW/HTTP', 'Topic :: Internet :: WWW/HTTP :: Dynamic Content', ] )
Python
0
@@ -209,17 +209,17 @@ sion='1. -3 +4 ',%0A p
3c411b1bf016ce1b216ab7ad547c85862ab2519b
Add brackets around print() for python 3 compatibility
setup.py
setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup import re import os import sys name = 'rest_condition' package = 'rest_condition' description = 'Complex permissions flow for django-rest-framework' url = 'https://github.com/caxap/rest_condition' author = 'Maxim Kamenkov' author_email = 'mkamenkov@gmail.com' license = 'MIT' keywords = 'django, rest, restframework, permissions' classifiers = [ 'Development Status :: 3 - Alpha', 'Framework :: Django', 'Environment :: Web Environment', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Topic :: Software Development :: Libraries', ] install_requires = [ 'django >= 1.3', 'djangorestframework', ] def get_version(package): """ Return package version as listed in `__version__` in `init.py`. """ init_py = open(os.path.join(package, '__init__.py')).read() return re.search("^__version__ = ['\"]([^'\"]+)['\"]", init_py, re.MULTILINE).group(1) def get_packages(package): """ Return root package and all sub-packages. """ return [dirpath for dirpath, dirnames, filenames in os.walk(package) if os.path.exists(os.path.join(dirpath, '__init__.py'))] def get_package_data(package): """ Return all files under the root package, that are not in a package themselves. """ walk = [(dirpath.replace(package + os.sep, '', 1), filenames) for dirpath, dirnames, filenames in os.walk(package) if not os.path.exists(os.path.join(dirpath, '__init__.py'))] filepaths = [] for base, filenames in walk: filepaths.extend([os.path.join(base, filename) for filename in filenames]) return {package: filepaths} if sys.argv[-1] == 'publish': os.system('python setup.py sdist upload') args = {'version': get_version(package)} print "You probably want to also tag the version now:" print " git tag -a %(version)s -m 'version %(version)s'" % args print " git push --tags" sys.exit() setup( name=name, version=get_version(package), url=url, license=license, description=description, author=author, author_email=author_email, packages=get_packages(package), package_data=get_package_data(package), install_requires=install_requires, classifiers=classifiers )
Python
0.000009
@@ -1988,17 +1988,17 @@ print - +( %22You pro @@ -2037,16 +2037,17 @@ on now:%22 +) %0A pri @@ -2044,25 +2044,25 @@ %22)%0A print - +( %22 git tag - @@ -2107,16 +2107,17 @@ %22 %25 args +) %0A pri @@ -2118,17 +2118,17 @@ print - +( %22 git p @@ -2138,16 +2138,17 @@ --tags%22 +) %0A sys
17b070cac7f0886ea587c1ed459068071198af0a
Add pytest-mock to setup.py
setup.py
setup.py
#!/usr/bin/env python import os import sys from setuptools import setup, find_packages from will import __name__ as PACKAGE_NAME from will import VERSION DESCRIPTION = "A friendly python hipchat bot" ROOT_DIR = os.path.dirname(__file__) SOURCE_DIR = os.path.join(ROOT_DIR) REQS_DIR = os.path.join(ROOT_DIR, "will", "requirements") install_requires = [] dependency_links = [] with open("requirements.txt", "r+") as f: for line in f.readlines(): if line[0] == "-": continue install_requires.append(line.strip()) for req_file in ["base.txt", "slack.txt", "hipchat.txt", "rocketchat.txt"]: with open(os.path.join(REQS_DIR, req_file), "r+") as f: for line in f.readlines(): if ( (line.startswith("-") and not line.startswith("-e")) or line.startswith("#") ): continue if "-e" in line: line = line.replace("-e", "") dependency_links.append(line) line = line.split("#")[-1].split("=")[-1] install_requires.append(line.strip()) tests_require = [ 'pytest', 'pytest-cov', 'pytest-runner', 'mock', 'freezegun' ] setup_requires = [] needs_pytest = set(('pytest', 'test', 'ptr')).intersection(sys.argv) if needs_pytest: setup_requires.append('pytest-runner') try: import pypandoc long_description = pypandoc.convert('README.md', 'rst') except (IOError, ImportError, OSError, RuntimeError): try: import os long_description = open(os.path.join(os.path.dirname(__file__), 'README.md')).read() except: long_description = DESCRIPTION + '\n' setup( name=PACKAGE_NAME, description=DESCRIPTION, long_description=long_description, author="Steven Skoczen", author_email="skoczen@gmail.com", url="https://github.com/skoczen/will", version=VERSION, download_url=['https://github.com/skoczen/will/tarball/%s' % VERSION, ], install_requires=install_requires, dependency_links=dependency_links, setup_requires=setup_requires, tests_require=tests_require, packages=find_packages(), include_package_data=True, keywords=["chatbot", "bot", "ai", "slack", "hipchat", "rocketchat", "stride"], classifiers=[ "Programming Language :: Python", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Development Status :: 4 - Beta", "Environment :: Web Environment", "Intended Audience :: Developers", "Topic :: Internet :: WWW/HTTP", "Topic :: Communications :: Chat", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Scientific/Engineering :: Artificial Intelligence", "Framework :: Robot Framework", "Framework :: Robot Framework :: Library", "Framework :: Robot Framework :: Tool", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3", ], entry_points={ 'console_scripts': ['generate_will_project = will.scripts.generate_will_project:main'], }, )
Python
0.000001
@@ -1126,16 +1126,28 @@ ire = %5B%0A + 'mock',%0A 'pyt @@ -1192,24 +1192,31 @@ nner',%0A ' +pytest- mock',%0A '
c5e40282485720c13c32efae49d3b2f25edcb970
Work on relative file names
tests/base/test_tensor_io.py
tests/base/test_tensor_io.py
from __future__ import print_function import numpy as np import unittest import os import discretize try: import vtk except ImportError: has_vtk = False else: has_vtk = True class TestTensorMeshIO(unittest.TestCase): def setUp(self): h = np.ones(16) mesh = discretize.TensorMesh([h, 2*h, 3*h]) self.mesh = mesh def test_UBCfiles(self): mesh = self.mesh # Make a vector vec = np.arange(mesh.nC) # Write and read mesh.writeUBC('temp.msh', {'arange.txt': vec}) meshUBC = discretize.TensorMesh.readUBC('temp.msh') vecUBC = meshUBC.readModelUBC('arange.txt') # The mesh assert mesh.__str__() == meshUBC.__str__() assert np.sum(mesh.gridCC - meshUBC.gridCC) == 0 assert np.sum(vec - vecUBC) == 0 assert np.all(np.array(mesh.h) - np.array(meshUBC.h) == 0) vecUBC = mesh.readModelUBC('arange.txt') assert np.sum(vec - vecUBC) == 0 mesh.writeModelUBC('arange2.txt', vec + 1) vec2UBC = mesh.readModelUBC('arange2.txt') assert np.sum(vec + 1 - vec2UBC) == 0 print('IO of UBC tensor mesh files is working') os.remove('temp.msh') os.remove('arange.txt') os.remove('arange2.txt') def test_read_ubc_mesh(self): mesh = discretize.TensorMesh.readUBC('ubc_tensor_mesh.msh') assert mesh.nCx == 78 assert mesh.nCy == 50 assert mesh.nCz == 51 # spot check a few things in the file assert mesh.hx[0] == 55000 assert mesh.hy[0] == 70000 # The x0 is in a different place (-z) assert mesh.x0[-1] == 3000 - np.sum(mesh.hz) # the z axis is flipped assert mesh.hz[0] == 20000 assert mesh.hz[-1] == 250 if has_vtk: def test_VTKfiles(self): mesh = self.mesh vec = np.arange(mesh.nC) mesh.writeVTK('temp.vtr', {'arange.txt': vec}) meshVTR, models = discretize.TensorMesh.readVTK('temp.vtr') assert mesh.__str__() == meshVTR.__str__() assert np.all(np.array(mesh.h) - np.array(meshVTR.h) == 0) assert 'arange.txt' in models vecVTK = models['arange.txt'] assert np.sum(vec - vecVTK) == 0 print('IO of VTR tensor mesh files is working') os.remove('temp.vtr') if __name__ == '__main__': unittest.main()
Python
0.000001
@@ -1308,32 +1308,112 @@ ubc_mesh(self):%0A + fname = os.path.join(os.path.split(__file__)%5B0%5D, 'ubc_tensor_mesh.msh')%0A mesh = d @@ -1441,37 +1441,21 @@ readUBC( -'ubc_tensor_mesh.msh' +fname )%0A
f7060d983022438008a1de7f865d478bf266651c
add version classifiers
setup.py
setup.py
#!/usr/bin/env python3 from setuptools import setup setup( name='jenkins-job-manager', version='0.1.0', description='Generate job configuration files for Jenkins.', url='https://github.com/FunTimeCoding/jenkins-job-manager', author='Alexander Reitzel', author_email='funtimecoding@gmail.com', license='MIT', classifiers=[ 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'Topic :: Software Development :: Build Tools', 'License :: OSI Approved :: MIT License', ], install_requires=['lxml'], scripts=['bin/jjm'], packages=['jenkins_job_manager'], download_url='http://funtimecoding.org/jenkins-job-manager.tar.gz', )
Python
0.000001
@@ -540,16 +540,163 @@ cense',%0A + 'Programming Language :: Python :: 3.4',%0A 'Programming Language :: Python :: 3.5',%0A 'Programming Language :: Python :: 3.6',%0A %5D,%0A
7bab32ef89d760a8cf4aeb2700725ea88e3fc31c
Add further tests for class defining __hash__.
tests/basics/builtin_hash.py
tests/basics/builtin_hash.py
# test builtin hash function print(hash(False)) print(hash(True)) print({():1}) # hash tuple print({1 << 66:1}) # hash big int print(hash in {hash:1}) # hash function try: hash([]) except TypeError: print("TypeError") class A: def __hash__(self): return 123 def __repr__(self): return "a instance" print(hash(A())) print({A():1}) # all user-classes have default __hash__ class B: pass hash(B()) # if __eq__ is defined then default __hash__ is not used class C: def __eq__(self, another): return True try: hash(C()) except TypeError: print("TypeError") # __hash__ must return an int class D: def __hash__(self): return None try: hash(D()) except TypeError: print("TypeError")
Python
0
@@ -731,28 +731,296 @@ ror:%0A print(%22TypeError%22)%0A +%0A# __hash__ returning a bool should be converted to an int%0Aclass E:%0A def __hash__(self):%0A return True%0Aprint(hash(E()))%0A%0A# __hash__ returning a large number should be truncated%0Aclass F:%0A def __hash__(self):%0A return 1 %3C%3C 70 %7C 1%0Aprint(hash(F()) != 0)%0A
fab3072a32a2ee5f8317f7fc8301c470525ec6d8
update setup.py info
setup.py
setup.py
from __future__ import with_statement from setuptools import setup def get_version(): with open('itunesiap/version.txt') as f: return f.read().strip() def get_readme(): try: with open('README.rst') as f: return f.read().strip() except IOError: return '' setup( name='itunes-iap', version=get_version(), description='Itunes In-app purchase verification api.', long_description=get_readme(), author='Jeong YunWon', author_email='itunesiap@youknowone.org', url='https://github.com/youknowone/itunes-iap', packages=( 'itunesiap', ), package_data={ 'itunesiap': ['version.txt'] }, install_requires=[ 'requests', 'prettyexc>=0.5.1', 'six' ], classifiers=[ 'Intended Audience :: Developers', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.2', 'Programming Language :: Python :: 3.3', ], )
Python
0
@@ -319,16 +319,20 @@ name=' +tsl- itunes-i @@ -332,24 +332,24 @@ tunes-iap',%0A - version= @@ -474,20 +474,18 @@ or=' -Jeong YunWon +Ryan Pineo ',%0A @@ -505,32 +505,17 @@ il=' -itunesiap@youknowone.org +ry@tsl.io ',%0A @@ -545,18 +545,19 @@ com/ -youknowone +silverlogic /itu @@ -716,16 +716,20 @@ ests', ' +tsl- prettyex @@ -739,9 +739,9 @@ 0.5. -1 +2 ', ' @@ -1138,17 +1138,17 @@ on :: 3. -2 +3 ',%0A @@ -1179,31 +1179,31 @@ :: Python :: 3. -3 +4 ',%0A %5D,%0A)%0A%0A
1ae4aa4dd7fd77f323792fa6c7941dc525f93a15
Update core dependency to google-cloud-core >= 0.23.0, < 0.24dev. (#3028)
setup.py
setup.py
# Copyright 2016 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. import os from setuptools import find_packages from setuptools import setup PACKAGE_ROOT = os.path.abspath(os.path.dirname(__file__)) with open(os.path.join(PACKAGE_ROOT, 'README.rst')) as file_obj: README = file_obj.read() # NOTE: This is duplicated throughout and we should try to # consolidate. SETUP_BASE = { 'author': 'Google Cloud Platform', 'author_email': 'jjg+google-cloud-python@google.com', 'scripts': [], 'url': 'https://github.com/GoogleCloudPlatform/google-cloud-python', 'license': 'Apache 2.0', 'platforms': 'Posix; MacOS X; Windows', 'include_package_data': True, 'zip_safe': False, 'classifiers': [ 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'License :: OSI Approved :: Apache Software License', 'Operating System :: OS Independent', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Topic :: Internet', ], } REQUIREMENTS = [ 'google-cloud-core >= 0.22.1, < 0.23dev', ] setup( name='google-cloud-dns', version='0.22.0', description='Python Client for Google Cloud DNS', long_description=README, namespace_packages=[ 'google', 'google.cloud', ], packages=find_packages(), install_requires=REQUIREMENTS, **SETUP_BASE )
Python
0
@@ -1762,19 +1762,19 @@ 0.2 -2.1 +3.0 , %3C 0.2 -3 +4 dev'
108554d8366611658870e038b05049f4eb273d88
Bump version to 3.3m1
setup.py
setup.py
######## # Copyright (c) 2013 GigaSpaces Technologies Ltd. All rights reserved # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # * See the License for the specific language governing permissions and # * limitations under the License. from setuptools import setup setup( name='cloudify-rest-client', version='3.2', author='cosmo-admin', author_email='cosmo-admin@gigaspaces.com', packages=['cloudify_rest_client'], license='LICENSE', description='Cloudify REST client', install_requires=[ 'requests<=2.5.1', ] )
Python
0
@@ -722,17 +722,19 @@ sion='3. -2 +3a1 ',%0A a
d4b8a64dabe31d09b9e53bb42bae3fcd737d2984
Set license to 'MIT'
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup short_description = 'Robot Framework wrapper for faker, a fake test data generator' try: description = open('README.md').read() except IOError: description = short_description try: license = open('LICENSE').read() except IOError: license = 'MIT License' classifiers = """ Development Status :: 5 - Production/Stable License :: OSI Approved :: MIT License Operating System :: OS Independent Programming Language :: Python Programming Language :: Python :: 2 Programming Language :: Python :: 2.6 Programming Language :: Python :: 2.7 Topic :: Software Development :: Testing Topic :: Software Development :: Quality Assurance Framework :: Robot Framework """.strip().splitlines() setup( name='robotframework-faker', package_dir={'': 'robotframework-faker'}, packages=['FakerLibrary'], # this must be the same as the name above version='1.1', description=short_description, author='Guy Kisel', author_email='guy.kisel@gmail.com', url='https://github.com/guykisel/robotframework-faker', download_url='https://pypi.python.org/pypi/robotframework-faker', keywords='robotframework testing test automation testautomation atdd bdd faker', # arbitrary keywords install_requires=['fake-factory', 'robotframework'], long_description=description, license=license, classifiers=classifiers, platforms='any' )
Python
0.000008
@@ -1362,23 +1362,21 @@ license= -license +'MIT' ,%0A cl
1a2124a34a1b5b3fb8053c6fc254102acecdc942
Version 0.3
setup.py
setup.py
#! /usr/bin/env python # Copyright 2014-2015 Peter Williams <peter@newton.cx> # Licensed under the GNU General Public License version 3 or higher # I don't use the ez_setup module because it causes us to automatically build # and install a new setuptools module, which I'm not interested in doing. from setuptools import setup setup ( name = 'bibtools', version = '0.2.99', # This package actually *is* zip-safe, but I've run into issues with # installing it as a Zip: in particular, the install sometimes fails with # "bad local file header", and backtraces don't include source lines. # These are annoying enough and I don't really care so we just install it # as flat files. zip_safe = False, packages = ['bibtools', 'bibtools.hacked_bibtexparser'], install_requires = [ 'pwkit >= 0.6.0', 'six >= 1.9', ], package_data = { 'bibtools': ['*.sql', 'apj-issnmap.txt', 'defaults.cfg'], }, entry_points = { 'console_scripts': ['bib = bibtools.cli:commandline'], }, author = 'Peter Williams', author_email = 'peter@newton.cx', description = 'Command-line bibliography manager', license = 'GPLv3', keywords = 'bibliography', url = 'https://github.com/pkgw/bibtools/', )
Python
0.000001
@@ -40,9 +40,9 @@ -201 -5 +7 Pet @@ -375,12 +375,9 @@ '0. -2.99 +3 ',%0A%0A @@ -834,9 +834,9 @@ = 0. -6 +8 .0', @@ -858,9 +858,10 @@ = 1. -9 +10 ',%0A
05c767e689002dd79e306b9deacad42aeb9c436e
Allow setup.py to be used anywhere
setup.py
setup.py
from setuptools import setup from Cython.Build import cythonize import numpy as np __version__ = None exec(open('volpy/version.py').read()) setup( name='volpy', version=__version__, ext_modules=cythonize('volpy/*.pyx'), include_dirs=[np.get_include()], packages=['volpy'], include_package_data=True, description='A volume renderer for python', author='Paul Kilgo', author_email='paulkilgo@gmail.com', classifiers=[ 'Operating System :: POSIX', 'Programming Language :: Python :: 3', ], )
Python
0
@@ -75,16 +75,63 @@ py as np +%0Aimport os%0A%0Aos.chdir(os.path.dirname(__file__)) %0A%0A__vers
3c63a9c970663aeda2ad46ddf5a8ef6bacda824d
Version 1.0.0 of nexus-yplan on PyPI
setup.py
setup.py
#!/usr/bin/env python try: from setuptools import setup, find_packages except ImportError: from ez_setup import use_setuptools use_setuptools() from setuptools import setup, find_packages setup( name='nexus', version='0.3.1+yplan2', author='Disqus', author_email='opensource@disqus.com', url='https://github.com/disqus/nexus', description='An extendable admin interface', packages=find_packages(exclude=['example_module', 'tests']), zip_safe=False, install_requires=[], include_package_data=True, classifiers=[ 'Framework :: Django', 'Intended Audience :: Developers', 'Intended Audience :: System Administrators', 'Operating System :: OS Independent', 'Topic :: Software Development' ], )
Python
0
@@ -218,24 +218,30 @@ name='nexus +-yplan ',%0A versi @@ -248,20 +248,13 @@ on=' -0.3.1+yplan2 +1.0.0 ',%0A @@ -315,16 +315,82 @@ s.com',%0A + maintainer='YPlan',%0A maintainer_email='adam@yplanapp.com',%0A url= @@ -409,22 +409,21 @@ hub.com/ -disqus +yplan /nexus',
e34b9a4d2ba732563c150985f1a6a2e70285b24e
Add entry point pysswords script to setup
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup __version__ = "0.0.7" requirements = [pkg.strip() for pkg in open('requirements.txt').readlines()] with open("README.rst") as f: long_description = f.read() + '\n' setup( name='pysswords', version=__version__, license='License :: OSI Approved :: MIT License', description="Manage your login credentials from the terminal painlessly.", long_description=long_description, author='Marcwebbie', author_email='marcwebbie@gmail.com', url='https://github.com/marcwebbie/pysswords', scripts=["bin/pysswords"], download_url='https://pypi.python.org/pypi/pysswords', packages=['pysswords'], install_requires=requirements, test_suite='tests.test', classifiers=[ 'Development Status :: 2 - Pre-Alpha', 'Environment :: Console', 'Intended Audience :: End Users/Desktop', 'Natural Language :: English', 'Operating System :: OS Independent', 'Topic :: Security :: Cryptography', 'License :: OSI Approved :: MIT License', 'Programming Language :: Python', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.2', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', ], )
Python
0
@@ -565,39 +565,8 @@ s',%0A - scripts=%5B%22bin/pysswords%22%5D,%0A @@ -648,16 +648,132 @@ ords'%5D,%0A + entry_points=%7B%0A 'console_scripts': %5B%0A 'pysswords = pysswords.__main__:main',%0A %5D%0A %7D,%0A inst
957a8d4a1cecc1be1a804f3ef284d4c8eca4e18a
Bump version to 1.0
setup.py
setup.py
from setuptools import setup, find_packages setup( name='panoptes_client', url='https://github.com/zooniverse/panoptes-python-client', author='Adam McMaster', author_email='adam@zooniverse.org', version='0.10', packages=find_packages(), include_package_data=True, install_requires=[ 'requests>=2.4.2,<2.19', 'future>=0.16,<0.17', 'python-magic>=0.4,<0.5', ], extras_require={ 'testing': [ 'mock>=2.0,<2.1', ], 'docs': [ 'sphinx', ] } )
Python
0
@@ -218,19 +218,18 @@ ersion=' -0. 1 +. 0',%0A
0b24f8048fc7bf5a3fad1d0cf80c71ceaf29a740
version '5.66' -> '5.69'
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup setup( name='py-vkontakte', version='5.66.0', packages=['vk'], url='https://github.com/sgaynetdinov/py-vkontakte', license='MIT License', author='Sergey Gaynetdinov', author_email='s.gaynetdinov@gmail.com', description='Python API wrapper around vk.com API', long_description=open('README.md').read(), keywords='vk.com, vk, vkontakte, vk api', classifiers=[ 'License :: OSI Approved :: MIT License', 'Programming Language :: Python', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: Implementation :: PyPy', 'Programming Language :: Python :: Implementation :: CPython', 'Topic :: Software Development :: Libraries :: Python Modules', ], )
Python
0.000002
@@ -93,17 +93,17 @@ ion='5.6 -6 +9 .0',%0A
a291fda73b8a636fbc12578d4d23674e10aa6a32
Remove unnecessary "import os" line
util.py
util.py
import decimal import os from functools import lru_cache from itertools import cycle, tee from random import SystemRandom from sha1.sha1 import Sha1Hash try: # Python 3.5 from math import gcd except ImportError: # older Python versions from fractions import gcd random = SystemRandom() # prime number specified for 1536-bit modular exponential group in RFC # at https://datatracker.ietf.org/doc/rfc3526/?include_text=1. Used for # Diffie-Hellman and SRP. IETF_PRIME = int("ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67c" "c74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356" "d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5a" "e9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd2" "4cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746" "c08ca237327ffffffffffffffff", 16) def xor_bytes(*bytes_objects): lengths = [len(b) for b in bytes_objects] if len(set(lengths)) > 1: raise ValueError("inputs must be of equal length") result = bytearray([0]) * lengths[0] for b in bytes_objects: for i, byte in enumerate(b): result[i] ^= byte return bytes(result) def xor_encrypt(input_bytes, key): return bytes(a ^ b for a, b in zip(input_bytes, cycle(key))) def chunks(x, chunk_size=16): return [x[i : i + chunk_size] for i in range(0, len(x), chunk_size)] def sliding_pairs(iterable): # pairwise recipe from https://docs.python.org/3/library/itertools.html a, b = tee(iterable) next(b, None) return zip(a, b) def int_to_bytes(x): return x.to_bytes(length=(x.bit_length() // 8) + 1, byteorder="big") def pkcs7_pad(input_bytes, block_size=16): padding_length = -len(input_bytes) % block_size if padding_length == 0: padding_length = block_size return input_bytes + bytes([padding_length] * padding_length) def pkcs7_unpad(ciphertext, block_size=16): padding_length = ciphertext[-1] expected_padding = bytes([padding_length]) * padding_length padding = ciphertext[-padding_length:] if padding_length > block_size or padding != expected_padding: raise ValueError("Invalid padding") return ciphertext[:-padding_length] def sha1(message): return Sha1Hash().update(message) def calculate_hmac(key, message, hash_fn=sha1): key_hash = hash_fn(key).digest() o_key_pad = xor_encrypt(key_hash, b"\x5c") i_key_pad = xor_encrypt(key_hash, b"\x36") return hash_fn(o_key_pad + hash_fn(i_key_pad + message).digest()).digest() get_hmac = lru_cache()(calculate_hmac) def extended_gcd(a, b): """Extended Euclidean algorithm. Return a tuple of numbers (g, x, y) such that ax + by == g == gcd(a, b). """ if a == 0: return (b, 0, 1) else: g, y, x = extended_gcd(b % a, a) return (g, x - (b // a) * y, y) def mod_inv(a, m): """Return the integer x such that (a * x) % m == 1.""" g, x, _ = extended_gcd(a, m) if g != 1: raise ValueError("modular inverse does not exist") else: return x % m def big_int_cube_root(x): """Return the cube root of the given number. This works with integers that would cause OverflowErrors when trying to calculate the cube root the more straightforward way (x ** (1/3)). It seems to reliably return the result with enough precision that cubing it and rounding the cube produces the original number, although I don't yet have any rigorous proof of this. """ with decimal.localcontext() as context: # Guesstimate as to how much precision is needed to get the right result context.prec = len(str(x)) // 3 + 4 return decimal.Decimal(x) ** (decimal.Decimal(1) / decimal.Decimal(3))
Python
0.000516
@@ -11,18 +11,8 @@ imal -%0Aimport os %0A%0Afr
87ba6c0368fe179c8c838466948234f2a5254395
Fix loose deps
setup.py
setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- try: import setuptools except ImportError: import distutils.core as setuptools import os import re import sys ver = sys.version_info # XXX as ugly as this looks, namespaces break terribly otherwise filename = './docker_registry/server/__init__.py' exec(compile(open(filename, 'rb').read(), filename, 'exec')) requirements_txt = open('./requirements/main.txt') requirements = [line for line in requirements_txt] if ver < (3, 0): # Python 2 requires lzma backport requirements.insert(0, 'backports.lzma>=0.0.2,!=0.0.4') if ver < (2, 7): # Python 2.6 requires additional libraries requirements.insert(0, 'argparse>=1.2.1') requirements.insert(0, 'importlib>=1.0.3') # Using this will relax dependencies to semver major matching if 'DEPS' in os.environ and os.environ['DEPS'].lower() == 'loose': loose = [] for item in requirements: d = re.match(r'([^=]+)==([0-9]+)[.]([0-9]+)[.]([0-9]+)', item) if d: d = list(d.groups()) name = d.pop(0) version = d.pop(0) item = '%s>=%s,<%s' % (name, int(version), int(version) + 1) loose.insert(0, item) requirements = loose # Require core (the reason this is out of req.txt is to ease tox) requirements.insert(0, 'docker-registry-core>=2,<3') # Explicit packages list to avoid setup_tools funkyness packages = ['docker_registry', 'docker_registry.drivers', 'docker_registry.server', 'docker_registry.lib', 'docker_registry.storage', 'docker_registry.lib.index'] namespaces = ['docker_registry', 'docker_registry.drivers'] package_data = {'docker_registry': ['../config/*']} setuptools.setup( name=__title__, # noqa version=__version__, # noqa author=__author__, # noqa author_email=__email__, # noqa maintainer=__maintainer__, # noqa maintainer_email=__email__, # noqa url=__url__, # noqa description=__description__, # noqa download_url=__download__, # noqa long_description=open('./README.md').read(), namespace_packages=namespaces, packages=packages, package_data=package_data, entry_points={ 'console_scripts': [ 'docker-registry = docker_registry.run:run_gunicorn' ] }, classifiers=['Development Status :: 4 - Beta', 'Intended Audience :: Developers', # 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', # 'Programming Language :: Python :: 3.2', # 'Programming Language :: Python :: 3.3', # 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: Implementation :: CPython', 'Operating System :: OS Independent', 'Topic :: Utilities', 'License :: OSI Approved :: Apache Software License'], platforms=['Independent'], license=open('./LICENSE').read(), zip_safe=False, test_suite='nose.collector', install_requires=requirements, tests_require=open('./requirements/test.txt').read(), extras_require={ 'bugsnag': ['bugsnag>=2.0,<2.1'], 'newrelic': ['newrelic>=2.22,<2.23'], } )
Python
0
@@ -565,15 +565,15 @@ lzma -%3E += =0.0. -2 +3 ,!=0 @@ -691,17 +691,17 @@ argparse -%3E += =1.2.1') @@ -742,17 +742,17 @@ mportlib -%3E += =1.0.3') @@ -970,32 +970,35 @@ -9%5D+)%5B.%5D(%5B0-9%5D+) +(?: %5B.%5D(%5B0-9%5D+)', it @@ -992,16 +992,22 @@ (%5B0-9%5D+) +)?(.*) ', item) @@ -1105,32 +1105,58 @@ sion = d.pop(0)%0A + add = d.pop()%0A item @@ -1169,16 +1169,18 @@ %3E=%25s,%3C%25s +%25s ' %25 (nam @@ -1212,16 +1212,21 @@ ion) + 1 +, add )%0A
872325589f6ab83f27170eaef01021f0b5b5359d
When run under nose, generated name is not necessarily _STD_ANON_1
tests/drivers/test-facets.py
tests/drivers/test-facets.py
import pyxb.binding.generate import pyxb.utils.domutils from xml.dom import Node import os.path schema_path = '%s/../schemas/test-facets.xsd' % (os.path.dirname(__file__),) code = pyxb.binding.generate.GeneratePython(schema_file=schema_path) rv = compile(code, 'test', 'exec') eval(rv) from pyxb.exceptions_ import * import unittest class TestFacets (unittest.TestCase): def testQuantity (self): xml = '<quantity>35</quantity>' instance = CreateFromDOM(pyxb.utils.domutils.StringToDOM(xml).documentElement) self.assertEqual(35, instance.content()) self.assertEqual(_STD_ANON_1, instance._TypeDefinition) self.assertRaises(Exception, _STD_ANON_1, -52) self.assertRaises(Exception, _STD_ANON_1, 100) if __name__ == '__main__': unittest.main()
Python
0.999324
@@ -586,36 +586,130 @@ -self.assertEqual(_STD_ANON_1 +for (k,v) in globals().items():%0A if k.startswith('_STD_ANON'):%0A break%0A self.assertEqual(v , in @@ -769,27 +769,17 @@ eption, -_STD_ANON_1 +v , -52)%0A @@ -818,19 +818,9 @@ on, -_STD_ANON_1 +v , 10
1ce46f8afa0a59447fa2d66e171d8a35411cc897
version bump
setup.py
setup.py
#!/usr/bin/env python3 from distutils.core import setup from setuptools import find_packages import os import sys def get_long_description(): path = os.path.join(os.path.dirname(__file__), 'README.md') with open(path) as f: return f.read() requirements = [ 'aiodns>=1.1.1,<=2.0', 'idna>=2.9,<3' ] setup( name='pydnsbl', version='1.0.3', description='Async dnsbl lists checker based on asyncio/aiodns.', long_description=get_long_description(), long_description_content_type='text/markdown', url='https://github.com/dmippolitov/pydnsbl/', author=u'Dmitry ippolitov', author_email='ippolitov87@gmail.com', license='MIT', packages=find_packages(), include_package_data=True, zip_safe=False, install_requires=requirements, classifiers=[ 'Environment :: Web Environment', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Programming Language :: Python :: 3.5', 'Topic :: Utilities', ], )
Python
0.000001
@@ -364,17 +364,17 @@ on='1.0. -3 +4 ',%0A d