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 |
|---|---|---|---|---|---|---|---|---|---|---|
d2f166ec2f2eca547abab7b4f4e498f24f983948 | api/v2/views/image.py | api/v2/views/image.py | from core.models import Application as Image
from api import permissions
from api.v2.serializers.details import ImageSerializer
from api.v2.views.base import AuthOptionalViewSet
from api.v2.views.mixins import MultipleFieldLookup
class ImageViewSet(MultipleFieldLookup, AuthOptionalViewSet):
"""
API endpoint... | from core.models import Application as Image
from api import permissions
from api.v2.serializers.details import ImageSerializer
from api.v2.views.base import AuthOptionalViewSet
from api.v2.views.mixins import MultipleFieldLookup
class ImageViewSet(MultipleFieldLookup, AuthOptionalViewSet):
"""
API endpoint... | Add 'provider location' as a searchable field for Images | Add 'provider location' as a searchable field for Images
| Python | apache-2.0 | CCI-MOC/GUI-Backend,CCI-MOC/GUI-Backend,CCI-MOC/GUI-Backend,CCI-MOC/GUI-Backend | ---
+++
@@ -25,7 +25,7 @@
serializer_class = ImageSerializer
search_fields = ('id', 'name', 'versions__change_log', 'tags__name',
- 'tags__description', 'created_by__username')
+ 'tags__description', 'created_by__username', 'versions__machines__instance_source__prov... |
6defa096b3dae109bf50ab32cdee7062c8b4327b | _python/config/settings/settings_pytest.py | _python/config/settings/settings_pytest.py | # Django settings used by pytest
# WARNING: this imports from .settings_dev instead of config.settings, meaning it chooses to IGNORE any settings in
# config/settings/settings.py. This is potentially better (in that it doesn't return different results locally than
# it will on CI), but also potentially worse (in that ... | # Django settings used by pytest
# WARNING: this imports from .settings_dev instead of config.settings, meaning it chooses to IGNORE any settings in
# config/settings/settings.py. This is potentially better (in that it doesn't return different results locally than
# it will on CI), but also potentially worse (in that ... | Add placeholder CAPAPI key for tests. | Add placeholder CAPAPI key for tests.
| Python | agpl-3.0 | harvard-lil/h2o,harvard-lil/h2o,harvard-lil/h2o,harvard-lil/h2o | ---
+++
@@ -11,3 +11,4 @@
# increases test time.
MIDDLEWARE.remove('whitenoise.middleware.WhiteNoiseMiddleware')
+CAPAPI_API_KEY = '12345' |
d413747e996326e62fdf942426f170f66d5acb7c | osf_tests/test_preprint_summary.py | osf_tests/test_preprint_summary.py | import datetime
from osf_tests.factories import PreprintFactory, PreprintProviderFactory
from osf.models import PreprintService
from nose.tools import * # PEP8 asserts
import mock
import pytest
import pytz
import requests
from scripts.analytics.preprint_summary import PreprintSummary
@pytest.fixture()
def preprint... | import datetime
from osf_tests.factories import PreprintFactory, PreprintProviderFactory
from osf.models import PreprintService
from nose.tools import * # PEP8 asserts
import mock
import pytest
import pytz
import requests
from scripts.analytics.preprint_summary import PreprintSummary
@pytest.fixture()
def preprint... | Make sure test dates are rounded properly by making they are over a day in the past. | Make sure test dates are rounded properly by making they are over a day in the past.
| Python | apache-2.0 | binoculars/osf.io,TomBaxter/osf.io,sloria/osf.io,adlius/osf.io,Johnetordoff/osf.io,mattclark/osf.io,adlius/osf.io,sloria/osf.io,HalcyonChimera/osf.io,adlius/osf.io,laurenrevere/osf.io,erinspace/osf.io,sloria/osf.io,binoculars/osf.io,mfraezz/osf.io,TomBaxter/osf.io,icereval/osf.io,Johnetordoff/osf.io,pattisdr/osf.io,crc... | ---
+++
@@ -23,7 +23,7 @@
class TestPreprintCount:
- def test_get_preprint_count(self, preprint_provider, preprint):
+ def test_get_preprint_count(self, preprint):
requests.post = mock.MagicMock()
resp = requests.Response()
@@ -33,8 +33,8 @@
field = PreprintService._meta.get_fi... |
db4ebbf2dcbef78b48038286a04c02366fcb2018 | wind_model.py | wind_model.py | #!/usr/bin/env python
"""
Reduced Gravity Shallow Water Model
based Matlab code by: Francois Primeau UC Irvine 2011
Kelsey Jordahl
kjordahl@enthought.com
Time-stamp: <Tue Apr 10 08:31:42 EDT 2012>
"""
from scipy.io.netcdf import netcdf_file
from ocean_model import ShallowWaterModel, OceanPlot
from traits.api import I... | #!/usr/bin/env python
"""
Reduced Gravity Shallow Water Model
based Matlab code by: Francois Primeau UC Irvine 2011
Kelsey Jordahl
kjordahl@enthought.com
Time-stamp: <Tue Apr 10 08:44:50 EDT 2012>
"""
from scipy.io.netcdf import netcdf_file
from ocean_model import ShallowWaterModel, OceanPlot
from traits.api import I... | Set latitude of Lake Superior | Set latitude of Lake Superior
| Python | bsd-3-clause | kjordahl/swm | ---
+++
@@ -5,7 +5,7 @@
Kelsey Jordahl
kjordahl@enthought.com
-Time-stamp: <Tue Apr 10 08:31:42 EDT 2012>
+Time-stamp: <Tue Apr 10 08:44:50 EDT 2012>
"""
from scipy.io.netcdf import netcdf_file
@@ -24,6 +24,7 @@
self.Lbump = 0.0
self.Lx = 600e3
self.Ly = 600e3
+ self.lat = 43... |
10e65e9cb1496a8a6b570d27d4d3a9c3a3722016 | plugin/core/handlers.py | plugin/core/handlers.py | from .types import ClientConfig
from .typing import List, Callable, Optional, Type
import abc
class LanguageHandler(metaclass=abc.ABCMeta):
on_start = None # type: Optional[Callable]
on_initialized = None # type: Optional[Callable]
@abc.abstractproperty
def name(self) -> str:
raise NotImple... | from .logging import debug
from .types import ClientConfig
from .typing import List, Callable, Optional, Type
import abc
class LanguageHandler(metaclass=abc.ABCMeta):
on_start = None # type: Optional[Callable]
on_initialized = None # type: Optional[Callable]
@abc.abstractproperty
def name(self) -> ... | Initialize final subclass of LanguageHandler | Initialize final subclass of LanguageHandler
Needed to address cases when there is more than one level of
sub-classing.
Required for https://github.com/sublimelsp/lsp_utils/pull/5
| Python | mit | tomv564/LSP | ---
+++
@@ -1,3 +1,4 @@
+from .logging import debug
from .types import ClientConfig
from .typing import List, Callable, Optional, Type
import abc
@@ -17,9 +18,24 @@
@classmethod
def instantiate_all(cls) -> 'List[LanguageHandler]':
- return list(
- instantiate(c) for c in cls.__subclas... |
7d6ad23cd8435eac9b48a4ea63bb9a2e83239c4a | scent.py | scent.py |
import os
import termstyle
from sniffer.api import file_validator, runnable
from tmuxp.testsuite import main
# you can customize the pass/fail colors like this
pass_fg_color = termstyle.green
pass_bg_color = termstyle.bg_default
fail_fg_color = termstyle.red
fail_bg_color = termstyle.bg_default
# All lists in this... | from __future__ import unicode_literals
import os
import termstyle
from sniffer.api import file_validator, runnable
from tmuxp.testsuite import main
# you can customize the pass/fail colors like this
pass_fg_color = termstyle.green
pass_bg_color = termstyle.bg_default
fail_fg_color = termstyle.red
fail_bg_color = t... | Fix sniffer support for python 3.x | Fix sniffer support for python 3.x
| Python | bsd-3-clause | thomasballinger/tmuxp,thomasballinger/tmuxp,mexicarne/tmuxp,tony/tmuxp,mexicarne/tmuxp | ---
+++
@@ -1,3 +1,4 @@
+from __future__ import unicode_literals
import os
import termstyle
@@ -27,8 +28,7 @@
return main()
except SystemExit as x:
if x.message:
- print "Found error {0}: {1}".format(x.code, x.message)
+ print("Found error {0}: {1}".format(x.code, x.me... |
4e1ff55e0575e710648867ada8fe421df280fb6a | utils.py | utils.py | import vx
def _expose(f, name=None):
if name is None:
name = f.__name__.lstrip('_')
if getattr(vx, name, None) is not None:
raise AttributeError("Cannot expose duplicate name: '{}'".format(name))
setattr(vx, name, f)
return f
vx.expose = _expose
@vx.expose
def _repeat(c, times=4):
... | import vx
def _expose(f=None, name=None):
if name is None:
name = f.__name__.lstrip('_')
if getattr(vx, name, None) is not None:
raise AttributeError("Cannot expose duplicate name: '{}'".format(name))
if f is None:
def g(f):
setattr(vx, name, f)
return f
... | Fix vx.expose so it works when a name is passed | Fix vx.expose so it works when a name is passed
| Python | mit | philipdexter/vx,philipdexter/vx | ---
+++
@@ -1,10 +1,15 @@
import vx
-def _expose(f, name=None):
+def _expose(f=None, name=None):
if name is None:
name = f.__name__.lstrip('_')
if getattr(vx, name, None) is not None:
raise AttributeError("Cannot expose duplicate name: '{}'".format(name))
+ if f is None:
+ def... |
6c506a17f606d346ce9240b5756b98923b4d821f | setup.py | setup.py | #!/usr/bin/env python
import os
import sys
import crabpy
from setuptools import setup, find_packages
packages = [
'crabpy',
]
requires = [
'suds-jurko>=0.6.0',
'dogpile.cache'
]
setup(
name='crabpy',
version='0.3.0',
description='Interact with AGIV webservices.',
long_description=open(... | #!/usr/bin/env python
import os
import sys
import crabpy
from setuptools import setup, find_packages
packages = [
'crabpy',
]
requires = [
'suds-jurko>=0.6.0',
'dogpile.cache'
]
setup(
name='crabpy',
version='0.3.0',
description='Interact with AGIV webservices.',
long_description=open(... | Set to beta development state. | Set to beta development state.
| Python | mit | OnroerendErfgoed/crabpy | ---
+++
@@ -33,7 +33,7 @@
license='MIT',
zip_safe=False,
classifiers=[
- 'Development Status :: 3 - Alpha',
+ 'Development Status :: 3 - Beta',
'Intended Audience :: Developers',
'Natural Language :: English',
'License :: OSI Approved :: MIT License', |
9aada64ad8425b7e1a64a136d531e39a036ea3c9 | setup.py | setup.py | from setuptools import setup, Extension
nadis_impl = Extension('nadis_impl',
sources = [
'src/driver.c',
'src/parser.c',
'src/serializer.c',
'src/connection.c',
'src/circular_buffer.c'
])
setup (name = "Nadis",
version = "1.0",
author = "Guillaume Viot",
author_email ... | from setuptools import setup, Extension
nadis_impl = Extension('nadis_impl',
sources = [
'src/driver.c',
'src/parser.c',
'src/serializer.c',
'src/connection.c',
'src/circular_buffer.c'
], extra_compile_args=['-std=c99'])
setup (name = "Nadis",
version = "1.0",
author = "G... | Add compile flag std c99 to make GCC happy | Add compile flag std c99 to make GCC happy
| Python | mit | gviot/nadis,gviot/nadis,gviot/nadis | ---
+++
@@ -7,7 +7,7 @@
'src/serializer.c',
'src/connection.c',
'src/circular_buffer.c'
- ])
+ ], extra_compile_args=['-std=c99'])
setup (name = "Nadis",
version = "1.0", |
71523cf20e1fc8525d3065c631c512ab76ed7339 | setup.py | setup.py | # -*- coding: utf-8 -*-
import os
from setuptools import setup
def read(fname):
try:
return open(os.path.join(os.path.dirname(__file__), fname)).read()
except:
return ''
setup(
name='todoist-python',
version='7.0.6',
packages=['todoist', 'todoist.managers'],
author='Doist Team'... | # -*- coding: utf-8 -*-
import os
from setuptools import setup
def read(fname):
try:
return open(os.path.join(os.path.dirname(__file__), fname)).read()
except:
return ''
setup(
name='todoist-python',
version='7.0.7',
packages=['todoist', 'todoist.managers'],
author='Doist Team'... | Update the PyPI version to 7.0.7. | Update the PyPI version to 7.0.7.
| Python | mit | Doist/todoist-python | ---
+++
@@ -10,7 +10,7 @@
setup(
name='todoist-python',
- version='7.0.6',
+ version='7.0.7',
packages=['todoist', 'todoist.managers'],
author='Doist Team',
author_email='info@todoist.com', |
26bcb43a40a351b9ead4f2e5adb7d9a0e68e2777 | setup.py | setup.py | from setuptools import setup
import io
import os
def read(fname, encoding='utf-8'):
here = os.path.dirname(__file__)
with io.open(os.path.join(here, fname), encoding=encoding) as f:
return f.read()
setup(
name='pretext',
version='0.0.3',
description='Use doctest with bytes, str & unicode... | from setuptools import setup
import io
import os
def read(fname, encoding='utf-8'):
here = os.path.dirname(__file__)
with io.open(os.path.join(here, fname), encoding=encoding) as f:
return f.read()
setup(
name='pretext',
version='0.0.3',
description='Use doctest with bytes, str & unicode... | Change development status to Beta | Change development status to Beta
| Python | apache-2.0 | moreati/b-prefix-all-the-doctests | ---
+++
@@ -25,7 +25,7 @@
include_package_data=True,
classifiers=[
- 'Development Status :: 3 - Alpha',
+ 'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent'... |
07b80c15a4dc33a7cef1613845a322ee32d05d1d | setup.py | setup.py | import ez_setup
ez_setup.use_setuptools()
from setuptools import setup
from django_allowdeny import NAME, VERSION
setup(
name=NAME,
version=VERSION,
author='Nimrod A. Abing',
author_email='nimrod.abing@gmail.com',
packages=['django_allowdeny'],
package_data={
'django_allowdeny': ['temp... | import ez_setup
ez_setup.use_setuptools()
from setuptools import setup
from django_allowdeny import NAME, VERSION
setup(
name=NAME,
version=VERSION,
author='Nimrod A. Abing',
author_email='nimrod.abing@gmail.com',
packages=['django_allowdeny'],
package_data={
'django_allowdeny': ['temp... | Fix up description and long_description. | Fix up description and long_description.
| Python | bsd-3-clause | rudeb0t/DjangoAllowDeny | ---
+++
@@ -15,5 +15,6 @@
},
url='https://github.com/rudeb0t/DjangoAllowDeny',
license='LICENSE.txt',
- description=open('README.rst').read(),
+ description='Simple allow/deny access control for Django projects.',
+ long_description=open('README.rst').read(),
) |
16202e43ebc49f014763d3dc55bac3a691ccaadf | setup.py | setup.py | from setuptools import setup
f = open("README.rst")
try:
try:
readme_content = f.read()
except:
readme_content = ""
finally:
f.close()
setup(
name='restea',
packages=['restea', 'restea.adapters'],
version='0.3.7',
description='Simple RESTful server toolkit',
long_descri... | from setuptools import setup
f = open("README.rst")
try:
try:
readme_content = f.read()
except Exception:
readme_content = ""
finally:
f.close()
setup(
name='restea',
packages=['restea', 'restea.adapters'],
version='0.3.7',
description='Simple RESTful server toolkit',
l... | Fix E722 error while executing flake8. | Fix E722 error while executing flake8.
| Python | mit | bodbdigr/restea | ---
+++
@@ -4,7 +4,7 @@
try:
try:
readme_content = f.read()
- except:
+ except Exception:
readme_content = ""
finally:
f.close() |
c100aafc6b8b277b048fb6134dc50a8921dbe979 | setup.py | setup.py | from setuptools import setup
setup(
name='django-emailer',
version='0.1.2',
author='Evandro Myller',
author_email='emyller@7ws.co',
description='Template based email sending with SMTP connection management',
url='https://github.com/7ws/django-emailer',
install_requires=[
'django >=... | from setuptools import setup
setup(
name='django-emailer',
version='0.1',
author='Evandro Myller',
author_email='emyller@7ws.co',
description='Template based email sending with SMTP connection management',
url='https://github.com/7ws/django-emailer',
install_requires=[
'django >= 1... | Fix app vertion (bump to 0.1, initial release) | Fix app vertion (bump to 0.1, initial release)
| Python | mit | 7ws/django-emailer | ---
+++
@@ -3,7 +3,7 @@
setup(
name='django-emailer',
- version='0.1.2',
+ version='0.1',
author='Evandro Myller',
author_email='emyller@7ws.co',
description='Template based email sending with SMTP connection management', |
7973a88d5980b84606671fea8ebdfe60fff6166f | setup.py | setup.py | import os
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(name="ioc_writer",
version="0.2.0",
author="William Gibb",
author_email="william.gibb@mandiant.com",
url="http://www.github.com/mandiant/iocwriter_11/",
... | import os
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(name="ioc_writer",
version="0.3.0",
author="William Gibb",
author_email="william.gibb@mandiant.com",
url="http://www.github.com/mandiant/iocwriter_11/",
... | Bump up version number to v0.3.0 | Bump up version number to v0.3.0
| Python | apache-2.0 | mandiant/ioc_writer | ---
+++
@@ -7,7 +7,7 @@
setup(name="ioc_writer",
- version="0.2.0",
+ version="0.3.0",
author="William Gibb",
author_email="william.gibb@mandiant.com",
url="http://www.github.com/mandiant/iocwriter_11/", |
a01e88ded4e7344bcc5249f5f3be67cc2a06a5a0 | setup.py | setup.py | #########
# Copyright (c) 2014 GigaSpaces Technologies Ltd. All rights reserved
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless... | #########
# Copyright (c) 2014 GigaSpaces Technologies Ltd. All rights reserved
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless... | Add an explicit requirement on PyYAML instead of relying the fact that pyvcloud pulls it in (but won't in future versions, since it doesn't need it) | Add an explicit requirement on PyYAML instead of relying the fact that pyvcloud pulls it in (but won't in future versions, since it doesn't need it)
| Python | apache-2.0 | cloudify-cosmo/tosca-vcloud-plugin,denismakogon/tosca-vcloud-plugin,kemiz/tosca-vcloud-plugin,vmware/tosca-vcloud-plugin | ---
+++
@@ -30,6 +30,7 @@
'cloudify-plugins-common>=3.2',
'pyvcloud==12',
'requests==2.4.3',
- 'IPy==0.81'
+ 'IPy==0.81',
+ 'PyYAML==3.10'
]
) |
9a31799534c16d592aa34ba3c46bdc3f43309a87 | setup.py | setup.py | """
setup.py for Flask-Limiter
"""
__author__ = "Ali-Akber Saifee"
__email__ = "ali@indydevs.org"
__copyright__ = "Copyright 2022, Ali-Akber Saifee"
from setuptools import setup, find_packages
import os
import versioneer
this_dir = os.path.abspath(os.path.dirname(__file__))
REQUIREMENTS = filter(
None, open(os.... | """
setup.py for Flask-Limiter
"""
__author__ = "Ali-Akber Saifee"
__email__ = "ali@indydevs.org"
__copyright__ = "Copyright 2022, Ali-Akber Saifee"
from setuptools import setup, find_packages
import os
import versioneer
this_dir = os.path.abspath(os.path.dirname(__file__))
REQUIREMENTS = filter(
None, open(os.... | Fix missing details in package info | Fix missing details in package info
- Added extras for redis, memcached & mongodb
- Add py.typed
| Python | mit | alisaifee/flask-limiter,alisaifee/flask-limiter | ---
+++
@@ -15,7 +15,11 @@
REQUIREMENTS = filter(
None, open(os.path.join(this_dir, "requirements", "main.txt")).read().splitlines()
)
-
+EXTRA_REQUIREMENTS = {
+ "redis": ["limits[redis]"],
+ "memcached": ["limits[memcached]"],
+ "mongodb": ["limits[mongodb]"],
+}
setup(
name="Flask-Limiter",... |
25597dfd77d80102c23ab2f4f3c9784c98aa943e | setup.py | setup.py | #!/usr/bin/env python
import setuptools
from distutils.core import setup
execfile('sodapy/version.py')
with open('requirements.txt') as requirements:
required = requirements.read().splitlines()
try:
import pypandoc
long_description = pypandoc.convert('README.md', 'rst')
except(IOError, ImportError):
... | #!/usr/bin/env python
import setuptools
from distutils.core import setup
execfile("sodapy/version.py")
with open("requirements.txt") as requirements:
required = requirements.read().splitlines()
try:
import pypandoc
long_description = pypandoc.convert('README.md', 'rst')
except(IOError, ImportError):
... | Change single quotes to double | Change single quotes to double
| Python | mit | xmunoz/sodapy,peggyl/sodapy,peggyl/sodapy | ---
+++
@@ -3,9 +3,9 @@
import setuptools
from distutils.core import setup
-execfile('sodapy/version.py')
+execfile("sodapy/version.py")
-with open('requirements.txt') as requirements:
+with open("requirements.txt") as requirements:
required = requirements.read().splitlines()
try: |
ec96c3173a770949c13e560b16272bc265a80da4 | setup.py | setup.py | #!/usr/bin/env python
from distutils.core import setup
setup(name='mass_api_client',
version=0.1,
install_required=['requests==2.13.0', 'marshmallow==2.12.2'])
| #!/usr/bin/env python
from distutils.core import setup
setup(name='mass_api_client',
version=0.1,
install_requires=['requests==2.13.0', 'marshmallow==2.12.2'],
packages=['mass_api_client', ],
)
| Add mass_api_client as Package; fix typo | Add mass_api_client as Package; fix typo
| Python | mit | mass-project/mass_api_client,mass-project/mass_api_client | ---
+++
@@ -4,4 +4,6 @@
setup(name='mass_api_client',
version=0.1,
- install_required=['requests==2.13.0', 'marshmallow==2.12.2'])
+ install_requires=['requests==2.13.0', 'marshmallow==2.12.2'],
+ packages=['mass_api_client', ],
+ ) |
fda74b21a8b366814b18b7bf3f36b1ce611d006d | setup.py | setup.py | from setuptools import setup
setup(
name='ChannelWorm',
long_description=open('README.md').read(),
install_requires=[
'cypy',
'sciunit',
'PyOpenWorm',
'PyNeuroML'
],
dependency_links=[
'git+https://github.com/scidash/sciunit.git#egg=sciunit',
'git+htt... | from setuptools import setup
setup(
name='ChannelWorm',
long_description=open('README.md').read(),
install_requires=[
'cypy',
'sciunit',
'PyOpenWorm',
'PyNeuroML'
],
dependency_links=[
'git+https://github.com/scidash/sciunit.git#egg=sciunit',
'git+htt... | Fix pyNeuroML dependecy link to go to specific commit | Fix pyNeuroML dependecy link to go to specific commit
| Python | mit | gsarma/ChannelWorm,gsarma/ChannelWorm,joebowen/ChannelWormDjango,VahidGh/ChannelWorm,gsarma/ChannelWorm,joebowen/ChannelWormDjango,cheelee/ChannelWorm,joebowen/ChannelWorm,VahidGh/ChannelWorm,gsarma/ChannelWorm,cheelee/ChannelWorm,VahidGh/ChannelWorm,cheelee/ChannelWorm,cheelee/ChannelWorm,openworm/ChannelWorm,openworm... | ---
+++
@@ -12,6 +12,6 @@
dependency_links=[
'git+https://github.com/scidash/sciunit.git#egg=sciunit',
'git+https://github.com/openworm/PyOpenWorm.git#egg=PyOpenWorm',
- 'git+https://github.com/NeuroML/pyNeuroML.git#egg=PyNeuroML@5aeab1243567d9f4a8ce16516074dc7b93dfbf37'
+ 'git+ht... |
9cea258dc69ed56849cf78c8483b4b5497523779 | setup.py | setup.py | from setuptools import setup, find_packages
setup(
name='exchangerates',
version='0.3.2',
description="A module to make it easier to handle historical exchange rates",
long_description="",
classifiers=[
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
... | from setuptools import setup, find_packages
setup(
name='exchangerates',
version='0.3.3',
description="A module to make it easier to handle historical exchange rates",
long_description="",
classifiers=[
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
... | Allow later versions of libraries, e.g. lxml | Allow later versions of libraries, e.g. lxml
| Python | mit | markbrough/exchangerates | ---
+++
@@ -3,14 +3,14 @@
setup(
name='exchangerates',
- version='0.3.2',
+ version='0.3.3',
description="A module to make it easier to handle historical exchange rates",
long_description="",
classifiers=[
"Intended Audience :: Developers",
"License :: OSI Approved :: MI... |
e3093bafc14fb3af56d797694d3d4c6186209a06 | setup.py | setup.py | from setuptools import setup, PEP420PackageFinder
setup(
name='tangled.sqlalchemy',
version='1.0a6.dev0',
description='Tangled SQLAlchemy integration',
long_description=open('README.rst').read(),
url='https://tangledframework.org/',
download_url='https://github.com/TangledWeb/tangled.sqlalchem... | from setuptools import setup, PEP420PackageFinder
setup(
name='tangled.sqlalchemy',
version='1.0a6.dev0',
description='Tangled SQLAlchemy integration',
long_description=open('README.rst').read(),
url='https://tangledframework.org/',
download_url='https://github.com/TangledWeb/tangled.sqlalchem... | Upgrade tangled 0.1a9 => 1.0a12 | Upgrade tangled 0.1a9 => 1.0a12
| Python | mit | TangledWeb/tangled.sqlalchemy | ---
+++
@@ -12,7 +12,7 @@
author_email='self@wyattbaldwin.com',
packages=PEP420PackageFinder.find(include=['tangled*']),
install_requires=[
- 'tangled>=0.1a9',
+ 'tangled>=1.0a12',
'SQLAlchemy',
],
classifiers=[ |
a1e9a3968a67131dba567950984b7a273e261f86 | setup.py | setup.py | import os
from setuptools import setup
with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme:
README = readme.read()
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='wagtailpress',
version='0.1',
packages=['wagtailpress'],
... | import os
from setuptools import setup
with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme:
README = readme.read()
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='wagtailpress',
version='0.1',
packages=['wagtailpress'],
... | Support Wagtail 1.0 -> 1.3.x | Support Wagtail 1.0 -> 1.3.x
| Python | bsd-3-clause | FlipperPA/wagtailpress,FlipperPA/wagtailpress | ---
+++
@@ -18,7 +18,7 @@
author='Timothy Allen',
author_email='tim@pyphilly.org',
install_requires=[
- 'wagtail>=1.0,<2.0',
+ 'wagtail>=1.0,<1.4',
'Markdown==2.6.2',
'Pygments==2.0.2',
'django-bootstrap3==6.2.2', |
d10fbd23d67c1b6bde87088d379c75a01299865d | setup.py | setup.py | from setuptools import setup
setup(
name='tangled.website',
version='1.0a1.dev0',
description='tangledframework.org',
long_description=open('README.rst').read(),
url='https://tangledframework.org/',
download_url='https://github.com/TangledWeb/tangled.website/tags',
author='Wyatt Baldwin',
... | from setuptools import setup
setup(
name='tangled.website',
version='1.0a1.dev0',
description='tangledframework.org',
long_description=open('README.rst').read(),
url='https://tangledframework.org/',
download_url='https://github.com/TangledWeb/tangled.website/tags',
author='Wyatt Baldwin',
... | Upgrade SQLAlchemy 1.1.6 => 1.2.0 | Upgrade SQLAlchemy 1.1.6 => 1.2.0
| Python | mit | TangledWeb/tangled.website | ---
+++
@@ -19,7 +19,7 @@
'tangled.auth>=0.1a3',
'tangled.session>=0.1a3',
'tangled.site>=1.0a5',
- 'SQLAlchemy>=1.1.6',
+ 'SQLAlchemy>=1.2.0',
],
classifiers=[
'Development Status :: 3 - Alpha', |
3106babe5d0dd9d994d0bb6357126428f5d05feb | setup.py | setup.py | from setuptools import setup
from setuptools.command.install import install
import os
import sys
VERSION = '0.1.3'
class VerifyVersionCommand(install):
"""Custom command to verify that the git tag matches our version"""
description = 'Verify that the git tag matches our version'
def run(self):
t... | from setuptools import setup
from setuptools.command.install import install
import os
import sys
VERSION = '0.1.3'
class VerifyVersionCommand(install):
"""Custom command to verify that the git tag matches our version"""
description = 'Verify that the git tag matches our version'
def run(self):
t... | Remove f-string to allow python 3.4 support | Remove f-string to allow python 3.4 support
| Python | mit | sedders123/phial | ---
+++
@@ -14,7 +14,8 @@
tag = os.getenv('CIRCLE_TAG')
if tag != VERSION:
- info = f"Git tag: {tag} does not match phial version: {VERSION}"
+ info = "Git tag: {0} != phial version: {1}".format(tag,
+ VERSION)
... |
4dac1f95f79a8627d0f9878621cce32fa3771d71 | setup.py | setup.py | """
Setup file for clowder
"""
import sys
from setuptools import setup
# Written according to the docs at
# https://packaging.python.org/en/latest/distributing.html
if sys.version_info[0] < 3:
sys.exit('This script requires python 3.0 or higher to run.')
setup(
name='clowder-repo',
description='A tool fo... | """
Setup file for clowder
"""
from setuptools import setup
# Written according to the docs at
# https://packaging.python.org/en/latest/distributing.html
setup(
name='clowder-repo',
description='A tool for managing code',
version='2.3.0',
url='http://clowder.cat',
author='Joe DeCapo',
author_... | Allow installation with Python 2 | Allow installation with Python 2
| Python | mit | JrGoodle/clowder,JrGoodle/clowder,JrGoodle/clowder | ---
+++
@@ -1,14 +1,11 @@
"""
Setup file for clowder
"""
-import sys
+
from setuptools import setup
# Written according to the docs at
# https://packaging.python.org/en/latest/distributing.html
-
-if sys.version_info[0] < 3:
- sys.exit('This script requires python 3.0 or higher to run.')
setup(
nam... |
a1d525806e5dcb33e850edb7064e059da984ae28 | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup
setup(
name='top40',
version='0.1',
py_modules=['top40'],
author = 'kevgathuku',
author_email = 'kevgathuku@gmail.com',
description = ("Print and optionally download songs in the "
"UK Top 40 Charts"... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup
setup(
name='top40',
version='0.1',
py_modules=['top40'],
author = "Kevin Ndung'u",
author_email = 'kevgathuku@gmail.com',
description = ("Print and optionally download songs in the "
"UK Top 40 Char... | Edit author field. Use full name | Edit author field. Use full name
| Python | mit | kevgathuku/top40,andela-kndungu/top40 | ---
+++
@@ -7,7 +7,7 @@
name='top40',
version='0.1',
py_modules=['top40'],
- author = 'kevgathuku',
+ author = "Kevin Ndung'u",
author_email = 'kevgathuku@gmail.com',
description = ("Print and optionally download songs in the "
"UK Top 40 Charts"), |
8e3227416f60fca6b1cbd7d370b6ccfceb721ee4 | setup.py | setup.py | # -*- coding: utf-8 -*-
import os
from setuptools import setup
def read(fname):
try:
return open(os.path.join(os.path.dirname(__file__), fname)).read()
except:
return ''
setup(
name='todoist-python',
version='7.0.14',
packages=['todoist', 'todoist.managers'],
author='Doist Team... | # -*- coding: utf-8 -*-
import os
from setuptools import setup
def read(fname):
try:
return open(os.path.join(os.path.dirname(__file__), fname)).read()
except:
return ''
setup(
name='todoist-python',
version='7.0.15',
packages=['todoist', 'todoist.managers'],
author='Doist Team... | Update the PyPI version to 7.0.15. | Update the PyPI version to 7.0.15.
| Python | mit | Doist/todoist-python | ---
+++
@@ -10,7 +10,7 @@
setup(
name='todoist-python',
- version='7.0.14',
+ version='7.0.15',
packages=['todoist', 'todoist.managers'],
author='Doist Team',
author_email='info@todoist.com', |
93d263666471b220880511a97aa3ee077bfd2910 | setup.py | setup.py | import sys
from setuptools import setup, find_packages
extra_setup = {}
if sys.version_info >= (3,):
extra_setup['use_2to3'] = True
setup(
name='blessings',
version='1.2',
description='A thin, practical wrapper around terminal formatting, positioning, and more',
long_description=open('README.rst... | import sys
from setuptools import setup, find_packages
extra_setup = {}
if sys.version_info >= (3,):
extra_setup['use_2to3'] = True
setup(
name='blessings',
version='1.2',
description='A thin, practical wrapper around terminal formatting, positioning, and more',
long_description=open('README.rst... | Add the "Production" trove classifier. | Add the "Production" trove classifier. | Python | mit | erikrose/blessings,tartley/blessings,jquast/blessed | ---
+++
@@ -22,6 +22,7 @@
classifiers=[
'Intended Audience :: Developers',
'Natural Language :: English',
+ 'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Environment :: Console :: Curses',
'License :: OSI Approved :: MIT License', |
96d01bb9a5f6fae28a25db2ef8c429d69333565b | setup.py | setup.py | from setuptools import setup
setup(
name='auth_tkt',
version='0.1.0',
description='Python implementation of mod_auth_tkt cookies',
author='Yola',
license='MIT (Expat)',
author_email='engineers@yola.com',
url='http://github.com/yola/auth_tkt',
packages=['auth_tkt'],
test_suite='nose.... | from setuptools import setup
setup(
name='auth_tkt',
version='0.1.0',
description='Python implementation of mod_auth_tkt cookies',
author='Yola',
license='MIT (Expat)',
author_email='engineers@yola.com',
url='http://github.com/yola/auth_tkt',
packages=['auth_tkt'],
test_suite='nose.... | Fix missed cleanup of six requirement | Fix missed cleanup of six requirement
| Python | mit | yola/auth_tkt | ---
+++
@@ -10,5 +10,5 @@
url='http://github.com/yola/auth_tkt',
packages=['auth_tkt'],
test_suite='nose.collector',
- install_requires=['cryptography < 2.0.0', 'six < 2.0.0']
+ install_requires=['cryptography < 2.0.0']
) |
e18c55ada2a4241364e6b9538d6d50817b1ca766 | setup.py | setup.py | import subprocess
import sys
from setuptools import Command, setup
class RunTests(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
errno = subprocess.call([sys.executable, '-m', 'unittest', 'parserutils.tests.tes... | import subprocess
import sys
from setuptools import Command, setup
class RunTests(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
errno = subprocess.call([sys.executable, '-m', 'unittest', 'parserutils.tests.tes... | Increment version after change to get_base_url | Increment version after change to get_base_url | Python | bsd-3-clause | consbio/parserutils | ---
+++
@@ -28,7 +28,7 @@
long_description=long_description,
long_description_content_type='text/markdown',
keywords='parser,parsing,utils,utilities,collections,dates,elements,numbers,strings,url,xml',
- version='1.2.3',
+ version='1.2.4',
packages=[
'parserutils', 'parserutils.test... |
e1e86210fa2d97e2799f037a13576d1ccbe5e4d1 | setup.py | setup.py | # -*- coding: utf-8 -*-
from distutils.core import setup
__version__ = '0.2.6'
setup(name='tg2ext.express',
version=__version__,
description='tg2ext.express, a small extension for TurboGears2',
long_description=open("README.md").read(),
author='Mingcai SHEN',
author_email='archsh... | # -*- coding: utf-8 -*-
from distutils.core import setup
__version__ = '0.2.7'
setup(name='tg2ext.express',
version=__version__,
description='tg2ext.express, a small extension for TurboGears2',
long_description=open("README.md").read(),
author='Mingcai SHEN',
author_email='archsh... | Change version to 0.2.7 according to fix. | Change version to 0.2.7 according to fix.
| Python | mit | archsh/tg2ext.express,archsh/tg2ext.express | ---
+++
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
from distutils.core import setup
-__version__ = '0.2.6'
+__version__ = '0.2.7'
setup(name='tg2ext.express',
version=__version__, |
73949b1fed7cd8826fa6ccaf6fb401c595cdb8cd | setup.py | setup.py | from setuptools import setup
import bot_chucky
version = bot_chucky.__version__
setup_kwargs = {
'name': 'bot_chucky',
'version': version,
'url': 'https://github.com/MichaelYusko/Bot-Chucky',
'license': 'MIT',
'author': 'Frozen Monkey',
'author_email': 'freshjelly12@yahoo.com',
'descriptio... | import bot_chucky
from setuptools import setup
version = bot_chucky.__version__
setup_kwargs = {
'name': 'bot_chucky',
'version': version,
'url': 'https://github.com/MichaelYusko/Bot-Chucky',
'license': 'MIT',
'author': 'Frozen Monkey',
'author_email': 'freshjelly12@yahoo.com',
'descriptio... | Check if travis tests passed | Check if travis tests passed
| Python | mit | MichaelYusko/Bot-Chucky | ---
+++
@@ -1,5 +1,5 @@
+import bot_chucky
from setuptools import setup
-import bot_chucky
version = bot_chucky.__version__
|
0ca4b85590bb930ace2d3f06680e3018a4630e91 | setup.py | setup.py | from setuptools import setup
setup(
name='birdseed',
version='0.2.1',
description='Twitter random number seeder/generator',
url='https://github.com/ryanmcdermott/birdseed',
author='Ryan McDermott',
author_email='ryan.mcdermott@ryansworks.com',
license='MIT',
classi... | from setuptools import setup
setup(
name='birdseed',
version='0.2.1',
description='Twitter random number seeder/generator',
url='https://github.com/ryanmcdermott/birdseed',
author='Ryan McDermott',
author_email='ryan.mcdermott@ryansworks.com',
license='MIT',
classi... | Use a Twitter Python API version that has a pip for it | Use a Twitter Python API version that has a pip for it
| Python | mit | ryanmcdermott/birdseed | ---
+++
@@ -32,5 +32,5 @@
py_modules=['birdseed'],
- install_requires=['twitter>=2.2'],
+ install_requires=['twitter>=1.17.1'],
) |
596613c964311104098e64eeb349216bc7cd0023 | saleor/demo/views.py | saleor/demo/views.py | from django.conf import settings
from django.shortcuts import render
from ..graphql.views import API_PATH, GraphQLView
EXAMPLE_QUERY = """# Welcome to Saleor GraphQL API!
#
# Type queries into this side of the screen, and you will see
# intelligent typeaheads aware of the current GraphQL type schema
# and live syntax... | from django.conf import settings
from django.shortcuts import render
from ..graphql.views import GraphQLView
EXAMPLE_QUERY = """# Welcome to Saleor GraphQL API!
#
# Type queries into this side of the screen, and you will see
# intelligent typeaheads aware of the current GraphQL type schema
# and live syntax and valid... | Fix playground CSP for demo if deployed under proxied domain | Fix playground CSP for demo if deployed under proxied domain
| Python | bsd-3-clause | mociepka/saleor,mociepka/saleor,mociepka/saleor | ---
+++
@@ -1,7 +1,7 @@
from django.conf import settings
from django.shortcuts import render
-from ..graphql.views import API_PATH, GraphQLView
+from ..graphql.views import GraphQLView
EXAMPLE_QUERY = """# Welcome to Saleor GraphQL API!
#
@@ -29,8 +29,9 @@
class DemoGraphQLView(GraphQLView):
def rende... |
53594f372a45e425076e5dbf36f399503df1972c | salt/output/yaml_out.py | salt/output/yaml_out.py | '''
YAML Outputter
'''
# Third Party libs
import yaml
def __virtual__():
return 'yaml'
def output(data):
'''
Print out YAML
'''
return yaml.dump(data)
| '''
Output data in YAML, this outputter defaults to printing in YAML block mode
for better readability.
'''
# Third Party libs
import yaml
def __virtual__():
return 'yaml'
def output(data):
'''
Print out YAML using the block mode
'''
return yaml.dump(data, default_flow_style=False)
| Change the YAML outputter to use block mode and add some docs | Change the YAML outputter to use block mode and add some docs
| Python | apache-2.0 | saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt | ---
+++
@@ -1,5 +1,6 @@
'''
-YAML Outputter
+Output data in YAML, this outputter defaults to printing in YAML block mode
+for better readability.
'''
# Third Party libs
@@ -12,6 +13,6 @@
def output(data):
'''
- Print out YAML
+ Print out YAML using the block mode
'''
- return yaml.dump(data... |
f55fa23cb0abbee4db3add7d6bc9d45b79dc9c6f | setup.py | setup.py | import subprocess
import sys
from distutils.core import setup, Command
class TestCommand(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
errno = subprocess.call([sys.executable, 'test_facebook.py'])
raise... | import subprocess
import sys
from distutils.core import setup, Command
class TestCommand(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
errno = subprocess.call([sys.executable, 'test_facebook.py'])
raise... | Bump up version for incorporating UTF-8 encoding. | Bump up version for incorporating UTF-8 encoding.
| Python | mit | GallopLabs/facebook-ads-api,taenyon/facebook-ads-api,narrowcast/facebook-ads-api | ---
+++
@@ -18,7 +18,7 @@
setup(
name='facebook-ads-api',
- version='0.1.37',
+ version='0.1.38',
author='Chee-Hyung Yoon',
author_email='yoonchee@gmail.com',
py_modules=['facebook', ], |
8486f7522236e5fad50ca774cc855cc2247a1a41 | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
readme = open('README.rst').read()
requirements = [
"Jinja2",
"taskcluster>=0.0.24",
"arrow",
"requests>=2.4.3,<=2.7.0",
"PyYAML",
"chunkify",
"tre... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
readme = open('README.rst').read()
requirements = [
"Jinja2",
"taskcluster>=0.0.24",
"arrow",
"requests>=2.4.3,<=2.7.0",
"PyYAML",
"chunkify",
"tre... | Update treeherder-client dependency from * to >=2.0.1 | Update treeherder-client dependency from * to >=2.0.1
To ensure deprecated versions of TreeherderClient aren't being used if
the virtualenv is reused.
Notably 2.0.1 includes an API URL fix that will prevent 404s once
non-canonical URLs are disabled in bug 1234233.
| Python | mpl-2.0 | rail/releasetasks,mozilla/releasetasks,bhearsum/releasetasks | ---
+++
@@ -16,7 +16,7 @@
"requests>=2.4.3,<=2.7.0",
"PyYAML",
"chunkify",
- "treeherder-client",
+ "treeherder-client>=2.0.1",
"PGPy",
"buildtools",
"python-jose", |
48b6ed861afdf5c9fa4c415e5b65783882e4fe4e | setup.py | setup.py | """ Setup script for PyPI """
from setuptools import setup
from yayson import VERSION
setup(
name='yayson',
version=VERSION,
license='Apache License, Version 2.0',
description='Get colorized and indented JSON in the terminal',
author='Sebastian Dahlgren',
author_email='sebastian.dahlgren@gmail... | """ Setup script for PyPI """
from setuptools import setup
from yayson import VERSION
setup(
name='yayson',
version=VERSION,
license='Apache License, Version 2.0',
description='Get colorized and indented JSON in the terminal',
author='Sebastian Dahlgren',
author_email='sebastian.dahlgren@gmail... | Install lib package and script | Install lib package and script
| Python | apache-2.0 | sebdah/yayson | ---
+++
@@ -13,8 +13,9 @@
url='http://sebdah.github.com/yayson/',
keywords="color colorized json indented beautiful pretty",
platforms=['Any'],
- package_dir={'yayson': '.'},
scripts=['yayson.py'],
+ package_dir={'': '.'},
+ packages=['.'],
include_package_data=True,
zip_safe=Fa... |
12f4f47d0f9a4a24d37e16fb1afc0841399ccadf | setup.py | setup.py | # Use the newer `setuptools.setup()`, if available.
try:
from setuptools import setup
kw = {
'test_suite': 'tests',
'tests_require': ['astunparse'],
}
except ImportError:
from distutils.core import setup
kw = {}
setup(name='gast', # gast, daou naer!
version='0.2.0',
pac... | # Use the newer `setuptools.setup()`, if available.
try:
from setuptools import setup
kw = {
'test_suite': 'tests',
'tests_require': ['astunparse'],
}
except ImportError:
from distutils.core import setup
kw = {}
setup(name='gast', # gast, daou naer!
version='0.2.0',
pac... | Add python_requires to help pip, and Trove classifiers | Add python_requires to help pip, and Trove classifiers
| Python | bsd-3-clause | serge-sans-paille/gast | ---
+++
@@ -27,6 +27,12 @@
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Programming Language :: Python :: 2',
- 'Programming Language :: Python :: 3'],
+ 'Programming Language :: Python :: 2.7'... |
05705581fabae7e4ca0716fd9a5c422bec776ced | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup
setup(name='bcp',
version='0.1.7',
long_description=open('README.md').read(),
url='https://github.com/adlibre/django-bcp',
packages=['bcp',],
install_requires=['django','reportlab',],
package_data={ 'bcp': ['fonts/*', 'templates/*',] },
)
| #!/usr/bin/env python
from setuptools import setup
setup(name='django-bcp',
version='0.1.8',
long_description=open('README.md').read(),
url='https://github.com/adlibre/django-bcp',
packages=['bcp',],
install_requires=['django','reportlab',],
package_data={ 'bcp': ['fonts/*', 'templates/*',] },... | Change name from bcp to django-bcp | Change name from bcp to django-bcp | Python | bsd-3-clause | adlibre/django-bcp,adlibre/django-bcp | ---
+++
@@ -2,8 +2,8 @@
from setuptools import setup
-setup(name='bcp',
- version='0.1.7',
+setup(name='django-bcp',
+ version='0.1.8',
long_description=open('README.md').read(),
url='https://github.com/adlibre/django-bcp',
packages=['bcp',], |
eb5bcf3130f5fdc0d6be68e7e81555def46a53af | setup.py | setup.py | from distutils.core import setup
setup(
name = 'mstranslator',
packages = ['mstranslator'],
version = '0.0.1',
description = 'Python wrapper to consume Microsoft translator API',
author = 'Ayush Goel',
author_email = 'ayushgoel111@gmail.com',
url = 'https://github.com/ayushgoel/mstranslator... | from distutils.core import setup
setup(
name = 'mstranslator-2016',
packages = ['mstranslator'],
version = '0.0.1',
description = 'Python wrapper to consume Microsoft translator API',
author = 'Ayush Goel',
author_email = 'ayushgoel111@gmail.com',
url = 'https://github.com/ayushgoel/mstrans... | Update nemae and download URL | Update nemae and download URL
| Python | mit | ayushgoel/mstranslator | ---
+++
@@ -1,14 +1,14 @@
from distutils.core import setup
setup(
- name = 'mstranslator',
+ name = 'mstranslator-2016',
packages = ['mstranslator'],
version = '0.0.1',
description = 'Python wrapper to consume Microsoft translator API',
author = 'Ayush Goel',
author_email = 'ayushgo... |
f2b737506b7ea435c850273d077247e57606de2a | setup.py | setup.py | from setuptools import setup
setup(
name='icapservice',
version='0.1.0',
description='ICAP service library for Python',
author='Giles Brown',
author_email='giles_brown@hotmail.com',
url='https://github.com/gilesbrown/icapservice',
license='MIT',
packages=['icapservice'],
zip_safe=F... | from setuptools import setup
setup(
name='icapservice',
version='0.1.0',
description='ICAP service library for Python',
author='Giles Brown',
author_email='giles_brown@hotmail.com',
url='https://github.com/gilesbrown/icapservice',
license='MIT',
packages=['icapservice'],
zip_safe=F... | Remove py3 for the moment | Remove py3 for the moment
| Python | mit | gilesbrown/python-icapservice,gilesbrown/python-icapservice | ---
+++
@@ -21,8 +21,8 @@
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
- 'Programming Language :: Python :: 3',
- 'Programming Language :: Python :: 3.4',
- 'Programming Language :: Python :: 3.5',
... |
ed6e0608f7ca66bb6127626103f83e60b87a1141 | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup
version = "0.3"
setup(
name="dj-cmd",
version=version,
description="`dj cmd` is a Django shortcut command.",
license="BSD",
author="Filip Wasilewski",
author_email="en@ig.ma",
url="https://github.com/nigma/dj-cm... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup
version = "0.4"
setup(
name="dj-cmd",
version=version,
description="`dj cmd` is a Django shortcut command.",
license="BSD",
author="Filip Wasilewski",
author_email="en@ig.ma",
url="https://github.com/nigma/dj-cmd... | Increase package version to 0.4 and update meta | Increase package version to 0.4 and update meta
| Python | bsd-3-clause | nigma/dj-cmd | ---
+++
@@ -3,8 +3,7 @@
from setuptools import setup
-
-version = "0.3"
+version = "0.4"
setup(
name="dj-cmd",
@@ -24,7 +23,7 @@
package_dir={"dj_cmd": "src"},
include_package_data=True,
classifiers=(
- "Development Status :: 4 - Beta",
+ "Development Status :: 5 - Production... |
679f3db2c4e26f50002c1e71199436f0de8e9984 | setup.py | setup.py | #!/usr/bin/env python
import os
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name="rouver",
version="0.99.0",
description="A microframework",
long_description=read("README.rst"),
author="Sebastian Rittau",
autho... | #!/usr/bin/env python
import os
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name="rouver",
version="0.99.0",
description="A microframework",
long_description=read("README.rst"),
author="Sebastian Rittau",
autho... | Update development status to beta | Update development status to beta
| Python | mit | srittau/rouver | ---
+++
@@ -19,19 +19,17 @@
url="https://github.com/srittau/rouver",
packages=["rouver", "rouver_test"],
package_data={"rouver": ["py.typed"]},
- install_requires=[
- "dectest >= 1.0.0, < 2",
- "werkzeug >= 0.12.0",
- ],
+ install_requires=["dectest >= 1.0.0, < 2", "werkzeug >= 0... |
616e5d3e90648c9528b79accf03b52f238b37fb8 | setup.py | setup.py | from setuptools import setup, find_packages
setup(
name="virgil-sdk",
version="5.0.0",
packages=find_packages(),
install_requires=[
'virgil-crypto',
],
author="Virgil Security",
author_email="support@virgilsecurity.com",
url="https://virgilsecurity.com/",
classifiers=[
... | from setuptools import setup, find_packages
setup(
name="virgil-sdk",
version="5.0.0",
packages=find_packages(),
install_requires=[
'virgil-crypto',
],
author="Virgil Security",
author_email="support@virgilsecurity.com",
url="https://virgilsecurity.com/",
classifiers=[
... | Add wider description for wheel and egg packages | Add wider description for wheel and egg packages
| Python | bsd-3-clause | VirgilSecurity/virgil-sdk-python | ---
+++
@@ -21,6 +21,10 @@
"Topic :: Security :: Cryptography",
],
license="BSD",
- description="Virgil keys service SDK",
+ description="""
+ Virgil Security provides a set of APIs for adding security to any application. In a few simple steps you can encrypt communication, securely st... |
95d92a4443dac5490f304e61e21a2d556cedc12e | setup.py | setup.py | # Copyright 2017 Verily Life Sciences Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | # Copyright 2017 Verily Life Sciences Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | Add typing as a dependency. | Add typing as a dependency.
Change-Id: I5da9534f1e3d79fc38ce39771ac8d21459b16c59
| Python | apache-2.0 | verilylifesciences/analysis-py-utils,verilylifesciences/analysis-py-utils | ---
+++
@@ -19,7 +19,8 @@
REQUIRED_PACKAGES = ['pandas',
'google-cloud==0.27.0',
'pysqlite>=2.8.3',
- 'ddt']
+ 'ddt',
+ 'typing']
setup(
name='analysis-py-utils', |
e7e2aa5d25f5c1d3c271948c98b6ef970e77c0b4 | setup.py | setup.py | from setuptools import setup, find_packages
def readme():
with open('README.md') as f:
return f.read()
setup(
name='Kozinaki',
description='OpenStack multi-cloud driver for AWS, Azure',
url='https://github.com/compunova/kozinaki.git',
author='Compunova',
author_email='kozinaki@compu-n... | from setuptools import setup, find_packages
def readme():
with open('README.md') as f:
return f.read()
setup(
name='Kozinaki',
description='OpenStack multi-cloud driver for AWS, Azure',
url='https://github.com/compunova/kozinaki.git',
author='Compunova',
author_email='kozinaki@compu-n... | Add subnet arg to AWS driver; remove unused code from main driver | Add subnet arg to AWS driver; remove unused code from main driver
| Python | apache-2.0 | compunova/kozinaki | ---
+++
@@ -11,7 +11,7 @@
url='https://github.com/compunova/kozinaki.git',
author='Compunova',
author_email='kozinaki@compu-nova.com',
- version='0.1.3',
+ version='0.1.4',
long_description=readme(),
packages=find_packages(),
install_requires=[ |
ccbe4a1c48765fdd9e785392dff949bcc49192a2 | setup.py | setup.py | from distutils.core import setup
setup(
name='Zinc',
version='0.1.7',
author='John Wang',
author_email='john@zinc.io',
packages=['zinc'],
package_dir={'zinc': ''},
package_data={'zinc': ['examples/*.py', 'examples/*.json', 'README', 'zinc/*']},
include_package_data=True,
url='https:... | from distutils.core import setup
setup(
name='Zinc',
version='0.1.8',
author='John Wang',
author_email='john@zinc.io',
packages=['zinc'],
package_dir={'zinc': ''},
package_data={'zinc': ['examples/*.py', 'examples/*.json', 'zinc/*']},
include_package_data=True,
url='https://github.c... | Remove readme from package data. | Remove readme from package data.
| Python | mit | wangjohn/zinc_cli | ---
+++
@@ -2,12 +2,12 @@
setup(
name='Zinc',
- version='0.1.7',
+ version='0.1.8',
author='John Wang',
author_email='john@zinc.io',
packages=['zinc'],
package_dir={'zinc': ''},
- package_data={'zinc': ['examples/*.py', 'examples/*.json', 'README', 'zinc/*']},
+ package_data={'... |
ca6481a35f50a89a7eaef2a2c5748d8716577d1b | setup.py | setup.py | from setuptools import setup
setup(
name='scuevals-api',
packages=['scuevals_api'],
include_package_data=True,
test_suite='tests',
entry_points={
'console_scripts': [
'app=scuevals_api.cmd:cli'
]
},
install_requires=[
'alembic==0.9.7'
'beautifulso... | from setuptools import setup
setup(
name='scuevals-api',
packages=['scuevals_api'],
include_package_data=True,
test_suite='tests',
entry_points={
'console_scripts': [
'app=scuevals_api.cmd:cli'
]
},
install_requires=[
'alembic==0.9.7',
'beautifuls... | Fix missing comma in requirements | Fix missing comma in requirements
| Python | agpl-3.0 | SCUEvals/scuevals-api,SCUEvals/scuevals-api | ---
+++
@@ -11,7 +11,7 @@
]
},
install_requires=[
- 'alembic==0.9.7'
+ 'alembic==0.9.7',
'beautifulsoup4==4.6.0',
'blinker==1.4',
'coveralls==1.2.0', |
f932ed13536fae9b5ad2b4082342cd48033b268d | setup.py | setup.py | from setuptools import setup
import urlfetch
import re
import os
import sys
setup(
name="urlfetch",
version=urlfetch.__version__,
author=re.sub(r'\s+<.*', r'', urlfetch.__author__),
author_email=re.sub(r'(^.*<)|(>.*$)', r'', urlfetch.__author__),
url=urlfetch.__url__,
description="An easy to us... | from setuptools import setup
import urlfetch
import re
import os
import sys
setup(
name="urlfetch",
version=urlfetch.__version__,
author=re.sub(r'\s+<.*', r'', urlfetch.__author__),
author_email=re.sub(r'(^.*<)|(>.*$)', r'', urlfetch.__author__),
url=urlfetch.__url__,
description="An easy to us... | Add classifiers of Python 3.6 3.7 | Add classifiers of Python 3.6 3.7
| Python | bsd-2-clause | ifduyue/urlfetch | ---
+++
@@ -27,6 +27,8 @@
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
+ 'Programming Language :: Python :: 3.6',
+ 'Programming Language :: Python :: 3.7',
'Intended Audience :: Developers'... |
ed0e8654e73ee7c58e680ae9c44dac59ec98e839 | setup.py | setup.py | from setuptools import setup
from distutils.core import Command
import os
import sys
class TestCommand(Command):
description = "Run tests"
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
import subprocess
errno... | from setuptools import setup
from distutils.core import Command
import os
import sys
import codecs
class TestCommand(Command):
description = "Run tests"
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
import subprocess... | Load readme with utf-8 codecs | Load readme with utf-8 codecs
| Python | mit | cychiang/mafan,hermanschaaf/mafan | ---
+++
@@ -2,6 +2,7 @@
from distutils.core import Command
import os
import sys
+import codecs
class TestCommand(Command):
@@ -34,7 +35,7 @@
url='https://github.com/hermanschaaf/mafan',
license='LICENSE.txt',
description='A toolbox for working with the Chinese language in Python',
- long_des... |
2c03fec9a1afb22e2075fa537615d3802fef7ec6 | setup.py | setup.py | #!/usr/bin/env python3
import sys
from distutils.core import setup
setup(
name='pathlib',
version=open('VERSION.txt').read().strip(),
py_modules=['pathlib'],
license='MIT License',
description='Object-oriented filesystem paths',
long_description=open('README.txt').read(),
author='Antoine P... | #!/usr/bin/env python3
import sys
from distutils.core import setup
setup(
name='pathlib',
version=open('VERSION.txt').read().strip(),
py_modules=['pathlib'],
license='MIT License',
description='Object-oriented filesystem paths',
long_description=open('README.txt').read(),
author='Antoine P... | Add classifier for Python 3.3 | Add classifier for Python 3.3
| Python | mit | mcmtroffaes/pathlib2,saddingtonbaynes/pathlib2 | ---
+++
@@ -20,6 +20,7 @@
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.2',
+ 'Programming Language :: Python :: 3.3',
'Topic :: Software Development :: Libraries',
'Topic :: System :: Filesystem... |
df7ac0bb9540d6df1f770e0509085b3aeacad8af | setup.py | setup.py | from setuptools import setup, find_packages
version = '0.2.0'
setup(
name='scoville',
version=version,
description="A tool for attributing MVT tile size.",
long_description=open('README.md').read(),
classifiers=[
# strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers
... | from setuptools import setup, find_packages
version = '0.2.0'
setup(
name='scoville',
version=version,
description="A tool for attributing MVT tile size.",
long_description=open('README.md').read(),
classifiers=[
# strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers
... | Add msgpack, dependency used in parallel code. Remove PIL, since it's not pip-installable? | Add msgpack, dependency used in parallel code. Remove PIL, since it's not pip-installable?
| Python | mit | tilezen/scoville,tilezen/scoville,tilezen/scoville | ---
+++
@@ -30,10 +30,10 @@
zip_safe=False,
install_requires=[
'click',
- 'PIL',
'requests',
'requests_futures',
'squarify',
+ 'msgpack',
],
entry_points=dict(
console_scripts=[ |
1e98fd8b7645d5407730e70b07fb4422d4df3e3a | setup.py | setup.py | #!/usr/bin/env python
# # coding: utf-8
from setuptools import setup, find_packages
long_description = open('README.md').read()
setup(
name='captainhook',
description='A collection of git commit hooks',
version='0.8.3',
long_description=long_description,
author='Alex Couper',
author_email='info... | #!/usr/bin/env python
# # coding: utf-8
from setuptools import setup, find_packages
long_description = open('README.rst').read()
setup(
name='captainhook',
description='A collection of git commit hooks',
version='0.8.3',
long_description=long_description,
author='Alex Couper',
author_email='inf... | Update readme location following rename. | Update readme location following rename.
| Python | bsd-3-clause | pczerkas/captainhook,alexcouper/captainhook,Friz-zy/captainhook | ---
+++
@@ -1,7 +1,7 @@
#!/usr/bin/env python
# # coding: utf-8
from setuptools import setup, find_packages
-long_description = open('README.md').read()
+long_description = open('README.rst').read()
setup(
name='captainhook', |
2c4e64cb12efd82d24f4e451527118527bba1433 | setup.py | setup.py | from setuptools import setup, find_packages
import os
import subprocess
os.system("pip install git+https://github.com/ComparativeGenomicsToolkit/sonLib@toil")
versionFile = "src/cactus/shared/version.py"
if os.path.exists(versionFile):
os.remove(versionFile)
git_commit = subprocess.check_output('git log --pretty=... | from setuptools import setup, find_packages
import os
import subprocess
os.system("pip install git+https://github.com/ComparativeGenomicsToolkit/sonLib@toil")
versionFile = "src/cactus/shared/version.py"
if os.path.exists(versionFile):
os.remove(versionFile)
git_commit = subprocess.check_output(['git', 'rev-parse... | Fix Docker image tag inconsistency after merge commits | Fix Docker image tag inconsistency after merge commits
The image pushed is always given by `git rev-parse HEAD`, but the tag
for the image requested from Docker was retrieved from git log. Merge
commits were ignored by the latter. Now the tag is set to `git
rev-parse HEAD` both on push and retrieve.
| Python | mit | benedictpaten/cactus,benedictpaten/cactus,benedictpaten/cactus,benedictpaten/cactus,benedictpaten/cactus | ---
+++
@@ -7,7 +7,7 @@
versionFile = "src/cactus/shared/version.py"
if os.path.exists(versionFile):
os.remove(versionFile)
-git_commit = subprocess.check_output('git log --pretty=oneline -n 1 -- $(pwd)', shell=True).split()[0]
+git_commit = subprocess.check_output(['git', 'rev-parse', 'HEAD']).strip()
with o... |
99bdc393d44a8fe9f73efcae141f1a0627a24f17 | setup.py | setup.py | import os
from setuptools import setup, find_packages
packages = find_packages()
packages.remove('sample_project')
classifiers = """
Topic :: Internet :: WWW/HTTP :: Dynamic Content
Intended Audience :: Developers
License :: OSI Approved :: BSD License
Programming Language :: Python
Topic :: Software Development :: L... | import os
from setuptools import setup, find_packages
packages = find_packages(exclude=['sample_project'])
classifiers = """
Topic :: Internet :: WWW/HTTP :: Dynamic Content
Intended Audience :: Developers
License :: OSI Approved :: BSD License
Programming Language :: Python
Topic :: Software Development :: Libraries... | Fix exclude of sample_project for installation. | Fix exclude of sample_project for installation.
| Python | bsd-3-clause | caktus/django-pagelets,caktus/django-pagelets,caktus/django-pagelets,caktus/django-pagelets | ---
+++
@@ -1,8 +1,7 @@
import os
from setuptools import setup, find_packages
-packages = find_packages()
-packages.remove('sample_project')
+packages = find_packages(exclude=['sample_project'])
classifiers = """
Topic :: Internet :: WWW/HTTP :: Dynamic Content
@@ -11,6 +10,7 @@
Programming Language :: Pytho... |
715a94a75de365458e86bfe243674e7abe227d1d | setup.py | setup.py | # -*- coding: utf-8 -*-
from __future__ import with_statement
from setuptools import setup
from urwid_stackedwidget import __version__
def readme():
try:
f = open('README.rst')
content = f.read()
f.close()
return content
except Exception:
pass
setup(
name='urwid-st... | # -*- coding: utf-8 -*-
from __future__ import with_statement
from setuptools import setup
from urwid_stackedwidget import __version__
def readme():
with open('README.rst') as f:
return f.read()
setup(
name='urwid-stackedwidget',
version=__version__,
license='MIT',
author='Sumin Byeon',
... | Use a 'with' statement instead of manual resource management strategy | Use a 'with' statement instead of manual resource management strategy
| Python | mit | suminb/urwid-stackedwidget | ---
+++
@@ -5,13 +5,9 @@
def readme():
- try:
- f = open('README.rst')
- content = f.read()
- f.close()
- return content
- except Exception:
- pass
+ with open('README.rst') as f:
+ return f.read()
+
setup(
name='urwid-stackedwidget', |
949c8b8dc18d0732e6ada3a98cdf1a61028887dc | stagecraft/apps/datasets/admin/backdrop_user.py | stagecraft/apps/datasets/admin/backdrop_user.py | from __future__ import unicode_literals
from django.contrib import admin
from django.db import models
import reversion
from stagecraft.apps.datasets.models.backdrop_user import BackdropUser
from stagecraft.apps.datasets.models.data_set import DataSet
class DataSetInline(admin.StackedInline):
model = DataSet
f... | from __future__ import unicode_literals
from django.contrib import admin
from django.db import models
import reversion
from stagecraft.apps.datasets.models.backdrop_user import BackdropUser
from stagecraft.apps.datasets.models.data_set import DataSet
class DataSetInline(admin.StackedInline):
model = DataSet
f... | Remove data_sets from backdrop user search. Fixes | Remove data_sets from backdrop user search. Fixes
| Python | mit | alphagov/stagecraft,alphagov/stagecraft,alphagov/stagecraft,alphagov/stagecraft | ---
+++
@@ -13,7 +13,7 @@
class BackdropUserAdmin(reversion.VersionAdmin):
- search_fields = ['email', 'data_sets']
+ search_fields = ['email']
list_display = ('email', 'numer_of_datasets_user_has_access_to',)
list_per_page = 30
|
d1ec576c7df5c1214574242b5a674c6057140dc2 | setup.py | setup.py | # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
install_requires = (
'cnx-epub',
'cnx-query-grammar',
'colander',
'openstax-accounts>=0.5',
'PasteDeploy',
'pyramid',
'psycopg2>=2.5',
'requests',
'tzlocal',
'waitress',
... | # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
install_requires = (
'cnx-epub',
'cnx-query-grammar',
'colander',
'openstax-accounts>=0.6',
'PasteDeploy',
'pyramid',
'psycopg2>=2.5',
'requests',
'tzlocal',
'waitress',
... | Use the latest version of openstax-accounts | Use the latest version of openstax-accounts
| Python | agpl-3.0 | Connexions/cnx-authoring | ---
+++
@@ -5,7 +5,7 @@
'cnx-epub',
'cnx-query-grammar',
'colander',
- 'openstax-accounts>=0.5',
+ 'openstax-accounts>=0.6',
'PasteDeploy',
'pyramid',
'psycopg2>=2.5', |
7e88739d91cd7db35ffb36804ae59d1878eb2da3 | setup.py | setup.py | import os
from distutils.core import setup
requirements = map(str.strip, open('requirements.txt').readlines())
setup(
name='py_eventsocket',
version='0.1.4',
author="Aaron Westendorf",
author_email="aaron@agoragames.com",
packages = ['eventsocket'],
url='https://github.com/agoragames/py-events... | import os
from distutils.core import setup
requirements = map(str.strip, open('requirements.txt').readlines())
setup(
name='py_eventsocket',
version='0.1.4',
author="Aaron Westendorf",
author_email="aaron@agoragames.com",
url='https://github.com/agoragames/py-eventsocket',
license='LICENSE.txt... | Use py_modules and not packages | Use py_modules and not packages
| Python | bsd-3-clause | agoragames/py-eventsocket | ---
+++
@@ -8,9 +8,9 @@
version='0.1.4',
author="Aaron Westendorf",
author_email="aaron@agoragames.com",
- packages = ['eventsocket'],
url='https://github.com/agoragames/py-eventsocket',
license='LICENSE.txt',
+ py_modules = ['eventsocket'],
description='Easy to use TCP socket base... |
1d75498d43a30b6d62727fb2872bf66466471dd8 | setup.py | setup.py | from setuptools import setup, find_packages
setup(name='git-auto-deploy',
version='0.9',
url='https://github.com/olipo186/Git-Auto-Deploy',
author='Oliver Poignant',
author_email='oliver@poignant.se',
packages = find_packages(),
package_data={'gitautodeploy': ['data/*', 'wwwroot/*']... | from setuptools import setup, find_packages
import os
import sys
def package_files(package_path, directory_name):
paths = []
directory_path = os.path.join(package_path, directory_name)
for (path, directories, filenames) in os.walk(directory_path):
relative_path = os.path.relpath(path, package_path... | Include generated static content in package manifest | Include generated static content in package manifest
| Python | mit | evoja/docker-Github-Gitlab-Auto-Deploy,evoja/docker-Github-Gitlab-Auto-Deploy | ---
+++
@@ -1,12 +1,33 @@
from setuptools import setup, find_packages
+import os
+import sys
+
+def package_files(package_path, directory_name):
+ paths = []
+ directory_path = os.path.join(package_path, directory_name)
+
+ for (path, directories, filenames) in os.walk(directory_path):
+ relative_pat... |
5a06f5a4dd179c55f750886d4b509e5be6274340 | setup.py | setup.py | from setuptools import setup, find_packages
version = '0.3.1'
install_requires = (
'FeinCMS>=1.9,<1.11',
)
setup(
name='feincms-extensions',
packages=find_packages(),
package_data = {'feincms_extensions': ['templates/*']},
version=version,
description='',
long_description='',
author... | from setuptools import setup, find_packages
version = '0.3.1'
install_requires = (
'FeinCMS>=1.9,<1.11',
)
setup(
name='feincms-extensions',
packages=find_packages(),
package_data = {'': ['templates/*.html']},
version=version,
description='',
long_description='',
author='Incuna',
... | Remove package name to package_data | Remove package name to package_data
| Python | bsd-2-clause | incuna/feincms-extensions,incuna/feincms-extensions | ---
+++
@@ -11,7 +11,7 @@
setup(
name='feincms-extensions',
packages=find_packages(),
- package_data = {'feincms_extensions': ['templates/*']},
+ package_data = {'': ['templates/*.html']},
version=version,
description='',
long_description='', |
d494ce31a0bc69ab00bde0e88d7ad5a6e9bcc567 | setup.py | setup.py | import os
from setuptools import setup
README = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read()
# LICENSE = open(os.path.join(os.path.dirname(__file__), 'LICENSE.txt')).read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
se... | import os
from setuptools import setup
README = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read()
# LICENSE = open(os.path.join(os.path.dirname(__file__), 'LICENSE.txt')).read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
se... | Tag version 0.1, ready for upload to PyPI. | Tag version 0.1, ready for upload to PyPI.
| Python | mit | zmbq/djqgrid,zmbq/djqgrid | ---
+++
@@ -9,7 +9,7 @@
setup(
name='djqgrid',
- version='0.0.2',
+ version='0.1',
packages=['djqgrid', 'djqgrid.templatetags'],
include_package_data=True,
license='MIT license', |
1a56ffc61d0b19315d95920ef96c997d6165824c | setup.py | setup.py | """Setuptools configuration for rpmvenv."""
from setuptools import setup
from setuptools import find_packages
with open('README.rst', 'r') as readmefile:
README = readmefile.read()
setup(
name='rpmvenv',
version='0.13.0',
url='https://github.com/kevinconway/rpmvenv',
description='RPM packager f... | """Setuptools configuration for rpmvenv."""
from setuptools import setup
from setuptools import find_packages
with open('README.rst', 'r') as readmefile:
README = readmefile.read()
setup(
name='rpmvenv',
version='0.13.1',
url='https://github.com/kevinconway/rpmvenv',
description='RPM packager f... | BUmp patch to include new README fix | BUmp patch to include new README fix
The previous README version was incorrect. Bumping the version to
correct the display on PyPi.
| Python | mit | kevinconway/rpmvenv | ---
+++
@@ -10,7 +10,7 @@
setup(
name='rpmvenv',
- version='0.13.0',
+ version='0.13.1',
url='https://github.com/kevinconway/rpmvenv',
description='RPM packager for Python virtualenv.',
author="Kevin Conway", |
1beb650fac60b0521fa2dcab46775c6ec483b088 | setup.py | setup.py | #!/usr/bin/env python3
import os
import setuptools
def find_files(path):
return [os.path.join(path, f) for f in os.listdir(path)]
setuptools.setup(
name='workspace-tools',
version='3.0.10',
author='Max Zheng',
author_email='maxzheng.os @t gmail.com',
description='Convenience wrapper for git/tox to ... | #!/usr/bin/env python3
import os
import setuptools
def find_files(path):
return [os.path.join(path, f) for f in os.listdir(path)]
setuptools.setup(
name='workspace-tools',
version='3.0.10',
author='Max Zheng',
author_email='maxzheng.os@gmail.com',
description='Convenience wrapper for git/tox to sim... | Use proper email format for author | Use proper email format for author
| Python | mit | maxzheng/workspace-tools | ---
+++
@@ -13,7 +13,7 @@
version='3.0.10',
author='Max Zheng',
- author_email='maxzheng.os @t gmail.com',
+ author_email='maxzheng.os@gmail.com',
description='Convenience wrapper for git/tox to simplify local development',
long_description=open('README.rst').read(), |
e06d5f7625917189db3c330d859b85d842450f9b | setup.py | setup.py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
from distutils.core import setup
import gygax
setup(
name="gygax",
version=gygax.__version__,
description="A minimalistic IRC bot",
long_description=open("README").read(),
author="Tiit Pikma",
author_email="1042524+thsnr@u... | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
from distutils.core import setup
import gygax
setup(
name="gygax",
version=gygax.__version__,
description="A minimalistic IRC bot",
long_description=open("README").read(),
author="Tiit Pikma",
author_email="1042524+thsnr@u... | Revert "Move beautifulsoup4 from requires to install_requires" | Revert "Move beautifulsoup4 from requires to install_requires"
This reverts commit cb5ddc006489920eb43e5b0815c8ff75f74b1107.
install_requires is not supported by distutils and would need setuptools
instead. Perhaps move to setuptools in the future, but revert for now.
| Python | mit | thsnr/gygax | ---
+++
@@ -23,5 +23,5 @@
"Programming Language :: Python :: 3.7",
"Topic :: Communications :: Chat :: Internet Relay Chat",
],
- install_requires=['beautifulsoup4'],
+ requires=['beautifulsoup4'],
) |
55b9a048f5dd3018c336a0e367c97ab1367ed440 | setup.py | setup.py | from setuptools import setup
setup(
name='DCA',
version='0.2.3',
description='Count autoencoder for scRNA-seq denoising',
author='Gokcen Eraslan',
author_email="gokcen.eraslan@gmail.com",
packages=['dca'],
install_requires=['numpy>=1.7',
'keras>=2.0.8',
... | from setuptools import setup
setup(
name='DCA',
version='0.2.3',
description='Count autoencoder for scRNA-seq denoising',
author='Gokcen Eraslan',
author_email="gokcen.eraslan@gmail.com",
packages=['dca'],
install_requires=['numpy>=1.7',
'keras>=2.0.8',
... | Add tf to the requirements | Add tf to the requirements
| Python | apache-2.0 | theislab/dca,theislab/dca,theislab/dca | ---
+++
@@ -9,6 +9,7 @@
packages=['dca'],
install_requires=['numpy>=1.7',
'keras>=2.0.8',
+ 'tensorflow>=2.0',
'h5py',
'six>=1.10.0',
'scikit-learn', |
e5a056deffa31ef107a085fdf01ac89de50c1390 | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup
setup(name='xml_models2',
version='0.7.0',
description='XML backed models queried from external REST apis',
author='Geoff Ford and Chris Tarttelin and Cam McHugh',
author_email='g_ford@hotmail.ccom',
url='http://github.com/alephnullplex/... | #!/usr/bin/env python
from setuptools import setup
try:
import pypandoc
long_description = pypandoc.convert('README.md', 'rst')
except(IOError, ImportError):
long_description = open('README.md').read()
setup(
name='xml_models2',
version='0.7.0',
description='XML backed models queried from ex... | Convert MD to reST for pypi | Convert MD to reST for pypi
| Python | bsd-2-clause | iamwucheng/xml_models2,alephnullplex/xml_models2 | ---
+++
@@ -2,14 +2,23 @@
from setuptools import setup
-setup(name='xml_models2',
- version='0.7.0',
- description='XML backed models queried from external REST apis',
- author='Geoff Ford and Chris Tarttelin and Cam McHugh',
- author_email='g_ford@hotmail.ccom',
- url='http://github.com... |
ecee22357ce26ba6a592855ccd6792ac61278923 | setup.py | setup.py | from setuptools import setup, find_packages
version = '0.8.1'
setup(name='django-cas',
version=version,
description="Django Cas Client",
long_description=open("./README.md", "r").read(),
classifiers=[
"Development Status :: Development",
"Environment :: Console",
... | from setuptools import setup, find_packages
version = '0.8.1'
setup(name='django-cas',
version=version,
description="Django Cas Client",
long_description=open("./README.md", "r").read(),
classifiers=[
"Development Status :: Development",
"Environment :: Console",
... | Modify license to match original django-cas. | Modify license to match original django-cas. | Python | mit | divio/django-cas,byuhbll/django-cas,jrouly/django-cas,kstateome/django-cas | ---
+++
@@ -21,7 +21,7 @@
author='Derek Stegelman, Garrett Pennington',
author_email='derekst@k-state.edu, garrett@k-state.edu',
url='http://github.com/kstateome/django-cas/',
- license='Public',
+ license='MIT',
packages=find_packages(),
include_package_data=True,
... |
f0a4e2f302a58f4f16b4d48572e99a124724f267 | setup.py | setup.py | from setuptools import setup
setup(
name='twisted-hl7',
version='0.0.2dev',
author='John Paulett',
author_email = 'john@paulett.org',
url = 'http://twisted-hl7.readthedocs.org',
license = 'BSD',
platforms = ['POSIX', 'Windows'],
keywords = ['HL7', 'Health Level 7', 'healthcare', 'health... | from setuptools import setup
setup(
name='twisted-hl7',
version='0.0.2',
author='John Paulett',
author_email = 'john@paulett.org',
url = 'http://twisted-hl7.readthedocs.org',
license = 'BSD',
platforms = ['POSIX', 'Windows'],
keywords = ['HL7', 'Health Level 7', 'healthcare', 'health ca... | Increment version for 0.0.2 release. | Increment version for 0.0.2 release.
| Python | bsd-3-clause | johnpaulett/txHL7 | ---
+++
@@ -2,7 +2,7 @@
setup(
name='twisted-hl7',
- version='0.0.2dev',
+ version='0.0.2',
author='John Paulett',
author_email = 'john@paulett.org',
url = 'http://twisted-hl7.readthedocs.org', |
514614c68ced19e364e484e4dbec044e3fb03e24 | setup.py | setup.py | from setuptools import setup, find_packages
from taggit import VERSION
f = open('README.txt')
readme = f.read()
f.close()
setup(
name='django-taggit',
version=".".join(VERSION),
description='django-taggit is a reusable Django application for simple tagging.',
long_description=readme,
author='Alex... | import os
from setuptools import setup, find_packages
from taggit import VERSION
f = open(os.path.join(os.path.dirname(__file__), 'README.txt'))
readme = f.read()
f.close()
setup(
name='django-taggit',
version=".".join(VERSION),
description='django-taggit is a reusable Django application for simple tagg... | Update on suggestion of jezdez. | Update on suggestion of jezdez.
| Python | bsd-3-clause | twig/django-taggit,kminkov/django-taggit,orbitvu/django-taggit,cimani/django-taggit,tamarmot/django-taggit,laanlabs/django-taggit,kaedroho/django-taggit,theatlantic/django-taggit,vhf/django-taggit,izquierdo/django-taggit,theatlantic/django-taggit2,doselect/django-taggit,adrian-sgn/django-taggit,nealtodd/django-taggit,d... | ---
+++
@@ -1,8 +1,10 @@
+import os
from setuptools import setup, find_packages
from taggit import VERSION
-f = open('README.txt')
+
+f = open(os.path.join(os.path.dirname(__file__), 'README.txt'))
readme = f.read()
f.close()
|
f37f972c3ded0671beed16c9e0c6ee2a5e764f5f | setup.py | setup.py | #!/usr/bin/env python
import sys, os
try:
from setuptools import setup, find_packages
except ImportError:
from distutils.core import setup
# Hack to prevent "TypeError: 'NoneType' object is not callable" error
# in multiprocessing/util.py _exit_function when setup.py exits
# (see http://www.eby-sarna.com/pi... | #!/usr/bin/env python
import sys, os
try:
from setuptools import setup, find_packages
except ImportError:
from distutils.core import setup
# Hack to prevent "TypeError: 'NoneType' object is not callable" error
# in multiprocessing/util.py _exit_function when setup.py exits
# (see http://www.eby-sarna.com/pi... | Exclude tests package from distribution | Exclude tests package from distribution
| Python | bsd-3-clause | gasman/Willow,gasman/Willow,torchbox/Willow,torchbox/Willow | ---
+++
@@ -25,7 +25,7 @@
author='Karl Hobley',
author_email='karlhobley10@gmail.com',
url='',
- packages=find_packages(),
+ packages=find_packages(exclude=['tests']),
include_package_data=True,
license='BSD',
classifiers=[ |
7392be8ef40049dfd1bdeb623ded649f978bfaf1 | setup.py | setup.py | #!/usr/bin/env python
import os
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name="statprof-smarkets",
version="0.2.0c1",
author="Smarkets",
author_email="support@smarkets.com",
description="Statistical profiling for... | #!/usr/bin/env python
import os
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name="statprof-smarkets",
version="0.2.0c1",
author="Smarkets",
author_email="support@smarkets.com",
description="Statistical profiling for... | Mark package as not zip_safe | Mark package as not zip_safe
| Python | lgpl-2.1 | smarkets/statprof | ---
+++
@@ -30,4 +30,5 @@
install_requires=[
'six>=1.5.0',
],
+ zip_safe=False,
) |
c0b9c9712e464f304bee7c63bfd6b197a1c5fb0f | cmsplugin_bootstrap_carousel/cms_plugins.py | cmsplugin_bootstrap_carousel/cms_plugins.py | # coding: utf-8
import re
from cms.plugin_base import CMSPluginBase
from cms.plugin_pool import plugin_pool
from cmsplugin_bootstrap_carousel.models import *
from django.utils.translation import ugettext as _
from django.contrib import admin
from django.forms import ModelForm, ValidationError
class CarouselForm(ModelF... | # coding: utf-8
import re
from cms.plugin_base import CMSPluginBase
from cms.plugin_pool import plugin_pool
from cmsplugin_bootstrap_carousel.models import *
from django.utils.translation import ugettext as _
from django.contrib import admin
from django.forms import ModelForm, ValidationError
class CarouselForm(ModelF... | Change extra from 3 to 0. | Change extra from 3 to 0.
| Python | bsd-3-clause | 360youlun/cmsplugin-bootstrap-carousel,360youlun/cmsplugin-bootstrap-carousel | ---
+++
@@ -20,6 +20,7 @@
class CarouselItemInline(admin.StackedInline):
model = CarouselItem
+ extra = 0
class CarouselPlugin(CMSPluginBase): |
554e79ada3f351ecb6287b08d0f7d1c4e5a5b5f6 | setup.py | setup.py | #!/usr/bin/env python
import sys
from distutils.core import setup
setup_args = {}
setup_args.update(dict(
name='param',
version='0.05',
description='Declarative Python programming using Parameters.',
long_description=open('README.txt').read(),
author= "IOAM",
author_email= "developers@topogr... | #!/usr/bin/env python
import sys
from distutils.core import setup
setup_args = {}
setup_args.update(dict(
name='param',
version='1.0',
description='Declarative Python programming using Parameters.',
long_description=open('README.txt').read(),
author= "IOAM",
author_email= "developers@topogra... | Update version number to 1.0. | Update version number to 1.0.
| Python | bsd-3-clause | ceball/param,ioam/param | ---
+++
@@ -8,7 +8,7 @@
setup_args.update(dict(
name='param',
- version='0.05',
+ version='1.0',
description='Declarative Python programming using Parameters.',
long_description=open('README.txt').read(),
author= "IOAM",
@@ -21,8 +21,7 @@
packages = ["param"],
classifiers = [
... |
704622600c9a91799b52bbdc703da007e82c7200 | scripts/renderScenes.py | scripts/renderScenes.py | # Render the scenes and create the final movie.
# The scene are ordered: the final one is to compose the final output.
for scene bpy.data.scenes:
print("RENDERING SCENE: %s" % scene.name)
bpy.ops.render.render(animation=True, scene=scene.name)
| # Render the scenes and create the final movie.
# The scene are ordered: the final one is to compose the final output.
for scene in bpy.data.scenes:
print("RENDERING SCENE: %s" % scene.name)
bpy.ops.render.render(animation=True, scene=scene.name)
| Fix a typo in rendering script. | Fix a typo in rendering script.
| Python | artistic-2.0 | associazionepoltronieri/blender-ap | ---
+++
@@ -1,6 +1,6 @@
# Render the scenes and create the final movie.
# The scene are ordered: the final one is to compose the final output.
-for scene bpy.data.scenes:
+for scene in bpy.data.scenes:
print("RENDERING SCENE: %s" % scene.name)
bpy.ops.render.render(animation=True, scene=scene.name) |
a0ab52fddc682e207667a927fc717ac23cecab52 | setup.py | setup.py | from setuptools import setup, find_packages
__version__ = '0.2.0'
__pkg_name__ = 'textsift'
setup(
name = __pkg_name__,
version = __version__,
description = 'Text modelling framework',
author='Andrew Chisholm',
packages = find_packages(),
license = 'MIT',
url = 'https://github.com/wikilink... | from setuptools import setup, find_packages
__version__ = '0.2.1'
__pkg_name__ = 'textsift'
setup(
name = __pkg_name__,
version = __version__,
description = 'Text modelling framework',
author='Andrew Chisholm',
packages = find_packages(),
license = 'MIT',
url = 'https://github.com/wikilink... | Remove all sift cli script command from package | Remove all sift cli script command from package
| Python | mit | wikilinks/sift,wikilinks/sift | ---
+++
@@ -1,6 +1,6 @@
from setuptools import setup, find_packages
-__version__ = '0.2.0'
+__version__ = '0.2.1'
__pkg_name__ = 'textsift'
setup(
@@ -12,7 +12,6 @@
license = 'MIT',
url = 'https://github.com/wikilinks/sift',
scripts = [
- 'scripts/sift',
'scripts/download-wikiped... |
81b6a138c476084f9ddd6063f31d3efd0ba6e2cf | start.py | start.py | # -*- coding: utf-8 -*-
import argparse
import logging
import os
import sys
from twisted.internet import reactor
from desertbot.config import Config, ConfigError
from desertbot.factory import DesertBotFactory
if __name__ == '__main__':
parser = argparse.ArgumentParser(description='An IRC bot written in Python.'... | # -*- coding: utf-8 -*-
import argparse
import logging
import os
import sys
from twisted.internet import reactor
from desertbot.config import Config, ConfigError
from desertbot.factory import DesertBotFactory
if __name__ == '__main__':
parser = argparse.ArgumentParser(description='An IRC bot written in Python.'... | Make the logging level configurable | Make the logging level configurable
| Python | mit | DesertBot/DesertBot | ---
+++
@@ -15,6 +15,9 @@
parser.add_argument('-c', '--config',
help='the config file to read from',
type=str, required=True)
+ parser.add_argument('-l', '--loglevel',
+ help='the logging level (default INFO)',
+ t... |
23341ce8a8ff44996c9b502ffe0524f5a1f69946 | test/interactive/test_exporter.py | test/interactive/test_exporter.py | # :coding: utf-8
# :copyright: Copyright (c) 2013 Martin Pengelly-Phillips
# :license: See LICENSE.txt.
import os
import sys
import time
from PySide import QtGui
from segue import discover_processors
from segue.backend.host.base import Host
from segue.frontend.exporter import ExporterWidget
class MockHost(Host):
... | # :coding: utf-8
# :copyright: Copyright (c) 2013 Martin Pengelly-Phillips
# :license: See LICENSE.txt.
import os
import sys
import time
from PySide import QtGui
from segue import discover_processors
from segue.backend.host.base import Host
from segue.frontend.exporter import ExporterWidget
class MockHost(Host):
... | Update mock host to match new interface. | Update mock host to match new interface.
| Python | apache-2.0 | 4degrees/segue | ---
+++
@@ -25,7 +25,12 @@
'''Return current frame range.'''
return (1.0, 24.0)
- def save(self):
+ def save(self, target=None):
+ '''Save scene.'''
+ pass
+
+ def save_package(self, selection=None, source=None, target=None,
+ start=None, stop=Non... |
f13fc280f25996ec7f4924647fdc879779f51737 | project/tools/normalize.py | project/tools/normalize.py | #!/usr/bin/env python
# mdstrip.py: makes new notebook from old, stripping md out
"""A tool to copy cell_type=("code") into a new file
without grabbing headers/markdown (most importantly the md)
NOTE: may want to grab the headers after all, or define new ones?"""
import os
import IPython.nbformat.current as nbf
from... | #!/usr/bin/env python
# mdstrip.py: makes new notebook from old, stripping md out
"""A tool to copy cell_type=("code") into a new file
without grabbing headers/markdown (most importantly the md)
NOTE: may want to grab the headers after all, or define new ones?"""
import os
import IPython.nbformat.current as nbf
from... | Allow two command arguments for in and out files, or none for standard filter operations | Allow two command arguments for in and out files, or none for standard filter operations
| Python | mit | holdenweb/nbtools,holdenweb/nbtools | ---
+++
@@ -33,8 +33,12 @@
if len(sys.argv) == 3:
infile = open(sys.argv[1])
outfile = open(sys.argv[2],"w")
+ elif len(sys.argv) != 1:
+ sys.exit("normalize: two arguments or none, please")
else:
infile = sys.stdin
outfile = sys.stdout
-
- normalize(nbf.... |
9cfc213de2181f2ce15292e227a81e0aa1f3216f | runtests.py | runtests.py | """
Standalone test runner for wardrounds plugin
"""
import sys
from opal.core import application
class Application(application.OpalApplication):
pass
from django.conf import settings
settings.configure(DEBUG=True,
DATABASES={
'default': {
'ENG... | """
Standalone test runner for wardrounds plugin
"""
import sys
from opal.core import application
class Application(application.OpalApplication):
pass
from django.conf import settings
settings.configure(DEBUG=True,
DATABASES={
'default': {
'ENG... | Fix test runner to cope with django compressor | Fix test runner to cope with django compressor
| Python | agpl-3.0 | openhealthcare/opal-referral,openhealthcare/opal-referral,openhealthcare/opal-referral,openhealthcare/opal-referral | ---
+++
@@ -18,11 +18,17 @@
OPAL_OPTIONS_MODULE = 'referral.tests.dummy_options_module',
ROOT_URLCONF='referral.urls',
STATIC_URL='/assets/',
+ STATIC_ROOT='static',
+ STATICFILES_FINDERS = (
+ 'djang... |
f27b9730ad2e38cd0a8010e7882d9e475e4a3e08 | packages/gstreamer.py | packages/gstreamer.py | GstreamerXzPackage (project = 'gstreamer', name = 'gstreamer', version = '1.4.5', configure_flags = [
'--disable-gtk-doc',
'--prefix="%{prefix}'
])
| GstreamerXzPackage (project = 'gstreamer', name = 'gstreamer', version = '1.4.5', configure_flags = [
'--disable-gtk-doc',
'--prefix=%{prefix}'
])
| Fix GStreamer packages use of prefix | Fix GStreamer packages use of prefix
| Python | mit | BansheeMediaPlayer/bockbuild,BansheeMediaPlayer/bockbuild,BansheeMediaPlayer/bockbuild | ---
+++
@@ -1,4 +1,4 @@
GstreamerXzPackage (project = 'gstreamer', name = 'gstreamer', version = '1.4.5', configure_flags = [
'--disable-gtk-doc',
- '--prefix="%{prefix}'
+ '--prefix=%{prefix}'
]) |
7e98a76ac455a8c69950104766719cde313bbb74 | tests/CrawlerProcess/asyncio_deferred_signal.py | tests/CrawlerProcess/asyncio_deferred_signal.py | import asyncio
import sys
import scrapy
from scrapy.crawler import CrawlerProcess
from twisted.internet.defer import Deferred
class UppercasePipeline:
async def _open_spider(self, spider):
spider.logger.info("async pipeline opened!")
await asyncio.sleep(0.1)
def open_spider(self, spider):
... | import asyncio
import sys
from scrapy import Spider
from scrapy.crawler import CrawlerProcess
from scrapy.utils.defer import deferred_from_coro
from twisted.internet.defer import Deferred
class UppercasePipeline:
async def _open_spider(self, spider):
spider.logger.info("async pipeline opened!")
a... | Use deferred_from_coro in asyncio test | Use deferred_from_coro in asyncio test
| Python | bsd-3-clause | elacuesta/scrapy,elacuesta/scrapy,scrapy/scrapy,pablohoffman/scrapy,dangra/scrapy,pawelmhm/scrapy,pablohoffman/scrapy,dangra/scrapy,scrapy/scrapy,pawelmhm/scrapy,dangra/scrapy,pawelmhm/scrapy,pablohoffman/scrapy,elacuesta/scrapy,scrapy/scrapy | ---
+++
@@ -1,9 +1,9 @@
import asyncio
import sys
-import scrapy
-
+from scrapy import Spider
from scrapy.crawler import CrawlerProcess
+from scrapy.utils.defer import deferred_from_coro
from twisted.internet.defer import Deferred
@@ -14,13 +14,13 @@
def open_spider(self, spider):
loop = asy... |
7119930b662a20d9e9bbca230f8a6485efcb7c44 | flask_appconfig/middleware.py | flask_appconfig/middleware.py | # from: http://flask.pocoo.org/snippets/35/
# written by Peter Hansen
class ReverseProxied(object):
'''Wrap the application in this middleware and configure the
front-end server to add these headers, to let you quietly bind
this to a URL other than / and to an HTTP scheme that is
different than what i... | # from: http://flask.pocoo.org/snippets/35/
# written by Peter Hansen
class ReverseProxied(object):
'''Wrap the application in this middleware and configure the
front-end server to add these headers, to let you quietly bind
this to a URL other than / and to an HTTP scheme that is
different than what i... | Add __getattr__ passthrough on ReverseProxied. | Add __getattr__ passthrough on ReverseProxied.
| Python | mit | mbr/flask-appconfig | ---
+++
@@ -35,3 +35,7 @@
if scheme:
environ['wsgi.url_scheme'] = scheme
return self.app(environ, start_response)
+
+ # pass through other attributes, like .run() when using werkzeug
+ def __getattr__(self, key):
+ return getattr(self.app, key) |
a144706bc53f439b7c45b31eb9e6ca5241e3b1a3 | scripts/check_process.py | scripts/check_process.py | #!/usr/bin/env python
'''Checks processes'''
#===============================================================================
# Import modules
#===============================================================================
# Standard Library
import os
import subprocess
import logging
# Third party modules
# App... | #!/usr/bin/env python
'''Checks processes'''
#===============================================================================
# Import modules
#===============================================================================
# Standard Library
import os
import subprocess
import logging
# Third party modules
# App... | Downgrade script already running to info | Downgrade script already running to info
| Python | mit | ninjawil/weather-station,ninjawil/weather-station,ninjawil/weather-station,ninjawil/weather-station,ninjawil/weather-station,ninjawil/weather-station,ninjawil/weather-station | ---
+++
@@ -44,8 +44,8 @@
other_script_found = cmd5.communicate()[0]
if other_script_found:
- logger.error('Script already runnning. Exiting...')
- logger.error(other_script_found)
+ logger.info('Script already runnning. Exiting...')
+ logger.info(other_... |
580c8c8866a2647faa1b7a360f8403eb1ff34b57 | thezombies/templatetags/brains.py | thezombies/templatetags/brains.py | from django import template
from django.template.defaultfilters import stringfilter, yesno
from django.http.response import REASON_PHRASES
register = template.Library()
@register.filter
@stringfilter
def truthy(value, arg=None):
"""Wraps django's yesno filter to allow for JavaScript-style true or false string val... | from django import template
from django.template.defaultfilters import stringfilter, yesno
from django.http.response import REASON_PHRASES
register = template.Library()
@register.filter
@stringfilter
def truthy(value, arg=None):
"""Wraps django's yesno filter to allow for JavaScript-style true or false string val... | Make the httpreason template tag return empty string on *any* exception. | Make the httpreason template tag return empty string on *any* exception.
| Python | bsd-3-clause | sunlightlabs/thezombies,sunlightlabs/thezombies,sunlightlabs/thezombies,sunlightlabs/thezombies | ---
+++
@@ -22,7 +22,7 @@
Optional True/False argument allows you to return a string with code number *and* phrase. Defaults to False"""
try:
value_int = int(value)
- except TypeError:
+ except Exception:
return ''
phrase = REASON_PHRASES.get(value_int, 'UNKNOWN STATUS CODE')... |
ba32a22cc0cb41c4548c658a7195fab56dab6dbf | atlas/prodtask/tasks.py | atlas/prodtask/tasks.py | from __future__ import absolute_import, unicode_literals
from atlas.celerybackend.celery import app
from atlas.prestage.views import find_action_to_execute, submit_all_tapes_processed
from atlas.prodtask.hashtag import hashtag_request_to_tasks
from atlas.prodtask.mcevgen import sync_cvmfs_db
from atlas.prodtask.open_e... | from __future__ import absolute_import, unicode_literals
from atlas.celerybackend.celery import app
from atlas.prestage.views import find_action_to_execute, submit_all_tapes_processed, delete_done_staging_rules
from atlas.prodtask.hashtag import hashtag_request_to_tasks
from atlas.prodtask.mcevgen import sync_cvmfs_db... | Add remove done staged rules | Add remove done staged rules
| Python | apache-2.0 | PanDAWMS/panda-bigmon-atlas,PanDAWMS/panda-bigmon-atlas,PanDAWMS/panda-bigmon-atlas,PanDAWMS/panda-bigmon-atlas | ---
+++
@@ -1,7 +1,7 @@
from __future__ import absolute_import, unicode_literals
from atlas.celerybackend.celery import app
-from atlas.prestage.views import find_action_to_execute, submit_all_tapes_processed
+from atlas.prestage.views import find_action_to_execute, submit_all_tapes_processed, delete_done_staging... |
582c7183cab87b449acee5775deb12677a0b0cee | oslo_i18n/_i18n.py | oslo_i18n/_i18n.py | # Copyright 2012 Red Hat, Inc.
# Copyright 2013 IBM Corp.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.... | # Copyright 2012 Red Hat, Inc.
# Copyright 2013 IBM Corp.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.... | Correct the translation domain for loading messages | Correct the translation domain for loading messages
Change-Id: If7fa8fd1915378bda3fc6e361049c2d90cdec8af
| Python | apache-2.0 | varunarya10/oslo.i18n,openstack/oslo.i18n | ---
+++
@@ -19,7 +19,7 @@
from oslo_i18n import _factory
# Create the global translation functions.
-_translators = _factory.TranslatorFactory('oslo_i18n')
+_translators = _factory.TranslatorFactory('oslo.i18n')
# The primary translation function using the well-known name "_"
_ = _translators.primary |
eede55d9cd39c68ef03091614096e51d7df01336 | test_scraper.py | test_scraper.py | from scraper import search_CL
from scraper import read_search_results
from scraper import parse_source
from scraper import extract_listings
import bs4
def test_search_CL():
test_body, test_encoding = search_CL(minAsk=100, maxAsk=100)
assert "<span class=\"desktop\">craigslist</span>" in test_body
assert t... | from scraper import search_CL
from scraper import read_search_results
from scraper import parse_source
from scraper import extract_listings
import bs4
def test_search_CL():
test_body, test_encoding = search_CL(minAsk=100, maxAsk=100)
assert "<span class=\"desktop\">craigslist</span>" in test_body
assert t... | Modify test_extract_listings() to account for the change in output from extract_listings() | Modify test_extract_listings() to account for the change in output from extract_listings()
| Python | mit | jefrailey/basic-scraper | ---
+++
@@ -26,6 +26,7 @@
def test_extract_listings():
test_body, test_encoding = read_search_results()
test_parse = parse_source(test_body, test_encoding)
- for row in extract_listings(test_parse):
- print type(row)
- assert isinstance(row, bs4.element.Tag)
+ test_data = extract_listin... |
b823233978f70d8e34a3653b309ee43b4b1e0c0d | fuel/transformers/defaults.py | fuel/transformers/defaults.py | """Commonly-used default transformers."""
from fuel.transformers import ScaleAndShift, Cast, SourcewiseTransformer
from fuel.transformers.image import ImagesFromBytes
def uint8_pixels_to_floatX(which_sources):
return (
(ScaleAndShift, [1 / 255.0, 0], {'which_sources': which_sources}),
(Cast, ['flo... | """Commonly-used default transformers."""
from fuel.transformers import ScaleAndShift, Cast, SourcewiseTransformer
from fuel.transformers.image import ImagesFromBytes
def uint8_pixels_to_floatX(which_sources):
return (
(ScaleAndShift, [1 / 255.0, 0], {'which_sources': which_sources}),
(Cast, ['flo... | Handle None axis_labels in ToBytes. | Handle None axis_labels in ToBytes.
| Python | mit | udibr/fuel,markusnagel/fuel,vdumoulin/fuel,mila-udem/fuel,dmitriy-serdyuk/fuel,udibr/fuel,markusnagel/fuel,aalmah/fuel,vdumoulin/fuel,aalmah/fuel,capybaralet/fuel,janchorowski/fuel,mila-udem/fuel,dribnet/fuel,capybaralet/fuel,dmitriy-serdyuk/fuel,janchorowski/fuel,dribnet/fuel | ---
+++
@@ -20,7 +20,9 @@
"""
def __init__(self, stream, **kwargs):
kwargs.setdefault('produces_examples', stream.produces_examples)
- axis_labels = stream.axis_labels
+ axis_labels = (stream.axis_labels
+ if stream.axis_labels is not None
+ ... |
65010bed4885223be3ed424b4189de368d28080f | sites/shared_conf.py | sites/shared_conf.py | from datetime import datetime
import alabaster
# Alabaster theme + mini-extension
html_theme_path = [alabaster.get_path()]
extensions = ['alabaster']
# Paths relative to invoking conf.py - not this shared file
html_static_path = ['../_shared_static']
html_theme = 'alabaster'
html_theme_options = {
'description':... | from os.path import join
from datetime import datetime
import alabaster
# Alabaster theme + mini-extension
html_theme_path = [alabaster.get_path()]
extensions = ['alabaster']
# Paths relative to invoking conf.py - not this shared file
html_static_path = [join('..', '_shared_static')]
html_theme = 'alabaster'
html_th... | Make shared static path OS-agnostic | Make shared static path OS-agnostic
| Python | bsd-2-clause | haridsv/fabric,cgvarela/fabric,ploxiln/fabric,tekapo/fabric,bitmonk/fabric,kmonsoor/fabric,amaniak/fabric,sdelements/fabric,likesxuqiang/fabric,TarasRudnyk/fabric,mathiasertl/fabric,tolbkni/fabric,pgroudas/fabric,SamuelMarks/fabric,jaraco/fabric,rbramwell/fabric,bspink/fabric,raimon49/fabric,kxxoling/fabric,qinrong/fab... | ---
+++
@@ -1,3 +1,4 @@
+from os.path import join
from datetime import datetime
import alabaster
@@ -7,7 +8,7 @@
html_theme_path = [alabaster.get_path()]
extensions = ['alabaster']
# Paths relative to invoking conf.py - not this shared file
-html_static_path = ['../_shared_static']
+html_static_path = [join('.... |
beeae2daf35da275d5f9e1ad01516c917319bf00 | gapipy/resources/geo/state.py | gapipy/resources/geo/state.py | from __future__ import unicode_literals
from ..base import Resource
from ...utils import enforce_string_type
class State(Resource):
_resource_name = 'states'
_as_is_fields = ['id', 'href', 'name']
_resource_fields = [('country', 'Country')]
@enforce_string_type
def __repr__(self):
retu... | from __future__ import unicode_literals
from ..base import Resource
from ...utils import enforce_string_type
class State(Resource):
_resource_name = 'states'
_as_is_fields = ['id', 'href', 'name']
_resource_fields = [
('country', 'Country'),
('place', 'Place'),
]
@enforce_strin... | Add Place reference to State model | Add Place reference to State model
| Python | mit | gadventures/gapipy | ---
+++
@@ -9,7 +9,10 @@
_resource_name = 'states'
_as_is_fields = ['id', 'href', 'name']
- _resource_fields = [('country', 'Country')]
+ _resource_fields = [
+ ('country', 'Country'),
+ ('place', 'Place'),
+ ]
@enforce_string_type
def __repr__(self): |
d2fc123454bdf0089043ef3926798f3f79904c60 | Lib/test/test_openpty.py | Lib/test/test_openpty.py | # Test to see if openpty works. (But don't worry if it isn't available.)
import os, unittest
from test.test_support import run_unittest, TestSkipped
class OpenptyTest(unittest.TestCase):
def test(self):
try:
master, slave = os.openpty()
except AttributeError:
raise TestSkip... | # Test to see if openpty works. (But don't worry if it isn't available.)
import os, unittest
from test.test_support import run_unittest, TestSkipped
if not hasattr(os, "openpty"):
raise TestSkipped, "No openpty() available."
class OpenptyTest(unittest.TestCase):
def test(self):
master, slave = os.op... | Move the check for openpty to the beginning. | Move the check for openpty to the beginning.
| Python | mit | sk-/python2.7-type-annotator,sk-/python2.7-type-annotator,sk-/python2.7-type-annotator | ---
+++
@@ -3,13 +3,13 @@
import os, unittest
from test.test_support import run_unittest, TestSkipped
+if not hasattr(os, "openpty"):
+ raise TestSkipped, "No openpty() available."
+
+
class OpenptyTest(unittest.TestCase):
def test(self):
- try:
- master, slave = os.openpty()
- e... |
cedac36d38ff0bf70abc1c9193948a288e858a01 | kitsune/lib/pipeline_compilers.py | kitsune/lib/pipeline_compilers.py | import re
from django.conf import settings
from django.utils.encoding import smart_bytes
from pipeline.compilers import CompilerBase
from pipeline.exceptions import CompilerError
class BrowserifyCompiler(CompilerBase):
output_extension = 'browserified.js'
def match_file(self, path):
# Allow for cac... | import re
from django.conf import settings
from django.utils.encoding import smart_bytes
from pipeline.compilers import CompilerBase
from pipeline.exceptions import CompilerError
class BrowserifyCompiler(CompilerBase):
output_extension = 'browserified.js'
def match_file(self, path):
# Allow for cac... | Update BrowserifyCompiler for n Pipeline settings. | Update BrowserifyCompiler for n Pipeline settings.
| Python | bsd-3-clause | mythmon/kitsune,MikkCZ/kitsune,brittanystoroz/kitsune,anushbmx/kitsune,MikkCZ/kitsune,anushbmx/kitsune,safwanrahman/kitsune,brittanystoroz/kitsune,MikkCZ/kitsune,mozilla/kitsune,safwanrahman/kitsune,mythmon/kitsune,anushbmx/kitsune,mythmon/kitsune,safwanrahman/kitsune,mozilla/kitsune,brittanystoroz/kitsune,mythmon/kits... | ---
+++
@@ -15,9 +15,10 @@
return re.search(r'\.browserify(\.[a-fA-F0-9]+)?\.js$', path) is not None
def compile_file(self, infile, outfile, outdated=False, force=False):
+ pipeline_settings = getattr(settings, 'PIPELINE', {})
command = "%s %s %s > %s" % (
- getattr(settings... |
c1f8d5817b8c94b422c0d454dcc0fa3c00e751b6 | activelink/tests/urls.py | activelink/tests/urls.py | from django import VERSION as DJANGO_VERSION
from django.http import HttpResponse
if DJANGO_VERSION >= (1, 6):
from django.conf.urls import patterns, url
else:
from django.conf.urls.defaults import patterns, url
urlpatterns = patterns('',
url(r'^test-url/$', lambda r: HttpResponse('ok'), name='test'),
... | from django import VERSION as DJANGO_VERSION
from django.http import HttpResponse
if DJANGO_VERSION >= (1, 10):
from django.conf.urls import url
elif DJANGO_VERSION >= (1, 6):
from django.conf.urls import patterns, url
else:
from django.conf.urls.defaults import patterns, url
urlpatterns = [
url(r'^... | Add support for Django 1.11 | Add support for Django 1.11
| Python | unlicense | j4mie/django-activelink | ---
+++
@@ -1,14 +1,20 @@
from django import VERSION as DJANGO_VERSION
from django.http import HttpResponse
-if DJANGO_VERSION >= (1, 6):
+
+if DJANGO_VERSION >= (1, 10):
+ from django.conf.urls import url
+elif DJANGO_VERSION >= (1, 6):
from django.conf.urls import patterns, url
else:
from django.c... |
097bdd97d8106d0d4fdb073be80792047f52b15a | tests/test_error_handling.py | tests/test_error_handling.py | import unittest
from flask import Flask
from flask_selfdoc import Autodoc
class TestErrorHandling(unittest.TestCase):
def test_app_not_initialized(self):
app = Flask(__name__)
autodoc = Autodoc()
with app.app_context():
self.assertRaises(RuntimeError, lambda: autodoc.html())
... | import unittest
from flask import Flask
from flask_selfdoc import Autodoc
class TestErrorHandling(unittest.TestCase):
def test_app_not_initialized(self):
app = Flask(__name__)
autodoc = Autodoc()
with app.app_context():
self.assertRaises(RuntimeError, lambda: autodoc.html())
... | Add a test that JSON fails the same way. | Add a test that JSON fails the same way.
| Python | mit | jwg4/flask-autodoc,jwg4/flask-autodoc | ---
+++
@@ -11,6 +11,12 @@
with app.app_context():
self.assertRaises(RuntimeError, lambda: autodoc.html())
+ def test_app_not_initialized_json(self):
+ app = Flask(__name__)
+ autodoc = Autodoc()
+ with app.app_context():
+ self.assertRaises(RuntimeError, lam... |
4b34f2afa13ef880b9832bc725c5f1b6ede4dc0e | back_office/models.py | back_office/models.py | from django.db import models
from django.utils.translation import ugettext as _
from Django.contrib.auth.models import User
FEMALE = 'F'
MALE = 'M'
class Teacher(models.Model):
"""
halaqat teachers informations
"""
GENDET_CHOICES = (
(MALE, _('Male')),
(FEMALE, _('Female')),
)
... | from django.db import models
from django.utils.translation import ugettext as _
from Django.contrib.auth.models import User
FEMALE = 'F'
MALE = 'M'
class Teacher(models.Model):
"""
halaqat teachers informations
"""
GENDET_CHOICES = (
(MALE, _('Male')),
(FEMALE, _('Female')),
)
... | Remove name field and use the User name fields | Remove name field and use the User name fields
| Python | mit | EmadMokhtar/halaqat,EmadMokhtar/halaqat,EmadMokhtar/halaqat | ---
+++
@@ -14,7 +14,6 @@
(MALE, _('Male')),
(FEMALE, _('Female')),
)
- name = models.CharField(max_length=100, verbose_name=_('Name'))
gender = models.CharField(max_length=1, verbose_name=_('Gender'),
choices=GENDET_CHOICES)
civil_id = models.CharFie... |
c2ca03ba94349340447a316ff21bcb26631e308f | lms/djangoapps/discussion/settings/common.py | lms/djangoapps/discussion/settings/common.py | """Common environment variables unique to the discussion plugin."""
def plugin_settings(settings):
"""Settings for the discussions plugin. """
settings.FEATURES['ALLOW_HIDING_DISCUSSION_TAB'] = False
settings.DISCUSSION_SETTINGS = {
'MAX_COMMENT_DEPTH': 2,
'COURSE_PUBLISH_TASK_DELAY': 30,
... | """Common environment variables unique to the discussion plugin."""
def plugin_settings(settings):
"""Settings for the discussions plugin. """
# .. toggle_name: ALLOW_HIDING_DISCUSSION_TAB
# .. toggle_implementation: DjangoSetting
# .. toggle_default: False
# .. toggle_description: If True, it add... | Add annotation for ALLOW_HIDING_DISCUSSION_TAB feature flag | Add annotation for ALLOW_HIDING_DISCUSSION_TAB feature flag
| Python | agpl-3.0 | EDUlib/edx-platform,eduNEXT/edx-platform,EDUlib/edx-platform,eduNEXT/edunext-platform,edx/edx-platform,eduNEXT/edx-platform,angelapper/edx-platform,eduNEXT/edx-platform,eduNEXT/edx-platform,arbrandes/edx-platform,arbrandes/edx-platform,eduNEXT/edunext-platform,EDUlib/edx-platform,edx/edx-platform,angelapper/edx-platfor... | ---
+++
@@ -3,6 +3,15 @@
def plugin_settings(settings):
"""Settings for the discussions plugin. """
+ # .. toggle_name: ALLOW_HIDING_DISCUSSION_TAB
+ # .. toggle_implementation: DjangoSetting
+ # .. toggle_default: False
+ # .. toggle_description: If True, it adds an option to show/hide the discus... |
90ca340883077f57ba63127db058a8d244ec6f4c | molecule/ui/tests/conftest.py | molecule/ui/tests/conftest.py | import pytest
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions
import time
from webdriver_manager.chrome import ChromeDri... | import pytest
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions
import time
from webdriver_manager.chrome import ChromeDri... | Switch UI tests back to google chrome. | Switch UI tests back to google chrome.
| Python | apache-2.0 | Graylog2/graylog-ansible-role | ---
+++
@@ -6,7 +6,6 @@
from selenium.webdriver.support import expected_conditions
import time
from webdriver_manager.chrome import ChromeDriverManager
-from webdriver_manager.utils import ChromeType
@pytest.fixture(scope="session")
def chromedriver():
@@ -17,7 +16,7 @@
options.add_argument('--disable... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.