commit stringlengths 40 40 | subject stringlengths 4 1.73k | repos stringlengths 5 127k | old_file stringlengths 2 751 | new_file stringlengths 2 751 | new_contents stringlengths 1 8.98k | old_contents stringlengths 0 6.59k | license stringclasses 13
values | lang stringclasses 23
values |
|---|---|---|---|---|---|---|---|---|
cdcefd5c313a6f3d720a9ff09d201ccf447ef2d7 | update license info | COEXCZ/django-translation-manager,COEXCZ/django-translation-manager | setup.py | setup.py | # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
PACKAGE = "translation_manager"
NAME = "django-translation-manager"
DESCRIPTION = "Django app for managing translations from admin"
AUTHOR = "Pavel Císař, Martin Kubát, Mikuláš Mrva, Jakub Ladra - COEX CZ s.r.o (http://www.coex.cz)"
AUTHOR_EMAIL = "pa... | # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
PACKAGE = "translation_manager"
NAME = "django-translation-manager"
DESCRIPTION = "Django app for managing translations from admin"
AUTHOR = "Pavel Císař, Martin Kubát, Mikuláš Mrva, Jakub Ladra - COEX CZ s.r.o (http://www.coex.cz)"
AUTHOR_EMAIL = "pa... | mpl-2.0 | Python |
a888d1c1af56e1da36e670abbdba88138a220599 | fix a otro import error | CacaoMovil/guia-de-cacao-django,CacaoMovil/guia-de-cacao-django,CacaoMovil/guia-de-cacao-django | cacao_app/pdf_kit/views.py | cacao_app/pdf_kit/views.py | # -*- coding: utf-8 -*-
import os
from django.apps import apps
from django.conf import settings
from django.core.exceptions import ImproperlyConfigured
from django.http import Http404, HttpResponseRedirect
from wkhtmltopdf.views import PDFTemplateView
from cacao.models import Guide
from configuracion.models import Ac... | # -*- coding: utf-8 -*-
from django.apps import apps
from django.conf import settings
from django.core.exceptions import ImproperlyConfigured
from django.http import Http404, HttpResponseRedirect
from wkhtmltopdf.views import PDFTemplateView
from cacao.models import Guide
from configuracion.models import Acerca
cla... | bsd-3-clause | Python |
704d88685a071223bb91961a770c9a9ea44724df | Fix enum34 version | oneklc/dimod,oneklc/dimod | setup.py | setup.py | from __future__ import absolute_import
import sys
from setuptools import setup
_PY2 = sys.version_info.major == 2
# add __version__, __author__, __authoremail__, __description__ to this namespace
# equivalent to:
if _PY2:
execfile("./dimod/package_info.py")
else:
exec(open("./dimod/package_info.py").read())
... | from __future__ import absolute_import
import sys
from setuptools import setup
_PY2 = sys.version_info.major == 2
# add __version__, __author__, __authoremail__, __description__ to this namespace
# equivalent to:
if _PY2:
execfile("./dimod/package_info.py")
else:
exec(open("./dimod/package_info.py").read())
... | apache-2.0 | Python |
08cbba4c04e74e3195c80fe1a3052115ae9eb9a2 | Store contaminants | texastribune/emissions-database,texastribune/emissions-database,texastribune/emissions-database,texastribune/emissions-database | emission_events/scraper/html_getter.py | emission_events/scraper/html_getter.py | from emissions.models import EmissionEvent, ContaminantReleased
from downloader import Downloader
from scraper import Scraper
class HTMLGetter(object):
def __init__(self, url_builder):
self.url_builder = url_builder
def __call__(self):
while not self.url_builder.is_finalized():
se... | from emissions.models import EmissionEvent
from downloader import Downloader
from scraper import Scraper
class HTMLGetter(object):
def __init__(self, url_builder):
self.url_builder = url_builder
def __call__(self):
while not self.url_builder.is_finalized():
self.url_builder.next()... | mit | Python |
a682e468f8350a6e24a1912f0bf7e7a1a7087b19 | update version to 0.0.5 | cedricporter/funcat | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Author: Hua Liang[Stupid ET] <et@everet.org>
#
from setuptools import (
find_packages,
setup,
)
from pip.req import parse_requirements
setup(
name='funcat',
version='0.0.5',
description='funcat',
packages=find_packages(exclude=[]),
author='... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Author: Hua Liang[Stupid ET] <et@everet.org>
#
from setuptools import (
find_packages,
setup,
)
from pip.req import parse_requirements
setup(
name='funcat',
version='0.0.4',
description='funcat',
packages=find_packages(exclude=[]),
author='... | apache-2.0 | Python |
a8df79032c909f81f1387795242d5d6efb1bfec1 | Fix packaging | redapple/js2xml,redapple/js2xml,redapple/js2xml,redapple/js2xml | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(name='js2xml',
version='0.3.0',
description='Convert Javascript code to XML document',
long_description="""
======
js2xml
======
js2xml is a simple helper to parse Javascript code
by representing a parse tree in XML.
You can t... | #!/usr/bin/env python
from setuptools import setup
setup(name='js2xml',
version='0.3.0',
description='Convert Javascript code to XML document',
long_description="""
======
js2xml
======
js2xml is a simple helper to parse Javascript code
by representing a parse tree in XML.
You can then use XPath f... | mit | Python |
7926b7d13c936ecfbc520aaae5aced74214b5491 | fix error in setup.py | SANDAG/defm,SANDAG/pydefm,SANDAG/pydefm,SANDAG/pydefm | setup.py | setup.py | """A setuptools based setup module.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/sandag/pydefm
"""
from setuptools import setup, find_packages
from codecs import open
from os import path
import pydefm
setup(
name='pydefm',
version='0.1',
description='San Diego Demograp... | """A setuptools based setup module.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/sandag/pydefm
"""
from setuptools import setup, find_packages
from codecs import open
from os import path
import pydefm
setup(
name='pydefm',
version='0.1',
description='San Diego Demograp... | unknown | Python |
026b04e75efb7d83cb23447e0271d30c29ee1314 | Add 'six' to dependencies. | mdickinson/refcycle | setup.py | setup.py | # Copyright 2013 Mark Dickinson
#
# 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,... | # Copyright 2013 Mark Dickinson
#
# 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,... | apache-2.0 | Python |
56ee90b37e8a1fa6a6790d985671e9ad3754c02a | bump version for `_fields` feature | pcattori/maps | setup.py | setup.py | from setuptools import setup
setup(
name='maps',
version='1.1.0',
description='Python maps: super-charged dictionaries',
url='https://github.com/pcattori/maps',
author='Pedro Cattori',
author_email='pcattori@gmail.com',
license='MIT',
packages=['maps'],
test_suite='tests',
extra... | from setuptools import setup
setup(
name='maps',
version='1.0.0',
description='Python maps: super-charged dictionaries',
url='https://github.com/pcattori/maps',
author='Pedro Cattori',
author_email='pcattori@gmail.com',
license='MIT',
packages=['maps'],
test_suite='tests',
extra... | mit | Python |
5fde3a105c365fb9d93cef7900c7e973ee798313 | bump version | veltzer/pyawskit | setup.py | setup.py | import setuptools
import sys
if not sys.version_info[0] == 3:
sys.exit("Sorry, only python version 3 is supported")
setuptools.setup(
name='pyawskit',
version='0.1.18',
description='pyawskit is a collection of utilities to help interact with aws',
long_description='pyawskit helps you with various ... | import setuptools
import sys
if not sys.version_info[0] == 3:
sys.exit("Sorry, only python version 3 is supported")
setuptools.setup(
name='pyawskit',
version='0.1.17',
description='pyawskit is a collection of utilities to help interact with aws',
long_description='pyawskit helps you with various ... | mit | Python |
f8c6e0375090274d951e82dbf5ad641d96461b4d | Add attrs to dependencies | magenta/note-seq,magenta/note-seq,magenta/note-seq | setup.py | setup.py | # Copyright 2020 The Magenta Authors.
#
# 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 ... | # Copyright 2020 The Magenta Authors.
#
# 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 ... | apache-2.0 | Python |
deaa0c889b070d8a7ce83a740cd1a47bffe80ec1 | Bump version | Lagg/steamodd | steam/__init__.py | steam/__init__.py | """
High level Steam API implementation with low level reusable core
Copyright (c) 2010-2013, Anthony Garcia <anthony@lagg.me>
Distributed under the ISC License (see LICENSE)
"""
__version__ = "4.22"
__author__ = "Anthony Garcia"
__contact__ = "anthony@lagg.me"
__license__ = "ISC"
__copyright__ = "Copyright (c) 2010-2... | """
High level Steam API implementation with low level reusable core
Copyright (c) 2010-2013, Anthony Garcia <anthony@lagg.me>
Distributed under the ISC License (see LICENSE)
"""
__version__ = "4.21"
__author__ = "Anthony Garcia"
__contact__ = "anthony@lagg.me"
__license__ = "ISC"
__copyright__ = "Copyright (c) 2010-2... | isc | Python |
144f45929f432a8f60933e91991d5dc885061bf3 | edit nbformat version | plotly/plotly.py,plotly/python-api,plotly/python-api,plotly/plotly.py,plotly/plotly.py,plotly/python-api | setup.py | setup.py | from setuptools import setup
exec (open('plotly/version.py').read())
def readme():
with open('README.rst') as f:
return f.read()
setup(name='plotly',
version=__version__,
use_2to3=False,
author='Chris P',
author_email='chris@plot.ly',
maintainer='Chris P',
maintainer... | from setuptools import setup
exec (open('plotly/version.py').read())
def readme():
with open('README.rst') as f:
return f.read()
setup(name='plotly',
version=__version__,
use_2to3=False,
author='Chris P',
author_email='chris@plot.ly',
maintainer='Chris P',
maintainer... | mit | Python |
0cfabfd4593c3ecbb724cf7df67726f83f5587c7 | write out an rmakerc | sassoftware/mirrorball,sassoftware/mirrorball | test/slehelp.py | test/slehelp.py | #
# Copyright (c) 2008 rPath, Inc.
#
# This program is distributed under the terms of the Common Public License,
# version 1.0. A copy of this license should have been distributed with this
# source file in a file called LICENSE. If it is not present, the license
# is always available at http://www.rpath.com/permanent/... | #
# Copyright (c) 2008 rPath, Inc.
#
# This program is distributed under the terms of the Common Public License,
# version 1.0. A copy of this license should have been distributed with this
# source file in a file called LICENSE. If it is not present, the license
# is always available at http://www.rpath.com/permanent/... | apache-2.0 | Python |
a6b13f81ce7e39462ec188fad998755a2b66d26c | Add icons on package install | Sofronio/youtube-dl-gui,pr0d1r2/youtube-dl-gui,dstftw/youtube-dl-gui,dstftw/youtube-dl-gui,pr0d1r2/youtube-dl-gui,MrS0m30n3/youtube-dl-gui,Sofronio/youtube-dl-gui,ukazap/youtube-dl-gui,MrS0m30n3/youtube-dl-gui,ukazap/youtube-dl-gui | setup.py | setup.py | #! /usr/bin/env python
from distutils.core import setup
from youtube_dl_gui import version
name = 'Youtube-DLG'
desc = 'Youtube-dl GUI'
ldesc = 'A cross platform front-end GUI of the popular youtube-dl written in wxPython'
license = 'UNLICENSE'
platform = 'Cross-Platform'
author = 'Sotiris Papadopoulos'
author_email ... | #! /usr/bin/env python
from distutils.core import setup
from youtube_dl_gui import version
setup(name='Youtube-DLG',
version=version.__version__,
description='Youtube-dl GUI',
long_description='A cross platform front-end GUI of the popular youtube-dl written in wxPython.',
license='UNLICENSE',... | unlicense | Python |
8366ca33ee43086fe4d883741bab467cbcac9a95 | make it easy_installable | schlamar/guimvc | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup
setup(
name = 'guimvc',
version = '0.1-dev',
license='MIT',
author='Marc Schlaich',
author_email='marc.schlaich@gmail.com',
url='http://ms4py.github.com/guimvc/',
download_url='http://github.com/ms4py/guimvc/tarball/master#e... | #!/usr/bin/env python
from setuptools import setup
setup(
name = 'guimvc',
version = '0.1-dev',
license='MIT',
author='Marc Schlaich',
author_email='marc.schlaich@gmail.com',
url='http://ms4py.github.com/guimvc/',
platforms = 'any',
packages = ['guimvc'],
descr... | mit | Python |
e924e13b527f0b8f50707f299da26eac5c929535 | include 'codecs' package in setup.py | bepetersn/gmail_client,wilbertom/gmail_client | setup.py | setup.py | from setuptools import setup
setup(
name = "gmail-client",
version = "0.0.7.4",
author = "Wilberto Morales",
author_email = "wilbertomorales777@gmail.com",
description = ("A Pythonic interface for Google Mail. Based of https://github.com/charlierguo/gmai"),
license = "MIT",
keywords = "goog... | from setuptools import setup
setup(
name = "gmail-client",
version = "0.0.7.2",
author = "Wilberto Morales",
author_email = "wilbertomorales777@gmail.com",
description = ("A Pythonic interface for Google Mail. Based of https://github.com/charlierguo/gmai"),
license = "MIT",
keywords = "goog... | mit | Python |
9d3ee1bdb44b91c3fbf83d62f5d094b81eea6c26 | Add Trove classifiers (#14) | dwolfhub/zxcvbn-python | setup.py | setup.py | from distutils.core import setup
setup(
name='zxcvbn-python',
version='4.4.16',
packages=['zxcvbn'],
url='https://github.com/dwolfhub/zxcvbn-python',
download_url='https://github.com/dwolfhub/zxcvbn-python/tarball/v4.4.16',
license='MIT',
author='Daniel Wolf',
author_email='danielrwolf5... | from distutils.core import setup
setup(
name='zxcvbn-python',
version='4.4.16',
packages=['zxcvbn'],
url='https://github.com/dwolfhub/zxcvbn-python',
download_url='https://github.com/dwolfhub/zxcvbn-python/tarball/v4.4.16',
license='MIT',
author='Daniel Wolf',
author_email='danielrwolf5... | mit | Python |
695ea646ddfecf827dbf8be7c953cbee1dbb1fe2 | Test for object level permission for unpublished objects | developersociety/django-glitter,blancltd/django-glitter,developersociety/django-glitter,blancltd/django-glitter,developersociety/django-glitter,blancltd/django-glitter | glitter/views.py | glitter/views.py | # -*- coding: utf-8 -*-
from django.contrib.contenttypes.models import ContentType
from django.core.urlresolvers import reverse
from django.db.models import Q
from django.http import Http404
from django.http.response import HttpResponse
from django.utils.encoding import force_text
from django.views.decorators.csrf imp... | # -*- coding: utf-8 -*-
from django.contrib.contenttypes.models import ContentType
from django.core.urlresolvers import reverse
from django.db.models import Q
from django.http import Http404
from django.http.response import HttpResponse
from django.utils.encoding import force_text
from django.views.decorators.csrf imp... | bsd-3-clause | Python |
695f4a891a12d4ff4911ebad5f6a69b203738f18 | Update tags and urls | lesteve/clusterlib,clusterlib/clusterlib,clusterlib/clusterlib,arjoly/clusterlib,arjoly/clusterlib,lesteve/clusterlib | setup.py | setup.py | #!/usr/bin/env python
# Authors: Arnaud Joly
#
# License: BSD 3 clause
from distutils.core import setup
import clusterlib
NAME = 'clusterlib'
VERSION = clusterlib.__version__
AUTHOR = "Arnaud Joly"
AUTHOR_EMAIL = "arnaud.v.joly@gmail.com"
URL = 'http://clusterlib.github.io/clusterlib/'
DESCRIPTION = 'Tools to manag... | #!/usr/bin/env python
# Authors: Arnaud Joly
#
# License: BSD 3 clause
from distutils.core import setup
import clusterlib
NAME = 'clusterlib'
VERSION = clusterlib.__version__
AUTHOR = "Arnaud Joly"
AUTHOR_EMAIL = "arnaud.v.joly@gmail.com"
URL = '' # TODO
DESCRIPTION = 'Tools to manage jobs on cluster'
LONG_DESCRIPT... | bsd-3-clause | Python |
d7b69edd18e7f4c92a70ef153c8245f39e2ac57b | Bump version | viewflow/django-material,viewflow/django-material,viewflow/django-material | setup.py | setup.py | from setuptools import setup
try:
long_description = open('README.rst').read()
except IOError:
long_description = ''
setup(
name='django-material',
version='0.8.0',
description='Material design for django forms and admin',
license='BSD',
author='Mikhail Podgurskiy',
author_email='kmmbv... | from setuptools import setup
try:
long_description = open('README.rst').read()
except IOError:
long_description = ''
setup(
name='django-material',
version='0.7.0',
description='Material design for django forms and admin',
license='BSD',
author='Mikhail Podgurskiy',
author_email='kmmbv... | bsd-3-clause | Python |
d40d6e39126077135f61a07d03a989389bc063df | define file encode for python3, fixes #24 | auricgoldfinger/audio-normalize,slhck/ffmpeg-normalize,slhck/audio-normalize | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup
with open('README.rst', encoding='utf8') as readme_file:
readme = readme_file.read()
with open('HISTORY.rst', encoding='utf8') as history_file:
history = history_file.read().replace('.. :changelog:', '')
requirements = [
'docopt'... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup
with open('README.rst') as readme_file:
readme = readme_file.read()
with open('HISTORY.rst') as history_file:
history = history_file.read().replace('.. :changelog:', '')
requirements = [
'docopt',
]
test_requirements = [
# '... | mit | Python |
b3c97508e7b3a7938163a92137745d5c7af859ac | Replace tabs by spaces in setup.py | lucasdavid/grapher | setup.py | setup.py | from setuptools import setup, find_packages
requirements = [
'Flask-Script',
'flask-restful',
'py2neo',
'cerberus',
]
test_requirements = [
'grapher',
'requests',
'nose',
'nose-parameterized',
'fake-factory',
'coverage',
'radon',
'coveralls'
]
setup(
name='grapher'... | from setuptools import setup, find_packages
requirements = [
'Flask-Script',
'flask-restful',
'py2neo',
'cerberus',
]
test_requirements = [
'grapher',
'requests',
'nose',
'nose-parameterized',
'fake-factory',
'coverage',
'radon',
'coveralls'
]
setup(
name='grapher',
version='0.1',
license='MI... | mit | Python |
6e17319f659b9d92503261c0cedae85649903f53 | Update setup.py | jakogut/KiWI | setup.py | setup.py | from setuptools import setup
setup(
name = 'KiWI',
description = 'Killer Windows Installer - An alternative to WDS',
license = 'MIT',
version = '1',
author = 'Joseph Kogut',
author_email = 'joseph.kogut@gmail.com',
url = 'http://github.com/jakogut/kiwi.git',
packages = ['kiwi'],
ins... | from distutils.core import setup
setup(
name = 'KiWI',
description = 'Killer Windows Installer',
author = 'Joseph Kogut',
author_email = 'joseph.kogut@gmail.com',
url = 'josephkogut.com/yaknet/kiwi.git',
packages = ['kiwi'],
)
| mit | Python |
c2297672afff206bdae91aa479cb946b932a35e9 | Switch to the "Stable" development status classifier | vberlier/nbtlib | setup.py | setup.py | from setuptools import setup, find_packages
with open('README.md') as readme:
long_description = readme.read()
with open('requirements.txt') as requirements:
dependencies = [line.strip() for line in requirements]
setup(
name='nbtlib',
version='1.2.2',
license='MIT',
descript... | from setuptools import setup, find_packages
with open('README.md') as readme:
long_description = readme.read()
with open('requirements.txt') as requirements:
dependencies = [line.strip() for line in requirements]
setup(
name='nbtlib',
version='1.2.2',
license='MIT',
descript... | mit | Python |
0aab764519c4859418dc69f6fec0c9a448a7bd1a | prepare to publishing on pypi | sergeyglazyrindev/asceticcmdrunner | setup.py | setup.py | import sys
from setuptools import setup
# dirty hack, always use wheel
sys.argv.append('bdist_wheel')
def readme():
with open('README.rst') as f:
return f.read()
setup(
name='acmdrunner',
version='0.5',
description='Ascetic command runner. The most ease way'
' to power your python app wi... | import sys
from setuptools import setup
# dirty hack, always use wheel
sys.argv.append('bdist_wheel')
def readme():
with open('README.rst') as f:
return f.read()
setup(
name='acmdrunner',
version='0.3',
description='Ascetic command runner. The most ease way'
' to power your python app wi... | mit | Python |
9cb7ece3387c4cb680fd831f38400b356bd599a6 | add opencv-python to the dependencies (#407) | openai/baselines,hill-a/stable-baselines,hill-a/stable-baselines,openai/baselines | setup.py | setup.py | from setuptools import setup, find_packages
import sys
if sys.version_info.major != 3:
print('This Python is only compatible with Python 3, but you are running '
'Python {}. The installation will likely fail.'.format(sys.version_info.major))
setup(name='baselines',
packages=[package for package i... | from setuptools import setup, find_packages
import sys
if sys.version_info.major != 3:
print('This Python is only compatible with Python 3, but you are running '
'Python {}. The installation will likely fail.'.format(sys.version_info.major))
setup(name='baselines',
packages=[package for package i... | mit | Python |
df181947af8d2010b5d10bdb52b2937f107cc271 | Raise Exception on unsupported platforms | kumasento/mwparserfromhell,wikimedia/operations-debs-python-mwparserfromhell,kumasento/mwparserfromhell,earwig/mwparserfromhell,gencer/mwparserfromhell,yuvipanda/mwparserfromhell,SunghanKim/mwparserfromhell,earwig/mwparserfromhell,SunghanKim/mwparserfromhell,wikimedia/operations-debs-python-mwparserfromhell,wikimedia/o... | setup.py | setup.py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2012-2013 Ben Kurtovic <ben.kurtovic@gmail.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, includ... | #! /usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2012-2013 Ben Kurtovic <ben.kurtovic@gmail.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, includ... | mit | Python |
0c9b2670aa48d3381be54ab4904c01259e8484a4 | Bump version. | mwchase/class-namespaces,mwchase/class-namespaces | setup.py | setup.py | """A setuptools based setup module.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""
# Always prefer setuptools over distutils
from setuptools import setup, find_packages
# To use a consistent encoding
from codecs import open
from os import path
here = path.abspa... | """A setuptools based setup module.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""
# Always prefer setuptools over distutils
from setuptools import setup, find_packages
# To use a consistent encoding
from codecs import open
from os import path
here = path.abspa... | mit | Python |
cfde320f9c60696fd81cb44d65c86654694f46ed | Update Log fatal | galileo-project/Galileo-gpm | gpm/utils/log.py | gpm/utils/log.py | from gpm.utils.console import puts
from gpm.utils.color import yellow, red, magenta, green
import sys
class Log(object):
@classmethod
def warn(cls, msg):
puts(yellow("WARN: %s" % msg))
@classmethod
def fatal(cls, msg):
msg =red("FATAL: %s" % msg)
sys.stderr.write(msg)
e... | from gpm.utils.console import puts
from gpm.utils.color import yellow, red, magenta, green
import sys
class Log(object):
@classmethod
def warn(cls, msg):
puts(yellow("WARN: %s" % msg))
@classmethod
def fatal(cls, msg):
puts(red("FATAL: %s" % msg))
sys.exit(1)
@classmethod
... | mit | Python |
73e56ba25a71a844777f954f44bfddfb111fb1e9 | fix pypi classifier | karan/TPB,karan/TPB | setup.py | setup.py | #!/usr/bin/env python
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(
name='ThePirateBay',
version='1.1.5',
install_requires=['BeautifulSoup4', 'purl', 'dateutils', 'lxml'],
author='Karan Goel',
author_email='karan@goel.im',
pa... | #!/usr/bin/env python
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(
name='ThePirateBay',
version='1.1.5',
install_requires=['BeautifulSoup4', 'purl', 'dateutils', 'lxml'],
author='Karan Goel',
author_email='karan@goel.im',
pa... | mit | Python |
734e1a1b6de81091bfd5354eb043bfe82375ba91 | Prepare openprocurement.auction 1.0.0.dev63. | openprocurement/openprocurement.auction,openprocurement/openprocurement.auction | setup.py | setup.py | from setuptools import setup, find_packages
import os
version = '1.0.0.dev63'
setup(name='openprocurement.auction',
version=version,
description="",
long_description=open("README.txt").read() + "\n" +
open(os.path.join("docs", "HISTORY.txt")).read(),
# Get more strings f... | from setuptools import setup, find_packages
import os
version = '1.0.0.dev62'
setup(name='openprocurement.auction',
version=version,
description="",
long_description=open("README.txt").read() + "\n" +
open(os.path.join("docs", "HISTORY.txt")).read(),
# Get more strings f... | apache-2.0 | Python |
e7ea098a4700c6f338fc7ef223b696aaed448629 | Add test for one subdirectory | ambidextrousTx/GotoNewest | test/test_gn.py | test/test_gn.py | '''
GotoNewest tests
'''
import unittest
import sys
sys.path.append('../src/')
import gn
TEST_DIR = '/tmp/test'
class TestGotoNewest(unittest.TestCase):
''' Test class for GotoNewest
'''
def test_empty_base_dir(self):
''' If the base directory is empty, raise an
AttributeError
''... | '''
GotoNewest tests
'''
import unittest
import sys
sys.path.append('../src/')
import gn
TEST_DIR = '/tmp/test'
class TestGotoNewest(unittest.TestCase):
''' Test class for GotoNewest
'''
def test_empty_base_dir(self):
''' If the base directory is empty, raise an
AttributeError
''... | bsd-2-clause | Python |
b8421a3dffae5afca8377af7af785da738da3227 | enable concurrent | hkwi/lgjp_web,hkwi/lgjp_web | test/test_hb.py | test/test_hb.py | import os
import csv
import logging
import socket
import unittest
import concurrent.futures
from urllib.parse import urlparse
class TestDataSet(unittest.TestCase):
def test_codeset(self):
'''
tests that code set is synced with denshijiti
'''
import lgjp_web.wd
import lgjp_web.base
base = set([r["code"].va... | import os
import csv
import logging
import socket
import unittest
from urllib.parse import urlparse
class TestDataSet(unittest.TestCase):
def test_codeset(self):
'''
tests that code set is synced with denshijiti
'''
import lgjp_web.wd
import lgjp_web.base
base = set([r["code"].value for r in lgjp_web.base... | apache-2.0 | Python |
75cdd0b6bed1e87802d4fbd14677d9716ec8225e | rename url | emacsway/django-geo | setup.py | setup.py | #!/usr/bin/env python
#
# Copyright (c) 2011 Ivan Zakrevsky and contributors.
import os.path
from setuptools import setup, find_packages
import metadata
app_name = metadata.name
version = metadata.version
setup(
name = app_name,
version = version,
packages = find_packages(),
author = "Ivan Zakrevsky... | #!/usr/bin/env python
#
# Copyright (c) 2011 Ivan Zakrevsky and contributors.
import os.path
from setuptools import setup, find_packages
import metadata
app_name = metadata.name
version = metadata.version
setup(
name = app_name,
version = version,
packages = find_packages(),
author = "Ivan Zakrevsky... | bsd-3-clause | Python |
106b955439fea6afbe1c8af841db5f3e11eebef4 | Bump version to 1.1.1 for release to PyPi :shipit: | gatkin/declxml | setup.py | setup.py | """Defines the setup for the declxml library"""
from io import open
import os.path
from setuptools import setup
dir_path = os.path.abspath(os.path.dirname(__file__))
readme_path = os.path.join(dir_path, 'README.md')
with open(readme_path, encoding='utf-8') as readme:
long_description = readme.read()
setup(
... | """Defines the setup for the declxml library"""
from io import open
import os.path
from setuptools import setup
dir_path = os.path.abspath(os.path.dirname(__file__))
readme_path = os.path.join(dir_path, 'README.md')
with open(readme_path, encoding='utf-8') as readme:
long_description = readme.read()
setup(
... | mit | Python |
1efe01cb4b0786e79ffcea17a5a26975d56db6cb | revert preventing normalization (#269) | googleapis/python-logging,googleapis/python-logging | setup.py | setup.py | # Copyright 2018 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | # Copyright 2018 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | apache-2.0 | Python |
7bc6c2e7609a12feb4f70ffbf13a3d25379112a8 | Rename playerlist function to please the pylint gods | lluis/steamscript,oleerik/steamscript,saildata/steamscript | rusts.py | rusts.py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import valve.source.a2s
SERVER = "163.172.17.175"
PORT = 30616
def player_list(server):
"""Retreive player and limited server/game information and print the results
Specifically, this retrieves information re: a Rust server.
-------------------------... | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import valve.source.a2s
SERVER = "163.172.17.175"
PORT = 30616
def playerList(server):
"""Retreive player and limited server/game information and print the results
Specifically, this retrieves information re: a Rust server.
--------------------------... | unlicense | Python |
a17ff04a53aa443991b9989dfef6e5421400018f | Update requests to 2.21.0 | rberrelleza/511-transit | setup.py | setup.py | """
Five One One
-------------
A python API to consume transit data from http://511.org.
"""
from setuptools import setup
from pip.req import parse_requirements
requirements = ("requests==2.21.0", )
setup(
name='fiveoneone',
version='0.5.dev0',
license='MIT',
author='Ramiro Berrelleza',
author_e... | """
Five One One
-------------
A python API to consume transit data from http://511.org.
"""
from setuptools import setup
from pip.req import parse_requirements
requirements = ("requests==2.5.1", )
setup(
name='fiveoneone',
version='0.5.dev0',
license='MIT',
author='Ramiro Berrelleza',
author_em... | mit | Python |
44fc599b11f0cad9e5a92a040c60eb9ca1ac1efd | Add url in setup.py | nano-db/nanodb_driver | setup.py | setup.py | from setuptools import setup
import nanodb_driver
setup(
name='nanodb_driver',
version=nanodb_driver.__version__,
author='Pierre-Marie Dartus',
author_email='dartus.pierremarie@gmail.com',
packages=['nanodb_driver'],
license='LICENSE.txt',
url='https://github.com/nano-db/nanodb_driver',
... | from setuptools import setup
import nanodb_driver
setup(
name='nanodb_driver',
version=nanodb_driver.__version__,
author='Pierre-Marie Dartus',
author_email='dartus.pierremarie@gmail.com',
packages=['nanodb_driver'],
license='LICENSE.txt',
description='Driver to interface application with a... | apache-2.0 | Python |
35a13e090151980b79653d8a6d55e9982d5f0970 | Bump version -> v0.0.3 | nickstenning/elasticbackup | setup.py | setup.py | from setuptools import setup, find_packages
setup(
name = 'elasticbackup',
version = '0.0.3',
packages = find_packages(),
# metadata for upload to PyPI
author = 'Nick Stenning',
author_email = 'nick@whiteink.com',
url = 'https://github.com/nickstenning/elasticbackup',
description = 'el... | from setuptools import setup, find_packages
setup(
name = 'elasticbackup',
version = '0.0.2',
packages = find_packages(),
# metadata for upload to PyPI
author = 'Nick Stenning',
author_email = 'nick@whiteink.com',
url = 'https://github.com/nickstenning/elasticbackup',
description = 'el... | mit | Python |
cb1777a4edd38cc96c26de7df8ed1c652e215504 | Fix the version of LLVM for SMACK | staticafi/symbiotic,staticafi/symbiotic,staticafi/symbiotic,staticafi/symbiotic | lib/symbioticpy/symbiotic/tools/smack.py | lib/symbioticpy/symbiotic/tools/smack.py | try:
from benchexec.tools.smack import Tool as SmackTool
except ImportError:
print('Using the fallback tool module')
from .. benchexec.tools.smack import Tool as SmackTool
class SymbioticTool(SmackTool):
"""
SMACK integrated into Symbiotic
"""
REQUIRED_PATHS = SmackTool.REQUIRED_PATHS
... | try:
from benchexec.tools.smack import Tool as SmackTool
except ImportError:
print('Using the fallback tool module')
from .. benchexec.tools.smack import Tool as SmackTool
class SymbioticTool(SmackTool):
"""
SMACK integrated into Symbiotic
"""
REQUIRED_PATHS = SmackTool.REQUIRED_PATHS
... | mit | Python |
b61e36e45f8249e4751ebff35b0574496743bef2 | Declare optional feature dependencies (e.g. twilio) | fusionbox/django-two-factor-auth,percipient/django-two-factor-auth,koleror/django-two-factor-auth,moreati/django-two-factor-auth,moreati/django-two-factor-auth,fusionbox/django-two-factor-auth,Bouke/django-two-factor-auth,Bouke/django-two-factor-auth,percipient/django-two-factor-auth,koleror/django-two-factor-auth | setup.py | setup.py | from setuptools import setup, find_packages
setup(
name='django-two-factor-auth',
version='1.2.0',
description='Complete Two-Factor Authentication for Django',
long_description=open('README.rst').read(),
author='Bouke Haarsma',
author_email='bouke@webatoom.nl',
url='https://github.com/Bouke... | from setuptools import setup, find_packages
setup(
name='django-two-factor-auth',
version='1.2.0',
description='Complete Two-Factor Authentication for Django',
long_description=open('README.rst').read(),
author='Bouke Haarsma',
author_email='bouke@webatoom.nl',
url='https://github.com/Bouke... | mit | Python |
cc55521c1e2af71893eff701bebc51acc112fa75 | Update requests requirement from <2.24,>=2.4.2 to >=2.4.2,<2.25 | zooniverse/panoptes-python-client | setup.py | setup.py | from setuptools import setup, find_packages
setup(
name='panoptes_client',
url='https://github.com/zooniverse/panoptes-python-client',
author='Adam McMaster',
author_email='adam@zooniverse.org',
version='1.1.1',
packages=find_packages(),
include_package_data=True,
install_requires=[
... | from setuptools import setup, find_packages
setup(
name='panoptes_client',
url='https://github.com/zooniverse/panoptes-python-client',
author='Adam McMaster',
author_email='adam@zooniverse.org',
version='1.1.1',
packages=find_packages(),
include_package_data=True,
install_requires=[
... | apache-2.0 | Python |
3d9318eccb38c94407043bb591650a33b23fd655 | Update setup.py | SheepDogInc/django-versioned | setup.py | setup.py | from setuptools import setup, find_packages
def long_description(source):
with open(source, 'r') as f:
return f.read()
setup(
name = "django_versioned",
version = "0.3",
author = "Sheepdog",
author_email = "development@sheepdoginc.ca",
description = ("Django Versioning App"),
licen... | from setuptools import setup, find_packages
def long_description(source):
with open(source, 'r') as f:
return f.read()
setup(
name = "django_versioned",
version = "0.2",
author = "Sheepdog",
author_email = "development@sheepdoginc.ca",
description = ("Django Versioning App"),
licen... | bsd-3-clause | Python |
bb8e7cc241727aae0ec7239d49f27ddca26d6d34 | Add the bp dependency. | Julian/mkenv | setup.py | setup.py | import os
from setuptools import find_packages, setup
with open(os.path.join(os.path.dirname(__file__), "README.rst")) as readme:
long_description = readme.read()
classifiers = [
"Development Status :: 3 - Alpha",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"P... | import os
from setuptools import find_packages, setup
with open(os.path.join(os.path.dirname(__file__), "README.rst")) as readme:
long_description = readme.read()
classifiers = [
"Development Status :: 3 - Alpha",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"P... | mit | Python |
ac757c17ab15c42f49fe10b2d36e27bb4e1590ea | add panya find link | praekelt/panya-chart,praekelt/jmbo-chart,praekelt/jmbo-chart | setup.py | setup.py | from setuptools import setup, find_packages
setup(
name='panya-chart',
version='0.0.1',
description='Panya chart app.',
long_description = open('README.rst', 'r').read(),
author='Praekelt International',
author_email='dev@praekelt.com',
license='BSD',
url='http://github.com/praekelt/pan... | from setuptools import setup, find_packages
setup(
name='panya-chart',
version='0.0.1',
description='Panya chart app.',
long_description = open('README.rst', 'r').read(),
author='Praekelt International',
author_email='dev@praekelt.com',
license='BSD',
url='http://github.com/praekelt/pan... | bsd-3-clause | Python |
28460d76d483e47b6faa63f5b9c3013031a68dea | Use new README.rst as package long_description | educreations/sentry-sso-google | setup.py | setup.py | #!/usr/bin/env python
import os
import sys
from setuptools import setup
if sys.argv[-1] == 'publish':
os.system('python setup.py register sdist bdist_wheel upload')
sys.exit()
with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as f:
readme = f.read()
setup(
name='sentry-sso-google'... | #!/usr/bin/env python
import os
import sys
from setuptools import setup
if sys.argv[-1] == 'publish':
os.system('python setup.py register sdist bdist_wheel upload')
sys.exit()
setup(
name='sentry-sso-google',
version='1.1',
description='Google SSO support for Sentry',
author='Educreations ... | mit | Python |
b5ea28d2d589792de0ad8089bacd6787ece9e8f4 | Add powersave scripts. | dacut/slurm-ec2-utils,dacut/slurm-ec2-utils | setup.py | setup.py | from setuptools import setup
setup(
name="slurm-ec2-utils",
version="0.1",
packages=["slurmec2utils"],
entry_points={
'console_scripts': [
"slurm-ec2-clusterconfig=slurmec2utils.clusterconfig:main",
"slurm-ec2-fallback-slurm-s3-root=slurmec2utils.clusterconfig:get_fallba... | from setuptools import setup
setup(
name="slurm-ec2-utils",
version="0.1",
packages=["slurmec2utils"],
entry_points={
'console_scripts': [
"slurm-ec2-clusterconfig=slurmec2utils.clusterconfig:main",
"slurm-ec2-fallback-slurm-s3-root=slurmec2utils.clusterconfig:get_fallba... | apache-2.0 | Python |
8efaa1ab429a06b260853f62b1647723db60f031 | update version number | LREN-CHUV/i2b2-import,LREN-CHUV/i2b2-import | setup.py | setup.py | from setuptools import setup
from os import path
import codecs
here = path.abspath(path.dirname(__file__))
with codecs.open(path.join(here, 'README.rst'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='i2b2-import',
version='1.3.2',
url='https://github.com/LREN-CHUV/i2b2-import',
... | from setuptools import setup
from os import path
import codecs
here = path.abspath(path.dirname(__file__))
with codecs.open(path.join(here, 'README.rst'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='i2b2-import',
version='1.3.0',
url='https://github.com/LREN-CHUV/i2b2-import',
... | apache-2.0 | Python |
c7c346c7e6e0ff46558c3de107a757c63c2e0d01 | fix typo | waliens/sldc | test/test_locator.py | test/test_locator.py | import numpy as np
from unittest import TestCase
from shapely.geometry import Polygon
from shapely.affinity import translate
from sldc import Locator
from util import mk_gray_img, draw_circle, draw_poly
class TestLocatorNothingToLocate(TestCase):
def testLocator(self):
image = mk_gray_img(2000, 3000)
... | import numpy as np
from unittest import TestCase
from shapely.geometry import Polygon
from shapely.affinity import translate
from sldc import Locator
from util import mk_gray_img, draw_circle, draw_poly
class TestLocatorNothingToLocate(TestCase):
def testLocator(self):
image = mk_gray_img(2000, 3000)
... | mit | Python |
9e88d6eb6d6d97ea9046dbf842cdc0b5beb62b90 | Add better error support for answers file | djangokillen/minion-hate-bot | src/main.py | src/main.py | import tweepy, time, random
def main():
CONSUMER_KEY = 'your_consumer_key'
CONSUMER_SECRET = 'your_consumer_secret'
ACCESS_KEY = 'your_access_key'
ACCESS_SECRET = 'your_access_secret'
auth = tweepy.OAuthHandler(CONSUMER_KEY, CONSUMER_SECRET)
auth.set_access_token(ACCESS_KEY, ACCESS_SECRET)
... | import tweepy, time, random
def main():
CONSUMER_KEY = 'your_consumer_key'
CONSUMER_SECRET = 'your_consumer_secret'
ACCESS_KEY = 'your_access_key'
ACCESS_SECRET = 'your_access_secret'
auth = tweepy.OAuthHandler(CONSUMER_KEY, CONSUMER_SECRET)
auth.set_access_token(ACCESS_KEY, ACCESS_SECRET)
... | mit | Python |
2bc8e33b319d54f9a6e89a88ac3161f4fb569fcf | use the fallback_version option to avoid errors on source checkouts (#4358) | jhamman/xarray,markelg/xray,pydata/xarray,markelg/xray,jhamman/xarray,jhamman/xarray,markelg/xray,pydata/xarray,pydata/xarray,xray/xray | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup
setup(use_scm_version={"fallback_version": "999"})
| #!/usr/bin/env python
from setuptools import setup
try:
setup(use_scm_version=True)
except LookupError as e:
# .git has been removed, and this is not a package created by sdist
# This is the case e.g. of a remote deployment with PyCharm Professional
if not str(e).startswith("setuptools-scm was unable t... | apache-2.0 | Python |
4d9157d7f1816a72b0f38f81e512e651d090f363 | Add MarkedDict class, add special code for .copy() in Marked | wfscheper/powerline,dragon788/powerline,kenrachynski/powerline,junix/powerline,magus424/powerline,bezhermoso/powerline,QuLogic/powerline,magus424/powerline,IvanAli/powerline,cyrixhero/powerline,prvnkumar/powerline,prvnkumar/powerline,DoctorJellyface/powerline,seanfisk/powerline,bartvm/powerline,blindFS/powerline,blindF... | powerline/lint/markedjson/markedvalue.py | powerline/lint/markedjson/markedvalue.py | __all__ = ['gen_marked_value', 'MarkedValue']
try:
from __builtin__ import unicode
except ImportError:
unicode = str
def gen_new(cls):
def __new__(arg_cls, value, mark):
r = super(arg_cls, arg_cls).__new__(arg_cls, value)
r.mark = mark
r.value = value
return r
return __new__
class MarkedUnicode(unicod... | __all__ = ['gen_marked_value', 'MarkedValue']
try:
from __builtin__ import unicode
except ImportError:
unicode = str
def gen_new(cls):
def __new__(arg_cls, value, mark):
r = super(arg_cls, arg_cls).__new__(arg_cls, value)
r.mark = mark
r.value = value
return r
return __new__
class MarkedUnicode(unicod... | mit | Python |
ddd93762e41d3576b05f8b2df6610aef754fc98b | update generate packet script | usi-systems/p4paxos,usi-systems/p4paxos,usi-systems/p4paxos,usi-systems/p4paxos,usi-systems/p4paxos | netrodemo/generate_packets.py | netrodemo/generate_packets.py | #!/usr/bin/env python
from scapy.all import *
import sys
import argparse
class Value(Packet):
name = "PaxosValue"
fields_desc = [ IntField("content", 4567) ]
class Paxos(Packet):
name ="PaxosPacket "
fields_desc = [ IntField("msgtype", 3),
IntField("inst", 1),
... | #!/usr/bin/env python
from scapy.all import *
import sys
class Paxos(Packet):
name ="PaxosPacket "
fields_desc =[ IntField("msgtype", 3),
IntField("inst", 1),
ShortField("rnd", 1),
ShortField("vrnd", 0),
IntField("acpt", 0),
... | apache-2.0 | Python |
2adc5db2286b9b8b87269773e6d384e38c8036b3 | bump version | gisgroup/statbank-python | setup.py | setup.py | from setuptools import setup
setup(
name='statbank',
version='0.2.1',
description='Statbank API client library',
url='http://github.com/gisgroup/statbank-python',
author='Gis Group ApS',
author_email='valentin@gisgroup.dk, zacharias@gisgroup.dk',
license='MIT',
packages=['statbank'],
... | from setuptools import setup
setup(
name='statbank',
version='0.2',
description='Statbank API client library',
url='http://github.com/gisgroup/statbank-python',
author='Gis Group ApS',
author_email='valentin@gisgroup.dk, zacharias@gisgroup.dk',
license='MIT',
packages=['statbank'],
... | mit | Python |
e9185fdfa757c6a29398b5cff04aff1f130d3bcd | Remove default options | allanlei/rhinocloud-utils | rhinocloud/views/generic/pdf.py | rhinocloud/views/generic/pdf.py | from django.views import generic
from django.http import HttpResponse
from django.template.response import TemplateResponse
from django.template import loader
from django.core.servers.basehttp import FileWrapper
from rhinocloud.template.response import PDFTemplateResponse, WebkitPDFTemplateResponse
class PDFResponse... | from django.views import generic
from django.http import HttpResponse
from django.template.response import TemplateResponse
from django.template import loader
from django.core.servers.basehttp import FileWrapper
from rhinocloud.template.response import PDFTemplateResponse, WebkitPDFTemplateResponse
class PDFResponse... | bsd-3-clause | Python |
f8b30e7d2295906e3fb8ca1af9b3323031befe1f | Bump version to 0.6 | DouglasOrr/DeepLearnTute,DouglasOrr/DeepLearnTute,DouglasOrr/DeepLearnTute | setup.py | setup.py | #!/usr/bin/env python
from distutils.core import setup
setup(name='DeepLearnTute',
version='0.6',
packages=['dlt'],
package_data={'dlt': ['custom_input.js']})
| #!/usr/bin/env python
from distutils.core import setup
setup(name='DeepLearnTute',
version='0.5',
packages=['dlt'],
package_data={'dlt': ['custom_input.js']})
| mit | Python |
7d02e8f9fda654535282a6c36070dd461aff02cc | Comment out WS handler | pascalc/narrative-roulette,pascalc/narrative-roulette | src/main.py | src/main.py | # Flask
from handlers.rest import app
import handlers.admin
import handlers.custom
# Tornado WebSocket handler
# from handlers.socket import WSHandler
# Tornado
import tornado.wsgi
import tornado.ioloop
import tornado.web
from tornado.log import enable_pretty_logging
app.debug
# app.run(port=5000)
container = torna... | # Flask
from handlers.rest import app
import handlers.admin
import handlers.custom
# Tornado WebSocket handler
# from handlers.socket import WSHandler
# Tornado
import tornado.wsgi
import tornado.ioloop
import tornado.web
from tornado.log import enable_pretty_logging
app.debug
# app.run(port=5000)
container = torna... | apache-2.0 | Python |
fe98180b8e2afb3bb0c5a5d6a2dfe8ef2adc1b24 | sort the colors mean | LanceGin/haishoku | haishoku/main.py | haishoku/main.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Date : 2017-05-15 15:10
# @Author : Gin (gin.lance.inside@hotmail.com)
# @Link :
# @Disc : haishoku main function
import sys
import haishoku
import alg
def main():
# get image_path from system args
image_path = sys.argv[1]
# get colors tuple with... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Date : 2017-05-15 15:10
# @Author : Gin (gin.lance.inside@hotmail.com)
# @Link :
# @Disc : haishoku main function
import sys
import haishoku
import alg
def main():
# get image_path from system args
image_path = sys.argv[1]
# get colors tuple with... | mit | Python |
659f015a09a298c5d6998e5eb14a6064590bcc8b | package list updated | xfguo/pysnmp | setup.py | setup.py | #!/usr/bin/env python
from distutils.core import setup
setup(name="pysnmp",
version="4.0.0",
description="SNMP framework for Python",
author="Ilya Etingof",
author_email="ilya@glas.net ",
url="http://sourceforge.net/projects/pysnmp/",
packages = [ 'pysnmp',
'pysn... | #!/usr/bin/env python
from distutils.core import setup
setup(name="pysnmp",
version="3.5.1",
description="Python SNMP Toolkit",
author="Ilya Etingof",
author_email="ilya@glas.net ",
url="http://sourceforge.net/projects/pysnmp/",
packages = [ 'pysnmp',
'pysnmp.asn... | bsd-3-clause | Python |
935591fbfcdcbd0c084f70f31039e5ef26195084 | upgrade new version. | lxyu/pinyin,vsooda/pinyin | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from distutils.core import setup
setup(
name='pinyin',
version='0.1.3',
description='Translate chinese chars to pinyin based on Mandarin.dat',
author='Lx Yu',
author_email='lixinfish@gmail.com',
packages=['pinyin', ],
package_data={'': ['LICENS... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from distutils.core import setup
setup(
name='pinyin',
version='0.1.2',
description='Translate chinese chars to pinyin based on Mandarin.dat',
author='Lx Yu',
author_email='lixinfish@gmail.com',
packages=['pinyin', ],
package_data={'': ['LICENS... | mit | Python |
f9dd30e9fd7a0703cddab2597581116e1e94f623 | Update cybergis-script-geoserver-animate.py | state-hiu/cybergis-scripts,state-hiu/cybergis-scripts | bin/cybergis-script-geoserver-animate.py | bin/cybergis-script-geoserver-animate.py | #!/usr/bin/python
from base64 import b64encode
from optparse import make_option
import json
import urllib
import urllib2
import argparse
import time
import sys
import os
import subprocess
#==#
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '..', 'lib', 'cybergis')))
import gs._geoserver_animate... | from base64 import b64encode
from optparse import make_option
import json
import urllib
import urllib2
import argparse
import time
import sys
import os
import subprocess
#==#
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '..', 'lib', 'cybergis')))
import gs._geoserver_animate
#==#
parser = arg... | mit | Python |
117d654c40c3e2af3c48f9cc276ed622d237b231 | Update setup.py | Pedram26/markover | setup.py | setup.py | from distutils.core import setup
with open("README.rst", "rb") as f:
long_description = f.read()
setup(
name = 'markover',
packages = ['markover'], # this must be the same as the name above
scripts = ['markover/markover'],
version = '0.9',
description = 'Natural Language Generator with Markov',
long_d... | from distutils.core import setup
with open("README.rst", "rb") as f:
long_description = f.read()
setup(
name = 'markover',
packages = ['markover'], # this must be the same as the name above
scripts = ['markover/markover'],
version = '0.9',
description = 'Natural Language Generator with Markov',
long_d... | apache-2.0 | Python |
e878cf977eb4970b5b9e0bbea7707b9eac7f3a3d | Update JOIN.py | devzero-xyz/Andromeda,devzero-xyz/Andromeda | handlers/JOIN.py | handlers/JOIN.py | import time
def on_join(irc, conn, event):
nick = event.source.nick
channel = event.target
if nick == irc.get_nick():
log.info("Joined to {}".format(channel))
if channel not in irc.state["channels"]:
irc.state["channels"][channel] = {}
irc.state["channels"][channel]["top... | import time
def on_join(irc, conn, event):
nick = event.source.nick
channel = event.target
if nick == irc.get_nick():
log.info("Joined to {}".format(channel))
if channel not in irc.state["channels"]:
irc.state["channels"][channel] = {}
irc.state["channels"][channel]["top... | mit | Python |
cfc9be8f6a5155c323a2bd51c295db883a3dfeeb | Add nox command for running management commands | bennylope/django-organizations,bennylope/django-organizations | noxfile.py | noxfile.py | """
nox configuration to systematize release and pre-release tasks
Several nox tasks copied from the pipx project, Copyright (c) 2018 Chad Smith
"""
import os
import subprocess
import nox
NOX_DIR = os.path.abspath(os.path.dirname(__file__))
DEFAULT_INTERPRETER = "3.8"
ALL_INTERPRETERS = (DEFAULT_INTERPRETER,)
DE... | """
nox configuration to systematize release and pre-release tasks
Several nox tasks copied from the pipx project, Copyright (c) 2018 Chad Smith
"""
import os
import subprocess
import nox
NOX_DIR = os.path.abspath(os.path.dirname(__file__))
DEFAULT_INTERPRETER = "3.8"
ALL_INTERPRETERS = (DEFAULT_INTERPRETER,)
de... | bsd-2-clause | Python |
9e10e126d8144f42735318fe4b506ff33aaee421 | set version to 0.1.0 in setup.py | globality-corp/microcosm-elasticsearch,globality-corp/microcosm-elasticsearch | setup.py | setup.py | #!/usr/bin/env python
from setuptools import find_packages, setup
project = "microcosm-elasticsearch"
version = "0.1.0"
setup(
name=project,
version=version,
description="Elasticsearch client configuration",
author="Globality Engineering",
author_email="engineering@globality.com",
url="https:/... | #!/usr/bin/env python
from setuptools import find_packages, setup
project = "microcosm-elasticsearch"
version = "0.5.0"
setup(
name=project,
version=version,
description="Elasticsearch client configuration",
author="Globality Engineering",
author_email="engineering@globality.com",
url="https:/... | apache-2.0 | Python |
6177fb91cc0dc643983216c2164de435fd33b526 | Remove sys.argv from parser | DanielAndreasen/SWEETer-Cat,DanielAndreasen/SWEETer-Cat | updateDB.py | updateDB.py | #!/usr/bin/env python
import os
import argparse
from PyAstronomy import pyasl
from tornado.ioloop import IOLoop
from apscheduler.schedulers.tornado import TornadoScheduler
def tick():
print('Downloading exoplanetEU')
df = pyasl.ExoplanetEU2(forceUpdate=True)
df = df.getAllDataPandas()
df['name'] = [s... | #!/usr/bin/env python
import os
import sys
import argparse
from PyAstronomy import pyasl
from tornado.ioloop import IOLoop
from apscheduler.schedulers.tornado import TornadoScheduler
def tick():
print('Downloading exoplanetEU')
df = pyasl.ExoplanetEU2(forceUpdate=True)
df = df.getAllDataPandas()
df['... | mit | Python |
aa038c5531200016bbc6001a880da8a72bafba46 | Bump version | ageorge/beets-bandcamp | setup.py | setup.py | from setuptools import setup
setup(
name='beets-bandcamp',
version='0.1.4',
description='Plugin for beets (http://beets.io) to use bandcamp as an autotagger source.',
long_description=open('README.rst').read(),
author='Ariel George',
author_email='unarbolito@gmail.com',
url='https://github.... | from setuptools import setup
setup(
name='beets-bandcamp',
version='0.1.3',
description='Plugin for beets (http://beets.io) to use bandcamp as an autotagger source.',
long_description=open('README.rst').read(),
author='Ariel George',
author_email='unarbolito@gmail.com',
url='https://github.... | mit | Python |
7f72efc4ef3d9ec193d86a0ec3df11c41b26b328 | rename ext module name | adrn/streams,adrn/streams | setup.py | setup.py | from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext
# Get numpy path
import os, numpy
numpy_base_path = os.path.split(numpy.__file__)[0]
numpy_incl_path = os.path.join(numpy_base_path, "core", "include")
lm10_acc = Extension("streams.potential._lm10_accele... | from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext
# Get numpy path
import os, numpy
numpy_base_path = os.path.split(numpy.__file__)[0]
numpy_incl_path = os.path.join(numpy_base_path, "core", "include")
integrate = Extension("streams.potential._lm10_accel... | mit | Python |
cd8580629fbc7c599b16ee89406df12791f6961d | bump to 0.1.1 | crackleware/slacker-cli,juanpabloaj/slacker-cli,beni55/slacker-cli,wkentaro/slacker-cli | setup.py | setup.py | #!/usr/bin/python
# -*- coding: utf-8 -*-
import os
from setuptools import setup
install_requires = ['slacker >= 0.0.3']
try:
import argparse
except ImportError:
install_requires.append('argparse')
def read(*paths):
""" read files """
with open(os.path.join(*paths), 'r') as filename:
return ... | #!/usr/bin/python
# -*- coding: utf-8 -*-
import os
from setuptools import setup
install_requires = ['slacker >= 0.0.3']
try:
import argparse
except ImportError:
install_requires.append('argparse')
def read(*paths):
""" read files """
with open(os.path.join(*paths), 'r') as filename:
return ... | mit | Python |
218495ee8001c70ce55e114d7b768960b94753eb | bump psqlgraph | NCI-GDC/gdcdatamodel,NCI-GDC/gdcdatamodel | setup.py | setup.py | from setuptools import setup, find_packages
setup(
name='gdcdatamodel',
packages=find_packages(),
install_requires=[
'avro==1.7.7',
'graphviz==0.4.2',
'addict==0.2.7',
'psqlgraph',
'gdcdictionary',
],
package_data={
"gdcdatamodel": [
"*.av... | from setuptools import setup, find_packages
setup(
name='gdcdatamodel',
packages=find_packages(),
install_requires=[
'avro==1.7.7',
'graphviz==0.4.2',
'addict==0.2.7',
'psqlgraph',
'gdcdictionary',
],
package_data={
"gdcdatamodel": [
"*.av... | apache-2.0 | Python |
8fb79dc7b561a3ae5bb8b2a58d4a63dbc6346bfd | Use pypandoc.convert_file instead of pypandoc.convert (#201) | alecthomas/injector | setup.py | setup.py | from setuptools import setup, Command
import sys
import warnings
warnings.filterwarnings("always", module=__name__)
def obtain_requirements(file_name):
with open(file_name) as fd_in:
for line in fd_in:
if '#' not in line:
yield line.strip()
class PyTest(Command):
user_o... | from setuptools import setup, Command
import sys
import warnings
warnings.filterwarnings("always", module=__name__)
def obtain_requirements(file_name):
with open(file_name) as fd_in:
for line in fd_in:
if '#' not in line:
yield line.strip()
class PyTest(Command):
user_o... | bsd-3-clause | Python |
daa004f214956ee0e906540313bdb84b8e31a3e8 | Increment version after making parser properties non-private | consbio/gis-metadata-parser | setup.py | setup.py | import subprocess
import sys
from setuptools import Command, setup
class RunTests(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
errno = subprocess.call([sys.executable, '-m', 'unittest', 'gis_metadata.tests.te... | import subprocess
import sys
from setuptools import Command, setup
class RunTests(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
errno = subprocess.call([sys.executable, '-m', 'unittest', 'gis_metadata.tests.te... | bsd-3-clause | Python |
ee37201e5389b373e71f70e4b7dd6c3d75986827 | bump version | hopshadoop/hops-util-py,hopshadoop/hops-util-py | 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='hopsutil',
version='0.7.4',
author='Robin Andersson',
author_email='robin2@kth.se',
description='A helper library for Hops that facilitates development by hi... | import os
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='hopsutil',
version='0.7.3',
author='Robin Andersson',
author_email='robin2@kth.se',
description='A helper library for Hops that facilitates development by hi... | apache-2.0 | Python |
7c9e91b715e1527de516c60470728400669065d8 | Downgrade pika to 0.10.0 version | mosquito/aio-pika | setup.py | setup.py | import os
from setuptools import setup, find_packages
from importlib.machinery import SourceFileLoader
module = SourceFileLoader("version", os.path.join("aio_pika", "version.py")).load_module()
setup(
name='aio-pika',
version=module.__version__,
author=module.__author__,
author_email=module.team_ema... | import os
from setuptools import setup, find_packages
from importlib.machinery import SourceFileLoader
module = SourceFileLoader("version", os.path.join("aio_pika", "version.py")).load_module()
setup(
name='aio-pika',
version=module.__version__,
author=module.__author__,
author_email=module.team_ema... | apache-2.0 | Python |
056d028ecd056413081c62430d193dca13caae8a | Test for TCP Server. | Syralist/yet-another-hexapod,Syralist/yet-another-hexapod | hexapy/HexaPy.py | hexapy/HexaPy.py | '''
Created on 24.02.2014
@author: thomas
'''
import socket
class MyClass(object):
'''
classdocs
'''
def __init__(self, params):
'''
Constructor
'''
pass
if __name__ == "__main__":
TCP_IP = '127.0.0.1'
TCP_PORT = 55555
BUFFER_SIZE = 20
MESSAGE = ... | '''
Created on 24.02.2014
@author: thomas
'''
class MyClass(object):
'''
classdocs
'''
def __init__(self, params):
'''
Constructor
'''
| mit | Python |
11a8c3ad1b3de1fb4707466f71d4fa06227615d7 | update version number to 4.0.0 | rspeer/python-ftfy | setup.py | setup.py | from setuptools import setup
import sys
setup(
name="ftfy",
version='4.0.0',
maintainer='Luminoso Technologies, Inc.',
maintainer_email='info@luminoso.com',
license="MIT",
url='http://github.com/LuminosoInsight/python-ftfy',
platforms=["any"],
description="Fixes some problems with Unico... | from setuptools import setup
import sys
setup(
name="ftfy",
version='3.4.0',
maintainer='Luminoso Technologies, Inc.',
maintainer_email='info@luminoso.com',
license="MIT",
url='http://github.com/LuminosoInsight/python-ftfy',
platforms=["any"],
description="Fixes some problems with Unico... | mit | Python |
4f1124c7526ee1d30f0de180d459f42d716ad2c8 | Update master version to 0.3-dev | jni/viridis | setup.py | setup.py | #from distutils.core import setup
from setuptools import setup
descr = """Tree representations and algorithms for Python.
Viridis is named after the green tree python, Morelia viridis.
"""
DISTNAME = 'viridis'
DESCRIPTION = 'Tree data structures and algorithms'
LONG_DESCRIPTION = descr
MAINTAIN... | #from distutils.core import setup
from setuptools import setup
descr = """Tree representations and algorithms for Python.
Viridis is named after the green tree python, Morelia viridis.
"""
DISTNAME = 'viridis'
DESCRIPTION = 'Tree data structures and algorithms'
LONG_DESCRIPTION = descr
MAINTAIN... | mit | Python |
215b51b5330474422778e0c4cecc53847cd93cb4 | bump version number | wuher/devil | setup.py | setup.py | from distutils.core import setup
setup(
name='devil',
version='0.5',
author='Janne Kuuskeri (wuher)',
author_email='janne.kuuskeri@gmail.com',
url='https://github.com/wuher/devil/',
packages=['devil', 'devil.perm', 'devil.mappers'],
install_requires=['simplejson>=2.1.0', 'django>=1.3.0'],
... | from distutils.core import setup
setup(
name='devil',
version='0.4',
author='Janne Kuuskeri (wuher)',
author_email='janne.kuuskeri@gmail.com',
url='https://github.com/wuher/devil/',
packages=['devil', 'devil.perm', 'devil.mappers'],
install_requires=['simplejson>=2.1.0', 'django>=1.3.0'],
... | mit | Python |
860be6d38d79412a0fbe9b3efebcf3e9a2f0cc2c | Clean up setup.py and bump version number to 0.2 | bryanchow/django-templatepages | setup.py | setup.py | from setuptools import setup, find_packages
version = '0.2'
setup(
name='django-templatepages',
version = version,
description = "Django app for mapping URLs to templates on the filesystem.",
long_description = "django-templatepages is a Django app for mapping "
"URLs to templat... | from setuptools import setup, find_packages
import sys, os
version = '0.1.1'
setup(name='django-templatepages',
version=version,
description="Django app for mapping URLs to templates on the filesystem.",
long_description="""\
django-templatepages is a Django app for mapping URLs to templates
on the ... | bsd-3-clause | Python |
40478780c41cb942e0d6117368e9b03f88f175a4 | Update signboard.py | barfle/signboard | py/signboard.py | py/signboard.py | from dataplicity.client.task import Task, onsignal
import math
import operator
import serial
import ystockquote
from AM03127 import AM03127
class SignboardTask(Task):
"""Runs a signboard"""
def on_startup (self):
self.sign = AM03127()
self.stocks = ""
def poll(self):
"""Called on... | from dataplicity.client.task import Task, onsignal
import math
import operator
import serial
import ystockquote
from AM03127 import AM03127
class SignboardTask(Task):
"""Runs a signboard"""
def on_startup (self):
self.sign = AM03127()
def poll(self):
"""Called on a schedule defined in da... | bsd-3-clause | Python |
75fe6969a1b281d4ddcf33870a4474c5a89e2da6 | add tests to init | qedsoftware/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,qedsoftware/commcare-hq,qedsoftware/commcare-hq,qedsoftware/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,qedsoftware/commcare-hq | corehq/apps/ota/tests/__init__.py | corehq/apps/ota/tests/__init__.py | from .digest_restore import *
from .app_aware_restore import *
from .test_search_claim_endpoints import *
from .test_claim import *
from .test_demo_user import *
| from .digest_restore import *
from .app_aware_restore import *
from .test_search_claim_endpoints import *
from .test_claim import *
| bsd-3-clause | Python |
7c84d9b8f7cf4ca648cf4a5b3787803d8dd9b5f6 | Add base package to setup.py | AngryDevelopersLLC/res-core | setup.py | setup.py | from setuptools import setup
import os
def parse_requirements():
path = os.path.join(os.path.dirname(__file__), "res", "core",
"requirements", "base.txt")
reqs = []
with open(path, "r") as fin:
for r in fin.read().split("\n"):
r = r.strip()
if r.star... | from setuptools import setup
import os
def parse_requirements():
path = os.path.join(os.path.dirname(__file__), "res", "core",
"requirements", "base.txt")
reqs = []
with open(path, "r") as fin:
for r in fin.read().split("\n"):
r = r.strip()
if r.star... | bsd-3-clause | Python |
4dd31b9a57266384f75074de475c84e9874d6a82 | Set version to 2.4.0.pre2 | zero323/pyspark-stubs | setup.py | setup.py | """
Setup for PySpark type annotations.
Notes:
- To avoid manual PYTHONPATH modification the package installation will overlay PySpark installation. If this is not acceptable please download source and add it to PYTHONPATH manually.
"""
from setuptools import setup
import os
import sys
# find_packages doesn't see... | """
Setup for PySpark type annotations.
Notes:
- To avoid manual PYTHONPATH modification the package installation will overlay PySpark installation. If this is not acceptable please download source and add it to PYTHONPATH manually.
"""
from setuptools import setup
import os
import sys
# find_packages doesn't see... | apache-2.0 | Python |
7d43c2ae740161c9d41c982168b49b1aa8827960 | Stop making it more complicated than necessary | armicron/plata,armicron/plata,armicron/plata,stefanklug/plata,allink/plata | setup.py | setup.py | #!/usr/bin/env python
import os
from setuptools import setup, find_packages
import plata
setup(name='Plata',
version=plata.__version__,
description='Plata - the lean and mean Django-based Shop',
long_description=open(os.path.join(os.path.dirname(__file__), 'README.rst')).read(),
author='Matthias Kest... | #!/usr/bin/env python
import os
from setuptools import setup, find_packages
from setuptools.dist import Distribution
import pkg_resources
add_django_dependency = True
# See feinCMS issues #50, #57 and #58 for why this is necessary
try:
pkg_resources.get_distribution('Django')
add_django_dependency = False
ex... | bsd-3-clause | Python |
da394f3e80aa0f4ec25f64246759c2bd2a173e96 | Install kernelspec systemwide if not doing a --user install | newtux/KdbQ_kernel | setup.py | setup.py | from distutils.core import setup
from distutils.command.install import install
from distutils import log
import json
import os
import sys
kernel_json = {"argv":[sys.executable,"-m","bash_kernel", "-f", "{connection_file}"],
"display_name":"Bash",
"language":"bash",
"codemirror_mode":"shell"
}
class install_with_ke... | from distutils.core import setup
from distutils.command.install import install
import json
import os.path
import sys
kernel_json = {"argv":[sys.executable,"-m","bash_kernel", "-f", "{connection_file}"],
"display_name":"Bash",
"language":"bash",
"codemirror_mode":"shell"
}
class install_with_kernelspec(install):
... | bsd-3-clause | Python |
f556fcb1c8f1981724edbf746c90bc17bc0bf7ae | Rename package in setup.py | release-engineering/resultsdb-updater,release-engineering/resultsdb-updater | setup.py | setup.py | from setuptools import setup, find_packages
with open('requirements.txt', 'r') as f:
requirements = f.readlines()
with open('test-requirements.txt', 'r') as f:
test_requirements = f.readlines()
setup(
name='resultsdb-updater',
version='1.0.0',
description='A micro-service that listens for messag... | from setuptools import setup, find_packages
with open('requirements.txt', 'r') as f:
requirements = f.readlines()
with open('test-requirements.txt', 'r') as f:
test_requirements = f.readlines()
setup(
name='ciconsumer',
version='1.0.0',
description='A micro-service that listens for messages on t... | lgpl-2.1 | Python |
96750bbdc0bba3d562e3804f482fc33e8403d1f2 | Update email | romanvm/django-tinymce4-lite,romanvm/django-tinymce4-lite,romanvm/django-tinymce4-lite | setup.py | setup.py | #!/usr/bin/env python
import os
from codecs import open
from setuptools import setup
import metadata
app_name = metadata.name
version = metadata.version
this_dir = os.path.dirname(os.path.abspath(__file__))
def read(filename):
with open(filename, encoding='utf-8') as fo:
return fo.read()
long_descript... | #!/usr/bin/env python
import os
from codecs import open
from setuptools import setup
import metadata
app_name = metadata.name
version = metadata.version
this_dir = os.path.dirname(os.path.abspath(__file__))
def read(filename):
with open(filename, encoding='utf-8') as fo:
return fo.read()
long_descript... | mit | Python |
16fcf3a7f895c9bcb7825dbbbe0581b11c94b34c | Add MANIFEST.in | natthew/vertica-python,brokendata/vertica-python,twneale/vertica-python,uber/vertica-python,dennisobrien/vertica-python | setup.py | setup.py | #!/usr/bin/env python
import collections
from setuptools import setup
from pip.req import parse_requirements
dependency_links = []
install_requires = []
ReqOpts = collections.namedtuple('ReqOpts', ['skip_requirements_regex', 'default_vcs'])
opts = ReqOpts(None, 'git')
for ir in parse_requirements("requirements.txt... | #!/usr/bin/env python
import collections
from setuptools import setup
from pip.req import parse_requirements
dependency_links = []
install_requires = []
ReqOpts = collections.namedtuple('ReqOpts', ['skip_requirements_regex', 'default_vcs'])
opts = ReqOpts(None, 'git')
for ir in parse_requirements("requirements.txt... | apache-2.0 | Python |
045b8add1a2e45e120f1353f5412b8047dfa1a81 | Increment version number for release of new features and bug fixes to pypi | lepinsk/pydub,cbelth/pyMusic,joshrobo/pydub,miguelgrinberg/pydub,jiaaro/pydub,Geoion/pydub,sgml/pydub | setup.py | setup.py | __doc__ = """
Manipulate audio with an simple and easy high level interface.
See the README file for details, usage info, and a list of gotchas.
"""
from setuptools import setup
setup(
name='pydub',
version='0.7.0',
author='James Robert',
author_email='jiaaro@gmail.com',
description='Manipulate a... | __doc__ = """
Manipulate audio with an simple and easy high level interface.
See the README file for details, usage info, and a list of gotchas.
"""
from setuptools import setup
setup(
name='pydub',
version='0.6.3',
author='James Robert',
author_email='jiaaro@gmail.com',
description='Manipulate a... | mit | Python |
95410e6a1f519c7d642c59264ad6b53ac8b3e4b5 | improve download url | kparal/sendKindle,tonyyang132/sendKindle | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup
import sendKindle
setup(name='sendKindle',
version=sendKindle._version,
py_modules=['sendKindle'],
entry_points = {
'console_scripts': ['sendKindle = sendKindle:main'],
},
author='Kamil Paral',
author_email='kamil.paral@gma... | #!/usr/bin/env python
from setuptools import setup
import sendKindle
setup(name='sendKindle',
version=sendKindle._version,
py_modules=['sendKindle'],
entry_points = {
'console_scripts': ['sendKindle = sendKindle:main'],
},
author='Kamil Paral',
author_email='kamil.paral@gma... | agpl-3.0 | Python |
ba2b942e052587482b078c78d364ec18abeadcfa | Fix a typo | despawnerer/bow | setup.py | setup.py | from setuptools import setup
setup(
name='bow',
version='0.1',
description='Manage isolated environments for your projects using Docker',
url='https://github.com/despawnerer/bow',
author='Aleksei Voronov',
author_email='despawn@gmail.com',
license='MIT',
classifiers=[
'Developme... | from setuptools import setup
setup(
name='bow',
version='0.1',
description='Manager isolated environments for your projects using Docker',
url='https://github.com/despawnerer/bow',
author='Aleksei Voronov',
author_email='despawn@gmail.com',
license='MIT',
classifiers=[
'Developm... | mit | Python |
7c4466abd0577d0ff454a7c971df47ed07056572 | Trim out of date comment. | mbr/flatland0 | setup.py | setup.py | import os
import sys
if sys.version_info < (2, 5):
print "Python 2.5 or higher is required."
sys.exit(1)
try:
from setuptools import setup, find_packages
extra_setup = dict(
include_package_data=True,
zip_safe=True,
)
except ImportError:
from distutils.core import setup
... |
import os
import sys
# Restrict to Python 2.5, for now. Provide compatibilty for 2.4 later.
if sys.version_info < (2, 5):
print "Python 2.5 or higher is required."
sys.exit(1)
try:
from setuptools import setup, find_packages
extra_setup = dict(
include_package_data=True,
zip_safe=Tru... | mit | Python |
00a33013bc5c147b64c11cae442fc4f71c6bb61e | Fix flake8 for setup.py | wkentaro/fcn | setup.py | setup.py | #!/usr/bin/env python
import shlex
import subprocess
import sys
from setuptools import find_packages
from setuptools import setup
version = '5.0.1'
if sys.argv[-1] == 'release':
commands = [
'python setup.py sdist',
'twine upload dist/fcn-{0}.tar.gz'.format(version),
'git tag v{0}'.for... | #!/usr/bin/env python
import os
import os.path as osp
import shlex
import shutil
import subprocess
import sys
from setuptools import find_packages
from setuptools import setup
version = '5.0.1'
if sys.argv[-1] == 'release':
commands = [
'python setup.py sdist',
'twine upload dist/fcn-{0}.tar.g... | mit | Python |
a0d17f10dd269aa0a1be97276c312f3f522787f5 | Increase version and add python 3 classifier | ngraziano/isystem-to-mqtt | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
setup(
name='isystem-to-mqtt',
version='0.2.0',
author='Nicolas Graziano',
author_email='nicolas.graziano+py@gmail.com',
packages= find_packages(),
scripts=['bin/poll_isystem_mqtt.py', 'bin/dump_isystem.p... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
setup(
name='isystem-to-mqtt',
version='0.1.0',
author='Nicolas Graziano',
author_email='nicolas.graziano+py@gmail.com',
packages= find_packages(),
scripts=['bin/poll_isystem_mqtt.py', 'bin/dump_isystem.p... | mit | Python |
dbb331410b6b247b5a4d56f1683077b3bd4fc8b8 | prepare for 0.7 | lindenlab/eventlet,lindenlab/eventlet,collinstocks/eventlet,tempbottle/eventlet,lindenlab/eventlet,tempbottle/eventlet,collinstocks/eventlet | setup.py | setup.py | #!/usr/bin/env python
from setuptools import find_packages, setup
setup(
name='eventlet',
version='0.7',
description='Coroutine-based networking library',
author='Linden Lab',
author_email='eventletdev@lists.secondlife.com',
url='http://wiki.secondlife.com/wiki/Eventlet',
packages=find_p... | #!/usr/bin/env python
from setuptools import find_packages, setup
setup(
name='eventlet',
version='0.7pre',
description='Coroutine-based networking library',
author='Linden Lab',
author_email='eventletdev@lists.secondlife.com',
url='http://wiki.secondlife.com/wiki/Eventlet',
packages=fin... | mit | Python |
e544e172979cc19a28d49c5b0cf74d882fb9ac26 | make setup.py get the version by reading py/__init__.py | pytest-dev/py,Magicjarvis/py | setup.py | setup.py | import os
import sys
from setuptools import setup
def get_version():
p = os.path.join(os.path.dirname(
os.path.abspath(__file__)), "py", "__init__.py")
with open(p) as f:
for line in f.readlines():
if "__version__" in line:
return line.strip().split("="... | import os, sys
from setuptools import setup
def main():
setup(
name='py',
description='library with cross-python path, ini-parsing, io, code, log facilities',
long_description = open('README.rst').read(),
version='1.4.32.dev1',
url='http://pylib.readthedocs.org/',
l... | mit | Python |
69adfed9a8fc2da2b25eb256298a1153d5809e8f | Add sb-vision to install_requires | sourcebots/robotd,sourcebots/robotd | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='robotd',
version='1.0',
description="Daemon for vision code for Source Bots",
author="SourceBots",
author_email='',
packages=find_packages(),
setup_requires=[
'cffi>=1.4.0',
],
cffi_modules=[
... | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='robotd',
version='1.0',
description="Daemon for vision code for Source Bots",
author="SourceBots",
author_email='',
packages=find_packages(),
setup_requires=[
'cffi>=1.4.0',
],
cffi_modules=[
... | mit | Python |
b88a899f0d61c2d0f219765f2f8f49c9179c6cd9 | Bump version number. | mherrmann/osxtrash | setup.py | setup.py | """Send files to the Trash on OS X (incl. "Put Back" support).
See:
https://github.com/mherrmann/osxtrash"""
from setuptools import setup, Extension
impl = Extension(
'osxtrash.impl',
sources=['src/objc/trash.m'],
extra_compile_args=['-mmacosx-version-min=10.5'],
extra_link_args=[
'-framework', 'AppKit',
'-f... | """Send files to the Trash on OS X (incl. "Put Back" support).
See:
https://github.com/mherrmann/osxtrash"""
from setuptools import setup, Extension
impl = Extension(
'osxtrash.impl',
sources=['src/objc/trash.m'],
extra_compile_args=['-mmacosx-version-min=10.5'],
extra_link_args=[
'-framework', 'AppKit',
'-f... | mit | Python |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.