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 |
|---|---|---|---|---|---|---|---|---|---|---|
2c64ba2bf9e67d6fb3e12a16489900ae7319ca33 | RasPi/VR/VR_split_image_v0.1.py | RasPi/VR/VR_split_image_v0.1.py | #! /usr/bin/env python
import sys
import cv2
import numpy as np
from matplotlib import pyplot as plt
# read input image
img = cv2.imread('/home/pi/OCR/VR/tempImg.jpg')
# Extract only those image areas where VR information will exist
# Assumes that Rover positioning while imaging is perfect
# left_img = img... | #! /usr/bin/env python
import sys
import os
import cv2
import numpy as np
from matplotlib import pyplot as plt
# set the current working directory
os.chdir('/home/pi/OCR/VR/')
# read input image
img = cv2.imread('tempImg.jpg')
# Extract only those image areas where VR information will exist
# Assumes t... | Set current working directory to unify hardcoded paths | Set current working directory to unify hardcoded paths | Python | apache-2.0 | ssudheen/Watson-Rover,ssudheen/Watson-Rover,ssudheen/Watson-Rover,ssudheen/Watson-Rover | ---
+++
@@ -1,19 +1,23 @@
#! /usr/bin/env python
import sys
+import os
import cv2
import numpy as np
from matplotlib import pyplot as plt
+# set the current working directory
+os.chdir('/home/pi/OCR/VR/')
+
# read input image
-img = cv2.imread('/home/pi/OCR/VR/tempImg.jpg')
+img = cv2.imread('tempImg.jpg')
... |
30ec6a7be967d1c4041539cf80f6ae3709460af5 | wtfhack/base/models.py | wtfhack/base/models.py | """ Basic models, such as user profile """
from django.db import models
class Language(models.Model):
name = models.CharField(max_length=40, null=False)
learn_url = models.URLField(null=True, blank=True)
@staticmethod
def all():
return [l.name for l in Language.objects.all()]
def __unicode... | """ Basic models, such as user profile """
from django.db import models
class Language(models.Model):
name = models.CharField(max_length=40, null=False)
learn_url = models.URLField(null=True, blank=True)
@staticmethod
def all():
return [l.name for l in Language.objects.all()]
def __unicode... | Increase max length for repo names | Increase max length for repo names
| Python | bsd-3-clause | sloria/wtfhack,sloria/wtfhack,sloria/wtfhack,sloria/wtfhack,sloria/wtfhack | ---
+++
@@ -13,10 +13,10 @@
class Repo(models.Model):
# Full name is required
- full_name = models.CharField(max_length=30, null=False)
+ full_name = models.CharField(max_length=300, null=False)
url = models.URLField(null=True)
language = models.ForeignKey(Language, related_name='repos')
- ... |
a0ba91395dc02f92e58395e41db77af12439a507 | arrow/__init__.py | arrow/__init__.py | # -*- coding: utf-8 -*-
from ._version import __version__
from .api import get, now, utcnow
from .arrow import Arrow
from .factory import ArrowFactory
| # -*- coding: utf-8 -*-
from ._version import __version__
from .api import get, now, utcnow
from .arrow import Arrow
from .factory import ArrowFactory
from .parser import ParserError
| Add ParserError to the module exports. | Add ParserError to the module exports.
Adding ParserError to the module exports allows users to easily catch that specific error. It also eases lookup of that error for tools like PyCharm. | Python | apache-2.0 | crsmithdev/arrow | ---
+++
@@ -3,3 +3,4 @@
from .api import get, now, utcnow
from .arrow import Arrow
from .factory import ArrowFactory
+from .parser import ParserError |
9aaa857b278d68009fc6de052e6951677d037fb5 | derrida/__init__.py | derrida/__init__.py | __version_info__ = (0, 9, 0, 'dev')
# Dot-connect all but the last. Last is dash-connected if not None.
__version__ = '.'.join([str(i) for i in __version_info__[:-1]])
if __version_info__[-1] is not None:
__version__ += ('-%s' % (__version_info__[-1],))
# context processor to add version to the template environ... | __version_info__ = (0, 9, 0)
# Dot-connect all but the last. Last is dash-connected if not None.
__version__ = '.'.join([str(i) for i in __version_info__[:-1]])
if __version_info__[-1] is not None:
__version__ += ('-%s' % (__version_info__[-1],))
# context processor to add version to the template environment
de... | Bump version number to 0.9 | Bump version number to 0.9
| Python | apache-2.0 | Princeton-CDH/derrida-django,Princeton-CDH/derrida-django,Princeton-CDH/derrida-django,Princeton-CDH/derrida-django | ---
+++
@@ -1,4 +1,4 @@
-__version_info__ = (0, 9, 0, 'dev')
+__version_info__ = (0, 9, 0)
# Dot-connect all but the last. Last is dash-connected if not None. |
4fbda94aa41e0051a4ef7ea26beb587865f8f081 | slybot/setup.py | slybot/setup.py | from slybot import __version__
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
install_requires = ['Scrapy', 'scrapely', 'loginform', 'lxml', 'jsonschema']
tests_requires = install_requires
setup(name='slybot',
version=__version__,
license='BSD',
descri... | from slybot import __version__
from setuptools import setup, find_packages
install_requires = ['Scrapy', 'scrapely', 'loginform', 'lxml', 'jsonschema']
tests_requires = install_requires
setup(name='slybot',
version=__version__,
license='BSD',
description='Slybot crawler',
author='Scrapy projec... | Update Slybot packages and drop support for Python < 2.7 | Update Slybot packages and drop support for Python < 2.7
| Python | bsd-3-clause | amikey/portia,naveenvprakash/portia,asa1253/portia,sntran/portia,PrasannaVenkadesh/portia,anjuncc/portia,NoisyText/portia,Youwotma/portia,PrasannaVenkadesh/portia,anjuncc/portia,amikey/portia,livepy/portia,NicoloPernigo/portia,anjuncc/portia,asa1253/portia,verylasttry/portia,chennqqi/portia,NoisyText/portia,amikey/port... | ---
+++
@@ -1,8 +1,5 @@
from slybot import __version__
-try:
- from setuptools import setup
-except ImportError:
- from distutils.core import setup
+from setuptools import setup, find_packages
install_requires = ['Scrapy', 'scrapely', 'loginform', 'lxml', 'jsonschema']
tests_requires = install_requires
@@ ... |
8244d43bb87a2ea88ab1ee0c9cedee77eeb994ba | plumbium/artefacts.py | plumbium/artefacts.py | import os.path
from utils import file_sha1sum
class Artefact(object):
def __init__(self, filename, extension):
if not filename.endswith(extension):
raise ValueError
self.filename = filename
self._ext_length = len(extension)
def checksum(self):
return file_sha1sum(s... | import os.path
from utils import file_sha1sum
class Artefact(object):
def __init__(self, filename, extension):
if not filename.endswith(extension):
raise ValueError
self._filename = filename
self._ext_length = len(extension)
self._abspath = os.path.abspath(filename)
... | Add abspath and exists methods to Artefact | Add abspath and exists methods to Artefact
| Python | mit | jstutters/Plumbium | ---
+++
@@ -6,16 +6,28 @@
def __init__(self, filename, extension):
if not filename.endswith(extension):
raise ValueError
- self.filename = filename
+ self._filename = filename
self._ext_length = len(extension)
+ self._abspath = os.path.abspath(filename)
... |
e04123ce0b368b19015270b1fc1bd1f706c765cf | pwm/_compat.py | pwm/_compat.py | """
pwm._compat
~~~~~~~~~~~
Micro compatiblity library. Or superlight six, if you want. Like a five, or something.
"""
# pylint: disable=unused-import
import sys
PY2 = sys.version_info[0] == 2
if PY2: # pragma: no cover
from ConfigParser import RawConfigParser
from httplib import HTTPConnection... | """
pwm._compat
~~~~~~~~~~~
Micro compatiblity library. Or superlight six, if you want. Like a five, or something.
"""
# pylint: disable=unused-import
import sys
PY2 = sys.version_info[0] == 2
if PY2: # pragma: no cover
from ConfigParser import RawConfigParser
from httplib import HTTPConnection... | Fix python 3 input compatiblity | Fix python 3 input compatiblity
| Python | mit | thusoy/pwm,thusoy/pwm | ---
+++
@@ -21,6 +21,7 @@
else: # pragma: no cover
from configparser import RawConfigParser
from http.client import HTTPConnection
+ input = input
def ord_byte(byte):
''' convert a single byte into integer representation '''
return byte |
fd8ea34ccc5f9aa83ea3ab81da2face511fd306f | dthm4kaiako/config/__init__.py | dthm4kaiako/config/__init__.py | """Configuration for Django system."""
__version__ = "0.12.0"
__version_info__ = tuple(
[
int(num) if num.isdigit() else num
for num in __version__.replace("-", ".", 1).split(".")
]
)
| """Configuration for Django system."""
__version__ = "0.12.1"
__version_info__ = tuple(
[
int(num) if num.isdigit() else num
for num in __version__.replace("-", ".", 1).split(".")
]
)
| Increment version number to 0.12.1 | Increment version number to 0.12.1
| Python | mit | uccser/cs4teachers,uccser/cs4teachers,uccser/cs4teachers,uccser/cs4teachers | ---
+++
@@ -1,6 +1,6 @@
"""Configuration for Django system."""
-__version__ = "0.12.0"
+__version__ = "0.12.1"
__version_info__ = tuple(
[
int(num) if num.isdigit() else num |
5e2dbeab75501254da598c6c401cbbd8446f01a5 | util/timeline_adjust.py | util/timeline_adjust.py | #!/usr/bin/python
from __future__ import print_function
import argparse
import re
time_re = re.compile(r"^\s*#?\s*([0-9]+(?:\.[0-9]+)?)\s+\"")
first_num_re = re.compile(r"([0-9]+(?:\.[0-9]+)?)")
def adjust_lines(lines, adjust):
for line in lines:
match = re.match(time_re, line)
if match:
time = float... | #!/usr/bin/python
from __future__ import print_function
import argparse
import re
time_re = re.compile(r"^\s*#?\s*([0-9]+(?:\.[0-9]+)?)\s+\"")
first_num_re = re.compile(r"([0-9]+(?:\.[0-9]+)?)")
def adjust_lines(lines, adjust):
for line in lines:
match = re.match(time_re, line)
if match:
time = float... | Fix timeline adjust not being able to load Windows files | Fix timeline adjust not being able to load Windows files
| Python | apache-2.0 | quisquous/cactbot,quisquous/cactbot,quisquous/cactbot,sqt/cactbot,sqt/cactbot,sqt/cactbot,sqt/cactbot,quisquous/cactbot,quisquous/cactbot,sqt/cactbot,quisquous/cactbot | ---
+++
@@ -19,7 +19,7 @@
def main():
parser = argparse.ArgumentParser(
description="A utility to uniformly adjust times in an act timeline file")
- parser.add_argument('--file', required=True, type=argparse.FileType('r', 0),
+ parser.add_argument('--file', required=True, type=argparse.FileType('r', enco... |
1ceea35669fd8e6eff5252ef6607289619f0f3c2 | certbot/tests/main_test.py | certbot/tests/main_test.py | """Tests for certbot.main."""
import unittest
import mock
from certbot import cli
from certbot import configuration
from certbot.plugins import disco as plugins_disco
class ObtainCertTest(unittest.TestCase):
"""Tests for certbot.main.obtain_cert."""
def _call(self, args):
plugins = plugins_disco.... | """Tests for certbot.main."""
import unittest
import mock
from certbot import cli
from certbot import configuration
from certbot.plugins import disco as plugins_disco
class ObtainCertTest(unittest.TestCase):
"""Tests for certbot.main.obtain_cert."""
def setUp(self):
self.get_utility_patch = mock.... | Improve obtain_cert no pause test | Improve obtain_cert no pause test
| Python | apache-2.0 | lmcro/letsencrypt,jsha/letsencrypt,dietsche/letsencrypt,letsencrypt/letsencrypt,stweil/letsencrypt,wteiken/letsencrypt,bsmr-misc-forks/letsencrypt,wteiken/letsencrypt,bsmr-misc-forks/letsencrypt,lmcro/letsencrypt,stweil/letsencrypt,jtl999/certbot,DavidGarciaCat/letsencrypt,letsencrypt/letsencrypt,DavidGarciaCat/letsenc... | ---
+++
@@ -13,6 +13,14 @@
class ObtainCertTest(unittest.TestCase):
"""Tests for certbot.main.obtain_cert."""
+ def setUp(self):
+ self.get_utility_patch = mock.patch(
+ 'certbot.main.zope.component.getUtility')
+ self.mock_get_utility = self.get_utility_patch.start()
+
+ def te... |
7151af9947dffc097a328f794281a20580c7b162 | backend/globaleaks/handlers/__init__.py | backend/globaleaks/handlers/__init__.py | # -*- encoding: utf-8 -*-
#
# In here you will find all the handlers that are tasked with handling the
# requests specified in the API.
#
# From these handlers we will be instantiating models objects that will take care
# of our business logic and the generation of the output to be sent to GLClient.
#
# In here we are ... | # -*- encoding: utf-8 -*-
#
# In here you will find all the handlers that are tasked with handling the
# requests specified in the API.
#
# From these handlers we will be instantiating models objects that will take care
# of our business logic and the generation of the output to be sent to GLClient.
#
# In here we are ... | Fix python module package thanks to landscape.io | Fix python module package thanks to landscape.io
| Python | agpl-3.0 | vodkina/GlobaLeaks,vodkina/GlobaLeaks,vodkina/GlobaLeaks,vodkina/GlobaLeaks | ---
+++
@@ -16,7 +16,7 @@
__all__ = ['admin',
'base',
'files',
- 'node',
+ 'public',
'receiver',
'rtip',
'submission', |
14a085f787f5fe80a0737d97515b71adaf05d1cd | checker/checker/contest.py | checker/checker/contest.py | #!/usr/bin/python3
from checker.abstract import AbstractChecker
import base64
import sys
import codecs
class ContestChecker(AbstractChecker):
def __init__(self, tick, team, service, ip):
AbstractChecker.__init__(self, tick, team, service, ip)
def _rpc(self, function, *args):
sys.stdout.write... | #!/usr/bin/python3
from checker.abstract import AbstractChecker
import base64
import sys
import codecs
class ContestChecker(AbstractChecker):
def __init__(self, tick, team, service, ip):
AbstractChecker.__init__(self, tick, team, service, ip)
def _rpc(self, function, *args):
sys.stdout.write... | Fix double-encoding of binary blobs | Fix double-encoding of binary blobs
| Python | isc | fausecteam/ctf-gameserver,fausecteam/ctf-gameserver,fausecteam/ctf-gameserver,fausecteam/ctf-gameserver,fausecteam/ctf-gameserver | ---
+++
@@ -24,7 +24,7 @@
def store_blob(self, ident, blob):
data = base64.b64encode(blob)
- return self._rpc("STORE", ident, base64.b64encode(data).decode('latin-1'))
+ return self._rpc("STORE", ident, data.decode('latin-1'))
def retrieve_blob(self, ident):
data = self._... |
424a5da1e867b5b77fe5f241ef0a825988157811 | moksha/config/app_cfg.py | moksha/config/app_cfg.py | from tg.configuration import AppConfig, Bunch
import moksha
from moksha import model
from moksha.lib import app_globals, helpers
base_config = AppConfig()
base_config.package = moksha
# Set the default renderer
base_config.default_renderer = 'mako'
base_config.renderers = []
base_config.renderers.append('mako')
# @... | from tg.configuration import AppConfig, Bunch
import moksha
from moksha import model
from moksha.lib import app_globals, helpers
base_config = AppConfig()
base_config.package = moksha
# Set the default renderer
base_config.default_renderer = 'mako'
base_config.renderers = []
base_config.renderers.append('genshi')
ba... | Load up the genshi renderer | Load up the genshi renderer
| Python | apache-2.0 | lmacken/moksha,ralphbean/moksha,pombredanne/moksha,pombredanne/moksha,mokshaproject/moksha,lmacken/moksha,ralphbean/moksha,lmacken/moksha,pombredanne/moksha,mokshaproject/moksha,mokshaproject/moksha,ralphbean/moksha,mokshaproject/moksha,pombredanne/moksha | ---
+++
@@ -9,6 +9,7 @@
# Set the default renderer
base_config.default_renderer = 'mako'
base_config.renderers = []
+base_config.renderers.append('genshi')
base_config.renderers.append('mako')
# @@ This is necessary at the moment. |
c35c11fb546123d0aada37fe7d7ab1829a6fa9f0 | graphenebase/transactions.py | graphenebase/transactions.py | from collections import OrderedDict
from binascii import hexlify, unhexlify
from calendar import timegm
from datetime import datetime
import json
import struct
import time
from .account import PublicKey
from .chains import known_chains
from .signedtransactions import Signed_Transaction
from .operations import Operatio... | from collections import OrderedDict
from binascii import hexlify, unhexlify
from calendar import timegm
from datetime import datetime
import json
import struct
import time
from .account import PublicKey
from .chains import known_chains
from .signedtransactions import Signed_Transaction
from .operations import Operatio... | Revert "[TaPOS] link to the last irreversible block instead of headblock" | Revert "[TaPOS] link to the last irreversible block instead of headblock"
This reverts commit 05cec8e450a09fd0d3fa2b40860760f7bff0c125.
| Python | mit | xeroc/python-graphenelib | ---
+++
@@ -21,7 +21,7 @@
witness node!
"""
dynBCParams = ws.get_dynamic_global_properties()
- ref_block_num = dynBCParams["last_irreversible_block_num"] & 0xFFFF
+ ref_block_num = dynBCParams["head_block_number"] & 0xFFFF
ref_block_prefix = struct.unpack_from("<I", unhexlify(dynBCParams... |
2e723dc3244d1d485fa7c27f06807fa39f62f5d1 | account_fiscal_position_no_source_tax/account.py | account_fiscal_position_no_source_tax/account.py | from openerp import models, api, fields
class account_fiscal_position(models.Model):
_inherit = 'account.fiscal.position'
@api.v8 # noqa
def map_tax(self, taxes):
result = super(account_fiscal_position, self).map_tax(taxes)
taxes_without_src_ids = [
x.tax_dest_id.id for x... | from openerp import models, api, fields
class account_fiscal_position(models.Model):
_inherit = 'account.fiscal.position'
@api.v7
def map_tax(self, cr, uid, fposition_id, taxes, context=None):
result = super(account_fiscal_position, self).map_tax(
cr, uid, fposition_id, taxes, contex... | FIX fiscal position no source tax on v7 api | FIX fiscal position no source tax on v7 api
| Python | agpl-3.0 | csrocha/account_check,csrocha/account_check | ---
+++
@@ -4,6 +4,15 @@
class account_fiscal_position(models.Model):
_inherit = 'account.fiscal.position'
+
+ @api.v7
+ def map_tax(self, cr, uid, fposition_id, taxes, context=None):
+ result = super(account_fiscal_position, self).map_tax(
+ cr, uid, fposition_id, taxes, context=conte... |
debb751e42229c702fe93430a44cb5674d9aacde | app/events/forms.py | app/events/forms.py | """Forms definitions."""
from django import forms
from .models import Event
class EventForm(forms.ModelForm):
"""Form for EventCreateView."""
class Meta: # noqa
model = Event
fields = (
'title',
'date',
'venue',
'description',
'fb_... | """Forms definitions."""
from django import forms
from .models import Event
class EventForm(forms.ModelForm):
"""Form for EventCreateView."""
class Meta: # noqa
model = Event
fields = (
'title',
'date',
'venue',
'description',
'fb_... | Add image upload to event form | Add image upload to event form
| Python | mit | FlowFX/reggae-cdmx,FlowFX/reggae-cdmx | ---
+++
@@ -15,6 +15,7 @@
'venue',
'description',
'fb_event_url',
+ 'flyer_image',
)
def clean_fb_event_url(self): |
99c08468b7008a3c44b5b7c48bccbc9fb3825556 | opps/channels/forms.py | opps/channels/forms.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from django import forms
from django.utils.translation import ugettext_lazy as _
from .models import Channel
class ChannelAdminForm(forms.ModelForm):
layout = forms.ChoiceField(choices=(('default', _('Default'))))
class Meta:
model = Channel
| #!/usr/bin/env python
# -*- coding: utf-8 -*-
from django import forms
from django.utils.translation import ugettext_lazy as _
from .models import Channel
class ChannelAdminForm(forms.ModelForm):
layout = forms.ChoiceField(choices=(('default', _('Default')),))
class Meta:
model = Channel
| Fix channel form tuple, 'too many values to unpack' | Fix channel form tuple, 'too many values to unpack'
| Python | mit | opps/opps,jeanmask/opps,opps/opps,opps/opps,opps/opps,williamroot/opps,YACOWS/opps,jeanmask/opps,YACOWS/opps,williamroot/opps,YACOWS/opps,jeanmask/opps,jeanmask/opps,williamroot/opps,YACOWS/opps,williamroot/opps | ---
+++
@@ -7,7 +7,7 @@
class ChannelAdminForm(forms.ModelForm):
- layout = forms.ChoiceField(choices=(('default', _('Default'))))
+ layout = forms.ChoiceField(choices=(('default', _('Default')),))
class Meta:
model = Channel |
27d083727e3ca8d0264fc08e96a15f1cdc6a5acc | orderedmodel/models.py | orderedmodel/models.py | from django.db import models
from django.core.exceptions import ValidationError
class OrderedModel(models.Model):
order = models.PositiveIntegerField(blank=True, unique=True)
class Meta:
abstract = True
ordering = ['order']
def save(self, swapping=False, *args, **kwargs):
if not ... | from django.db import models
from django.core.exceptions import ValidationError
class OrderedModel(models.Model):
order = models.PositiveIntegerField(blank=True, default=1)
class Meta:
abstract = True
ordering = ['order']
def save(self, swapping=False, *args, **kwargs):
if not se... | Remove uniqueness of the order field | Remove uniqueness of the order field
This make possible adding the application in existing project
| Python | bsd-3-clause | MagicSolutions/django-orderedmodel,MagicSolutions/django-orderedmodel | ---
+++
@@ -3,7 +3,7 @@
class OrderedModel(models.Model):
- order = models.PositiveIntegerField(blank=True, unique=True)
+ order = models.PositiveIntegerField(blank=True, default=1)
class Meta:
abstract = True |
174e36358df2522f39154a47f3f79b7dffadb3fd | app/services/updater_service.py | app/services/updater_service.py | from app.system.updater import check_updates, do_upgrade, run_ansible
from app.system.updater import do_reboot
from app.views import SimpleBackgroundView
from .base import BaseService, BlockingServiceStart
class UpdaterService(BaseService, BlockingServiceStart):
def __init__(self, observer=None):
super().... | from os.path import basename
from app.system.updater import check_updates, do_upgrade, run_ansible
from app.system.updater import do_reboot
from app.views import SimpleBackgroundView
from .base import BaseService, BlockingServiceStart
class UpdaterService(BaseService, BlockingServiceStart):
def __init__(self, ob... | Use base Repo name in updating UI. | Use base Repo name in updating UI.
| Python | mit | supersaiyanmode/HomePiServer,supersaiyanmode/HomePiServer,supersaiyanmode/HomePiServer | ---
+++
@@ -1,3 +1,5 @@
+from os.path import basename
+
from app.system.updater import check_updates, do_upgrade, run_ansible
from app.system.updater import do_reboot
from app.views import SimpleBackgroundView
@@ -13,7 +15,8 @@
def on_service_start(self):
values = check_updates()
for val in ... |
d64a171dfde57106a5abd7d46990c81c6250b965 | whitespaceterminator.py | whitespaceterminator.py | # coding: utf8
# Copyright © 2011 Kozea
# Licensed under a 3-clause BSD license.
"""
Strip trailing whitespace before saving.
"""
from gi.repository import GObject, Gedit
class WhiteSpaceTerminator(GObject.Object, Gedit.WindowActivatable):
"""Strip trailing whitespace before saving."""
window = GObject.pro... | # coding: utf8
# Copyright © 2011 Kozea
# Licensed under a 3-clause BSD license.
"""
Strip trailing whitespace before saving.
"""
from gi.repository import GObject, Gedit
class WhiteSpaceTerminator(GObject.Object, Gedit.WindowActivatable):
"""Strip trailing whitespace before saving."""
window = GObject.pro... | Connect on existing tabs when activating the plugin. | Connect on existing tabs when activating the plugin.
| Python | bsd-3-clause | Kozea/Gedit-WhiteSpace-Terminator | ---
+++
@@ -16,6 +16,8 @@
def do_activate(self):
self.window.connect("tab-added", self.on_tab_added)
+ for document in self.window.get_documents():
+ document.connect("save", self.on_document_save)
def on_tab_added(self, window, tab, data=None):
tab.get_document()... |
f4f439f24dceb0c68f05a90196b3e4b525d1aa7a | setup.py | setup.py | #!/usr/bin/env python
import distutils.core
distutils.core.setup(
name='sunburnt',
version='0.4',
description='Python interface to Solr',
author='Toby White',
author_email='toby@timetric.com',
packages=['sunburnt'],
requires=['httplib2', 'lxml', 'pytz'],
license='WTFPL',
)
| #!/usr/bin/env python
import distutils.core
distutils.core.setup(
name='sunburnt',
version='0.4',
description='Python interface to Solr',
author='Toby White',
author_email='toby@timetric.com',
packages=['sunburnt'],
requires=['httplib2', 'lxml', 'pytz'],
license='WTFPL',
classifier... | Add some trove classifiers to the package metadata | Add some trove classifiers to the package metadata
| Python | mit | rlskoeser/sunburnt,pixbuffer/sunburnt-spatial,anmar/sunburnt,rlskoeser/sunburnt,pixbuffer/sunburnt-spatial,qmssof/sunburnt,tow/sunburnt,anmar/sunburnt | ---
+++
@@ -11,4 +11,11 @@
packages=['sunburnt'],
requires=['httplib2', 'lxml', 'pytz'],
license='WTFPL',
+ classifiers=[
+ 'Development Status :: 3 - Alpha',
+ 'Intended Audience :: Developers',
+ 'License :: DFSG approved',
+ 'Programming Language :: Python',
+ '... |
b395ec89a82b0c416caa3b0163978e5cf25afb4b | setup.py | setup.py | from setuptools import setup
setup(
name="yunomi",
version="0.2.2",
description="A Python metrics library with rate, statistical distribution, and timing information.",
author="richzeng",
author_email="richie.zeng@rackspace.com",
url="https://github.com/richzeng/yunomi",
packages=["yunomi",... | from setuptools import setup
setup(
name="yunomi",
version="0.2.2",
description="A Python metrics library with rate, statistical distribution, and timing information.",
author="richzeng",
author_email="richie.zeng@rackspace.com",
url="https://github.com/richzeng/yunomi",
packages=["yunomi",... | Remove unittest2 from install requirements | Remove unittest2 from install requirements
| Python | mit | dreid/yunomi | ---
+++
@@ -8,5 +8,4 @@
author_email="richie.zeng@rackspace.com",
url="https://github.com/richzeng/yunomi",
packages=["yunomi", "yunomi.core", "yunomi.stats"],
- install_requires=["unittest2"]
) |
747c912a39f74f51cb5c38176b3e0328938d6d7a | setup.py | setup.py | # Copyright 2021 DeepMind Technologies Limited
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agr... | # Copyright 2021 DeepMind Technologies Limited
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agr... | Exclude examples from the package installation | Exclude examples from the package installation
PiperOrigin-RevId: 398741057
Change-Id: I7fd7921b8275b9f8b8994b0f20f0d40e814c3a23
GitOrigin-RevId: 4ca481ae4f7c6cf62e38a970f13a14716f9661fc
| Python | apache-2.0 | deepmind/xmanager,deepmind/xmanager | ---
+++
@@ -21,7 +21,7 @@
version='0.1.0',
description='A framework for managing experiments',
author='DeepMind Technologies Limited',
- packages=find_namespace_packages(),
+ packages=find_namespace_packages(exclude=['examples.*']),
include_package_data=True,
package_data={'': ['*.sh', ... |
00ca7bed25582d16cc47ecaa3908226ff7d56b0d | moocng/wsgi.py | moocng/wsgi.py | """
WSGI config for moocng project.
This module contains the WSGI application used by Django's development server
and any production WSGI deployments. It should expose a module-level variable
named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover
this application via the ``WSGI_APPLICATION`` s... | """
WSGI config for moocng project.
This module contains the WSGI application used by Django's development server
and any production WSGI deployments. It should expose a module-level variable
named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover
this application via the ``WSGI_APPLICATION`` s... | Allow it to run with runserver if you don't have the VIRTUALENV variable set | Allow it to run with runserver if you don't have the VIRTUALENV variable set
| Python | apache-2.0 | GeographicaGS/moocng,GeographicaGS/moocng,GeographicaGS/moocng,OpenMOOC/moocng,OpenMOOC/moocng,GeographicaGS/moocng | ---
+++
@@ -28,9 +28,10 @@
# application = HelloWorldApplication(application)
def application(environ, start_response):
- virtualenv = environ.get('VIRTUALENV', '/var/www')
- activate_this = os.path.join(virtualenv, 'bin', 'activate_this.py')
- execfile(activate_this, dict(__file__=activate_this))
+ v... |
5158880a371f708ab7eeefcb04a29cf53b2ffcad | setup.py | setup.py | import os
from setuptools import setup, find_packages
f = open(os.path.join(os.path.dirname(__file__), 'README.rst'))
readme = f.read()
f.close()
setup(
name='micawber',
version="0.2.6",
description='a small library for extracting rich content from urls',
long_description=readme,
author='Charles L... | import os
from setuptools import setup, find_packages
f = open(os.path.join(os.path.dirname(__file__), 'README.rst'))
readme = f.read()
f.close()
setup(
name='micawber',
version="0.2.6",
description='a small library for extracting rich content from urls',
long_description=readme,
author='Charles L... | Add Python version trove classifiers. | Add Python version trove classifiers.
| Python | mit | coleifer/micawber,coleifer/micawber | ---
+++
@@ -31,6 +31,10 @@
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
+ 'Programming Language :: Python :: 2.6',
+ 'Programming Language :: Python :: 2.7',
+ 'Programming Language :: Python :: 3.2',
... |
298e591522c2deb1f24c028d5c851d60bf38de39 | setup.py | setup.py | from setuptools import setup, find_packages
setup(
name="testapp",
version="0.1",
description="Example application to be deployed.",
packages=find_packages(),
install_requires=['falcon'],
)
| from setuptools import setup, find_packages
setup(
name="testapp",
version="0.1",
description="Example application to be deployed.",
packages=find_packages(),
install_requires=['falcon', 'gunicorn'],
)
| Add gunicorn back to requirements | Add gunicorn back to requirements
| Python | apache-2.0 | brantlk/python-sample-app | ---
+++
@@ -5,5 +5,5 @@
version="0.1",
description="Example application to be deployed.",
packages=find_packages(),
- install_requires=['falcon'],
+ install_requires=['falcon', 'gunicorn'],
) |
9822e412eb23b4860bcb24996dc2a912eba07d9c | setup.py | setup.py | import os
from os.path import relpath, join
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
def find_package_data(data_root, package_root):
files = []
for root, dirnames, filenames in os.walk(data_root):
for fn in filenames:
... | import os
from os.path import relpath, join
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
def find_package_data(data_root, package_root):
files = []
for root, dirnames, filenames in os.walk(data_root):
for fn in filenames:
... | Increment version number now that 0.1.5 release out. | Increment version number now that 0.1.5 release out.
| Python | mit | open-forcefield-group/openforcefield,openforcefield/openff-toolkit,openforcefield/openff-toolkit,open-forcefield-group/openforcefield,open-forcefield-group/openforcefield | ---
+++
@@ -14,7 +14,7 @@
setup(
name = "smarty",
- version = "0.1.5",
+ version = "0.1.6",
author = "John Chodera, David Mobley, and others",
author_email = "john.chodera@choderalab.org",
description = ("Automated Bayesian atomtype sampling"), |
f97ab0211eaa07080ea946912c66b8b3393151f6 | setup.py | setup.py | from setuptools import setup
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
# Get the long description from the README file
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='flask-swagger-ui',
version='0.0.1a'... | from setuptools import setup
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
# Get the long description from the README file
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='flask-swagger-ui',
version='0.0.2',... | Bump version number to 0.0.2 | Bump version number to 0.0.2
| Python | mit | sveint/flask-swagger-ui,sveint/flask-swagger-ui,sveint/flask-swagger-ui | ---
+++
@@ -10,7 +10,7 @@
setup(
name='flask-swagger-ui',
- version='0.0.1a',
+ version='0.0.2',
description='Swagger UI blueprint for Flask',
long_description=long_description,
|
eb46fab82fc90dc714a5cfa046288d5d4bfcc176 | setup.py | setup.py | import os
from setuptools import setup
with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme:
README = readme.read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='pcassandra',
version='0.0.3',
... | import os
from setuptools import setup
with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme:
README = readme.read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='pcassandra',
version='0.0.4.dev',
... | Bump version - now at v0.0.4.dev | Bump version - now at v0.0.4.dev
| Python | bsd-3-clause | hgdeoro/pcassandra,hgdeoro/pcassandra | ---
+++
@@ -9,7 +9,7 @@
setup(
name='pcassandra',
- version='0.0.3',
+ version='0.0.4.dev',
packages=[
'pcassandra',
'pcassandra.management',
@@ -25,8 +25,9 @@
author='Horacio G. de Oro',
author_email='hgdeoro@gmail.com',
classifiers=[
+ 'Development Status :... |
5543655eec9a71a1a978d70c8381aa3bef1d9a1f | setup.py | setup.py | from distutils.core import setup
setup(name='pyresttest',
version='1.6.0',
description='Python RESTful API Testing & Microbenchmarking Tool',
long_description='Python RESTful API Testing & Microbenchmarking Tool \n Documentation at https://github.com/svanoort/pyresttest',
maintainer='Sam Van Oo... | from distutils.core import setup
setup(name='pyresttest',
version='1.6.1.dev',
description='Python RESTful API Testing & Microbenchmarking Tool',
long_description='Python RESTful API Testing & Microbenchmarking Tool \n Documentation at https://github.com/svanoort/pyresttest',
maintainer='Sam Va... | Bump version for next release | Bump version for next release
| Python | apache-2.0 | svanoort/pyresttest,netjunki/pyresttest,svanoort/pyresttest,satish-suradkar/pyresttest,satish-suradkar/pyresttest,netjunki/pyresttest | ---
+++
@@ -1,7 +1,7 @@
from distutils.core import setup
setup(name='pyresttest',
- version='1.6.0',
+ version='1.6.1.dev',
description='Python RESTful API Testing & Microbenchmarking Tool',
long_description='Python RESTful API Testing & Microbenchmarking Tool \n Documentation at https://g... |
e3e4334788457ae60d8834862ba0b4aece511be7 | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(name='pymks',
version='0.1-dev',
description='Package for Materials Knowledge System (MKS) regression tutorial',
author='Daniel Wheeler',
author_email='daniel.wheeler2@gmail.com',
url='http://wd15.github.com/pymks',
... | #!/usr/bin/env python
import subprocess
from setuptools import setup, find_packages
import os
def git_version():
def _minimal_ext_cmd(cmd):
# construct minimal environment
env = {}
for k in ['SYSTEMROOT', 'PATH']:
v = os.environ.get(k)
if v is not None:
... | Include git sha in version number | Include git sha in version number
Address #82
Git sha is now in the version number
| Python | mit | awhite40/pymks,davidbrough1/pymks,XinyiGong/pymks,fredhohman/pymks,davidbrough1/pymks | ---
+++
@@ -1,12 +1,45 @@
#!/usr/bin/env python
+import subprocess
from setuptools import setup, find_packages
+import os
+
+
+def git_version():
+ def _minimal_ext_cmd(cmd):
+ # construct minimal environment
+ env = {}
+ for k in ['SYSTEMROOT', 'PATH']:
+ v = os.environ.get(k)
... |
31bbe03929ff43705fb8f62e9b0a13b7a0195a7c | setup.py | setup.py | import os
from setuptools import setup
HERE = os.path.abspath(os.path.dirname(__file__))
VERSION_NS = {}
with open(os.path.join(HERE, 'lc_wrapper', '_version.py')) as f:
exec(f.read(), {}, VERSION_NS)
setup(
name='lc_wrapper',
version=VERSION_NS['__version__'],
packages=['lc_wrapper', 'lc_wrapper.ipy... | import os
from setuptools import setup
HERE = os.path.abspath(os.path.dirname(__file__))
VERSION_NS = {}
with open(os.path.join(HERE, 'lc_wrapper', '_version.py')) as f:
exec(f.read(), {}, VERSION_NS)
setup(
name='lc_wrapper',
version=VERSION_NS['__version__'],
packages=['lc_wrapper', 'lc_wrapper.ipy... | Exclude jupyter_client incompatibility versions from install_requires | Exclude jupyter_client incompatibility versions from install_requires
| Python | bsd-3-clause | NII-cloud-operation/Jupyter-LC_wrapper,NII-cloud-operation/Jupyter-LC_wrapper | ---
+++
@@ -11,7 +11,12 @@
name='lc_wrapper',
version=VERSION_NS['__version__'],
packages=['lc_wrapper', 'lc_wrapper.ipython', 'lc_wrapper.bash'],
- install_requires=['ipykernel>=4.0.0', 'jupyter_client', 'python-dateutil', 'fluent-logger'],
+ install_requires=[
+ 'ipykernel>=4.0.0',
+ ... |
411dc08c79ec3fb3a6ff70b2c99b0eb6cbc49ade | setup.py | setup.py | from setuptools import Extension, setup
from Cython.Build import cythonize
from sys import platform
from distutils.sysconfig import get_config_vars
import os
(opt,) = get_config_vars('OPT')
if opt:
os.environ['OPT'] = " ".join(flag for flag in opt.split() if flag != '-Wstrict-prototypes')
incl = ['./include']
ex... | from setuptools import Extension, setup
from Cython.Build import cythonize
from sys import platform
from distutils.sysconfig import get_config_vars
import os
(opt,) = get_config_vars('OPT')
if opt:
os.environ['OPT'] = " ".join(flag for flag in opt.split() if flag != '-Wstrict-prototypes')
incl = ['./include']
ex... | Fix to install extension 'cycgkit.boundingbox'. | Fix to install extension 'cycgkit.boundingbox'.
| Python | mit | jr-garcia/cyCGkit_minimal,jr-garcia/cyCGkit_minimal,jr-garcia/cyCGkit_minimal | ---
+++
@@ -23,7 +23,7 @@
setup(
name="cycgkit",
- packages=["cycgkit", 'cycgkit.cgtypes', 'cycgkit.boundingbox'],
+ packages=["cycgkit", 'cycgkit.cgtypes'],
ext_modules=cythonize([
Extension('cycgkit.cgtypes.*', ["cycgkit/cgtypes/*.pyx", './src/vec3.cpp'],
include_dirs=... |
a9075095c4490e61cc29932850ef6dcbf8dff0c8 | setup.py | setup.py | # -*- coding: utf-8 -*-
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
with open('README.rst') as f:
readme = f.read()
setup(
name='whatthepatch',
version='0.0.3',
description='A patch parsing library.',
long_description=readme,
author='Christo... | # -*- coding: utf-8 -*-
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
with open('README.rst') as f:
readme = f.read()
setup(
name='whatthepatch',
version='0.0.3',
description='A patch parsing library.',
long_description=readme,
author='Christo... | Add 3.5 to PyPI info | Add 3.5 to PyPI info
| Python | mit | cscorley/whatthepatch | ---
+++
@@ -42,6 +42,7 @@
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
+ "Programming Language :: Python :: 3.5",
],
)
|
0a4236439dd8d73f5428f9a21e172f4d78280342 | setup.py | setup.py | import os
import setuptools
setuptools.setup(
name='factory_djoy',
version='0.5',
description='Factories for Django, creating valid instances every time',
url='http://github.com/jamescooke/factory_djoy',
author='James Cooke',
author_email='github@jamescooke.info',
license='MIT',
pac... | import os
import setuptools
setuptools.setup(
name='factory_djoy',
version='0.5',
description='Factories for Django, creating valid instances every time',
url='http://github.com/jamescooke/factory_djoy',
author='James Cooke',
author_email='github@jamescooke.info',
license='MIT',
pac... | Add plain Python 2 and 3 to package metadata | Add plain Python 2 and 3 to package metadata
| Python | mit | jamescooke/factory_djoy | ---
+++
@@ -26,7 +26,9 @@
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
+ 'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
+ 'Programming Language :: Python :: 3',
... |
72422be6af89c5a8d4256f5b15ac216f3545f058 | setup.py | setup.py | # -*- coding: UTF-8 -*-
from distutils.core import setup
from setuptools import find_packages
#import time
#_version = "3.0.dev%s" % int(time.time())
_version = "3.0.0"
_packages = find_packages('.', exclude=["*.tests", "*.tests.*", "tests.*", "tests"])
setup(
name='laterpay-client',
version=_version,
de... | # -*- coding: UTF-8 -*-
from distutils.core import setup
from setuptools import find_packages
import codecs
#import time
#_version = "3.0.dev%s" % int(time.time())
_version = "3.0.0"
_packages = find_packages('.', exclude=["*.tests", "*.tests.*", "tests.*", "tests"])
setup(
name='laterpay-client',
version=_v... | Use codecs to handle README encoding | Use codecs to handle README encoding
| Python | mit | laterpay/laterpay-client-python | ---
+++
@@ -1,6 +1,8 @@
# -*- coding: UTF-8 -*-
from distutils.core import setup
from setuptools import find_packages
+
+import codecs
#import time
#_version = "3.0.dev%s" % int(time.time())
@@ -12,7 +14,7 @@
version=_version,
description="LaterPay API client",
- long_description=open("README.rs... |
c2931c9f04e73f7b871359a678e1f0b110aa833e | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup, find_packages
from cron_sentry.version import VERSION
setup(
name='cron-sentry',
version=VERSION,
author='Yipit Coders',
author_email='coders@yipit.com',
description='Cron-Sentry is a command-line wrapper that reports unsuccessful runs to Sentry (... | #!/usr/bin/env python
from setuptools import setup, find_packages
from sys import version_info
from cron_sentry.version import VERSION
requirements = ['raven']
if version_info < (2, 7, 0):
requirements.append('argparse')
setup(
name='cron-sentry',
version=VERSION,
author='Yipit Coders',
author_ema... | Change argparse requirement to only apply to python versions less than 2.7 | Change argparse requirement to only apply to python versions less than 2.7
| Python | mit | ciiol/cron-sentry,sysadmind/cron-sentry | ---
+++
@@ -1,6 +1,11 @@
#!/usr/bin/env python
from setuptools import setup, find_packages
+from sys import version_info
from cron_sentry.version import VERSION
+
+requirements = ['raven']
+if version_info < (2, 7, 0):
+ requirements.append('argparse')
setup(
name='cron-sentry',
@@ -18,7 +23,7 @@
]... |
5e9619556d4d3403a314dba0aa0975b0ed5c7205 | setup.py | setup.py | from distutils.core import setup
setup(
name='txZMQ',
version=open('VERSION').read().strip(),
packages=['txzmq', 'txzmq.test'],
license='GPLv2',
author='Andrey Smirnov',
author_email='me@smira.ru',
url='https://github.com/smira/txZMQ',
description='Twisted bindings for ZeroMQ',
long... | import io
from distutils.core import setup
setup(
name='txZMQ',
version=io.open('VERSION', encoding='utf-8').read().strip(),
packages=['txzmq', 'txzmq.test'],
license='GPLv2',
author='Andrey Smirnov',
author_email='me@smira.ru',
url='https://github.com/smira/txZMQ',
description='Twiste... | Use io.open when reading UTF-8 encoded file for Python3 compatibility. | Use io.open when reading UTF-8 encoded file for Python3 compatibility.
This way both Python2 and Python3 can use setup.py to handle the package.
| Python | mpl-2.0 | smira/txZMQ | ---
+++
@@ -1,14 +1,16 @@
+import io
+
from distutils.core import setup
setup(
name='txZMQ',
- version=open('VERSION').read().strip(),
+ version=io.open('VERSION', encoding='utf-8').read().strip(),
packages=['txzmq', 'txzmq.test'],
license='GPLv2',
author='Andrey Smirnov',
author_em... |
7acd0f07522aa1752585f519109129f9e9b8687e | h2o-py/tests/testdir_algos/deeplearning/pyunit_iris_basic_deeplearning.py | h2o-py/tests/testdir_algos/deeplearning/pyunit_iris_basic_deeplearning.py | from builtins import range
import sys, os
sys.path.insert(1, os.path.join("..",".."))
import h2o
from tests import pyunit_utils
from h2o.estimators.deeplearning import H2ODeepLearningEstimator
def deeplearning_basic():
iris_hex = h2o.import_file(path=pyunit_utils.locate("smalldata/iris/iris.csv"))
hh = H2ODeepL... | from builtins import range
import sys, os
sys.path.insert(1, "../../../")
import h2o
from tests import pyunit_utils
from h2o.estimators.deeplearning import H2ODeepLearningEstimator
def deeplearning_basic():
iris_hex = h2o.import_file(path=pyunit_utils.locate("smalldata/iris/iris.csv"))
hh = H2ODeepLearningEstim... | Make sure pyuni_iris_basic_deeplearning can also run locally | Make sure pyuni_iris_basic_deeplearning can also run locally
| Python | apache-2.0 | jangorecki/h2o-3,h2oai/h2o-3,mathemage/h2o-3,mathemage/h2o-3,jangorecki/h2o-3,h2oai/h2o-3,h2oai/h2o-3,michalkurka/h2o-3,h2oai/h2o-3,michalkurka/h2o-3,michalkurka/h2o-3,h2oai/h2o-dev,h2oai/h2o-3,mathemage/h2o-3,michalkurka/h2o-3,spennihana/h2o-3,h2oai/h2o-3,h2oai/h2o-dev,mathemage/h2o-3,h2oai/h2o-dev,michalkurka/h2o-3,m... | ---
+++
@@ -1,6 +1,6 @@
from builtins import range
import sys, os
-sys.path.insert(1, os.path.join("..",".."))
+sys.path.insert(1, "../../../")
import h2o
from tests import pyunit_utils
from h2o.estimators.deeplearning import H2ODeepLearningEstimator |
548329d5366e9b0f037a1df59efaeb6b36b5987d | aux2mongodb/auxservices/base.py | aux2mongodb/auxservices/base.py | from astropy.table import Table
import os
class AuxService:
renames = {}
ignored_columns = []
transforms = {}
basename = 'AUX_SERVICE'
def __init__(self, auxdir='/fact/aux'):
self.auxdir = auxdir
self.filename_template = os.path.join(
self.auxdir, '{date:%Y}', '{date... | from astropy.table import Table
import os
class AuxService:
renames = {}
ignored_columns = []
transforms = {}
basename = 'AUX_SERVICE'
def __init__(self, auxdir='/fact/aux'):
self.auxdir = auxdir
self.filename_template = os.path.join(
self.auxdir, '{date:%Y}', '{date... | Add method to read from filename | Add method to read from filename
| Python | mit | fact-project/aux2mongodb | ---
+++
@@ -16,9 +16,7 @@
'{date:%Y%m%d}.' + self.basename + '.fits'
)
- def read(self, date):
-
- filename = self.filename_template.format(date=date)
+ def read_file(self, filename):
df = Table.read(filename).to_pandas()
df.drop(self.ignored_columns, axis=1, i... |
4b0a51dcfb1b71975d0064f0ce58d68660d45a13 | manage.py | manage.py | from os.path import abspath
from flask import current_app as app
from app import create_app
# from app.model import init_db
from flask.ext.script import Manager
manager = Manager(create_app)
manager.add_option('-m', '--cfgmode', dest='config_mode', default='Development')
manager.add_option('-f', '--cfgfile', dest='co... | from os.path import abspath
from flask import current_app as app
from app import create_app, db
# from app.model import init_db
from flask.ext.script import Manager
manager = Manager(create_app)
manager.add_option('-m', '--cfgmode', dest='config_mode', default='Development')
manager.add_option('-f', '--cfgfile', dest... | Add restdb function and db variable | Add restdb function and db variable | Python | mit | nerevu/prometheus-api,nerevu/prometheus-api,nerevu/prometheus-api | ---
+++
@@ -1,7 +1,7 @@
from os.path import abspath
from flask import current_app as app
-from app import create_app
+from app import create_app, db
# from app.model import init_db
from flask.ext.script import Manager
@@ -26,6 +26,15 @@
print 'Database cleared'
@manager.command
+def resetdb():
+ with ap... |
aae5c02f8642eec08e87c102b7d255fb74b86c94 | pyluos/modules/led.py | pyluos/modules/led.py | from .module import Module, interact
class Led(Module):
def __init__(self, id, alias, robot):
Module.__init__(self, 'LED', id, alias, robot)
self.color = (0, 0, 0)
@property
def color(self):
return self._value
@color.setter
def color(self, new_color):
if new_color... | from .module import Module, interact
class Led(Module):
def __init__(self, id, alias, robot):
Module.__init__(self, 'LED', id, alias, robot)
self.color = (0, 0, 0)
@property
def color(self):
return self._value
@color.setter
def color(self, new_color):
new_color = ... | Make sur the rgb values are within [0, 255] range. | Make sur the rgb values are within [0, 255] range.
| Python | mit | pollen/pyrobus | ---
+++
@@ -12,6 +12,8 @@
@color.setter
def color(self, new_color):
+ new_color = [int(min(max(c, 0), 255)) for c in new_color]
+
if new_color != self._value:
self._value = new_color
self._push_value('rgb', new_color) |
29f6e1c46179257b6604a4314855b0347bc312ad | src/config.py | src/config.py | import json
import jsoncomment
class Config:
def __init_config_from_file(self, path):
with open(path) as f:
for k, v in jsoncomment.JsonComment(json).loads(f.read()).items():
self.__config[k] = v
def __init__(self, config):
self.__config = config
def __getitem... | import json
import jsoncomment
class Config:
def __init_config_from_file(self, path):
with open(path) as f:
for k, v in jsoncomment.JsonComment(json).loads(f.read()).items():
self.__config[k] = v
def __init__(self, config):
self.__config = config
def __getitem... | Remove 'fallback_path' handling from Config class | Remove 'fallback_path' handling from Config class
| Python | mit | sbobek/achievement-unlocked | ---
+++
@@ -50,7 +50,6 @@
@staticmethod
def fromfile(path, fallback_path):
config = Config({})
- fallback_path = os.path.join(os.path.abspath(os.path.dirname(sys.argv[0])), "../config.json")
config.__init_config_from_file(fallback_path)
if path is not None:
con... |
45da9e9d3eb2d8bba089c9a064e1a7c259da131a | bayespy/__init__.py | bayespy/__init__.py | ######################################################################
# Copyright (C) 2011-2013 Jaakko Luttinen
#
# This file is licensed under Version 3.0 of the GNU General Public
# License. See LICENSE for a text of the license.
######################################################################
###############... | ######################################################################
# Copyright (C) 2011-2013 Jaakko Luttinen
#
# This file is licensed under Version 3.0 of the GNU General Public
# License. See LICENSE for a text of the license.
######################################################################
###############... | Add plot module to automatically loaded modules | ENH: Add plot module to automatically loaded modules
| Python | mit | fivejjs/bayespy,bayespy/bayespy,jluttine/bayespy,SalemAmeen/bayespy | ---
+++
@@ -24,7 +24,4 @@
from . import utils
from . import inference
from . import nodes
-
-# Currently, model construction and the inference network are not separated so
-# the model is constructed using variational message passing nodes.
-#from .inference.vmp import nodes
+from . import plot |
d4edbdcc631a14112b88810de3382f147f5a13c9 | setup.py | setup.py | import os
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.txt')).read()
CHANGES = open(os.path.join(here, 'CHANGES.txt')).read()
requires = [
'pyramid',
'pyramid_jinja2',
'SQLAlchemy',
'transaction',
'pyramid_t... | import os
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.txt')).read()
CHANGES = open(os.path.join(here, 'CHANGES.txt')).read()
requires = [
'pyramid',
'pyramid_jinja2',
'SQLAlchemy',
'transaction',
'pyramid_t... | Update requirements, add test requirements | Update requirements, add test requirements
| Python | bsd-3-clause | rob-b/belt,rob-b/belt,rob-b/belt | ---
+++
@@ -15,6 +15,13 @@
'pyramid_debugtoolbar',
'zope.sqlalchemy',
'waitress',
+ 'lxml',
+]
+
+test_requires = [
+ 'fudge'
+ 'httpretty',
+ 'pytest',
]
setup(name='belt',
@@ -36,6 +43,7 @@
zip_safe=False,
test_suite='belt',
install_requires=requires,
+ tests... |
c384b335d9b55a1fc7c1eaa20f909eecca1a7f9f | setup.py | setup.py | #!/usr/bin/env python
# Copyright (C) 2013 SignalFuse, Inc.
# Setuptools install description file.
import os
from setuptools import setup, find_packages
requirements = ['docker-py==0.2.2']
setup(
name='maestro',
version='0.0.1',
description='Orchestrator for multi-host Docker deployments',
packages... | #!/usr/bin/env python
# Copyright (C) 2013 SignalFuse, Inc.
# Setuptools install description file.
import os
from setuptools import setup, find_packages
setup(
name='maestro',
version='0.0.1',
description='Orchestrator for multi-host Docker deployments',
zip_safe=True,
packages=find_packages(),
... | Set custom dependency URL for docker-py until required features are merged | Set custom dependency URL for docker-py until required features are merged
Signed-off-by: Maxime Petazzoni <0706025b2bbcec1ed8d64822f4eccd96314938d0@signalfuse.com>
| Python | apache-2.0 | Anvil/maestro-ng,signalfx/maestro-ng,ivotron/maestro-ng,jorge-marques/maestro-ng,zsuzhengdu/maestro-ng,signalfuse/maestro-ng,ivotron/maestro-ng,signalfuse/maestro-ng,signalfx/maestro-ng,Anvil/maestro-ng,zsuzhengdu/maestro-ng,jorge-marques/maestro-ng | ---
+++
@@ -6,14 +6,14 @@
import os
from setuptools import setup, find_packages
-requirements = ['docker-py==0.2.2']
-
setup(
name='maestro',
version='0.0.1',
description='Orchestrator for multi-host Docker deployments',
-
+ zip_safe=True,
packages=find_packages(),
+ install_requires=['... |
da063ba3936cf37bd53c3ba089173e96916339bf | setup.py | setup.py | from distutils.core import setup
import os
version = '0.1.0dev'
setup(
name='FrappeClient',
version=version,
author='Rushabh Mehta',
author_email='rmehta@erpnext.com',
download_url='https://github.com/jevonearth/frappe-client/archive/'+version+'.tar.gz',
packages=['frappeclient',],
install... | from setuptools import setup
version = '0.1.0dev'
with open('requirements.txt') as requirements:
install_requires = requirements.read().split()
setup(
name='frappeclient',
version=version,
author='Rushabh Mehta',
author_email='rmehta@erpnext.com',
packages=[
'frappeclient'
],
... | Clean up, PEP-8 fixes, remove download_url | Clean up, PEP-8 fixes, remove download_url
Switch to setuptools, so we can get tests_requires.
PEP-8 updates
Remove download link, as it was wrong, and it is not needed for pip
installs from git. Can be put back in if/when this package gets
published to pypi.
| Python | mit | frappe/frappe-client | ---
+++
@@ -1,14 +1,20 @@
-from distutils.core import setup
-import os
+from setuptools import setup
version = '0.1.0dev'
+with open('requirements.txt') as requirements:
+ install_requires = requirements.read().split()
+
setup(
- name='FrappeClient',
+ name='frappeclient',
version=version,
au... |
5f0f0a75b380392b6e15acfcf46b30853dd2fb7b | setup.py | setup.py | from setuptools import setup
version = '0.1'
setup(name='ramp',
version=version,
description="Rapid machine learning prototyping",
long_description=open("README.md").read(),
classifiers=[
'License :: OSI Approved :: BSD License'
],
keywords='machine learning data analysis... | from setuptools import setup, find_packages
version = '0.1'
setup(name='ramp',
version=version,
description="Rapid machine learning prototyping",
long_description=open("README.md").read(),
classifiers=[
'License :: OSI Approved :: BSD License'
],
keywords='machine learnin... | Include subdirectories when building the package. | Include subdirectories when building the package.
| Python | mit | kvh/ramp | ---
+++
@@ -1,4 +1,4 @@
-from setuptools import setup
+from setuptools import setup, find_packages
version = '0.1'
@@ -14,7 +14,7 @@
author_email='kvh@science.io',
url='http://github.com/kvh/ramp',
license='BSD',
- packages=['ramp'],
+ packages=find_packages(exclude=["*.tests"]),
... |
abc31c1d07e68f86e8ea4ffed080c073d7baa254 | setup.py | setup.py | #!/usr/bin/env python3
from setuptools import setup
setup(
name='botbot',
version='0.2.4',
description='A meta-bot for Euphoria.',
author='Rishov Sarkar',
url='https://github.com/ArkaneMoose/BotBot',
license='MIT',
packages=['botbot'],
package_dir={'botbot': 'source'},
install_requ... | #!/usr/bin/env python3
from setuptools import setup
setup(
name='botbot',
version='0.2.5',
description='A meta-bot for Euphoria.',
author='Rishov Sarkar',
url='https://github.com/ArkaneMoose/BotBot',
license='MIT',
packages=['botbot'],
package_dir={'botbot': 'source'},
install_requ... | Bump version number for adding !antighost command | Bump version number for adding !antighost command
| Python | mit | ArkaneMoose/BotBot | ---
+++
@@ -4,7 +4,7 @@
setup(
name='botbot',
- version='0.2.4',
+ version='0.2.5',
description='A meta-bot for Euphoria.',
author='Rishov Sarkar',
url='https://github.com/ArkaneMoose/BotBot', |
da68d64b91bb97e0a6025fe7eed650f8608d9f03 | setup.py | setup.py | #!/usr/bin/env python
import os
import setuptools
def read_requires(base):
path = os.path.join('tools', base)
requires = []
if not os.path.isfile(path):
return requires
with open(path, 'rb') as h:
for line in h.read().splitlines():
line = line.strip()
if len(li... | #!/usr/bin/env python
import os
import setuptools
def _clean_line(line):
line = line.strip()
line = line.split("#")[0]
line = line.strip()
return line
def read_requires(base):
path = os.path.join('tools', base)
requires = []
if not os.path.isfile(path):
return requires
with ... | Clean the lines in a seperate function. | Clean the lines in a seperate function.
| Python | apache-2.0 | varunarya10/taskflow,pombredanne/taskflow-1,citrix-openstack-build/taskflow,openstack/taskflow,jessicalucci/TaskManagement,jessicalucci/TaskManagement,varunarya10/taskflow,junneyang/taskflow,openstack/taskflow,jimbobhickville/taskflow,junneyang/taskflow,citrix-openstack-build/taskflow,jimbobhickville/taskflow,pombredan... | ---
+++
@@ -2,6 +2,13 @@
import os
import setuptools
+
+
+def _clean_line(line):
+ line = line.strip()
+ line = line.split("#")[0]
+ line = line.strip()
+ return line
def read_requires(base):
@@ -11,8 +18,8 @@
return requires
with open(path, 'rb') as h:
for line in h.read()... |
c7dd9141f2af03526a7a16a9e58db295127088c9 | setup.py | setup.py | #!/usr/bin/env python
import os
from setuptools import setup
# Utility function to read the README file.
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
twisted_deps = ['twisted']
scapy_deps = ['scapy>=2.2.0']
setup(
name = 'voltha',
version = '1.1.0',
author = 'Zs... | #!/usr/bin/env python
import os
from setuptools import setup
# Utility function to read the README file.
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
twisted_deps = ['twisted']
scapy_deps = ['scapy>=2.2.0']
setup(
name = 'voltha',
version = '1.2.0',
author = 'Zs... | Bump VOLTHA core version to 1.2 | Bump VOLTHA core version to 1.2
Change-Id: I63ea6ee090154f25aa51e01ce0da5e930c6ef86f
| Python | apache-2.0 | opencord/voltha,opencord/voltha,opencord/voltha,opencord/voltha,opencord/voltha | ---
+++
@@ -11,7 +11,7 @@
scapy_deps = ['scapy>=2.2.0']
setup(
name = 'voltha',
- version = '1.1.0',
+ version = '1.2.0',
author = 'Zsolt Haraszti, Nathan Knuth, Ali Al-Shabibi',
author_email = 'voltha-discuss@opencord.org',
description = ('Virtual Optical Line Terminal (OLT) Hardware Abst... |
8e4248cc73e4c4f1531c626dfda688224045c148 | setup.py | setup.py | from setuptools import setup
setup(
name='lace',
version='0.1.1',
description='Neural Learning to Rank using Chainer',
url='https://github.com/rjagerman/lace',
download_url = 'https://github.com/rjagerman/lace/archive/v0.1.1.tar.gz',
author='Rolf Jagerman',
author_email='rjagerman@gmail.com... | from setuptools import setup
setup(
name='lace',
version='0.1.1',
description='Neural Learning to Rank using Chainer',
url='https://github.com/rjagerman/lace',
download_url = 'https://github.com/rjagerman/lace/archive/v0.1.1.tar.gz',
author='Rolf Jagerman',
author_email='rjagerman@gmail.com... | Add correct packages and requirements for python package | Add correct packages and requirements for python package
| Python | mit | rjagerman/shoelace | ---
+++
@@ -9,5 +9,9 @@
author='Rolf Jagerman',
author_email='rjagerman@gmail.com',
license='MIT',
- packages=['lace']
+ packages=['lace',
+ 'lace.functions',
+ 'lace.loss'],
+ install_requires=['numpy>=1.12.0', 'chainer>=2.0.0'],
+ tests_require=['nose']
) |
5d3910aa452e58da3d1d0dea822151485380339b | setup.py | setup.py | from setuptools import setup
with open('README.md') as desc:
long_description = desc.read()
setup(name='beets-check',
version='0.9.0-beta.2',
description='beets plugin verifying file integrity with checksums',
long_description=long_description,
author='Thomas Scholtes',
author_email='... | from setuptools import setup
with open('README.md') as desc:
long_description = desc.read()
setup(name='beets-check',
version='0.9.0-beta.2',
description='beets plugin verifying file integrity with checksums',
long_description=long_description,
author='Thomas Scholtes',
author_email='... | Remove namespace package metadata to fix sdist | Remove namespace package metadata to fix sdist
| Python | mit | geigerzaehler/beets-check | ---
+++
@@ -15,7 +15,6 @@
test_suite='test',
packages=['beetsplug'],
- namespace_packages=['beetsplug'],
install_requires=[
'beets>=1.3.4', |
848a9efae2f331dd35e495a945bb62146f00fd30 | setup.py | setup.py | import os
from setuptools import setup
INSTALL_REQUIRES = ['python_cjson', 'requests >=1.0.3']
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name = "qds_sdk",
version = "1.0.9_beta",
author = "Qubole",
author_email = "dev@qubole.com",
description =... | import os
from setuptools import setup
INSTALL_REQUIRES = ['python_cjson', 'requests >=1.0.3', 'boto >=2.20.1']
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name = "qds_sdk",
version = "1.0.9_beta",
author = "Qubole",
author_email = "dev@qubole.com",
... | Add boto to list of installation dependencies | Add boto to list of installation dependencies
| Python | apache-2.0 | tanishgupta1/qds-sdk-py-1,jainavi/qds-sdk-py,vrajat/qds-sdk-py,adeshr/qds-sdk-py,qubole/qds-sdk-py,rohitpruthi95/qds-sdk-py,yogesh2021/qds-sdk-py,prakharjain09/qds-sdk-py,msumit/qds-sdk-py | ---
+++
@@ -1,7 +1,7 @@
import os
from setuptools import setup
-INSTALL_REQUIRES = ['python_cjson', 'requests >=1.0.3']
+INSTALL_REQUIRES = ['python_cjson', 'requests >=1.0.3', 'boto >=2.20.1']
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read() |
06d4d1a44b6a9006546a86999b0a0f2364f68c87 | setup.py | setup.py | from setuptools import setup
long_description = open('README.md').read()
setup(
name="django-mediumeditor",
version='0.1.3',
packages=["mediumeditor"],
include_package_data=True,
description="Medium Editor widget for Django",
url="https://github.com/g3rd/django-mediumeditor",
author="Chad ... | from setuptools import setup
long_description = open('README.md').read()
setup(
name="django-mediumeditor",
version='0.2.0',
packages=["mediumeditor"],
include_package_data=True,
description="Medium Editor widget for Django",
url="https://github.com/g3rd/django-mediumeditor",
author="Chad ... | Increase the version number for new feature | Increase the version number for new feature
| Python | mit | g3rd/django-mediumeditor,g3rd/django-mediumeditor | ---
+++
@@ -4,7 +4,7 @@
setup(
name="django-mediumeditor",
- version='0.1.3',
+ version='0.2.0',
packages=["mediumeditor"],
include_package_data=True,
description="Medium Editor widget for Django", |
7f01e0fb5845f222d84b24d6a9edc4f08ebf66ee | setup.py | setup.py | from distutils.core import setup
setup(
name = 'django-test-addons',
packages = ['test_addons'],
version = '0.3.5',
description = 'Library to provide support for testing multiple database system like Mongo, Redis, Neo4j along with django.',
author = 'Hakampreet Singh Pandher',
author_email = 'hspandher@outlook.c... | from distutils.core import setup
setup(
name = 'django-test-addons',
packages = ['test_addons'],
version = '0.3.6',
description = 'Library to provide support for testing multiple database system like Mongo, Redis, Neo4j along with django.',
author = 'Hakampreet Singh Pandher',
author_email = 'hspandher@outlook.c... | Change download url for release 0.3.6 | Change download url for release 0.3.6
| Python | mit | hspandher/django-test-addons | ---
+++
@@ -3,12 +3,12 @@
setup(
name = 'django-test-addons',
packages = ['test_addons'],
- version = '0.3.5',
+ version = '0.3.6',
description = 'Library to provide support for testing multiple database system like Mongo, Redis, Neo4j along with django.',
author = 'Hakampreet Singh Pandher',
author_email ... |
07ca7b02bebc9d4baf47f8b341a6ced625d61462 | setup.py | setup.py | import os
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name="pyslicer",
version="0.1.1",
author="SlicingDice LLC",
author_email="help@slicingdice.com",
description="Official Python client for SlicingDice, Data Warehous... | import os
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name="pyslicer",
version="1.0.0",
author="SlicingDice LLC",
author_email="help@slicingdice.com",
description="Official Python client for SlicingDice, Data Warehous... | Update package version to 1.0.0 | Update package version to 1.0.0
| Python | mit | SlicingDice/slicingdice-python | ---
+++
@@ -7,7 +7,7 @@
setup(
name="pyslicer",
- version="0.1.1",
+ version="1.0.0",
author="SlicingDice LLC",
author_email="help@slicingdice.com",
description="Official Python client for SlicingDice, Data Warehouse and Analytics Database as a Service.", |
e6666f1d6dec536b70ea9e69011983587e853149 | setup.py | setup.py | #!/usr/bin/env python
import setuptools
from setuptools import setup
with open('README.md', encoding='utf-8') as f:
long_description = f.read()
setup(name='cleanco',
description='Python library to process company names',
long_description=long_description,
long_description_content_type='text/ma... | #!/usr/bin/env python
import setuptools
from setuptools import setup
with open('README.md', encoding='utf-8') as f:
long_description = f.read()
setup(name='cleanco',
description='Python library to process company names',
long_description=long_description,
long_description_content_type='text/ma... | Include license file in source distribution | Include license file in source distribution | Python | mit | psolin/cleanco | ---
+++
@@ -13,6 +13,7 @@
long_description_content_type='text/markdown',
version='2.2-dev0',
license="MIT",
+ license_files=('LICENSE.txt',),
classifiers = [
"Topic :: Office/Business",
"Development Status :: 4 - Beta", |
7517fc46387ee998ab3b517ca38e8c003c431a5d | setup.py | setup.py | try:
from setuptools import setup
except ImportError:
from distutils.core import setup
config = {
'description': """MiniCPS is a lightweight simulator for accurate network
traffic in an industrial control system, with basic support for physical
layer interaction.""",
'author': 'scy-phy',
... | try:
from setuptools import setup
except ImportError:
from distutils.core import setup
config = {
'description': """MiniCPS is a lightweight simulator for accurate network
traffic in an industrial control system, with basic support for physical
layer interaction.""",
'author': 'scy-phy',
... | Update version, email and requirements | Update version, email and requirements
[ci skip]
| Python | mit | remmihsorp/minicps,scy-phy/minicps,scy-phy/minicps,remmihsorp/minicps | ---
+++
@@ -15,16 +15,14 @@
'download_url': 'https://github.com/scy-phy/minicps',
- 'author email': 'abc@gmail.com',
+ 'author email': 'daniele_antonioli@sutd.edu.sg',
- 'version': '0.1.0',
+ 'version': '1.0.0',
'install_requires': [
'cpppo',
- 'networkx',
- 'matpl... |
c4be964b9645261cebb142924288be7fad295a6d | setup.py | setup.py | # Copyright (C) Ivan Kravets <me@ikravets.com>
# See LICENSE for details.
from setuptools import find_packages, setup
from platformio import (__author__, __description__, __email__, __license__,
__title__, __url__, __version__)
setup(
name=__title__,
version=__version__,
descripti... | # Copyright (C) Ivan Kravets <me@ikravets.com>
# See LICENSE for details.
from sys import platform as sysplatform
from setuptools import find_packages, setup
from platformio import (__author__, __description__, __email__, __license__,
__title__, __url__, __version__)
setup(
name=__title_... | Install "colorama" if windows platform | Install "colorama" if windows platform
| Python | apache-2.0 | platformio/platformio-core,mplewis/platformio,eiginn/platformio,awong1900/platformio,dkuku/platformio,bkudria/platformio,bkudria/platformio,aphelps/platformio,TimJay/platformio,mseroczynski/platformio,awong1900/platformio,awong1900/platformio,platformio/platformio-core,bkudria/platformio,jrobeson/platformio,platformio/... | ---
+++
@@ -1,5 +1,7 @@
# Copyright (C) Ivan Kravets <me@ikravets.com>
# See LICENSE for details.
+
+from sys import platform as sysplatform
from setuptools import find_packages, setup
@@ -17,11 +19,10 @@
license=__license__,
install_requires=[
"click",
- "colorama",
"pyseria... |
a5425fb9b165c875b02ee9fb5130441bca048251 | setup.py | setup.py | from setuptools import Extension, setup
from Cython.Build import cythonize
from sys import platform
# from numpy import get_include
from distutils.sysconfig import get_config_vars
import os
(opt,) = get_config_vars('OPT')
if opt:
os.environ['OPT'] = " ".join(flag for flag in opt.split() if flag != '-Wstrict-proto... | from setuptools import Extension, setup
from Cython.Build import cythonize
from sys import platform
from distutils.sysconfig import get_config_vars
import os
(opt,) = get_config_vars('OPT')
if opt:
os.environ['OPT'] = " ".join(flag for flag in opt.split() if flag != '-Wstrict-prototypes')
incl = ['./include']
ex... | Add missing option in Setup. | Add missing option in Setup.
| Python | mit | jr-garcia/cyCGkit_minimal,jr-garcia/cyCGkit_minimal,jr-garcia/cyCGkit_minimal | ---
+++
@@ -1,7 +1,6 @@
from setuptools import Extension, setup
from Cython.Build import cythonize
from sys import platform
-# from numpy import get_include
from distutils.sysconfig import get_config_vars
import os
@@ -24,9 +23,9 @@
setup(
name="cycgkit",
- packages=["cycgkit"],
+ packages=["cycg... |
89b5c6da51ad7e9b7a1775cfa84fe0a6e02f6eab | setup.py | setup.py | """colorise module setup script for distribution."""
from setuptools import setup
import os
def get_version(filename):
with open(filename) as fh:
for line in fh:
if line.startswith('__version__'):
return line.split('=')[-1].strip()[1:-1]
setup(
name='colorise',
versi... | """colorise module setup script for distribution."""
from setuptools import setup
import os
def get_version(filename):
with open(filename) as fh:
for line in fh:
if line.startswith('__version__'):
return line.split('=')[-1].strip()[1:-1]
setup(
name='colorise',
versi... | Add pypi links to issues and docs | Add pypi links to issues and docs [ci skip]
| Python | bsd-3-clause | MisanthropicBit/colorise | ---
+++
@@ -23,6 +23,10 @@
packages=['colorise', 'colorise.win', 'colorise.nix'],
package_data={'colorise': ['tests', 'examples']},
url='https://github.com/MisanthropicBit/colorise',
+ project_urls={
+ 'Issue Tracker': 'https://github.com/MisanthropicBit/colorise/issues',
+ 'Documentat... |
a2d36b09f2fd19f6a368fa711631b09489f12cf6 | setup.py | setup.py | import setuptools
CLASSIFIERS = ['Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2',
'Programming Language :... | import setuptools
CLASSIFIERS = ['Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2',
'Programming Language :... | Add pycurl as an extras | Add pycurl as an extras
| Python | bsd-3-clause | gmr/tornado-aws,gmr/tornado-aws | ---
+++
@@ -20,7 +20,7 @@
setuptools.setup(name='tornado-aws',
- version='0.5.0',
+ version='0.6.0',
description=DESC,
long_description=open('README.rst').read(),
author='Gavin M. Roy',
@@ -31,6 +31,7 @@
... |
9ad0dd8a1fac2e03be1fe3b44eb3b198994586ad | setup.py | setup.py | #!/usr/bin/env python
import setuptools
setuptools.setup(
setup_requires=['pbr>=1.3', 'setuptools>=17.1'],
pbr=True)
| #!/usr/bin/env python
import setuptools
setuptools.setup(
setup_requires=['pbr>=1.3', 'setuptools>=17.1'],
python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*',
pbr=True)
| Add python_requires to help pip | Add python_requires to help pip
| Python | bsd-2-clause | testing-cabal/mock | ---
+++
@@ -3,4 +3,5 @@
setuptools.setup(
setup_requires=['pbr>=1.3', 'setuptools>=17.1'],
+ python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*',
pbr=True) |
72b660a9d71e1b29aa10a704e918c0c49dde8d86 | pygotham/admin/events.py | pygotham/admin/events.py | """Admin for event-related models."""
import wtforms
from pygotham.admin.utils import model_view
from pygotham.events import models
__all__ = ('EventModelView',)
CATEGORY = 'Events'
EventModelView = model_view(
models.Event,
'Events',
CATEGORY,
column_list=('name', 'slug', 'begins', 'ends', 'activ... | """Admin for event-related models."""
import wtforms
from pygotham.admin.utils import model_view
from pygotham.events import models
__all__ = ('EventModelView',)
CATEGORY = 'Events'
EventModelView = model_view(
models.Event,
'Events',
CATEGORY,
column_list=('name', 'slug', 'begins', 'ends', 'activ... | Exclude volunteers from the event admin | Exclude volunteers from the event admin
Showing many-to-many relationships in the admin can cause a page to take
a while to load. Plus the event admin isn't really the place to manage
volunteers.
Closes #198
| Python | bsd-3-clause | pathunstrom/pygotham,pathunstrom/pygotham,pathunstrom/pygotham,djds23/pygotham-1,PyGotham/pygotham,pathunstrom/pygotham,PyGotham/pygotham,djds23/pygotham-1,djds23/pygotham-1,djds23/pygotham-1,djds23/pygotham-1,pathunstrom/pygotham,PyGotham/pygotham,PyGotham/pygotham,PyGotham/pygotham | ---
+++
@@ -22,6 +22,7 @@
'days',
'sponsor_levels',
'talks',
+ 'volunteers',
),
form_overrides={
'activity_begins': wtforms.DateTimeField, |
e0b5949d76f9b89786d375c1fa4c52048c559370 | setup.py | setup.py | from setuptools import setup
setup(name="gimlet",
version='0.1',
description='Simple High-Performance WSGI Sessions',
long_description='',
classifiers=[
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2.7',
'Development Status :: 3 - A... | from setuptools import setup
setup(name="gimlet",
version='0.1',
description='Simple High-Performance WSGI Sessions',
long_description='',
classifiers=[
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2.7',
'Development Status :: 3 - A... | Update dependencies to add redis and pylibmc | Update dependencies to add redis and pylibmc
| Python | mit | storborg/gimlet | ---
+++
@@ -19,6 +19,8 @@
install_requires=[
'itsdangerous',
'webob',
+ 'redis',
+ 'pylibmc',
# Required for cookie encryption.
'pycrypto',
# These are for tests. |
3eaa26f609c9fd2f477f1b97af632cb4ffc3a8f1 | setup.py | setup.py | from setuptools import setup
from distutils.core import Command
import os
import sys
import codecs
class TestCommand(Command):
description = "Run tests"
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
import subprocess... | from setuptools import setup
from distutils.core import Command
import os
import sys
import codecs
class TestCommand(Command):
description = "Run tests"
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
import subprocess... | Allow newer versions of chardet | Allow newer versions of chardet
| Python | mit | hermanschaaf/mafan | ---
+++
@@ -42,7 +42,7 @@
install_requires=[
"jieba == 0.37",
"argparse == 1.1",
- "chardet == 2.1.1",
+ "chardet >= 2.1.1",
"future",
],
) |
c01d29b4b2839976fd457a1e950ed5800150b315 | setup.py | setup.py | from distutils.core import setup
# Load in babel support, if available.
try:
from babel.messages import frontend as babel
cmdclass = {"compile_catalog": babel.compile_catalog,
"extract_messages": babel.extract_messages,
"init_catalog": babel.init_catalog,
"updat... | from distutils.core import setup
# Load in babel support, if available.
try:
from babel.messages import frontend as babel
cmdclass = {"compile_catalog": babel.compile_catalog,
"extract_messages": babel.extract_messages,
"init_catalog": babel.init_catalog,
"updat... | Update dependencies so installation is simpler. | Update dependencies so installation is simpler.
The pull request, and a new release of py-moneyed has occurred.
| Python | bsd-3-clause | recklessromeo/django-money,AlexRiina/django-money,iXioN/django-money,iXioN/django-money,rescale/django-money,recklessromeo/django-money,pjdelport/django-money,tsouvarev/django-money,tsouvarev/django-money | ---
+++
@@ -19,11 +19,9 @@
packages=["djmoney",
"djmoney.forms",
"djmoney.models"],
- # Commented out, waiting for pull request to be fulfilled: https://github.com/limist/py-moneyed/pull/1
- #install_requires=['setuptools',
- # 'Django >= 1.2'... |
935a44b454d83452e302130114c1f40d934bf2ed | setup.py | setup.py | #!/usr/bin/env python
from distutils.core import setup
setup(name = "f.lux indicator applet",
version = "1.1.8",
description = "f.lux indicator applet - better lighting for your computer",
author = "Kilian Valkhof, Michael and Lorna Herf, Josh Winters",
author_email = "kilian@kilianvalkhof.com",
u... | #!/usr/bin/env python
from distutils.core import setup
data_files=[('share/icons/hicolor/scalable/apps', ['fluxgui.svg', 'fluxgui-light.svg', 'fluxgui-dark.svg']),
('share/applications', ['desktop/fluxgui.desktop'])]
import os
if os.path.exists("xflux"):
data_files.append( ('bin', ['xflux']) )
setup(nam... | Drop xflux binary from debian package | Drop xflux binary from debian package
| Python | mit | NHellFire/f.lux-indicator-applet,esmail/f.lux-indicator-applet | ---
+++
@@ -1,6 +1,13 @@
#!/usr/bin/env python
from distutils.core import setup
+
+data_files=[('share/icons/hicolor/scalable/apps', ['fluxgui.svg', 'fluxgui-light.svg', 'fluxgui-dark.svg']),
+ ('share/applications', ['desktop/fluxgui.desktop'])]
+
+import os
+if os.path.exists("xflux"):
+ data_files.ap... |
4868c9a6e976612ceed26c166c3dea7fd58d0d35 | setup.py | setup.py | # -*- coding: utf-8 -*-
import ast
import os
import re
import sys
from setuptools import find_packages, setup
ROOT_PATH = os.path.abspath(os.path.dirname(__file__))
# parse version from locust/__init__.py
_version_re = re.compile(r"__version__\s+=\s+(.*)")
_init_file = os.path.join(ROOT_PATH, "locust", "__init__.py"... | # -*- coding: utf-8 -*-
import ast
import os
import re
import sys
from setuptools import find_packages, setup
ROOT_PATH = os.path.abspath(os.path.dirname(__file__))
# parse version from locust/__init__.py
_version_re = re.compile(r"__version__\s+=\s+(.*)")
_init_file = os.path.join(ROOT_PATH, "locust", "__init__.py"... | Include `roundrobin` in the dependencies | Include `roundrobin` in the dependencies
| Python | mit | locustio/locust,locustio/locust,mbeacom/locust,mbeacom/locust,locustio/locust,mbeacom/locust,locustio/locust,mbeacom/locust | ---
+++
@@ -29,6 +29,7 @@
"psutil>=5.6.7",
"Flask-BasicAuth>=0.2.0",
"Flask-Cors>=3.0.10",
+ "roundrobin>=0.0.2",
],
test_suite="locust.test",
tests_require=[ |
67ae21fea2db5e0a02df6afcf282d44659802c54 | setup.py | setup.py | from setuptools import setup
setup(
name='downstream-farmer',
version='',
packages=['downstream-farmer'],
url='',
license='',
author='Storj Labs',
author_email='info@storj.io',
description='',
install_requires=[
'requests',
'heartbeat==0.1.2'
],
dependency_li... | from setuptools import setup
setup(
name='downstream-farmer',
version='',
packages=['downstream-farmer'],
url='',
license='',
author='Storj Labs',
author_email='info@storj.io',
description='',
install_requires=[
'requests',
'heartbeat==0.1.2'
],
dependency_li... | Add a entry point for CLI | Add a entry point for CLI
| Python | mit | Storj/downstream-farmer | ---
+++
@@ -13,7 +13,12 @@
'requests',
'heartbeat==0.1.2'
],
- dependency_links = [
+ dependency_links=[
'https://github.com/Storj/heartbeat/archive/v0.1.2.tar.gz#egg=heartbeat-0.1.2'
],
+ entry_points={
+ 'console_scripts': [
+ 'downstream = downstream-... |
1e2218469428fe974dfe0c0403a8c6fda8417321 | setup.py | setup.py | import os
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='rs_limits',
version='0.5.1',
author='Kevin L. Mitchell',
author_email='kevin.mitchell@rackspace.com',
description="Rackspace-specific rate-limit preprocesso... | import os
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='rs_limits',
version='0.5.1',
author='Kevin L. Mitchell',
author_email='kevin.mitchell@rackspace.com',
description="Rackspace-specific rate-limit preprocesso... | Add nose to dependencies list. | Add nose to dependencies list.
| Python | apache-2.0 | klmitch/rs_limits | ---
+++
@@ -37,6 +37,7 @@
],
tests_require=[
'mox',
+ 'nose',
'unittest2>=0.5.1',
],
) |
375c9ca0a9abb04408282cad14071df6215042b2 | setup.py | setup.py | #!/usr/bin/env python
from setuptools import find_packages, setup
setup(
name='blanc-basic-events',
version='0.3.2',
description='Blanc Basic Events for Django',
long_description=open('README.rst').read(),
url='https://github.com/blancltd/blanc-basic-events',
maintainer='Alex Tomkins',
mai... | #!/usr/bin/env python
from setuptools import find_packages, setup
setup(
name='blanc-basic-events',
version='0.3.2',
description='Blanc Basic Events for Django',
long_description=open('README.rst').read(),
url='https://github.com/blancltd/blanc-basic-events',
maintainer='Blanc Ltd',
mainta... | Update author to Blanc Ltd | Update author to Blanc Ltd
| Python | bsd-3-clause | blancltd/blanc-basic-events | ---
+++
@@ -8,8 +8,8 @@
description='Blanc Basic Events for Django',
long_description=open('README.rst').read(),
url='https://github.com/blancltd/blanc-basic-events',
- maintainer='Alex Tomkins',
- maintainer_email='alex@blanc.ltd.uk',
+ maintainer='Blanc Ltd',
+ maintainer_email='studio@bl... |
8b5f20156ecd5bf9af25654e1f605b92c2496349 | setup.py | setup.py | #!/usr/bin/env python3
from setuptools import setup
from doxhooks import __version__
with open("README.rst") as readme:
lines = list(readme)
for line_no, line in enumerate(lines):
if line.startswith("Doxhooks helps you"):
long_description = "".join(lines[line_no:])
break
else:
raise Runt... | #!/usr/bin/env python3
from setuptools import setup
from doxhooks import __version__
with open("README.rst") as readme:
lines = list(readme)
for line_no, line in enumerate(lines):
if line.startswith("Doxhooks helps you"):
long_description = "".join(lines[line_no:])
break
else:
raise Runt... | Add Python 3.5 to PyPI classifiers | Add Python 3.5 to PyPI classifiers
| Python | mit | nre/Doxhooks,nre/Doxhooks,nre/Doxhooks | ---
+++
@@ -46,6 +46,7 @@
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
+ "Programming Language :: Python :: 3.5",
"Topic :: Software Development :: Build Tools",
"Topic :: Software D... |
8c43908236c33d0fea6f94de9f59f346d6b74b2b | setup.py | setup.py | #!/usr/bin/env python
import os
from setuptools import setup, find_packages
# Use the docstring of the __init__ file to be the description
short_description = " ".join(__import__("cumulus").__doc__.splitlines()).strip()
# Use part of the sphinx docs index for the long description
doc_dir = os.path.join(os.path.dirn... | #!/usr/bin/env python
import os
from setuptools import setup, find_packages
# Use the docstring of the __init__ file to be the description
short_description = " ".join(__import__("cumulus").__doc__.splitlines()).strip()
# Use part of the sphinx docs index for the long description
doc_dir = os.path.join(os.path.dirn... | Update pyrax, and make it stop reverting if the version is too new | Update pyrax, and make it stop reverting if the version is too new
Conflicts:
setup.py
| Python | bsd-3-clause | bennylope/django-cumulus,mandx/django-cumulus,CoachLogix/django-cumulus,absoludity/django-cumulus,elsmorian/django-cumulus,ferrix/django-cumulus,rizumu/django-cumulus,bennylope/django-cumulus,absoludity/django-cumulus,django-cumulus/django-cumulus,ImaginaryLandscape/django-cumulus,elsmorian/django-cumulus | ---
+++
@@ -17,7 +17,7 @@
version=__import__("cumulus").get_version().replace(" ", "-"),
packages=find_packages(),
install_requires=[
- "pyrax==1.4.10",
+ "pyrax>=1.5.0",
],
author="Rich Leland",
author_email="rich@richleland.com", |
e2364f25d81c176ebe208d029da26738a6589dfb | setup.py | setup.py | import os
from setuptools import setup
with open(os.path.join(os.path.dirname(__file__), 'README.markdown')) as readme:
README = readme.read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='django-paiji2-weather',
versi... | import os
from setuptools import setup, find_packages
with open(os.path.join(os.path.dirname(__file__), 'README.markdown')) as readme:
README = readme.read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='django-paiji2-weat... | Use find_packages for package discovery | Use find_packages for package discovery
| Python | agpl-3.0 | rezometz/django-paiji2-weather,rezometz/django-paiji2-weather | ---
+++
@@ -1,5 +1,5 @@
import os
-from setuptools import setup
+from setuptools import setup, find_packages
with open(os.path.join(os.path.dirname(__file__), 'README.markdown')) as readme:
README = readme.read()
@@ -10,7 +10,7 @@
setup(
name='django-paiji2-weather',
version='0.1',
- packages=[... |
41212397b89c383824a217a8db235756be27fdcc | setup.py | setup.py | import os
from setuptools import find_packages, setup
ROOT = os.path.abspath(os.path.dirname(__file__))
setup(
name = 'django-hookbox',
version = '0.3',
description = 'Integrate hookbox with Django.',
long_description = open(os.path.join(ROOT, 'README.txt')).read(),
author = 'Duane Griffin',
a... | import os
from setuptools import find_packages, setup
ROOT = os.path.abspath(os.path.dirname(__file__))
setup(
name = 'django-hookbox',
version = '0.4dev',
description = 'Integrate hookbox with Django.',
long_description = open(os.path.join(ROOT, 'README.rst')).read(),
author = 'Duane Griffin',
... | Fix README filename; increment version | Fix README filename; increment version
| Python | bsd-3-clause | duaneg/django-hookbox | ---
+++
@@ -5,9 +5,9 @@
setup(
name = 'django-hookbox',
- version = '0.3',
+ version = '0.4dev',
description = 'Integrate hookbox with Django.',
- long_description = open(os.path.join(ROOT, 'README.txt')).read(),
+ long_description = open(os.path.join(ROOT, 'README.rst')).read(),
author ... |
b76928a82021848274cf29f29d73ab1a15eefc00 | setup.py | setup.py | from setuptools import setup, find_packages
import json
def read_from_package():
with open('package.json', 'r') as f:
pkg = json.load(f)
return dict(version=pkg['version'],
description=pkg['description'])
setup(
name='clibdoc',
packages=find_packages(),
install_requ... | from setuptools import setup, find_packages
import json
f = open('package.json', 'r')
pkg = json.load(f)
setup(
name='clibdoc',
version=pkg['version'],
description=pkg['description'],
packages=find_packages(),
install_requires=['jinja2'],
data_files=[('clibdoc/data', ['data/Doxyfile.in',
... | Simplify installation with package.json info | Simplify installation with package.json info
| Python | mit | matze/clib-doc | ---
+++
@@ -1,14 +1,13 @@
from setuptools import setup, find_packages
import json
-def read_from_package():
- with open('package.json', 'r') as f:
- pkg = json.load(f)
- return dict(version=pkg['version'],
- description=pkg['description'])
+f = open('package.json', 'r')
+pkg = ... |
7139bbd8b0461f1549508206e7caf29b6fe85254 | setup.py | setup.py | from setuptools import setup
packages = [
'cortex', 'cortex._lib', 'cortex.built_ins', 'cortex._lib.data',
'cortex.built_ins.datasets', 'cortex.built_ins.models',
'cortex.built_ins.networks', 'cortex.built_ins.transforms'
]
install_requirements = [
'imageio', 'torch', 'imageio', 'matplotlib', 'progres... |
from setuptools import setup
packages = [
'cortex', 'cortex._lib', 'cortex.built_ins', 'cortex._lib.data',
'cortex.built_ins.datasets', 'cortex.built_ins.models',
'cortex.built_ins.networks', 'cortex.built_ins.transforms']
setup(name='cortex',
version='0.1',
description='A library for wrappin... | Fix console_script out of date after branch reconstruction. | Fix console_script out of date after branch reconstruction.
| Python | bsd-3-clause | rdevon/cortex,rdevon/cortex | ---
+++
@@ -1,23 +1,22 @@
+
from setuptools import setup
packages = [
'cortex', 'cortex._lib', 'cortex.built_ins', 'cortex._lib.data',
'cortex.built_ins.datasets', 'cortex.built_ins.models',
- 'cortex.built_ins.networks', 'cortex.built_ins.transforms'
-]
+ 'cortex.built_ins.networks', 'cortex.buil... |
6d3b21e72ce7188d6e6239d1d4112d4e1b59a170 | setup.py | setup.py | #!/usr/bin/env python3
from setuptools import setup, find_packages
requires = [
"equations (>=1.0,<2.0)",
"discord.py (>=1.0,<2.0)",
"sqlalchemy (>=1.2,<2.0)",
"psycopg2 (>=2.7,<3.0)",
]
dependency_links = [
"git+https://github.com/Rapptz/discord.py@rewrite#egg=discord.py-1.0",
]
setup(name='Dic... | #!/usr/bin/env python3
from setuptools import setup, find_packages
requires = [
"equations (>=1.0,<2.0)",
# "discord.py (>=1.0,<2.0)",
"sqlalchemy (>=1.2,<2.0)",
"psycopg2 (>=2.7,<3.0)",
]
setup(name='Dice-bot',
version='1.0.1',
description='Discord bot for managing D&D characters',
... | Comment out discord.py for now | Comment out discord.py for now
| Python | mit | b-hodges/dice-bot | ---
+++
@@ -4,13 +4,9 @@
requires = [
"equations (>=1.0,<2.0)",
- "discord.py (>=1.0,<2.0)",
+ # "discord.py (>=1.0,<2.0)",
"sqlalchemy (>=1.2,<2.0)",
"psycopg2 (>=2.7,<3.0)",
-]
-
-dependency_links = [
- "git+https://github.com/Rapptz/discord.py@rewrite#egg=discord.py-1.0",
]
setup(nam... |
20290fd92c6298234ea007479f875d08239594a3 | setup.py | setup.py | # -*- coding: utf-8 -*-
import os
from setuptools import setup, find_packages
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='b2fuse',
version=1.3,
description="FUSE integration for Backblaze B2 Cloud storage",
long_description=read('README.md'),
... | # -*- coding: utf-8 -*-
import os
from setuptools import setup, find_packages
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='b2fuse',
version=1.3,
description="FUSE integration for Backblaze B2 Cloud storage",
long_description=read('README.md'),
... | Bump pyyaml from 3.12 to 5.1 | Bump pyyaml from 3.12 to 5.1
Bumps [pyyaml](https://github.com/yaml/pyyaml) from 3.12 to 5.1.
- [Release notes](https://github.com/yaml/pyyaml/releases)
- [Changelog](https://github.com/yaml/pyyaml/blob/master/CHANGES)
- [Commits](https://github.com/yaml/pyyaml/compare/3.12...5.1)
Signed-off-by: dependabot[bot] <5bdc... | Python | mit | sondree/b2_fuse,sondree/b2_fuse | ---
+++
@@ -22,7 +22,7 @@
keywords='',
author='Sondre Engebraaten',
packages=find_packages(),
- install_requires=['b2==1.1.0', 'fusepy==2.0.4', 'PyYAML==3.12'],
+ install_requires=['b2==1.1.0', 'fusepy==2.0.4', 'PyYAML==5.1'],
include_package_data=True,
zip_safe=True,
entry_points=... |
0729475711bd9200d2c23a8ecb8c010c72a68fe3 | setup.py | setup.py | from setuptools import setup, find_packages
from codecs import open # To use a consistent encoding
from os import path
here = path.abspath(path.dirname(__file__))
# Get the long description from the relevant file
# with open(path.join(here, 'DESCRIPTION.rst'), encoding='utf-8') as f:
# long_description = f.read(... | from setuptools import setup, find_packages
from codecs import open # To use a consistent encoding
from os import path
here = path.abspath(path.dirname(__file__))
# Get the long description from the relevant file
# with open(path.join(here, 'DESCRIPTION.rst'), encoding='utf-8') as f:
# long_description = f.read(... | Change version to 1.0.0.dev4; not ready for official release yet | Change version to 1.0.0.dev4; not ready for official release yet
| Python | mit | albert12132/templar,albert12132/templar | ---
+++
@@ -13,7 +13,7 @@
setup(
name='templar',
- version='1.0.0.dev3',
+ version='1.0.0.dev4',
description='A static templating engine written in Python',
# long_description=long_description,
url='https://github.com/albert12132/templar', |
a16f7e244546c4ef1c147dec033bb58c37d00a46 | setup.py | setup.py | # Lint as: python3
# Copyright 2020 Google LLC.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | # Lint as: python3
# Copyright 2020 Google LLC.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | Fix tfx-bsl error due to pyarrow package version requirement. | Fix tfx-bsl error due to pyarrow package version requirement.
Change-Id: Ice7d39ccb0be84b36482c93b7de4b113fb1e7f82
| Python | apache-2.0 | google/tensorflow-recorder | ---
+++
@@ -29,7 +29,8 @@
"pylint >= 2.5.3",
"fire >= 0.3.1",
"tensorflow >= 2.2.0",
- "gcsfs >= 0.6.2"
+ "gcsfs >= 0.6.2",
+ "pyarrow < 0.17",
]
|
c4cafa9ac3e737d5bab17548b7248258f72a2172 | setup.py | setup.py | # :coding: utf-8
# :copyright: Copyright (c) 2013 Martin Pengelly-Phillips
# :license: See LICENSE.txt.
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(
name='Segue',
version='1.0.0dev',
description='Maya and Houdini geometry transfer helper.',
pac... | # :coding: utf-8
# :copyright: Copyright (c) 2013 Martin Pengelly-Phillips
# :license: See LICENSE.txt.
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(
name='Segue',
version='1.0.0dev',
description='Maya and Houdini geometry transfer helper.',
pac... | Update links from Github to Gitlab following project move. | Update links from Github to Gitlab following project move.
| Python | apache-2.0 | 4degrees/segue | ---
+++
@@ -22,7 +22,7 @@
author_email='martin@4degrees.ltd.uk',
license='Apache License (2.0)',
long_description=open('README.rst').read(),
- url='https://bitbucket.org/4degrees/segue',
+ url='https://gitlab.com/4degrees/segue',
keywords='maya,houdini,transfer,cache'
)
|
c4bcbc49fa1418c085b0b10a836d42e5c69faa01 | setup.py | setup.py | from setuptools import setup
setup(
name="pptrees",
version="0.0.2",
description="Parallel Prefix tree generation library",
url="https://github.com/tdene/synth_opt_adders",
author="tdene",
author_email="teodord.ene@gmail.com",
license="Apache 2.0",
classifiers=[
"Development Sta... | from setuptools import setup, find_namespace_packages
setup(
name="pptrees",
version="0.0.2",
description="Parallel Prefix tree generation library",
url="https://github.com/tdene/synth_opt_adders",
author="tdene",
author_email="teodord.ene@gmail.com",
license="Apache 2.0",
classifiers=[... | Apply same fix as in 77a463b50a | Apply same fix as in 77a463b50a
Signed-off-by: Teodor-Dumitru Ene <2853baffc346a14b7885b2637a7ab7a41c2198d9@gmail.com>
| Python | apache-2.0 | tdene/synth_opt_adders | ---
+++
@@ -1,4 +1,4 @@
-from setuptools import setup
+from setuptools import setup, find_namespace_packages
setup(
name="pptrees",
@@ -16,7 +16,7 @@
],
keywords=["hardware adders prefix"],
package_dir={"": "src"},
- packages=["pptrees"],
+ packages=find_namespace_packages(where="src"),
... |
d95827a4a031ac54b31b9ff0997a8248456e9d50 | setup.py | setup.py | #!/usr/bin/env python2
from setuptools import setup, find_packages
def included_package(p):
return p.startswith('spacq.') or p == 'spacq'
setup(
name='SpanishAcquisition',
version='2.0.0a1',
author='Dmitri Iouchtchenko',
author_email='diouchtc@uwaterloo.ca',
maintainer='Grant Watson',
maintainer_email='ghwa... | #!/usr/bin/env python2
from setuptools import setup, find_packages
def included_package(p):
return p.startswith('spacq.') or p == 'spacq'
setup(
name='SpanishAcquisition',
version='2.0.0a1',
author='Dmitri Iouchtchenko',
author_email='diouchtc@uwaterloo.ca',
maintainer='Grant Watson',
maintainer_email='ghwa... | Change URL to new forked repo | Change URL to new forked repo
| Python | bsd-2-clause | ghwatson/SpanishAcquisitionIQC,ghwatson/SpanishAcquisitionIQC | ---
+++
@@ -17,7 +17,7 @@
description='Package for interfacing with devices and building user '
'interfaces.',
license='BSD',
- url='http://0.github.com/SpanishAcquisition/',
+ url='http://ghwatson.github.com/SpanishAcquisitionIQC/',
packages=[p for p in find_packages() if included_package(p)],
classifier... |
9ddc8bba14ff52348e43238d848371d23b9e1b9a | setup.py | setup.py | import os
import os.path
import sys
from setuptools import find_packages, setup
requirements = ['parse>=1.1.5']
major, minor = sys.version_info[:2]
if major == 2 and minor < 7:
requirements.append('argparse')
if major == 2 and minor < 6:
requirements.append('simplejson')
description = open('README.rst').read... | import os
import os.path
import sys
from setuptools import find_packages, setup
requirements = ['parse>=1.1.5']
major, minor = sys.version_info[:2]
if major == 2 and minor < 7:
requirements.append('argparse')
if major == 2 and minor < 6:
requirements.append('simplejson')
description = open('README.rst').read... | Change email, remove zip_safe=False and "upgrade" us to Beta. | Change email, remove zip_safe=False and "upgrade" us to Beta.
| Python | bsd-2-clause | spacediver/behave,vrutkovs/behave,tokunbo/behave-parallel,Abdoctor/behave,mzcity123/behave,connorsml/behave,memee/behave,jenisys/behave,mzcity123/behave,connorsml/behave,KevinOrtman/behave,Gimpneek/behave,joshal/behave,charleswhchan/behave,tokunbo/behave-parallel,spacediver/behave,KevinMarkVI/behave-parallel,hugeinc/be... | ---
+++
@@ -15,19 +15,18 @@
setup(
name='behave',
- version='1.0.0',
+ version='1.0',
description='behave is behaviour-driven development, Python style',
long_description=description,
author='Benno Rice and Richard Jones',
- author_email='benno@jeamland.net',
+ author_email='behave-... |
b8028d47d52caed5b6c714fe0abe0fa433433bfc | setup.py | setup.py | #!/usr/bin/env python3
# encoding: UTF-8
"""Build tar.gz for pygubu
Needed packages to run (using Debian/Ubuntu package names):
python3-tk
"""
import os
import pygubu
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
VERSION = pygubu.__version__
_dirname_ = os.pat... | #!/usr/bin/env python3
# encoding: UTF-8
"""Build tar.gz for pygubu
Needed packages to run (using Debian/Ubuntu package names):
python3-tk
"""
import os
from io import open
import pygubu
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
VERSION = pygubu.__version__... | Fix install error on python 2.7 | Fix install error on python 2.7
| Python | mit | alejandroautalan/pygubu,alejandroautalan/pygubu | ---
+++
@@ -8,6 +8,7 @@
python3-tk
"""
import os
+from io import open
import pygubu
|
09fee5dc38920d44ff9d5d44f7394d79460a9fc0 | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='couchforms',
version='0.0.4',
description='Dimagi Couch Forms for Django',
author='Dimagi',
author_email='information@dimagi.com',
url='http://www.dimagi.com/',
install_requires = [
"couchexport"
],
... | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='couchforms',
version='0.0.4',
description='Dimagi Couch Forms for Django',
author='Dimagi',
author_email='information@dimagi.com',
url='http://www.dimagi.com/',
install_requires = [
"couchdbkit",
... | Add some mandatory and semi-mandatory dependencies | Add some mandatory and semi-mandatory dependencies
| Python | bsd-3-clause | puttarajubr/commcare-hq,SEL-Columbia/commcare-hq,SEL-Columbia/commcare-hq,qedsoftware/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,qedsoftware/commcare-hq,puttarajubr/commcare-hq,puttarajubr/commcare-hq,dimagi/commcare-hq,qedsoftware/commcare-hq,dimagi/commcare-hq,qedsoftware/commcare-hq,puttarajubr/commcare-hq,SE... | ---
+++
@@ -10,7 +10,16 @@
author_email='information@dimagi.com',
url='http://www.dimagi.com/',
install_requires = [
- "couchexport"
+ "couchdbkit",
+ "couchexport",
+ "dimagi-utils",
+ "django",
+ "lxml",
+ "restkit",
+ ],
+ tests_require = [
+ ... |
d86071ea7b359dcdccc226bfdb6fc9f29e7eeba5 | setup.py | setup.py | from setuptools import setup, find_packages
setup(
name="cybox",
version="1.0b1",
author="CybOX Project, MITRE Corporation",
author_email="cybox@mitre.org",
description="An API for parsing and generating CybOX content.",
url="http://cybox.mitre.org",
packages=find_packages(),
install_re... | from setuptools import setup, find_packages
setup(
name="cybox",
version="1.0.0b1",
author="CybOX Project, MITRE Corporation",
author_email="cybox@mitre.org",
description="A Python library for parsing and generating CybOX content.",
url="http://cybox.mitre.org",
packages=find_packages(),
... | Prepare to release on PyPI | Prepare to release on PyPI
[ci skip]
| Python | bsd-3-clause | CybOXProject/python-cybox | ---
+++
@@ -2,10 +2,10 @@
setup(
name="cybox",
- version="1.0b1",
+ version="1.0.0b1",
author="CybOX Project, MITRE Corporation",
author_email="cybox@mitre.org",
- description="An API for parsing and generating CybOX content.",
+ description="A Python library for parsing and generating C... |
b03a50e8500ebdccfbf615e87d56d9c9f8d009b6 | setup.py | setup.py | from setuptools import setup
from git_version import git_version
setup(
name='python-ev3dev',
version=git_version(),
description='Python language bindings for ev3dev',
author='Ralph Hempel',
author_email='rhempel@hempeldesigngroup.com',
license='MIT',
url='https://github.com/rhempel/ev3dev... | from setuptools import setup
from git_version import git_version
setup(
name='python-ev3dev',
version=git_version(),
description='Python language bindings for ev3dev',
author='Ralph Hempel',
author_email='rhempel@hempeldesigngroup.com',
license='MIT',
url='https://github.com/rhempel/ev3dev... | Replace pil with Pillow in python package requirements | Replace pil with Pillow in python package requirements
Debian package python-pil does install Pillow, the alive fork of dead
PIL project. When, however, pil is specified as package dependency in
setup.py, and python-ev3dev is installed with either
`easy_install python-ev3dev` or `python setup.py install`,
an attempt i... | Python | mit | dwalton76/ev3dev-lang-python,ensonic/ev3dev-lang-python,dwalton76/ev3dev-lang-python,ensonic/ev3dev-lang-python-1,rhempel/ev3dev-lang-python,ddemidov/ev3dev-lang-python-1 | ---
+++
@@ -12,6 +12,6 @@
url='https://github.com/rhempel/ev3dev-lang-python',
include_package_data=True,
py_modules=['ev3dev'],
- install_requires=['pil']
+ install_requires=['Pillow']
)
|
fabbfe43cc7d0b8d1158be66bcda4546ed258668 | setup.py | setup.py | import os
from setuptools import setup, find_packages
version = '0.2.1'
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='django-templatepages',
version = version,
description = "Django app for mapping URLs to templates on the filesystem",
long_descr... | import os
from setuptools import setup, find_packages
version = '0.2.2'
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='django-templatepages',
version = version,
description = "Django app for mapping URLs to templates on the filesystem",
long_descr... | Bump version number to 0.2.2 | Bump version number to 0.2.2
| Python | bsd-3-clause | bryanchow/django-templatepages | ---
+++
@@ -1,7 +1,7 @@
import os
from setuptools import setup, find_packages
-version = '0.2.1'
+version = '0.2.2'
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read() |
618a64da4f44e525082a3229e8b6c1abc2099cff | setup.py | setup.py | # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
setup(
name = "OpenFisca-Country-Template",
version = "3.6.0",
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.6.0",
author = "OpenFisca Team",
author_email = "contact@openfisca.org",
classifiers=[
"Development Status :: 5 - Production/Stable",
"License :: OSI Approve... | Update dependency to Core v26 | Update dependency to Core v26
| 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] >= 25.0, < 26.0",
+ "OpenFisca-Core[web-api] >= 26.0, < 27.0",
],
extras_require = {
"dev":... |
a9a582f5c1ee852ac23e631595d8cfa4a6575a8c | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
from setuptools import setup, find_packages
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='svglue',
version='0.2dev',
description='Create templates using Inkscape, then fill them in (and '
... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
from setuptools import setup, find_packages
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='svglue',
version='0.2.0.dev1',
description='Create templates using Inkscape, then fill them in (and '... | Prepare for upcoming release by fixing the version number syntax. | Prepare for upcoming release by fixing the version number syntax.
| Python | mit | ticktronaut/svglue | ---
+++
@@ -12,7 +12,7 @@
setup(
name='svglue',
- version='0.2dev',
+ version='0.2.0.dev1',
description='Create templates using Inkscape, then fill them in (and '
'render them to PDF, if you like).',
long_description=read('README.rst'), |
704721b8bcfa54591325f7a88b45b3b4b7929cd0 | setup.py | setup.py | from setuptools import setup
setup(
name='tangled.session',
version='0.1a3.dev0',
description='Tangled session integration',
long_description=open('README.rst').read(),
url='http://tangledframework.org/',
download_url='https://github.com/TangledWeb/tangled.session/tags',
author='Wyatt Bald... | from setuptools import setup
setup(
name='tangled.session',
version='0.1a3.dev0',
description='Tangled session integration',
long_description=open('README.rst').read(),
url='http://tangledframework.org/',
download_url='https://github.com/TangledWeb/tangled.session/tags',
author='Wyatt Bald... | Add generic Python 3 trove classifier | Add generic Python 3 trove classifier
| Python | mit | TangledWeb/tangled.session | ---
+++
@@ -28,6 +28,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',
... |
d547d45b7bb8915504b25efc508976cbb0257604 | setup.py | setup.py | import os
from setuptools import setup, find_packages
with open(os.path.join(os.path.dirname(__file__), 'VERSION')) as v_file:
version = v_file.read().strip()
with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme:
README = readme.read()
setup(
name='canvas_python_sdk',
version=ver... | import os
from setuptools import setup, find_packages
with open(os.path.join(os.path.dirname(__file__), 'VERSION')) as v_file:
version = v_file.read().strip()
with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme:
README = readme.read()
setup(
name='canvas_python_sdk',
version=ver... | Move sphinx requirement into `extras` | Move sphinx requirement into `extras`
| Python | mit | penzance/canvas_python_sdk | ---
+++
@@ -32,6 +32,9 @@
install_requires=[
'requests',
],
+ extras_require={
+ 'docs': ['sphinx>=1.2.0'],
+ },
test_suite='tests',
tests_require=[
'mock>=1.0.1', |
d0212aea443d6adb8e0a1435f53066973c765782 | setup.py | setup.py | from setuptools import setup, PEP420PackageFinder
setup(
name='tangled.web',
version='1.0a11.dev0',
description='RESTful Web Framework',
long_description=open('README.rst').read(),
url='http://tangledframework.org/',
download_url='https://github.com/TangledWeb/tangled.web/tags',
author='Wy... | from setuptools import setup, PEP420PackageFinder
setup(
name='tangled.web',
version='1.0a11.dev0',
description='RESTful Web Framework',
long_description=open('README.rst').read(),
url='http://tangledframework.org/',
download_url='https://github.com/TangledWeb/tangled.web/tags',
author='Wy... | Upgrade tangled 1.0a10 => 1.0a11 | Upgrade tangled 1.0a10 => 1.0a11
| Python | mit | TangledWeb/tangled.web | ---
+++
@@ -13,13 +13,13 @@
packages=PEP420PackageFinder.find(include=['tangled*']),
include_package_data=True,
install_requires=[
- 'tangled>=1.0a10',
+ 'tangled>=1.0a11',
'MarkupSafe>=0.23',
'WebOb>=1.5.1',
],
extras_require={
'dev': [
- '... |
c7611391de40d2ac296f3a8dcb1579400eac0bdf | setup.py | setup.py | import os
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.txt')).read()
CHANGES = open(os.path.join(here, 'CHANGES.txt')).read()
requires = [
'pyramid',
'pyramid_zodbconn',
'pyramid_tm',
'pyramid_debugtoolbar',
... | import os
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.txt')).read()
CHANGES = open(os.path.join(here, 'CHANGES.txt')).read()
requires = [
'pyramid',
'pyramid_zodbconn',
'pyramid_tm',
'pyramid_debugtoolbar',
... | Move requests pin to versions.cfg in buildout | Move requests pin to versions.cfg in buildout
| Python | bsd-3-clause | ucla/PushHubCore | ---
+++
@@ -15,7 +15,7 @@
'waitress',
'repoze.folder',
'zope.interface',
- 'requests==0.14.0',
+ 'requests',
]
setup(name='push-hub', |
77d6e1fb12d88559074b87cca9a6b9492a498cc6 | setup.py | setup.py | from os import path
from setuptools import setup
# Utility function to read the README file.
# Used for the long_description. It's nice, because now 1) we have a top level
# README file and 2) it's easier to type in the README file than to put a raw
# string in below ...
def read(fname):
return open(path.join(pa... | from os import path
from setuptools import setup
# Utility function to read the README file.
# Used for the long_description. It's nice, because now 1) we have a top level
# README file and 2) it's easier to type in the README file than to put a raw
# string in below ...
def read(fname):
return open(path.join(pa... | Increment version for memory stores | Increment version for memory stores
| Python | mit | andrasmaroy/pconf | ---
+++
@@ -12,7 +12,7 @@
setup(
name="pconf",
- version="0.2.1",
+ version="0.3.0",
author="Andras Maroy",
author_email="andras@maroy.hu",
description=("Hierarchical python configuration with files, environment variables, command-line arguments."), |
8b7d58c576fbeaa5391b968a82cc3ecd1ef18b66 | setup.py | setup.py | from setuptools import setup
setup(
name='webcomix',
version=1.3,
description='Webcomic downloader',
long_description='webcomix is a webcomic downloader that can additionally create a .cbz file once downloaded.',
url='https://github.com/J-CPelletier/webcomix',
author='Jean-Christophe Pelletier'... | from setuptools import setup
setup(
name='webcomix',
version=1.3,
description='Webcomic downloader',
long_description='webcomix is a webcomic downloader that can additionally create a .cbz file once downloaded.',
url='https://github.com/J-CPelletier/webcomix',
author='Jean-Christophe Pelletier'... | Add pytest-mock to the dependencies | Add pytest-mock to the dependencies
| Python | mit | J-CPelletier/webcomix,J-CPelletier/WebComicToCBZ,J-CPelletier/webcomix | ---
+++
@@ -33,6 +33,7 @@
'dev': [
'pytest',
'pytest-cov',
+ 'pytest-mock',
'coveralls'
]
}, |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.