commit
stringlengths
40
40
old_file
stringlengths
4
118
new_file
stringlengths
4
118
old_contents
stringlengths
1
2.94k
new_contents
stringlengths
1
4.43k
subject
stringlengths
15
444
message
stringlengths
16
3.45k
lang
stringclasses
1 value
license
stringclasses
13 values
repos
stringlengths
5
43.2k
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 that allows images to be viewed or edited. """ lookup_fields = ("id", "uuid") http_method_names = ['get', 'put', 'patch', 'head', 'options', 'trace'] filter_fields = ('created_by__username', 'tags__name', 'projects__id') permission_classes = (permissions.InMaintenance, permissions.ApiAuthOptional, permissions.CanEditOrReadOnly, permissions.ApplicationMemberOrReadOnly) serializer_class = ImageSerializer search_fields = ('id', 'name', 'versions__change_log', 'tags__name', 'tags__description', 'created_by__username') def get_queryset(self): request_user = self.request.user return Image.current_apps(request_user)
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 that allows images to be viewed or edited. """ lookup_fields = ("id", "uuid") http_method_names = ['get', 'put', 'patch', 'head', 'options', 'trace'] filter_fields = ('created_by__username', 'tags__name', 'projects__id') permission_classes = (permissions.InMaintenance, permissions.ApiAuthOptional, permissions.CanEditOrReadOnly, permissions.ApplicationMemberOrReadOnly) serializer_class = ImageSerializer search_fields = ('id', 'name', 'versions__change_log', 'tags__name', 'tags__description', 'created_by__username', 'versions__machines__instance_source__provider__location') def get_queryset(self): request_user = self.request.user return Image.current_apps(request_user)
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
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 you can't try out settings tweaks in settings.py and run tests # against them). from .settings_dev import * # Don't use whitenoise for tests. Including whitenoise causes it to rescan static during each test, which greatly # increases test time. MIDDLEWARE.remove('whitenoise.middleware.WhiteNoiseMiddleware')
# 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 you can't try out settings tweaks in settings.py and run tests # against them). from .settings_dev import * # Don't use whitenoise for tests. Including whitenoise causes it to rescan static during each test, which greatly # increases test time. MIDDLEWARE.remove('whitenoise.middleware.WhiteNoiseMiddleware') CAPAPI_API_KEY = '12345'
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
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_provider(): return PreprintProviderFactory(name='Test 1') @pytest.fixture() def preprint(preprint_provider): return PreprintFactory._build(PreprintService, provider=preprint_provider) pytestmark = pytest.mark.django_db class TestPreprintCount: def test_get_preprint_count(self, preprint_provider, preprint): requests.post = mock.MagicMock() resp = requests.Response() resp._content = '{"hits" : {"total" : 1}}' requests.post.return_value = resp field = PreprintService._meta.get_field('date_created') field.auto_now_add = False # We have to fudge the time because Keen doesn't allow same day queries. date = datetime.datetime.utcnow() - datetime.timedelta(1) preprint.date_created = date - datetime.timedelta(0.1) preprint.save() field.auto_now_add = True results = PreprintSummary().get_events(date.date()) assert_equal(len(results), 1) data = results[0] assert_equal(data['provider']['name'], 'Test 1') assert_equal(data['provider']['total'], 1)
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_provider(): return PreprintProviderFactory(name='Test 1') @pytest.fixture() def preprint(preprint_provider): return PreprintFactory._build(PreprintService, provider=preprint_provider) pytestmark = pytest.mark.django_db class TestPreprintCount: def test_get_preprint_count(self, preprint): requests.post = mock.MagicMock() resp = requests.Response() resp._content = '{"hits" : {"total" : 1}}' requests.post.return_value = resp field = PreprintService._meta.get_field('date_created') field.auto_now_add = False # We have to fudge the time because Keen doesn't allow same day queries. date = datetime.datetime.utcnow() - datetime.timedelta(days=1, hours=1) preprint.date_created = date - datetime.timedelta(hours=1) preprint.save() field.auto_now_add = True results = PreprintSummary().get_events(date.date()) assert_equal(len(results), 1) data = results[0] assert_equal(data['provider']['name'], 'Test 1') assert_equal(data['provider']['total'], 1)
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,crcresearch/osf.io,adlius/osf.io,felliott/osf.io,caseyrollins/osf.io,crcresearch/osf.io,aaxelb/osf.io,HalcyonChimera/osf.io,leb2dg/osf.io,chennan47/osf.io,cslzchen/osf.io,cslzchen/osf.io,Johnetordoff/osf.io,leb2dg/osf.io,erinspace/osf.io,leb2dg/osf.io,brianjgeiger/osf.io,caseyrollins/osf.io,CenterForOpenScience/osf.io,aaxelb/osf.io,cslzchen/osf.io,chennan47/osf.io,CenterForOpenScience/osf.io,HalcyonChimera/osf.io,mattclark/osf.io,felliott/osf.io,felliott/osf.io,laurenrevere/osf.io,mfraezz/osf.io,HalcyonChimera/osf.io,brianjgeiger/osf.io,mfraezz/osf.io,pattisdr/osf.io,pattisdr/osf.io,icereval/osf.io,laurenrevere/osf.io,baylee-d/osf.io,chennan47/osf.io,TomBaxter/osf.io,aaxelb/osf.io,binoculars/osf.io,crcresearch/osf.io,Johnetordoff/osf.io,aaxelb/osf.io,cslzchen/osf.io,felliott/osf.io,mfraezz/osf.io,saradbowman/osf.io,CenterForOpenScience/osf.io,mattclark/osf.io,baylee-d/osf.io,brianjgeiger/osf.io,erinspace/osf.io,brianjgeiger/osf.io,icereval/osf.io,caseyrollins/osf.io,CenterForOpenScience/osf.io,baylee-d/osf.io,leb2dg/osf.io,saradbowman/osf.io
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 Int class WindDrivenModel(ShallowWaterModel): """Class for wind driven model Set flat initial conditions on Lake Superior """ def __init__(self): self.nx = 151 self.ny = 151 self.Lbump = 0.0 self.Lx = 600e3 self.Ly = 600e3 super(WindDrivenModel, self).__init__() def set_mask(self): n = netcdf_file('superior_mask.grd', 'r') z = n.variables['z'] self.msk = z.data def main(): swm = WindDrivenModel() plot = OceanPlot(swm) swm.set_plot(plot) import enaml with enaml.imports(): from wind_view import WindView view = WindView(model=swm, plot=plot) view.show() if __name__ == '__main__': main()
#!/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 Int class WindDrivenModel(ShallowWaterModel): """Class for wind driven model Set flat initial conditions on Lake Superior """ def __init__(self): self.nx = 151 self.ny = 151 self.Lbump = 0.0 self.Lx = 600e3 self.Ly = 600e3 self.lat = 43 # Latitude of Lake Superior super(WindDrivenModel, self).__init__() def set_mask(self): n = netcdf_file('superior_mask.grd', 'r') z = n.variables['z'] self.msk = z.data def main(): swm = WindDrivenModel() plot = OceanPlot(swm) swm.set_plot(plot) import enaml with enaml.imports(): from wind_view import WindView view = WindView(model=swm, plot=plot) view.show() if __name__ == '__main__': main()
Set latitude of Lake Superior
Set latitude of Lake Superior
Python
bsd-3-clause
kjordahl/swm
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 NotImplementedError @abc.abstractproperty def config(self) -> ClientConfig: raise NotImplementedError @classmethod def instantiate_all(cls) -> 'List[LanguageHandler]': return list( instantiate(c) for c in cls.__subclasses__() if issubclass(c, LanguageHandler)) def instantiate(c: Type[LanguageHandler]) -> LanguageHandler: return c()
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) -> str: raise NotImplementedError @abc.abstractproperty def config(self) -> ClientConfig: raise NotImplementedError @classmethod def instantiate_all(cls) -> 'List[LanguageHandler]': def get_final_subclasses(derived: 'List[Type[LanguageHandler]]', results: 'List[Type[LanguageHandler]]') -> None: for d in derived: d_subclasses = d.__subclasses__() if len(d_subclasses) > 0: get_final_subclasses(d_subclasses, results) else: results.append(d) subclasses = [] # type: List[Type[LanguageHandler]] get_final_subclasses(cls.__subclasses__(), subclasses) instantiated = [] for c in subclasses: try: instantiated.append(instantiate(c)) except Exception as e: debug('LanguageHandler instantiation crashed!', e) return instantiated def instantiate(c: Type[LanguageHandler]) -> LanguageHandler: return c()
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
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 variable will be under surveillance for changes. watch_paths = ['tmuxp/'] @file_validator def py_files(filename): return filename.endswith('.py') and not os.path.basename(filename).startswith('.') and filename != ".tmuxp" @runnable def execute_nose(*args): try: return main() except SystemExit as x: if x.message: print "Found error {0}: {1}".format(x.code, x.message) return not x.code else: return 1
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 = termstyle.bg_default # All lists in this variable will be under surveillance for changes. watch_paths = ['tmuxp/'] @file_validator def py_files(filename): return filename.endswith('.py') and not os.path.basename(filename).startswith('.') and filename != ".tmuxp" @runnable def execute_nose(*args): try: return main() except SystemExit as x: if x.message: print("Found error {0}: {1}".format(x.code, x.message)) return not x.code else: return 1
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
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): for _ in range(times): c()
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 return g setattr(vx, name, f) return f vx.expose = _expose @vx.expose def _repeat(c, times=4): for _ in range(times): c()
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
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('README.rst').read() + '\n\n' + open('CHANGES.rst').read(), author='Onroerend Erfgoed', author_email='ict@onroerenderfgoed.be', url='http://github.com/onroerenderfgoed/crabpy', packages=find_packages(), package_data={'': ['LICENSE']}, package_dir={'crabpy': 'crabpy'}, include_package_data=True, install_requires=requires, license='MIT', zip_safe=False, classifiers=[ 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'Natural Language :: English', 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3.2', 'Programming Language :: Python :: 3.3', ], test_suite='nose.collector' )
#!/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('README.rst').read() + '\n\n' + open('CHANGES.rst').read(), author='Onroerend Erfgoed', author_email='ict@onroerenderfgoed.be', url='http://github.com/onroerenderfgoed/crabpy', packages=find_packages(), package_data={'': ['LICENSE']}, package_dir={'crabpy': 'crabpy'}, include_package_data=True, install_requires=requires, license='MIT', zip_safe=False, classifiers=[ 'Development Status :: 3 - Beta', 'Intended Audience :: Developers', 'Natural Language :: English', 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3.2', 'Programming Language :: Python :: 3.3', ], test_suite='nose.collector' )
Set to beta development state.
Set to beta development state.
Python
mit
OnroerendErfgoed/crabpy
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 = "guillaume.gvt@gmail.com", description = 'This is a Redis Python driver', keywords = "redis", ext_modules = [nadis_impl], py_modules = ["nadis"], test_suite = "nose.collector", tests_require = "nose")
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 = "Guillaume Viot", author_email = "guillaume.gvt@gmail.com", description = 'This is a Redis Python driver', keywords = "redis", ext_modules = [nadis_impl], py_modules = ["nadis"], test_suite = "nose.collector", tests_require = "nose")
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
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', author_email='info@todoist.com', license='BSD', description='todoist-python - The official Todoist Python API library', long_description = read('README.md'), install_requires=[ 'requests', ], # see here for complete list of classifiers # http://pypi.python.org/pypi?%3Aaction=list_classifiers classifiers=( 'Intended Audience :: Developers', 'License :: OSI Approved :: BSD License', 'Programming Language :: Python', ), )
# -*- 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', author_email='info@todoist.com', license='BSD', description='todoist-python - The official Todoist Python API library', long_description = read('README.md'), install_requires=[ 'requests', ], # see here for complete list of classifiers # http://pypi.python.org/pypi?%3Aaction=list_classifiers classifiers=( 'Intended Audience :: Developers', 'License :: OSI Approved :: BSD License', 'Programming Language :: Python', ), )
Update the PyPI version to 7.0.7.
Update the PyPI version to 7.0.7.
Python
mit
Doist/todoist-python
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 on Python 2.x and 3.x', long_description=read('README.rst'), url='https://github.com/moreati/b-prefix-all-the-doctests', author='Alex Willmer', author_email='alex@moreati.org.uk', license='Apache Software License 2.0', py_modules=['pretext'], include_package_data=True, classifiers=[ 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'License :: OSI Approved :: Apache Software License', 'Operating System :: OS Independent', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: Implementation :: CPython', 'Programming Language :: Python :: Implementation :: PyPy', 'Topic :: Documentation', 'Topic :: Software Development :: Libraries', 'Topic :: Software Development :: Testing', ], keywords='doctest bytes unicode bytestring prefix literal string str', )
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 on Python 2.x and 3.x', long_description=read('README.rst'), url='https://github.com/moreati/b-prefix-all-the-doctests', author='Alex Willmer', author_email='alex@moreati.org.uk', license='Apache Software License 2.0', py_modules=['pretext'], include_package_data=True, classifiers=[ 'Development Status :: 4 - Beta', 'Intended Audience :: Developers', 'License :: OSI Approved :: Apache Software License', 'Operating System :: OS Independent', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: Implementation :: CPython', 'Programming Language :: Python :: Implementation :: PyPy', 'Topic :: Documentation', 'Topic :: Software Development :: Libraries', 'Topic :: Software Development :: Testing', ], keywords='doctest bytes unicode bytestring prefix literal string str', )
Change development status to Beta
Change development status to Beta
Python
apache-2.0
moreati/b-prefix-all-the-doctests
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': ['templates/allowdeny/*.html'], }, url='https://github.com/rudeb0t/DjangoAllowDeny', license='LICENSE.txt', description=open('README.rst').read(), )
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': ['templates/allowdeny/*.html'], }, url='https://github.com/rudeb0t/DjangoAllowDeny', license='LICENSE.txt', description='Simple allow/deny access control for Django projects.', long_description=open('README.rst').read(), )
Fix up description and long_description.
Fix up description and long_description.
Python
bsd-3-clause
rudeb0t/DjangoAllowDeny
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_description=readme_content, author='Walery Jadlowski', author_email='bodb.digr@gmail.com', url='https://github.com/bodbdigr/restea', keywords=['rest', 'restful', 'restea'], install_requires=[ 'future==0.16.0', ], setup_requires=[ 'pytest-runner', ], tests_require=[ 'pytest', 'pytest-cov', 'pytest-mock', ], license='MIT', classifiers=[ 'Development Status :: 5 - Production/Stable', 'Environment :: Web Environment', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: Implementation :: CPython', 'Programming Language :: Python :: Implementation :: PyPy', 'Topic :: Internet :: WWW/HTTP', ] )
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', long_description=readme_content, author='Walery Jadlowski', author_email='bodb.digr@gmail.com', url='https://github.com/bodbdigr/restea', keywords=['rest', 'restful', 'restea'], install_requires=[ 'future==0.16.0', ], setup_requires=[ 'pytest-runner', ], tests_require=[ 'pytest', 'pytest-cov', 'pytest-mock', ], license='MIT', classifiers=[ 'Development Status :: 5 - Production/Stable', 'Environment :: Web Environment', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: Implementation :: CPython', 'Programming Language :: Python :: Implementation :: PyPy', 'Topic :: Internet :: WWW/HTTP', ] )
Fix E722 error while executing flake8.
Fix E722 error while executing flake8.
Python
mit
bodbdigr/restea
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 >= 1.5', ], packages=['emailer'], keywords=['django', 'email', 'smtp'], classifiers=[ 'Framework :: Django', 'License :: OSI Approved :: MIT License', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python', 'Topic :: Software Development', ], )
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.5', ], packages=['emailer'], keywords=['django', 'email', 'smtp'], classifiers=[ 'Framework :: Django', 'License :: OSI Approved :: MIT License', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python', 'Topic :: Software Development', ], )
Fix app vertion (bump to 0.1, initial release)
Fix app vertion (bump to 0.1, initial release)
Python
mit
7ws/django-emailer
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/", packages=['ioc_writer'], description="""API providing a limited CRUD for manipulating OpenIOC formatted Indicators of Compromise.""", long_description=read('README'), install_requires=['lxml'], classifiers=[ 'Development Status :: 4 - Beta', 'Environment :: Console', 'Intended Audience :: Developers', 'Intended Audience :: Information Technology', 'Intended Audience :: System Administrators', 'License :: OSI Approved :: Apache Software License', 'Natural Language :: English', 'Operating System :: OS Independent', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Topic :: Security', 'Topic :: Text Processing :: Markup :: XML' ] )
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/", packages=['ioc_writer'], description="""API providing a limited CRUD for manipulating OpenIOC formatted Indicators of Compromise.""", long_description=read('README'), install_requires=['lxml'], classifiers=[ 'Development Status :: 4 - Beta', 'Environment :: Console', 'Intended Audience :: Developers', 'Intended Audience :: Information Technology', 'Intended Audience :: System Administrators', 'License :: OSI Approved :: Apache Software License', 'Natural Language :: English', 'Operating System :: OS Independent', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Topic :: Security', 'Topic :: Text Processing :: Markup :: XML' ] )
Bump up version number to v0.3.0
Bump up version number to v0.3.0
Python
apache-2.0
mandiant/ioc_writer
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 required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # * See the License for the specific language governing permissions and # * limitations under the License. from setuptools import setup setup( zip_safe=True, name='cloudify-vcloud-plugin', version='1.2', packages=[ 'vcloud_plugin_common', 'server_plugin', 'network_plugin' ], license='LICENSE', description='Cloudify plugin for vmWare vCloud infrastructure.', install_requires=[ 'cloudify-plugins-common>=3.2', 'pyvcloud==12', 'requests==2.4.3', 'IPy==0.81' ] )
######### # 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 required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # * See the License for the specific language governing permissions and # * limitations under the License. from setuptools import setup setup( zip_safe=True, name='cloudify-vcloud-plugin', version='1.2', packages=[ 'vcloud_plugin_common', 'server_plugin', 'network_plugin' ], license='LICENSE', description='Cloudify plugin for vmWare vCloud infrastructure.', install_requires=[ 'cloudify-plugins-common>=3.2', 'pyvcloud==12', 'requests==2.4.3', 'IPy==0.81', 'PyYAML==3.10' ] )
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
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.path.join(this_dir, "requirements", "main.txt")).read().splitlines() ) setup( name="Flask-Limiter", author=__author__, author_email=__email__, license="MIT", url="https://flask-limiter.readthedocs.org", project_urls={ "Source": "https://github.com/alisaifee/flask-limiter", }, zip_safe=False, version=versioneer.get_version(), cmdclass=versioneer.get_cmdclass(), install_requires=list(REQUIREMENTS), classifiers=[k for k in open("CLASSIFIERS").read().split("\n") if k], description="Rate limiting for flask applications", long_description=open("README.rst").read(), packages=find_packages(exclude=["tests*"]), python_requires=">=3.7", )
""" 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.path.join(this_dir, "requirements", "main.txt")).read().splitlines() ) EXTRA_REQUIREMENTS = { "redis": ["limits[redis]"], "memcached": ["limits[memcached]"], "mongodb": ["limits[mongodb]"], } setup( name="Flask-Limiter", author=__author__, author_email=__email__, license="MIT", url="https://flask-limiter.readthedocs.org", project_urls={ "Source": "https://github.com/alisaifee/flask-limiter", }, zip_safe=False, version=versioneer.get_version(), cmdclass=versioneer.get_cmdclass(), install_requires=list(REQUIREMENTS), classifiers=[k for k in open("CLASSIFIERS").read().split("\n") if k], description="Rate limiting for flask applications", long_description=open("README.rst").read(), packages=find_packages(exclude=["tests*"]), python_requires=">=3.7", extras_require=EXTRA_REQUIREMENTS, include_package_data=True, package_data={ "flask_limiter": ["py.typed"], }, )
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
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): long_description = open('README.md').read() kwargs = { "name": "sodapy", "version": str(__version__), "packages": ["sodapy"], "description": "Python bindings for the Socrata Open Data API", "long_description": long_description, "author": "Cristina Munoz", "maintainer": "Cristina Munoz", "author_email": "hi@xmunoz.com", "maintainer_email": "hi@xmunoz.com", "license": "Apache", "install_requires": required, "url": "https://github.com/xmunoz/sodapy", "download_url": "https://github.com/xmunoz/sodapy/archive/master.tar.gz", "keywords": "soda socrata opendata api", "classifiers": [ "Programming Language :: Python", "Topic :: Software Development", "Topic :: Software Development :: Libraries", "Topic :: Software Development :: Libraries :: Python Modules", ] } setup(**kwargs)
#!/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): long_description = open('README.md').read() kwargs = { "name": "sodapy", "version": str(__version__), "packages": ["sodapy"], "description": "Python bindings for the Socrata Open Data API", "long_description": long_description, "author": "Cristina Munoz", "maintainer": "Cristina Munoz", "author_email": "hi@xmunoz.com", "maintainer_email": "hi@xmunoz.com", "license": "Apache", "install_requires": required, "url": "https://github.com/xmunoz/sodapy", "download_url": "https://github.com/xmunoz/sodapy/archive/master.tar.gz", "keywords": "soda socrata opendata api", "classifiers": [ "Programming Language :: Python", "Topic :: Software Development", "Topic :: Software Development :: Libraries", "Topic :: Software Development :: Libraries :: Python Modules", ] } setup(**kwargs)
Change single quotes to double
Change single quotes to double
Python
mit
xmunoz/sodapy,peggyl/sodapy,peggyl/sodapy
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
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+https://github.com/openworm/PyOpenWorm.git#egg=PyOpenWorm', 'git+https://github.com/NeuroML/pyNeuroML.git#egg=PyNeuroML@5aeab1243567d9f4a8ce16516074dc7b93dfbf37' ] )
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+https://github.com/openworm/PyOpenWorm.git#egg=PyOpenWorm', 'git+https://github.com/NeuroML/pyNeuroML.git@5aeab1243567d9f4a8ce16516074dc7b93dfbf37' ] )
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/ChannelWorm,openworm/ChannelWorm,VahidGh/ChannelWorm,openworm/ChannelWorm,joebowen/ChannelWormDjango,joebowen/ChannelWorm,joebowen/ChannelWorm,joebowen/ChannelWormDjango,joebowen/ChannelWorm
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", "Operating System :: OS Independent", 'Programming Language :: Python :: 3.6' ], author='Mark Brough', author_email='mark@brough.io', url='http://github.com/markbrough/exchangerates', license='MIT', packages=find_packages(exclude=['ez_setup', 'examples']), namespace_packages=[], include_package_data=True, zip_safe=False, install_requires=[ 'lxml == 4.4.0', 'requests == 2.22.0', 'six == 1.12.0' ], entry_points={ } )
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", "Operating System :: OS Independent", 'Programming Language :: Python :: 3.7.5' ], author='Mark Brough', author_email='mark@brough.io', url='http://github.com/markbrough/exchangerates', license='MIT', packages=find_packages(exclude=['ez_setup', 'examples']), namespace_packages=[], include_package_data=True, zip_safe=False, install_requires=[ 'lxml >= 4.4.0', 'requests >= 2.22.0', 'six >= 1.12.0' ], entry_points={ } )
Allow later versions of libraries, e.g. lxml
Allow later versions of libraries, e.g. lxml
Python
mit
markbrough/exchangerates
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.sqlalchemy/tags', author='Wyatt Baldwin', author_email='self@wyattbaldwin.com', packages=PEP420PackageFinder.find(include=['tangled*']), install_requires=[ 'tangled>=0.1a9', 'SQLAlchemy', ], classifiers=[ 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', ], )
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.sqlalchemy/tags', author='Wyatt Baldwin', author_email='self@wyattbaldwin.com', packages=PEP420PackageFinder.find(include=['tangled*']), install_requires=[ 'tangled>=1.0a12', 'SQLAlchemy', ], classifiers=[ 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', ], )
Upgrade tangled 0.1a9 => 1.0a12
Upgrade tangled 0.1a9 => 1.0a12
Python
mit
TangledWeb/tangled.sqlalchemy
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', author_email='self@wyattbaldwin.com', packages=[ 'tangled', 'tangled.website', ], include_package_data=True, install_requires=[ 'tangled.auth>=0.1a3', 'tangled.session>=0.1a3', 'tangled.site>=1.0a5', 'SQLAlchemy>=1.1.6', ], classifiers=[ 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', ], )
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', author_email='self@wyattbaldwin.com', packages=[ 'tangled', 'tangled.website', ], include_package_data=True, install_requires=[ 'tangled.auth>=0.1a3', 'tangled.session>=0.1a3', 'tangled.site>=1.0a5', 'SQLAlchemy>=1.2.0', ], classifiers=[ 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', ], )
Upgrade SQLAlchemy 1.1.6 => 1.2.0
Upgrade SQLAlchemy 1.1.6 => 1.2.0
Python
mit
TangledWeb/tangled.website
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): tag = os.getenv('CIRCLE_TAG') if tag != VERSION: info = f"Git tag: {tag} does not match phial version: {VERSION}" sys.exit(info) setup( name='phial-slack', version=VERSION, url='https://github.com/sedders123/phial/', license='MIT', author='James Seden Smith', author_email='sedders123@gmail.com', description='A Slack bot framework', long_description=open('README.rst').read(), packages=['phial'], include_package_data=True, zip_safe=False, platforms='any', python_requires='>=3.6', keywords=['Slack', 'bot', 'Slackbot'], install_requires=[ 'slackclient==1.0.6', 'Werkzeug==0.12.2', ], classifiers=[ 'Development Status :: 3 - Alpha', 'License :: OSI Approved :: MIT License', 'Intended Audience :: Developers', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Programming Language :: Python :: 3.6', 'Topic :: Software Development :: Libraries :: Python Modules' ], cmdclass={ 'verify': VerifyVersionCommand, } )
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): tag = os.getenv('CIRCLE_TAG') if tag != VERSION: info = "Git tag: {0} != phial version: {1}".format(tag, VERSION) sys.exit(info) setup( name='phial-slack', version=VERSION, url='https://github.com/sedders123/phial/', license='MIT', author='James Seden Smith', author_email='sedders123@gmail.com', description='A Slack bot framework', long_description=open('README.rst').read(), packages=['phial'], include_package_data=True, zip_safe=False, platforms='any', python_requires='>=3.6', keywords=['Slack', 'bot', 'Slackbot'], install_requires=[ 'slackclient==1.0.6', 'Werkzeug==0.12.2', ], classifiers=[ 'Development Status :: 3 - Alpha', 'License :: OSI Approved :: MIT License', 'Intended Audience :: Developers', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Programming Language :: Python :: 3.6', 'Topic :: Software Development :: Libraries :: Python Modules' ], cmdclass={ 'verify': VerifyVersionCommand, } )
Remove f-string to allow python 3.4 support
Remove f-string to allow python 3.4 support
Python
mit
sedders123/phial
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 for managing code', version='2.3.0', url='http://clowder.cat', author='Joe DeCapo', author_email='joe@polka.cat', license='MIT', classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'Topic :: Software Development :: Build Tools', 'License :: OSI Approved :: MIT License', 'Programming Language :: Python :: 3.2', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5' ], packages=['clowder', 'clowder.utility'], entry_points={ 'console_scripts': [ 'clowder=clowder.cmd:main', ] }, install_requires=['argcomplete', 'colorama', 'GitPython', 'PyYAML', 'termcolor'] )
""" 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_email='joe@polka.cat', license='MIT', classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'Topic :: Software Development :: Build Tools', 'License :: OSI Approved :: MIT License', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.2', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5' ], packages=['clowder', 'clowder.utility'], entry_points={ 'console_scripts': [ 'clowder=clowder.cmd:main', ] }, install_requires=['argcomplete', 'colorama', 'GitPython', 'PyYAML', 'termcolor'] )
Allow installation with Python 2
Allow installation with Python 2
Python
mit
JrGoodle/clowder,JrGoodle/clowder,JrGoodle/clowder
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"), url='https://github.com/kevgathuku/top40', license = "MIT", install_requires=[ 'Click>=3.3', 'requests', 'requests-cache', 'google-api-python-client', ], entry_points=''' [console_scripts] top40=top40:cli ''', )
#!/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 Charts"), url='https://github.com/kevgathuku/top40', license = "MIT", install_requires=[ 'Click>=3.3', 'requests', 'requests-cache', 'google-api-python-client', ], entry_points=''' [console_scripts] top40=top40:cli ''', )
Edit author field. Use full name
Edit author field. Use full name
Python
mit
kevgathuku/top40,andela-kndungu/top40
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', author_email='info@todoist.com', license='BSD', description='todoist-python - The official Todoist Python API library', long_description = read('README.md'), install_requires=[ 'requests', ], # see here for complete list of classifiers # http://pypi.python.org/pypi?%3Aaction=list_classifiers classifiers=( 'Intended Audience :: Developers', 'License :: OSI Approved :: BSD License', 'Programming Language :: Python', ), )
# -*- 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', author_email='info@todoist.com', license='BSD', description='todoist-python - The official Todoist Python API library', long_description = read('README.md'), install_requires=[ 'requests', ], # see here for complete list of classifiers # http://pypi.python.org/pypi?%3Aaction=list_classifiers classifiers=( 'Intended Audience :: Developers', 'License :: OSI Approved :: BSD License', 'Programming Language :: Python', ), )
Update the PyPI version to 7.0.15.
Update the PyPI version to 7.0.15.
Python
mit
Doist/todoist-python
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').read(), author='Erik Rose', author_email='erikrose@grinchcentral.com', license='MIT', packages=find_packages(exclude=['ez_setup']), tests_require=['Nose'], url='https://github.com/erikrose/blessings', include_package_data=True, classifiers=[ 'Intended Audience :: Developers', 'Natural Language :: English', 'Environment :: Console', 'Environment :: Console :: Curses', 'License :: OSI Approved :: MIT License', 'Operating System :: POSIX', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.5', 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.2', 'Topic :: Software Development :: Libraries', 'Topic :: Software Development :: User Interfaces', 'Topic :: Terminals' ], keywords=['terminal', 'tty', 'curses', 'ncurses', 'formatting', 'color', 'console'], **extra_setup )
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').read(), author='Erik Rose', author_email='erikrose@grinchcentral.com', license='MIT', packages=find_packages(exclude=['ez_setup']), tests_require=['Nose'], url='https://github.com/erikrose/blessings', include_package_data=True, classifiers=[ 'Intended Audience :: Developers', 'Natural Language :: English', 'Development Status :: 5 - Production/Stable', 'Environment :: Console', 'Environment :: Console :: Curses', 'License :: OSI Approved :: MIT License', 'Operating System :: POSIX', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.5', 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.2', 'Topic :: Software Development :: Libraries', 'Topic :: Software Development :: User Interfaces', 'Topic :: Terminals' ], keywords=['terminal', 'tty', 'curses', 'ncurses', 'formatting', 'color', 'console'], **extra_setup )
Add the "Production" trove classifier.
Add the "Production" trove classifier.
Python
mit
erikrose/blessings,tartley/blessings,jquast/blessed
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.collector', install_requires=['cryptography < 2.0.0', 'six < 2.0.0'] )
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.collector', install_requires=['cryptography < 2.0.0'] )
Fix missed cleanup of six requirement
Fix missed cleanup of six requirement
Python
mit
yola/auth_tkt
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.tests']) raise SystemExit(errno) with open('README.md') as readme: long_description = readme.read() setup( name='parserutils', description='A collection of performant parsing utilities', 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', packages=[ 'parserutils', 'parserutils.tests' ], install_requires=[ 'defusedxml>=0.4.1', 'python-dateutil>=2.4.2', 'six>=1.9.0' ], tests_require=['mock'], url='https://github.com/consbio/parserutils', license='BSD', cmdclass={'test': RunTests} )
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.tests']) raise SystemExit(errno) with open('README.md') as readme: long_description = readme.read() setup( name='parserutils', description='A collection of performant parsing utilities', 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.4', packages=[ 'parserutils', 'parserutils.tests' ], install_requires=[ 'defusedxml>=0.4.1', 'python-dateutil>=2.4.2', 'six>=1.9.0' ], tests_require=['mock'], url='https://github.com/consbio/parserutils', license='BSD', cmdclass={'test': RunTests} )
Increment version after change to get_base_url
Increment version after change to get_base_url
Python
bsd-3-clause
consbio/parserutils
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@gmail.com', packages=['tg2ext', 'tg2ext.express'], #package_dir={'tg2ext': 'tg2ext'}, #package_data={'tg2ext': ['controller', 'exceptions']}, license="The MIT License (MIT)", platforms=["any"], install_requires=[ 'TurboGears2>=2.3.1', 'SQLAlchemy>=0.8.2', ], url='https://github.com/archsh/tg2ext.express')
# -*- 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@gmail.com', packages=['tg2ext', 'tg2ext.express'], #package_dir={'tg2ext': 'tg2ext'}, #package_data={'tg2ext': ['controller', 'exceptions']}, license="The MIT License (MIT)", platforms=["any"], install_requires=[ 'TurboGears2>=2.3.1', 'SQLAlchemy>=0.8.2', ], url='https://github.com/archsh/tg2ext.express')
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
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', 'description': 'Python bot which able to work with messenger of facebook', 'packages': ['bot_chucky'], 'classifiers': [ 'Development Status :: 3 - Alpha', 'Environment :: Web Environment', 'Programming Language :: Python :: 3.6', 'License :: OSI Approved :: MIT License' ], } requirements = ['requests==2.17.3', 'facebook-sdk==2.0.0'] setup_kwargs['install_requires'] = requirements setup(**setup_kwargs) print(u"\n\n\t\t " "BotChucky version {} installation succeeded.\n".format(version))
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', 'description': 'Python bot which able to work with messenger of facebook', 'packages': ['bot_chucky'], 'classifiers': [ 'Development Status :: 3 - Alpha', 'Environment :: Web Environment', 'Programming Language :: Python :: 3.6', 'License :: OSI Approved :: MIT License' ], } requirements = ['requests==2.17.3', 'facebook-sdk==2.0.0'] setup_kwargs['install_requires'] = requirements setup(**setup_kwargs) print(u"\n\n\t\t " "BotChucky version {} installation succeeded.\n".format(version))
Check if travis tests passed
Check if travis tests passed
Python
mit
MichaelYusko/Bot-Chucky
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', classifiers=[ 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'Topic :: Utilities', 'License :: OSI Approved :: MIT License', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.2', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', ], keywords='random sysadmin development', py_modules=['birdseed'], install_requires=['twitter>=2.2'], )
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', classifiers=[ 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'Topic :: Utilities', 'License :: OSI Approved :: MIT License', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.2', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', ], keywords='random sysadmin development', py_modules=['birdseed'], install_requires=['twitter>=1.17.1'], )
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
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 and validation errors highlighted within the text. # # Here is an example query to fetch a list of products: # { products(first: 5, channel: "%(channel_slug)s") { edges { node { id name description } } } } """ % { "channel_slug": settings.DEFAULT_CHANNEL_SLUG } class DemoGraphQLView(GraphQLView): def render_playground(self, request): ctx = { "query": EXAMPLE_QUERY, "api_url": request.build_absolute_uri(str(API_PATH)), } return render(request, "graphql/playground.html", ctx)
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 validation errors highlighted within the text. # # Here is an example query to fetch a list of products: # { products(first: 5, channel: "%(channel_slug)s") { edges { node { id name description } } } } """ % { "channel_slug": settings.DEFAULT_CHANNEL_SLUG } class DemoGraphQLView(GraphQLView): def render_playground(self, request): pwa_origin = settings.PWA_ORIGINS[0] ctx = { "query": EXAMPLE_QUERY, "api_url": f"https://{pwa_origin}/graphql/", } return render(request, "graphql/playground.html", ctx)
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
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
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 SystemExit(errno) setup( name='facebook-ads-api', version='0.1.37', author='Chee-Hyung Yoon', author_email='yoonchee@gmail.com', py_modules=['facebook', ], url='http://github.com/narrowcast/facebook-ads-api', license='LICENSE', description='Python client for the Facebook Ads API', long_description=open('README.md').read(), cmdclass={'test': TestCommand}, )
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 SystemExit(errno) setup( name='facebook-ads-api', version='0.1.38', author='Chee-Hyung Yoon', author_email='yoonchee@gmail.com', py_modules=['facebook', ], url='http://github.com/narrowcast/facebook-ads-api', license='LICENSE', description='Python client for the Facebook Ads API', long_description=open('README.md').read(), cmdclass={'test': TestCommand}, )
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
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.com', url='http://sebdah.github.com/yayson/', keywords="color colorized json indented beautiful pretty", platforms=['Any'], package_dir={'yayson': '.'}, scripts=['yayson.py'], include_package_data=True, zip_safe=False, install_requires=[ 'colorama >= 0.2.5' ], classifiers=[ 'Development Status :: 4 - Beta', 'Environment :: Console', 'License :: OSI Approved :: Apache Software License', 'Operating System :: OS Independent', 'Programming Language :: Python' ] )
""" 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.com', url='http://sebdah.github.com/yayson/', keywords="color colorized json indented beautiful pretty", platforms=['Any'], scripts=['yayson.py'], package_dir={'': '.'}, packages=['.'], include_package_data=True, zip_safe=False, install_requires=[ 'colorama >= 0.2.5' ], classifiers=[ 'Development Status :: 4 - Beta', 'Environment :: Console', 'License :: OSI Approved :: Apache Software License', 'Operating System :: OS Independent', 'Programming Language :: Python' ] )
Install lib package and script
Install lib package and script
Python
apache-2.0
sebdah/yayson
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', packages=['gast'], description='Python AST that abstracts the underlying Python version', long_description=''' A generic AST to represent Python2 and Python3's Abstract Syntax Tree(AST). GAST provides a compatibility layer between the AST of various Python versions, as produced by ``ast.parse`` from the standard ``ast`` module.''', author='serge-sans-paille', author_email='serge.guelton@telecom-bretagne.eu', license="BSD 3-Clause", classifiers=['Development Status :: 4 - Beta', 'Environment :: Console', 'Intended Audience :: Developers', 'License :: OSI Approved :: BSD License', 'Natural Language :: English', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 3'], **kw )
# 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', packages=['gast'], description='Python AST that abstracts the underlying Python version', long_description=''' A generic AST to represent Python2 and Python3's Abstract Syntax Tree(AST). GAST provides a compatibility layer between the AST of various Python versions, as produced by ``ast.parse`` from the standard ``ast`` module.''', author='serge-sans-paille', author_email='serge.guelton@telecom-bretagne.eu', license="BSD 3-Clause", classifiers=['Development Status :: 4 - Beta', 'Environment :: Console', 'Intended Audience :: Developers', 'License :: OSI Approved :: BSD License', 'Natural Language :: English', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', ], python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*', **kw )
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
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
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', download_url = 'https://github.com/peterldowns/mypackage/tarball/0.1', keywords = ['microsoft', 'translator', 'language'], requires = ['requests'] )
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/mstranslator', download_url = 'https://github.com/ayushgoel/mstranslator/archive/0.0.1.tar.gz', keywords = ['microsoft', 'translator', 'language'], requires = ['requests'] )
Update nemae and download URL
Update nemae and download URL
Python
mit
ayushgoel/mstranslator
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=False, install_requires=['six'], include_package_data=True, package_data={'': ['LICENSE']}, classifiers=( 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'Natural Language :: English', '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', ), )
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=False, install_requires=['six'], include_package_data=True, package_data={'': ['LICENSE']}, classifiers=( 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'Natural Language :: English', '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', ), )
Remove py3 for the moment
Remove py3 for the moment
Python
mit
gilesbrown/python-icapservice,gilesbrown/python-icapservice
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-cmd", download_url="https://github.com/nigma/dj-cmd/zipball/master", long_description=open("README.rst").read(), packages=["dj_cmd"], package_dir={"dj_cmd": "src"}, include_package_data=True, classifiers=( "Development Status :: 4 - Beta", "Environment :: Console", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.1", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Topic :: Software Development :: Libraries :: Python Modules" ), tests_require=["django>=1.3"], entry_points={ "console_scripts": [ "dj = dj_cmd.dj:main", ] }, )
#!/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", download_url="https://github.com/nigma/dj-cmd/zipball/master", long_description=open("README.rst").read(), packages=["dj_cmd"], package_dir={"dj_cmd": "src"}, include_package_data=True, classifiers=( "Development Status :: 5 - Production/Stable", "Environment :: Console", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Topic :: Software Development :: Libraries :: Python Modules" ), tests_require=["django>=1.3"], entry_points={ "console_scripts": [ "dj = dj_cmd.dj:main", ] }, )
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
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", author_email="srittau@rittau.biz", 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", ], tests_require=["asserts >= 0.8.5, < 0.9"], python_requires=">= 3.5", license="MIT", classifiers=[ "Development Status :: 3 - Alpha", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Internet :: WWW/HTTP :: WSGI", ])
#!/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", author_email="srittau@rittau.biz", 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"], tests_require=["asserts >= 0.8.5, < 0.9"], python_requires=">= 3.5", license="MIT", classifiers=[ "Development Status :: 4 - Beta", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Internet :: WWW/HTTP :: WSGI", ], )
Update development status to beta
Update development status to beta
Python
mit
srittau/rouver
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=[ "Development Status :: 5 - Production/Stable", "License :: OSI Approved :: BSD License", "Natural Language :: English", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Security :: Cryptography", ], license="BSD", description="Virgil keys service SDK", long_description="Virgil keys service SDK", )
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=[ "Development Status :: 5 - Production/Stable", "License :: OSI Approved :: BSD License", "Natural Language :: English", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Security :: Cryptography", ], license="BSD", description=""" Virgil Security provides a set of APIs for adding security to any application. In a few simple steps you can encrypt communication, securely store data, provide passwordless login, and ensure data integrity. Virgil SDK allows developers to get up and running with Virgil API quickly and add full end-to-end (E2EE) security to their existing digital solutions to become HIPAA and GDPR compliant and more.(изменено) Virgil Python Crypto Library is a high-level cryptographic library that allows you to perform all necessary operations for secure storing and transferring data and everything required to become HIPAA and GDPR compliant. """, long_description="Virgil keys service SDK", )
Add wider description for wheel and egg packages
Add wider description for wheel and egg packages
Python
bsd-3-clause
VirgilSecurity/virgil-sdk-python
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 applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. """Package configuration.""" from setuptools import find_packages from setuptools import setup REQUIRED_PACKAGES = ['pandas', 'google-cloud==0.27.0', 'pysqlite>=2.8.3', 'ddt'] setup( name='analysis-py-utils', version='0.1', license='Apache 2.0', author='Verily Life Sciences', url='https://github.com/verilylifesciences/analysis-py-utils', install_requires=REQUIRED_PACKAGES, packages=find_packages(), include_package_data=True, description='Python utilities for data analysis.', requires=[])
# 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 applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. """Package configuration.""" from setuptools import find_packages from setuptools import setup REQUIRED_PACKAGES = ['pandas', 'google-cloud==0.27.0', 'pysqlite>=2.8.3', 'ddt', 'typing'] setup( name='analysis-py-utils', version='0.1', license='Apache 2.0', author='Verily Life Sciences', url='https://github.com/verilylifesciences/analysis-py-utils', install_requires=REQUIRED_PACKAGES, packages=find_packages(), include_package_data=True, description='Python utilities for data analysis.', requires=[])
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
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-nova.com', version='0.1.3', long_description=readme(), packages=find_packages(), install_requires=[ 'haikunator==2.1.0', 'azure==2.0.0rc6', 'boto3==1.4.0', 'google-cloud==0.21.0', 'cryptography==1.4' ] )
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-nova.com', version='0.1.4', long_description=readme(), packages=find_packages(), install_requires=[ 'haikunator==2.1.0', 'azure==2.0.0rc6', 'boto3==1.4.0', 'google-cloud==0.21.0', 'cryptography==1.4' ] )
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
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://github.com/wangjohn/zinc_cli', license='LICENSE.txt', description='Wrapper for Zinc ecommerce API (zinc.io)', install_requires=[ "requests >= 1.1.0" ], )
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.com/wangjohn/zinc_cli', license='LICENSE.txt', description='Wrapper for Zinc ecommerce API (zinc.io)', install_requires=[ "requests >= 1.1.0" ], )
Remove readme from package data.
Remove readme from package data.
Python
mit
wangjohn/zinc_cli
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' 'beautifulsoup4==4.6.0', 'blinker==1.4', 'coveralls==1.2.0', 'Flask-Caching==1.3.3', 'Flask-Cors==3.0.3', 'Flask-JWT-Extended==3.6.0', 'Flask-Migrate==2.1.1', 'Flask-RESTful==0.3.6', 'Flask-Rollbar==1.0.1', 'Flask-SQLAlchemy==2.3.2', 'Flask==0.12.2', 'gunicorn==19.7.1', 'newrelic==2.100.0.84', 'psycopg2==2.7.3.2', 'python-jose==2.0.0', 'PyYAML==3.12', 'requests==2.18.4', 'rollbar==0.13.17', 'vcrpy==1.11.1', 'webargs==1.8.1', ], )
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', 'beautifulsoup4==4.6.0', 'blinker==1.4', 'coveralls==1.2.0', 'Flask-Caching==1.3.3', 'Flask-Cors==3.0.3', 'Flask-JWT-Extended==3.6.0', 'Flask-Migrate==2.1.1', 'Flask-RESTful==0.3.6', 'Flask-Rollbar==1.0.1', 'Flask-SQLAlchemy==2.3.2', 'Flask==0.12.2', 'gunicorn==19.7.1', 'newrelic==2.100.0.84', 'psycopg2==2.7.3.2', 'python-jose==2.0.0', 'PyYAML==3.12', 'requests==2.18.4', 'rollbar==0.13.17', 'vcrpy==1.11.1', 'webargs==1.8.1', ], )
Fix missing comma in requirements
Fix missing comma in requirements
Python
agpl-3.0
SCUEvals/scuevals-api,SCUEvals/scuevals-api
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 use HTTP client", long_description=open('README.rst').read(), license="BSD", keywords="httpclient urlfetch", py_modules=['urlfetch'], data_files=[('', ['urlfetch.useragents.list'])], classifiers=[ 'Development Status :: 5 - Production/Stable', 'Programming Language :: Python', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.2', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Intended Audience :: Developers', 'License :: OSI Approved :: BSD License', 'Operating System :: POSIX', 'Operating System :: POSIX :: Linux', 'Topic :: Internet :: WWW/HTTP', 'Topic :: Software Development :: Libraries :: Python Modules' ], test_suite='tests.testall', tests_require=['bottle', 'gunicorn'], )
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 use HTTP client", long_description=open('README.rst').read(), license="BSD", keywords="httpclient urlfetch", py_modules=['urlfetch'], data_files=[('', ['urlfetch.useragents.list'])], classifiers=[ 'Development Status :: 5 - Production/Stable', 'Programming Language :: Python', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.2', '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', 'License :: OSI Approved :: BSD License', 'Operating System :: POSIX', 'Operating System :: POSIX :: Linux', 'Topic :: Internet :: WWW/HTTP', 'Topic :: Software Development :: Libraries :: Python Modules' ], test_suite='tests.testall', tests_require=['bottle', 'gunicorn'], )
Add classifiers of Python 3.6 3.7
Add classifiers of Python 3.6 3.7
Python
bsd-2-clause
ifduyue/urlfetch
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 = subprocess.call(['nosetests', '--debug=DEBUG', '-s']) raise SystemExit(errno) setup( name='mafan', version='0.2.10', author='Herman Schaaf', author_email='herman@ironzebra.com', packages=[ 'mafan', 'mafan.hanzidentifier', 'mafan.third_party', 'mafan.third_party.jianfan' ], scripts=['bin/convert.py'], url='https://github.com/hermanschaaf/mafan', license='LICENSE.txt', description='A toolbox for working with the Chinese language in Python', long_description=open('docs/README.md').read(), cmdclass={ 'test': TestCommand, }, install_requires=[ "jieba == 0.29", "argparse == 1.1", "chardet == 2.1.1", "wsgiref == 0.1.2", ], )
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 errno = subprocess.call(['nosetests', '--debug=DEBUG', '-s']) raise SystemExit(errno) setup( name='mafan', version='0.2.10', author='Herman Schaaf', author_email='herman@ironzebra.com', packages=[ 'mafan', 'mafan.hanzidentifier', 'mafan.third_party', 'mafan.third_party.jianfan' ], scripts=['bin/convert.py'], url='https://github.com/hermanschaaf/mafan', license='LICENSE.txt', description='A toolbox for working with the Chinese language in Python', long_description=codecs.open('docs/README.md', 'r', 'utf-8').read(), cmdclass={ 'test': TestCommand, }, install_requires=[ "jieba == 0.29", "argparse == 1.1", "chardet == 2.1.1", "wsgiref == 0.1.2", ], )
Load readme with utf-8 codecs
Load readme with utf-8 codecs
Python
mit
cychiang/mafan,hermanschaaf/mafan
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 Pitrou', author_email='solipsis@pitrou.net', classifiers=[ 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3.2', 'Topic :: Software Development :: Libraries', 'Topic :: System :: Filesystems', ], download_url='https://pypi.python.org/pypi/pathlib/', url='http://readthedocs.org/docs/pathlib/', )
#!/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 Pitrou', author_email='solipsis@pitrou.net', classifiers=[ 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', '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 :: Filesystems', ], download_url='https://pypi.python.org/pypi/pathlib/', url='http://readthedocs.org/docs/pathlib/', )
Add classifier for Python 3.3
Add classifier for Python 3.3
Python
mit
mcmtroffaes/pathlib2,saddingtonbaynes/pathlib2
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 'Development Status :: 4 - Beta', 'Environment :: Console', 'Intended Audience :: Developers', 'Intended Audience :: System Administrators', 'License :: OSI Approved :: MIT License', 'Natural Language :: English', 'Operating System :: POSIX :: Linux', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: Implementation :: CPython', 'Topic :: Utilities', ], keywords='tile size mvt', author='Matt Amos, Tilezen', author_email='zerebubuth@gmail.com', url='https://github.com/tilezen/scoville', license='MIT', packages=find_packages(exclude=['ez_setup', 'examples', 'tests']), include_package_data=True, zip_safe=False, install_requires=[ 'click', 'PIL', 'requests', 'requests_futures', 'squarify', ], entry_points=dict( console_scripts=[ 'scoville = scoville.command:scoville_main', ] ), test_suite='tests', )
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 'Development Status :: 4 - Beta', 'Environment :: Console', 'Intended Audience :: Developers', 'Intended Audience :: System Administrators', 'License :: OSI Approved :: MIT License', 'Natural Language :: English', 'Operating System :: POSIX :: Linux', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: Implementation :: CPython', 'Topic :: Utilities', ], keywords='tile size mvt', author='Matt Amos, Tilezen', author_email='zerebubuth@gmail.com', url='https://github.com/tilezen/scoville', license='MIT', packages=find_packages(exclude=['ez_setup', 'examples', 'tests']), include_package_data=True, zip_safe=False, install_requires=[ 'click', 'requests', 'requests_futures', 'squarify', 'msgpack', ], entry_points=dict( console_scripts=[ 'scoville = scoville.command:scoville_main', ] ), test_suite='tests', )
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
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@alexcouper.com', url='https://github.com/alexcouper/captainhook', zip_safe=False, scripts=[ 'scripts/captainhook' ], install_requires=[ 'docopt==0.6.1', ], packages=find_packages(), classifiers=[ 'Development Status :: 4 - Beta', 'Intended Audience :: Developers', ('License :: OSI Approved :: GNU Library or Lesser ' 'General Public License (LGPL)'), 'Operating System :: MacOS', 'Operating System :: POSIX', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Topic :: Software Development :: Libraries :: Python Modules', ], )
#!/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='info@alexcouper.com', url='https://github.com/alexcouper/captainhook', zip_safe=False, scripts=[ 'scripts/captainhook' ], install_requires=[ 'docopt==0.6.1', ], packages=find_packages(), classifiers=[ 'Development Status :: 4 - Beta', 'Intended Audience :: Developers', ('License :: OSI Approved :: GNU Library or Lesser ' 'General Public License (LGPL)'), 'Operating System :: MacOS', 'Operating System :: POSIX', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Topic :: Software Development :: Libraries :: Python Modules', ], )
Update readme location following rename.
Update readme location following rename.
Python
bsd-3-clause
pczerkas/captainhook,alexcouper/captainhook,Friz-zy/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=oneline -n 1 -- $(pwd)', shell=True).split()[0] with open(versionFile, 'w') as versionFH: versionFH.write("cactus_commit = '%s'" % git_commit) setup( name="progressiveCactus", version="1.0", author="Benedict Paten", package_dir = {'': 'src'}, packages=find_packages(where='src'), include_package_data=True, package_data={'cactus': ['*_config.xml']}, # We use the __file__ attribute so this package isn't zip_safe. zip_safe=False, install_requires=[ 'decorator', 'subprocess32', 'psutil', 'networkx==1.11'], entry_points={ 'console_scripts': ['cactus = cactus.progressive.cactus_progressive:main']},)
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', 'HEAD']).strip() with open(versionFile, 'w') as versionFH: versionFH.write("cactus_commit = '%s'" % git_commit) setup( name="progressiveCactus", version="1.0", author="Benedict Paten", package_dir = {'': 'src'}, packages=find_packages(where='src'), include_package_data=True, package_data={'cactus': ['*_config.xml']}, # We use the __file__ attribute so this package isn't zip_safe. zip_safe=False, install_requires=[ 'decorator', 'subprocess32', 'psutil', 'networkx==1.11'], entry_points={ 'console_scripts': ['cactus = cactus.progressive.cactus_progressive:main']},)
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
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 :: Libraries :: Python Modules Development Status :: 4 - Beta """ setup( name='django-pagelets', version='0.5', author='Caktus Consulting Group', author_email='solutions@caktusgroup.com', packages=packages, install_requires = [], include_package_data = True, exclude_package_data={ '': ['*.sql', '*.pyc'], 'pagelets': ['media/*'], }, url='http://http://github.com/caktus/django-pagelets', license='LICENSE.txt', description='Simple, flexible app for integrating static, unstructured ' 'content in a Django site', classifiers = filter(None, classifiers.split("\n")), long_description=open('README.rst').read(), )
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 :: Python Modules Development Status :: 4 - Beta Operating System :: OS Independent """ setup( name='django-pagelets', version='0.5', author='Caktus Consulting Group', author_email='solutions@caktusgroup.com', packages=packages, install_requires = [], include_package_data = True, exclude_package_data={ '': ['*.sql', '*.pyc'], 'pagelets': ['media/*'], }, url='http://http://github.com/caktus/django-pagelets', license='LICENSE.txt', description='Simple, flexible app for integrating static, unstructured ' 'content in a Django site', classifiers = filter(None, classifiers.split("\n")), long_description=open('README.rst').read(), )
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
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-stackedwidget', version=__version__, license='MIT', author='Sumin Byeon', author_email='suminb@gmail.com', maintainer='', url='https://github.com/suminb/urwid-stackedwidget', description='A widget container that presents one child widget at a time.', long_description=readme(), platforms='any', py_modules=['urwid_stackedwidget'], classifiers=[ 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'License :: Public Domain', 'Operating System :: MacOS :: MacOS X', 'Operating System :: POSIX', 'Operating System :: Unix', 'Programming Language :: Python', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: Implementation :: CPython', 'Topic :: Internet', 'Topic :: Software Development :: Libraries :: Python Modules'], install_requires=['urwid'], )
# -*- 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', author_email='suminb@gmail.com', maintainer='', url='https://github.com/suminb/urwid-stackedwidget', description='A widget container that presents one child widget at a time.', long_description=readme(), platforms='any', py_modules=['urwid_stackedwidget'], classifiers=[ 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'License :: Public Domain', 'Operating System :: MacOS :: MacOS X', 'Operating System :: POSIX', 'Operating System :: Unix', 'Programming Language :: Python', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: Implementation :: CPython', 'Topic :: Internet', 'Topic :: Software Development :: Libraries :: Python Modules'], install_requires=['urwid'], )
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
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 fields = ('name',) extra = 0 class BackdropUserAdmin(reversion.VersionAdmin): search_fields = ['email', 'data_sets'] list_display = ('email', 'numer_of_datasets_user_has_access_to',) list_per_page = 30 def queryset(self, request): return BackdropUser.objects.annotate( dataset_count=models.Count('data_sets') ) def numer_of_datasets_user_has_access_to(self, obj): return obj.dataset_count numer_of_datasets_user_has_access_to.admin_order_field = 'dataset_count' admin.site.register(BackdropUser, BackdropUserAdmin)
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 fields = ('name',) extra = 0 class BackdropUserAdmin(reversion.VersionAdmin): search_fields = ['email'] list_display = ('email', 'numer_of_datasets_user_has_access_to',) list_per_page = 30 def queryset(self, request): return BackdropUser.objects.annotate( dataset_count=models.Count('data_sets') ) def numer_of_datasets_user_has_access_to(self, obj): return obj.dataset_count numer_of_datasets_user_has_access_to.admin_order_field = 'dataset_count' admin.site.register(BackdropUser, BackdropUserAdmin)
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
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', ) tests_require = ( 'mock', # only required for python2 'WebTest', ) setup( name='cnx-authoring', version='0.1', author='Connexions team', author_email='info@cnx.org', url='https://github.com/connexions/cnx-authoring', license='LGPL, See also LICENSE.txt', description='Unpublished repo', packages=find_packages(exclude=['*.tests', '*.tests.*']), install_requires=install_requires, tests_require=tests_require, package_data={ 'cnxauthoring.storage': ['sql/*.sql', 'sql/*/*.sql'], }, entry_points={ 'paste.app_factory': [ 'main = cnxauthoring:main', ], 'console_scripts': [ 'cnx-authoring-initialize_db = cnxauthoring.scripts.initializedb:main' ] }, test_suite='cnxauthoring.tests', zip_safe=False, )
# -*- 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', ) tests_require = ( 'mock', # only required for python2 'WebTest', ) setup( name='cnx-authoring', version='0.1', author='Connexions team', author_email='info@cnx.org', url='https://github.com/connexions/cnx-authoring', license='LGPL, See also LICENSE.txt', description='Unpublished repo', packages=find_packages(exclude=['*.tests', '*.tests.*']), install_requires=install_requires, tests_require=tests_require, package_data={ 'cnxauthoring.storage': ['sql/*.sql', 'sql/*/*.sql'], }, entry_points={ 'paste.app_factory': [ 'main = cnxauthoring:main', ], 'console_scripts': [ 'cnx-authoring-initialize_db = cnxauthoring.scripts.initializedb:main' ] }, test_suite='cnxauthoring.tests', zip_safe=False, )
Use the latest version of openstax-accounts
Use the latest version of openstax-accounts
Python
agpl-3.0
Connexions/cnx-authoring
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-eventsocket', license='LICENSE.txt', description='Easy to use TCP socket based on libevent', install_requires = requirements, long_description=open('README.rst').read(), keywords=['socket', 'event'], classifiers=[ 'Development Status :: 4 - Beta', 'License :: OSI Approved :: BSD License', "Intended Audience :: Developers", "Operating System :: POSIX", "Topic :: Communications", "Topic :: Software Development :: Libraries :: Python Modules", 'Programming Language :: Python', 'Topic :: Software Development :: Libraries' ] )
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', py_modules = ['eventsocket'], description='Easy to use TCP socket based on libevent', install_requires = requirements, long_description=open('README.rst').read(), keywords=['socket', 'event'], classifiers=[ 'Development Status :: 4 - Beta', 'License :: OSI Approved :: BSD License', "Intended Audience :: Developers", "Operating System :: POSIX", "Topic :: Communications", "Topic :: Software Development :: Libraries :: Python Modules", 'Programming Language :: Python', 'Topic :: Software Development :: Libraries' ] )
Use py_modules and not packages
Use py_modules and not packages
Python
bsd-3-clause
agoragames/py-eventsocket
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/*']}, entry_points={ 'console_scripts': [ 'git-auto-deploy = gitautodeploy.__main__:main' ] }, install_requires=[ 'lockfile' ], description = "Deploy your GitHub, GitLab or Bitbucket projects automatically on Git push events or webhooks.", long_description = "GitAutoDeploy consists of a HTTP server that listens for Web hook requests sent from GitHub, GitLab or Bitbucket servers. This application allows you to continuously and automatically deploy you projects each time you push new commits to your repository." )
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) for filename in filenames: if filename[0] == ".": continue paths.append(os.path.join(relative_path, filename)) return paths # Get path to project package_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), "gitautodeploy") # Get list of data files wwwroot_files = package_files(package_path, "wwwroot") data_files = package_files(package_path, "data") setup(name='git-auto-deploy', version='0.9.1', url='https://github.com/olipo186/Git-Auto-Deploy', author='Oliver Poignant', author_email='oliver@poignant.se', packages = find_packages(), package_data={'gitautodeploy': data_files + wwwroot_files}, entry_points={ 'console_scripts': [ 'git-auto-deploy = gitautodeploy.__main__:main' ] }, install_requires=[ 'lockfile' ], description = "Deploy your GitHub, GitLab or Bitbucket projects automatically on Git push events or webhooks.", long_description = "GitAutoDeploy consists of a HTTP server that listens for Web hook requests sent from GitHub, GitLab or Bitbucket servers. This application allows you to continuously and automatically deploy you projects each time you push new commits to your repository." )
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
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='Incuna', author_email='admin@incuna.com', url='https://github.com/incuna/feincms-extensions/', install_requires=install_requires, zip_safe=False, )
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', author_email='admin@incuna.com', url='https://github.com/incuna/feincms-extensions/', install_requires=install_requires, zip_safe=False, )
Remove package name to package_data
Remove package name to package_data
Python
bsd-2-clause
incuna/feincms-extensions,incuna/feincms-extensions
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))) setup( name='djqgrid', version='0.0.2', packages=['djqgrid', 'djqgrid.templatetags'], include_package_data=True, license='MIT license', description='A Django wrapper for jqGrid', long_description=README, url='https://github.com/zmbq/djqgrid/', author='Itay Zandbank', author_email='zmbq@platonix.com', install_requires=['django>=1.6'], classifiers=[ 'Environment :: Web Environment', 'Framework :: Django', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Topic :: Internet :: WWW/HTTP', 'Topic :: Internet :: WWW/HTTP :: Dynamic Content', 'Development Status :: 3 - Alpha', ], keywords='django jqgrid client-side grid', )
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))) setup( name='djqgrid', version='0.1', packages=['djqgrid', 'djqgrid.templatetags'], include_package_data=True, license='MIT license', description='A Django wrapper for jqGrid', long_description=README, url='https://github.com/zmbq/djqgrid/', author='Itay Zandbank', author_email='zmbq@platonix.com', install_requires=['django>=1.6'], classifiers=[ 'Environment :: Web Environment', 'Framework :: Django', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Topic :: Internet :: WWW/HTTP', 'Topic :: Internet :: WWW/HTTP :: Dynamic Content', 'Development Status :: 3 - Alpha', ], keywords='django jqgrid client-side grid', )
Tag version 0.1, ready for upload to PyPI.
Tag version 0.1, ready for upload to PyPI.
Python
mit
zmbq/djqgrid,zmbq/djqgrid
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 for Python virtualenv.', author="Kevin Conway", author_email="kevinjacobconway@gmail.com", long_description=README, license='MIT', packages=find_packages(exclude=['tests', 'build', 'dist', 'docs']), install_requires=[ 'jinja2', 'venvctrl', 'argparse', 'confpy', 'ordereddict', 'semver', ], entry_points={ 'console_scripts': [ 'rpmvenv = rpmvenv.cli:main', ], 'rpmvenv.extensions': [ 'core = rpmvenv.extensions.core:Extension', 'file_permissions = rpmvenv.extensions.files.permissions:Extension', 'file_extras = rpmvenv.extensions.files.extras:Extension', 'python_venv = rpmvenv.extensions.python.venv:Extension', 'blocks = rpmvenv.extensions.blocks.generic:Extension', ] }, package_data={ "rpmvenv": ["templates/*"], }, )
"""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 for Python virtualenv.', author="Kevin Conway", author_email="kevinjacobconway@gmail.com", long_description=README, license='MIT', packages=find_packages(exclude=['tests', 'build', 'dist', 'docs']), install_requires=[ 'jinja2', 'venvctrl', 'argparse', 'confpy', 'ordereddict', 'semver', ], entry_points={ 'console_scripts': [ 'rpmvenv = rpmvenv.cli:main', ], 'rpmvenv.extensions': [ 'core = rpmvenv.extensions.core:Extension', 'file_permissions = rpmvenv.extensions.files.permissions:Extension', 'file_extras = rpmvenv.extensions.files.extras:Extension', 'python_venv = rpmvenv.extensions.python.venv:Extension', 'blocks = rpmvenv.extensions.blocks.generic:Extension', ] }, package_data={ "rpmvenv": ["templates/*"], }, )
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
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 simplify local development', long_description=open('README.rst').read(), changelog_url='https://raw.githubusercontent.com/maxzheng/workspace-tools/master/docs/CHANGELOG.rst', url='https://github.com/maxzheng/workspace-tools', entry_points={ 'console_scripts': [ 'wst = workspace.controller:Commander.main', ], }, install_requires=open('requirements.txt').read(), license='MIT', packages=setuptools.find_packages(), include_package_data=True, setup_requires=['setuptools-git'], classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'Topic :: Software Development', 'License :: OSI Approved :: MIT License', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', ], keywords='workspace multiple repositories git scm abstraction development tools', )
#!/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 simplify local development', long_description=open('README.rst').read(), changelog_url='https://raw.githubusercontent.com/maxzheng/workspace-tools/master/docs/CHANGELOG.rst', url='https://github.com/maxzheng/workspace-tools', entry_points={ 'console_scripts': [ 'wst = workspace.controller:Commander.main', ], }, install_requires=open('requirements.txt').read(), license='MIT', packages=setuptools.find_packages(), include_package_data=True, setup_requires=['setuptools-git'], classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'Topic :: Software Development', 'License :: OSI Approved :: MIT License', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', ], keywords='workspace multiple repositories git scm abstraction development tools', )
Use proper email format for author
Use proper email format for author
Python
mit
maxzheng/workspace-tools
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@users.noreply.github.com", url="https://github.com/thsnr/gygax", packages=["gygax", "gygax.modules"], scripts=["scripts/gygax"], license="MIT", classifiers=[ "Development Status :: 3 - Alpha", "Environment :: No Input/Output (Daemon)", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3.7", "Topic :: Communications :: Chat :: Internet Relay Chat", ], install_requires=['beautifulsoup4'], )
#!/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@users.noreply.github.com", url="https://github.com/thsnr/gygax", packages=["gygax", "gygax.modules"], scripts=["scripts/gygax"], license="MIT", classifiers=[ "Development Status :: 3 - Alpha", "Environment :: No Input/Output (Daemon)", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3.7", "Topic :: Communications :: Chat :: Internet Relay Chat", ], requires=['beautifulsoup4'], )
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
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', 'h5py', 'six>=1.10.0', 'scikit-learn', 'scanpy', 'kopt', 'pandas' #for preprocessing ], url='https://github.com/theislab/dca', entry_points={ 'console_scripts': [ 'dca = dca.__main__:main' ]}, license='Apache License 2.0', classifiers=['License :: OSI Approved :: Apache Software License', 'Topic :: Scientific/Engineering :: Artificial Intelligence', 'Programming Language :: Python :: 3.5'], )
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', 'tensorflow>=2.0', 'h5py', 'six>=1.10.0', 'scikit-learn', 'scanpy', 'kopt', 'pandas' #for preprocessing ], url='https://github.com/theislab/dca', entry_points={ 'console_scripts': [ 'dca = dca.__main__:main' ]}, license='Apache License 2.0', classifiers=['License :: OSI Approved :: Apache Software License', 'Topic :: Scientific/Engineering :: Artificial Intelligence', 'Programming Language :: Python :: 3.5'], )
Add tf to the requirements
Add tf to the requirements
Python
apache-2.0
theislab/dca,theislab/dca,theislab/dca
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/xml_models', packages=['xml_models'], install_requires=['lxml', 'python-dateutil', 'pytz', 'future', 'requests'], tests_require=['mock', 'nose', 'coverage'], test_suite="nose.collector" )
#!/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 external REST apis', long_description=long_description, author='Geoff Ford and Chris Tarttelin and Cam McHugh', author_email='g_ford@hotmail.ccom', url='http://github.com/alephnullplex/xml_models', packages=['xml_models'], install_requires=['lxml', 'python-dateutil', 'pytz', 'future', 'requests'], tests_require=['mock', 'nose', 'coverage'], test_suite="nose.collector" )
Convert MD to reST for pypi
Convert MD to reST for pypi
Python
bsd-2-clause
iamwucheng/xml_models2,alephnullplex/xml_models2
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", "Intended Audience :: End Users/Desktop", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Internet :: WWW/HTTP :: Dynamic Content :: CGI Tools/Libraries", "Topic :: Utilities", "License :: OSI Approved :: Private", ], keywords='k-state-common', author='Derek Stegelman, Garrett Pennington', author_email='derekst@k-state.edu, garrett@k-state.edu', url='http://github.com/kstateome/django-cas/', license='Public', packages=find_packages(), include_package_data=True, zip_safe=True, )
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", "Intended Audience :: End Users/Desktop", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Internet :: WWW/HTTP :: Dynamic Content :: CGI Tools/Libraries", "Topic :: Utilities", "License :: OSI Approved :: Private", ], keywords='k-state-common', author='Derek Stegelman, Garrett Pennington', author_email='derekst@k-state.edu, garrett@k-state.edu', url='http://github.com/kstateome/django-cas/', license='MIT', packages=find_packages(), include_package_data=True, zip_safe=True, )
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
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 care', 'medical record', 'twisted'], classifiers = [ 'License :: OSI Approved :: BSD License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Development Status :: 3 - Alpha', 'Framework :: Twisted', 'Intended Audience :: Developers', 'Intended Audience :: Healthcare Industry', 'Topic :: Communications', 'Topic :: Scientific/Engineering :: Medical Science Apps.', 'Topic :: Software Development :: Libraries :: Python Modules', 'Topic :: System :: Networking' ], packages = ['twistedhl7'], install_requires = [ # require twisted, but allow client to require specific version 'twisted', 'hl7' ], )
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 care', 'medical record', 'twisted'], classifiers = [ 'License :: OSI Approved :: BSD License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Development Status :: 3 - Alpha', 'Framework :: Twisted', 'Intended Audience :: Developers', 'Intended Audience :: Healthcare Industry', 'Topic :: Communications', 'Topic :: Scientific/Engineering :: Medical Science Apps.', 'Topic :: Software Development :: Libraries :: Python Modules', 'Topic :: System :: Networking' ], packages = ['twistedhl7'], install_requires = [ # require twisted, but allow client to require specific version 'twisted', 'hl7' ], )
Increment version for 0.0.2 release.
Increment version for 0.0.2 release.
Python
bsd-3-clause
johnpaulett/txHL7
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 Gaynor', author_email='alex.gaynor@gmail.com', url='http://github.com/alex/django-taggit/tree/master', packages=find_packages(), classifiers=[ 'Development Status :: 4 - Beta', 'Environment :: Web Environment', 'Intended Audience :: Developers', 'License :: OSI Approved :: BSD License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Framework :: Django', ], )
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 tagging.', long_description=readme, author='Alex Gaynor', author_email='alex.gaynor@gmail.com', url='http://github.com/alex/django-taggit/tree/master', packages=find_packages(), classifiers=[ 'Development Status :: 4 - Beta', 'Environment :: Web Environment', 'Intended Audience :: Developers', 'License :: OSI Approved :: BSD License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Framework :: Django', ], )
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,decibyte/django-taggit,decibyte/django-taggit,7kfpun/django-taggit,eugena/django-taggit,guoqiao/django-taggit,IRI-Research/django-taggit,theatlantic/django-taggit2,Maplecroft/django-taggit,Eksmo/django-taggit,gem/django-taggit,benjaminrigaud/django-taggit,theatlantic/django-taggit
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/pipermail/peak/2010-May/003357.html) try: import multiprocessing except ImportError: pass setup( name='Willow', version='0.4a0', description='A Python image library that sits on top of Pillow, Wand and OpenCV', author='Karl Hobley', author_email='karlhobley10@gmail.com', url='', packages=find_packages(), include_package_data=True, license='BSD', classifiers=[ 'Development Status :: 2 - Pre-Alpha', 'Topic :: Multimedia :: Graphics', 'Topic :: Multimedia :: Graphics :: Graphics Conversion', 'Intended Audience :: Developers', 'License :: OSI Approved :: BSD License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', ], install_requires=[], zip_safe=False, )
#!/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/pipermail/peak/2010-May/003357.html) try: import multiprocessing except ImportError: pass setup( name='Willow', version='0.4a0', description='A Python image library that sits on top of Pillow, Wand and OpenCV', author='Karl Hobley', author_email='karlhobley10@gmail.com', url='', packages=find_packages(exclude=['tests']), include_package_data=True, license='BSD', classifiers=[ 'Development Status :: 2 - Pre-Alpha', 'Topic :: Multimedia :: Graphics', 'Topic :: Multimedia :: Graphics :: Graphics Conversion', 'Intended Audience :: Developers', 'License :: OSI Approved :: BSD License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', ], install_requires=[], zip_safe=False, )
Exclude tests package from distribution
Exclude tests package from distribution
Python
bsd-3-clause
gasman/Willow,gasman/Willow,torchbox/Willow,torchbox/Willow
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 Python", license=read('LICENSE'), keywords="profiling", url="https://github.com/smarkets/statprof", py_modules=['statprof'], long_description=read('README.rst'), classifiers=[ "Development Status :: 3 - Alpha", "Topic :: Utilities", "License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3", ], install_requires=[ 'six>=1.5.0', ], )
#!/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 Python", license=read('LICENSE'), keywords="profiling", url="https://github.com/smarkets/statprof", py_modules=['statprof'], long_description=read('README.rst'), classifiers=[ "Development Status :: 3 - Alpha", "Topic :: Utilities", "License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3", ], install_requires=[ 'six>=1.5.0', ], zip_safe=False, )
Mark package as not zip_safe
Mark package as not zip_safe
Python
lgpl-2.1
smarkets/statprof
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(ModelForm): class Meta: model = Carousel def clean_domid(self): data = self.cleaned_data['domid'] if not re.match(r'^[a-zA-Z_]\w*$', data): raise ValidationError(_("The name must be a single word beginning with a letter")) return data class CarouselItemInline(admin.StackedInline): model = CarouselItem class CarouselPlugin(CMSPluginBase): model = Carousel form = CarouselForm name = _("Carousel") render_template = "cmsplugin_bootstrap_carousel/carousel.html" inlines = [ CarouselItemInline, ] def render(self, context, instance, placeholder): context.update({'instance' : instance}) return context plugin_pool.register_plugin(CarouselPlugin)
# 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(ModelForm): class Meta: model = Carousel def clean_domid(self): data = self.cleaned_data['domid'] if not re.match(r'^[a-zA-Z_]\w*$', data): raise ValidationError(_("The name must be a single word beginning with a letter")) return data class CarouselItemInline(admin.StackedInline): model = CarouselItem extra = 0 class CarouselPlugin(CMSPluginBase): model = Carousel form = CarouselForm name = _("Carousel") render_template = "cmsplugin_bootstrap_carousel/carousel.html" inlines = [ CarouselItemInline, ] def render(self, context, instance, placeholder): context.update({'instance' : instance}) return context plugin_pool.register_plugin(CarouselPlugin)
Change extra from 3 to 0.
Change extra from 3 to 0.
Python
bsd-3-clause
360youlun/cmsplugin-bootstrap-carousel,360youlun/cmsplugin-bootstrap-carousel
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@topographica.org", maintainer= "IOAM", maintainer_email= "developers@topographica.org", platforms=['Windows', 'Mac OS X', 'Linux'], license='BSD', url='http://ioam.github.com/param/', packages = ["param"], classifiers = [ "License :: OSI Approved :: BSD License", # (until packaging tested) "Development Status :: 4 - Beta", "Programming Language :: Python :: 2.5", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Operating System :: OS Independent", "Intended Audience :: Science/Research", "Intended Audience :: Developers", "Natural Language :: English", "Topic :: Scientific/Engineering", "Topic :: Software Development :: Libraries"] )) if __name__=="__main__": setup(**setup_args)
#!/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@topographica.org", maintainer= "IOAM", maintainer_email= "developers@topographica.org", platforms=['Windows', 'Mac OS X', 'Linux'], license='BSD', url='http://ioam.github.com/param/', packages = ["param"], classifiers = [ "License :: OSI Approved :: BSD License", "Development Status :: 5 - Production/Stable", "Programming Language :: Python :: 2.5", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Operating System :: OS Independent", "Intended Audience :: Science/Research", "Intended Audience :: Developers", "Natural Language :: English", "Topic :: Scientific/Engineering", "Topic :: Software Development :: Libraries"] )) if __name__=="__main__": setup(**setup_args)
Update version number to 1.0.
Update version number to 1.0.
Python
bsd-3-clause
ceball/param,ioam/param
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
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/wikilinks/sift', scripts = [ 'scripts/sift', 'scripts/download-wikipedia' ], classifiers=[ 'Development Status :: 4 - Beta', 'Environment :: Console', 'Intended Audience :: Science/Research', 'License :: OSI Approved :: MIT License', 'Programming Language :: Python :: 2.7', 'Topic :: Text Processing :: Linguistic' ], install_requires = [ "ujson", "numpy", "pattern", "gensim", "msgpack-python" ], test_suite = __pkg_name__ + '.test' )
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/wikilinks/sift', scripts = [ 'scripts/download-wikipedia' ], classifiers=[ 'Development Status :: 4 - Beta', 'Environment :: Console', 'Intended Audience :: Science/Research', 'License :: OSI Approved :: MIT License', 'Programming Language :: Python :: 2.7', 'Topic :: Text Processing :: Linguistic' ], install_requires = [ "ujson", "numpy", "pattern", "gensim", "msgpack-python" ], test_suite = __pkg_name__ + '.test' )
Remove all sift cli script command from package
Remove all sift cli script command from package
Python
mit
wikilinks/sift,wikilinks/sift
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.') parser.add_argument('-c', '--config', help='the config file to read from', type=str, required=True) cmdArgs = parser.parse_args() os.chdir(os.path.dirname(os.path.abspath(__file__))) # Set up logging for stdout on the root 'desertbot' logger # Modules can then just add more handlers to the root logger to capture all logs to files in various ways rootLogger = logging.getLogger('desertbot') rootLogger.setLevel(logging.INFO) # TODO change this from config value once it's loaded logFormatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s', '%H:%M:%S') streamHandler = logging.StreamHandler(stream=sys.stdout) streamHandler.setFormatter(logFormatter) rootLogger.addHandler(streamHandler) config = Config(cmdArgs.config) try: config.loadConfig() except ConfigError: rootLogger.exception("Failed to load configuration file {}".format(cmdArgs.config)) else: factory = DesertBotFactory(config) reactor.run()
# -*- 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.') 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)', type=str, default='INFO') cmdArgs = parser.parse_args() os.chdir(os.path.dirname(os.path.abspath(__file__))) # Set up logging for stdout on the root 'desertbot' logger # Modules can then just add more handlers to the root logger to capture all logs to files in various ways rootLogger = logging.getLogger('desertbot') numericLevel = getattr(logging, cmdArgs.loglevel.upper(), None) if isinstance(numericLevel, int): rootLogger.setLevel(numericLevel) else: raise ValueError('Invalid log level {}'.format(cmdArgs.loglevel)) logFormatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s', '%H:%M:%S') streamHandler = logging.StreamHandler(stream=sys.stdout) streamHandler.setFormatter(logFormatter) rootLogger.addHandler(streamHandler) config = Config(cmdArgs.config) try: config.loadConfig() except ConfigError: rootLogger.exception("Failed to load configuration file {}".format(cmdArgs.config)) else: factory = DesertBotFactory(config) reactor.run()
Make the logging level configurable
Make the logging level configurable
Python
mit
DesertBot/DesertBot
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): '''Mock host implementation.''' def get_selection(self): '''Return current selection.''' return ['|group1|objectA', '|group2|objectB', '|objectC', '|group3|group4|objectD'] def get_frame_range(self): '''Return current frame range.''' return (1.0, 24.0) def save(self): '''Export.''' print 'Export.''' for index in range(10): print 10 - index time.sleep(1) if __name__ == '__main__': '''Interactively test the exporter.''' app = QtGui.QApplication(sys.argv) host = MockHost() processors = discover_processors(paths=[ os.path.join(os.path.dirname(__file__), 'plugin') ]) widget = ExporterWidget(host=host, processors=processors) widget.show() raise SystemExit(app.exec_())
# :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): '''Mock host implementation.''' def get_selection(self): '''Return current selection.''' return ['|group1|objectA', '|group2|objectB', '|objectC', '|group3|group4|objectD'] def get_frame_range(self): '''Return current frame range.''' return (1.0, 24.0) def save(self, target=None): '''Save scene.''' pass def save_package(self, selection=None, source=None, target=None, start=None, stop=None, step=1): '''Export.''' print 'Export.''' for index in range(10): print 10 - index time.sleep(1) if __name__ == '__main__': '''Interactively test the exporter.''' app = QtGui.QApplication(sys.argv) host = MockHost() processors = discover_processors(paths=[ os.path.join(os.path.dirname(__file__), 'plugin') ]) widget = ExporterWidget(host=host, processors=processors) widget.show() raise SystemExit(app.exec_())
Update mock host to match new interface.
Update mock host to match new interface.
Python
apache-2.0
4degrees/segue
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 glob import glob from lib import get_project_dir import sys def normalize(in_file, out_file): worksheet = in_file.worksheets[0] cell_list = [] # add graphic here & append to cell_list for cell in worksheet.cells: if cell.cell_type == ("code"): cell.outputs = [] cell.prompt_number = "" cell_list.append(cell) output_nb = nbf.new_notebook() # XXX should set name ... output_nb.worksheets.append(nbf.new_worksheet(cells=cell_list)) nbf.write(output_nb, out_file, "ipynb") if __name__ == "__main__": if len(sys.argv) == 3: infile = open(sys.argv[1]) outfile = open(sys.argv[2],"w") else: infile = sys.stdin outfile = sys.stdout normalize(nbf.read(infile, "ipynb"), sys.stdout)
#!/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 glob import glob from lib import get_project_dir import sys def normalize(in_file, out_file): worksheet = in_file.worksheets[0] cell_list = [] # add graphic here & append to cell_list for cell in worksheet.cells: if cell.cell_type == ("code"): cell.outputs = [] cell.prompt_number = "" cell_list.append(cell) output_nb = nbf.new_notebook() # XXX should set name ... output_nb.worksheets.append(nbf.new_worksheet(cells=cell_list)) nbf.write(output_nb, out_file, "ipynb") if __name__ == "__main__": 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 try: normalize(nbf.read(infile, "ipynb"), outfile) except Exception as e: sys.exit("Normalization error: '{}'".format(str(e)))
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
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': { 'ENGINE': 'django.db.backends.sqlite3', } }, OPAL_OPTIONS_MODULE = 'referral.tests.dummy_options_module', ROOT_URLCONF='referral.urls', STATIC_URL='/assets/', INSTALLED_APPS=('django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.staticfiles', 'django.contrib.admin', 'opal', 'opal.tests', 'referral',)) from django.test.runner import DiscoverRunner test_runner = DiscoverRunner(verbosity=1) if len(sys.argv) == 2: failures = test_runner.run_tests([sys.argv[-1], ]) else: failures = test_runner.run_tests(['referral', ]) if failures: sys.exit(failures)
""" 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': { 'ENGINE': 'django.db.backends.sqlite3', } }, OPAL_OPTIONS_MODULE = 'referral.tests.dummy_options_module', ROOT_URLCONF='referral.urls', STATIC_URL='/assets/', STATIC_ROOT='static', STATICFILES_FINDERS = ( 'django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder', 'compressor.finders.CompressorFinder',), INSTALLED_APPS=('django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.staticfiles', 'django.contrib.admin', 'compressor', 'opal', 'opal.tests', 'referral',)) from django.test.runner import DiscoverRunner test_runner = DiscoverRunner(verbosity=1) if len(sys.argv) == 2: failures = test_runner.run_tests([sys.argv[-1], ]) else: failures = test_runner.run_tests(['referral', ]) if failures: sys.exit(failures)
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
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
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): loop = asyncio.get_event_loop() return Deferred.fromFuture(loop.create_task(self._open_spider(spider))) def process_item(self, item, spider): return {"url": item["url"].upper()} class UrlSpider(scrapy.Spider): name = "url_spider" start_urls = ["data:,"] custom_settings = { "ITEM_PIPELINES": {UppercasePipeline: 100}, } def parse(self, response): yield {"url": response.url} if __name__ == "__main__": try: ASYNCIO_EVENT_LOOP = sys.argv[1] except IndexError: ASYNCIO_EVENT_LOOP = None process = CrawlerProcess(settings={ "TWISTED_REACTOR": "twisted.internet.asyncioreactor.AsyncioSelectorReactor", "ASYNCIO_EVENT_LOOP": ASYNCIO_EVENT_LOOP, }) process.crawl(UrlSpider) process.start()
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!") await asyncio.sleep(0.1) def open_spider(self, spider): loop = asyncio.get_event_loop() return deferred_from_coro(self._open_spider(spider)) def process_item(self, item, spider): return {"url": item["url"].upper()} class UrlSpider(Spider): name = "url_spider" start_urls = ["data:,"] custom_settings = { "ITEM_PIPELINES": {UppercasePipeline: 100}, } def parse(self, response): yield {"url": response.url} if __name__ == "__main__": try: ASYNCIO_EVENT_LOOP = sys.argv[1] except IndexError: ASYNCIO_EVENT_LOOP = None process = CrawlerProcess(settings={ "TWISTED_REACTOR": "twisted.internet.asyncioreactor.AsyncioSelectorReactor", "ASYNCIO_EVENT_LOOP": ASYNCIO_EVENT_LOOP, }) process.crawl(UrlSpider) process.start()
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
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 is used locally. In nginx: location /myprefix { proxy_pass http://192.168.0.1:5001; proxy_set_header Host $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Scheme $scheme; proxy_set_header X-Script-Name /myprefix; } :param app: the WSGI application ''' def __init__(self, app): self.app = app def __call__(self, environ, start_response): script_name = environ.get('HTTP_X_SCRIPT_NAME', '') if script_name: environ['SCRIPT_NAME'] = script_name path_info = environ['PATH_INFO'] if path_info.startswith(script_name): environ['PATH_INFO'] = path_info[len(script_name):] scheme = environ.get('HTTP_X_SCHEME', '') if scheme: environ['wsgi.url_scheme'] = scheme return self.app(environ, start_response)
# 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 is used locally. In nginx: location /myprefix { proxy_pass http://192.168.0.1:5001; proxy_set_header Host $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Scheme $scheme; proxy_set_header X-Script-Name /myprefix; } :param app: the WSGI application ''' def __init__(self, app): self.app = app def __call__(self, environ, start_response): script_name = environ.get('HTTP_X_SCRIPT_NAME', '') if script_name: environ['SCRIPT_NAME'] = script_name path_info = environ['PATH_INFO'] if path_info.startswith(script_name): environ['PATH_INFO'] = path_info[len(script_name):] scheme = environ.get('HTTP_X_SCHEME', '') 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)
Add __getattr__ passthrough on ReverseProxied.
Add __getattr__ passthrough on ReverseProxied.
Python
mit
mbr/flask-appconfig
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 # Application modules #=============================================================================== # Check script is running #=============================================================================== def is_running(script_name): '''Checks list of processes for script name and filters out lines with the PID and parent PID. Returns a TRUE if other script with the same name is found running.''' try: logger = logging.getLogger('root') cmd1 = subprocess.Popen(['ps', '-ef'], stdout=subprocess.PIPE) cmd2 = subprocess.Popen(['grep', '-v', 'grep'], stdin=cmd1.stdout, stdout=subprocess.PIPE) cmd3 = subprocess.Popen(['grep', '-v', str(os.getpid())], stdin=cmd2.stdout, stdout=subprocess.PIPE) cmd4 = subprocess.Popen(['grep', '-v', str(os.getppid())], stdin=cmd3.stdout, stdout=subprocess.PIPE) cmd5 = subprocess.Popen(['grep', script_name], stdin=cmd4.stdout, stdout=subprocess.PIPE) other_script_found = cmd5.communicate()[0] if other_script_found: logger.error('Script already runnning. Exiting...') logger.error(other_script_found) return True return False except Exception, e: logger.error('System check failed ({error_v}). Exiting...'.format( error_v=e)) return True
#!/usr/bin/env python '''Checks processes''' #=============================================================================== # Import modules #=============================================================================== # Standard Library import os import subprocess import logging # Third party modules # Application modules #=============================================================================== # Check script is running #=============================================================================== def is_running(script_name): '''Checks list of processes for script name and filters out lines with the PID and parent PID. Returns a TRUE if other script with the same name is found running.''' try: logger = logging.getLogger('root') cmd1 = subprocess.Popen(['ps', '-ef'], stdout=subprocess.PIPE) cmd2 = subprocess.Popen(['grep', '-v', 'grep'], stdin=cmd1.stdout, stdout=subprocess.PIPE) cmd3 = subprocess.Popen(['grep', '-v', str(os.getpid())], stdin=cmd2.stdout, stdout=subprocess.PIPE) cmd4 = subprocess.Popen(['grep', '-v', str(os.getppid())], stdin=cmd3.stdout, stdout=subprocess.PIPE) cmd5 = subprocess.Popen(['grep', script_name], stdin=cmd4.stdout, stdout=subprocess.PIPE) other_script_found = cmd5.communicate()[0] if other_script_found: logger.info('Script already runnning. Exiting...') logger.info(other_script_found) return True return False except Exception, e: logger.error('System check failed ({error_v}). Exiting...'.format( error_v=e)) return True
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
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 values.""" truthiness = None if value.lower() == 'true': truthiness = True elif value.lower() == 'false': truthiness = False return yesno(truthiness, arg) @register.filter def httpreason(value, arg=False): """ Uses django's REASON_PHRASES to change a status_code into a textual reason. 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: return '' phrase = REASON_PHRASES.get(value_int, 'UNKNOWN STATUS CODE') if arg: phrase = '{0}: {1}'.format(value, phrase) return phrase
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 values.""" truthiness = None if value.lower() == 'true': truthiness = True elif value.lower() == 'false': truthiness = False return yesno(truthiness, arg) @register.filter def httpreason(value, arg=False): """ Uses django's REASON_PHRASES to change a status_code into a textual reason. Optional True/False argument allows you to return a string with code number *and* phrase. Defaults to False""" try: value_int = int(value) except Exception: return '' phrase = REASON_PHRASES.get(value_int, 'UNKNOWN STATUS CODE') if arg: phrase = '{0}: {1}'.format(value, phrase) return phrase
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
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_ended import check_open_ended from atlas.prodtask.task_views import sync_old_tasks import logging _logger = logging.getLogger('prodtaskwebui') @app.task def test_celery(): _logger.info('test celery') return 2 @app.task(ignore_result=True) def sync_tasks(): sync_old_tasks(-1) return None @app.task(ignore_result=True) def step_actions(): find_action_to_execute() return None @app.task(ignore_result=True) def data_carousel(): submit_all_tapes_processed() return None @app.task(ignore_result=True) def open_ended(): check_open_ended() return None @app.task(ignore_result=True) def request_hashtags(): hashtag_request_to_tasks() return None @app.task(ignore_result=True) def sync_evgen_jo(): sync_cvmfs_db() return None
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 from atlas.prodtask.open_ended import check_open_ended from atlas.prodtask.task_views import sync_old_tasks import logging _logger = logging.getLogger('prodtaskwebui') @app.task def test_celery(): _logger.info('test celery') return 2 @app.task(ignore_result=True) def sync_tasks(): sync_old_tasks(-1) return None @app.task(ignore_result=True) def step_actions(): find_action_to_execute() return None @app.task(ignore_result=True) def data_carousel(): submit_all_tapes_processed() return None @app.task(ignore_result=True) def open_ended(): check_open_ended() return None @app.task(ignore_result=True) def request_hashtags(): hashtag_request_to_tasks() return None @app.task(ignore_result=True) def sync_evgen_jo(): sync_cvmfs_db() return None @app.task(ignore_result=True) def remove_done_staging(production_requests): delete_done_staging_rules(production_requests) return None
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
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.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. """Translation support for messages in this library. """ from oslo_i18n import _factory # Create the global translation functions. _translators = _factory.TranslatorFactory('oslo_i18n') # The primary translation function using the well-known name "_" _ = _translators.primary
# 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.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. """Translation support for messages in this library. """ from oslo_i18n import _factory # Create the global translation functions. _translators = _factory.TranslatorFactory('oslo.i18n') # The primary translation function using the well-known name "_" _ = _translators.primary
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
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 test_encoding == 'utf-8' def test_read_search_result(): test_body, test_encoding = read_search_results() assert "<span class=\"desktop\">craigslist</span>" in test_body assert test_encoding == 'utf-8' def test_parse_source(): test_body, test_encoding = read_search_results() test_parse = parse_source(test_body, test_encoding) assert isinstance(test_parse, bs4.BeautifulSoup) 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)
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 test_encoding == 'utf-8' def test_read_search_result(): test_body, test_encoding = read_search_results() assert "<span class=\"desktop\">craigslist</span>" in test_body assert test_encoding == 'utf-8' def test_parse_source(): test_body, test_encoding = read_search_results() test_parse = parse_source(test_body, test_encoding) assert isinstance(test_parse, bs4.BeautifulSoup) def test_extract_listings(): test_body, test_encoding = read_search_results() test_parse = parse_source(test_body, test_encoding) test_data = extract_listings(test_parse) assert isinstance(test_data, list) for dict_ in test_data: assert isinstance(dict_, dict)
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
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, ['floatX'], {'which_sources': which_sources})) class ToBytes(SourcewiseTransformer): """Transform a stream of ndarray examples to bytes. Notes ----- Used for retrieving variable-length byte data stored as, e.g. a uint8 ragged array. """ def __init__(self, stream, **kwargs): kwargs.setdefault('produces_examples', stream.produces_examples) axis_labels = stream.axis_labels for source in kwargs.get('which_sources', stream.sources): axis_labels[source] = (('batch', 'bytes') if 'batch' in axis_labels.get(source, ()) else ('bytes',)) kwargs.setdefault('axis_labels', axis_labels) super(ToBytes, self).__init__(stream, **kwargs) def transform_source_example(self, example, _): return example.tostring() def transform_source_batch(self, batch, _): return [example.tostring() for example in batch] def rgb_images_from_encoded_bytes(which_sources): return ((ToBytes, [], {'which_sources': ('encoded_images',)}), (ImagesFromBytes, [], {'which_sources': ('encoded_images',)}))
"""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, ['floatX'], {'which_sources': which_sources})) class ToBytes(SourcewiseTransformer): """Transform a stream of ndarray examples to bytes. Notes ----- Used for retrieving variable-length byte data stored as, e.g. a uint8 ragged array. """ def __init__(self, stream, **kwargs): kwargs.setdefault('produces_examples', stream.produces_examples) axis_labels = (stream.axis_labels if stream.axis_labels is not None else {}) for source in kwargs.get('which_sources', stream.sources): axis_labels[source] = (('batch', 'bytes') if 'batch' in axis_labels.get(source, ()) else ('bytes',)) kwargs.setdefault('axis_labels', axis_labels) super(ToBytes, self).__init__(stream, **kwargs) def transform_source_example(self, example, _): return example.tostring() def transform_source_batch(self, batch, _): return [example.tostring() for example in batch] def rgb_images_from_encoded_bytes(which_sources): return ((ToBytes, [], {'which_sources': ('encoded_images',)}), (ImagesFromBytes, [], {'which_sources': ('encoded_images',)}))
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
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': "Pythonic remote execution", 'github_user': 'fabric', 'github_repo': 'fabric', 'gittip_user': 'bitprophet', 'analytics_id': 'UA-18486793-1', } html_sidebars = { '**': [ 'about.html', 'navigation.html', 'searchbox.html', 'donate.html', ] } # Regular settings project = 'Fabric' year = datetime.now().year copyright = '%d Jeff Forcier' % year master_doc = 'index' templates_path = ['_templates'] exclude_trees = ['_build'] source_suffix = '.rst' default_role = 'obj'
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_theme_options = { 'description': "Pythonic remote execution", 'github_user': 'fabric', 'github_repo': 'fabric', 'gittip_user': 'bitprophet', 'analytics_id': 'UA-18486793-1', } html_sidebars = { '**': [ 'about.html', 'navigation.html', 'searchbox.html', 'donate.html', ] } # Regular settings project = 'Fabric' year = datetime.now().year copyright = '%d Jeff Forcier' % year master_doc = 'index' templates_path = ['_templates'] exclude_trees = ['_build'] source_suffix = '.rst' default_role = 'obj'
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/fabric,rodrigc/fabric,xLegoz/fabric,elijah513/fabric,opavader/fabric,cmattoon/fabric,askulkarni2/fabric,rane-hs/fabric-py3,fernandezcuesta/fabric,StackStorm/fabric,itoed/fabric
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): return '<{}: {}>'.format(self.__class__.__name__, self.name)
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_string_type def __repr__(self): return '<{}: {}>'.format(self.__class__.__name__, self.name)
Add Place reference to State model
Add Place reference to State model
Python
mit
gadventures/gapipy
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 TestSkipped, "No openpty() available." if not os.isatty(slave): self.fail("Slave-end of pty is not a terminal.") os.write(slave, 'Ping!') self.assertEqual(os.read(master, 1024), 'Ping!') def test_main(): run_unittest(OpenptyTest) if __name__ == '__main__': test_main()
# 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.openpty() if not os.isatty(slave): self.fail("Slave-end of pty is not a terminal.") os.write(slave, 'Ping!') self.assertEqual(os.read(master, 1024), 'Ping!') def test_main(): run_unittest(OpenptyTest) if __name__ == '__main__': test_main()
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
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 cache busting hashes between ".browserify" and ".js" return re.search(r'\.browserify(\.[a-fA-F0-9]+)?\.js$', path) is not None def compile_file(self, infile, outfile, outdated=False, force=False): command = "%s %s %s > %s" % ( getattr(settings, 'PIPELINE_BROWSERIFY_BINARY', '/usr/bin/env browserify'), getattr(settings, 'PIPELINE_BROWSERIFY_ARGUMENTS', ''), infile, outfile ) return self.execute_command(command) def execute_command(self, command, content=None, cwd=None): """This is like the one in SubProcessCompiler, except it checks the exit code.""" import subprocess pipe = subprocess.Popen(command, shell=True, cwd=cwd, stdout=subprocess.PIPE, stdin=subprocess.PIPE, stderr=subprocess.PIPE) if content: content = smart_bytes(content) stdout, stderr = pipe.communicate(content) if self.verbose: print(stderr) if pipe.returncode != 0: raise CompilerError(stderr) return stdout
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 cache busting hashes between ".browserify" and ".js" 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" % ( pipeline_settings.get('BROWSERIFY_BINARY', '/usr/bin/env browserify'), pipeline_settings.get('BROWSERIFY_ARGUMENTS', ''), infile, outfile ) return self.execute_command(command) def execute_command(self, command, content=None, cwd=None): """This is like the one in SubProcessCompiler, except it checks the exit code.""" import subprocess pipe = subprocess.Popen(command, shell=True, cwd=cwd, stdout=subprocess.PIPE, stdin=subprocess.PIPE, stderr=subprocess.PIPE) if content: content = smart_bytes(content) stdout, stderr = pipe.communicate(content) if self.verbose: print(stderr) if pipe.returncode != 0: raise CompilerError(stderr) return stdout
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/kitsune,mozilla/kitsune,anushbmx/kitsune,MikkCZ/kitsune,mozilla/kitsune,brittanystoroz/kitsune,safwanrahman/kitsune
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'), url(r'^test-url-with-arg/([-\w]+)/$', lambda r, arg: HttpResponse('ok'), name='test_with_arg'), url(r'^test-url-with-kwarg/(?P<arg>[-\w]+)/$', lambda r, arg: HttpResponse('ok'), name='test_with_kwarg'), )
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'^test-url/$', lambda r: HttpResponse('ok'), name='test'), url(r'^test-url-with-arg/([-\w]+)/$', lambda r, arg: HttpResponse('ok'), name='test_with_arg'), url(r'^test-url-with-kwarg/(?P<arg>[-\w]+)/$', lambda r, arg: HttpResponse('ok'), name='test_with_kwarg'), ] if DJANGO_VERSION < (1, 10): urlpatterns = patterns('', *urlpatterns)
Add support for Django 1.11
Add support for Django 1.11
Python
unlicense
j4mie/django-activelink
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()) def test_app_initialized_by_ctor(self): app = Flask(__name__) autodoc = Autodoc(app) with app.app_context(): autodoc.html() def test_app_initialized_by_init_app(self): app = Flask(__name__) autodoc = Autodoc() autodoc.init_app(app) with app.app_context(): 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()) def test_app_not_initialized_json(self): app = Flask(__name__) autodoc = Autodoc() with app.app_context(): self.assertRaises(RuntimeError, lambda: autodoc.json()) def test_app_initialized_by_ctor(self): app = Flask(__name__) autodoc = Autodoc(app) with app.app_context(): autodoc.html() def test_app_initialized_by_init_app(self): app = Flask(__name__) autodoc = Autodoc() autodoc.init_app(app) with app.app_context(): 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
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')), ) name = models.CharField(max_length=100, verbose_name=_('Name')) gender = models.CharField(max_length=1, verbose_name=_('Gender'), choices=GENDET_CHOICES) civil_id = models.CharField(max_length=12, verbose_name=_('Civil ID')) phone_number = models.CharField(max_length=15, verbose_name=_('Phone Number')) job_title = models.CharField(max_length=15, verbose_name=_('Title')) enabled = models.BooleanField(default=True) user = models.OneToOneField(to=User, related_name='teachers') def enable(self): """ Enable teacher profile :return: """ self.enabled = True self.save() def disable(self): """ Disable teacher profile :return: """ self.enabled = False self.save()
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')), ) gender = models.CharField(max_length=1, verbose_name=_('Gender'), choices=GENDET_CHOICES) civil_id = models.CharField(max_length=12, verbose_name=_('Civil ID')) phone_number = models.CharField(max_length=15, verbose_name=_('Phone Number')) job_title = models.CharField(max_length=15, verbose_name=_('Title')) enabled = models.BooleanField(default=True) user = models.OneToOneField(to=User, related_name='teachers') def enable(self): """ Enable teacher profile :return: """ self.enabled = True self.save() def disable(self): """ Disable teacher profile :return: """ self.enabled = False self.save()
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
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 adds an option to show/hide the discussions tab. # .. toggle_use_cases: open_edx # .. toggle_creation_date: 2015-06-15 # .. toggle_target_removal_date: None # .. toggle_warnings: None # .. toggle_tickets: https://github.com/edx/edx-platform/pull/8474 settings.FEATURES['ALLOW_HIDING_DISCUSSION_TAB'] = False settings.DISCUSSION_SETTINGS = { 'MAX_COMMENT_DEPTH': 2, 'COURSE_PUBLISH_TASK_DELAY': 30, }
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-platform,edx/edx-platform,angelapper/edx-platform,eduNEXT/edunext-platform,arbrandes/edx-platform,edx/edx-platform,EDUlib/edx-platform,angelapper/edx-platform,arbrandes/edx-platform,eduNEXT/edunext-platform
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 ChromeDriverManager from webdriver_manager.utils import ChromeType @pytest.fixture(scope="session") def chromedriver(): try: options = Options() options.headless = True options.add_argument('--no-sandbox') options.add_argument('--disable-dev-shm-usage') options.add_argument("--disable-gpu") driver = webdriver.Chrome(ChromeDriverManager(chrome_type=ChromeType.CHROMIUM).install(), options=options) url = 'http://localhost:9000' driver.get(url + "/gettingstarted") WebDriverWait(driver, 30).until(expected_conditions.title_contains('Sign in')) #Login to Graylog uid_field = driver.find_element_by_name("username") uid_field.clear() uid_field.send_keys("admin") password_field = driver.find_element_by_name("password") password_field.clear() password_field.send_keys("admin") password_field.send_keys(Keys.RETURN) WebDriverWait(driver, 30).until(expected_conditions.title_contains('Getting started')) #Run tests yield driver finally: driver.quit()
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 ChromeDriverManager @pytest.fixture(scope="session") def chromedriver(): try: options = Options() options.headless = True options.add_argument('--no-sandbox') options.add_argument('--disable-dev-shm-usage') options.add_argument("--disable-gpu") driver = webdriver.Chrome(ChromeDriverManager().install(), options=options) url = 'http://localhost:9000' driver.get(url + "/gettingstarted") WebDriverWait(driver, 30).until(expected_conditions.title_contains('Sign in')) #Login to Graylog uid_field = driver.find_element_by_name("username") uid_field.clear() uid_field.send_keys("admin") password_field = driver.find_element_by_name("password") password_field.clear() password_field.send_keys("admin") password_field.send_keys(Keys.RETURN) WebDriverWait(driver, 30).until(expected_conditions.title_contains('Getting started')) #Run tests yield driver finally: driver.quit()
Switch UI tests back to google chrome.
Switch UI tests back to google chrome.
Python
apache-2.0
Graylog2/graylog-ansible-role
8a975088008ab33e6cb3dc42567cb1ca195563fa
packs/dimensiondata/actions/create_pool_member.py
packs/dimensiondata/actions/create_pool_member.py
from lib.actions import BaseAction __all__ = [ 'CreatePoolMemberAction' ] class CreatePoolMemberAction(BaseAction): api_type = 'loadbalancer' def run(self, region, pool_id, node_id, port): driver = self._get_lb_driver(region) pool = driver.ex_get_pool(pool_id) node = driver.ex.get_node(node_id) member = driver.ex_create_pool_member(pool, node, port) return self.resultsets.formatter(member)
from lib.actions import BaseAction __all__ = [ 'CreatePoolMemberAction' ] class CreatePoolMemberAction(BaseAction): api_type = 'loadbalancer' def run(self, region, pool_id, node_id, port): driver = self._get_lb_driver(region) pool = driver.ex_get_pool(pool_id) node = driver.ex_get_node(node_id) member = driver.ex_create_pool_member(pool, node, port) return self.resultsets.formatter(member)
Fix add pool member code
Fix add pool member code
Python
apache-2.0
armab/st2contrib,pearsontechnology/st2contrib,tonybaloney/st2contrib,pidah/st2contrib,StackStorm/st2contrib,armab/st2contrib,tonybaloney/st2contrib,StackStorm/st2contrib,pidah/st2contrib,pearsontechnology/st2contrib,pidah/st2contrib,pearsontechnology/st2contrib,pearsontechnology/st2contrib,tonybaloney/st2contrib,armab/st2contrib,StackStorm/st2contrib
760506e88d22d86be818017fb6075abe7af2a068
dactyl.py
dactyl.py
from slackbot.bot import respond_to from slackbot.bot import listen_to import re import urllib
from slackbot.bot import respond_to from slackbot.bot import listen_to import re import urllib def url_validator(url): try: code = urllib.urlopen(url).getcode() if code == 200: return True except: return False def test_url(message, url): if url_validator(url[1:len(url)-1]): message.reply('VALID URL') else: message.reply('NOT VALID URL')
Add url_validator function and respond aciton to test url
Add url_validator function and respond aciton to test url
Python
mit
KrzysztofSendor/dactyl