commit stringlengths 40 40 | old_file stringlengths 4 150 | new_file stringlengths 4 150 | old_contents stringlengths 0 3.26k | new_contents stringlengths 1 4.43k | subject stringlengths 15 501 | message stringlengths 15 4.06k | lang stringclasses 4
values | license stringclasses 13
values | repos stringlengths 5 91.5k | diff stringlengths 0 4.35k |
|---|---|---|---|---|---|---|---|---|---|---|
fc73dfb33f4e19d649672f19a1dc4cf09b229d29 | echo_server.py | echo_server.py | #! /usr/bin/env python
"""Echo server in socket connection: receives and sends back a message."""
import socket
if __name__ == '__main__':
"""Run from terminal, this will recieve a messages and send them back."""
server_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM,
... | #! /usr/bin/env python
"""Echo server in socket connection: receives and sends back a message."""
import socket
def response_ok():
"""Return byte string 200 ok response."""
return u"HTTP/1.1 200 OK\nContent-Type: text/plain\nContent-length: 18\n\r\neverything is okay".encode('utf-8')
def reponse_error(error... | Add response_ok and response_error methods which return byte strings. | Add response_ok and response_error methods which return byte strings.
| Python | mit | bm5w/network_tools | ---
+++
@@ -1,6 +1,16 @@
#! /usr/bin/env python
"""Echo server in socket connection: receives and sends back a message."""
import socket
+
+
+def response_ok():
+ """Return byte string 200 ok response."""
+ return u"HTTP/1.1 200 OK\nContent-Type: text/plain\nContent-length: 18\n\r\neverything is okay".encode... |
d97144e2b45750c416d3adbf9f49f78bfa8e7e6e | Lib/sandbox/pyem/misc.py | Lib/sandbox/pyem/misc.py | # Last Change: Sat Jun 09 07:00 PM 2007 J
#========================================================
# Constants used throughout the module (def args, etc...)
#========================================================
# This is the default dimension for representing confidence ellipses
DEF_VIS_DIM = [0, 1]
DEF_ELL_NP = ... | # Last Change: Sat Jun 09 08:00 PM 2007 J
#========================================================
# Constants used throughout the module (def args, etc...)
#========================================================
# This is the default dimension for representing confidence ellipses
DEF_VIS_DIM = (0, 1)
DEF_ELL_NP = ... | Set def arguments to immutable to avoid nasty side effect. | Set def arguments to immutable to avoid nasty side effect.
git-svn-id: 003f22d385e25de9cff933a5ea4efd77cb5e7b28@3086 d6536bca-fef9-0310-8506-e4c0a848fbcf
| Python | bsd-3-clause | scipy/scipy-svn,lesserwhirls/scipy-cwt,jasonmccampbell/scipy-refactor,lesserwhirls/scipy-cwt,lesserwhirls/scipy-cwt,scipy/scipy-svn,lesserwhirls/scipy-cwt,scipy/scipy-svn,scipy/scipy-svn,jasonmccampbell/scipy-refactor,jasonmccampbell/scipy-refactor,jasonmccampbell/scipy-refactor | ---
+++
@@ -1,10 +1,10 @@
-# Last Change: Sat Jun 09 07:00 PM 2007 J
+# Last Change: Sat Jun 09 08:00 PM 2007 J
#========================================================
# Constants used throughout the module (def args, etc...)
#========================================================
# This is the default dime... |
de2e3dd947660b4b1222820141c5c7cd66098349 | django_split/models.py | django_split/models.py | from django.db import models
class ExperimentGroup(models.Model):
experiment = models.CharField(max_length=48)
user = models.ForeignKey('auth.User', related_name=None)
group = models.IntegerField()
class Meta:
unique_together = (
('experiment', 'user'),
)
class Experimen... | from django.db import models
class ExperimentGroup(models.Model):
experiment = models.CharField(max_length=48)
user = models.ForeignKey(
'auth.User',
related_name='django_split_experiment_groups',
)
group = models.IntegerField()
class Meta:
unique_together = (
... | Add an explicit related name | Add an explicit related name
| Python | mit | prophile/django_split | ---
+++
@@ -3,7 +3,10 @@
class ExperimentGroup(models.Model):
experiment = models.CharField(max_length=48)
- user = models.ForeignKey('auth.User', related_name=None)
+ user = models.ForeignKey(
+ 'auth.User',
+ related_name='django_split_experiment_groups',
+ )
group = models.Int... |
4299f4f410f768066aaacf885ff0a38e8af175c9 | intro-django/readit/books/forms.py | intro-django/readit/books/forms.py | from django import forms
from .models import Book
class ReviewForm(forms.Form):
"""
Form for reviewing a book
"""
is_favourite = forms.BooleanField(
label = 'Favourite?',
help_text = 'In your top 100 books of all time?',
required = False,
)
review = forms.CharField(
widget = forms.Textarea,
min_lengt... | from django import forms
from .models import Book
class ReviewForm(forms.Form):
"""
Form for reviewing a book
"""
is_favourite = forms.BooleanField(
label = 'Favourite?',
help_text = 'In your top 100 books of all time?',
required = False,
)
review = forms.CharField(
widget = forms.Textarea,
min_lengt... | Add custom form validation enforcing that each new book is unique | Add custom form validation enforcing that each new book is unique
| Python | mit | nirajkvinit/python3-study,nirajkvinit/python3-study,nirajkvinit/python3-study,nirajkvinit/python3-study | ---
+++
@@ -25,3 +25,19 @@
class Meta:
model = Book
fields = ['title', 'authors']
+
+ def clean(self):
+ # Super the clean method to maintain main validation and error messages
+ super(BookForm, self).clean()
+
+ try:
+ title = self.cleaned_data.get('title')
+ authors = self.cleaned_data.get('authors')... |
ddeffc09ce1eab426fe46129bead712059f93f45 | docker/settings/web.py | docker/settings/web.py | from .docker_compose import DockerBaseSettings
class WebDevSettings(DockerBaseSettings):
# Needed to serve 404 pages properly
# NOTE: it may introduce some strange behavior
DEBUG = False
WebDevSettings.load_settings(__name__)
| from .docker_compose import DockerBaseSettings
class WebDevSettings(DockerBaseSettings):
pass
WebDevSettings.load_settings(__name__)
| Remove DEBUG=False that's not needed anymore | Remove DEBUG=False that's not needed anymore
Now we are serving 404s via El Proxito and forcing DEBUG=False is not
needed anymore.
| Python | mit | rtfd/readthedocs.org,rtfd/readthedocs.org,rtfd/readthedocs.org,rtfd/readthedocs.org | ---
+++
@@ -1,9 +1,8 @@
from .docker_compose import DockerBaseSettings
+
class WebDevSettings(DockerBaseSettings):
+ pass
- # Needed to serve 404 pages properly
- # NOTE: it may introduce some strange behavior
- DEBUG = False
WebDevSettings.load_settings(__name__) |
01e1900a139d7525a0803d5a160a9d91210fe219 | csv2kmz/csv2kmz.py | csv2kmz/csv2kmz.py | import os
import argparse
from buildkmz import create_kmz_from_csv
def main():
""" Build file as per user inputs
"""
args = get_cmd_args()
iPath = args.input
sPath = args.styles
oDir = args.output
create_kmz_from_csv(iPath,sPath,oDir)
def get_cmd_args():
"""Get, proc... | import os
import argparse
import logging
from buildkmz import create_kmz_from_csv
def main():
""" Build file as per user inputs
"""
logging.basicConfig(format='%(asctime)s %(levelname)s: %(message)s', level=logging.INFO)
args = get_cmd_args()
iPath = args.input
sPath = args.s... | Add logging output when called from command line | Add logging output when called from command line | Python | mit | aguinane/csvtokmz | ---
+++
@@ -1,10 +1,13 @@
import os
import argparse
+import logging
from buildkmz import create_kmz_from_csv
def main():
""" Build file as per user inputs
"""
+
+ logging.basicConfig(format='%(asctime)s %(levelname)s: %(message)s', level=logging.INFO)
args = get_cmd_args()
... |
984c395e3f43764a4d8125aea7556179bb4766dd | test/_mysqldb_test.py | test/_mysqldb_test.py | '''
$ mysql
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 211
Server version: 5.6.15 Homebrew
Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks... | import mysql.connector
from luigi.contrib.mysqldb import MySqlTarget
import unittest
host = 'localhost'
port = 3306
database = 'luigi_test'
username = None
password = None
table_updates = 'table_updates'
def _create_test_database():
con = mysql.connector.connect(user=username,
p... | Remove the doc that describes the setup. Setup is automated now | Remove the doc that describes the setup. Setup is automated now
| Python | apache-2.0 | moritzschaefer/luigi,kalaidin/luigi,riga/luigi,foursquare/luigi,dylanjbarth/luigi,Dawny33/luigi,harveyxia/luigi,graingert/luigi,slvnperron/luigi,harveyxia/luigi,sahitya-pavurala/luigi,hadesbox/luigi,rayrrr/luigi,humanlongevity/luigi,Tarrasch/luigi,Magnetic/luigi,percyfal/luigi,torypages/luigi,stroykova/luigi,theoryno3/... | ---
+++
@@ -1,21 +1,3 @@
-'''
-$ mysql
-Welcome to the MySQL monitor. Commands end with ; or \g.
-Your MySQL connection id is 211
-Server version: 5.6.15 Homebrew
-
-Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
-
-Oracle is a registered trademark of Oracle Corporation and/or its
-affi... |
a48f651435d212907cb34164470a9028ba161300 | test/test_vasp_raman.py | test/test_vasp_raman.py | # -*- coding: utf-8 -*-
import os
import time
import unittest
import vasp_raman
class VaspRamanTester(unittest.TestCase):
def testMAT_m_VEC(self):
self.assertTrue(False)
| # -*- coding: utf-8 -*-
import os
import time
import unittest
import vasp_raman
class VaspRamanTester(unittest.TestCase):
def testT(self):
m = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]
mref = [[1, 4, 7], [2, 5, 8], [3, 6, 9]]
mres = vasp_raman.T(m)
for i in range(len(m)):
self.... | Add a test for vasp_raman.T | Add a test for vasp_raman.T
| Python | mit | raman-sc/VASP,raman-sc/VASP | ---
+++
@@ -5,5 +5,10 @@
import vasp_raman
class VaspRamanTester(unittest.TestCase):
- def testMAT_m_VEC(self):
- self.assertTrue(False)
+ def testT(self):
+ m = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]
+ mref = [[1, 4, 7], [2, 5, 8], [3, 6, 9]]
+
+ mres = vasp_raman.T(m)
+ for i... |
c99bbc0a30dca8aaa72a4c79543400d9fbf97ebb | tests/test_compat.py | tests/test_compat.py | import click
import pytest
if click.__version__ >= '3.0':
def test_legacy_callbacks(runner):
def legacy_callback(ctx, value):
return value.upper()
@click.command()
@click.option('--foo', callback=legacy_callback)
def cli(foo):
click.echo(foo)
with ... | import click
import pytest
if click.__version__ >= '3.0':
def test_legacy_callbacks(runner):
def legacy_callback(ctx, value):
return value.upper()
@click.command()
@click.option('--foo', callback=legacy_callback)
def cli(foo):
click.echo(foo)
with ... | Fix failing bash completion function test signature. | Fix failing bash completion function test signature.
| Python | bsd-3-clause | pallets/click,mitsuhiko/click | ---
+++
@@ -20,6 +20,6 @@
def test_bash_func_name():
from click._bashcomplete import get_completion_script
- script = get_completion_script('foo-bar baz_blah', '_COMPLETE_VAR').strip()
+ script = get_completion_script('foo-bar baz_blah', '_COMPLETE_VAR', 'bash').strip()
assert script.startswith('_f... |
22a1e02efae195ef8f93a34eedfc28a8d9bb40ba | tests/test_prompt.py | tests/test_prompt.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
test_prompt
--------------
Tests for `cookiecutter.prompt` module.
"""
import unittest
from cookiecutter import prompt
class TestPrompt(unittest.TestCase):
def test_prompt_for_config(self):
context = {"cookiecutter": {"full_name": "Your Name",
... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
test_prompt
--------------
Tests for `cookiecutter.prompt` module.
"""
import unittest
from unittest.mock import patch
from cookiecutter import prompt
# class TestPrompt(unittest.TestCase):
# def test_prompt_for_config(self):
# context = {"cookiecutter... | Add many tests for prompt.query_yes_no(). | Add many tests for prompt.query_yes_no().
| Python | bsd-3-clause | kkujawinski/cookiecutter,utek/cookiecutter,foodszhang/cookiecutter,audreyr/cookiecutter,alex/cookiecutter,letolab/cookiecutter,venumech/cookiecutter,dajose/cookiecutter,venumech/cookiecutter,michaeljoseph/cookiecutter,atlassian/cookiecutter,willingc/cookiecutter,pjbull/cookiecutter,vincentbernat/cookiecutter,sp1rs/cook... | ---
+++
@@ -9,14 +9,68 @@
"""
import unittest
+from unittest.mock import patch
from cookiecutter import prompt
-class TestPrompt(unittest.TestCase):
- def test_prompt_for_config(self):
- context = {"cookiecutter": {"full_name": "Your Name",
- "email": "you@examp... |
eed78d3a671aee0fcc0760f15087085f2918da6c | travis_ci/settings.py | travis_ci/settings.py | """GeoKey settings."""
from geokey.core.settings.dev import *
DEFAULT_FROM_EMAIL = 'no-reply@travis-ci.org'
ACCOUNT_EMAIL_VERIFICATION = 'optional'
SECRET_KEY = 'xxxxxxxxxxxxxxxxxxxxxxxxx'
DATABASES = {
'default': {
'ENGINE': 'django.contrib.gis.db.backends.postgis',
'NAME': 'geokey',
'... | """GeoKey settings."""
from geokey.core.settings.dev import *
DEFAULT_FROM_EMAIL = 'no-reply@travis-ci.org'
ACCOUNT_EMAIL_VERIFICATION = 'optional'
SECRET_KEY = 'xxxxxxxxxxxxxxxxxxxxxxxxx'
DATABASES = {
'default': {
'ENGINE': 'django.contrib.gis.db.backends.postgis',
'NAME': 'geokey',
'... | Add "localhost" in the allowed hosts for testing purposes | Add "localhost" in the allowed hosts for testing purposes
| Python | mit | ExCiteS/geokey-epicollect,ExCiteS/geokey-epicollect | ---
+++
@@ -19,6 +19,8 @@
}
}
+ALLOWED_HOSTS = ['localhost']
+
INSTALLED_APPS += (
'geokey_epicollect',
) |
4c6fb23dd40216604f914d4f869b40d23b13bf73 | django/__init__.py | django/__init__.py | VERSION = (1, 4, 5, 'final', 0)
def get_version(version=None):
"""Derives a PEP386-compliant version number from VERSION."""
if version is None:
version = VERSION
assert len(version) == 5
assert version[3] in ('alpha', 'beta', 'rc', 'final')
# Now build the two parts of the version number:... | VERSION = (1, 4, 6, 'alpha', 0)
def get_version(version=None):
"""Derives a PEP386-compliant version number from VERSION."""
if version is None:
version = VERSION
assert len(version) == 5
assert version[3] in ('alpha', 'beta', 'rc', 'final')
# Now build the two parts of the version number:... | Bump version to no longer claim to be 1.4.5 final. | [1.4.x] Bump version to no longer claim to be 1.4.5 final.
| Python | bsd-3-clause | riklaunim/django-custom-multisite,riklaunim/django-custom-multisite,riklaunim/django-custom-multisite | ---
+++
@@ -1,4 +1,4 @@
-VERSION = (1, 4, 5, 'final', 0)
+VERSION = (1, 4, 6, 'alpha', 0)
def get_version(version=None):
"""Derives a PEP386-compliant version number from VERSION.""" |
0e46b47a3053e63f50d6fd90b1ba810e4694c9be | blo/__init__.py | blo/__init__.py | from blo.BloArticle import BloArticle
from blo.DBControl import DBControl
class Blo:
def __init__(self, db_file_path, template_dir=""):
self.template_dir = template_dir
# create tables
self.db_file_path = db_file_path
self.db_control = DBControl(self.db_file_path)
self.db_c... | import configparser
from blo.BloArticle import BloArticle
from blo.DBControl import DBControl
class Blo:
def __init__(self, config_file_path):
config = configparser.ConfigParser()
config.read(config_file_path)
self.template_dir = config['TEMPLATE']['TEMPLATE_DIR']
self.db_file_path... | Implement system configurations load from file. | Implement system configurations load from file.
| Python | mit | 10nin/blo,10nin/blo | ---
+++
@@ -1,12 +1,16 @@
+import configparser
from blo.BloArticle import BloArticle
from blo.DBControl import DBControl
class Blo:
- def __init__(self, db_file_path, template_dir=""):
- self.template_dir = template_dir
+ def __init__(self, config_file_path):
+ config = configparser.ConfigP... |
91d24b3ce272ff166d1e828f0822e7b9a0124d2c | tests/test_dataset.py | tests/test_dataset.py | import pytest
from zfssnap import Host, Dataset
import subprocess
PROPERTY_PREFIX = 'zfssnap'
class TestDataset(object):
@pytest.fixture
def fs(self):
fs_name = 'zpool/dataset'
host = Host()
return Dataset(host, fs_name)
@pytest.fixture
def ssh_fs(self):
ssh_user = '... | import pytest
from zfssnap import autotype, Host, Dataset
import subprocess
PROPERTY_PREFIX = 'zfssnap'
class TestDataset(object):
@pytest.fixture
def fs(self):
fs_name = 'zpool/dataset'
host = Host()
return Dataset(host, fs_name)
@pytest.fixture
def ssh_fs(self):
ss... | Fix broken tests after moving _autoconvert to autotype | Fix broken tests after moving _autoconvert to autotype
| Python | mit | hkbakke/zfssnap,hkbakke/zfssnap | ---
+++
@@ -1,5 +1,5 @@
import pytest
-from zfssnap import Host, Dataset
+from zfssnap import autotype, Host, Dataset
import subprocess
@@ -21,11 +21,11 @@
host = Host(ssh_user=ssh_user, ssh_host=ssh_host)
return Dataset(host, fs_name)
- def test_autoconvert_to_int(self):
- assert ... |
a0a1606d115efd3521ac957aa9a39efec60eda8c | tests/test_issuers.py | tests/test_issuers.py | from mollie.api.objects.issuer import Issuer
from .utils import assert_list_object
def test_get_issuers(client, response):
"""Get all the iDeal issuers via the include querystring parameter."""
response.get('https://api.mollie.com/v2/methods/ideal?include=issuers', 'method_get_ideal_with_includes')
issu... | from mollie.api.objects.issuer import Issuer
from .utils import assert_list_object
def test_get_issuers(client, response):
"""Get all the iDeal issuers via the include querystring parameter."""
response.get('https://api.mollie.com/v2/methods/ideal?include=issuers', 'method_get_ideal_with_includes')
issu... | Test the first item of the list, not the last | Test the first item of the list, not the last
| Python | bsd-2-clause | mollie/mollie-api-python | ---
+++
@@ -10,10 +10,11 @@
issuers = client.methods.get('ideal', include='issuers').issuers
assert_list_object(issuers, Issuer)
- # check the last issuer
- assert issuer.image_svg == 'https://www.mollie.com/external/icons/ideal-issuers/FVLBNL22.svg'
- assert issuer.image_size1x == 'https://www.m... |
1ccd9e7f15cfaccfadf7e4e977dbde724885cab9 | tests/test_sync_call.py | tests/test_sync_call.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/.
"""
Tests for synchronous call helper
"""
import time
from switchy import sync_caller
from switchy.apps.players import To... | # 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/.
"""
Tests for synchronous call helper
"""
import time
from switchy import sync_caller
from switchy.apps.players import To... | Add a `PlayRec` app unit test | Add a `PlayRec` app unit test
Merely checks that all sessions are recorded as expected and that the call
is hung up afterwards. None of the recorded audio content is verified.
| Python | mpl-2.0 | sangoma/switchy,wwezhuimeng/switch | ---
+++
@@ -6,7 +6,7 @@
"""
import time
from switchy import sync_caller
-from switchy.apps.players import TonePlay
+from switchy.apps.players import TonePlay, PlayRec
def test_toneplay(fsip):
@@ -25,3 +25,23 @@
sess.hangup()
time.sleep(0.1)
assert caller.client.listener.count_calls(... |
8793b1a2c4adf480534cf2a669337032edf77020 | golang/main.py | golang/main.py | #!/usr/bin/env python
from evolution_master.runners import pkg, download
# Install for Arch
with pkg.pacman() as pkg_man:
pkg_man.install('go')
# Install for Debian & Ubuntu
with pkg.apt() as pkg_man:
pkg_man.install('golang')
# Install for OSX
with pkg.brew() as pkg_man:
pkg_man.install('go')
# Instal... | from evolution_master.runners import pkg, download
# Install for Arch
with pkg.pacman() as pkg_man:
pkg_man.install('go')
# Install for Debian & Ubuntu
with pkg.apt() as pkg_man:
pkg_man.install('golang')
# Install for OSX
with pkg.brew() as pkg_man:
pkg_man.install('go')
# Install for Windows
with dow... | Remove header, this will be imported by a runner | Remove header, this will be imported by a runner | Python | mit | hatchery/Genepool2,hatchery/genepool | ---
+++
@@ -1,5 +1,3 @@
-#!/usr/bin/env python
-
from evolution_master.runners import pkg, download
# Install for Arch |
6f24aa5e1e1ff78e95ed17ff75acc2646280bdd8 | typedmarshal/util.py | typedmarshal/util.py | def pretty_print_recursive(obj, indent=0):
def i_print(s):
print(' ' * indent + s)
if obj is None:
i_print('None')
elif isinstance(obj, (int, float, str)):
i_print(f'{obj}')
elif isinstance(obj, list):
for l in obj:
pretty_print_recursive(l, indent=indent+2)
... | def pretty_print_recursive(obj, indent=0):
def i_print(s):
print(' ' * indent + s)
if obj is None:
i_print('None')
elif isinstance(obj, (int, float, str)):
i_print(f'{obj}')
elif isinstance(obj, list):
for l in obj:
pretty_print_recursive(l, indent=indent+2)
... | Add None identifier / repr print | Add None identifier / repr print
| Python | bsd-3-clause | puhitaku/typedmarshal | ---
+++
@@ -10,16 +10,18 @@
for l in obj:
pretty_print_recursive(l, indent=indent+2)
elif isinstance(obj, dict):
- for k, v in obj:
- i_print(f'{k}: {v}')
+ for k, v in obj.items():
+ i_print(f'{k}: {repr(v)}')
else:
for k, v in obj.__dict__... |
4c8dd2b074d2c2227729ff0bd87cf60d06e97485 | retry.py | retry.py | # Define retry util function
class RetryException(Exception):
pass
def retry(func, max_retry=10):
"""
@param func: The function that needs to be retry
(to pass function with arguments use partial object)
@param max_retry: Maximum retry of `func` function, default is `10`
@return... | # Helper script with retry utility function
# set logging for `retry` channel
import logging
logger = logging.getLogger('retry')
# Define Exception class for retry
class RetryException(Exception):
DESCRIPTION = "Exception ({}) raised after {} tries."
def __init__(self, exception, max_retry):
self.ex... | Extend custom exception and add additional logging | Extend custom exception and add additional logging | Python | mit | duboviy/misc | ---
+++
@@ -1,10 +1,26 @@
-# Define retry util function
+# Helper script with retry utility function
+
+# set logging for `retry` channel
+import logging
+logger = logging.getLogger('retry')
+# Define Exception class for retry
class RetryException(Exception):
- pass
+ DESCRIPTION = "Exception ({}) raised a... |
5fbb833cf5fa33f2d364d6b56fcc90240297a57b | src/sentry/utils/metrics.py | src/sentry/utils/metrics.py | from __future__ import absolute_import
__all__ = ['timing', 'incr']
from django_statsd.clients import statsd
from django.conf import settings
from random import random
def _get_key(key):
prefix = settings.SENTRY_METRICS_PREFIX
if prefix:
return '{}{}'.format(prefix, key)
return key
def incr(ke... | from __future__ import absolute_import
__all__ = ['timing', 'incr']
from django_statsd.clients import statsd
from django.conf import settings
from random import random
def _get_key(key):
prefix = settings.SENTRY_METRICS_PREFIX
if prefix:
return '{}{}'.format(prefix, key)
return key
def incr(ke... | Handle sample rate in counts | Handle sample rate in counts
| Python | bsd-3-clause | JackDanger/sentry,zenefits/sentry,argonemyth/sentry,jean/sentry,zenefits/sentry,nicholasserra/sentry,1tush/sentry,songyi199111/sentry,JamesMura/sentry,korealerts1/sentry,gg7/sentry,jean/sentry,zenefits/sentry,argonemyth/sentry,boneyao/sentry,Kryz/sentry,jean/sentry,vperron/sentry,kevinastone/sentry,looker/sentry,ifduyu... | ---
+++
@@ -23,7 +23,9 @@
rate=sample_rate)
if sample_rate >= 1 or random() >= sample_rate:
- tsdb.incr(tsdb.models.internal, key)
+ if sample_rate > 0 and sample_rate < 1:
+ amount = amount * (1.0 / sample_rate)
+ tsdb.incr(tsdb.models.internal, key, amount)
... |
c2138a35123969651212b1d9cd6cdefef89663ec | openedx/core/djangoapps/programs/migrations/0003_auto_20151120_1613.py | openedx/core/djangoapps/programs/migrations/0003_auto_20151120_1613.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('programs', '0002_programsapiconfig_cache_ttl'),
]
operations = [
migrations.AddField(
model_name='programsapicon... | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('programs', '0002_programsapiconfig_cache_ttl'),
]
operations = [
migrations.AddField(
model_name='programsapicon... | Modify existing Programs migration to account for help_text change | Modify existing Programs migration to account for help_text change
Prevents makemigrations from creating a new migration for the programs app.
| Python | agpl-3.0 | shurihell/testasia,fintech-circle/edx-platform,doganov/edx-platform,synergeticsedx/deployment-wipro,proversity-org/edx-platform,stvstnfrd/edx-platform,shurihell/testasia,amir-qayyum-khan/edx-platform,RPI-OPENEDX/edx-platform,analyseuc3m/ANALYSE-v1,kmoocdev2/edx-platform,devs1991/test_edx_docmode,UOMx/edx-platform,solas... | ---
+++
@@ -14,12 +14,22 @@
migrations.AddField(
model_name='programsapiconfig',
name='authoring_app_css_path',
- field=models.CharField(max_length=255, verbose_name="Path to authoring app's CSS", blank=True),
+ field=models.CharField(
+ max_leng... |
e34ce0033e1ffc3f6a81d37260056166ac5f582d | setup.py | setup.py | from setuptools import setup, find_packages
version = '3.7'
setup(name='jarn.mkrelease',
version=version,
description='Python egg releaser',
long_description=open('README.txt').read() + '\n' +
open('CHANGES.txt').read(),
classifiers=[
'Development Status :: 5 -... | from setuptools import setup, find_packages
version = '3.7'
setup(name='jarn.mkrelease',
version=version,
description='Python egg releaser',
long_description=open('README.txt').read() + '\n' +
open('CHANGES.txt').read(),
classifiers=[
'Development Status :: 5 -... | Exclude filter and xrange fixers. | Exclude filter and xrange fixers.
| Python | bsd-2-clause | Jarn/jarn.mkrelease | ---
+++
@@ -26,7 +26,6 @@
namespace_packages=['jarn'],
include_package_data=True,
zip_safe=False,
- use_2to3=True,
test_suite='jarn.mkrelease.tests',
install_requires=[
'setuptools',
@@ -38,4 +37,9 @@
entry_points={
'console_scripts': 'mkrelease=jar... |
f2eb45ea24429fd3e4d32a490dbe3f8a2f383d9f | scuole/stats/models/base.py | scuole/stats/models/base.py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
from django.db import models
from django.utils.encoding import python_2_unicode_compatible
from .staff_student import StaffStudentBase
@python_2_unicode_compatible
class SchoolYear(models.Model):
name = models.CharField(max_length=... | # -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
from django.db import models
from django.utils.encoding import python_2_unicode_compatible
from .staff_student import StaffStudentBase
from .postsecondary_readiness import PostSecondaryReadinessBase
@python_2_unicode_compatible
class S... | Add postsecondary stats to the StatsBase model | Add postsecondary stats to the StatsBase model
| Python | mit | texastribune/scuole,texastribune/scuole,texastribune/scuole,texastribune/scuole | ---
+++
@@ -5,6 +5,7 @@
from django.utils.encoding import python_2_unicode_compatible
from .staff_student import StaffStudentBase
+from .postsecondary_readiness import PostSecondaryReadinessBase
@python_2_unicode_compatible
@@ -15,7 +16,7 @@
return self.name
-class StatsBase(StaffStudentBase):
+... |
91682c5db1cb4267e719723a15de7b3f34393f9f | setup.py | setup.py | #!/usr/bin/python
from setuptools import setup
from setuptools import find_packages
__author__ = 'Ryan McGrath <ryan@venodesigns.net>'
__version__ = '1.5.0'
setup(
name='twython-django',
version=__version__,
install_requires=['twython>=3.0.0', 'django'],
author='Ryan McGrath',
author_email='ryan@... | #!/usr/bin/env python
import os
import sys
from setuptools import setup
from setuptools import find_packages
__author__ = 'Ryan McGrath <ryan@venodesigns.net>'
__version__ = '1.5.1'
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys.exit()
setup(
name='twython-django',
vers... | Prepare for twython-django pip release | Prepare for twython-django pip release
| Python | mit | ryanmcgrath/twython-django,c17r/twython-django,aniversarioperu/twython-django,aniversarioperu/twython-django,c17r/twython-django | ---
+++
@@ -1,15 +1,22 @@
-#!/usr/bin/python
+#!/usr/bin/env python
+
+import os
+import sys
from setuptools import setup
from setuptools import find_packages
__author__ = 'Ryan McGrath <ryan@venodesigns.net>'
-__version__ = '1.5.0'
+__version__ = '1.5.1'
+
+if sys.argv[-1] == 'publish':
+ os.system('python... |
26d3b8eb1992b19aebe8f0e3eae386e8b95822fb | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages, Command
import os
packages = find_packages()
class PyTest(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
import sys
... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from distutils.core import setup, Command
import os
class PyTest(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
import sys
import subprocess
errno =... | Switch to distutils, fix install for py3.4 | Switch to distutils, fix install for py3.4
setuptools is goddamned terrible | Python | mit | njvack/scorify | ---
+++
@@ -1,10 +1,8 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
-from setuptools import setup, find_packages, Command
+from distutils.core import setup, Command
import os
-
-packages = find_packages()
class PyTest(Command):
@@ -25,7 +23,9 @@
def get_locals(filename):
l = {}
- execfile(file... |
6e18192da18b6d1b9c6443981f007126ea7e6927 | setup.py | setup.py | #! /usr/bin/env python
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
from csdms.dakota import __version__, plugin_script
package_name = 'csdms.dakota'
setup(name=package_name,
version=__version__,
author='Mark Piper',
author_email='mark.piper@colora... | #! /usr/bin/env python
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
from csdms.dakota import __version__, plugin_script
setup(name='csdms-dakota',
version=__version__,
author='Mark Piper',
author_email='mark.piper@colorado.edu',
license='MIT',... | Change package name to use hyphen | Change package name to use hyphen
| Python | mit | csdms/dakota,csdms/dakota | ---
+++
@@ -4,9 +4,7 @@
from setuptools import setup, find_packages
from csdms.dakota import __version__, plugin_script
-package_name = 'csdms.dakota'
-
-setup(name=package_name,
+setup(name='csdms-dakota',
version=__version__,
author='Mark Piper',
author_email='mark.piper@colorado.edu',
@@ -... |
0f22ce31a7067386a0b29b6d107c3e9481fc1492 | setup.py | setup.py | from setuptools import setup, find_packages
setup(
name = "open511-server",
version = "0.1",
url='',
license = "",
packages = find_packages(),
install_requires = [
'open511==0.5',
'lxml>=3.0,<=4.0',
'WebOb==1.5.1',
'python-dateutil==2.4.2',
'requests==2.8... | from setuptools import setup, find_packages
setup(
name = "open511-server",
version = "0.1",
url='',
license = "",
packages = find_packages(),
install_requires = [
'open511==0.5',
'lxml>=3.0,<=4.0',
'WebOb==1.5.1',
'python-dateutil==2.4.2',
'requests==2.8... | Change Django requirement to avoid 1.10 alpha | Change Django requirement to avoid 1.10 alpha
| Python | mit | Open511/open511-server,Open511/open511-server,Open511/open511-server | ---
+++
@@ -15,7 +15,7 @@
'pytz>=2015b',
'django-appconf==1.0.1',
'cssselect==0.9.1',
- 'Django>=1.9.2,<=1.10',
+ 'Django>=1.9.2,<=1.9.99',
'jsonfield==1.0.3'
],
entry_points = { |
fcd6af0a2a02ef87eedd78aa3c09836cc0799a29 | utils/python_version.py | utils/python_version.py | #! /usr/bin/env python
"""Print Python interpreter path and version."""
import sys
sys.stdout.write(sys.executable + '\n')
sys.stdout.write(sys.version + '\n')
sys.stdout.flush()
| #! /usr/bin/env python
"""Print Python interpreter path and version."""
import sys
sys.stdout.write('%s\n' % sys.executable)
sys.stdout.write('%s\n' % sys.version)
try:
import icu # pylint: disable=g-import-not-at-top
sys.stdout.write('ICU %s\n' % icu.ICU_VERSION)
sys.stdout.write('Unicode %s\n' % icu.UNICOD... | Print ICU and Unicode version, if available | Print ICU and Unicode version, if available
| Python | apache-2.0 | googlei18n/language-resources,googlei18n/language-resources,googlei18n/language-resources,googlei18n/language-resources,google/language-resources,google/language-resources,google/language-resources,google/language-resources,googlei18n/language-resources,googlei18n/language-resources,google/language-resources,google/lan... | ---
+++
@@ -4,6 +4,14 @@
import sys
-sys.stdout.write(sys.executable + '\n')
-sys.stdout.write(sys.version + '\n')
+sys.stdout.write('%s\n' % sys.executable)
+sys.stdout.write('%s\n' % sys.version)
+
+try:
+ import icu # pylint: disable=g-import-not-at-top
+ sys.stdout.write('ICU %s\n' % icu.ICU_VERSION)
+ s... |
15b8810b3bf244295f38b628a0ebb1cb72f46bb3 | service_time.py | service_time.py | """ service_time.py """
from datetime import datetime
from flask import Flask, jsonify
app = Flask(__name__)
count = 0
@app.route("/time", methods=['GET'])
def get_datetime():
global count
count += 1
return jsonify(count=count,
datetime=datetime.now().isoformat())
if __name__ == "... | """ service_time.py """
from datetime import datetime
from time import sleep
from flask import Flask, jsonify
app = Flask(__name__)
count = 0
@app.route("/time", methods=['GET'])
def get_datetime():
global count
# sleep to simulate the service response time degrading
sleep(count)
count += 1
re... | Update time service to simulate gradually increasing slow response times. | Update time service to simulate gradually increasing slow response times.
| Python | mit | danriti/short-circuit,danriti/short-circuit | ---
+++
@@ -1,6 +1,7 @@
""" service_time.py """
from datetime import datetime
+from time import sleep
from flask import Flask, jsonify
@@ -12,6 +13,8 @@
@app.route("/time", methods=['GET'])
def get_datetime():
global count
+ # sleep to simulate the service response time degrading
+ sleep(count)
... |
38c33a772532f33751dbbebe3ee0ecd0ad993616 | alembic/versions/1fbbb727e1dc_change_last_ip_to_inet.py | alembic/versions/1fbbb727e1dc_change_last_ip_to_inet.py | """Change last_ip to inet.
Revision ID: 1fbbb727e1dc
Revises: 2dd8b091742b
Create Date: 2015-08-31 20:54:43.824788
"""
# revision identifiers, used by Alembic.
revision = '1fbbb727e1dc'
down_revision = '2dd8b091742b'
branch_labels = None
depends_on = None
from alembic import op
import sqlalchemy as sa
def upgrade... | """Change last_ip to inet.
Revision ID: 1fbbb727e1dc
Revises: 2dd8b091742b
Create Date: 2015-08-31 20:54:43.824788
"""
# revision identifiers, used by Alembic.
revision = '1fbbb727e1dc'
down_revision = '2dd8b091742b'
branch_labels = None
depends_on = None
from alembic import op
import sqlalchemy as sa
def upgrade... | Fix migrations from text to inet. | Fix migrations from text to inet.
| Python | agpl-3.0 | MSPARP/newparp,MSPARP/newparp,MSPARP/newparp | ---
+++
@@ -17,9 +17,9 @@
def upgrade():
- ### commands auto generated by Alembic - please adjust! ###
+ # Default needs to be dropped because the old default of an empty string cannot be casted to an IP.
+ op.execute(u'alter table users alter column last_ip drop default;')
op.execute(u'alter table... |
89cda8553c662ac7b435516d888706e3f3193cb7 | sir/__main__.py | sir/__main__.py | import argparse
from .schema import SCHEMA
def reindex(args):
known_entities = SCHEMA.keys()
if args['entities'] is not None:
entities = []
for e in args['entities']:
entities.extend(e.split(','))
unknown_entities = set(known_entities) - set(entities)
if unknown_e... | import argparse
from .schema import SCHEMA
def reindex(args):
known_entities = SCHEMA.keys()
if args['entities'] is not None:
entities = []
for e in args['entities']:
entities.extend(e.split(','))
unknown_entities = set(entities) - set(known_entities)
if unknown_e... | Fix the unknown entity type test | Fix the unknown entity type test
We want to check if any user-supplied entity name is unkown, not if any
of the known types are not in the user-supplied list
| Python | mit | jeffweeksio/sir | ---
+++
@@ -10,7 +10,7 @@
entities = []
for e in args['entities']:
entities.extend(e.split(','))
- unknown_entities = set(known_entities) - set(entities)
+ unknown_entities = set(entities) - set(known_entities)
if unknown_entities:
raise ValueError("{... |
bcc206b46c089ea7f7ea5dfbc5c8b11a1fe72447 | movie_time_app/models.py | movie_time_app/models.py | from django.db import models
# Create your models here.
class Movie(models.Model):
movie_id = models.IntegerField(primary_key=True)
title = models.CharField(max_length=200)
poster = models.ImageField(null=True, blank=True)
year = models.IntegerField(null=True)
genres = models.CharField(max_length=2... | from django.db import models
# Create your models here.
class Movie(models.Model):
movie_id = models.IntegerField(primary_key=True)
title = models.CharField(max_length=200)
poster = models.ImageField(null=True, blank=True)
year = models.IntegerField(null=True)
genres = models.CharField(max_length=2... | Add self-rating flag for movies. Removed LikedOrNot table | Add self-rating flag for movies. Removed LikedOrNot table
| Python | mit | osama-haggag/movie-time,osama-haggag/movie-time | ---
+++
@@ -11,15 +11,10 @@
rating_median = models.FloatField(null=True)
rating_mean = models.FloatField(null=True)
relatable = models.BooleanField(default=True)
+ liked_or_not = models.NullBooleanField(null=True, blank=True)
def __str__(self):
return self.title
-
-
-class LikedOrNot... |
bf97132fd263026aea42d5af9772d378eaec67d9 | setup.py | setup.py | import subprocess
import sys
from setuptools import Command, setup
class RunTests(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
errno = subprocess.call([sys.executable, '-m', 'unittest', 'gis_metadata.tests.te... | import subprocess
import sys
from setuptools import Command, setup
class RunTests(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
errno = subprocess.call([sys.executable, '-m', 'unittest', 'gis_metadata.tests.te... | Enable markdown for PyPI README | Enable markdown for PyPI README | Python | bsd-3-clause | consbio/gis-metadata-parser | ---
+++
@@ -26,8 +26,9 @@
name='gis_metadata_parser',
description='Parser for GIS metadata standards including FGDC and ISO-19115',
long_description=long_description,
+ long_description_content_type='text/markdown',
keywords='arcgis,fgdc,iso,ISO-19115,ISO-19139,gis,metadata,parser,xml,gis_metad... |
d261a41419ab1d2f0543798743ff34607d3d455f | setup.py | setup.py | from setuptools import setup
import sys
install_requires = ['six']
if sys.version_info[0] == 2 and sys.version_info[1] == 6:
install_requires.extend(['ordereddict', 'argparse'])
setup(
name='pyfaidx',
provides='pyfaidx',
version='0.3.0',
author='Matthew Shirley',
author_email='mdshw5@gmail.co... | from setuptools import setup
import sys
install_requires = ['six']
if sys.version_info[0] == 2 and sys.version_info[1] == 6:
install_requires.extend(['ordereddict', 'argparse'])
setup(
name='pyfaidx',
provides='pyfaidx',
version='0.3.1',
author='Matthew Shirley',
author_email='mdshw5@gmail.co... | Increment version for deployment. Update trove classifier. | Increment version for deployment. Update trove classifier.
| Python | bsd-3-clause | mattions/pyfaidx | ---
+++
@@ -9,7 +9,7 @@
setup(
name='pyfaidx',
provides='pyfaidx',
- version='0.3.0',
+ version='0.3.1',
author='Matthew Shirley',
author_email='mdshw5@gmail.com',
url='http://mattshirley.com',
@@ -21,7 +21,7 @@
install_requires=install_requires,
entry_points={'console_script... |
cd7584645548758e59e05531d44121fb29c2e27c | setup.py | setup.py | import sys
from setuptools import find_packages, setup
VERSION = '2.0.dev0'
install_requires = [
'django-local-settings>=1.0a8',
'stashward',
]
if sys.version_info[:2] < (3, 4):
install_requires.append('enum34')
setup(
name='django-arcutils',
version=VERSION,
url='https://github.com/PSU-... | import sys
from setuptools import find_packages, setup
VERSION = '2.0.dev0'
install_requires = [
'django-local-settings>=1.0a10',
'stashward',
]
if sys.version_info[:2] < (3, 4):
install_requires.append('enum34')
setup(
name='django-arcutils',
version=VERSION,
url='https://github.com/PSU... | Upgrade django-local-settings 1.0a8 => 1.0a10 | Upgrade django-local-settings 1.0a8 => 1.0a10
| Python | mit | PSU-OIT-ARC/django-arcutils,wylee/django-arcutils,PSU-OIT-ARC/django-arcutils,wylee/django-arcutils | ---
+++
@@ -7,7 +7,7 @@
install_requires = [
- 'django-local-settings>=1.0a8',
+ 'django-local-settings>=1.0a10',
'stashward',
]
|
35b49a952da9cb95fae4fd8eb25752ca9faee5ef | setup.py | setup.py |
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
config = {
'description': 'Logging wrapper',
'author': 'Feth Arezki',
'url': 'https://github.com/majerteam/quicklogging',
'download_url': 'https://github.com/majerteam/quicklogging',
'author_email': 'tec... |
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
config = {
'description': 'Logging wrapper',
'author': 'Feth Arezki',
'url': 'https://github.com/majerteam/quicklogging',
'download_url': 'https://github.com/majerteam/quicklogging',
'author_email': 'tec... | Update test deps: pytest-coverage -> pytest-cov | Update test deps: pytest-coverage -> pytest-cov
| Python | mit | majerteam/quicklogging,majerteam/quicklogging | ---
+++
@@ -13,7 +13,7 @@
'version': '0.2',
'packages': ['quicklogging'],
'setup_requires': ['pytest-runner'],
- 'tests_require': ['pytest', 'pytest-coverage', 'six', 'stringimporter>=0.1.3'],
+ 'tests_require': ['pytest', 'pytest-cov', 'six', 'stringimporter>=0.1.3'],
'name': 'quicklogging'... |
48dc523d438425b2aae9820e835f535b8783d661 | setup.py | setup.py | from paperpal import __version__ as version
def slurp(filename):
with open(filename) as opened_file:
return opened_file.read()
from setuptools import setup
setup(name='paperpal',
version=version,
description='Helper to export Zotero data',
long_description=slurp('README.rst'),
url... | from setuptools import setup, find_packages
from paperpal import __version__ as version
def slurp(filename):
with open(filename) as opened_file:
return opened_file.read()
setup(name='paperpal',
version=version,
description='Paper management with Zotero',
long_description=slurp('README... | Add JavaScript files as package data. | Add JavaScript files as package data.
| Python | apache-2.0 | eddieantonio/paperpal,eddieantonio/paperpal | ---
+++
@@ -1,14 +1,16 @@
+from setuptools import setup, find_packages
+
from paperpal import __version__ as version
+
def slurp(filename):
with open(filename) as opened_file:
return opened_file.read()
-from setuptools import setup
setup(name='paperpal',
version=version,
- descripti... |
798b7976084748d7966b3fc3e4ae2e9a634c99de | setup.py | setup.py | import os
from setuptools import setup, find_packages
import glob
VERSION = "0.6.3"
src_dir = os.path.dirname(__file__)
install_requires = [
"troposphere>=1.8.0",
"boto3>=1.3.1",
"botocore>=1.4.38",
"PyYAML>=3.11",
"awacs>=0.6.0",
"colorama==0.3.7",
]
tests_require = [
"nose>=1.0",
"... | import os
from setuptools import setup, find_packages
import glob
VERSION = "0.6.3"
src_dir = os.path.dirname(__file__)
install_requires = [
"troposphere~=1.8.0",
"boto3~=1.3.1",
"botocore~=1.4.38",
"PyYAML~=3.11",
"awacs~=0.6.0",
"colorama~=0.3.7",
]
tests_require = [
"nose~=1.0",
"... | Use compatible release versions for all dependencies | Use compatible release versions for all dependencies
| Python | bsd-2-clause | remind101/stacker,remind101/stacker,mhahn/stacker,mhahn/stacker | ---
+++
@@ -7,20 +7,20 @@
src_dir = os.path.dirname(__file__)
install_requires = [
- "troposphere>=1.8.0",
- "boto3>=1.3.1",
- "botocore>=1.4.38",
- "PyYAML>=3.11",
- "awacs>=0.6.0",
- "colorama==0.3.7",
+ "troposphere~=1.8.0",
+ "boto3~=1.3.1",
+ "botocore~=1.4.38",
+ "PyYAML~=3.11"... |
a2bd15575f6799a6d473c7fef9bfd4a629a8350a | setup.py | setup.py | from setuptools import setup
with open('README.md') as file:
long_description = file.read()
setup(
name="guacamole-files",
version="0.1.0",
author="Antonin Messinger",
author_email="antonin.messinger@gmail.com",
description=" Upload any file, get a URL back",
long_description=long_descrip... | from setuptools import setup
with open('README.md') as file:
long_description = file.read()
setup(
name="guacamole-files",
version="0.1.0",
author="Antonin Messinger",
author_email="antonin.messinger@gmail.com",
description=" Upload any file, get a URL back",
long_description=long_descrip... | Upgrade to Flask 0.12.3 to fix CVE-2018-1000656 | Upgrade to Flask 0.12.3 to fix CVE-2018-1000656
| Python | mit | Antojitos/guacamole | ---
+++
@@ -28,7 +28,7 @@
packages=['guacamole'],
install_requires=[
- 'Flask==0.10.1',
+ 'Flask==0.12.3',
'Flask-PyMongo==0.4.0',
],
|
8ed470f474b2cac84a18fe3709e67b3a160cfdc6 | setup.py | setup.py | import os
from setuptools import setup
README = open(os.path.join(os.path.dirname(__file__), 'README.md')).read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='django-nexmo',
version='2.0.0',
packages=['djexmo'],
i... | import os
from setuptools import setup
README = open(os.path.join(os.path.dirname(__file__), 'README.md')).read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='django-nexmo',
version='2.0.0',
packages=['djexmo'],
i... | Move lib dependency to nexmo | Move lib dependency to nexmo
| Python | mit | thibault/django-nexmo | ---
+++
@@ -19,7 +19,7 @@
author_email='thibault@miximum.fr',
setup_requires=('setuptools'),
install_requires=[
- 'libnexmo',
+ 'nexmo',
],
classifiers=[
'Environment :: Web Environment',
@@ -31,7 +31,7 @@
'Programming Language :: Python :: 2',
'Progra... |
59761e83b240fe7573370f542ea6e877c5850907 | setup.py | setup.py | #!/usr/bin/env python
from distutils.core import setup, Extension
uinput = Extension('libuinput',
sources = ['src/uinput.c'])
setup(name='python-steamcontroller',
version='1.0',
description='Steam Controller userland driver',
author='Stany MARCEL',
author_email='stanypub@gm... | #!/usr/bin/env python
from distutils.core import setup, Extension
uinput = Extension('libuinput',
sources = ['src/uinput.c'])
setup(name='python-steamcontroller',
version='1.0',
description='Steam Controller userland driver',
author='Stany MARCEL',
author_email='stanypub@gm... | Add json to from vdf scripts | Add json to from vdf scripts
Signed-off-by: Stany MARCEL <3e139d47b96f775f4bc13af807cbc2ea7c67e72b@gmail.com>
| Python | mit | ynsta/steamcontroller,oneru/steamcontroller,oneru/steamcontroller,ynsta/steamcontroller | ---
+++
@@ -14,7 +14,9 @@
package_dir={'steamcontroller': 'src'},
packages=['steamcontroller'],
scripts=['scripts/sc-dump.py',
- 'scripts/sc-xbox.py'],
+ 'scripts/sc-xbox.py',
+ 'scripts/vdf2json.py',
+ 'scripts/json2vdf.py'],
license... |
ca06378b83a2cef1902bff1204cb3f506433f974 | setup.py | setup.py | try:
from setuptools import setup, find_packages
except ImportError:
from distutils.core import setup, find_packages
DESCRIPTION = "Convert Matplotlib plots into Leaflet web maps"
LONG_DESCRIPTION = DESCRIPTION
NAME = "mplleaflet"
AUTHOR = "Jacob Wasserman"
AUTHOR_EMAIL = "jwasserman@gmail.com"
MAINTAINER = "J... | try:
from setuptools import setup, find_packages
except ImportError:
from distutils.core import setup, find_packages
with open('AUTHORS.md') as f:
authors = f.read()
description = "Convert Matplotlib plots into Leaflet web maps"
long_description = description + "\n\n" + authors
NAME = "mplleaflet"
AUTHOR ... | Add authors to long description. | Add authors to long description.
| Python | bsd-3-clause | jwass/mplleaflet,ocefpaf/mplleaflet,jwass/mplleaflet,ocefpaf/mplleaflet | ---
+++
@@ -3,8 +3,11 @@
except ImportError:
from distutils.core import setup, find_packages
-DESCRIPTION = "Convert Matplotlib plots into Leaflet web maps"
-LONG_DESCRIPTION = DESCRIPTION
+with open('AUTHORS.md') as f:
+ authors = f.read()
+
+description = "Convert Matplotlib plots into Leaflet web maps"
... |
f18e291a4ebfb51c6eec18c9c64a8d928fd3aa9e | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup
try:
from pypandoc import convert
read_md = lambda f: convert(f, 'rst')
long_description = read_md('README.md')
except IOError:
print("warning: README.md not found")
long_description = ""
except ImportError:
print("warn... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup
try:
from pypandoc import convert
long_description = convert('README.md', 'md', format='rst')
except IOError:
print("warning: README.md not found")
long_description = ""
except ImportError:
print("warning: pypandoc module n... | Fix for md to rst | Fix for md to rst
| Python | agpl-3.0 | PyBossa/pbs,PyBossa/pbs,PyBossa/pbs | ---
+++
@@ -5,8 +5,7 @@
try:
from pypandoc import convert
- read_md = lambda f: convert(f, 'rst')
- long_description = read_md('README.md')
+ long_description = convert('README.md', 'md', format='rst')
except IOError:
print("warning: README.md not found")
long_description = "" |
9b1ae7410004635dd59d07fda89c9aa93979a88f | setup.py | setup.py | import codecs
from setuptools import setup, find_packages
def long_description():
with codecs.open('README.rst', encoding='utf8') as f:
return f.read()
setup(
name='django-querysetsequence',
packages=find_packages(),
version='0.1',
description='Chain together multiple (disparate) QuerySe... | import codecs
from setuptools import setup, find_packages
def long_description():
with codecs.open('README.rst', encoding='utf8') as f:
return f.read()
setup(
name='django-querysetsequence',
py_modules=['queryset_sequence'],
version='0.1',
description='Chain together multiple (disparate)... | Use py_modules instead of packages. | Use py_modules instead of packages.
This is necessary when only having a "root package".
| Python | isc | percipient/django-querysetsequence | ---
+++
@@ -9,7 +9,7 @@
setup(
name='django-querysetsequence',
- packages=find_packages(),
+ py_modules=['queryset_sequence'],
version='0.1',
description='Chain together multiple (disparate) QuerySets to treat them as a single QuerySet.',
long_description=long_description(), |
6f2690858d41a86ee1d2f3345b544a50438a493f | setup.py | setup.py | import sys
from setuptools import setup, find_packages
extra_setup = {}
if sys.version_info >= (3,):
extra_setup['use_2to3'] = True
setup(
name='blessings',
version='1.4',
description='A thin, practical wrapper around terminal coloring, styling, and positioning',
long_description=open('README.rs... | import sys
from setuptools import setup, find_packages
extra_setup = {}
if sys.version_info >= (3,):
extra_setup['use_2to3'] = True
setup(
name='blessings',
version='1.4',
description='A thin, practical wrapper around terminal coloring, styling, and positioning',
long_description=open('README.rs... | Fix case of "nose" in tests_require. | Fix case of "nose" in tests_require. | Python | mit | tartley/blessings,erikrose/blessings,jquast/blessed | ---
+++
@@ -16,7 +16,7 @@
author_email='erikrose@grinchcentral.com',
license='MIT',
packages=find_packages(exclude=['ez_setup']),
- tests_require=['Nose'],
+ tests_require=['nose'],
url='https://github.com/erikrose/blessings',
include_package_data=True,
classifiers=[ |
825ab4f2a26e7a5c4348f1adfa8e5163013e43f7 | setup.py | setup.py | #!/usr/bin/env python
#coding: utf-8
from cms import VERSION
from setuptools import setup, find_packages
EXCLUDE_FROM_PACKAGES = ['cms.bin']
setup(
name="onespacemedia-cms",
version=".".join(str(n) for n in VERSION),
url="https://github.com/onespacemedia/cms",
author="Daniel Samuels",
author_ema... | #!/usr/bin/env python
#coding: utf-8
from cms import VERSION
from setuptools import setup, find_packages
EXCLUDE_FROM_PACKAGES = ['cms.bin']
setup(
name="onespacemedia-cms",
version=".".join(str(n) for n in VERSION),
url="https://github.com/onespacemedia/cms",
author="Daniel Samuels",
author_ema... | Add raven to the dependancy list. | Add raven to the dependancy list. | Python | bsd-3-clause | jamesfoley/cms,danielsamuels/cms,lewiscollard/cms,danielsamuels/cms,lewiscollard/cms,dan-gamble/cms,lewiscollard/cms,dan-gamble/cms,jamesfoley/cms,danielsamuels/cms,dan-gamble/cms,jamesfoley/cms,jamesfoley/cms | ---
+++
@@ -35,6 +35,7 @@
'django-historylinks',
'django-watson',
'django-extensions',
- 'Werkzeug'
+ 'Werkzeug',
+ 'raven'
],
) |
a620066a23f21b8a736cae0238dfa3ee8549e3a7 | setup.py | setup.py | #!/usr/bin/env python
import os
import sys
from serfclient import __version__
try:
from setuptools import setup
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args ... | #!/usr/bin/env python
import os
import sys
from serfclient import __version__
try:
from setuptools import setup
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args ... | Add pytest-cov as a test dependency | Add pytest-cov as a test dependency
As part of CI we want to check our code coverage as we work on this
python module.
| Python | mit | charleswhchan/serfclient-py,KushalP/serfclient-py | ---
+++
@@ -42,6 +42,6 @@
license='MIT',
packages=['serfclient'],
install_requires=['msgpack-python >= 0.4.0'],
- tests_require=['pytest >= 2.5.2'],
+ tests_require=['pytest >= 2.5.2', 'pytest-cov >= 1.6'],
cmdclass={'test': PyTest}
) |
3c89214e45f631d8258f75e7f96c252c181dfdab | setup.py | setup.py | from sys import version_info
from setuptools import find_packages, setup
VERSION = open('puresnmp/version.txt').read().strip()
DEPENDENCIES = []
if version_info < (3, 5):
DEPENDENCIES.append('typing')
setup(
name="puresnmp",
version=VERSION,
description="Pure Python SNMP implementation",
long_des... | from sys import version_info
from setuptools import find_packages, setup
VERSION = open('puresnmp/version.txt').read().strip()
DEPENDENCIES = []
if version_info < (3, 5):
DEPENDENCIES.append('typing')
if version_info < (3, 3):
DEPENDENCIES.append('ipaddress')
DEPENDENCIES.append('mock')
setup(
name="... | Add missing dependencies for Python 2 | Add missing dependencies for Python 2
| Python | mit | exhuma/puresnmp,exhuma/puresnmp | ---
+++
@@ -6,6 +6,9 @@
DEPENDENCIES = []
if version_info < (3, 5):
DEPENDENCIES.append('typing')
+if version_info < (3, 3):
+ DEPENDENCIES.append('ipaddress')
+ DEPENDENCIES.append('mock')
setup(
name="puresnmp", |
179e72db3d95a41d53ebd019a5cb698a7767eb45 | setup.py | setup.py | try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(
name="xutils",
version="0.8",
description="A Fragmentary Python Library.",
author="xgfone",
author_email="xgfone@126.com",
maintainer="xgfone",
maintainer_email="xgfone@126.com",
url="h... | try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(
name="xutils",
version="0.8.1",
description="A Fragmentary Python Library.",
author="xgfone",
author_email="xgfone@126.com",
maintainer="xgfone",
maintainer_email="xgfone@126.com",
url=... | Set the version to 0.8.1 | Set the version to 0.8.1
| Python | mit | xgfone/xutils,xgfone/pycom | ---
+++
@@ -5,7 +5,7 @@
setup(
name="xutils",
- version="0.8",
+ version="0.8.1",
description="A Fragmentary Python Library.",
author="xgfone",
author_email="xgfone@126.com", |
2df022622348c568bfb2620dfa2b9803de3ca2d5 | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup
URL_BASE = 'https://github.com/astropy/astropy-tools/'
setup(
name='astropy-tools',
version='0.0.0.dev0',
author='The Astropy Developers',
author_email='astropy.team@gmail.com',
url=URL_BASE,
download_url=URL_BASE + 'archive/master.zip',
... | #!/usr/bin/env python
from setuptools import setup
URL_BASE = 'https://github.com/astropy/astropy-tools/'
setup(
name='astropy-tools',
version='0.0.0.dev0',
author='The Astropy Developers',
author_email='astropy.team@gmail.com',
url=URL_BASE,
download_url=URL_BASE + 'archive/master.zip',
... | Include requests module in requirements for use by the gh_issuereport script | Include requests module in requirements for use by the gh_issuereport script
| Python | bsd-3-clause | astropy/astropy-tools,astropy/astropy-tools | ---
+++
@@ -37,6 +37,7 @@
'issue2pr = issue2pr:main',
'suggest_backports = suggest_backports:main'
]
- }
+ },
+ install_requires=['requests']
)
|
fea6c5e84104b320c3d9475e59f7cf8625339a29 | setup.py | setup.py | from setuptools import setup
setup(
name='tangled.mako',
version='0.1a3.dev0',
description='Tangled Mako integration',
long_description=open('README.rst').read(),
url='http://tangledframework.org/',
download_url='https://github.com/TangledWeb/tangled.mako/tags',
author='Wyatt Baldwin',
... | from setuptools import setup
setup(
name='tangled.mako',
version='0.1a3.dev0',
description='Tangled Mako integration',
long_description=open('README.rst').read(),
url='http://tangledframework.org/',
download_url='https://github.com/TangledWeb/tangled.mako/tags',
author='Wyatt Baldwin',
... | Add generic Python 3 trove classifier | Add generic Python 3 trove classifier
| Python | mit | TangledWeb/tangled.mako | ---
+++
@@ -29,6 +29,7 @@
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
+ 'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
... |
82da444753249df9bbd4c516a7b1f9f5a4a7a29a | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup
setup(
name='yg.emanate',
use_scm_version=True,
description="Lightweight event system for Python",
author="YouGov, plc",
author_email='dev@yougov.com',
url='https://github.com/yougov/yg.emanate',
packages=[
... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup
setup(
name='yg.emanate',
use_scm_version=True,
description="Lightweight event system for Python",
author="YouGov, plc",
author_email='dev@yougov.com',
url='https://github.com/yougov/yg.emanate',
packages=[
... | Remove deprecated 'zip_safe' flag. It's probably safe anyhow. | Remove deprecated 'zip_safe' flag. It's probably safe anyhow.
| Python | mit | yougov/emanate | ---
+++
@@ -16,7 +16,6 @@
namespace_packages=['yg'],
include_package_data=True,
setup_requires=['setuptools_scm>=1.15'],
- zip_safe=False,
keywords='emanate',
classifiers=[
'Development Status :: 2 - Pre-Alpha', |
5145e5cfccaef99be1fd7c1240e289ab132a858b | setup.py | setup.py | from setuptools import find_packages, setup
from virtualenvapi import __version__
setup(
name='virtualenv-api',
version=__version__,
license='BSD',
author='Sam Kingston and AUTHORS',
author_email='sam@sjkwi.com.au',
description='An API for virtualenv/pip',
long_description=open('README.rst... | from setuptools import find_packages, setup
from virtualenvapi import __version__
setup(
name='virtualenv-api',
version=__version__,
license='BSD',
author='Sam Kingston and AUTHORS',
author_email='sam@sjkwi.com.au',
description='An API for virtualenv/pip',
long_description=open('README.rst... | Remove python 3.3 from trove classifiers | Remove python 3.3 from trove classifiers [skip ci]
| Python | bsd-2-clause | sjkingo/virtualenv-api | ---
+++
@@ -24,7 +24,6 @@
'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.... |
7609c1df444d13efdb8be295003af13dc9de3d96 | setup.py | setup.py | # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
setup(
name = "OpenFisca-Country-Template",
version = "3.9.4",
author = "OpenFisca Team",
author_email = "contact@openfisca.org",
classifiers=[
"Development Status :: 5 - Production/Stable",
"License :: OSI Approve... | # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
setup(
name = "OpenFisca-Country-Template",
version = "3.9.4",
author = "OpenFisca Team",
author_email = "contact@openfisca.org",
classifiers=[
"Development Status :: 5 - Production/Stable",
"License :: OSI Approve... | Update openfisca-core requirement from <32.0,>=27.0 to >=27.0,<33.0 | Update openfisca-core requirement from <32.0,>=27.0 to >=27.0,<33.0
Updates the requirements on [openfisca-core](https://github.com/openfisca/openfisca-core) to permit the latest version.
- [Release notes](https://github.com/openfisca/openfisca-core/releases)
- [Changelog](https://github.com/openfisca/openfisca-core/b... | Python | agpl-3.0 | openfisca/country-template,openfisca/country-template | ---
+++
@@ -23,7 +23,7 @@
("share/openfisca/openfisca-country-template", ["CHANGELOG.md", "LICENSE", "README.md"]),
],
install_requires = [
- "OpenFisca-Core[web-api] >=27.0,<32.0",
+ "OpenFisca-Core[web-api] >=27.0,<33.0",
],
extras_require = {
"dev": [ |
ae290af846848a63b85e3832d694de6c5c25a4dc | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
long_description = """
Django URL routing system DRYed.
"""
requirements = [
'django>=1.8',
'six',
]
test_requirements = [
'mock',
'coveralls'
]
setup(
... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
long_description = """
Django URL routing system DRYed.
"""
requirements = [
'django>=1.9',
'six',
]
test_requirements = [
'mock',
'coveralls'
]
setup(
... | Increase python compatibility version and bump to v1.2.0 | Increase python compatibility version and bump to v1.2.0
| Python | bsd-3-clause | Visgean/urljects | ---
+++
@@ -13,7 +13,7 @@
requirements = [
- 'django>=1.8',
+ 'django>=1.9',
'six',
]
@@ -49,6 +49,7 @@
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
+ 'Programming Language :: Python :: 3.5... |
fec10deb7670abb2b0daf72c80ebdcc6346e0545 | setup.py | setup.py | from setuptools import setup
REPO_URL = 'http://github.com/okfn-brasil/serenata-toolbox'
setup(
author='Serenata de Amor',
author_email='contato@serenata.ai',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT L... | from setuptools import setup
REPO_URL = 'http://github.com/okfn-brasil/serenata-toolbox'
with open('README.rst') as fobj:
long_description = fobj.read()
setup(
author='Serenata de Amor',
author_email='contato@serenata.ai',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audi... | Add README.rst contents to PyPI page | Add README.rst contents to PyPI page
That is to say, what is visible at https://pypi.org/project/serenata-toolbox/
| Python | mit | datasciencebr/serenata-toolbox | ---
+++
@@ -2,6 +2,8 @@
REPO_URL = 'http://github.com/okfn-brasil/serenata-toolbox'
+with open('README.rst') as fobj:
+ long_description = fobj.read()
setup(
author='Serenata de Amor',
@@ -26,7 +28,7 @@
],
keywords='serenata de amor, data science, brazil, corruption',
license='MIT',
- ... |
0e4abdd8ab8ced760dbd2eb2c39afd8e88e4e87f | setup.py | setup.py | from setuptools import setup, find_packages
setup(
name = 'plumbing',
version = '2.9.9',
description = 'Helps with plumbing-type programing in python.',
license = 'MIT',
url = 'http://github.com/xapple/plumbing/',
author = 'Lucas Sinclai... | from setuptools import setup, find_packages
setup(
name = 'plumbing',
version = '2.9.9',
description = 'Helps with plumbing-type programing in python.',
license = 'MIT',
url = 'http://github.com/xapple/plumbing/',
author = 'Lucas Sinclai... | Add requests as a dependency | Add requests as a dependency
| Python | mit | xapple/plumbing | ---
+++
@@ -10,7 +10,7 @@
author_email = 'lucas.sinclair@me.com',
packages = find_packages(),
install_requires = ['autopaths>=1.4.2', 'six', 'pandas', 'numpy', 'matplotlib',
- 'retry', 'tzlocal', 'packaging'],
+ 'retry', 'tzlocal', 'packaging', ... |
6a07e4b3b0c67c442f0501f19c0253b4c99637cd | setup.py | setup.py | from setuptools import setup
import transip
setup(
name = transip.__name__,
version = transip.__version__,
author = transip.__author__,
author_email = transip.__email__,
license = transip.__license__,
description = transip.__doc__.splitlines()[0],
long_description = open('README.rst').read... | from setuptools import setup
import transip
setup(
name = transip.__name__,
version = transip.__version__,
author = transip.__author__,
author_email = transip.__email__,
license = transip.__license__,
description = transip.__doc__.splitlines()[0],
long_description = open('README.rst').read... | Add more requirements that are needed for this module | Add more requirements that are needed for this module
| Python | mit | benkonrath/transip-api,benkonrath/transip-api | ---
+++
@@ -24,6 +24,8 @@
},
install_requires = [
'requests',
+ 'rsa',
+ 'suds',
],
)
|
06dab661c2d3cc0e34b527654691659a054f3a5d | setup.py | setup.py | from setuptools import setup, find_packages
with open('README.rst') as file:
long_description = file.read()
setup(
name="frijoles",
version="0.1.0",
author="Pablo SEMINARIO",
author_email="pablo@seminar.io",
description="Simple notifications powered by jumping beans",
long_description=lo... | from setuptools import setup, find_packages
with open('README.rst') as file:
long_description = file.read()
setup(
name="frijoles",
version="0.1.0",
author="Pablo SEMINARIO",
author_email="pablo@seminar.io",
description="Simple notifications powered by jumping beans",
long_description=lo... | Upgrade to Flask 0.12.3 to fix CVE-2018-1000656 | Upgrade to Flask 0.12.3 to fix CVE-2018-1000656
| Python | agpl-3.0 | Antojitos/frijoles | ---
+++
@@ -30,7 +30,7 @@
package_dir={'': 'src'},
packages=find_packages('src'),
install_requires=[
- 'Flask==0.10.1',
+ 'Flask==0.12.3',
'Flask-PyMongo==0.4.0'
],
) |
29cb760030021f97906d5eaec1c0b885e8bb2930 | example/gravity.py | example/gravity.py | """
Compute the force of gravity between the Earth and Sun.
Copyright 2012, Casey W. Stark. See LICENSE.txt for more information.
"""
# Import the gravitational constant and the Quantity class
from dimensionful import G, Quantity
# Supply the mass of Earth, mass of Sun, and the distance between.
mass_earth = Quant... | """
Compute the force of gravity between the Earth and Sun.
Copyright 2012, Casey W. Stark. See LICENSE.txt for more information.
"""
# Import the gravitational constant and the Quantity class
from dimensionful import G, Quantity
# Supply the mass of Earth, mass of Sun, and the distance between.
mass_earth = Quant... | Add what the example should output. | Add what the example should output. | Python | bsd-2-clause | caseywstark/dimensionful | ---
+++
@@ -22,3 +22,5 @@
print ""
print "The force of gravity between the Earth and Sun is %s" % force_gravity
print ""
+
+# prints "The force of gravity between the Earth and Sun is 3.54296304519e+27 cm*g/s**2" |
76127c6c7e0ae1271dfecd2a10efd2ccd6148f97 | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup, find_packages
from oddt import __version__ as VERSION
setup(name='oddt',
version=VERSION,
description='Open Drug Discovery Toolkit',
author='Maciej Wojcikowski',
author_email='mwojcikowski@ibb.waw.pl',
url='https://github.com/oddt/oddt',... | #!/usr/bin/env python
from setuptools import setup, find_packages
from oddt import __version__ as VERSION
setup(name='oddt',
version=VERSION,
description='Open Drug Discovery Toolkit',
author='Maciej Wojcikowski',
author_email='mwojcikowski@ibb.waw.pl',
url='https://github.com/oddt/oddt',... | Add plec json to package data | Add plec json to package data
| Python | bsd-3-clause | oddt/oddt,oddt/oddt,mkukielka/oddt,mkukielka/oddt | ---
+++
@@ -10,7 +10,10 @@
url='https://github.com/oddt/oddt',
license='BSD',
packages=find_packages(),
- package_data={'oddt.scoring.functions': ['NNScore/*.csv', 'RFScore/*.csv']},
+ package_data={'oddt.scoring.functions': ['NNScore/*.csv',
+ ... |
86a35469dd474d09457d31fe6b74a2904e0a8091 | setup.py | setup.py | from setuptools import setup, find_packages
import dynamodb_sessions
long_description = open('README.rst').read()
major_ver, minor_ver = dynamodb_sessions.__version__
version_str = '%d.%d' % (major_ver, minor_ver)
setup(
name='django-dynamodb-sessions',
version=version_str,
packages=find_packages(),
... | from setuptools import setup, find_packages
import dynamodb_sessions
long_description = open('README.rst').read()
major_ver, minor_ver = dynamodb_sessions.__version__
version_str = '%d.%d' % (major_ver, minor_ver)
setup(
name='django-dynamodb-sessions',
version=version_str,
packages=find_packages(),
... | Revert "Updated the boto requirement to 2.8.0" | Revert "Updated the boto requirement to 2.8.0"
This reverts commit add8a4a7d68b47ed5c24fefa5dde6e8e372804bf.
| Python | bsd-3-clause | gtaylor/django-dynamodb-sessions | ---
+++
@@ -17,7 +17,7 @@
license='BSD License',
url='https://github.com/gtaylor/django-dynamodb-sessions',
platforms=["any"],
- install_requires=['django', "boto>=2.8.0"],
+ install_requires=['django', "boto>=2.2.2"],
classifiers=[
'Development Status :: 4 - Beta',
'Intend... |
adc4575d7261c3047f88e62695445d2a70de4823 | setup.py | setup.py | """Setup script of zinnia-theme-html5"""
from setuptools import setup
from setuptools import find_packages
import zinnia_html5
setup(
name='zinnia-theme-html5',
version=zinnia_html5.__version__,
description='HTML5 theme for django-blog-zinnia',
long_description=open('README.rst').read(),
keyword... | """Setup script of zinnia-theme-html5"""
from setuptools import setup
from setuptools import find_packages
import zinnia_html5
setup(
name='zinnia-theme-html5',
version=zinnia_html5.__version__,
description='HTML5 theme for django-blog-zinnia',
long_description=open('README.rst').read(),
keyword... | Add classifier for Python 3 | Add classifier for Python 3
| Python | bsd-3-clause | django-blog-zinnia/zinnia-theme-html5 | ---
+++
@@ -23,6 +23,7 @@
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Programming Language :: Python',
+ 'Programming Language :: Python :: 3',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'L... |
c3799230344487a199d75af9df401ab12e2e6cfa | setup.py | setup.py | from distutils.core import setup
setup(
name='data_processing',
version='0.1-pre',
packages=['data_processing'],
url='https://github.com/openego/data_processing',
license='GNU GENERAL PUBLIC LICENSE Version 3',
author='open_eGo development group',
author_email='',
description='Data proc... | from distutils.core import setup
setup(
name='data_processing',
version='0.1-pre',
packages=['data_processing'],
url='https://github.com/openego/data_processing',
license='GNU GENERAL PUBLIC LICENSE Version 3',
author='open_eGo development group',
author_email='',
description='Data proc... | Fix dependency and update version number | Fix dependency and update version number
| Python | agpl-3.0 | openego/data_processing | ---
+++
@@ -14,6 +14,8 @@
'workalendar',
'oemof.db',
'demandlib',
- 'ego.io'
+ 'ego.io >=0.0.1rc3, <= 0.0.1rc3',
+ 'geoalchemy2'
]
)
+ |
46a715545e70e04cd56f97ac8d14f325b4439554 | setup.py | setup.py | from setuptools import setup, find_packages
# Dynamically calculate the version based on dbsettings.VERSION
version_tuple = (0, 7, None)
if version_tuple[2] is not None:
if type(version_tuple[2]) == int:
version = "%d.%d.%s" % version_tuple
else:
version = "%d.%d_%s" % version_tuple
else:
v... | from setuptools import setup, find_packages
# Dynamically calculate the version based on dbsettings.VERSION
version_tuple = (0, 7, None)
if version_tuple[2] is not None:
if type(version_tuple[2]) == int:
version = "%d.%d.%s" % version_tuple
else:
version = "%d.%d_%s" % version_tuple
else:
v... | Add six module as require package | Add six module as require package
The six module is imported at `values.py` | Python | bsd-3-clause | winfieldco/django-dbsettings,DjangoAdminHackers/django-dbsettings,nwaxiomatic/django-dbsettings,zlorf/django-dbsettings,sciyoshi/django-dbsettings,sciyoshi/django-dbsettings,johnpaulett/django-dbsettings,nwaxiomatic/django-dbsettings,johnpaulett/django-dbsettings,winfieldco/django-dbsettings,zlorf/django-dbsettings,hel... | ---
+++
@@ -24,6 +24,7 @@
include_package_data=True,
license='BSD',
install_requires=(
+ 'six',
),
classifiers=[
'Development Status :: 4 - Beta', |
6a7ba2d366424d50b75dd97748c3a94aae96b7dd | setup.py | setup.py | try:
# Try using ez_setup to install setuptools if not already installed.
from ez_setup import use_setuptools
use_setuptools()
except ImportError:
# Ignore import error and assume Python 3 which already has setuptools.
pass
from setuptools import setup
DESC = ('This Python library for Raspberry Pi... | try:
# Try using ez_setup to install setuptools if not already installed.
from ez_setup import use_setuptools
use_setuptools()
except ImportError:
# Ignore import error and assume Python 3 which already has setuptools.
pass
from setuptools import setup
DESC = ('This Python library for Raspberry Pi... | Increment version in preperation for release of version 1.3.0 | Increment version in preperation for release of version 1.3.0
| Python | mit | chrisb2/pi_ina219 | ---
+++
@@ -33,7 +33,7 @@
setup(name='pi-ina219',
- version='1.2.0',
+ version='1.3.0',
author='Chris Borrill',
author_email='chris.borrill@gmail.com',
description=DESC, |
9c7aedc3b29d823d79409c5246290362a3c7ffdc | examples/arabic.py | examples/arabic.py | #!/usr/bin/env python
"""
Create wordcloud with Arabic
===============
Generating a wordcloud from Arabic text
Other dependencies: bidi.algorithm, arabic_reshaper
"""
from os import path
import codecs
from wordcloud import WordCloud
import arabic_reshaper
from bidi.algorithm import get_display
d = path.dirname(__file... | #!/usr/bin/env python
"""
Create wordcloud with Arabic
===============
Generating a wordcloud from Arabic text
Dependencies:
- bidi.algorithm
- arabic_reshaper
Dependencies installation:
pip install python-bidi arabic_reshape
"""
from os import path
import codecs
from wordcloud import WordCloud
import arabic_reshape... | Add some instructions for downloading the requirements | Add some instructions for downloading the requirements
| Python | mit | amueller/word_cloud | ---
+++
@@ -3,7 +3,13 @@
Create wordcloud with Arabic
===============
Generating a wordcloud from Arabic text
-Other dependencies: bidi.algorithm, arabic_reshaper
+
+Dependencies:
+- bidi.algorithm
+- arabic_reshaper
+
+Dependencies installation:
+pip install python-bidi arabic_reshape
"""
from os import path |
89abf161e670fda99497ecc60aac0df239af5a01 | setup.py | setup.py | # encoding: utf-8
from setuptools import setup
setup(
name="Cetacean",
version="0.0.1",
author="Ben Hamill",
author_email="ben@benhamill.com",
url="http://github.com/benhamill/cetacean-python#readme",
licens="MIT",
description="The HAL client that does almost nothing for you.",
long_de... | # encoding: utf-8
"""
The HAL client that does almost nothing for you.
Cetacean is tightly coupled to Requests, but doesn't actually call it. You set
up your own Requests client and use it to make requests. You feed Cetacean
Requests response objects and it helps you figure out if they're HAL documents
and pull useful... | Move log description to a docstring. | Move log description to a docstring.
| Python | mit | benhamill/cetacean-python,nanorepublica/cetacean-python | ---
+++
@@ -1,4 +1,12 @@
# encoding: utf-8
+"""
+The HAL client that does almost nothing for you.
+
+Cetacean is tightly coupled to Requests, but doesn't actually call it. You set
+up your own Requests client and use it to make requests. You feed Cetacean
+Requests response objects and it helps you figure out if the... |
d16267549323c583df7aaf82768b7efef17df564 | setup.py | setup.py | #!/usr/bin/python
from setuptools import setup
dependency_links=[
'git+https://github.com/Toblerity/Shapely.git@maint#egg=Shapely',
]
setup(
name = 'hxl-proxy',
packages = ['hxl_proxy'],
version = '0.0.1',
description = 'Flask-based web proxy for HXL',
author='David Megginson',
author_emai... | #!/usr/bin/python
from setuptools import setup
dependency_links=[
'git+https://github.com/Toblerity/Shapely.git@maint#egg=Shapely',
]
setup(
name = 'hxl-proxy',
packages = ['hxl_proxy'],
version = '0.0.1',
description = 'Flask-based web proxy for HXL',
author='David Megginson',
author_emai... | Fix dependency on mock for testing. | Fix dependency on mock for testing.
| Python | unlicense | HXLStandard/hxl-proxy,HXLStandard/hxl-proxy,HXLStandard/hxl-proxy,HXLStandard/hxl-proxy | ---
+++
@@ -15,7 +15,5 @@
url='https://github.com/HXLStandard/hxl-proxy',
install_requires=['flask', 'libhxl', 'ckanapi'],
test_suite = "tests",
- tests_require = {
- 'test': ['mock']
- }
+ tests_require = ['mock']
) |
ac73d93b5a29f4f0929551c51da837b45227f3b3 | setup.py | setup.py | from setuptools import setup, find_packages
import sys, os
here = os.path.abspath(os.path.dirname(__file__))
try:
README = open(os.path.join(here, 'README.rst')).read()
except IOError:
README = ''
version = "0.0.2"
setup(name='backlash',
version=version,
description="Standalone WebOb port of the ... | from setuptools import setup, find_packages
import sys, os
here = os.path.abspath(os.path.dirname(__file__))
try:
README = open(os.path.join(here, 'README.rst')).read()
except IOError:
README = ''
version = "0.0.3"
setup(name='backlash',
version=version,
description="Standalone WebOb port of the ... | Increase version due to change in streamed apps management | Increase version due to change in streamed apps management
| Python | mit | TurboGears/backlash,TurboGears/backlash | ---
+++
@@ -7,7 +7,7 @@
except IOError:
README = ''
-version = "0.0.2"
+version = "0.0.3"
setup(name='backlash',
version=version, |
596e850189e8c8590ac4b8c401de5930ce711929 | puppetboard/default_settings.py | puppetboard/default_settings.py | import os
PUPPETDB_HOST = 'localhost'
PUPPETDB_PORT = 8080
PUPPETDB_SSL_VERIFY = True
PUPPETDB_KEY = None
PUPPETDB_CERT = None
PUPPETDB_TIMEOUT = 20
DEFAULT_ENVIRONMENT = 'production'
SECRET_KEY = os.urandom(24)
DEV_LISTEN_HOST = '127.0.0.1'
DEV_LISTEN_PORT = 5000
DEV_COFFEE_LOCATION = 'coffee'
UNRESPONSIVE_HOURS = 2
... | import os
PUPPETDB_HOST = 'localhost'
PUPPETDB_PORT = 8080
PUPPETDB_SSL_VERIFY = True
PUPPETDB_KEY = None
PUPPETDB_CERT = None
PUPPETDB_TIMEOUT = 20
DEFAULT_ENVIRONMENT = 'production'
SECRET_KEY = os.urandom(24)
DEV_LISTEN_HOST = '127.0.0.1'
DEV_LISTEN_PORT = 5000
DEV_COFFEE_LOCATION = 'coffee'
UNRESPONSIVE_HOURS = 2
... | Add clientversion to graphing facts | Add clientversion to graphing facts
| Python | apache-2.0 | puppet-community/puppetboard,johnzimm/xx-puppetboard,tparkercbn/puppetboard,mterzo/puppetboard,stoyansbg/puppetboard,mterzo/puppetboard,holstvoogd/puppetboard,johnzimm/xx-puppetboard,johnzimm/puppetboard,tparkercbn/puppetboard,mterzo/puppetboard,stoyansbg/puppetboard,james-powis/puppetboard,tparkercbn/puppetboard,voxpu... | ---
+++
@@ -19,6 +19,7 @@
OFFLINE_MODE = False
ENABLE_CATALOG = False
GRAPH_FACTS = ['architecture',
+ 'clientversion',
'domain',
'lsbcodename',
'lsbdistcodename', |
fdff962aeb1aa0351fc222e005af3fa9248345fb | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf8 -*-
from setuptools import setup, find_packages
setup(
name="Burger",
packages=find_packages(),
version="0.3.0",
description="Extract information from Minecraft bytecode.",
author="Tyler Kennedy",
author_email="tk@tkte.ch",
url="http://github.com/mcd... | #!/usr/bin/env python
# -*- coding: utf8 -*-
from setuptools import setup, find_packages
setup(
name="Burger",
packages=find_packages(),
version="0.3.0",
description="Extract information from Minecraft bytecode.",
author="Tyler Kennedy",
author_email="tk@tkte.ch",
url="http://github.com/mcd... | Add six as an install requirement | Add six as an install requirement
| Python | mit | Pokechu22/Burger,mcdevs/Burger | ---
+++
@@ -12,6 +12,7 @@
url="http://github.com/mcdevs/Burger",
keywords=["java", "minecraft"],
install_requires=[
+ 'six>=1.4.0',
'Jawa>=2.2.0,<3'
],
classifiers=[ |
655db4e1c8aefea1699516339dd80e1c6a75d67d | setup.py | setup.py | from distutils.core import setup
import sys
import os
import re
PACKAGENAME = 'OpSimSummary'
packageDir = os.path.join(os.path.dirname(os.path.abspath(__file__)),
PACKAGENAME)
versionFile = os.path.join(packageDir, 'version.py')
# Obtain the package version
with open(versionFile, 'r') as f:... | from distutils.core import setup
import sys
import os
import re
PACKAGENAME = 'OpSimSummary'
packageDir = os.path.join(os.path.dirname(os.path.abspath(__file__)),
'opsimsummary')
versionFile = os.path.join(packageDir, 'version.py')
# Obtain the package version
with open(versionFile, 'r') as... | Revert "Revert "Revert "Changed back due to problems, will fix later""" | Revert "Revert "Revert "Changed back due to problems, will fix later"""
This reverts commit 4b35247fe384d4b2b206fa7650398511a493253c.
| Python | mit | rbiswas4/simlib | ---
+++
@@ -5,7 +5,7 @@
PACKAGENAME = 'OpSimSummary'
packageDir = os.path.join(os.path.dirname(os.path.abspath(__file__)),
- PACKAGENAME)
+ 'opsimsummary')
versionFile = os.path.join(packageDir, 'version.py')
# Obtain the package version |
f3c69597410119d2c88beb80a5a0ed3c8b884668 | setup.py | setup.py | # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
setup(
name = "OpenFisca-Country-Template",
version = "3.9.1",
author = "OpenFisca Team",
author_email = "contact@openfisca.org",
classifiers=[
"Development Status :: 5 - Production/Stable",
"License :: OSI Approve... | # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
setup(
name = "OpenFisca-Country-Template",
version = "3.9.1",
author = "OpenFisca Team",
author_email = "contact@openfisca.org",
classifiers=[
"Development Status :: 5 - Production/Stable",
"License :: OSI Approve... | Update flake8 requirement from <3.6.0,>=3.5.0 to >=3.5.0,<3.8.0 | Update flake8 requirement from <3.6.0,>=3.5.0 to >=3.5.0,<3.8.0
Updates the requirements on [flake8](https://gitlab.com/pycqa/flake8) to permit the latest version.
- [Release notes](https://gitlab.com/pycqa/flake8/tags)
- [Commits](https://gitlab.com/pycqa/flake8/compare/3.5.0...3.7.7)
Signed-off-by: dependabot[bot] ... | Python | agpl-3.0 | openfisca/country-template,openfisca/country-template | ---
+++
@@ -28,7 +28,7 @@
extras_require = {
"dev": [
"autopep8 == 1.4.0",
- "flake8 >= 3.5.0, < 3.6.0",
+ "flake8 >=3.5.0,<3.8.0",
"flake8-print",
"pycodestyle >= 2.3.0, < 2.4.0", # To avoid incompatibility with flake
] |
290ead5bbc57e526f0fe12d161fa5fb684ab4edf | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
import materializecssform
setup(
name='django-materializecss-form',
version=materializecssform.__version__,
packages=find_packages(),
author="Kal Walkden",
author_email="kal@walkden.us",
descriptio... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
import materializecssform
with open("README.md", "r") as fh:
long_description = fh.read()
setup(
name='django-materializecss-form',
version=materializecssform.__version__,
packages=find_packages(),
auth... | Update meta version so that documentation looks good in pypi | Update meta version so that documentation looks good in pypi
| Python | mit | florent1933/django-materializecss-form,florent1933/django-materializecss-form | ---
+++
@@ -4,6 +4,9 @@
from setuptools import setup, find_packages
import materializecssform
+
+with open("README.md", "r") as fh:
+ long_description = fh.read()
setup(
@@ -18,7 +21,7 @@
author_email="kal@walkden.us",
description="A simple Django form template tag to work with Materializecss"... |
3d1e06c6b37431ed4f6c9d426b10682be4ddc5db | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup
setup(name='s3fs',
version='0.1.5',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
... | #!/usr/bin/env python
from setuptools import setup
setup(name='s3fs',
version='0.1.5',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
... | Remove 3.4 and 3.7 tags | Remove 3.4 and 3.7 tags
| Python | bsd-3-clause | fsspec/s3fs | ---
+++
@@ -10,10 +10,8 @@
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.7',
- 'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programmi... |
ea0094c555b499a2ad77c8b7af02d796dd5b4d92 | setup.py | setup.py | """Config for PyPI."""
from setuptools import find_packages
from setuptools import setup
setup(
author='Kyle P. Johnson',
author_email='kyle@kyle-p-johnson.com',
classifiers=[
'Intended Audience :: Education',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MI... | """Config for PyPI."""
from setuptools import find_packages
from setuptools import setup
setup(
author='Kyle P. Johnson',
author_email='kyle@kyle-p-johnson.com',
classifiers=[
'Intended Audience :: Education',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MI... | Bump vers for uppercase Beta Code conversion | Bump vers for uppercase Beta Code conversion
Fixed with PR https://github.com/cltk/cltk/pull/778 by Eleftheria Chatziargyriou ( @Sedictious ). | Python | mit | kylepjohnson/cltk,LBenzahia/cltk,TylerKirby/cltk,diyclassics/cltk,LBenzahia/cltk,TylerKirby/cltk,D-K-E/cltk,cltk/cltk | ---
+++
@@ -36,7 +36,7 @@
name='cltk',
packages=find_packages(),
url='https://github.com/cltk/cltk',
- version='0.1.85',
+ version='0.1.86',
zip_safe=True,
test_suite='cltk.tests.test_cltk',
) |
0579da9a2cc9b8696d8071c4f1e07140d940b386 | setup.py | setup.py | # coding:utf-8
import sys
from setuptools import setup, find_packages
setup(name='flanker',
version='0.3.13',
description='Mailgun Parsing Tools',
long_description=open('README.rst').read(),
classifiers=[],
keywords='',
author='Mailgun Inc.',
author_email='admin@mailgunhq.co... | # coding:utf-8
import sys
from setuptools import setup, find_packages
setup(name='flanker',
version='0.4.13',
description='Mailgun Parsing Tools',
long_description=open('README.rst').read(),
classifiers=[],
keywords='',
author='Mailgun Inc.',
author_email='admin@mailgunhq.co... | Fix (and test coverage) for base64 encoding issue. | Fix (and test coverage) for base64 encoding issue.
| Python | apache-2.0 | ad-m/flanker,EthanBlackburn/flanker,glyph/flanker,alex/flanker,aroberts/flanker,nylas/flanker,EncircleInc/addresslib,mailgun/flanker,xjzhou/flanker,smokymountains/flanker,stefanw/flanker | ---
+++
@@ -5,7 +5,7 @@
setup(name='flanker',
- version='0.3.13',
+ version='0.4.13',
description='Mailgun Parsing Tools',
long_description=open('README.rst').read(),
classifiers=[],
@@ -18,15 +18,15 @@
include_package_data=True,
zip_safe=True,
install_requires... |
853481c6c6f6c27e8805c62b77bd85bec0f1535c | setup.py | setup.py | #!/usr/bin/env python
import setuptools
import sys
if not ((sys.version_info.major >= 3 and sys.version_info.minor >= 5)
or sys.version_info.major > 3):
exit("Sorry, Python's version must be later than 3.5.")
import shakyo
setuptools.setup(
name=shakyo.__name__,
version=shakyo.__version__,
descri... | #!/usr/bin/env python
import setuptools
import shutil
import sys
if not ((sys.version_info.major >= 3 and sys.version_info.minor >= 5)
or sys.version_info.major > 3):
exit("Sorry, Python's version must be later than 3.5.")
import shakyo
try:
import pypandoc
with open("README.rst", "w") as f:
f.write(... | Convert README.md file into .rst | Convert README.md file into .rst
| Python | unlicense | raviqqe/shakyo | ---
+++
@@ -1,6 +1,7 @@
#!/usr/bin/env python
import setuptools
+import shutil
import sys
if not ((sys.version_info.major >= 3 and sys.version_info.minor >= 5)
@@ -8,6 +9,14 @@
exit("Sorry, Python's version must be later than 3.5.")
import shakyo
+
+
+try:
+ import pypandoc
+ with open("README.rst", "... |
6707acf4c09c6aae6abf78a325a08ddd72377e6f | setup.py | setup.py | #!/usr/bin/env python
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(
name='bux-grader-framework',
version='0.4.3',
author='Boston University',
author_email='webteam@bu.edu',
url='https://github.com/bu-ist/bux-grader-framework/',
descriptio... | #!/usr/bin/env python
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(
name='bux-grader-framework',
version='0.4.3',
author='Boston University',
author_email='webteam@bu.edu',
url='https://github.com/bu-ist/bux-grader-framework/',
descriptio... | Add requests[security] extras to install_requires | Add requests[security] extras to install_requires
Installs pyopenssl, ndg-httpsclient, and pyasn1 packages to avoid SSL InsecurePlatformWarning messages
| Python | agpl-3.0 | bu-ist/bux-grader-framework,abduld/bux-grader-framework | ---
+++
@@ -17,7 +17,7 @@
scripts=['bin/grader'],
license='LICENSE',
install_requires=[
- 'requests>=2.0, <3.0',
+ 'requests[security]>=2.0, <3.0',
'pika>=0.9.12, <0.10',
'statsd>=2.0, <3.0',
'lxml>=3.3, <3.4' |
cc9d23142be989662c8fedd0124fe6f99de360bb | setup.py | setup.py | import io
import os
import re
from setuptools import setup, find_packages
def find_version():
file_dir = os.path.dirname(__file__)
with io.open(os.path.join(file_dir, 'auth0', '__init__.py')) as f:
version = re.search(r'^__version__ = [\'"]([^\'"]*)[\'"]', f.read())
if version:
ret... | import io
import os
import re
from setuptools import setup, find_packages
def find_version():
file_dir = os.path.dirname(__file__)
with io.open(os.path.join(file_dir, 'auth0', '__init__.py')) as f:
version = re.search(r'^__version__ = [\'"]([^\'"]*)[\'"]', f.read())
if version:
ret... | Add python_requires to help pip | Add python_requires to help pip
| Python | mit | auth0/auth0-python,auth0/auth0-python | ---
+++
@@ -24,6 +24,7 @@
packages=find_packages(),
install_requires=['requests'],
extras_require={'test': ['mock']},
+ python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers', |
f607cf2f024c299953a0d3eb523b6be493792d0f | tasks.py | tasks.py | # -*- coding: utf-8 -*-
from invoke import task
@task
def clean(context):
context.run("rm -rf .coverage dist build")
@task(clean, default=True)
def test(context):
context.run("pytest")
@task(test)
def install(context):
context.run("python setup.py develop")
@task(test)
def release(context):
con... | # -*- coding: utf-8 -*-
from invoke import task
@task
def clean(context):
context.run("rm -rf dist build .coverage .pytest_cache .mypy_cache")
@task(clean, default=True)
def test(context):
context.run("pytest")
@task(test)
def install(context):
context.run("python setup.py develop")
@task(test)
def... | Clean cache files after pytest & mypy | Clean cache files after pytest & mypy
| Python | apache-2.0 | miso-belica/sumy,miso-belica/sumy | ---
+++
@@ -5,7 +5,7 @@
@task
def clean(context):
- context.run("rm -rf .coverage dist build")
+ context.run("rm -rf dist build .coverage .pytest_cache .mypy_cache")
@task(clean, default=True) |
1f545f9e921e10448b4018550620f9dc4d56931c | survey/models/__init__.py | survey/models/__init__.py | # -*- coding: utf-8 -*-
"""
Permit to import everything from survey.models without knowing the details.
"""
import sys
from .answer import Answer
from .category import Category
from .question import Question
from .response import Response
from .survey import Survey
__all__ = ["Category", "Answer", "Category", "... | # -*- coding: utf-8 -*-
"""
Permit to import everything from survey.models without knowing the details.
"""
from .answer import Answer
from .category import Category
from .question import Question
from .response import Response
from .survey import Survey
__all__ = ["Category", "Answer", "Category", "Response", "Surv... | Fix F401 'sys' imported but unused | Fix F401 'sys' imported but unused
| Python | agpl-3.0 | Pierre-Sassoulas/django-survey,Pierre-Sassoulas/django-survey,Pierre-Sassoulas/django-survey | ---
+++
@@ -1,10 +1,8 @@
# -*- coding: utf-8 -*-
"""
- Permit to import everything from survey.models without knowing the details.
+Permit to import everything from survey.models without knowing the details.
"""
-
-import sys
from .answer import Answer
from .category import Category |
42964d986a0e86c3c93ad152d99b5a4e5cbc2a8e | plots/mapplot/_shelve.py | plots/mapplot/_shelve.py | '''
Cache results to disk.
'''
import inspect
import os
import shelve
class shelved:
def __init__(self, func):
self._func = func
# Put the cache file in the same directory as the caller.
funcdir = os.path.dirname(inspect.getfile(self._func))
cachedir = os.path.join(funcdir, '_she... | '''
Cache results to disk.
'''
import inspect
import os
import shelve
class shelved:
def __init__(self, func):
self._func = func
# Put the cache file in the same directory as the caller.
funcdir = os.path.dirname(inspect.getfile(self._func))
cachedir = os.path.join(funcdir, '_she... | Revert "Maybe fixed weakref error by explicitly closing shelf." This did not fix the weakref error. Maybe it's something in cartopy. | Revert "Maybe fixed weakref error by explicitly closing shelf."
This did not fix the weakref error. Maybe it's something in cartopy.
This reverts commit 30d5b38cbc7a771e636e689b281ebc09356c3a49.
| Python | agpl-3.0 | janmedlock/HIV-95-vaccine | ---
+++
@@ -32,6 +32,3 @@
# Get the value and store it in the cache.
val = self.cache[key] = self._func(*args, **kwargs)
return val
-
- def __del__(self):
- self.cache.close() |
3736d7fb32e20a64591f949d6ff431430447d421 | stock.py | stock.py | class Stock:
def __init__(self, symbol):
self.symbol = symbol
self.price_history = []
@property
def price(self):
return self.price_history[-1] if self.price_history else None
def update(self, timestamp, price):
if price < 0:
raise ValueError("price should no... | import bisect
import collections
PriceEvent = collections.namedtuple("PriceEvent", ["timestamp", "price"])
class Stock:
def __init__(self, symbol):
self.symbol = symbol
self.price_history = []
@property
def price(self):
return self.price_history[-1].price if self.price_history el... | Add a named tuple PriceEvent sub class and update methods accordingly. | Add a named tuple PriceEvent sub class and update methods accordingly.
| Python | mit | bsmukasa/stock_alerter | ---
+++
@@ -1,3 +1,9 @@
+import bisect
+import collections
+
+PriceEvent = collections.namedtuple("PriceEvent", ["timestamp", "price"])
+
+
class Stock:
def __init__(self, symbol):
self.symbol = symbol
@@ -5,12 +11,12 @@
@property
def price(self):
- return self.price_history[-1] if s... |
b6c8dd224279ad0258b1130f8105059affa7553f | Challenges/chall_04.py | Challenges/chall_04.py | #!/urs/local/bin/python3
# Python challenge - 4
# http://www.pythonchallenge.com/pc/def/linkedlist.php
import urllib.request
import re
def main():
'''
http://www.pythonchallenge.com/pc/def/linkedlist.php?nothing=12345
44827
45439
...
'''
base_url = 'http://www.pythonchallenge.com/pc/def/l... | #!/usr/local/bin/python3
# Python challenge - 4
# http://www.pythonchallenge.com/pc/def/linkedlist.html
# http://www.pythonchallenge.com/pc/def/linkedlist.php
# Keyword: peak
import urllib.request
import re
def main():
'''
html page shows: linkedlist.php
php page comment: urllib may help. DON'T TRY ALL N... | Refactor code, fix shebang path | Refactor code, fix shebang path
| Python | mit | HKuz/PythonChallenge | ---
+++
@@ -1,6 +1,8 @@
-#!/urs/local/bin/python3
+#!/usr/local/bin/python3
# Python challenge - 4
+# http://www.pythonchallenge.com/pc/def/linkedlist.html
# http://www.pythonchallenge.com/pc/def/linkedlist.php
+# Keyword: peak
import urllib.request
import re
@@ -8,6 +10,10 @@
def main():
'''
+ html ... |
b85a92df83563e38b84340574cde2f9dc06b563c | rest_framework_docs/api_docs.py | rest_framework_docs/api_docs.py | from django.conf import settings
from django.core.urlresolvers import RegexURLResolver, RegexURLPattern
from django.utils.module_loading import import_string
from rest_framework.views import APIView
from rest_framework_docs.api_endpoint import ApiEndpoint
class ApiDocumentation(object):
def __init__(self):
... | from django.conf import settings
from django.core.urlresolvers import RegexURLResolver, RegexURLPattern
from django.utils.module_loading import import_string
from rest_framework.views import APIView
from rest_framework_docs.api_endpoint import ApiEndpoint
class ApiDocumentation(object):
def __init__(self):
... | Exclude Endpoints with a <format> parameter | Exclude Endpoints with a <format> parameter
| Python | bsd-2-clause | ekonstantinidis/django-rest-framework-docs,manosim/django-rest-framework-docs,ekonstantinidis/django-rest-framework-docs,manosim/django-rest-framework-docs,manosim/django-rest-framework-docs,ekonstantinidis/django-rest-framework-docs | ---
+++
@@ -20,13 +20,21 @@
if isinstance(pattern, RegexURLResolver):
parent_pattern = None if pattern._regex == "^" else pattern
self.get_all_view_names(urlpatterns=pattern.url_patterns, parent_pattern=parent_pattern)
- elif isinstance(pattern, RegexURLPatter... |
a22b21e4a06525f081c6a7ce92ddc2102d7ddce8 | 5-convert-to-mw.py | 5-convert-to-mw.py | #!/usr/bin/python
from subprocess import call
import os
from os.path import join, getsize
wikiHtml = "/var/www/sp/wiki-html"
LOwikiHtml = "/var/www/sp/5-libre-wiki-html"
wikiFiles = "/var/www/sp/6-wiki-files"
for f in os.listdir(wikiHtml):
if f.endswith(".html"):
# soffice --headless --convert-to html:HTML /path... | #!/usr/bin/python
from subprocess import call
import os
from os.path import join, getsize
scriptPath = os.path.realpath(__file__)
wikiHtml = scriptPath + "/usr/sharepoint-content"
LibreOfficeOutput = scriptPath + "/usr/LibreOfficeOutput"
WikitextOutput = scriptPath + "/usr/WikitextOutput"
for f in os.listdir(wikiHtm... | Fix paths in LibreOffice and Perl converter | Fix paths in LibreOffice and Perl converter
| Python | mit | jamesmontalvo3/Sharepoint-to-MediaWiki,jamesmontalvo3/Sharepoint-to-MediaWiki | ---
+++
@@ -4,24 +4,24 @@
import os
from os.path import join, getsize
-
-wikiHtml = "/var/www/sp/wiki-html"
-LOwikiHtml = "/var/www/sp/5-libre-wiki-html"
-wikiFiles = "/var/www/sp/6-wiki-files"
+scriptPath = os.path.realpath(__file__)
+wikiHtml = scriptPath + "/usr/sharepoint-content"
+LibreOfficeOutput = scriptP... |
d7133922de24c6553417eb1e25c65bb51e7451f7 | airship/__init__.py | airship/__init__.py | import os
import json
from flask import Flask, render_template
def channels_json(station, escaped=False):
channels = [{"name": channel} for channel in station.channels()]
jsonbody = json.dumps(channels)
if escaped:
jsonbody = jsonbody.replace("</", "<\\/")
return jsonbody
def make_airship(s... | import os
import json
from flask import Flask, render_template
def channels_json(station, escaped=False):
channels = [{"name": channel} for channel in station.channels()]
jsonbody = json.dumps(channels)
if escaped:
jsonbody = jsonbody.replace("</", "<\\/")
return jsonbody
def make_airship(s... | Create a route for fetching grefs | Create a route for fetching grefs
| Python | mit | richo/airship,richo/airship,richo/airship | ---
+++
@@ -23,4 +23,9 @@
def list_channels():
return channels_json(station)
+ @app.route("/grefs/<channel>")
+ def list_grefs(channel):
+ return
+
+
return app |
c5683cb2bf8635c6ad26aac807f47c8f1fb4c68a | http_prompt/cli.py | http_prompt/cli.py | import click
from prompt_toolkit import prompt
from prompt_toolkit.history import InMemoryHistory
from prompt_toolkit.layout.lexers import PygmentsLexer
from prompt_toolkit.styles.from_pygments import style_from_pygments
from pygments.styles import get_style_by_name
from .completer import HttpPromptCompleter
from .co... | import click
from prompt_toolkit import prompt
from prompt_toolkit.history import InMemoryHistory
from prompt_toolkit.layout.lexers import PygmentsLexer
from prompt_toolkit.styles.from_pygments import style_from_pygments
from pygments.styles import get_style_by_name
from .completer import HttpPromptCompleter
from .co... | Fix incomplete URL from command line | Fix incomplete URL from command line
| Python | mit | eliangcs/http-prompt,Yegorov/http-prompt | ---
+++
@@ -12,10 +12,22 @@
from .lexer import HttpPromptLexer
+def fix_incomplete_url(url):
+ if url.startswith('s://') or url.startswith('://'):
+ url = 'http' + url
+ elif url.startswith('//'):
+ url = 'http:' + url
+ elif not url.startswith('http://') and not url.startswith('https://')... |
3055fa16010a1b855142c2e5b866d76daee17c8f | markdown_gen/test/attributes_test.py | markdown_gen/test/attributes_test.py |
import unittest
import markdown_gen.MardownGen as md
class AttributesTests(unittest.TestCase):
def test_italic(self):
expected = "*italic text*"
self.assertEqual(expected, md.gen_italic("italic text"))
expected = "_italic text alternative_"
self.assertEqual(expected, md.gen_it... |
import unittest
import markdown_gen.MardownGen as md
class AttributesTests(unittest.TestCase):
def test_italic(self):
expected = "*italic text*"
self.assertEqual(expected, md.gen_italic("italic text"))
expected = "_italic text alternative_"
self.assertEqual(expected, md.gen_it... | Add test for bold and italic text | Add test for bold and italic text | Python | epl-1.0 | LukasWoodtli/PyMarkdownGen | ---
+++
@@ -21,6 +21,14 @@
expected = "__bold text alternative__"
self.assertEqual(expected, md.gen_bold("bold text alternative", True))
+
+ def test_bold_and_italic(self):
+ expected = "***bold and italic text***"
+ self.assertEqual(expected, md.gen_italic(md.gen_bold("bo... |
9c119ec89b79d27b284bb89f2507cc93f32d8d68 | app/twiggy_setup.py | app/twiggy_setup.py | import tornado.options
from twiggy import *
def twiggy_setup():
fout = outputs.FileOutput(
tornado.options.options.app_log_file, format=formats.line_format)
sout = outputs.StreamOutput(format=formats.line_format)
addEmitters(
('ipborg', levels.DEBUG, None, fout),
('ipborg', levels... | import tornado.options
from twiggy import *
def twiggy_setup():
fout = outputs.FileOutput(
tornado.options.options.app_log_file, format=formats.line_format)
sout = outputs.StreamOutput(format=formats.line_format)
addEmitters(
('ipborg.file', levels.DEBUG, None, fout),
('ipborg.std... | Use unique names for twiggy emitters. | Use unique names for twiggy emitters.
| Python | mit | jiffyclub/ipythonblocks.org,jiffyclub/ipythonblocks.org | ---
+++
@@ -8,5 +8,5 @@
sout = outputs.StreamOutput(format=formats.line_format)
addEmitters(
- ('ipborg', levels.DEBUG, None, fout),
- ('ipborg', levels.DEBUG, None, sout))
+ ('ipborg.file', levels.DEBUG, None, fout),
+ ('ipborg.std', levels.DEBUG, None, sout)) |
8ed4d09a9e0c0e16f179185cd3d0e6f2dece360d | tutorials/intro/utils.py | tutorials/intro/utils.py | from snorkel.models import Span, Label
from sqlalchemy.orm.exc import NoResultFound
def add_spouse_label(session, key, cls, person1, person2, value):
try:
person1 = session.query(Span).filter(Span.stable_id == person1).one()
person2 = session.query(Span).filter(Span.stable_id == person2).one()
... | from snorkel.models import Span, Label
from sqlalchemy.orm.exc import NoResultFound
def add_spouse_label(session, key, cls, person1, person2, value):
try:
person1 = session.query(Span).filter(Span.stable_id == person1).one()
person2 = session.query(Span).filter(Span.stable_id == person2).one()
... | Fix for rerunning intro tutorial on previously used database. | Fix for rerunning intro tutorial on previously used database.
| Python | apache-2.0 | HazyResearch/snorkel,HazyResearch/snorkel,jasontlam/snorkel,jasontlam/snorkel,jasontlam/snorkel,HazyResearch/snorkel | ---
+++
@@ -23,5 +23,5 @@
label = Label(candidate=candidate, key=key, value=value)
session.add(label)
else:
- label.value = int(label)
+ label.value = int(value)
session.commit() |
23c29c4964286fc2ca8fb3a957a6e7810edb9d17 | alexia/template/context_processors.py | alexia/template/context_processors.py | from __future__ import unicode_literals
from alexia.apps.organization.models import Organization
def organization(request):
return {
'organizations': Organization.objects.all(),
'current_organization': request.organization,
}
def permissions(request):
if request.user.is_superuser:
... | from __future__ import unicode_literals
from alexia.apps.organization.models import Organization
def organization(request):
return {
'organizations': Organization.objects.all(),
'current_organization': request.organization,
}
def permissions(request):
if request.user.is_superuser:
... | Fix AttributeError: 'AnonymousUser' object has no attribute 'membership_set' | Fix AttributeError: 'AnonymousUser' object has no attribute 'membership_set'
| Python | bsd-3-clause | Inter-Actief/alexia,Inter-Actief/alexia,Inter-Actief/alexia,Inter-Actief/alexia | ---
+++
@@ -15,13 +15,21 @@
return {'is_tender': True, 'is_planner': True, 'is_manager': True, 'is_foundation_manager': True}
try:
- membership = request.user.membership_set.get(organization=request.organization)
- return {
- 'is_tender': membership.is_tender,
- 'is... |
540bffe17ede75bc6afd9b2d45e343e0eac4552b | rna-transcription/rna_transcription.py | rna-transcription/rna_transcription.py | DNA = {"A", "C", "T", "G"}
TRANS = {"G": "C", "C":"G", "T":"A", "A":"U"}
def to_rna(dna):
# Check validity - `difference` returns elements in dna not in DNA
if set(dna).difference(DNA):
return ""
return "".join([TRANS[n] for n in dna])
| TRANS = {"G": "C", "C":"G", "T":"A", "A":"U"}
def to_rna(dna):
try:
return "".join([TRANS[n] for n in dna])
except KeyError:
return ""
# Old version: it's slightly slower for valid DNA, but slightly faster for invalid DNA
DNA = {"A", "C", "T", "G"}
TRANS = {"G": "C", "C":"G", "T":"A", "A":"... | Add an exception based version | Add an exception based version
| Python | agpl-3.0 | CubicComet/exercism-python-solutions | ---
+++
@@ -1,9 +1,20 @@
-DNA = {"A", "C", "T", "G"}
-
TRANS = {"G": "C", "C":"G", "T":"A", "A":"U"}
def to_rna(dna):
+ try:
+ return "".join([TRANS[n] for n in dna])
+ except KeyError:
+ return ""
+
+
+# Old version: it's slightly slower for valid DNA, but slightly faster for invalid DNA
+
... |
b7b67a0327feddc977a404178aae03e47947dd20 | bluebottle/bluebottle_drf2/pagination.py | bluebottle/bluebottle_drf2/pagination.py | from rest_framework.pagination import PageNumberPagination
class BluebottlePagination(PageNumberPagination):
page_size = 10
| from rest_framework.pagination import PageNumberPagination
class BluebottlePagination(PageNumberPagination):
page_size = 10
page_size_query_param = 'page_size'
| Make it possible to send a page_size parameter to all paged endpoints. | Make it possible to send a page_size parameter to all paged endpoints.
BB-9512 #resolve
| Python | bsd-3-clause | onepercentclub/bluebottle,onepercentclub/bluebottle,onepercentclub/bluebottle,onepercentclub/bluebottle,onepercentclub/bluebottle | ---
+++
@@ -3,3 +3,4 @@
class BluebottlePagination(PageNumberPagination):
page_size = 10
+ page_size_query_param = 'page_size' |
fba44cbf5f2cf0740e1579d70e79da4ab7d57aa0 | diana/socket.py | diana/socket.py | import socket
from . import packet
BLOCKSIZE = 4096
def connect(host, port, connect=socket.create_connection):
sock = connect((host, port))
def tx(pack):
sock.send(packet.encode(pack))
def rx():
buf = b''
while True:
data = sock.recv(BLOCKSIZE)
buf += data
... | import socket
from . import packet
BLOCKSIZE = 4096
def connect(host, port=2010, connect=socket.create_connection):
sock = connect((host, port))
def tx(pack):
sock.send(packet.encode(pack))
def rx():
buf = b''
while True:
data = sock.recv(BLOCKSIZE)
buf += d... | Use a sensible default port | Use a sensible default port
| Python | mit | prophile/libdiana | ---
+++
@@ -3,7 +3,7 @@
BLOCKSIZE = 4096
-def connect(host, port, connect=socket.create_connection):
+def connect(host, port=2010, connect=socket.create_connection):
sock = connect((host, port))
def tx(pack):
sock.send(packet.encode(pack)) |
1f5c196796d8f10bc19260c2d353d880b6147be7 | backend/__init__.py | backend/__init__.py | #
# Centralized logging setup
#
import os
import logging
from .utils import getLogger
l = getLogger('backend')
logging.basicConfig(
level=logging.DEBUG,
format='[%(asctime)s][%(levelname)s] %(name)s '
'%(filename)s:%(funcName)s:%(lineno)d | %(message)s',
datefmt='%Y-%m-%d %H:%M:%S'
)
sentry_d... | #
# Centralized logging setup
#
import os
import logging
from .utils import getLogger
l = getLogger('backend')
logging.basicConfig(
level=logging.DEBUG,
format='[%(asctime)s][%(levelname)s] %(name)s '
'%(filename)s:%(funcName)s:%(lineno)d | %(message)s',
datefmt='%Y-%m-%d %H:%M:%S'
)
sentry_d... | Set Sentry log level to warning | Set Sentry log level to warning
To prevent every damn thing from being logged... | Python | mit | The-Fonz/adventure-track,The-Fonz/adventure-track,The-Fonz/adventure-track | ---
+++
@@ -22,6 +22,6 @@
from raven.conf import setup_logging
client = Client(sentry_dsn)
- handler = SentryHandler(client)
+ handler = SentryHandler(client, level='WARNING')
setup_logging(handler)
l.info("Set up Sentry client") |
d675dbcab18d56ae4c2c2f05d342159c1032b7b4 | polling_stations/apps/data_importers/management/commands/import_fake_exeter.py | polling_stations/apps/data_importers/management/commands/import_fake_exeter.py | from data_importers.management.commands import BaseXpressDemocracyClubCsvImporter
from pathlib import Path
def make_base_folder_path():
base_folder_path = Path.cwd() / Path("test_data/pollingstations_data/EXE")
return str(base_folder_path)
class Command(BaseXpressDemocracyClubCsvImporter):
local_files =... | from django.contrib.gis.geos import Point
from addressbase.models import UprnToCouncil
from data_importers.mixins import AdvanceVotingMixin
from data_importers.management.commands import BaseXpressDemocracyClubCsvImporter
from pathlib import Path
from pollingstations.models import AdvanceVotingStation
def make_base... | Add Advance Voting stations to fake Exeter importer | Add Advance Voting stations to fake Exeter importer
| Python | bsd-3-clause | DemocracyClub/UK-Polling-Stations,DemocracyClub/UK-Polling-Stations,DemocracyClub/UK-Polling-Stations | ---
+++
@@ -1,5 +1,11 @@
+from django.contrib.gis.geos import Point
+
+from addressbase.models import UprnToCouncil
+from data_importers.mixins import AdvanceVotingMixin
from data_importers.management.commands import BaseXpressDemocracyClubCsvImporter
from pathlib import Path
+
+from pollingstations.models import A... |
7f212a9bacfce6612c6ec435174bf9c3eddd4652 | pagoeta/apps/events/serializers.py | pagoeta/apps/events/serializers.py | from hvad.contrib.restframework import TranslatableModelSerializer
from rest_framework import serializers
from rest_framework.reverse import reverse
from .models import Category, TargetGroup, TargetAge, Event
from pagoeta.apps.core.functions import get_absolute_uri
from pagoeta.apps.places.serializers import PlaceList... | from hvad.contrib.restframework import TranslatableModelSerializer
from rest_framework import serializers
from rest_framework.reverse import reverse
from .models import Category, TargetGroup, TargetAge, Event
from pagoeta.apps.core.functions import get_absolute_uri
from pagoeta.apps.places.serializers import PlaceList... | Change camelCasing strategy for `target_age` and `target_group` | Change camelCasing strategy for `target_age` and `target_group`
| Python | mit | zarautz/pagoeta,zarautz/pagoeta,zarautz/pagoeta | ---
+++
@@ -17,12 +17,10 @@
class EventSerializer(TranslatableModelSerializer):
category = TypeField(read_only=True)
- target_group = TypeField(read_only=True)
- targetGroup = target_group
- target_age = TypeField(read_only=True)
- targetAge = target_age
place = PlaceListSerializer(read_only=... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.