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 |
|---|---|---|---|---|---|---|---|---|---|---|
1345fa78e45e6737df63b897f7887ca87290b447 | l10n_ar_wsafip/models/__init__.py | l10n_ar_wsafip/models/__init__.py | # -*- coding: utf-8 -*-
import wsafip_certificate_alias
import wsafip_certificate
import wsafip_server
import wsafip_connection
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
| # -*- coding: utf-8 -*-
import wsafip_certificate_alias
import wsafip_certificate
import wsafip_server
import wsafip_connection
import loadcert_config
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
| ADD loadcert_config to make module uninstallable | ADD loadcert_config to make module uninstallable
| Python | agpl-3.0 | bmya/odoo-argentina,jobiols/odoo-argentina,jobiols/odoo-argentina,adhoc-dev/odoo-argentina,bmya/odoo-argentina,adrianpaesani/odoo-argentina,adrianpaesani/odoo-argentina,adhoc-dev/odoo-argentina,ingadhoc/odoo-argentina | ---
+++
@@ -3,5 +3,6 @@
import wsafip_certificate
import wsafip_server
import wsafip_connection
+import loadcert_config
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: |
7dffcd1ea4b44decb8abb4e7d60cc07d665b4ce3 | subscription/api.py | subscription/api.py | from tastypie import fields
from tastypie.resources import ModelResource, ALL
from tastypie.authentication import ApiKeyAuthentication
from tastypie.authorization import Authorization
from subscription.models import Subscription, MessageSet
from djcelery.models import PeriodicTask
class PeriodicTaskResource(ModelResou... | from tastypie import fields
from tastypie.resources import ModelResource, ALL
from tastypie.authentication import ApiKeyAuthentication
from tastypie.authorization import Authorization
from subscription.models import Subscription, MessageSet
from djcelery.models import PeriodicTask
class PeriodicTaskResource(ModelResou... | Add filter for limiting to one account | Add filter for limiting to one account
| Python | bsd-3-clause | praekelt/ndoh-control,praekelt/ndoh-control,praekelt/ndoh-control,praekelt/ndoh-control | ---
+++
@@ -35,5 +35,6 @@
authentication = ApiKeyAuthentication()
authorization = Authorization()
filtering = {
- 'to_addr': ALL
+ 'to_addr': ALL,
+ 'user_account': ALL
} |
fba405a083b29b08dc3994821ae4ca2feb0e6c49 | py3status/modules/taskwarrior.py | py3status/modules/taskwarrior.py | # -*- coding: utf-8 -*-
"""
Display currently active (started) taskwarrior tasks.
Configuration parameters:
- cache_timeout : how often we refresh this module in seconds (5s default)
Requires
- task
@author James Smith http://jazmit.github.io/
@license BSD
"""
# import your useful libs here
from time import... | # -*- coding: utf-8 -*-
"""
Display currently active (started) taskwarrior tasks.
Configuration parameters:
- cache_timeout : how often we refresh this module in seconds (5s default)
Requires
- task
@author James Smith http://jazmit.github.io/
@license BSD
"""
# import your useful libs here
from time import... | Fix parsing of taskWarrior's output | Fix parsing of taskWarrior's output
I don't know for older versions, but the latest stable release already
have '[' and ']' when doing an export. This lead to raising an exception
because it makes a nested list and you try to access it using a string
rather than an integer
| Python | bsd-3-clause | valdur55/py3status,ultrabug/py3status,Shir0kamii/py3status,tobes/py3status,Spirotot/py3status,docwalter/py3status,Andrwe/py3status,guiniol/py3status,alexoneill/py3status,ultrabug/py3status,guiniol/py3status,tobes/py3status,ultrabug/py3status,Andrwe/py3status,valdur55/py3status,vvoland/py3status,hburg1234/py3status,vald... | ---
+++
@@ -28,7 +28,7 @@
def taskWarrior(self, i3s_output_list, i3s_config):
command = 'task start.before:tomorrow status:pending export'
taskwarrior_output = check_output(shlex.split(command))
- tasks_json = json.loads('[' + taskwarrior_output.decode('utf-8') + ']')
+ tasks_json... |
9528427b32d134b4458f46305b721423e6bfe6a6 | pygraphc/misc/splunk/pysplunk.py | pygraphc/misc/splunk/pysplunk.py | from os import system, remove
class PySplunk(object):
def __init__(self, username, source, host, output_mode, tmp_file='/tmp/pysplunk_cluster.csv'):
self.username = username
self.source = source.replace(' ', '\ ')
self.host = host
self.output_mode = output_mode
self.tmp_fil... | Add Splunk API for log clustering | Add Splunk API for log clustering
| Python | mit | studiawan/pygraphc | ---
+++
@@ -0,0 +1,32 @@
+from os import system, remove
+
+
+class PySplunk(object):
+ def __init__(self, username, source, host, output_mode, tmp_file='/tmp/pysplunk_cluster.csv'):
+ self.username = username
+ self.source = source.replace(' ', '\ ')
+ self.host = host
+ self.output_mod... | |
eeea8212255d5c5eebd13882dcbe6c67e8e51b7e | pycon/dev-settings.py | pycon/dev-settings.py | from pycon.settings import *
DEFAULT_URL_PREFIX='http://localhost:8000'
DEBUG=True
PAYPAL_TEST = True
TEMPLATES[0]['OPTIONS']['debug'] = True
INSTALLED_APPS = INSTALLED_APPS + (
'django_extensions',
'django_pdb',
'test_without_migrations',
# 'devserver',
)
#TEST_WITHOUT_MIGRATIONS_COMMAND = 'django... | from pycon.settings import *
DEFAULT_URL_PREFIX='http://localhost:8000'
DEBUG=True
PAYPAL_TEST = True
TEMPLATES[0]['OPTIONS']['debug'] = True
INSTALLED_APPS = INSTALLED_APPS + (
'django_extensions',
'django_pdb',
'test_without_migrations',
# 'devserver',
)
#TEST_WITHOUT_MIGRATIONS_COMMAND = 'django... | Add the basic configuration for PostgreSQL for the dev | Add the basic configuration for PostgreSQL for the dev
| Python | bsd-2-clause | EuroPython/epcon,artcz/epcon,artcz/epcon,artcz/epcon,artcz/epcon,EuroPython/epcon,EuroPython/epcon,EuroPython/epcon,artcz/epcon,artcz/epcon | ---
+++
@@ -38,3 +38,16 @@
'NAME': '/tmp/p3.db',
}
}
+
+
+# DATABASES = {
+# 'default': {
+# 'ENGINE': 'django.db.backends.postgresql_psycopg2',
+# 'NAME': os.environ.get("DATABASE_NAME", 'epcon'),
+# 'USER': os.environ.get("POSTGRES_USER", 'epcon'),
+# 'PASSWORD': os.... |
3c0c0e81cb377e38d901a05633dc4f26b820558b | openkamer/management/commands/add_tk_person_ids.py | openkamer/management/commands/add_tk_person_ids.py | import logging
from django.core.management.base import BaseCommand
from parliament.models import Parliament
from openkamer.parliament import add_tk_person_id
logger = logging.getLogger(__name__)
class Command(BaseCommand):
def handle(self, *args, **options):
for member in Parliament.get_or_create_twee... | import logging
from django.core.management.base import BaseCommand
from person.models import Person
from openkamer.parliament import add_tk_person_id
logger = logging.getLogger(__name__)
class Command(BaseCommand):
def handle(self, *args, **options):
for person in Person.objects.all():
per... | Change command to update all persons | Change command to update all persons
| Python | mit | openkamer/openkamer,openkamer/openkamer,openkamer/openkamer,openkamer/openkamer | ---
+++
@@ -2,7 +2,7 @@
from django.core.management.base import BaseCommand
-from parliament.models import Parliament
+from person.models import Person
from openkamer.parliament import add_tk_person_id
logger = logging.getLogger(__name__)
@@ -11,7 +11,7 @@
class Command(BaseCommand):
def handle(self,... |
97ce053e3573980a4852a40cb6129edcf9fbc28f | ciscripts/coverage/bii/coverage.py | ciscripts/coverage/bii/coverage.py | # /ciscripts/coverage/bii/coverage.py
#
# Submit coverage totals for a bii project to coveralls
#
# See /LICENCE.md for Copyright information
"""Submit coverage totals for a bii project to coveralls."""
import errno
import os
from contextlib import contextmanager
def _move_ignore_enoent(src, dst):
"""Move src ... | # /ciscripts/coverage/bii/coverage.py
#
# Submit coverage totals for a bii project to coveralls
#
# See /LICENCE.md for Copyright information
"""Submit coverage totals for a bii project to coveralls."""
import errno
import os
from contextlib import contextmanager
def _move_ignore_enoent(src, dst):
"""Move src ... | Call fetch_and_import on the right module | bii: Call fetch_and_import on the right module
| Python | mit | polysquare/polysquare-ci-scripts,polysquare/polysquare-ci-scripts | ---
+++
@@ -39,7 +39,7 @@
def run(cont, util, shell, argv=None):
"""Submit coverage total to coveralls, with bii specific preparation."""
with _bii_deps_in_place(cont):
- util.fetch_and_import("coverage/cmake/coverage.py").run(cont,
+ cont.fetch_and_import("coverage/cmake/coverage.py").run(co... |
9d70b1cb1e4f787b2c666d40eac60064b4e5a9f8 | payments/management/commands/init_plans.py | payments/management/commands/init_plans.py | import decimal
from django.conf import settings
from django.core.management.base import BaseCommand
import stripe
class Command(BaseCommand):
help = "Make sure your Stripe account has the plans"
def handle(self, *args, **options):
stripe.api_key = settings.STRIPE_SECRET_KEY
for plan in set... | import decimal
from django.conf import settings
from django.core.management.base import BaseCommand
import stripe
class Command(BaseCommand):
help = "Make sure your Stripe account has the plans"
def handle(self, *args, **options):
stripe.api_key = settings.STRIPE_SECRET_KEY
for plan in set... | Break line in an odd place to keep the build from breaking. | Break line in an odd place to keep the build from breaking.
| Python | mit | jamespacileo/django-stripe-payments,ZeevG/django-stripe-payments,ZeevG/django-stripe-payments,aibon/django-stripe-payments,grue/django-stripe-payments,jawed123/django-stripe-payments,boxysean/django-stripe-payments,jamespacileo/django-stripe-payments,adi-li/django-stripe-payments,crehana/django-stripe-payments,adi-li/d... | ---
+++
@@ -25,7 +25,8 @@
interval=settings.PAYMENTS_PLANS[plan]["interval"],
name=settings.PAYMENTS_PLANS[plan]["name"],
currency=settings.PAYMENTS_PLANS[plan]["currency"],
- trial_period_days=settings.PAYMENTS_PLANS[plan].get("trial_p... |
7d8755f38581cc1454250b77b35bc0fc1da2ba0e | pycounter/test/test_bad_reports.py | pycounter/test/test_bad_reports.py | from __future__ import absolute_import
import unittest
from pycounter import report
import pycounter.exceptions
class TestParseBad(unittest.TestCase):
def test_bogus_report_type(self):
data = [[u"Bogus Report OR7 (R4)"]]
self.assertRaises(pycounter.exceptions.UnknownReportTypeError,
... | from __future__ import absolute_import
import unittest
from pycounter import report
import pycounter.exceptions
class TestParseBad(unittest.TestCase):
def test_bogus_report_type(self):
data = [[u"Bogus Report OR7 (R4)"]]
self.assertRaises(pycounter.exceptions.UnknownReportTypeError,
... | Test valid but unsupported report type (Platform Report) | Test valid but unsupported report type (Platform Report)
| Python | mit | pitthsls/pycounter,chill17/pycounter | ---
+++
@@ -14,6 +14,15 @@
iter(data)
)
+ def test_unsupported_report_type(self):
+ """Test that we fail for report types that are real but unsupported"""
+ # FIXME: eventually should be supported; remove this test when all are
+ data = [... |
2b3c0b50e5f67ca673f5305ccf0219a4bca6bb7b | luigi/tasks/rgd/__init__.py | luigi/tasks/rgd/__init__.py | # -*- coding: utf-8 -*-
"""
Copyright [2009-2017] EMBL-European Bioinformatics Institute
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... | # -*- coding: utf-8 -*-
"""
Copyright [2009-2017] EMBL-European Bioinformatics Institute
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... | Correct method to detect known organisms | Correct method to detect known organisms
| Python | apache-2.0 | RNAcentral/rnacentral-import-pipeline,RNAcentral/rnacentral-import-pipeline,RNAcentral/rnacentral-import-pipeline,RNAcentral/rnacentral-import-pipeline | ---
+++
@@ -15,13 +15,11 @@
import luigi
-from tasks.config import rgd
-
from databases.rgd import helpers
from .organism import RgdOrganism
class Rgd(luigi.WrapperTask):
def requires(self):
- for organism in helpers.gene_files(rgd().host):
+ for organism in helpers.known_organisms():
... |
f76901831084c11ec633eb96c310860d15199edd | distutils/__init__.py | distutils/__init__.py | """distutils
The main package for the Python Module Distribution Utilities. Normally
used from a setup script as
from distutils.core import setup
setup (...)
"""
import sys
import importlib
__version__ = sys.version[:sys.version.index(' ')]
try:
# Allow Debian and pkgsrc and Fedora (only) to customize... | """distutils
The main package for the Python Module Distribution Utilities. Normally
used from a setup script as
from distutils.core import setup
setup (...)
"""
import sys
import importlib
__version__ = sys.version[:sys.version.index(' ')]
try:
# Allow Debian and pkgsrc (only) to customize system
... | Revert "Update comment for _distutils_system_mod." as Fedora is not using that hook. | Revert "Update comment for _distutils_system_mod." as Fedora is not using that hook.
This reverts commit 8c64fdc8560d9f7b7d3926350bba7702b0906329.
| Python | mit | pypa/setuptools,pypa/setuptools,pypa/setuptools | ---
+++
@@ -15,10 +15,8 @@
try:
- # Allow Debian and pkgsrc and Fedora (only) to customize
- # system
- # behavior. Ref pypa/distutils#2 and pypa/distutils#16
- # and pypa/distutils#70.
+ # Allow Debian and pkgsrc (only) to customize system
+ # behavior. Ref pypa/distutils#2 and pypa/distutils#... |
47537ebc8b5e869be4b853da1350e865bcbc1aa1 | astroid/const.py | astroid/const.py | import enum
import sys
PY37 = sys.version_info >= (3, 7)
PY38 = sys.version_info >= (3, 8)
PY39 = sys.version_info >= (3, 9)
PY310 = sys.version_info >= (3, 10)
class Context(enum.Enum):
Load = 1
Store = 2
Del = 3
Load = Context.Load
Store = Context.Store
Del = Context.Del
| import enum
import sys
PY37 = sys.version_info >= (3, 7)
PY38 = sys.version_info >= (3, 8)
PY39 = sys.version_info >= (3, 9)
PY310 = sys.version_info >= (3, 10)
class Context(enum.Enum):
Load = 1
Store = 2
Del = 3
# TODO Remove in 3.0 in favor of Context
Load = Context.Load # pylint: disable=invalid-n... | Add a todo to remove Load, Del, Store | Add a todo to remove Load, Del, Store
| Python | lgpl-2.1 | PyCQA/astroid | ---
+++
@@ -13,6 +13,7 @@
Del = 3
-Load = Context.Load
-Store = Context.Store
-Del = Context.Del
+# TODO Remove in 3.0 in favor of Context
+Load = Context.Load # pylint: disable=invalid-name
+Store = Context.Store # pylint: disable=invalid-name
+Del = Context.Del # pylint: disable=invalid-name |
b466e2e11494fb73dbb86c190910a4b7c23fe203 | build.py | build.py | # -*- coding: UTF-8 -*-
import os
import platform
import logging
if __name__ == "__main__":
#logging.basicConfig(level = logging.DEBUG)
directory_solution = r'build/'
build = 1
if build == 0:
build = "Debug"
else:
build = "Release"
name_system = platform.system()
source_d... | # -*- coding: UTF-8 -*-
import os
import platform
import logging
if __name__ == "__main__":
#logging.basicConfig(level = logging.DEBUG)
directory_solution = r'build/'
build = 1
if build == 0:
build = "Debug"
else:
build = "Release"
name_system = platform.system()
source_d... | Add DCMAKE_BUILD_TYPE flag for *nix | Add DCMAKE_BUILD_TYPE flag for *nix
| Python | mit | ATetiukhin/Davidon_Fletcher_Powell,ATetiukhin/Davidon_Fletcher_Powell | ---
+++
@@ -23,7 +23,7 @@
generate_project += r'cmake -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=' + build + ' ' + source_directory
build_project = r'mingw32-make'
elif name_system == 'Linux' or name_system == 'Darwin':
- generate_project += r'cmake -G "Unix Makefiles" ' + source_directory
... |
72f79bb208fb71e40e10e6dd5a2ee8be2e744336 | pvextractor/tests/test_wcspath.py | pvextractor/tests/test_wcspath.py | from .. import pvregions
from astropy import wcs
from astropy.io import fits
import numpy as np
import os
def data_path(filename):
data_dir = os.path.join(os.path.dirname(__file__), 'data')
return os.path.join(data_dir, filename)
def test_wcspath():
p1,p2 = pvregions.paths_from_regfile(data_path('tests.re... | import os
import pytest
import numpy as np
from astropy import wcs
from astropy.io import fits
from .. import pvregions
def data_path(filename):
data_dir = os.path.join(os.path.dirname(__file__), 'data')
return os.path.join(data_dir, filename)
@pytest.mark.xfail
def test_wcspath():
p1,p2 = pvregions.p... | Mark test as xfail since it requires a fork of pyregion | Mark test as xfail since it requires a fork of pyregion | Python | bsd-3-clause | keflavich/pvextractor,radio-astro-tools/pvextractor | ---
+++
@@ -1,13 +1,19 @@
-from .. import pvregions
+import os
+
+import pytest
+import numpy as np
from astropy import wcs
from astropy.io import fits
-import numpy as np
-import os
+
+from .. import pvregions
+
def data_path(filename):
data_dir = os.path.join(os.path.dirname(__file__), 'data')
return... |
375d89598acac9ef31063fc0fc6c9613d6c2d20c | bluebottle/initiatives/urls/api.py | bluebottle/initiatives/urls/api.py | from django.conf.urls import url
from bluebottle.initiatives.views import (
InitiativeList, InitiativeDetail, InitiativeImage,
InitiativeReviewTransitionList
)
urlpatterns = [
url(
r'^transitions$',
InitiativeReviewTransitionList.as_view(),
name='initiative-review-transition-list'... | from django.conf.urls import url
from bluebottle.initiatives.views import (
InitiativeList, InitiativeDetail, InitiativeImage,
InitiativeReviewTransitionList
)
urlpatterns = [
url(
r'^/transitions$',
InitiativeReviewTransitionList.as_view(),
name='initiative-review-transition-list... | Add slash to initiative submit url | Add slash to initiative submit url
| Python | bsd-3-clause | onepercentclub/bluebottle,onepercentclub/bluebottle,onepercentclub/bluebottle,onepercentclub/bluebottle,onepercentclub/bluebottle | ---
+++
@@ -8,7 +8,7 @@
urlpatterns = [
url(
- r'^transitions$',
+ r'^/transitions$',
InitiativeReviewTransitionList.as_view(),
name='initiative-review-transition-list'
), |
c67f260cf034ad8fbb7e1377f7185cc77976447e | ceph_deploy/hosts/suse/__init__.py | ceph_deploy/hosts/suse/__init__.py | import mon # noqa
from install import install, mirror_install, repo_install # noqa
from uninstall import uninstall # noqa
import logging
from ceph_deploy.util import pkg_managers
# Allow to set some information about this distro
#
log = logging.getLogger(__name__)
distro = None
release = None
codename = None
de... | import mon # noqa
from install import install, mirror_install, repo_install # noqa
from uninstall import uninstall # noqa
import logging
from ceph_deploy.util import pkg_managers
# Allow to set some information about this distro
#
log = logging.getLogger(__name__)
distro = None
release = None
codename = None
de... | Set default init to systemd for (open)SUSE | [RM-14742] Set default init to systemd for (open)SUSE
(open)SUSE is now using systemd moving forward, this patch corrects behavior
on Tumbleweed and LEAP
openSUSE Tumbleweed distribution is a pure rolling release version of openSUSE
running the latest packages.
openSUSE LEAP is a rolling release version of openSUSE ... | Python | mit | Vicente-Cheng/ceph-deploy,ceph/ceph-deploy,Vicente-Cheng/ceph-deploy,SUSE/ceph-deploy,trhoden/ceph-deploy,SUSE/ceph-deploy,trhoden/ceph-deploy,codenrhoden/ceph-deploy,codenrhoden/ceph-deploy,ceph/ceph-deploy | ---
+++
@@ -24,7 +24,7 @@
'12' : 'systemd', # SLE_12
'13.1' : 'systemd', # openSUSE_13.1
}
- return init_mapping.get(release, 'sysvinit')
+ return init_mapping.get(release, 'systemd')
def get_packager(module): |
d6b74654459d33d3b84c7b6ec474a304a6a65a20 | demographics/forms.py | demographics/forms.py | from django.forms import ModelForm
from crispy_forms.helper import FormHelper
from crispy_forms.layout import Submit, Layout, Fieldset
from . import models
class DemographicsForm(ModelForm):
class Meta:
model = models.Demographics
exclude = ['patient', 'creation_date']
def __init__(self, *... | from django.forms import ModelForm
from crispy_forms.helper import FormHelper
from crispy_forms.layout import Submit, Layout, Fieldset
from . import models
class DemographicsForm(ModelForm):
class Meta:
model = models.Demographics
exclude = ['patient', 'creation_date']
def __init__(self, *... | Fix demographics resolve form formatting. | Fix demographics resolve form formatting.
| Python | mit | SaturdayNeighborhoodHealthClinic/clintools,SaturdayNeighborhoodHealthClinic/clintools,SaturdayNeighborhoodHealthClinic/clintools | ---
+++
@@ -17,9 +17,6 @@
self.helper = FormHelper()
self.helper.form_method = 'post'
- self.helper.form_class = 'form-horizontal'
- self.helper.label_class = 'col-lg-2'
- self.helper.field_class = 'col-lg-8'
self.helper.layout = Layout(
Fieldset('M... |
c9f7c36e8f6bdf32a39f1ac8cd9ebbcf80df4a20 | saleor/dashboard/category/forms.py | saleor/dashboard/category/forms.py | from django import forms
from django.utils.text import slugify
from django.utils.translation import ugettext_lazy as _
from mptt.forms import TreeNodeChoiceField
from unidecode import unidecode
from ...product.models import Category
class CategoryForm(forms.ModelForm):
parent = TreeNodeChoiceField(queryset=Categ... | from django import forms
from django.utils.text import slugify
from django.utils.translation import ugettext_lazy as _
from mptt.forms import TreeNodeChoiceField
from unidecode import unidecode
from ...product.models import Category
class CategoryForm(forms.ModelForm):
parent = TreeNodeChoiceField(queryset=Categ... | Fix getting category's descendants before save | Fix getting category's descendants before save
| Python | bsd-3-clause | taedori81/saleor,laosunhust/saleor,taedori81/saleor,josesanch/saleor,laosunhust/saleor,maferelo/saleor,rodrigozn/CW-Shop,josesanch/saleor,paweltin/saleor,tfroehlich82/saleor,car3oon/saleor,arth-co/saleor,rodrigozn/CW-Shop,avorio/saleor,paweltin/saleor,maferelo/saleor,KenMutemi/saleor,rchav/vinerack,itbabu/saleor,avorio... | ---
+++
@@ -26,5 +26,6 @@
def save(self, commit=True):
self.instance.slug = slugify(unidecode(self.instance.name))
+ super(CategoryForm, self).save(commit=commit)
self.instance.set_hidden_descendants(self.cleaned_data['hidden'])
- return super(CategoryForm, self).save(commit=com... |
2c201d11f988fb741ac74cc91e17520e217eb2f8 | setup.py | setup.py | #!/usr/bin/env python
from distutils.core import setup
setup(name='xml_models',
version='0.3',
description='XML backed models queried from external REST apis',
author='Chris Tarttelin and Cam McHugh',
author_email='ctarttelin@point2.com',
url='http://djangorestmodel.sourceforge.net/',
... | #!/usr/bin/env python
from distutils.core import setup
setup(name='xml_models',
version='0.4',
description='XML backed models queried from external REST apis',
author='Chris Tarttelin and Cam McHugh',
author_email='ctarttelin@point2.com',
url='http://djangorestmodel.sourceforge.net/',
... | Increment the version for the next update to pypi | Increment the version for the next update to pypi | Python | bsd-2-clause | macropin/xml-models-redux | ---
+++
@@ -3,7 +3,7 @@
from distutils.core import setup
setup(name='xml_models',
- version='0.3',
+ version='0.4',
description='XML backed models queried from external REST apis',
author='Chris Tarttelin and Cam McHugh',
author_email='ctarttelin@point2.com', |
0d208865fc69e8f0696137da30df4b5115219d96 | setup.py | setup.py | import os
from setuptools import find_packages, setup
with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme:
README = readme.read()
setup(
name='django-postgres-extra',
version='1.19',
packages=find_packages(),
include_package_data=True,
license='MIT License',
descrip... | import os
from setuptools import find_packages, setup
with open(os.path.join(os.path.dirname(__file__), 'README.rst'), encoding='utf-8') as readme:
README = readme.read()
setup(
name='django-postgres-extra',
version='1.20',
packages=find_packages(),
include_package_data=True,
license='MIT Lic... | Read README as UTF-8, always | Read README as UTF-8, always
| Python | mit | SectorLabs/django-postgres-extra | ---
+++
@@ -2,12 +2,12 @@
from setuptools import find_packages, setup
-with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme:
+with open(os.path.join(os.path.dirname(__file__), 'README.rst'), encoding='utf-8') as readme:
README = readme.read()
setup(
name='django-postgres-extra'... |
a36d3a621cde4a2d19bb0f1169ba707304c5caaf | setup.py | setup.py | try:
from setuptools import setup, find_packages
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
setup(
name='fabtools',
version='0.1',
description='Tools for writing awesome Fabric files',
author='Ronan Amicel',
a... | try:
from setuptools import setup, find_packages
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
setup(
name='fabtools',
version='0.1',
description='Tools for writing awesome Fabric files',
author='Ronan Amicel',
a... | Exclude tests directory from install | Exclude tests directory from install
| Python | bsd-2-clause | AMOSoft/fabtools,n0n0x/fabtools-python,pombredanne/fabtools,fabtools/fabtools,ahnjungho/fabtools,bitmonk/fabtools,wagigi/fabtools-python,badele/fabtools,hagai26/fabtools,pahaz/fabtools,sociateru/fabtools,davidcaste/fabtools,prologic/fabtools,ronnix/fabtools | ---
+++
@@ -20,7 +20,7 @@
"unittest2",
"mock",
],
- packages=find_packages(exclude=['ez_setup']),
+ packages=find_packages(exclude=['ez_setup', 'tests']),
include_package_data=True,
zip_safe=False,
classifiers=[ |
f403f86cad3eb1b6b41a39f02ea8e1b0b06cff2a | setup.py | setup.py | from setuptools import setup
setup(
name='regrowl',
description='Regrowl server',
author='Paul Traylor',
url='https://github.com/kfdm/gntp-regrowl',
version='0.0.1',
packages=[
'regrowl',
'regrowl.bridge',
'regrowl.extras',
],
# http://pypi.python.org/pypi?%3Aact... | from setuptools import setup
setup(
name='regrowl',
description='Regrowl server',
author='Paul Traylor',
url='https://github.com/kfdm/gntp-regrowl',
version='0.0.1',
packages=[
'regrowl',
'regrowl.bridge',
'regrowl.extras',
],
# http://pypi.python.org/pypi?%3Aact... | Add forward to list of bridges | Add forward to list of bridges | Python | mit | kfdm/gntp-regrowl | ---
+++
@@ -31,6 +31,7 @@
],
'regrowl.bridge': [
'echo = regrowl.bridge.echo:EchoNotifier',
+ 'forward = regrowl.bridge.forward:ForwardNotifier',
'local = regrowl.bridge.local:LocalNotifier',
'subscribe = regrowl.bridge.subscribe:SubscribelNotifier',... |
113b2f776c4a02b8baafca00e9de23d001f89d34 | setup.py | setup.py | # coding: utf-8
from distutils.core import setup
setup(
name = 'gherkin3',
packages = ['gherkin3'],
version = '3.0.0',
description = 'Gherkin parser',
author = 'Björn Rasmusson',
author_email = 'cukes@googlegroups.com',
url = 'https://github.com/cucumber/gherkin-python',
license = 'MIT',
download_url ... | # coding: utf-8
from distutils.core import setup
setup(
name = 'gherkin3',
packages = ['gherkin3'],
version = '3.0.0',
description = 'Gherkin parser',
author = 'Björn Rasmusson',
author_email = 'cukes@googlegroups.com',
url = 'https://github.com/cucumber/gherkin-python',
license = 'MIT',
download_url ... | Correct the download url for gherkin-python | Correct the download url for gherkin-python
| Python | mit | cucumber/gherkin3,hayd/gherkin3,curzona/gherkin3,curzona/gherkin3,araines/gherkin3,SabotageAndi/gherkin,vincent-psarga/gherkin3,dirkrombauts/gherkin3,curzona/gherkin3,hayd/gherkin3,pjlsergeant/gherkin,SabotageAndi/gherkin,chebizarro/gherkin3,cucumber/gherkin3,concertman/gherkin3,dg-ratiodata/gherkin3,moreirap/gherkin3,... | ---
+++
@@ -9,7 +9,7 @@
author_email = 'cukes@googlegroups.com',
url = 'https://github.com/cucumber/gherkin-python',
license = 'MIT',
- download_url = 'https://github.com/cucumber/gherkin-ruby/archive/v3.0.0.tar.gz',
+ download_url = 'https://github.com/cucumber/gherkin-python/archive/v3.0.0.tar.gz',
ke... |
e164ec363a7da36f02c7367137f1d2026cbb7245 | setup.py | setup.py | import io
from setuptools import setup
AUTHOR = "Brian Curtin"
EMAIL = "brian@python.org"
setup(name="deprecation",
version="2.0",
description="A library to handle automated deprecations",
license="Apache 2",
url="http://deprecation.readthedocs.io/",
author=AUTHOR,
author_email=EM... | import io
from setuptools import setup
AUTHOR = "Brian Curtin"
EMAIL = "brian@python.org"
setup(name="deprecation",
version="2.0.1",
description="A library to handle automated deprecations",
license="Apache 2",
url="http://deprecation.readthedocs.io/",
author=AUTHOR,
author_email=... | Add links to Github for source and bug tracker | Add links to Github for source and bug tracker
| Python | apache-2.0 | briancurtin/deprecation | ---
+++
@@ -6,7 +6,7 @@
setup(name="deprecation",
- version="2.0",
+ version="2.0.1",
description="A library to handle automated deprecations",
license="Apache 2",
url="http://deprecation.readthedocs.io/",
@@ -31,5 +31,8 @@
"Programming Language :: Python :: 3.7",
... |
ac6eeca365a9975be1a0dbafbfd0c7babeee704a | setup.py | setup.py | from setuptools import setup, find_packages
setup(
name='gdcdatamodel',
packages=find_packages(),
install_requires=[
'pytz==2016.4',
'graphviz==0.4.2',
'jsonschema==2.5.1',
'python-dateutil==2.4.2',
'dictionaryutils',
'gdcdictionary',
'psqlgraph',
... | from setuptools import setup, find_packages
setup(
name='gdcdatamodel',
packages=find_packages(),
install_requires=[
'pytz==2016.4',
'graphviz==0.4.2',
'jsonschema==2.5.1',
'python-dateutil==2.4.2',
'dictionaryutils',
'gdcdictionary',
'psqlgraph',
... | Update pin to new dictionary hotfix pin | chore(pins): Update pin to new dictionary hotfix pin
- Update pin to new dictionary hotfix pin
| Python | apache-2.0 | NCI-GDC/gdcdatamodel,NCI-GDC/gdcdatamodel | ---
+++
@@ -22,7 +22,7 @@
'git+https://github.com/uc-cdis/dictionaryutils.git@2.0.4#egg=dictionaryutils',
'git+https://github.com/NCI-GDC/cdisutils.git@863ce13772116b51bcf5ce7e556f5df3cb9e6f63#egg=cdisutils',
'git+https://github.com/NCI-GDC/psqlgraph.git@1.2.0#egg=psqlgraph',
- 'git+... |
37f2ebdeeb3f1ef6a3c61c7dfb5dca22673fd810 | setup.py | setup.py | from setuptools import setup, find_packages
package_data = ['static/css/*', 'static/img/*', 'static/js/*', 'static/js/templates/*', 'templates/djukebox/*']
dependencies = ['pillow', 'django-celery==2.5.5', 'mutagen', 'simplejson', 'django-bootstrap-form', 'django-tastypie==0.9.15']
setup(name = "djukebox",
versi... | from setuptools import setup, find_packages
package_data = ['static/css/*', 'static/img/*', 'static/js/*', 'static/js/templates/*', 'templates/djukebox/*']
dependencies = ['Pillow==2.1.0', 'django-celery==3.0.21', 'mutagen==1.21', 'simplejson==3.3.0', 'django-bootstrap-form', 'django-tastypie==0.9.15']
setup(name = "d... | Set full versions on all dependencies and updated most to latest version | Set full versions on all dependencies and updated most to latest version
| Python | bsd-2-clause | jmichalicek/djukebox,jmichalicek/djukebox | ---
+++
@@ -1,7 +1,7 @@
from setuptools import setup, find_packages
package_data = ['static/css/*', 'static/img/*', 'static/js/*', 'static/js/templates/*', 'templates/djukebox/*']
-dependencies = ['pillow', 'django-celery==2.5.5', 'mutagen', 'simplejson', 'django-bootstrap-form', 'django-tastypie==0.9.15']
+depen... |
9fd36310859391117434778aabf0bd738a3ff125 | setup.py | setup.py | import os
from setuptools import setup, find_packages
version = '1.0.0'
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(name='django-cas',
version=version,
description="Django Cas Client",
long_description=read('README.md'),
classifiers=[
... | import os
from setuptools import setup, find_packages
version = '1.0.0'
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(name='django-cas-client',
version=version,
description="Django Cas Client",
long_description=read('README.md'),
classifiers=... | Add initial release to Pypi. | Add initial release to Pypi.
| Python | mit | kstateome/django-cas,byuhbll/django-cas | ---
+++
@@ -9,22 +9,23 @@
return open(os.path.join(os.path.dirname(__file__), fname)).read()
-setup(name='django-cas',
+setup(name='django-cas-client',
version=version,
description="Django Cas Client",
long_description=read('README.md'),
classifiers=[
- "Development Statu... |
320f29409fd596c88d70ca18175276d1ef076c52 | setup.py | setup.py | """
Setup and installation for the package.
"""
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(
name="three",
version="0.4",
url="http://github.com/codeforamerica/three",
author="Zach Williams",
author_email="hey@zachwill.com",
description... | """
Setup and installation for the package.
"""
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(
name="three",
version="0.4.1",
url="http://github.com/codeforamerica/three",
author="Zach Williams",
author_email="hey@zachwill.com",
descripti... | Add updated version to PyPi | Add updated version to PyPi
| Python | bsd-3-clause | codeforamerica/three | ---
+++
@@ -10,7 +10,7 @@
setup(
name="three",
- version="0.4",
+ version="0.4.1",
url="http://github.com/codeforamerica/three",
author="Zach Williams",
author_email="hey@zachwill.com", |
97f7243194e86c7dda52295b4b061ea2a2cce50e | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='Flask-RESTful',
version='0.2.11',
url='https://www.github.com/twilio/flask-restful/',
author='Kyle Conroy',
author_email='help@twilio.com',
description='Simple framework for creating REST APIs',
packages=find_pa... | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='Flask-RESTful',
version='0.2.10',
url='https://www.github.com/twilio/flask-restful/',
author='Kyle Conroy',
author_email='help@twilio.com',
description='Simple framework for creating REST APIs',
packages=find_pa... | Revert version number to 0.2.10 | Revert version number to 0.2.10
| Python | bsd-3-clause | sergeyromanov/flask-restful,liangmingjie/flask-restful,expobrain/flask-restful,FashtimeDotCom/flask-restful,ankravch/flask-restful,gonboy/flask-restful,mitchfriedman/flask-restful,justanr/flask-restful,codephillip/flask-restful,frol/flask-restful,flask-restful/flask-restful,santtu/flask-restful,whitekid/flask-restful,K... | ---
+++
@@ -4,7 +4,7 @@
setup(
name='Flask-RESTful',
- version='0.2.11',
+ version='0.2.10',
url='https://www.github.com/twilio/flask-restful/',
author='Kyle Conroy',
author_email='help@twilio.com', |
663f839ef539759143369f84289b6e27f21bdcce | setup.py | setup.py | #/usr/bin/env python2.6
#
# $Id: setup.py 87 2010-07-01 18:01:03Z ver $
from distutils.core import setup
description = """
The Jersey core libraries provide common abstractions used by Jersey software.
"""
def getVersion():
import os
packageSeedFile = os.path.join("src", "lib", "_version.py")
ns = {"__... | #/usr/bin/env python2.6
#
# $Id: setup.py 87 2010-07-01 18:01:03Z ver $
from distutils.core import setup
description = """
The Jersey core libraries provide common abstractions used by Jersey software.
"""
def getVersion():
import os
packageSeedFile = os.path.join("lib", "_version.py")
ns = {"__name__"... | Use lib/ instead of src/lib. | Use lib/ instead of src/lib.
| Python | bsd-3-clause | olix0r/tx-jersey | ---
+++
@@ -12,7 +12,7 @@
def getVersion():
import os
- packageSeedFile = os.path.join("src", "lib", "_version.py")
+ packageSeedFile = os.path.join("lib", "_version.py")
ns = {"__name__": __name__, }
execfile(packageSeedFile, ns)
return ns["version"]
@@ -31,7 +31,7 @@
maintainer = "... |
8cc2882d4e3355e4fa07776988c570ff18af49cb | setup.py | setup.py | from setuptools import setup
from os import path
this_directory = path.abspath(path.dirname(__file__))
with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='gopay',
version='1.2.4',
long_description=long_description,
long_description_con... | from setuptools import setup
from os import path
this_directory = path.abspath(path.dirname(__file__))
with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='gopay',
version='1.2.4',
long_description=long_description,
long_description_con... | Add deprecated >= 1.2.0 to install_requires | Add deprecated >= 1.2.0 to install_requires
| Python | mit | gopaycommunity/gopay-python-api | ---
+++
@@ -31,5 +31,5 @@
],
keywords='gopay payments sdk rest api',
packages=['gopay'],
- install_requires=['requests'],
+ install_requires=['requests', 'deprecated>=1.2.0'],
) |
c158b4c80335ab9d5a4bc83b4ab11b3a1d455419 | setup.py | setup.py | #!/bin/env python
from setuptools import setup
# Load module version from ovr/version.py
exec(open('src/openvr/version.py').read())
setup(
name='openvr',
version=__version__,
author='Christopher Bruns and others',
author_email='cmbruns@rotatingpenguin.com',
description='Valve OpenVR SDK python bi... | #!/bin/env python
from setuptools import setup
# Load module version from ovr/version.py
exec(open('src/openvr/version.py').read())
setup(
name='openvr',
version=__version__,
author='Christopher Bruns and others',
author_email='cmbruns@rotatingpenguin.com',
description='Valve OpenVR SDK python bi... | Add long_description field to avoid PyPi page error. | Add long_description field to avoid PyPi page error.
| Python | bsd-3-clause | cmbruns/pyopenvr,cmbruns/pyopenvr,cmbruns/pyopenvr,cmbruns/pyopenvr | ---
+++
@@ -11,6 +11,7 @@
author='Christopher Bruns and others',
author_email='cmbruns@rotatingpenguin.com',
description='Valve OpenVR SDK python bindings using ctypes',
+ long_description='Valve OpenVR SDK python bindings using ctypes',
url='https://github.com/cmbruns/pyopenvr',
download_... |
59d6d3c93363a457a5e97c43d970177a35fad721 | setup.py | setup.py | from setuptools import setup, find_packages
setup(
name='zeit.content.gallery',
version='2.7.4.dev0',
author='gocept, Zeit Online',
author_email='zon-backend@zeit.de',
url='http://www.zeit.de/',
description="vivi Content-Type Portraitbox",
packages=find_packages('src'),
package_dir={''... | from setuptools import setup, find_packages
setup(
name='zeit.content.gallery',
version='2.7.4.dev0',
author='gocept, Zeit Online',
author_email='zon-backend@zeit.de',
url='http://www.zeit.de/',
description="vivi Content-Type Portraitbox",
packages=find_packages('src'),
package_dir={''... | Update to version with celery. | ZON-3409: Update to version with celery.
| Python | bsd-3-clause | ZeitOnline/zeit.content.gallery,ZeitOnline/zeit.content.gallery | ---
+++
@@ -19,7 +19,7 @@
'Pillow',
'gocept.form',
'setuptools',
- 'zeit.cms>=2.92.1.dev0',
+ 'zeit.cms >= 3.0.dev0',
'zeit.connector>=2.4.0.dev0',
'zeit.imp>=0.15.0.dev0',
'zeit.content.image', |
be3614978166358fecc278d43873c11acdc27a1b | setup.py | setup.py | from setuptools import setup, find_packages
long_description = """
Full details available at https://github.com/marvinpinto/charlesbot
"""
setup(
name='charlesbot',
version='0.10.0',
description='Slack Real Time Messaging robot written in Python 3!',
long_description=long_description,
author='Marv... | from setuptools import setup, find_packages
import codecs
# README into long description
with codecs.open('README.rst', encoding='utf-8') as f:
readme = f.read()
setup(
name='charlesbot',
version='0.10.0',
description='CharlesBOT is a Python bot written to take advantage of Slack\'s Real Time Messagin... | Use the README.rst file as the contents for the long_description | Use the README.rst file as the contents for the long_description
This renders a lot better on PyPI: https://pypi.python.org/pypi/charlesbot
| Python | mit | marvinpinto/charlesbot,marvinpinto/charlesbot | ---
+++
@@ -1,14 +1,15 @@
from setuptools import setup, find_packages
+import codecs
-long_description = """
-Full details available at https://github.com/marvinpinto/charlesbot
-"""
+# README into long description
+with codecs.open('README.rst', encoding='utf-8') as f:
+ readme = f.read()
setup(
name='... |
08c47c647fffa0953c01214c81d8e5f41fe45ddc | setup.py | setup.py | from distutils.core import setup
import os
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(name='pandocfilters',
version='1.4.2',
description='Utilities for writing pandoc filters in python',
long_description=read('README.rst'),
author='John MacFa... | from distutils.core import setup
import os
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(name='pandocfilters',
version='1.4.2',
description='Utilities for writing pandoc filters in python',
long_description=read('README.rst'),
author='John MacFa... | Add python_requires to help pip, update classifiers | Add python_requires to help pip, update classifiers | Python | bsd-3-clause | AugustH/pandocfilters,jgm/pandocfilters | ---
+++
@@ -14,6 +14,7 @@
url='http://github.com/jgm/pandocfilters',
py_modules=['pandocfilters'],
keywords=['pandoc'],
+ python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*',
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Console',
@@ -2... |
3bcb2238c0a76a125f24ec8be7fe315df08ee9f3 | setup.py | setup.py | from setuptools import find_packages, setup
description = """
Simply library to sign and verify SOAP XML requests using the
BinarySecurityToken specification.
""".strip()
setup(
name='soap_wsse',
version='0.1.0',
description=description,
install_requires=[
'dm.xmlsec.binding==1.3.2',
... | from setuptools import find_packages, setup
description = """
Simply library to sign and verify SOAP XML requests using the
BinarySecurityToken specification.
""".strip()
setup(
name='soap_wsse',
version='0.1.1',
description=description,
install_requires=[
'dm.xmlsec.binding==1.3.2',
... | Update to 0.1.1 for license fix | Update to 0.1.1 for license fix
| Python | mit | mvantellingen/py-soap-wsse | ---
+++
@@ -8,7 +8,7 @@
setup(
name='soap_wsse',
- version='0.1.0',
+ version='0.1.1',
description=description,
install_requires=[
'dm.xmlsec.binding==1.3.2', |
67888f7c38f48e3d4b94c84adbb919e0516d3362 | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup
import base32_crockford
setup(
name='base32-crockford',
version='0.2.0',
description=("A Python implementation of Douglas Crockford's "
"base32 encoding scheme"),
long_description=base32_crockford.__doc__,
license='BSD',
aut... | #!/usr/bin/env python
from setuptools import setup
import base32_crockford
setup(
name='base32-crockford',
version='0.2.0',
description=("A Python implementation of Douglas Crockford's "
"base32 encoding scheme"),
long_description=base32_crockford.__doc__,
license='BSD',
aut... | Add Python 3 trove classifiers | Add Python 3 trove classifiers
| Python | bsd-3-clause | jbittel/base32-crockford,klaplong/baas32 | ---
+++
@@ -27,6 +27,9 @@
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
+ 'Programming Language :: Python :: 3',
+ 'Programming Language :: Python :: 3.3',
+ 'Programming Language :: Python :: 3.... |
931b6a0f7a83b495b52506f25b15a92b5c7a26af | setup.py | setup.py | import os
from setuptools import setup, find_packages
def read(fname):
with open(os.path.join(os.path.dirname(__file__), fname)) as f:
return f.read()
setup(
name='pynubank',
version='2.17.0',
url='https://github.com/andreroggeri/pynubank',
author='André Roggeri Campos',
author_emai... | import os
from setuptools import setup, find_packages
def read(fname):
with open(os.path.join(os.path.dirname(__file__), fname)) as f:
return f.read()
setup(
name='pynubank',
version='2.17.0',
url='https://github.com/andreroggeri/pynubank',
author='André Roggeri Campos',
author_emai... | Update classifiers to include python 3.10 | chore: Update classifiers to include python 3.10 | Python | mit | andreroggeri/pynubank | ---
+++
@@ -32,5 +32,6 @@
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
+ 'Programming Language :: Python :: 3.10',
]
) |
1cbd0ce39e2e4d2b704787989bf9deb99c68aaa9 | setup.py | setup.py | from distutils.core import setup
import py2exe
setup(
console=[{'script':'check_forbidden.py','version':'1.1.0',}],
)
'''
cd dropbox/codes/check_forbidden
py -3.4 setup.py py2exe
'''
| from distutils.core import setup
import py2exe
setup(
console=[{'script': 'check_forbidden.py', 'version': '1.1.3', }],
options={'py2exe': {'bundle_files': 2}}
)
'''
cd dropbox/codes/check_forbidden
py -3.4 setup.py py2exe
'''
| Reduce the number of files in dist folder | Reduce the number of files in dist folder
| Python | mit | ShunSakurai/check_forbidden,ShunSakurai/check_forbidden | ---
+++
@@ -2,7 +2,8 @@
import py2exe
setup(
- console=[{'script':'check_forbidden.py','version':'1.1.0',}],
+ console=[{'script': 'check_forbidden.py', 'version': '1.1.3', }],
+ options={'py2exe': {'bundle_files': 2}}
)
''' |
199eb0d90c989a7511fbae58304961532ea8d43e | setup.py | setup.py | from setuptools import setup
setup(
name='GingerioChartioUtilities',
version='0.1',
author='Jeremy A Johnson',
author_email='jeremy@ginger.io',
packages=['chartio'],
scripts=[],
url='https://github.com/ginger-io/chartio',
license='LICENSE',
description='Chart.io Utilities',
long... | from setuptools import setup
setup(
name='GingerioChartioUtilities',
version='0.1',
author='Jeremy A Johnson',
author_email='jeremy@ginger.io',
packages=['chartio'],
scripts=[],
url='https://github.com/ginger-io/chartio',
license='LICENSE',
description='Chart.io Utilities',
long... | Allow newer versions of dependencies | Allow newer versions of dependencies
| Python | apache-2.0 | ginger-io/chartio | ---
+++
@@ -12,8 +12,8 @@
description='Chart.io Utilities',
long_description=open('README.md').read(),
install_requires=[
- "Pillow==2.3.0",
- "PyPDF2==1.19",
- "selenium==2.31.0",
+ "Pillow>=2.3.0",
+ "PyPDF2>=1.19",
+ "selenium>=2.31.0",
],
) |
25cee68231c350d124614237402ae4cb5fc7c19d | setup.py | setup.py | import os
from setuptools import setup, find_packages
version = '1.5.0_patch1'
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(name='django-cas-client',
version=version,
description="Django Cas Client",
long_description=read('README.md'),
class... | import os
from setuptools import setup, find_packages
version = '1.5.0'
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(name='django-cas-client',
version=version,
description="Django Cas Client",
long_description=read('README.md'),
classifiers=... | Revert version update made for our mirror. | Revert version update made for our mirror.
| Python | mit | kstateome/django-cas | ---
+++
@@ -2,7 +2,7 @@
from setuptools import setup, find_packages
-version = '1.5.0_patch1'
+version = '1.5.0'
def read(fname): |
6a0877dc49b6fbcd6ca3475e2329aabfdb066c09 | serrano/resources/field/stats.py | serrano/resources/field/stats.py | from django.core.urlresolvers import reverse
from avocado.events import usage
from .base import FieldBase
class FieldStats(FieldBase):
"Field Stats Resource"
def get(self, request, pk):
uri = request.build_absolute_uri
instance = request.instance
if instance.simple_type == 'number':
... | from django.core.urlresolvers import reverse
from avocado.events import usage
from .base import FieldBase
class FieldStats(FieldBase):
"Field Stats Resource"
def get(self, request, pk):
uri = request.build_absolute_uri
instance = request.instance
if instance.simple_type == 'number':
... | Return empty response when StopIteration is raised on exhausted iterator | Return empty response when StopIteration is raised on exhausted iterator
| Python | bsd-2-clause | chop-dbhi/serrano,rv816/serrano_night,rv816/serrano_night,chop-dbhi/serrano | ---
+++
@@ -22,7 +22,10 @@
if stats is None:
resp = {}
else:
- resp = next(iter(stats))
+ try:
+ resp = next(iter(stats))
+ except StopIteration:
+ resp = {}
resp['_links'] = {
'self': { |
d1f28280482315ebc568919b54f8b43c3ca93649 | scrapi/settings/travis-dist.py | scrapi/settings/travis-dist.py | DEBUG = False
BROKER_URL = 'amqp://guest@localhost'
RECORD_HTTP_TRANSACTIONS = False
CELERY_EAGER_PROPAGATES_EXCEPTIONS = True
RAW_PROCESSING = ['cassandra', 'postgres']
NORMALIZED_PROCESSING = ['elasticsearch', 'cassandra', 'postgres']
RESPONSE_PROCESSING = None
SENTRY_DSN = None
USE_FLUENTD = False
CASSANDRA_U... | DEBUG = False
BROKER_URL = 'amqp://guest@localhost'
RECORD_HTTP_TRANSACTIONS = False
CELERY_EAGER_PROPAGATES_EXCEPTIONS = True
RAW_PROCESSING = ['cassandra', 'postgres']
NORMALIZED_PROCESSING = ['elasticsearch', 'cassandra', 'postgres']
RESPONSE_PROCESSING = 'postgres'
SENTRY_DSN = None
USE_FLUENTD = False
CASSA... | Add postgres as response processing for travis | Add postgres as response processing for travis
| Python | apache-2.0 | erinspace/scrapi,erinspace/scrapi,mehanig/scrapi,fabianvf/scrapi,fabianvf/scrapi,felliott/scrapi,CenterForOpenScience/scrapi,felliott/scrapi,CenterForOpenScience/scrapi,mehanig/scrapi | ---
+++
@@ -8,7 +8,7 @@
RAW_PROCESSING = ['cassandra', 'postgres']
NORMALIZED_PROCESSING = ['elasticsearch', 'cassandra', 'postgres']
-RESPONSE_PROCESSING = None
+RESPONSE_PROCESSING = 'postgres'
SENTRY_DSN = None
|
6007130b702c7ac7bb0d431cc48a7bf56875fb79 | setup.py | setup.py | #!/usr/bin/env python
# Copyright (c) The ppd team
# See LICENSE for details.
from distutils.core import setup
setup(
name='ppd',
version='0.1.0',
description='Organizes pentesting information',
author='Matt Haggard',
author_email='haggardii@gmail.com',
url='https://github.com/iffy/ppd',
... | #!/usr/bin/env python
# Copyright (c) The ppd team
# See LICENSE for details.
from distutils.core import setup
setup(
name='ppd',
version='0.1.0',
description='Organizes pentesting information',
author='Matt Haggard',
author_email='haggardii@gmail.com',
url='https://github.com/iffy/ppd',
... | Add ordereddict as required package (for 2.6) | Add ordereddict as required package (for 2.6)
| Python | apache-2.0 | iffy/ppd | ---
+++
@@ -19,6 +19,7 @@
'structlog',
'unqlite',
'PyYaml',
+ 'ordereddict',
],
scripts=[
'scripts/ppd', |
1d840ce507df4765a707d42316ff493872d2e12c | setup.py | setup.py | from setuptools import setup, find_packages
setup(
name='moksha',
version='0.1',
description='',
author='',
author_email='',
#url='',
install_requires=[
"TurboGears2",
"ToscaWidgets >= 0.9.1",
"zope.sqlalchemy",
"Shove",
"feedcache",
"feedpars... | from setuptools import setup, find_packages
setup(
name='moksha',
version='0.1',
description='',
author='',
author_email='',
#url='',
install_requires=[
"TurboGears2",
"ToscaWidgets >= 0.9.1",
"zope.sqlalchemy",
"Shove",
"feedcache",
"feedpars... | Add repoze.{squeeze,profile} and stompservice to our dependency list | Add repoze.{squeeze,profile} and stompservice to our dependency list
| Python | apache-2.0 | ralphbean/moksha,mokshaproject/moksha,lmacken/moksha,pombredanne/moksha,lmacken/moksha,ralphbean/moksha,pombredanne/moksha,mokshaproject/moksha,pombredanne/moksha,mokshaproject/moksha,ralphbean/moksha,mokshaproject/moksha,pombredanne/moksha,lmacken/moksha | ---
+++
@@ -15,6 +15,9 @@
"feedcache",
"feedparser",
"tw.jquery",
+ "repoze.squeeze",
+ "repoze.profile",
+ "stompservice"
],
packages=find_packages(exclude=['ez_setup']),
include_package_data=True, |
60574e2f88e32565eb2a5de1258651527515ff3b | setup.py | setup.py | from distutils.core import setup
setup(
name='django-browserid',
version='0.5.1',
packages=['django_browserid'],
author='Paul Osman, Michael Kelly',
author_email='mkelly@mozilla.com',
url='https://github.com/mozilla/django-browserid',
install_requires='requests>=0.9.1',
package_data={'d... | from distutils.core import setup
setup(
name='django-browserid',
version='0.5.1',
packages=['django_browserid', 'django_browserid.tests'],
author='Paul Osman, Michael Kelly',
author_email='mkelly@mozilla.com',
url='https://github.com/mozilla/django-browserid',
install_requires='requests>=0.... | Include `tests` subpackage in installation | Include `tests` subpackage in installation
The tests subpackage has helpers that are useful for running tests in
django projects, such as `mock_browserid`. Include this subpackage in
the distutils script so that it won't be ignored by pip, easy_install,
etc.
| Python | mpl-2.0 | ericholscher/django-browserid,mozilla/django-browserid,Osmose/django-browserid,mozilla/django-browserid,Osmose/django-browserid,Osmose/django-browserid,mozilla/django-browserid,ericholscher/django-browserid,ericholscher/django-browserid | ---
+++
@@ -3,7 +3,7 @@
setup(
name='django-browserid',
version='0.5.1',
- packages=['django_browserid'],
+ packages=['django_browserid', 'django_browserid.tests'],
author='Paul Osman, Michael Kelly',
author_email='mkelly@mozilla.com',
url='https://github.com/mozilla/django-browserid', |
5274ad685c887e1cc065b48d90fd3c439ceb9cc4 | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup
with open('README.rst') as readme_file:
readme = readme_file.read()
with open('HISTORY.rst') as history_file:
history = history_file.read()
requirements = [
'pyparsing'
]
test_requirements = [
]
setup(
name='boolrule',
... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup
with open('README.rst') as readme_file:
readme = readme_file.read()
with open('HISTORY.rst') as history_file:
history = history_file.read()
requirements = [
'pyparsing'
]
test_requirements = [
]
setup(
name='boolrule',
... | Add slightly more descriptive keywords for PyPI | Add slightly more descriptive keywords for PyPI
| Python | mit | tailsdotcom/boolrule | ---
+++
@@ -33,7 +33,7 @@
install_requires=requirements,
license="MIT license",
zip_safe=False,
- keywords='boolrule',
+ keywords='boolrule boolean expression',
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Intended Audience :: Developers', |
521cdf8002d03b14159b48de1a61a88f979156d3 | setup.py | setup.py | from __future__ import unicode_literals
import re
from setuptools import setup, find_packages
def get_version(filename):
content = open(filename).read()
metadata = dict(re.findall("__([a-z]+)__ = '([^']+)'", content))
return metadata['version']
setup(
name='Mopidy-Subidy',
version=get_version('m... | from __future__ import unicode_literals
import re
from setuptools import setup, find_packages
def get_version(filename):
content = open(filename).read()
metadata = dict(re.findall("__([a-z]+)__ = '([^']+)'", content))
return metadata['version']
setup(
name='Mopidy-Subidy',
version=get_version('m... | Remove version range for py-sonic | Remove version range for py-sonic
py-sonic stopped supporting python2 > 0.6.2
Using pip to install results in an error if this is not set
| Python | bsd-3-clause | Prior99/mopidy-subidy | ---
+++
@@ -24,7 +24,7 @@
install_requires=[
'setuptools',
'Mopidy >= 2.0',
- 'py-sonic >= 0.6.1',
+ 'py-sonic == 0.6.2',
'Pykka >= 1.1'
],
entry_points={ |
a613bcd19537afbac1d1077b44fc6cd4effb87ca | setup.py | setup.py | import setuptools
def read_long_description():
with open('README') as f:
data = f.read()
return data
setup_params = dict(
name="irc",
description="IRC (Internet Relay Chat) protocol client library for Python",
long_description=read_long_description(),
use_hg_version=True,
... | import sys
import setuptools
def read_long_description():
with open('README') as f:
data = f.read()
return data
importlib_req = ['importlib'] if sys.version_info < (2,7) else []
setup_params = dict(
name="irc",
description="IRC (Internet Relay Chat) protocol client library for P... | Declare importlib requirement on Python 2.6 | Declare importlib requirement on Python 2.6
| Python | mit | jaraco/irc | ---
+++
@@ -1,9 +1,13 @@
+import sys
+
import setuptools
def read_long_description():
with open('README') as f:
data = f.read()
return data
+
+importlib_req = ['importlib'] if sys.version_info < (2,7) else []
setup_params = dict(
name="irc",
@@ -23,6 +27,8 @@
"Programming Langu... |
92f3fe81c9a5dbed3e6e70211d486f9f4c0418d5 | setup.py | setup.py | from setuptools import setup, find_packages
setup(
name='django-dfp',
version='0.3.2',
description='DFP implementation for Django',
long_description = open('README.rst', 'r').read() + open('AUTHORS.rst', 'r').read() + open('CHANGELOG.rst', 'r').read(),
author='Praekelt Foundation',
author_email... | from setuptools import setup, find_packages
setup(
name='django-dfp',
version='0.3.2',
description='DFP implementation for Django',
long_description = open('README.rst', 'r').read() + open('AUTHORS.rst', 'r').read() + open('CHANGELOG.rst', 'r').read(),
author='Praekelt Foundation',
author_email... | Change case of Django to django else pypi lookup fails | Change case of Django to django else pypi lookup fails
| Python | bsd-3-clause | praekelt/django-dfp,praekelt/django-dfp | ---
+++
@@ -11,11 +11,11 @@
url='http://github.com/praekelt/django-dfp',
packages = find_packages(),
install_requires = [
- 'Django',
+ 'django',
],
include_package_data=True,
tests_require=[
- 'django-setuptest>=0.1.2',
+ 'django-setuptest>=0.1.4',
],
... |
f8fdaa0e8998c7aa64be0e22a5412b77ca3a978d | setup.py | setup.py | from setuptools import setup, find_packages
VERSION = __import__('location_field').__version__
setup(
name='django-location-field',
version=VERSION,
description="Location field for Django",
long_description="This module provides a location field for Django applications.",
author="Caio Ariede",
... | from setuptools import setup, find_packages
VERSION = __import__('location_field').__version__
setup(
name='django-location-field',
version=VERSION,
description="Location field for Django",
long_description="This module provides a location field for Django applications.",
author="Caio Ariede",
... | Fix typo in tests_require parameter | Fix typo in tests_require parameter
| Python | mit | caioariede/django-location-field,voodmania/django-location-field,caioariede/django-location-field,caioariede/django-location-field,voodmania/django-location-field,voodmania/django-location-field | ---
+++
@@ -36,7 +36,7 @@
'Django>=1.7,<1.9',
'six',
],
- test_requires=[
+ tests_require=[
'pyquery',
],
test_suite="runtests.runtests", |
43615940a63c9464199e33e21d98d9e073ea80de | setup.py | setup.py | from setuptools import find_packages, setup
setup(
name="feeds",
version="2017.08.14",
# Author details
author="Florian Preinstorfer, Lukas Anzinger",
author_email="florian@nblock.org, lukas@lukasanzinger.at",
url="https://github.com/nblock/feeds",
packages=find_packages(),
include_pack... | from setuptools import find_packages, setup
setup(
name="feeds",
version="2017.08.14",
# Author details
author="Florian Preinstorfer, Lukas Anzinger",
author_email="florian@nblock.org, lukas@lukasanzinger.at",
url="https://github.com/nblock/feeds",
packages=find_packages(),
include_pack... | Remove tox from style extras | Remove tox from style extras
| Python | agpl-3.0 | Lukas0907/feeds,Lukas0907/feeds,nblock/feeds,nblock/feeds | ---
+++
@@ -19,7 +19,7 @@
],
extras_require={
"docs": ["doc8", "restructuredtext_lint", "sphinx", "sphinx_rtd_theme"],
- "style": ["black", "flake8", "isort", "tox"],
+ "style": ["black", "flake8", "isort"],
},
entry_points="""
[console_scripts] |
7a803d1a5e2b388283afdc1ba9c3378753ce62ee | setup.py | setup.py | # encoding: utf-8
from distutils.core import setup
setup(
name='json-store',
version='1.1',
packages=['json_store',],
scripts=['bin/shelve2json.py',],
description="A shelve-like store using JSON serialization.",
long_description="JSON store is a simple replacement for shelve. It writes"
... | # encoding: utf-8
from distutils.core import setup
setup(
name='json-store',
version='1.1',
packages=['json_store'],
scripts=['bin/shelve2json.py'],
description="A shelve-like store using JSON serialization.",
long_description="JSON store is a simple replacement for shelve. It writes"
... | Add 2.7 to PyPI trove classifiers | Add 2.7 to PyPI trove classifiers
| Python | mit | brainsik/json-store,brainsik/json-store,brainsik/json-store-ci-demo,brainsik/json-store-ci-demo,brainsik/json-store-ci-demo | ---
+++
@@ -4,8 +4,8 @@
setup(
name='json-store',
version='1.1',
- packages=['json_store',],
- scripts=['bin/shelve2json.py',],
+ packages=['json_store'],
+ scripts=['bin/shelve2json.py'],
description="A shelve-like store using JSON serialization.",
long_description="JSON store is a s... |
07ea04e56589407f4f32880a0f8bc748de3b3a88 | setup.py | setup.py | import os
import sys
from distutils.core import setup
def read(filename):
return open(os.path.join(os.path.dirname(__file__), filename)).read()
if sys.version_info >= (3, 4):
install_requires = []
else:
install_requires = ['asyncio']
install_requires.append('watchdog')
exec(open('hachiko/version.py').re... | import os
import sys
from distutils.core import setup
def read(filename):
return open(os.path.join(os.path.dirname(__file__), filename)).read()
if sys.version_info >= (3, 5):
install_requires = []
else:
install_requires = ['asyncio']
install_requires.append('watchdog')
exec(open('hachiko/version.py').re... | Raise min required Python version to 3.5 Python 3.4 reached eol | Raise min required Python version to 3.5
Python 3.4 reached eol
| Python | mit | biesnecker/hachiko | ---
+++
@@ -5,7 +5,7 @@
def read(filename):
return open(os.path.join(os.path.dirname(__file__), filename)).read()
-if sys.version_info >= (3, 4):
+if sys.version_info >= (3, 5):
install_requires = []
else:
install_requires = ['asyncio'] |
33461befd29eaf33f53442515a82d081b5206a49 | setup.py | setup.py | #!/usr/bin/env python
import os
import sys
import subprocess
from setuptools import setup, find_packages
if not os.path.exists('./xcffib'):
print("It looks like you need to generate the binding.")
print("please run 'make xcffib' or 'make check'.")
sys.exit(1)
# version = subprocess.check_output(['git', ... | #!/usr/bin/env python
import os
import sys
import subprocess
from setuptools import setup, find_packages
from distutils.command.build import build
if not os.path.exists('./xcffib'):
print("It looks like you need to generate the binding.")
print("please run 'make xcffib' or 'make check'.")
sys.exit(1)
# ... | Solve the xcffib chicken and egg problem | Solve the xcffib chicken and egg problem
See https://groups.google.com/forum/#!topic/python-cffi/NgGybV5LLMs for more
info.
| Python | apache-2.0 | tych0/xcffib | ---
+++
@@ -5,15 +5,28 @@
import subprocess
from setuptools import setup, find_packages
+from distutils.command.build import build
if not os.path.exists('./xcffib'):
print("It looks like you need to generate the binding.")
print("please run 'make xcffib' or 'make check'.")
sys.exit(1)
+# Stole... |
f8fdb00d5e0b7084aff39dc0403747528e60254a | setup.py | setup.py | from setuptools import setup
from kafka_info import __version__
setup(
name="kafka-info",
version=__version__,
author="Federico Giraud",
author_email="fgiraud@yelp.com",
description="Shows kafka cluster information and metrics",
packages=[
"kafka_info",
"kafka_info.utils",
... | from setuptools import setup
from kafka_info import __version__
setup(
name="kafka-info",
version=__version__,
author="Federico Giraud",
author_email="fgiraud@yelp.com",
description="Shows kafka cluster information and metrics",
packages=[
"kafka_info",
"kafka_info.utils",
... | Add MANIFEST.in to keep tox happy | Add MANIFEST.in to keep tox happy
| Python | apache-2.0 | anthonysandrin/kafka-utils,Yelp/kafka-utils,Yelp/kafka-utils,anthonysandrin/kafka-utils | ---
+++
@@ -18,8 +18,8 @@
"kafka_consumer_manager.commands"],
data_files=[
("bash_completion.d",
- ["kafka-info"],
- ["kafka-reassignment"])],
+ ["bash_completion.d/kafka-info"]),
+ ],
scripts=[
"kafka-info",
"kafka-reassignment", |
6f4cd4e14960c25197dd2fe635ab5ceb8ad1949a | setup.py | setup.py | import pathlib
from crc import LIBRARY_VERSION
from setuptools import setup
current = pathlib.Path(__file__).parent.resolve()
def readme():
return (current / 'README.md').read_text(encoding='utf-8')
if __name__ == '__main__':
setup(
name='crc',
version=LIBRARY_VERSION,
py_modules=['... | import pathlib
from crc import LIBRARY_VERSION
from setuptools import setup
current = pathlib.Path(__file__).parent.resolve()
def readme():
return (current / 'README.md').read_text(encoding='utf-8')
if __name__ == '__main__':
setup(
name='crc',
version=LIBRARY_VERSION,
py_modules=['... | Update package information about supported python versions | Update package information about supported python versions
| Python | bsd-2-clause | Nicoretti/crc | ---
+++
@@ -17,6 +17,7 @@
classifiers=[
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
+ 'Programming Language :: Python :: 3.9',
],
url='https://github.com/Nicoretti/crc',
license='BSD', |
e1349cedc6eb26f8f550d00e8249cb52920fdf75 | 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... | Add sqlalchemy to gimlet dependencies | Add sqlalchemy to gimlet dependencies
| Python | mit | storborg/gimlet | ---
+++
@@ -21,6 +21,7 @@
'webob',
'redis',
'pylibmc',
+ 'sqlalchemy',
# Required for cookie encryption.
'pycrypto',
# These are for tests. |
e82212dacd559547494dbb8c9948b3d4c44f9df4 | setup.py | setup.py | from setuptools import setup
setup(
name='edit_distance',
version='1.0.3',
author='Ben Lambert',
author_email='blambert@gmail.com',
packages=['edit_distance'],
license='LICENSE.txt',
description='Computing edit distance on arbitrary Python sequences.',
url='https://github.com/belambert/... | from setuptools import setup
setup(
name='edit_distance',
version='1.0.4',
author='Ben Lambert',
author_email='blambert@gmail.com',
packages=['edit_distance'],
license='LICENSE.txt',
description='Computing edit distance on arbitrary Python sequences.',
url='https://github.com/belambert/... | Increment version number to 1.0.4. | Increment version number to 1.0.4.
| Python | apache-2.0 | belambert/editdistance,belambert/edit_distance,belambert/edit-distance | ---
+++
@@ -2,7 +2,7 @@
setup(
name='edit_distance',
- version='1.0.3',
+ version='1.0.4',
author='Ben Lambert',
author_email='blambert@gmail.com',
packages=['edit_distance'], |
b0b19da9850a8d257839ff0e145b63fac5ff2cfc | setup.py | setup.py | """
CQLSL
-----
CQL for Python without any additional abstraction layers.
Designed to be simple and fast tool for communication with Cassandra.
CQLSL is something between native Cassandra driver (which is really awesome!) and ORM.
[Installation](https://github.com/drudim/cqlsl#installation)
[Documentation](https://g... | """
CQLSL
-----
CQL for Python without any additional abstraction layers.
Designed to be simple and fast tool for communication with Cassandra.
CQLSL is something between native Cassandra driver (which is really awesome!) and ORM.
[Installation](https://github.com/drudim/cqlsl#installation)
[Documentation](https://g... | Emphasize that we support Python 3.4.x | Emphasize that we support Python 3.4.x
| Python | mit | drudim/cqlsl | ---
+++
@@ -29,6 +29,7 @@
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 2.7",
+ "Programming Language :: Python :: 3.4",
"Topic :: Database :: Front-Ends",
"Operating System :: OS Independent",
]... |
9b273e446cfc901cd0e56c62716830fc44471590 | setup.py | setup.py | from setuptools import setup, find_packages
version = '0.1.0'
#
# determine requirements
#
requirements = ['pyzmq']
tests_require = []
setup(
name='canary',
version=version,
description="",
long_description=None,
classifiers=[
'Development Status :: 5 - Production/Stable',
'Enviro... | from setuptools import setup, find_packages
version = '0.1.0'
#
# determine requirements
#
requirements = ['pyzmq']
tests_require = []
setup(
name='canary',
version=version,
description=("canary is a small library for recording and shipping"
"exceptions from Python to logstash via ZeroMQ... | Update the package description text. | Update the package description text.
| Python | bsd-3-clause | ryanpetrello/canary | ---
+++
@@ -11,8 +11,9 @@
setup(
name='canary',
version=version,
- description="",
- long_description=None,
+ description=("canary is a small library for recording and shipping"
+ "exceptions from Python to logstash via ZeroMQ."),
+ long_description="",
classifiers=[
... |
d23b236a17d1f1b26ce2b7f218c420a3e607f1d2 | setup.py | setup.py | #!/usr/bin/env python
"""setup.py for get_user_headers"""
__author__ = "Stephan Sokolow (deitarion/SSokolow)"
__license__ = "MIT"
import sys
if __name__ == '__main__' and 'flake8' not in sys.modules:
# FIXME: Why does this segfault flake8 under PyPy?
from setuptools import setup
setup(
name="get... | #!/usr/bin/env python
"""setup.py for get_user_headers"""
__author__ = "Stephan Sokolow (deitarion/SSokolow)"
__license__ = "MIT"
from setuptools import setup
setup(
name="get_user_headers",
version="0.1.1",
description="Helper for retrieving identifying headers from the user's"
"default ... | Remove obsolete pypy+flake8 segfault guard | Remove obsolete pypy+flake8 segfault guard
| Python | mit | ssokolow/get_user_headers | ---
+++
@@ -4,38 +4,34 @@
__author__ = "Stephan Sokolow (deitarion/SSokolow)"
__license__ = "MIT"
-import sys
+from setuptools import setup
-if __name__ == '__main__' and 'flake8' not in sys.modules:
- # FIXME: Why does this segfault flake8 under PyPy?
- from setuptools import setup
-
- setup(
- ... |
f4c90d45e9c7640df5fca91ef48ec9c439aa7a73 | setup.py | setup.py | import os
from setuptools import find_packages, setup
with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme:
README = readme.read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='django-etesync-journal',... | import os
from setuptools import find_packages, setup
with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme:
README = readme.read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='django-etesync-journal',... | Fix version clasifier to one of the pypi allowed ones. | Fix version clasifier to one of the pypi allowed ones.
| Python | agpl-3.0 | etesync/journal-manager | ---
+++
@@ -22,7 +22,7 @@
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
- 'License :: OSI Approved :: AGPLv3',
+ 'License :: OSI Approved :: GNU Affero General Public License v3',
'Operating System :: OS Independent',
... |
5b5746b0b6641b29de3ae866310fb0494e051073 | setup.py | setup.py | import os
from distutils.core import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
packages = []
package_dir = "dbbackup"
for dirpath, dirnames, filenames in os.walk(package_dir):
# ignore dirnames that start with '.'
for i, dirname in enumerate(dirnames):
... | import os
from distutils.core import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
packages = []
package_dir = "dbbackup"
for dirpath, dirnames, filenames in os.walk(package_dir):
# ignore dirnames that start with '.'
for i, dirname in enumerate(dirnames):
... | Add pypandoc to create RST for pypi | Add pypandoc to create RST for pypi
| Python | bsd-3-clause | bahoo/django-dbbackup,bahoo/django-dbbackup | ---
+++
@@ -19,6 +19,17 @@
pkg = pkg.replace(os.path.altsep, '.')
packages.append(pkg)
+try:
+ import pypandoc
+ long_description = pypandoc.convert(get_path('README.md'), 'rst')
+ long_description = long_description.split(
+ '<!---Illegal PyPi RST data -->')[0]
+ f = open(g... |
fc7b353bb906ce840b6191f9ffb40e920f863ce5 | setup.py | setup.py | from setuptools import setup
DESCRIPTION = open('README.md').read()
setup(
name="ordered-set",
version='3.0.1',
maintainer='Luminoso Technologies, Inc.',
maintainer_email='rspeer@luminoso.com',
license="MIT-LICENSE",
url='http://github.com/LuminosoInsight/ordered-set',
platforms=["any"],
... | from setuptools import setup
DESCRIPTION = open('README.md').read()
setup(
name="ordered-set",
version='3.0.2',
maintainer='Luminoso Technologies, Inc.',
maintainer_email='rspeer@luminoso.com',
license="MIT-LICENSE",
url='http://github.com/LuminosoInsight/ordered-set',
platforms=["any"],
... | Remove pytest-runner and bump version to 3.0.2 | Remove pytest-runner and bump version to 3.0.2
| Python | mit | LuminosoInsight/ordered-set | ---
+++
@@ -4,7 +4,7 @@
setup(
name="ordered-set",
- version='3.0.1',
+ version='3.0.2',
maintainer='Luminoso Technologies, Inc.',
maintainer_email='rspeer@luminoso.com',
license="MIT-LICENSE",
@@ -16,7 +16,6 @@
py_modules=['ordered_set'],
package_data={'': ['MIT-LICENSE']},
... |
90dea1c68a52b2ad9609a80b58dd56bf35b829b0 | setup.py | setup.py |
import os
from setuptools import setup, find_packages
setup(
name = 'projd',
version = '0.1',
license = 'MIT',
description = 'Utilities for working with projects and applications '
'organized within a root directory.',
long_description = open(os.path.join(os.path.dirname(__file__... |
import os
from setuptools import setup, find_packages
setup(
name = 'projd',
version = '0.1.0',
license = 'MIT',
description = 'Utilities for working with projects and applications '
'organized within a root directory.',
long_description = open(os.path.join(os.path.dirname(__file... | Use standard 3-part version number. | Use standard 3-part version number.
| Python | mit | todddeluca/projd | ---
+++
@@ -4,7 +4,7 @@
setup(
name = 'projd',
- version = '0.1',
+ version = '0.1.0',
license = 'MIT',
description = 'Utilities for working with projects and applications '
'organized within a root directory.', |
be66fb9da078258e59270cd4a39f0ce905e6846d | setup.py | setup.py | import re
import ast
from setuptools import setup, find_packages
_version_re = re.compile(r'__version__\s+=\s+(.*)')
with open('pgspecial/__init__.py', 'rb') as f:
version = str(ast.literal_eval(_version_re.search(
f.read().decode('utf-8')).group(1)))
description = 'Meta-commands handler for Postgres Dat... | import re
import ast
from setuptools import setup, find_packages
_version_re = re.compile(r'__version__\s+=\s+(.*)')
with open('pgspecial/__init__.py', 'rb') as f:
version = str(ast.literal_eval(_version_re.search(
f.read().decode('utf-8')).group(1)))
description = 'Meta-commands handler for Postgres Dat... | Update classifier tags, email and url. | Update classifier tags, email and url.
| Python | bsd-3-clause | dbcli/pgspecial,rafalcieslinski/pgspecial | ---
+++
@@ -13,11 +13,11 @@
setup(
name='pgspecial',
- author='Amjith Ramanujam',
- author_email='amjith[dot]r[at]gmail.com',
+ author='PGCLI Core Team',
+ author_email='pgcli-dev@googlegroups.com',
version=version,
license='LICENSE.txt',
- url='http://... |
9e9108f177bc8bc9e2b1ebd240512cdf265a6c9f | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup
py_files = [
"ansible/module_utils/hashivault",
"ansible/plugins/lookup/hashivault",
]
files = [
"ansible/modules/hashivault",
]
long_description=open('README.rst', 'r').read()
setup(
name='ansible-modules-hashivault',
version='2.10.0',
descr... | #!/usr/bin/env python
from setuptools import setup
py_files = [
"ansible/module_utils/hashivault",
"ansible/plugins/lookup/hashivault",
]
files = [
"ansible/modules/hashivault",
]
long_description=open('README.rst', 'r').read()
setup(
name='ansible-modules-hashivault',
version='2.11.0',
descr... | Cut new release for vault-token | Cut new release for vault-token
| Python | mit | TerryHowe/ansible-modules-hashivault,cloudvisory/ansible-modules-hashivault,TerryHowe/ansible-modules-hashivault,cloudvisory/ansible-modules-hashivault | ---
+++
@@ -13,7 +13,7 @@
setup(
name='ansible-modules-hashivault',
- version='2.10.0',
+ version='2.11.0',
description='Ansible Modules for Hashicorp Vault',
long_description=long_description,
author='Terry Howe', |
33b07760827633cdf76ec1b434c9c5f3bdf345f9 | setup.py | setup.py | from setuptools import setup
setup(
name = "JIRA lean forward",
version = "0.1.1dev",
description = "Get Lean Stats like throughput and cycle time out of jira with ease",
author = "Chris Young",
licence = "BSD",
author_email = "chris@chrisyoung.org",
platforms = ["Any"],
packages = ['ji... | from setuptools import setup
setup(
name = "JIRA lean forward",
version = "0.1.1dev",
description = "Get Lean Stats like throughput and cycle time out of jira with ease",
author = "Chris Young",
licence = "BSD",
author_email = "chris@chrisyoung.org",
platforms = ["Any"],
packages = ['ji... | Set requirements to match output of pip freeze to see if that fixed Travis 2.7 build | JLF-6: Set requirements to match output of pip freeze to see if that fixed Travis 2.7 build
| Python | bsd-2-clause | worldofchris/jlf | ---
+++
@@ -11,13 +11,20 @@
packages = ['jira_stats'],
include_package_data = True,
install_requires=[
+ 'argparse==1.2.1',
+ 'ipython==0.13.2',
+ 'jira-python==0.13',
+ 'mockito==0.5.1',
+ 'numpy==1.7.1',
+ 'oauthlib==0.4.0',
+ 'pandas==0.11.0',
... |
8958a976a88fe215174478031c4ebf6577d35eca | setup.py | setup.py | from setuptools import setup
setup(
name='django-cacheops',
version='1.2',
author='Alexander Schepanovski',
author_email='suor.web@gmail.com',
description='A slick ORM cache with automatic granular event-driven invalidation for Django.',
long_description=open('README.rst').read(),
url='htt... | from setuptools import setup
setup(
name='django-cacheops',
version='1.2',
author='Alexander Schepanovski',
author_email='suor.web@gmail.com',
description='A slick ORM cache with automatic granular event-driven invalidation for Django.',
long_description=open('README.rst').read(),
url='htt... | Fix error `AttributeError: 'module' object has no attribute 'PY2'` | Fix error `AttributeError: 'module' object has no attribute 'PY2'` | Python | bsd-3-clause | andwun/django-cacheops,ErwinJunge/django-cacheops,rutube/django-cacheops,Tapo4ek/django-cacheops,th13f/django-cacheops,bourivouh/django-cacheops,Tapo4ek/django-cacheops,whyflyru/django-cacheops,Suor/django-cacheops,LPgenerator/django-cacheops | ---
+++
@@ -21,7 +21,7 @@
'django>=1.2',
'redis>=2.4.12',
'simplejson>=2.2.0',
- 'six',
+ 'six>=1.4.0',
],
classifiers=[ |
e947a4022349e108142d1e645f02d3f7fe7f50ef | setup.py | setup.py | #!/usr/bin/python3
from setuptools import setup, find_packages
setup(name='grafcli',
version='0.5.2',
description='Grafana CLI management tool',
author='Milosz Smolka',
author_email='m110@m110.pl',
url='https://github.com/m110/grafcli',
packages=find_packages(exclude=['tests']),
... | #!/usr/bin/python3
from subprocess import check_output
from setuptools import setup, find_packages
git_version = check_output(["git", "describe", "--tags"]).strip()
setup(name='grafcli',
version=git_version,
description='Grafana CLI management tool',
author='Milosz Smolka',
author_email='m110@... | Use version from git tags | Use version from git tags
| Python | mit | m110/grafcli,m110/grafcli | ---
+++
@@ -1,8 +1,11 @@
#!/usr/bin/python3
+from subprocess import check_output
from setuptools import setup, find_packages
+git_version = check_output(["git", "describe", "--tags"]).strip()
+
setup(name='grafcli',
- version='0.5.2',
+ version=git_version,
description='Grafana CLI management to... |
42a9d3564a9bfd0d858b9573da2cabccced7dc19 | setup.py | setup.py | # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
setup(
name = "OpenFisca-Country-Template",
version = "3.9.5",
author = "OpenFisca Team",
author_email = "contact@openfisca.org",
classifiers=[
"Development Status :: 5 - Production/Stable",
"License :: OSI Approve... | # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
setup(
name = "OpenFisca-Country-Template",
version = "3.9.5",
author = "OpenFisca Team",
author_email = "contact@openfisca.org",
classifiers=[
"Development Status :: 5 - Production/Stable",
"License :: OSI Approve... | Update openfisca-core requirement from <33.0,>=27.0 to >=27.0,<35.0 | Update openfisca-core requirement from <33.0,>=27.0 to >=27.0,<35.0
Updates the requirements on [openfisca-core](https://github.com/openfisca/openfisca-core) to permit the latest version.
- [Release notes](https://github.com/openfisca/openfisca-core/releases)
- [Changelog](https://github.com/openfisca/openfisca-core/b... | Python | agpl-3.0 | openfisca/country-template,openfisca/country-template | ---
+++
@@ -23,7 +23,7 @@
("share/openfisca/openfisca-country-template", ["CHANGELOG.md", "LICENSE", "README.md"]),
],
install_requires = [
- "OpenFisca-Core[web-api] >=27.0,<33.0",
+ "OpenFisca-Core[web-api] >=27.0,<35.0",
],
extras_require = {
"dev": [ |
ebf7fa1fa079d39438bae4dbd57270443545abad | setup.py | setup.py | from setuptools import setup, find_packages
from splinter import __version__
README = open('README.rst').read()
setup(name='splinter',
version=__version__,
description='browser abstraction for web acceptance testing',
long_description=README,
author='CobraTeam',
author_email='andrewsmedi... | from setuptools import setup, find_packages
from splinter import __version__
README = open('README.rst').read()
setup(name='splinter',
version=__version__,
description='browser abstraction for web acceptance testing',
long_description=README,
author='CobraTeam',
author_email='andrewsmedi... | Remove mechanize from dependencies list | Remove mechanize from dependencies list
| Python | bsd-3-clause | objarni/splinter,objarni/splinter,bmcculley/splinter,underdogio/splinter,myself659/splinter,objarni/splinter,cobrateam/splinter,bmcculley/splinter,bubenkoff/splinter,myself659/splinter,lrowe/splinter,gjvis/splinter,nikolas/splinter,gjvis/splinter,drptbl/splinter,nikolas/splinter,lrowe/splinter,myself659/splinter,drptbl... | ---
+++
@@ -11,6 +11,6 @@
author_email='andrewsmedina@gmail.com',
packages=find_packages(exclude=['docs', 'tests', 'samples']),
include_package_data=True,
- install_requires=['selenium==2.15', 'lxml>=2.3.1,<2.4.0', 'mechanize'],
+ install_requires=['selenium==2.15', 'lxml>=2.3.1,<2.4.0'... |
c32273046de6847649a8a4bd8cb108ff342c8a32 | setup.py | setup.py | import os
from setuptools import setup, find_packages
setup(name='Coffin',
version=".".join(map(str, __import__("coffin").__version__)),
description='Jinja2 adapter for Django',
author='Christopher D. Leary',
author_email='cdleary@gmail.com',
maintainer='David Cramer',
maintainer_email='dcramer... | import os
from setuptools import setup, find_packages
setup(name='Coffin',
version=".".join(map(str, __import__("coffin").__version__)),
description='Jinja2 adapter for Django',
author='Christopher D. Leary',
author_email='cdleary@gmail.com',
maintainer='David Cramer',
maintainer_email='dcramer... | Fix URL to point to a valid repo | Fix URL to point to a valid repo | Python | bsd-3-clause | rossowl/coffin,rossowl/coffin,akx/coffin | ---
+++
@@ -8,7 +8,7 @@
author_email='cdleary@gmail.com',
maintainer='David Cramer',
maintainer_email='dcramer@gmail.com',
- url='http://github.com/dcramer/coffin',
+ url='http://github.com/coffin/coffin',
packages=find_packages(),
#install_requires=['Jinja2', 'django>=1.2'],
class... |
3a6c5ae99b514d12835b2a81fe0f891f390ece8d | setup.py | setup.py | try:
from setuptools import setup
from setuptools import find_packages
packages = find_packages()
except ImportError:
from distutils.core import setup
import os
packages = [x.strip('./').replace('/','.') for x in os.popen('find -name "__init__.py" | xargs -n1 dirname').read().strip().split('\n')... | try:
from setuptools import setup
from setuptools import find_packages
packages = find_packages()
except ImportError:
from distutils.core import setup
import os
packages = [x.strip('./').replace('/','.') for x in os.popen('find -name "__init__.py" | xargs -n1 dirname').read().strip().split('\n')... | Remove the default dependency on cvc4-solver. | Remove the default dependency on cvc4-solver.
| Python | bsd-2-clause | angr/claripy | ---
+++
@@ -20,7 +20,6 @@
'future',
'cachetools',
'pysmt',
- 'cvc4-solver'
],
description='An abstraction layer for constraint solvers',
url='https://github.com/angr/claripy', |
db1f0a09f5620bd2da188b261391e02d2d88b500 | snakeeyes/blueprints/page/views.py | snakeeyes/blueprints/page/views.py | from flask import Blueprint, render_template
from snakeeyes.extensions import redis
page = Blueprint('page', __name__, template_folder='templates')
@page.route('/')
def home():
return render_template('page/home.html')
@page.route('/terms')
def terms():
return render_template('page/terms.html')
@page.ro... | from flask import Blueprint, render_template
from snakeeyes.extensions import redis
page = Blueprint('page', __name__, template_folder='templates')
@page.get('/')
def home():
return render_template('page/home.html')
@page.get('/terms')
def terms():
return render_template('page/terms.html')
@page.get('/... | Use new Flask 2.0 .get() decorator function | Use new Flask 2.0 .get() decorator function
| Python | mit | nickjj/build-a-saas-app-with-flask,nickjj/build-a-saas-app-with-flask,nickjj/build-a-saas-app-with-flask,nickjj/build-a-saas-app-with-flask | ---
+++
@@ -6,22 +6,22 @@
page = Blueprint('page', __name__, template_folder='templates')
-@page.route('/')
+@page.get('/')
def home():
return render_template('page/home.html')
-@page.route('/terms')
+@page.get('/terms')
def terms():
return render_template('page/terms.html')
-@page.route('/pr... |
affca524ec3163716a78a365ac5781ec3130ad50 | smithers/smithers/conf/server.py | smithers/smithers/conf/server.py | from os import getenv
GEOIP_DB_FILE = '/usr/local/share/GeoIP/GeoIP2-City.mmdb'
STATSD_HOST = 'graphite1.private.phx1.mozilla.com'
STATSD_PORT = 8125
STATSD_PREFIX = 'glow-workers-{}'.format(getenv('DJANGO_SERVER_ENV'))
| from os import getenv
GEOIP_DB_FILE = '/usr/local/share/GeoIP/GeoIP2-City.mmdb'
STATSD_HOST = 'graphite1.private.phx1.mozilla.com'
STATSD_PORT = 8125
STATSD_PREFIX = 'glow-workers-{}'.format(getenv('DJANGO_SERVER_ENV'))
COUNTRY_MIN_SHARE = 1 # basically off
| Disable country minimum share limit. | Disable country minimum share limit.
| Python | mpl-2.0 | almossawi/mrburns,almossawi/mrburns,almossawi/mrburns,almossawi/mrburns,mozilla/mrburns,mozilla/mrburns,mozilla/mrburns | ---
+++
@@ -5,3 +5,5 @@
STATSD_HOST = 'graphite1.private.phx1.mozilla.com'
STATSD_PORT = 8125
STATSD_PREFIX = 'glow-workers-{}'.format(getenv('DJANGO_SERVER_ENV'))
+
+COUNTRY_MIN_SHARE = 1 # basically off |
1ee168e4cebd20d1a4f18bb477389da519b2f3be | tapiriik/messagequeue/__init__.py | tapiriik/messagequeue/__init__.py | from kombu import Connection
from tapiriik.settings import RABBITMQ_BROKER_URL
mq = Connection(RABBITMQ_BROKER_URL)
mq.connect() | from kombu import Connection
from tapiriik.settings import RABBITMQ_BROKER_URL
mq = Connection(RABBITMQ_BROKER_URL, transport_options={'confirm_publish': True})
mq.connect()
| Enable MQ publish confirmations for scheduler | Enable MQ publish confirmations for scheduler
| Python | apache-2.0 | campbellr/tapiriik,cpfair/tapiriik,cmgrote/tapiriik,abs0/tapiriik,abhijit86k/tapiriik,campbellr/tapiriik,cmgrote/tapiriik,cpfair/tapiriik,cpfair/tapiriik,brunoflores/tapiriik,brunoflores/tapiriik,cgourlay/tapiriik,brunoflores/tapiriik,cgourlay/tapiriik,mduggan/tapiriik,cpfair/tapiriik,cmgrote/tapiriik,abhijit86k/tapiri... | ---
+++
@@ -1,4 +1,4 @@
from kombu import Connection
from tapiriik.settings import RABBITMQ_BROKER_URL
-mq = Connection(RABBITMQ_BROKER_URL)
+mq = Connection(RABBITMQ_BROKER_URL, transport_options={'confirm_publish': True})
mq.connect() |
b33c1b70bcb7a5303c1731cb6699466610ee54af | pyedgar/__init__.py | pyedgar/__init__.py | # -*- coding: utf-8 -*-
"""
pyEDGAR SEC data library.
=====================================
pyEDGAR is a general purpose library for all sorts of interactions with the SEC
data sources, primarily the EDGAR distribution system.
Files from the SEC reside at https://www.sec.gov/Archives/edgar/data/CIK/ACCESSION.txt
:c... | # -*- coding: utf-8 -*-
"""
pyEDGAR SEC data library.
=====================================
pyEDGAR is a general purpose library for all sorts of interactions with the SEC
data sources, primarily the EDGAR distribution system.
Files from the SEC reside at https://www.sec.gov/Archives/edgar/data/CIK/ACCESSION.txt
:c... | Remove top level imports to avoid cyclical import | Remove top level imports to avoid cyclical import
| Python | mit | gaulinmp/pyedgar | ---
+++
@@ -14,15 +14,11 @@
"""
__title__ = 'pyedgar'
-__version__ = '0.0.3a1'
+__version__ = '0.0.4a1'
__author__ = 'Mac Gaulin'
__license__ = 'MIT'
__copyright__ = 'Copyright 2018 Mac Gaulin'
-
-# Include top level modules
-from . import filing
-from . import downloader
# Include sub-modules
from . imp... |
d757ec338478ac67f984c1b7aa898f1c374b2a09 | openprescribing/frontend/tests/commands/test_import_ccg_boundaries.py | openprescribing/frontend/tests/commands/test_import_ccg_boundaries.py | from django.core.management import call_command
from django.test import TestCase
from frontend.models import PCT
def setUpModule():
call_command('loaddata', 'frontend/tests/fixtures/ccgs.json',
verbosity=0)
def tearDownModule():
call_command('flush', verbosity=0, interactive=False)
class ... | from django.core.management import call_command
from django.test import TestCase
from frontend.models import PCT
def setUpModule():
call_command('loaddata', 'frontend/tests/fixtures/ccgs.json',
verbosity=0)
def tearDownModule():
call_command('flush', verbosity=0, interactive=False)
class ... | Use almostEqual for comparing geo coordinates | Use almostEqual for comparing geo coordinates
An upgrade in one of the underlying libraries has shifted the numbers
very slightly.
| Python | mit | annapowellsmith/openpresc,annapowellsmith/openpresc,annapowellsmith/openpresc,ebmdatalab/openprescribing,ebmdatalab/openprescribing,ebmdatalab/openprescribing,ebmdatalab/openprescribing,annapowellsmith/openpresc | ---
+++
@@ -23,4 +23,4 @@
call_command('import_ccg_boundaries', *args, **opts)
pct = PCT.objects.get(code='03Q')
- self.assertEqual(pct.boundary.centroid.x, -1.0307530606980588)
+ self.assertAlmostEqual(pct.boundary.centroid.x, -1.0307530606980588) |
af6c260bb27f6b1c5f56ffbd0616b30b9afdbd7b | tests/user_utils_test.py | tests/user_utils_test.py | """Tests for user utility functions."""
from drudge import Vec, sum_, prod_
from drudge.term import parse_terms
def test_sum_prod_utility():
"""Test the summation and product utility."""
v = Vec('v')
vecs = [v[i] for i in range(3)]
v0, v1, v2 = vecs
# The proxy object cannot be directly compare... | """Tests for user utility functions."""
import time
import types
from unittest.mock import MagicMock
from drudge import Vec, sum_, prod_, TimeStamper
from drudge.term import parse_terms
def test_sum_prod_utility():
"""Test the summation and product utility."""
v = Vec('v')
vecs = [v[i] for i in range(3... | Add tests for the time stamping facility | Add tests for the time stamping facility
| Python | mit | tschijnmo/drudge,tschijnmo/drudge,tschijnmo/drudge | ---
+++
@@ -1,6 +1,10 @@
"""Tests for user utility functions."""
-from drudge import Vec, sum_, prod_
+import time
+import types
+from unittest.mock import MagicMock
+
+from drudge import Vec, sum_, prod_, TimeStamper
from drudge.term import parse_terms
@@ -17,3 +21,21 @@
assert sum_([]) == 0
asse... |
c22fb8ce9eafa2f777ce273ef2497fc1983adb1c | rororo/exceptions.py | rororo/exceptions.py | """
=================
rororo.exceptions
=================
All exceptions from WebOb, routr and rororo in one place.
"""
from string import Template
from routr import exc as routr_exceptions
from schemify import ValidationError
from webob import exc as webob_exceptions
class HTTPServerError(webob_exceptions.HTTPSe... | """
=================
rororo.exceptions
=================
All exceptions from WebOb, routr and rororo in one place.
"""
from string import Template
from routr import exc as routr_exceptions
from schemify import ValidationError
from webob import exc as webob_exceptions
class HTTPServerError(webob_exceptions.HTTPSe... | Add base ``ValidationError`` exception class. | Add base ``ValidationError`` exception class.
| Python | bsd-3-clause | playpauseandstop/rororo,playpauseandstop/rororo | ---
+++
@@ -39,6 +39,16 @@
super(NoRendererFound, self).__init__(message)
+class ValidationError(Exception):
+ """
+ Class for validation errors.
+
+ This is very basic class, no specific outputs or other things which
+ happened somewhere else. Just put an error message and then print it in
+... |
ab19ad1810855db9beea913e93b483fcf3e73a07 | src/sentry/api/authentication.py | src/sentry/api/authentication.py | from django.contrib.auth.models import AnonymousUser
from rest_framework.authentication import BasicAuthentication
from rest_framework.exceptions import AuthenticationFailed
from sentry.models import ProjectKey
class KeyAuthentication(BasicAuthentication):
def authenticate_credentials(self, userid, password):
... | from django.contrib.auth.models import AnonymousUser
from django.utils.crypto import constant_time_compare
from rest_framework.authentication import BasicAuthentication
from rest_framework.exceptions import AuthenticationFailed
from sentry.models import ProjectKey
class KeyAuthentication(BasicAuthentication):
d... | Use a constant time comparison in the API auth | Use a constant time comparison in the API auth | Python | bsd-3-clause | JamesMura/sentry,Kryz/sentry,jean/sentry,Natim/sentry,mvaled/sentry,alexm92/sentry,Kryz/sentry,hongliang5623/sentry,JamesMura/sentry,wong2/sentry,drcapulet/sentry,felixbuenemann/sentry,korealerts1/sentry,ifduyue/sentry,fotinakis/sentry,fotinakis/sentry,llonchj/sentry,nicholasserra/sentry,looker/sentry,pauloschilling/se... | ---
+++
@@ -1,4 +1,6 @@
from django.contrib.auth.models import AnonymousUser
+from django.utils.crypto import constant_time_compare
+
from rest_framework.authentication import BasicAuthentication
from rest_framework.exceptions import AuthenticationFailed
@@ -12,7 +14,7 @@
except ProjectKey.DoesNotExist:... |
651c0df48d5e01b4d35f891ac2684a5e265c93f8 | menpofit/aam/result.py | menpofit/aam/result.py | from __future__ import division
from menpofit.result import (
ParametricAlgorithmResult, MultiFitterResult, SerializableIterativeResult)
# TODO: document me!
# TODO: handle costs
class AAMAlgorithmResult(ParametricAlgorithmResult):
r"""
"""
def __init__(self, image, fitter, shape_parameters,
... | from __future__ import division
from menpofit.result import (
ParametricAlgorithmResult, MultiFitterResult, SerializableIterativeResult)
# TODO: document me!
# TODO: handle costs
class AAMAlgorithmResult(ParametricAlgorithmResult):
r"""
"""
def __init__(self, image, fitter, shape_parameters,
... | Make shape a property for LinearAAMAlgorithmResult | Make shape a property for LinearAAMAlgorithmResult
| Python | bsd-3-clause | yuxiang-zhou/menpofit,yuxiang-zhou/menpofit,grigorisg9gr/menpofit,grigorisg9gr/menpofit | ---
+++
@@ -19,14 +19,10 @@
class LinearAAMAlgorithmResult(AAMAlgorithmResult):
r"""
"""
+ @property
def shapes(self, as_points=False):
- if as_points:
- return [self.fitter.transform.from_vector(p).sparse_target.points
- for p in self.shape_parameters]
-
- ... |
7586babb52ea31597f3ce98f37e5ca80b454ce54 | setup.py | setup.py | from distutils.core import setup
setup(
name='resync',
version='0.1',
packages=['resync'],
classifiers=["Development Status :: 3 - Alpha",
"Programming Language :: Python",
"Topic :: Software Development :: Libraries :: Python Modules",
"Environment ::... | from distutils.core import setup
setup(
name='resync',
version='0.1',
packages=['resync'],
classifiers=["Development Status :: 3 - Alpha",
"Programming Language :: Python",
"Topic :: Software Development :: Libraries :: Python Modules",
"Environment ::... | Fix for rename of README.md | Fix for rename of README.md
| Python | apache-2.0 | resync/resync,lindareijnhoudt/resync,dans-er/resync,lindareijnhoudt/resync,dans-er/resync | ---
+++
@@ -10,6 +10,6 @@
"Environment :: Web Environment"],
author='Simeon Warner',
author_email='simeon.warner@cornell.edu',
- long_description=open('README.txt').read(),
+ long_description=open('README.md').read(),
url='http://github.com/resync/resync',
) |
51a4618fdf78c174af428b11f5f58b5aae88b583 | examples/MNIST/mnist.py | examples/MNIST/mnist.py | import os
import gzip
import pickle
import urllib
import sys
'''Adapted from theano tutorial'''
def load_mnist(data_file = './mnist.pkl.gz'):
if not os.path.exists(data_file):
origin = ('http://www.iro.umontreal.ca/~lisa/deep/data/mnist/mnist.pkl.gz')
print('Downloading data from %s' % origin)
... | import os
import gzip
import pickle
import sys
# Python 2/3 compatibility.
try:
from urllib.request import urlretrieve
except ImportError:
from urllib import urlretrieve
'''Adapted from theano tutorial'''
def load_mnist(data_file = './mnist.pkl.gz'):
if not os.path.exists(data_file):
origin = ... | Make MNIST example py3 compatible. | Make MNIST example py3 compatible.
| Python | mit | Pandoro/DeepFried2,elPistolero/DeepFried2,yobibyte/DeepFried2,lucasb-eyer/DeepFried2,VisualComputingInstitute/Beacon8 | ---
+++
@@ -1,8 +1,15 @@
import os
import gzip
import pickle
-import urllib
import sys
+
+# Python 2/3 compatibility.
+try:
+ from urllib.request import urlretrieve
+except ImportError:
+ from urllib import urlretrieve
+
+
'''Adapted from theano tutorial'''
@@ -11,7 +18,7 @@
if not os.path.exists(... |
82cd8b267f2a66d5e9871c4eb3ec4ce8cc2106d6 | utils.py | utils.py | import os
from google.appengine.api import apiproxy_stub_map
from google.appengine.api.app_identity import get_application_id
have_appserver = bool(apiproxy_stub_map.apiproxy.GetStub('datastore_v3'))
if not have_appserver:
from .boot import PROJECT_DIR
from google.appengine.tools import dev_appserver
app... | import os
from google.appengine.api import apiproxy_stub_map
from google.appengine.api.app_identity import get_application_id
have_appserver = bool(apiproxy_stub_map.apiproxy.GetStub('datastore_v3'))
if not have_appserver:
from .boot import PROJECT_DIR
from google.appengine.tools import dev_appserver
app... | Tweak the way that on_production_server is determined | Tweak the way that on_production_server is determined
| Python | bsd-3-clause | potatolondon/djangoappengine-1-4,potatolondon/djangoappengine-1-4 | ---
+++
@@ -20,5 +20,4 @@
raise Exception("Could not get appid. Is your app.yaml file missing? "
"Error was: %s" % e)
-on_production_server = have_appserver and \
- not os.environ.get('SERVER_SOFTWARE', '').lower().startswith('devel')
+on_production_server = 'SERVER_SOFT... |
5fd157d37f532e4aadd51475b9b3654bb42febd9 | rbtools/clients/tests/test_cvs.py | rbtools/clients/tests/test_cvs.py | """Unit tests for CVSClient."""
from __future__ import unicode_literals
import kgb
from rbtools.clients import RepositoryInfo
from rbtools.clients.cvs import CVSClient
from rbtools.clients.tests import SCMClientTestCase
class CVSClientTests(kgb.SpyAgency, SCMClientTestCase):
"""Unit tests for CVSClient."""
... | """Unit tests for CVSClient."""
from __future__ import unicode_literals
import kgb
from rbtools.clients import RepositoryInfo
from rbtools.clients.cvs import CVSClient
from rbtools.clients.tests import SCMClientTestCase
class CVSClientTests(kgb.SpyAgency, SCMClientTestCase):
"""Unit tests for CVSClient."""
... | Update the CVS unit tests to use build_client(). | Update the CVS unit tests to use build_client().
This updates the CVS unit tests to build a `CVSClient` in each test
where it's needed, rather than in `setUp()`. This is in prepration for
new tests that will need to handle client construction differently.
Testing Done:
CVS unit tests pass.
Reviewed at https://review... | Python | mit | reviewboard/rbtools,reviewboard/rbtools,reviewboard/rbtools | ---
+++
@@ -12,17 +12,16 @@
class CVSClientTests(kgb.SpyAgency, SCMClientTestCase):
"""Unit tests for CVSClient."""
- def setUp(self):
- super(CVSClientTests, self).setUp()
-
- self.client = CVSClient(options=self.options)
+ scmclient_cls = CVSClient
def test_get_repository_info_wit... |
e004e5610526d2762027c586cfb8a0a81a1ec00d | examples/task_call.py | examples/task_call.py | import sys
sys.path.append('../py')
from iroha import *
from iroha.iroha import *
d = IDesign()
mod = IModule(d, "mod")
callee_tab = ITable(mod)
task = design_tool.CreateSiblingTask(callee_tab)
entry_insn = IInsn(task)
st1 = IState(callee_tab)
st1.insns.append(entry_insn)
callee_tab.states.append(st1)
callee_tab.ini... | import sys
sys.path.append('../py')
from iroha import *
from iroha.iroha import *
d = IDesign()
mod = IModule(d, "mod")
callee_tab = ITable(mod)
task = design_tool.CreateSiblingTask(callee_tab)
entry_insn = IInsn(task)
st1 = IState(callee_tab)
st1.insns.append(entry_insn)
callee_tab.states.append(st1)
callee_tab.ini... | Add a state not to call the task continuously. | Add a state not to call the task continuously.
| Python | bsd-3-clause | nlsynth/iroha,nlsynth/iroha | ---
+++
@@ -15,13 +15,23 @@
callee_tab.states.append(st1)
callee_tab.initialSt = st1
+print_res = design_tool.GetResource(callee_tab, "print")
+print_insn = IInsn(print_res)
+print_insn.inputs.append(design_tool.AllocConstNum(callee_tab, False, 32, 123))
+st1.insns.append(print_insn)
+
caller_tab = ITable(mod)
... |
a2333c2009f935731665de51ff1a28121c6a234d | migrations/versions/0313_email_access_validated_at.py | migrations/versions/0313_email_access_validated_at.py | """
Revision ID: 0313_email_access_validated_at
Revises: 0312_populate_returned_letters
Create Date: 2020-01-28 18:03:22.237386
"""
from alembic import op
import sqlalchemy as sa
revision = '0313_email_access_validated_at'
down_revision = '0312_populate_returned_letters'
def upgrade():
# ### commands auto gen... | """
Revision ID: 0313_email_access_validated_at
Revises: 0312_populate_returned_letters
Create Date: 2020-01-28 18:03:22.237386
"""
from alembic import op
import sqlalchemy as sa
revision = '0313_email_access_validated_at'
down_revision = '0312_populate_returned_letters'
def upgrade():
# ### commands auto gen... | Fix typo where wrong column name was checked for being null | Fix typo where wrong column name was checked for being null
| Python | mit | alphagov/notifications-api,alphagov/notifications-api | ---
+++
@@ -31,7 +31,7 @@
WHERE
auth_type = 'email_auth'
AND
- email_access_validated_at IS NOT NULL
+ logged_in_at IS NOT NULL
""")
op.alter_column('users', 'email_access_validated_at', nullable=False)
# ### end Alembic commands ### |
aa014a472a39c12cf3141dd337ecc2ed1ea2cd55 | django_summernote/test_settings.py | django_summernote/test_settings.py | import django
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': 'django_summernote.db',
}
}
__MIDDLEWARE__ = (
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
... | DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': 'django_summernote.db',
}
}
MIDDLEWARE = (
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib... | Drop old django version support (1.10) | Drop old django version support (1.10)
| Python | mit | summernote/django-summernote,summernote/django-summernote,summernote/django-summernote | ---
+++
@@ -1,5 +1,3 @@
-import django
-
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
@@ -7,7 +5,7 @@
}
}
-__MIDDLEWARE__ = (
+MIDDLEWARE = (
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middlew... |
9c0e72228ab3e2176907edd8e584ba64f34cbcc3 | 1-1/hello_world_broken.py | 1-1/hello_world_broken.py | import pyopencl as cl
TASKS = 64
if __name__ == '__main__':
print('create context')
ctx = cl.create_some_context()
print('create command queue')
queue = cl.CommandQueue(ctx)
print('load program from cl source file')
f = open('hello_world.cl', 'r')
kernels = ''.join(f.readlines())
f.... | import pyopencl as cl
TASKS = 64
if __name__ == '__main__':
print('create context')
ctx = cl.create_some_context()
print('create command queue')
queue = cl.CommandQueue(ctx)
print('load program from cl source file')
f = open('hello_world_broken.cl', 'r')
kernels = ''.join(f.readlines())... | Correct the filename we use. | Correct the filename we use.
| Python | mit | PyOCL/pyopencl-examples,PyOCL/pyopencl-examples | ---
+++
@@ -11,7 +11,7 @@
queue = cl.CommandQueue(ctx)
print('load program from cl source file')
- f = open('hello_world.cl', 'r')
+ f = open('hello_world_broken.cl', 'r')
kernels = ''.join(f.readlines())
f.close()
|
ce8bb976d113da8fbc423437d065d34199dbe57b | packages/fsharp-3.0.py | packages/fsharp-3.0.py |
class FsharpPackage(GitHubTarballPackage):
def __init__(self):
GitHubTarballPackage.__init__(self,
'fsharp', 'fsharp',
'3.0.13',
'3.0.13',
configure = '')
def build(self):
self.sh ('autoreconf')
self.sh ('./configure --prefix="%{prefix}"')
self.sh ('make')
FsharpPackage()
|
class FsharpPackage(GitHubTarballPackage):
def __init__(self):
GitHubTarballPackage.__init__(self,
'fsharp', 'fsharp',
'3.0.13',
'893b8a3a9326b0a2008b5f7322dd8002b8065a69',
configure = '')
def build(self):
self.sh ('autoreconf')
self.sh ('./configure --prefix="%{prefix}"')
self.sh ('make')
Fsha... | Use the full commit hash so that we can download from github.com. | Use the full commit hash so that we can download from github.com.
| Python | mit | mono/bockbuild,BansheeMediaPlayer/bockbuild,mono/bockbuild,BansheeMediaPlayer/bockbuild,BansheeMediaPlayer/bockbuild | ---
+++
@@ -4,7 +4,7 @@
GitHubTarballPackage.__init__(self,
'fsharp', 'fsharp',
'3.0.13',
- '3.0.13',
+ '893b8a3a9326b0a2008b5f7322dd8002b8065a69',
configure = '')
def build(self): |
d989f5513df5a8a28c6bb1c251554afd8fe5f228 | camera.py | camera.py | #!/usr/bin/env python
"""Test Raspberry Pi camera!"""
# http://picamera.readthedocs.org/en/release-1.10/index.html
import picamera
import sys
from fractions import Fraction
from time import sleep
filename = sys.argv[1]
camera = picamera.PiCamera()
camera.vflip = True
camera.hflip = True
camera.framerate = Fraction... | #!/usr/bin/env python
"""Test Raspberry Pi camera!"""
# http://picamera.readthedocs.org/en/release-1.10/index.html
import picamera
import sys
from fractions import Fraction
from time import sleep
filename = sys.argv[1]
camera = picamera.PiCamera()
camera.vflip = True
camera.hflip = True
## Low light
#camera.framer... | Change settings for normal light. | Change settings for normal light.
| Python | mit | zimolzak/Raspberry-Pi-newbie,zimolzak/Raspberry-Pi-newbie,zimolzak/Raspberry-Pi-newbie,zimolzak/Raspberry-Pi-newbie,zimolzak/Raspberry-Pi-newbie | ---
+++
@@ -14,14 +14,19 @@
camera.vflip = True
camera.hflip = True
-camera.framerate = Fraction(1, 6)
-camera.shutter_speed = 4000000
-#camera.exposure_mode = 'off'
-camera.iso = 1600
+## Low light
+#camera.framerate = Fraction(1, 6)
+#camera.shutter_speed = 4000000
+#camera.iso = 1600
+
print "sleep"
-sleep(4)... |
597f4e9491120b1bf70544a0a3b26be02431587d | onepercentclub/settings/travis.py | onepercentclub/settings/travis.py | # TODO: not sure why but we need to include the SECRET_KEY here - importing from the test_runner file doesn't work
SECRET_KEY = 'hbqnTEq+m7Tk61bvRV/TLANr3i0WZ6hgBXDh3aYpSU8m+E1iCtlU3Q=='
from .test_runner import *
# Use firefox for running tests on Travis
SELENIUM_WEBDRIVER = 'firefox'
ROOT_URLCONF = 'onepercentclu... | # TODO: not sure why but we need to include the SECRET_KEY here - importing from the test_runner file doesn't work
SECRET_KEY = 'hbqnTEq+m7Tk61bvRV/TLANr3i0WZ6hgBXDh3aYpSU8m+E1iCtlU3Q=='
from .test_runner import *
# Use firefox for running tests on Travis
SELENIUM_WEBDRIVER = 'remote'
SELENIUM_TESTS = False
ROOT_UR... | Disable front end tests on Travis for now. | Disable front end tests on Travis for now.
| Python | bsd-3-clause | onepercentclub/onepercentclub-site,onepercentclub/onepercentclub-site,onepercentclub/onepercentclub-site,onepercentclub/onepercentclub-site,onepercentclub/onepercentclub-site | ---
+++
@@ -5,6 +5,7 @@
# Use firefox for running tests on Travis
-SELENIUM_WEBDRIVER = 'firefox'
+SELENIUM_WEBDRIVER = 'remote'
+SELENIUM_TESTS = False
ROOT_URLCONF = 'onepercentclub.urls' |
9328069cf7c871d701d0299e8665ef60572e8061 | fandjango/decorators.py | fandjango/decorators.py | from functools import wraps
from django.http import HttpResponse
from django.core.urlresolvers import reverse
from django.conf import settings
from utils import redirect_to_facebook_authorization
def facebook_authorization_required(redirect_uri=False):
"""
Redirect Facebook canvas views to authorization if r... | from functools import wraps
from django.http import HttpResponse
from django.core.urlresolvers import reverse
from django.core.handlers.wsgi import WSGIRequest
from django.conf import settings
from utils import redirect_to_facebook_authorization
def facebook_authorization_required(redirect_uri=False):
"""
Re... | Fix a bug that caused the "facebook_authorization_required" decorator to be incompatible with Django libraries that modify the order of arguments given to views. | Fix a bug that caused the "facebook_authorization_required" decorator to be incompatible
with Django libraries that modify the order of arguments given to views.
| Python | mit | jgorset/fandjango,jgorset/fandjango | ---
+++
@@ -2,6 +2,7 @@
from django.http import HttpResponse
from django.core.urlresolvers import reverse
+from django.core.handlers.wsgi import WSGIRequest
from django.conf import settings
from utils import redirect_to_facebook_authorization
@@ -16,11 +17,15 @@
"""
def decorator(function):
... |
94caedce74bad7a1e4a2002dd725a220a8fc8a8e | django_prometheus/migrations.py | django_prometheus/migrations.py | from django.db import connections
from django.db.migrations.executor import MigrationExecutor
from prometheus_client import Gauge
unapplied_migrations = Gauge(
'django_migrations_unapplied_total',
'Count of unapplied migrations by database connection',
['connection'])
applied_migrations = Gauge(
'djan... | from django.db import connections
from django.db.migrations.executor import MigrationExecutor
from prometheus_client import Gauge
unapplied_migrations = Gauge(
'django_migrations_unapplied_total',
'Count of unapplied migrations by database connection',
['connection'])
applied_migrations = Gauge(
'djan... | Fix pep8 violation in 29e3a0c. | Fix pep8 violation in 29e3a0c.
| Python | apache-2.0 | korfuri/django-prometheus,obytes/django-prometheus,obytes/django-prometheus,korfuri/django-prometheus | ---
+++
@@ -27,7 +27,8 @@
django_prometheus.apps.AppConfig.
"""
return
- if 'default' in connections and connections['default']['ENGINE'] == 'django.db.backends.dummy':
+ if 'default' in connections and (
+ connections['default']['ENGINE'] == 'django.db.backends.dummy'):
# Thi... |
f96b4f3516905b13267d6c918f22e76556b4b56a | salt/modules/cmd.py | salt/modules/cmd.py | '''
Module for shelling out commands, inclusion of this module should be
configurable for security reasons
'''
| '''
Module for shelling out commands, inclusion of this module should be
configurable for security reasons
'''
def echo(text):
'''
Return a string - used for testing the connection
'''
return text
| Add a simple test function | Add a simple test function
| Python | apache-2.0 | saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt | ---
+++
@@ -2,3 +2,9 @@
Module for shelling out commands, inclusion of this module should be
configurable for security reasons
'''
+
+def echo(text):
+ '''
+ Return a string - used for testing the connection
+ '''
+ return text |
fe54d298fb3a922d28934b8fa2cdc863334b35b3 | src/webassets/filter/stylus.py | src/webassets/filter/stylus.py | from webassets.filter import ExternalTool, option
__all__ = ('Stylus',)
class Stylus(ExternalTool):
"""Converts `Stylus <http://learnboost.github.com/stylus/>`_ markup to CSS.
Requires the Stylus executable to be available externally. You can install
it using the `Node Package Manager <http://npmjs.org... | import os
from webassets.filter import ExternalTool, option
__all__ = ('Stylus',)
class Stylus(ExternalTool):
"""Converts `Stylus <http://learnboost.github.com/stylus/>`_ markup to CSS.
Requires the Stylus executable to be available externally. You can install
it using the `Node Package Manager <http:/... | Update Stylus filter with include paths | Update Stylus filter with include paths
Since the Stylus filter works with stdin, the compiler doesn't know the
source directory, and thus can't resolve any imports. This adds the
source directory to the include path using the `--include` option, and
also adds the `STYLUS_EXTRA_PATHS` option to configure any extra
... | Python | bsd-2-clause | glorpen/webassets,florianjacob/webassets,scorphus/webassets,aconrad/webassets,heynemann/webassets,wijerasa/webassets,scorphus/webassets,john2x/webassets,florianjacob/webassets,heynemann/webassets,JDeuce/webassets,john2x/webassets,aconrad/webassets,wijerasa/webassets,JDeuce/webassets,0x1997/webassets,glorpen/webassets,0... | ---
+++
@@ -1,3 +1,4 @@
+import os
from webassets.filter import ExternalTool, option
@@ -24,6 +25,9 @@
STYLUS_EXTRA_ARGS
A Python list of any additional command-line arguments.
+
+ STYLUS_EXTRA_PATHS
+ A Python list of any additional import paths.
"""
name = 'stylus'... |
44baebd79f59938bcb8bec41f59f2e554f71cdae | senlin/db/sqlalchemy/migrate_repo/manage.py | senlin/db/sqlalchemy/migrate_repo/manage.py | #!/usr/bin/env python
from migrate.versioning.shell import main
if __name__ == '__main__':
main(debug='False')
| #!/usr/bin/env python
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | Add Apache 2.0 license to source file | Add Apache 2.0 license to source file
As per OpenStack licensing guide lines [1]:
[H102 H103] Newly contributed Source Code should be licensed under
the Apache 2.0 license.
[H104] Files with no code shouldn't contain any license header nor
comments, and must be left completely empty.
[1] http://docs.openstack.org/dev... | Python | apache-2.0 | openstack/senlin,openstack/senlin,stackforge/senlin,stackforge/senlin,openstack/senlin | ---
+++
@@ -1,4 +1,17 @@
#!/usr/bin/env python
+#
+# 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 appli... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.