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
d8e4fc0ed36ce76c98f8aff630b8073322fbb2e3
version bump [ci skip]
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup, find_packages install_requires = ['numpy', 'xarray', 'netcdf4'] tests_require = ['pytest', 'nose', 'coveralls', 'flake8', 'mypy'] setup(name='pyrinex', packages=find_packages(), description='Python RINEX 2/3 NAV/OBS reader that is very fast', long_...
Python
0
@@ -462,16 +462,17 @@ n='1.3.0 +r ',%0A
ae3ca278293982818b17bfaf61f7f61538411198
Fix env tests
tests/environment/testenv.py
tests/environment/testenv.py
import os import subprocess import sys makeenvout = subprocess.Popen('cd ../../environment; make clean; make all', stdout=subprocess.PIPE, shell = True).stdout.read().decode('utf-8') if "Error 1" in makeenvout: print('Environment build failed. Make output:\n#######################################################')...
Python
0.000003
@@ -2109,35 +2109,30 @@ environment/ -environment +halite -d %2210 10%22 @@ -2832,35 +2832,30 @@ environment/ -environment +halite -d %2210 10%22 @@ -3572,35 +3572,30 @@ environment/ -environment +halite -d %2210 10%22 @@ -4205,27 +4205,22 @@ ronment/ -environment +halite -d %2220
98c6d3c3b53f3409677fab5e234c096790386a1c
Prepare openprocurement.auth 1.0.0.dev8.
setup.py
setup.py
from setuptools import setup, find_packages import os version = '1.0.0.dev7' setup(name='openprocurement.auth', version=version, description="", long_description=open("README.txt").read() + "\n" + open(os.path.join("docs", "HISTORY.txt")).read(), # Get more strings from ...
Python
0
@@ -72,9 +72,9 @@ .dev -7 +8 '%0A%0As
5709801ddb760480a5643064af49f723f2f38898
Fix for easy_install
setup.py
setup.py
#!/usr/bin/env python from distutils.core import setup setup( name='django-generic-images', version='0.11b', author='Mikhail Korobov', author_email='kmike84@gmail.com', url='http://bitbucket.org/kmike/django-generic-images/', description = 'Generic images pluggable djan...
Python
0
@@ -114,10 +114,9 @@ '0.1 -1b +2 ',%0A
425a384436ff4c9d3521755aadc2b37f583729c6
fix link
setup.py
setup.py
from setuptools import setup, find_packages import io def read_all(f): with io.open(f, encoding="utf-8") as I: return I.read() requirements = list(map(str.strip, open("requirements.txt").readlines())) setup( name='redisgraph', version='2.1.2', description='RedisGraph Python Client', lon...
Python
0
@@ -429,25 +429,26 @@ hub.com/ -r +R edis -labs +Graph /redisgr
4d6fdc98fd681a78eeeff6041efdfe7107a9743c
Set new minimum pytz version
setup.py
setup.py
from setuptools import setup, find_packages import account setup( name="django-user-accounts", version=account.__version__, author="Brian Rosner", author_email="brosner@gmail.com", description="a Django user account app", long_description=open("README.rst").read(), license="MIT", url=...
Python
0
@@ -467,11 +467,11 @@ =201 -3.9 +5.6 %22%0A
2f09db445fae93c7db51493ca34e53cc9ce1b51f
Bump version: 0.0.21 → 0.0.22
setup.py
setup.py
# /setup.py # # Installation and setup script for travis-bump-version # # See /LICENCE.md for Copyright information """Installation and setup script for travis-bump-version.""" from setuptools import find_packages from setuptools import setup setup(name="travis-bump-version", version="0.0.21", description...
Python
0
@@ -292,17 +292,17 @@ n=%220.0.2 -1 +2 %22,%0A @@ -1574,17 +1574,17 @@ t%3E=0.0.2 -1 +2 %22%5D,%0A
4d43c39fb5aaac3b9822349f678484fbfb2ce6fe
Update classifiers in setup.py Remove python3.3 version from classifiers list
setup.py
setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import codecs import os import sys from shutil import rmtree from setuptools import find_packages, setup, Command here = os.path.abspath(os.path.dirname(__file__)) with codecs.open(os.path.join(here, 'README.rst'), encoding='utf-8') as f: long_description = '\n' + f....
Python
0.000001
@@ -4093,57 +4093,8 @@ 3',%0A - 'Programming Language :: Python :: 3.3',%0A
7a16f5f6258b304596a7c5a175de2a6e4828eed1
Fix bug in automatic generation of the API docs that was not working. Thanks to Chris Burns for review.
setup.py
setup.py
#!/usr/bin/env python import sys import os import zipfile from nipy import __doc__ def configuration(parent_package='',top_path=None): from numpy.distutils.misc_util import Configuration config = Configuration(None, parent_package, top_path) config.set_options(ignore_setup_xxx_py=True, ...
Python
0
@@ -2615,32 +2615,193 @@ def run(self):%0A + # We need to be in the doc directory for to plot_directive%0A # and API generation to work%0A os.chdir('doc')%0A try:%0A if n @@ -2831,23 +2831,16 @@ th.join( -'doc', 'api', ' @@ -2873,100 +2873,86 @@ -A...
0936621b0a4162589560cc112f4f8e4425fed652
Change to semantic version number
setup.py
setup.py
from setuptools import setup, find_packages setup( name = "django-ajax-utilities", url = 'https://github.com/citylive/django-ajax-utilities', license = 'BSD', description = "Pagination, xhr and tabbing utilities for the Django framework.", long_description = open('README','r').read(), author = ...
Python
0.000586
@@ -81,16 +81,39 @@ ities%22,%0A + version = '1.2.0',%0A url
356a5264ac62408289703eaf46598a9d5bc8a34d
add some more paths
setup.py
setup.py
from distutils.core import setup, Extension from glob import glob import time mod = Extension( 'musicplayer', sources = glob("*.cpp"), depends = glob("*.h") + glob("*.hpp"), extra_compile_args = ["--std=c++11"], undef_macros = ['NDEBUG'], libraries = [ 'avutil', 'avformat', 'avcodec', 'swresample', '...
Python
0
@@ -72,16 +72,21 @@ ort time +, sys %0A%0Amod = @@ -354,16 +354,475 @@ %09%09%5D%0A%09)%0A%0A +# Add some more include/lib paths.%0A# Note: This should probably cover already a lot of cases.%0A# However, if this is not enough, get some more inspiration from here:%0A# https://github.com/python-imaging/Pillow/blob/...
426d7d622306d4f6b0ca2805b4abe63b0fac66df
Fix setup info
setup.py
setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- """Setup package.""" from setuptools import setup, find_packages import os import imp import traceback def get_version(): """Get version and version_info without importing the entire module.""" devstatus = { 'alpha': '3 - Alpha', 'beta': '4 - Beta...
Python
0
@@ -1267,19 +1267,27 @@ s='g -rep +lob fnmatch search find @@ -1282,19 +1282,23 @@ search -fin +wildcar d',%0A @@ -1318,16 +1318,21 @@ Wildcard +/glob file na @@ -1676,28 +1676,8 @@ %22),%0A - zip_safe=False,%0A
e241ddd88bfe861eec4f995ae142fd68b646e89b
Update for newer version
setup.py
setup.py
import os from setuptools import setup, find_packages def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() setup( name='django-theherk-updates', version='1.2', packages=find_packages(), include_package_data=True, license='see file LICENSE', description='Djan...
Python
0
@@ -195,17 +195,19 @@ sion='1. -2 +3.0 ',%0A p @@ -455,24 +455,42 @@ herk-updates +/archive/1.3.0.zip ',%0A autho
680311f8663abe4f496850296e1ee434679a8135
Bump version to 0.2.2
setup.py
setup.py
#!/usr/bin/env python import os from distutils.core import setup def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() setup( name='mayo', version='0.2.1', description='Thin wrapper around source control systems', long_description=read("README"), author='Michael ...
Python
0.000002
@@ -190,17 +190,17 @@ on='0.2. -1 +2 ',%0A d
b84cd656dddf9d43acda9b826bc013d71ec2c590
Use uuid.getnode() to generate consistent install id (#380)
setup.py
setup.py
""" Copyright 2015 BlazeMeter 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...
Python
0
@@ -1565,17 +1565,17 @@ ll-id: %25 -s +x %22 %25 uuid @@ -1579,13 +1579,15 @@ uid. -uuid4 +getnode ())%0A
9712dd202f4fe5ee3938dbea987ced267a5199e5
Change version to v0.3.2. Release Notes: fix the incorrect attribute accessing in class Option.
setup.py
setup.py
from setuptools import setup, find_packages setup( name='pyhaproxy', version='0.3.0', keywords=('haproxy', 'parse'), description='A Python library to parse haproxy configuration file', license='MIT License', install_requires=[], include_package_data=True, package_data={ 'pyhapr...
Python
0
@@ -84,17 +84,17 @@ on='0.3. -0 +2 ',%0A k
a3d35fbbb6650a467f7ffe0abb651c51c2781c98
update setup version for 0.7.19
setup.py
setup.py
from setuptools import setup from setuptools.command.sdist import sdist import subprocess class TitoDist(sdist): def run(self): subprocess.call(["tito", "build", "--tgz", "-o", "."]) def get_requirements(requirements_file='requirements.txt'): with open(requirements_file) as f: return [ ...
Python
0
@@ -502,9 +502,10 @@ 0.7. -5 +19 %22,%0A
482b38eca84e82a8e3390613e3a7a17f708a8e71
add a regression test
tests/py/test_charts_json.py
tests/py/test_charts_json.py
from __future__ import absolute_import, division, print_function, unicode_literals import datetime import json from mock import patch from gittip.billing.payday import Payday from gittip.testing import Harness def today(): return datetime.datetime.utcnow().date().strftime('%Y-%m-%d') class TestChartsJson(Harne...
Python
0.000031
@@ -5404,28 +5404,435 @@ assert actual == expected%0A +%0A def test_anonymous_receiver(self):%0A self.run_payday()%0A self.run_payday()%0A self.client.POST('/carl/anonymous.json',%0A %7B'toggle': 'receiving'%7D,%0A auth_as='carl')%0A%0A r...
0112ec2ec3698834c36d56ab4d8b08628808e348
Bump version
setup.py
setup.py
import sys import os.path import setuptools needs_pytest = set(['pytest', 'test', 'ptr']).intersection(sys.argv) pytest_runner = ['pytest-runner'] if needs_pytest else [] REQUIREMENT_DIR = "requirements" with open("README.rst") as fp: long_description = fp.read() with open(os.path.join("docs", "pages", "introd...
Python
0
@@ -704,11 +704,11 @@ =%220. -5.2 +6.0 %22,%0A
7afe49c3f10461d5f1344574edf136c7ff3f9e76
simplify bug reproduce
tests/python/test_dynamic.py
tests/python/test_dynamic.py
import taichi as ti @ti.all_archs def test_dynamic(): x = ti.var(ti.f32) n = 128 @ti.layout def place(): ti.root.dynamic(ti.i, n, 32).place(x) @ti.kernel def func(): pass for i in range(n): x[i] = i for i in range(n): assert x[i] == i @ti.all_archs def test_dynamic2(): x = ti.va...
Python
0.000026
@@ -611,12 +611,10 @@ n = -8192 +16 %0A%0A @@ -679,18 +679,17 @@ nk_size= -16 +8 ).place( @@ -792,32 +792,51 @@ 0%5D = i%0A%0A func() +%0A %0A print('here') %0A%0A for i in ran @@ -863,12 +863,29 @@ t('i += ', i +, ' i*4=', i * 4 )%0A @@ -888,24 +888,29 @@ )%0A print( +'a', x%5Bi * 4%5D%5B1, @@...
9212d6b8e303296c7e3c951192d89de78053d74d
Add pytools to install_requires.
setup.py
setup.py
#!/usr/bin/env python # -*- coding: latin-1 -*- def get_config_schema(): from aksetup_helper import ConfigSchema, \ IncludeDir, LibraryDir, Libraries, BoostLibraries, \ Switch, StringListOption, make_boost_base_options return ConfigSchema(make_boost_base_options() + [ Switch(...
Python
0
@@ -4858,32 +4858,96 @@ nstall_requires= +%5B%0A %22pytools%3E=2013.2%22%0A %5D + requirements,%0A%0A
3232f9c1a0cb864033e1fd62b3b8edffc1eca5ff
disable WIP sparse tests with multihreading
tests/python/test_dynamic.py
tests/python/test_dynamic.py
import taichi as ti @ti.all_archs def test_dynamic(): x = ti.var(ti.f32) n = 128 @ti.layout def place(): ti.root.dynamic(ti.i, n, 32).place(x) @ti.kernel def func(): pass for i in range(n): x[i] = i for i in range(n): assert x[i] == i @ti.all_archs def test_dynamic2(): if ti.cf...
Python
0
@@ -622,24 +622,33 @@ c_matrix():%0A + return%0A if ti.cfg.
4625bc72cb942d9022928b2a4444fee769aef013
update version number
setup.py
setup.py
from setuptools import setup, find_packages setup( name = 'kaggle', version = '1.0.4', description = 'Kaggle API', long_description = 'Official API for https://www.kaggle.com, accessible using a command line tool implemented in Python. Beta release - Kaggle reserves the right to modify the API function...
Python
0.000002
@@ -89,9 +89,9 @@ 1.0. -4 +5 ',%0A
782adff84ee7aaa3301a1c55e7afa30d27916816
Fix package versions.
setup.py
setup.py
# Copyright 2022 DeepMind Technologies Limited. 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 a...
Python
0.000025
@@ -1691,51 +1691,15 @@ acme - @ git+https://git@github.com/deepmind/acme +==0.4.0 ',%0A @@ -1762,17 +1762,17 @@ ad==0.5. -2 +0 ',%0A @@ -1790,17 +1790,17 @@ rb==0.7. -2 +0 ',%0A @@ -2116,24 +2116,104 @@ ow==2.8.0',%0A + 'tensorflow-datasets==4.4.0',%0A 'tensorflow_probability==0.15.0',%...
5eaf0275747827f65ac67ecd4f8dd5d05a650ee3
Remove low_cut
turbustat/statistics/mvc/mvc.py
turbustat/statistics/mvc/mvc.py
# Licensed under an MIT open source license - see LICENSE import numpy as np from numpy.fft import fft2, fftshift from ..base_pspec2 import StatisticBase_PSpec2D class MVC(StatisticBase_PSpec2D): """ Implementation of Modified Velocity Centroids (Lazarian & Esquivel, 03) Parameters ---------- ...
Python
0.000009
@@ -5482,39 +5482,24 @@ lf.mvc1.run( -low_cut=low_cut )%0A%0A s @@ -5635,31 +5635,16 @@ vc2.run( -low_cut=low_cut )%0A%0A
8e9c2ec76bdcd1711c525ef34c09413626a7ee95
remove python-daemon dependency
setup.py
setup.py
from setuptools import setup, find_packages import os home = [] for path, subdirs, files in os.walk('vmmaster/home'): path = path.replace('vmmaster/', '') for name in files: home.append(os.path.join(path, name)) setup( name='vmmaster', version='0.1', description='Python KVM-based virtual ...
Python
0.00002
@@ -545,37 +545,8 @@ 1%22,%0A - %22python-daemon==1.6%22%0A @@ -682,61 +682,8 @@ s=%5B%0A - # ('/etc/init', %5B'etc/init/vmmaster.conf'%5D),%0A
06e95f36d335a2d3912fb288fff7d376bba5078f
Enforce double quotes for English sentences
setup.py
setup.py
import codecs import os import re import setuptools def find_version(*file_paths): # Credits: https://packaging.python.org/single_source_version. here = os.path.abspath(os.path.dirname(__file__)) with codecs.open(os.path.join(here, *file_paths), 'r', 'utf8') as f: version_file = f.read() vers...
Python
0.015519
@@ -848,17 +848,17 @@ author= -' +%22 Christop @@ -868,17 +868,17 @@ Crouzet -' +%22 ,%0A au
debc9387d5ca4787c0bd2d0fa454f3b5bed8bade
Fix first SQS test.
tests/sqs/test_connection.py
tests/sqs/test_connection.py
# Copyright (c) 2006-2010 Mitch Garnaat http://garnaat.org/ # Copyright (c) 2010, Eucalyptus Systems, Inc. # All rights reserved. # # 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 res...
Python
0.000141
@@ -1711,19 +1711,76 @@ 'bad -_ +*queue*name')%0A self.fail(' queue -_ + name + should have been bad ')%0A
860cdbf4cbfa36d668ccc58c777dcc7f33ca494b
change version!
setup.py
setup.py
#!/usr/bin/env python import codecs import os from setuptools import setup, find_packages here = os.path.abspath(os.path.dirname(__file__)) def read_file(filename): """Open a related file and return its content.""" with codecs.open(os.path.join(here, filename), encoding='utf-8') as f: content = f.rea...
Python
0
@@ -430,9 +430,9 @@ 0.2. -1 +2 ',%0A
a6495e0ecdb0187c3ec0bed038b01a2fe55227d2
Update library tests to include backend
tests/stream/test_library.py
tests/stream/test_library.py
from __future__ import absolute_import, unicode_literals import mock import pytest from mopidy.audio import scan from mopidy.internal import path from mopidy.models import Track from mopidy.stream import actor from tests import path_to_data_dir @pytest.fixture def scanner(): return scan.Scanner(timeout=100, p...
Python
0
@@ -83,38 +83,8 @@ st%0A%0A -from mopidy.audio import scan%0A from @@ -234,23 +234,22 @@ ure%0Adef -scanner +config ():%0A @@ -259,142 +259,142 @@ urn -scan.Scanner(timeout=100, proxy_config=%7B%7D)%0A%0A%0A@pytest.fixture%0Adef backend(scanner):%0A backend = mock.Mock()%0A backend.uri_schemes = +%7B%0...
2fc425f4d76e9baf6c312c2bbc2ff40d763dfc4b
Update prefect[gcp,viz] requirement from ~=0.15.0 to >=0.15,<1.1
setup.py
setup.py
#!/usr/bin/env python """Setup script to make PUDL directly installable with pip.""" from pathlib import Path from setuptools import find_packages, setup readme_path = Path(__file__).parent / "README.rst" long_description = readme_path.read_text() setup( name="catalystcoop.pudl", description="An open data ...
Python
0.000001
@@ -1861,16 +1861,19 @@ gcp%5D -~ +%3E =0.15 -.0 +,%3C1.1 %22,%0A
ca37e97424dcaccce130d775174bebad4f3ac9db
Version 1.7.0 - Added Python 3 support and tests.
setup.py
setup.py
import os from setuptools import setup, find_packages import sys with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme: README = readme.read() # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) requirements_file = 'requireme...
Python
0
@@ -468,11 +468,11 @@ '1. -6.4 +7.0 '%0Ase
4ed7e3dba1214d2b30d4149fe510054ff46ce721
Fix screw-up in last commit: entry point is main, not setup_main
setup.py
setup.py
import sys from setuptools import setup, find_packages if sys.version_info[0] < 3: sys.exit("This package does not work with Python 2.") # You can't just put `from pypandoc import convert` at the top of your # setup.py and then put `description=convert("README.md", "rst")` in # your `setup()` invocation, because...
Python
0.000009
@@ -2300,22 +2300,16 @@ ine.cli: -setup_ main%22%0A
e2e56c9965d0781fc427b28f984c05a00dc2be68
Bump version to 0.3.93
setup.py
setup.py
#!/usr/bin/env python try: from setuptools import setup, find_packages except ImportError: from distutils.core import setup version = '0.3.92' setup(name='mi-instrument', version=version, description='OOINet Marine Integrations', url='https://github.com/oceanobservatories/mi-instrument', ...
Python
0.000001
@@ -147,9 +147,9 @@ .3.9 -2 +3 '%0A%0As
a3a1a2ad17bc856ccb83bb2098f11d1dfdc91a44
Fix name of bs4
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup, find_packages setup(name='debian-devel-changes-bot', packages=find_packages(), install_requires=['bs4', 'python-debian', 'requests', 'pydbus'])
Python
0.999999
@@ -158,17 +158,28 @@ ires=%5B'b -s +eautifulsoup 4', 'pyt
fb4512783a81474fa5d5aa1641561ec337a8989e
Remove Python 2.6 classifier from setup.py
setup.py
setup.py
import sys from setuptools import setup, find_packages py26_dependency = [] if sys.version_info[:2] <= (2, 6): py26_dependency = ["argparse >= 1.1", "ordereddict >= 1.1"] setup( name='dataset', version='0.7.1', description="Toolkit for Python-based data processing.", long_description="", clas...
Python
0.003628
@@ -509,57 +509,8 @@ t%22,%0A - 'Programming Language :: Python :: 2.6',%0A
b89a469d83d93f0d29e3fe1a400f9a1ca22db4af
Update TestJWTAuthentication.test_get_payload
tests/test_authentication.py
tests/test_authentication.py
from __future__ import unicode_literals from datetime import datetime, timedelta from django.test import TestCase from django.utils.six.moves import reload_module from jose import jwt from rest_framework.exceptions import AuthenticationFailed from rest_framework.test import APIRequestFactory from rest_framework_simpl...
Python
0.000001
@@ -2861,33 +2861,32 @@ orithm='HS256')%0A -%0A payload%5B @@ -3253,16 +3253,148 @@ (invalid_token)%0A +%0A # Otherwise, should return data payload for token%0A self.assertEqual(self.backend.get_payload(other_token), payload)%0A
4bea05c2105fcc85ad87dac2fe6583e7da09e58f
update test_single_day_simulation() to use keyword arguments; add abandon dist
tests/test_day_simulation.py
tests/test_day_simulation.py
from .. import stimulus import random def test_single_day_simulation(): agent1_schedule = stimulus.AgentSchedule() agent2_schedule = stimulus.AgentSchedule(regular_start=30600, regular_end=(3600*16.5 + 1800), regular_lunch=(3600*12 + 1800)) agent1 = stimulus.Agent(agent1_schedule) agent2 = stimulus....
Python
0
@@ -650,16 +650,23 @@ lus.Day( +agents= %5Bagent1, @@ -683,16 +683,22 @@ gent3%5D, +calls= calls_li @@ -700,16 +700,45 @@ ls_list) +%0A aban_dist = %5B1800, .999%5D %0A%0A si @@ -776,17 +776,45 @@ _day(day -1 +=day1, abandon_dist=aban_dist )%0A%0A a
4575d548911695e2285a0ab0cade5e10511b3870
Update setup.py
setup.py
setup.py
#!/usr/bin/env python ''' Copyright (c) 2016 Tim Savannah All Rights Reserved. This software is licensed under the terms of the GPLv2. You should have received a copy of this with the source distribution as LICENSE, otherwise the most up to date license can be found at https://github.com/kata198/us...
Python
0.000001
@@ -2744,16 +2744,29 @@ :: -4 - Beta +5 - Production/Stable ',%0A @@ -3378,16 +3378,83 @@ : 3.5',%0A + 'Programming Language :: Python :: 3.6',%0A
24cf02b76ca99abb0ae09284b312ca6b250d773f
add comma after readme
setup.py
setup.py
import distribute_setup distribute_setup.use_setuptools() import os from setuptools import setup, find_packages import emit def read(fname): try: return open(os.path.join(os.path.dirname(__file__), fname)).read() except IOError: # for tox return '' setup( # System information name='...
Python
0.000124
@@ -1,63 +1,4 @@ -import distribute_setup%0Adistribute_setup.use_setuptools()%0A%0A impo @@ -789,16 +789,17 @@ ME.rst') +, %0A lic
ea7c54caa83595566bdfa4f63667db2f0d8c140a
Add test for empty metrics queue
tests/test_metrics_logger.py
tests/test_metrics_logger.py
import datetime from time import sleep import pytest from sacred import Experiment from sacred.metrics_logger import ScalarMetricLogEntry, linearize_metrics @pytest.fixture() def ex(): return Experiment("Test experiment") def test_log_scalar_metric_with_run(ex): START = 10 END = 100 STEP_SIZE = 5 ...
Python
0.000001
@@ -364,32 +364,147 @@ function(_run):%0A + # First, make sure the queue is empty:%0A assert len(ex.current_run._metrics.get_last_metrics()) == 0%0A for i in
e5013d3ea76434f9b457b9ffa2d81e5f49aa2b7b
change python version info and language
setup.py
setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import versioneer try: from setuptools import setup except ImportError: from distutils.core import setup with open('README.rst') as readme_file: readme = readme_file.read() with open('HISTORY.rst') as history_file: history = history_file.read().replace('...
Python
0
@@ -1221,15 +1221,27 @@ :: -English +Traditional Chinese ',%0A @@ -1529,16 +1529,65 @@ : 3.4',%0A + 'Programming Language :: Python :: 3.5',%0A %5D,%0A
19c04409975a9102ef008963ad312b00ef4e96c6
Update Python classifiers in setup module
setup.py
setup.py
# -*- coding: utf-8 -*- import codecs from os.path import abspath from os.path import dirname from os.path import join from setuptools import find_packages from setuptools import setup import machina def read_relative_file(filename): """ Returns contents of the given file, whose path is supposed relative to thi...
Python
0
@@ -1897,57 +1897,8 @@ 3',%0A - 'Programming Language :: Python :: 3.4',%0A @@ -2040,16 +2040,65 @@ : 3.7',%0A + 'Programming Language :: Python :: 3.8',%0A
a03dc7b23b219097f2dd16450f4e54b0469ffab1
Bump version to 0.2.2
setup.py
setup.py
import os from setuptools import setup 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'))] setup( name='zc_common', v...
Python
0.000002
@@ -321,25 +321,25 @@ ersion='0.2. -1 +2 ',%0A descr @@ -637,9 +637,9 @@ 0.2. -1 +2 ',%0A
24e6c057e6696f4c79aaba45d9e4287c5e941587
version bump
setup.py
setup.py
#!/usr/bin/env python from distutils.core import setup from distutils.command.install import INSTALL_SCHEMES import os for scheme in INSTALL_SCHEMES.values(): scheme['data'] = scheme['purelib'] template_files = [] for (path, dirs, files) in os.walk('templates'): template_files.extend([os.path.join('..', path, f)...
Python
0.000001
@@ -373,9 +373,9 @@ 0.9. -8 +9 ',%0A
6ede9a1e6dc82de7a269abbfe8b57ee8e6548394
Switch to using subprocess as a base rather interface directly interface with Unix system calls. This lets subprocess deal with various issues dealing with the Python interpreter environment.
setup.py
setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- try: from setuptools import setup except ImportError: from distutils.core import setup with open('README.rst') as readme_file: readme = readme_file.read() with open('HISTORY.rst') as history_file: history = history_file.read().replace('.. :changelog:', ...
Python
0
@@ -1130,57 +1130,8 @@ 3',%0A - 'Programming Language :: Python :: 3.6',%0A @@ -1224,16 +1224,65 @@ : 3.8',%0A + 'Programming Language :: Python :: 3.9',%0A
dae923853e0218fc77923f4512f72d0109e8f4bb
Add boto as requirement for funsize deployment.
setup.py
setup.py
from setuptools import setup PACKAGE_NAME = 'funsize' PACKAGE_VERSION = '0.1' setup(name=PACKAGE_NAME, version=PACKAGE_VERSION, description='partial mar webservice prototype', long_description='https://wiki.mozilla.org/User:Ffledgling/Senbonzakura', classifiers=[], author='Anhad Jai Sing...
Python
0
@@ -586,24 +586,52 @@ ts==2.2.1',%0A + 'boto==2.33.0',%0A %5D,%0A
6291a7d617326adbf6cf1c1ca85407b5403f49f5
version bump
setup.py
setup.py
#!/usr/bin/env python try: from setuptools import setup, find_packages from setuptools.command.test import test except ImportError: from ez_setup import use_setuptools use_setuptools() from setuptools import setup, find_packages from setuptools.command.test import test import os here = os....
Python
0.000001
@@ -491,17 +491,17 @@ on='0.3. -0 +1 ',%0A a
75b68c414b0fc9c0231011f2f70935abfa63089c
Package test data again.
setup.py
setup.py
from setuptools import setup, find_packages setup( name='vumi-wikipedia', version='0.1a', description='Vumi Wikipedia App', packages=find_packages(), install_requires=[ 'vumi > 0.3.1', ], url='http://github.com/praekelt/vumi-wikipedia', license='BSD', long_description=open(...
Python
0
@@ -156,24 +156,55 @@ packages(),%0A + include_package_data=True,%0A install_
242ba5a29f61267abc06f819886c4a40bee5c28e
make version 0.3.19
setup.py
setup.py
from setuptools import setup setup(name='DukeDSClient', version='0.3.18', description='Command line tool(ddsclient) to upload/manage projects on the duke-data-service.', url='https://github.com/Duke-GCB/DukeDSClient', keywords='duke dds dukedataservice', author='John Bradley', ...
Python
0.000003
@@ -77,9 +77,9 @@ .3.1 -8 +9 ',%0A
0eb5e0008d54f48f7643ca1dfbefc861c082aa63
Remove multi-line license entry
setup.py
setup.py
from setuptools import setup, find_packages with open("README.rst") as f: readme = f.read() with open("LICENSE") as f: license = f.read() setup( name="daemons", version="1.3.1", url="https://github.com/kevinconway/daemons", license=license, description="Well behaved unix daemons for ever...
Python
0
@@ -96,59 +96,8 @@ ()%0A%0A -with open(%22LICENSE%22) as f:%0A license = f.read()%0A%0A setu @@ -202,23 +202,37 @@ license= -l +%22'Apache L icense + 2.0%22 ,%0A de @@ -489,16 +489,24 @@ %5D),%0A +install_ requires
dd5a4516993599f05cc8291e772de182cdc3c874
Update setup for PyIi
setup.py
setup.py
#!/usr/bin/python # -*- coding: utf-8 -*- from distutils.core import setup setup( name = 'hybra', packages = ['hybra'], version = '0.1', description = 'Toolkit for data management and analysis', author = 'Matti Nelimarkka, Juho Pääkkönen, Arto Kekkonen', author_email = 'matti.nelimarkka@aalto.fi, juho.paa...
Python
0
@@ -45,22 +45,18 @@ rom -distutils.core +setuptools imp @@ -92,33 +92,14 @@ ybra -',%0A packages = %5B'hybra'%5D +-core' ,%0A @@ -112,16 +112,20 @@ n = '0.1 +.0a1 ',%0A des @@ -180,360 +180,1148 @@ ysis -',%0A author = 'Matti Nelimarkka, Juho P%C3%A4%C3%A4kk%C3%B6nen, Arto Kekkonen',%0A author_email = 'm...
6349029e54ce5102afcefbc295e76b06fa1aa235
fix github url in setup.py
setup.py
setup.py
import sys from distutils.core import setup from distutils.extension import Extension try: from Cython.Distutils import build_ext except ImportError: sys.stderr.write(""" ================================================== Please install Cython (http://cython.org/), which is required to build tre...
Python
0.000782
@@ -3778,16 +3778,16 @@ com/ -xhxielab +uci-cbcl /tre
c8fc68eb0913cd550311c601d8552b0bddf6a9a6
Change description
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup from mailhole import __version__ setup( name = 'mailhole', version=__version__, description = 'Fake SMTP server, used for testing', author = 'Andriy Yurchuk', author_email = 'ayurchuk@minuteware.net', url = 'https://github.com/Ch00k/mailhole'...
Python
0.000004
@@ -158,42 +158,64 @@ = ' -Fake SMTP server, used for testing +A simple application to test email sending functionality ',%0A
986d55734ebf91f5262284cc9d6006f029f437c7
refactor extra python packages as we will have a few of these
setup.py
setup.py
import glob import os from setuptools import setup # read in the description from README with open("README.rst") as stream: long_description = stream.read() github_url = 'https://github.com/LeapBeyond/scrubadub' def read_packages_from_file(filename): with open(filename, 'r') as stream: for line in s...
Python
0
@@ -428,256 +428,53 @@ ge%0A%0A -# read in the dependencies from the virtualenv requirements file%0Afilename = os.path.join(%22requirements%22, %22python%22)%0Adependencies = list(read_packages_from_file(filename))%0A%0A# read extra spacy dependencies from python-extras requirements file%0Afilename +%0Adef get_package...
241cb3a2ee4393b7ddad80b4b98031cfd7224f61
make sure we are py2 compatible
setup.py
setup.py
""" setup.py -- setup script for use of packages. """ from setuptools import setup, find_packages __version__ = '1.3.4' # create entry points # see http://astropy.readthedocs.org/en/latest/development/scripts.html entry_points = { 'console_scripts' : [ 'filutil = blimpy.filterbank:cmd_tool', 'watu...
Python
0
@@ -613,18 +613,58 @@ 'astropy -', +%3C3.0', # 3 is not compatible with py2 %0A @@ -743,18 +743,55 @@ tplotlib -', +%3C3.0', # 3 is not compatible with py2 %0A%5D%0A%0Aextr
8345a0eaccdab0805751622c5a83aca25d06ec51
bump version number.
setup.py
setup.py
#!/usr/bin/env python from setuptools import find_packages, setup, Extension setup(name='sniffles', version='3.0.3', description='Sniffles pcap generator', long_description='Packet capture generator for IDS evaluation', maintainer='Victor C. Valgenti', maintainer_email='vvalgenti@petabi....
Python
0
@@ -116,11 +116,11 @@ ='3. -0.3 +1.0 ',%0A @@ -177,24 +177,25 @@ long_descrip +0 tion='Packet
08a933d1f4bd4ac4ca3b211090309a9652d5a129
simplify setup.py a bit; s/new bsd license/revised bsd license
setup.py
setup.py
#!/usr/bin/env python # encoding: utf-8 import os import sys import textwrap from os.path import abspath, dirname, join as pjoin from distutils.command.build import build from setuptools.command.develop import develop from setuptools.command.bdist_egg import bdist_egg from setuptools import setup, Extension, Command ...
Python
0
@@ -354,51 +354,8 @@ ))%0A%0A -requires = ()%0Atest_requires = ('pytest',)%0A%0A clas @@ -1518,17 +1518,16 @@ l.com',%0A -%0A 'lic @@ -1552,11 +1552,15 @@ : ' -New +Revised BSD @@ -1664,17 +1664,16 @@ ifiers,%0A -%0A 'url @@ -1777,17 +1777,16 @@ vdev'%5D,%0A -%0A 'ext @@ -1841,47 +1841,8 @@ c%5...
9a206428697bc7c3fde779c36d9e6ceb87dfb312
Fix setup.py lint errors
setup.py
setup.py
"""Setup script. Run "python3 setup --help-commands" to list all available commands and their descriptions. """ import os import sys from subprocess import call from setuptools import Command, find_packages, setup from pyof import __version__ class CleanCommand(Command): """Custom clean command to tidy up the p...
Python
0.000002
@@ -325,24 +325,25 @@ ct root.%22%22%22%0A +%0A user_opt @@ -379,32 +379,69 @@ _options(self):%0A + %22%22%22No initializa options.%22%22%22%0A pass%0A%0A @@ -482,32 +482,135 @@ -pass%0A%0A def run(self): +%22%22%22No finalize options.%22%22%22%0A pass%0A%0A def run(self):%0A...
26f40f91f5832543bb7c57a238ff4189b262a740
Bump version
setup.py
setup.py
#!/usr/bin/env python2 from setuptools import setup, find_packages requires = open('requirements.txt').read().split('\n') setup( name='hamper', version='1.11.0', description='Yet another IRC bot', install_requires=requires, author='Mike Cooper', author_email='mythmon@gmail.com', url='http...
Python
0
@@ -166,9 +166,9 @@ .11. -0 +1 ',%0A
8c09013994291312068cabc463dc996c06312737
fix python 2.6 support.
setup.py
setup.py
import os.path as op from setuptools import setup VERSION = "0.1.0.dev1" if __name__ == "__main__": with open(op.join("machotools", "__version.py"), "wt") as fp: fp.write("__version__ = '{}'".format(VERSION)) setup(name="machotools", version=VERSION, author="David Cournapeau", ...
Python
0
@@ -196,16 +196,17 @@ n__ = '%7B +0 %7D'%22.form
786433154a419d41d03fb025aa49e379b9058f72
Bump flake8 from 3.9.1 to 3.9.2
setup.py
setup.py
import re from setuptools import setup INSTALL_REQUIRES = ["marshmallow>=2.7.0", "python-dotenv"] DJANGO_REQUIRES = ["dj-database-url", "dj-email-url", "django-cache-url"] EXTRAS_REQUIRE = { "django": DJANGO_REQUIRES, "tests": ["pytest"] + DJANGO_REQUIRES, "lint": ["flake8==3.9.1", "flake8-bugbear==21.4.3"...
Python
0.000001
@@ -285,17 +285,17 @@ e8==3.9. -1 +2 %22, %22flak
b665cc442d6d85803e8775f6034b1e531b3588e8
Update setup.py and add python_requires
setup.py
setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ A setuptools based setup module. See: https://packaging.python.org/en/latest/distributing.html """ from __future__ import unicode_literals import io from os import path try: from pip.req import parse_requirements except ImportError: # pip >= 10 from pip...
Python
0.000001
@@ -18,32 +18,8 @@ thon -%0A# -*- coding: utf-8 -*- %0A%0A%22%22 @@ -125,59 +125,8 @@ %22%22%0A%0A -from __future__ import unicode_literals%0A%0Aimport io%0A from @@ -1168,11 +1168,8 @@ ith -io. open @@ -1202,26 +1202,8 @@ st%22) -, encoding=%22utf-8%22 ) as @@ -2402,32 +2402,32 @@ STALL_REQUIRES,%0A - ...
09654ba589b25d9680f0858bb0432b5b3881ca51
Update setup.py
setup.py
setup.py
from setuptools import setup test_deps = ['pytest', 'pytest-cov', 'vcrpy', 'pytest-vcr', 'pytest-mock'] extras = { "test": test_deps } setup(name='Mastodon.py', version='1.2.2', description='Python wrapper for the Mastodon API', packages=['mastodon'], setup_requires=['pytest-runner'], ...
Python
0
@@ -391,16 +391,23 @@ ecorator +%3E=4.0.0 '%5D,%0A
a8a4a1a8d8355d85218a123ccc5369f82048bb8f
Comment about svn:keywords
setup.py
setup.py
#!/usr/bin/env python # Copyright 2008-2009 WebDriver committers # Copyright 2008-2009 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/licens...
Python
0
@@ -1902,24 +1902,83 @@ evision():%0D%0A + # svn_rev is updated by subversion using svn:keywords%0D%0A svn_rev
3b951d60e4ef22ea0b9edcbb83cd44aecc773ae9
Version 0.3.4
setup.py
setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup, find_packages setup(name='megacl', version='0.3.3', description='mega.co.nz command line client.', author='Arthibus Gisséhel', author_email='public-dev-megacl@gissehel.org', url='https://github.com/gissehel/megac...
Python
0.000001
@@ -125,17 +125,17 @@ on='0.3. -3 +4 ',%0A
0a40ab01070018fc3ca32008f55c18e2b65aa23b
add support for python 3.10 (#181)
setup.py
setup.py
# -*- coding: utf-8 -*- # # Copyright 2018 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
Python
0
@@ -2257,16 +2257,115 @@ : 3.8%22,%0A + %22Programming Language :: Python :: 3.9%22,%0A %22Programming Language :: Python :: 3.10%22,%0A
9f542a553e4030b62358ec7f41f23d952608ee75
Bump flake8 from 3.8.3 to 3.8.4
setup.py
setup.py
import re from setuptools import setup, find_packages EXTRAS_REQUIRE = { "yaml": ["PyYAML>=3.10"], "validation": ["prance[osv]>=0.11"], "lint": ["flake8==3.8.3", "flake8-bugbear==20.1.4", "pre-commit~=2.4"], "docs": [ "marshmallow>=3.0.0", "pyyaml==5.3.1", "sphinx==3.2.1", ...
Python
0
@@ -164,17 +164,17 @@ e8==3.8. -3 +4 %22, %22flak
ab4f0a5bdd640f31ddd03969d1cc6ea38bb79ce0
Update version
setup.py
setup.py
from setuptools import setup, find_packages setup( name='cmsplugin-contact', version='1.1.2', description='Extendable contact form plugin for Django CMS with spam protection and i18n', long_description=open('README.rst').read(), author='Maccesch', author_email='maccesch@gmail.com', url='htt...
Python
0
@@ -96,9 +96,9 @@ 1.1. -2 +3 ',%0A
4f2ed94d507bbd041aedd49aadb78a16c4c2f5d9
Update dependency range for api-core to include v1.0.0 releases (#4944)
setup.py
setup.py
# Copyright 2018 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, s...
Python
0
@@ -1016,19 +1016,19 @@ pi-core%3C -0.2 +2.0 .0dev,%3E=
c2aa884af9b32f223d440cf0c987026c0f6abb7e
fix configparser
setup.py
setup.py
#!/usr/bin/env python # Licensed under a 3-clause BSD style license - see LICENSE.rst import glob import os import sys import ah_bootstrap from setuptools import setup #A dirty hack to get around some early import/configurations ambiguities if sys.version_info[0] >= 3: import builtins else: import __builtin_...
Python
0.000006
@@ -662,30 +662,42 @@ cfg%0A -from distutils +try:%0A from ConfigParser import conf @@ -696,22 +696,91 @@ ort -c +C onfig +Parser%0Aexcept ImportError:%0A from configparser import ConfigParser%0A %0Aconf = conf @@ -779,15 +779,8 @@ f = -config. Conf
d3d66ba7f851884466b53caaddf100191a7da403
Version bump.
setup.py
setup.py
from setuptools import setup try: from pypandoc import convert def read_md(f): return convert(f, 'rst') except ImportError: print("warning: pypandoc module not found, could not convert Markdown to RST") def read_md(f): return open(f, 'r').read() long_description = read_md('README.md') setup( na...
Python
0
@@ -353,17 +353,17 @@ on='0.1. -0 +1 ',%0A d
bfc85ac3d2b29e5287fa556e0e2215bc39668db5
Replace thriftpy dependency with thriftpy2
setup.py
setup.py
"""setup.py - build script for parquet-python.""" try: from setuptools import setup except ImportError: from distutils.core import setup setup( name='parquet', version='1.2', description='Python support for Parquet file format', author='Joe Crobak', author_email='joecrow@gmail.com', ur...
Python
0.9999
@@ -1138,15 +1138,9 @@ ftpy -%3E=0.3.6 +2 ',%0A
de051cd25e1f4f5dacb6a3d50cf2d3bf569f712d
Remove unused import
setup.py
setup.py
import sys from setuptools import setup _version_file = 'hooked/version.py' with open(_version_file) as vf: exec(vf.read()) setup( name='django-gapi-hooked', version=__version__, author='G Adventures', author_email='software@gadventures.com', description='A tiny library to add a G Adventures...
Python
0.000001
@@ -1,15 +1,4 @@ -import sys%0A from
e5b388ade150cfd294b8b5e2e09a2394307189e5
bump version
setup.py
setup.py
# Always prefer setuptools over distutils from setuptools import setup, find_packages # To use a consistent encoding from codecs import open from os import path here = path.abspath(path.dirname(__file__)) # Get the long description from the relevant file with open(path.join(here, 'DESCRIPTION.rst'), encoding='utf-8')...
Python
0
@@ -607,17 +607,17 @@ sion='1. -2 +3 .0',%0A%0A
c4e1059b387269b6098d05d2227c085e7931b140
Update module description for clarity
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 distutils.core import setup, Extension cpp_args = ['-std=c++11', '-stdlib=libc++', '-mmacosx-version-min=10.7'] e...
Python
0
@@ -636,25 +636,8 @@ ='A -python extension modu @@ -655,16 +655,37 @@ ulating +centers though least asymmetr @@ -689,15 +689,8 @@ etry - values ',%0A
5236a10ab4e7d55c288fc7c093be25325edb4383
Make debugging easier by showing server quit messages that came from SQUIT
txircd/modules/rfc/cmd_squit.py
txircd/modules/rfc/cmd_squit.py
from twisted.plugin import IPlugin from twisted.words.protocols import irc from txircd.module_interface import Command, ICommand, IModuleData, ModuleData from txircd.utils import ircLower from zope.interface import implements class ServerQuit(ModuleData): implements(IPlugin, IModuleData) name = "ServerQuit" core ...
Python
0
@@ -3285,32 +3285,79 @@ et%22%5D.disconnect( +%22Received SQUIT from remote server: %7B%7D%22.format( data%5B%22reason%22%5D)%0A @@ -3355,16 +3355,17 @@ eason%22%5D) +) %0A%09%09retur
c4c62593be68afb2431a4cae5fd17c2ab4636881
fix packaging for sfa-nuke-plc.py
setup.py
setup.py
#!/usr/bin/python """ Installation script for the geniwrapper module """ import os, sys import shutil from distutils.core import setup scripts = [ 'config/sfa-config-tty', 'sfa/plc/sfa-import-plc.py', 'sfa/server/sfa-server.py', 'sfa/client/sfi.py', 'sfa/client/getN...
Python
0
@@ -79,15 +79,24 @@ ort -os, sys +sys, os, os.path %0Aimp @@ -140,22 +140,19 @@ setup%0A%0A -script +bin s = %5B 'c @@ -208,32 +208,72 @@ mport-plc.py', %0A + 'sfa/plc/sfa-nuke-plc.py', %0A 'sfa @@ -499,16 +499,87 @@ %5D%0A +remove_bins = %5B '/usr/bin/' + os.path.basename(bin) for...
add478d733628b635ce320b9cb8353086a12fa58
Send numeric 381 (RPL_YOUREOPER) on successful oper attempt
txircd/modules/rfc/mech_oper.py
txircd/modules/rfc/mech_oper.py
from twisted.plugin import IPlugin from twisted.words.protocols import irc from txircd.module_interface import Command, ICommand, IMode, IModuleData, Mode, ModuleData from txircd.utils import ircLower, ModeType from zope.interface import implements from fnmatch import fnmatch class Oper(ModuleData, Mode): implemen...
Python
0
@@ -3494,16 +3494,92 @@ o%22, %5B%5D)%0A + user.sendMessage(irc.RPL_YOUREOPER, %22:You are now an IRC operator%22)%0A
a236613900a6b4af6cdce742309e5b6da88ef712
Use rolling filename policy for weights
src/c2w2c.py
src/c2w2c.py
import sys, os.path as path import model_params from time import strftime, localtime from keras.layers import TimeDistributed, Input from keras.models import Model from keras.optimizers import Adam from dataset import make_training_samples_generator, make_test_samples, load_dataset, make_char_vocabulary from layers i...
Python
0
@@ -4510,33 +4510,73 @@ -c2w2c.save_weights(params +filename = '%25s.%25d' %25 (params.save_weight_file, e %25 5)%0A c2w2c .sav @@ -4583,21 +4583,26 @@ e_weight -_ +s( file +name , overwr @@ -4643,17 +4643,34 @@ ts saved -' + to %25s' %25 filename %0A%0A pr
c233359e79288812beb45978fa53f764a280f29a
Add tests for Terrain3D
tests/test_terraindisplay.py
tests/test_terraindisplay.py
import unittest from randterrainpy import * class Terrain2DTester(unittest.TestCase): def setUp(self): self.ter1 = Terrain(100, 100) # all black self.ter2 = Terrain(200, 200) # all white for x in range(self.ter2.width): for y in range(self.ter2.length): sel...
Python
0
@@ -592,17 +592,17 @@ self.ter -1 +3 .length%0A @@ -1346,16 +1346,1148 @@ e):%0A +%0A -pass +def setUp(self):%0A self.ter1 = Terrain(100, 100) # all low%0A self.ter2 = Terrain(200, 200) # all high%0A for x in range(self.ter2.width):%0A for y in range(self.ter2.length):%0A ...
bc8bd227c3d15cde8b2a46c40f7188c34026046d
Make assertion about status code
tests/test_unknown_target.py
tests/test_unknown_target.py
""" Tests for passing invalid target IDs to helpers which require a target ID to be given. """ from typing import Any, Callable, Dict, Union import pytest from _pytest.fixtures import SubRequest from vws import VWS from vws.exceptions import UnknownTarget @pytest.fixture() def _delete_target(client: VWS) -> Callab...
Python
0.002373
@@ -189,16 +189,43 @@ bRequest +%0Afrom requests import codes %0A%0Afrom v @@ -1351,16 +1351,23 @@ nTarget) + as exc :%0A @@ -1388,8 +1388,69 @@ id='x')%0A + assert exc.value.response.status_code == codes.NOT_FOUND%0A
c3834af13fb14d0961e7e8ce29c3bbbe91ebb5ce
Update mbutil to 0.2.0
setup.py
setup.py
from setuptools import setup, find_packages import sys import mbtoolbox with open('mbtoolbox/__init__.py') as f: for line in f: if line.find("__version__") >= 0: version = line.split("=")[1].strip() version = version.strip('"') version = version.strip("'") c...
Python
0.000002
@@ -1010,28 +1010,24 @@ butil==0.2.0 -beta '%5D,%0A depe
d388dc6c620b0e7164a4f97d6876a99d5e8fade3
Add nbformat to setup.py requirements
setup.py
setup.py
from setuptools import setup VERSION = 'v0.0.1' setup(name='depfinder', version=VERSION, author='Eric Dill', author_email='thedizzle@gmail.com', py_modules=['depfinder'], description='Find all the imports in your library', url='http://github.com/ericdill/depfinder', platforms='...
Python
0
@@ -407,13 +407,25 @@ uptools' +, 'nbformat' %5D,%0A)%0A
a52c84f092d89f89130c2696c98779e955f083dc
Add tests for version splitting
tests/test_version_parser.py
tests/test_version_parser.py
import pytest from leak.version_parser import versions_split def test_versions_split(): pass def test_wrong_versions_split(): # too many dots assert versions_split('1.2.3.4') == [0, 0, 0] # test missing numeric version with pytest.raises(ValueError): versions_split('not.numeric') ...
Python
0
@@ -92,12 +92,410 @@ -p ass +ert versions_split('1.8.1') == %5B1, 8, 1%5D%0A assert versions_split('1.4') == %5B1, 4, 0%5D%0A assert versions_split('2') == %5B2, 0, 0%5D%0A%0A%0Adef test_versions_split_str_mapping():%0A assert versions_split('1.11rc1', type_applyer=str) == %5B'1', '11rc1', '0'%5D%0A ...
bb9d412341a5495c32a76638632a3407080cc4dc
Version bump.
setup.py
setup.py
from os.path import abspath, dirname, join, normpath from setuptools import setup setup( # Basic package information: name = 'Flask-Heroku-Cacheify', version = '1.3', py_modules = ('flask_cacheify', ), # Packaging options: zip_safe = False, include_package_data = True, # Package de...
Python
0
@@ -172,17 +172,17 @@ on = '1. -3 +4 ',%0A p
1a9a4ea4c097724ec25e8d20104f3e384c37647d
Bump to 0.1.2
setup.py
setup.py
# Copyright (c) 2008, Idan Gazit # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of condition...
Python
0.000596
@@ -1703,17 +1703,17 @@ = %220.1. -1 +2 %22,%0A p
4121a03db5dd226039f585369941b955c9aba88e
This is 5.15.0
setup.py
setup.py
#!/usr/bin/env python """ Raven ===== Raven is a Python client for `Sentry <http://getsentry.com/>`_. It provides full out-of-the-box support for many of the popular frameworks, including `Django <djangoproject.com>`_, `Flask <http://flask.pocoo.org/>`_, and `Pylons <http://www.pylonsproject.org/>`_. Raven also includ...
Python
0.999999
@@ -2335,17 +2335,17 @@ ion='5.1 -4 +5 .0',%0A
b1701c7e56c4ee44d9420f2209d10664348f0d0c
Remove client from global setup for now
setup.py
setup.py
#!/usr/bin/env python import os import sys modules = [ 'common', 'backend', 'client', 'shell', 'utils', ] return_code = 0 for module in modules: return_code = max(return_code, os.system("cd %s && ./setup.py %s" % (module, " ".join(sys.argv[1:]))) >> 8) for root, dirs, files in os.walk("plugins"): if...
Python
0
@@ -78,20 +78,8 @@ d',%0A - 'client',%0A 's
0b71b279064a4fa45825e0d34bee651a1295071e
Use 2to3 for installing on Python 3
setup.py
setup.py
# -*- coding: UTF-8 -*- """ Setup script for building hgtools distribution Copyright © 2010-2011 Jason R. Coombs """ import setuptools long_description = open('README').read() # HGTools uses a special technique for getting the version from # mercurial, because it can't require itself to install itself. # Don't use...
Python
0.000225
@@ -534,490 +534,8 @@ e)%0A%0A -# set up distutils/setuptools to convert to Python 3 when%0A# appropriate%0Atry:%0A%09from distutils.command.build_py import build_py_2to3 as build_py%0A%09# exclude some fixers that break already compatible code%0A%09from lib2to3.refactor import get_fixers_from_package%0A%09fixers = g...
dc1c377a5b6011b587413c586b33000e867ab5bc
Declare dependency
setup.py
setup.py
from setuptools import setup, find_packages setup( name='zeit.securitypolicy', version='2.2.10.dev0', author='gocept, Zeit Online', author_email='zon-backend@zeit.de', url='http://www.zeit.de/', description="vivi roles and permissions", packages=find_packages('src'), package_dir={'': '...
Python
0
@@ -582,16 +582,17 @@ .cms%3E=3. +1 9.0.dev0
a0ff5a8b6817be12aae5184a4a33af89c05ec552
Bump 0.7
setup.py
setup.py
import pathlib import setuptools ROOT = str(pathlib.Path(__file__).parent) extras = {} with open(ROOT + '/requirements-doc.txt', encoding='utf-8') as fp: extras['doc'] = fp.read().splitlines() with open(ROOT + '/requirements-test.txt', encoding='utf-8') as fp: extras['test'] = fp.read().splitlines() with o...
Python
0.000025
@@ -454,17 +454,17 @@ sion='1. -6 +7 ',%0A l
680e64eb7bf37ff303d50310aef91eca0770bef7
Update unit tests: words_counter_tests.py.
tests/words_counter_tests.py
tests/words_counter_tests.py
import unittest from twitchbot import WordsCounter class WordsCounterTests(unittest.TestCase): def setUp(self): self.words_counter = WordsCounter() def test_count_words_counts_words_correct(self): self.words_counter.count_words("word2 word1") self.assertEqual(self.words_counter.get_t...
Python
0
@@ -21,16 +21,20 @@ m twitch +chat bot impo
db7ec441727f747c08e2d7532bb820e2263c70e6
Make sure we have the latest version of the orcid library
setup.py
setup.py
""" Sample project to be edited. """ from pip.req import parse_requirements from setuptools import find_packages, setup from setuptools.command.test import test as TestCommand import sys import os # Workaround for development under Vagrant using vbox shared directories # Hard links aren't allowed which breaks setup. ...
Python
0
@@ -1382,16 +1382,25 @@ + 'orcid', 'orcidf
437fef8ec538517252992d7a0f2ef213ae0a7128
Update setup.py
setup.py
setup.py
#from distutils.core import setup from setuptools import setup def make_data_file_list(target, source): """ creates a list of tuples (target_directory, file_list) that setup should copy into the egg in the install process. Gets around no way to specify a recursive directory tree copy, directories...
Python
0
@@ -1692,16 +1692,105 @@ '0.95a', +%0A description='A C-family AST implementation designed to be an IR for DSL compilers.', %0A%0A pa
de47a75f04c0fd2199315b2b096943a08d495185
Remove SETUPTOOLS_REQUIRES
setup.py
setup.py
#!/usr/bin/env python """ .. codeauthor:: Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com> """ import os.path from typing import Dict import setuptools MODULE_NAME = "SimpleSQLite" REPOSITORY_URL = "https://github.com/thombashi/{:s}".format(MODULE_NAME) REQUIREMENT_DIR = "requirements" ENCODING = "utf8" pkg_info =...
Python
0.000001
@@ -1139,54 +1139,8 @@ )%5D%0A%0A -SETUPTOOLS_REQUIRES = %5B%22setuptools%3E=38.3.0%22%5D%0A%0A setu @@ -1893,86 +1893,24 @@ res= -SETUPTOOLS_REQUIRES + install_requires,%0A setup_requires=SETUPTOOLS_REQUIRES +install_requires ,%0A
9002df839fc092db0c656174fa9cf57a3bfecdaa
Bump to 0.2.0
setup.py
setup.py
from setuptools import setup from setuptools.command.test import test as TestCommand import sys def read(filename): with open(filename, 'r') as fh: return fh.read() class ToxTest(TestCommand): user_options = [('tox-args=', 'a', 'Arguments to pass to tox')] def initialize_options(self): ...
Python
0.000291
@@ -823,9 +823,9 @@ ='0. -1 +2 .0',
eb871da3c808fbbf5a7971147265471de87f1a01
Refactor import
setup.py
setup.py
""" .. codeauthor:: Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com> """ import os.path from typing import Dict, List # noqa import setuptools MODULE_NAME = "pathvalidate" REPOSITORY_URL = "https://github.com/thombashi/{:s}".format(MODULE_NAME) REQUIREMENT_DIR = "requirements" ENCODING = "utf8" pkg_info = {} # ty...
Python
0.000001
@@ -108,22 +108,8 @@ Dict -, List # noqa %0A%0Aim
552a0ea213d0181175e3550f9fc6a1e6329c9a6b
Version bump
setup.py
setup.py
from setuptools import setup, find_packages setup( name='dfttopif', version='0.2.0', description='Library for parsing Density Functional Theory calculations', url='https://github.com/CitrineInformatics/pif-dft', install_requires=[ 'ase', 'pypif==1.1.6', 'dftparse>=0.2.1' ...
Python
0.000001
@@ -81,17 +81,17 @@ sion='0. -2 +3 .0',%0A
0ee42f3b0c7d817720f43b8c48cb622ca38b4620
Version 0.2
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup, find_packages import itertools from physt import __version__ options = dict( name='physt', version=__version__, packages=find_packages(), license='MIT', description='P(i/y)thon h(i/y)stograms.', long_description=open('README.rst').read(), ...
Python
0.000001
@@ -299,11 +299,10 @@ DME. -rst +md ').r