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 |
|---|---|---|---|---|---|---|---|---|
11bfb4097acd4f984143e92ffab2906777b0f256 | Divide training and test sets to calculate accuracy | ecairol/sklearn-amazon-reviews | machine.py | machine.py | """
Author: Esteban Cairol
Text classifier.
"""
import sys
import os
import random
import numpy as np
from sklearn.feature_extraction.text import TfidfVectorizer
# from sklearn.svm import LinearSVC
from sklearn.feature_extraction.text import CountVectorizer
from sklearn.feature_extraction.text import TfidfTransformer
... | """
Author: Esteban Cairol
Text classifier.
"""
import sys
import os
import numpy as np
from sklearn.feature_extraction.text import TfidfVectorizer
# from sklearn.svm import LinearSVC
from sklearn.feature_extraction.text import CountVectorizer
from sklearn.feature_extraction.text import TfidfTransformer
from sklearn.n... | mit | Python |
95d9260b942d550a2d19319a29afb30756e764ce | revert to previously running code | WiSchLabs/ofm_helper,WiSchLabs/ofm_helper,Sh4kE/ofm_helper,WiSchLabs/ofm_helper,Sh4kE/ofm_helper,WiSchLabs/ofm_helper | core/parsers/players_parser.py | core/parsers/players_parser.py | from bs4 import BeautifulSoup
from core.models import Player, Matchday, Season, Country, PlayerUserOwnership
from core.parsers.base_parser import BaseParser
class PlayersParser(BaseParser):
def __init__(self, html_source, user):
self.html_source = html_source
self.user = user
def parse(self)... | from bs4 import BeautifulSoup
from core.models import Player, Matchday, Season, Country, PlayerUserOwnership
from core.parsers.base_parser import BaseParser
class PlayersParser(BaseParser):
def __init__(self, html_source, user):
self.html_source = html_source
self.user = user
def parse(self)... | agpl-3.0 | Python |
d3e2ed6d45040fd983c091815ca9ea1579f24d09 | Update notes | SoyM/Login,SoyM/Login-LXwifi | lx-wifi.py | lx-wifi.py | #!/usr/bin/python
import urllib
import urllib2
import cookielib
hosturl = 'http://sj.dglongxi.com:88/Weixin.aspx?nasIp=113.98.10.144&nasPortId=DG-WJ-BAS-3.-43001290200000@vlan&ip=119.141.206.60&mac='
#vlan&ip=119.141.206.60 , change119.141.60.119 to you ip address
posturl = 'http://sj.dglongxi.com:88/Weixin.aspx?n... | #!/usr/bin/python
import urllib
import urllib2
import cookielib
hosturl = 'http://sj.dglongxi.com:88/Weixin.aspx?nasIp=113.98.10.144&nasPortId=DG-WJ-BAS-3.-43001290200000@vlan&ip=119.141.206.60&mac='
posturl = 'http://sj.dglongxi.com:88/Weixin.aspx?nasIp=113.98.10.144&nasPortId=DG-WJ-BAS-3.-43001290200000%vlan&ip... | apache-2.0 | Python |
8fee5db95ba70c93fdf252d2f499fa759079a1bd | fix webapp2 error_handler app root | Bogdanp/markii,Bogdanp/markii,Bogdanp/markii | markii/frameworks/webapp2.py | markii/frameworks/webapp2.py | from markii import markii
from collections import OrderedDict
def handle_error(request, response, exception, code=500, app_root=""):
response.write(markii(exception, request=OrderedDict((
("url", request.url),
("query_string", request.query_string),
("method", request.method),
("c... | from markii import markii
from collections import OrderedDict
def handle_error(request, response, exception, code=500, app_root=None):
response.write(markii(exception, request=OrderedDict((
("url", request.url),
("query_string", request.query_string),
("method", request.method),
(... | mit | Python |
53eb2007b0be37fac6db209c85bdc99fe42e724b | add fedmsg init | lucaskanashiro/debile,opencollab/debile,tanglu-org/debile,mdimjasevic/debile,lucaskanashiro/debile,tcc-unb-fga/debile,opencollab/debile,Debian/debile,Debian/debile,mdimjasevic/debile,tanglu-org/debile,tcc-unb-fga/debile | debile/master/messaging.py | debile/master/messaging.py | # Copyright (c) 2012-2013 Paul Tagliamonte <paultag@debian.org>
#
# 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, including without limitation
# the rights to use, copy, ... | # Copyright (c) 2012-2013 Paul Tagliamonte <paultag@debian.org>
#
# 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, including without limitation
# the rights to use, copy, ... | mit | Python |
d51676ae72009a48776e24e6a8b7e00151b9fca1 | Add Python3.4 and 3.5 to setup.py | keleshev/schema,bcaudell95/schema,Liwink/schema,dylanninin/schema,jab/schema,kurtbrose/schema | setup.py | setup.py | from setuptools import setup
import codecs
import schema
setup(
name=schema.__name__,
version=schema.__version__,
author="Vladimir Keleshev",
author_email="vladimir@keleshev.com",
description="Simple data validation library",
license="MIT",
keywords="schema json validation",
url="http... | from setuptools import setup
import codecs
import schema
setup(
name=schema.__name__,
version=schema.__version__,
author="Vladimir Keleshev",
author_email="vladimir@keleshev.com",
description="Simple data validation library",
license="MIT",
keywords="schema json validation",
url="http... | mit | Python |
c4d67562c00cab6bec7c74bc5eed6575704f32c4 | Update loop | jiasir/url-mon | url-mon.py | url-mon.py | #!/usr/bin/env python
__author__ = 'jiasir'
"""Usage:
python url-mon.py url phone[ phone...]
"""
import sys
import logging
import urllib2
import time
import socket
url = sys.argv[1]
p = sys.argv[2:]
logger = logging.getLogger('url-mon')
logging.basicConfig(filename='url-mon.log', level=logging.DEBUG,
... | #!/usr/bin/env python
__author__ = 'jiasir'
"""Usage:
python url-mon.py url phone[ phone...]
"""
import sys
import logging
import urllib2
import time
import socket
url = sys.argv[1]
p = sys.argv[2:]
logger = logging.getLogger('url-mon')
logging.basicConfig(filename='url-mon.log', level=logging.DEBUG, format='%(... | mit | Python |
c4e4c9015061b00bb8e6791c961acca7ea6e024d | Tidy versioned dependencies | mr-c/common-workflow-language,chapmanb/cwltool,stain/common-workflow-language,jeremiahsavage/cwltool,common-workflow-language/cwltool,dleehr/common-workflow-language,common-workflow-language/common-workflow-language,common-workflow-language/schema_salad,chapmanb/cwltool,ohsu-computational-biology/common-workflow-langua... | setup.py | setup.py | #!/usr/bin/env python
import os
import sys
import setuptools.command.egg_info as egg_info_cmd
import shutil
from setuptools import setup, find_packages
SETUP_DIR = os.path.dirname(__file__)
README = os.path.join(SETUP_DIR, 'README.rst')
try:
import gittaggers
tagger = gittaggers.EggInfoFromGit
except Import... | #!/usr/bin/env python
import os
import sys
import setuptools.command.egg_info as egg_info_cmd
import shutil
from setuptools import setup, find_packages
SETUP_DIR = os.path.dirname(__file__)
README = os.path.join(SETUP_DIR, 'README.rst')
try:
import gittaggers
tagger = gittaggers.EggInfoFromGit
except Import... | apache-2.0 | Python |
1372c00a0668cc6a39953264d23f012391afe768 | Check variable before accessing it | mglukhikh/intellij-community,ThiagoGarciaAlves/intellij-community,asedunov/intellij-community,vvv1559/intellij-community,signed/intellij-community,suncycheng/intellij-community,mglukhikh/intellij-community,allotria/intellij-community,xfournet/intellij-community,signed/intellij-community,mglukhikh/intellij-community,xfo... | python/helpers/pycharm/_jb_unittest_runner.py | python/helpers/pycharm/_jb_unittest_runner.py | # coding=utf-8
import os
from unittest import main
from _jb_runner_tools import jb_start_tests, jb_doc_args
from teamcity import unittestpy
if __name__ == '__main__':
path, targets, additional_args = jb_start_tests()
args = ["python -m unittest"]
if path:
discovery_args = ["discover", "-s"]
... | # coding=utf-8
import os
from unittest import main
from _jb_runner_tools import jb_start_tests, jb_doc_args
from teamcity import unittestpy
if __name__ == '__main__':
path, targets, additional_args = jb_start_tests()
args = ["python -m unittest"]
if path:
discovery_args = ["discover", "-s"]
... | apache-2.0 | Python |
58a3ce8fa771d2ba5ed48de08b29c306bb895776 | Bump version number to 0.2.11 | kblin/ncbi-genome-download,kblin/ncbi-genome-download | ncbi_genome_download/__init__.py | ncbi_genome_download/__init__.py | """Download genome files from the NCBI"""
from .config import (
SUPPORTED_TAXONOMIC_GROUPS,
NgdConfig
)
from .core import (
args_download,
download,
argument_parser,
)
__version__ = '0.2.11'
__all__ = [
'download',
'args_download',
'SUPPORTED_TAXONOMIC_GROUPS',
'NgdConfig',
'arg... | """Download genome files from the NCBI"""
from .config import (
SUPPORTED_TAXONOMIC_GROUPS,
NgdConfig
)
from .core import (
args_download,
download,
argument_parser,
)
__version__ = '0.2.10'
__all__ = [
'download',
'args_download',
'SUPPORTED_TAXONOMIC_GROUPS',
'NgdConfig',
'arg... | apache-2.0 | Python |
76eb900518a006b81b9f3947ee39261d95dbd70a | Remove debug print | jacquev6/ActionTree,jacquev6/ActionTree | ActionTree/StockActions.py | ActionTree/StockActions.py | # -*- coding: utf-8 -*-
# Copyright 2013 Vincent Jacques
# vincent@vincent-jacques.net
# This file is part of ActionTree. http://jacquev6.github.com/ActionTree
# ActionTree is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License
# as published by th... | # -*- coding: utf-8 -*-
# Copyright 2013 Vincent Jacques
# vincent@vincent-jacques.net
# This file is part of ActionTree. http://jacquev6.github.com/ActionTree
# ActionTree is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License
# as published by th... | mit | Python |
b0eca5828ccd3a5c07b77e82e567c45937de9056 | Bump version to 3.2.1-stable | ex/godot,ex/godot,ex/godot,ex/godot,ex/godot,ex/godot,ex/godot,ex/godot | version.py | version.py | short_name = "godot"
name = "Godot Engine"
major = 3
minor = 2
patch = 1
status = "stable"
module_config = ""
year = 2020
website = "https://godotengine.org"
| short_name = "godot"
name = "Godot Engine"
major = 3
minor = 2
patch = 1
status = "rc"
module_config = ""
year = 2020
website = "https://godotengine.org"
| mit | Python |
f377b9137e8e0df57fabdf21d116cc1cc0f09a2a | add --verbose to get a filename of a slient file | m4rx9/rna-pdb-tools,m4rx9/rna-pdb-tools | rna_pdb_tools/utils/rna_rosetta/rna_rosetta_n.py | rna_pdb_tools/utils/rna_rosetta/rna_rosetta_n.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""rna_roseta_n.py - show me # of structure in a silent file
Example::
$ rna_rosetta_n.py ade.out
21594
"""
from __future__ import print_function
import subprocess
import argparse
def get_parser():
parser = argparse.ArgumentParser(
description=__d... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Example::
$ rna_rosetta_n.py ade.out
21594
"""
import subprocess
import argparse
def get_parser():
parser = argparse.ArgumentParser(description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter)
parser.add_argument('file', help='ade.out')
... | mit | Python |
d486505f270125a4b5c7f460f4f39a9c1eab9a1f | Add Python 2 and 3 PyPI classifiers. | SciTools/tephi | setup.py | setup.py | from setuptools import setup
setup(
name='tephi',
version='0.2.0-alpha',
url='https://github.com/SciTools/tephi',
author='Bill Little',
author_email='bill.james.little@gmail.com',
packages=['tephi', 'tephi.tests'],
package_dir={'': 'lib'},
package_data={'tephi': ['etc/test_data/*.txt']... | from setuptools import setup
setup(
name='tephi',
version='0.2.0-alpha',
url='https://github.com/SciTools/tephi',
author='Bill Little',
author_email='bill.james.little@gmail.com',
packages=['tephi', 'tephi.tests'],
package_dir={'': 'lib'},
package_data={'tephi': ['etc/test_data/*.txt']... | bsd-3-clause | Python |
58402640d76480d989f3e0c4716400cabaeb6b39 | Add the "Framework :: Django :: 1.10" trove classifier | vfaronov/django-httpolice,vfaronov/django-httpolice | setup.py | setup.py | # -*- coding: utf-8; -*-
import io
import os
from setuptools import setup
metadata = {}
with io.open(os.path.join('django_httpolice', '__metadata__.py'), 'rb') as f:
exec(f.read(), metadata) # pylint: disable=exec-used
with io.open('README.rst') as f:
long_description = f.read()
with io.open('r... | # -*- coding: utf-8; -*-
import io
import os
from setuptools import setup
metadata = {}
with io.open(os.path.join('django_httpolice', '__metadata__.py'), 'rb') as f:
exec(f.read(), metadata) # pylint: disable=exec-used
with io.open('README.rst') as f:
long_description = f.read()
with io.open('r... | mit | Python |
64683eeed54be7ac01ee08888f8f3738e1385ac3 | bump version | cyberdelia/instax | setup.py | setup.py | # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
with open('LICENSE') as f:
license = f.read()
setup(
name='instax',
version='0.1.5',
description='Making celery monitoring easier.',
author='Timothee Peignier',
author_email='timothee.peignier@tryphon.org',
url='https://gi... | # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
with open('LICENSE') as f:
license = f.read()
setup(
name='instax',
version='0.1.4',
description='Making celery monitoring easier.',
author='Timothee Peignier',
author_email='timothee.peignier@tryphon.org',
url='https://gi... | mit | Python |
d81623779e5f928e251544f47e626f7c5ef93cbf | bump version 0.7.4 | jameshiew/mws,GriceTurrble/python-amazon-mws,Bobspadger/python-amazon-mws | setup.py | setup.py | # -*- coding: utf-8 -*-
from setuptools import setup
short_description = 'Python library for interacting with the Amazon MWS API'
try:
from pypandoc import convert
long_description = convert("README.md", 'rst')
except (ImportError, OSError): # either pypandoc or pandoc isn't installed
long_description = ... | # -*- coding: utf-8 -*-
from setuptools import setup
short_description = 'Python library for interacting with the Amazon MWS API'
try:
from pypandoc import convert
long_description = convert("README.md", 'rst')
except (ImportError, OSError): # either pypandoc or pandoc isn't installed
long_description = ... | unlicense | Python |
c9cdadd563b0ed48c1dcd99590ac82e5b7d0af8a | Fix #94 - Order sponsors by level and date added | EuroPython/djep,EuroPython/djep,EuroPython/djep,EuroPython/djep,pysv/djep,pysv/djep,pysv/djep,pysv/djep,pysv/djep | pyconde/sponsorship/cms_plugins.py | pyconde/sponsorship/cms_plugins.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from itertools import groupby
from django.utils.translation import ugettext as _
from cms.plugin_base import CMSPluginBase
from cms.plugin_pool import plugin_pool
from . import models
class SponsorListPlugin(CMSPluginBase):
model = models.Sponsor... | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from itertools import groupby
from django.utils.translation import ugettext as _
from cms.plugin_base import CMSPluginBase
from cms.plugin_pool import plugin_pool
from . import models
class SponsorListPlugin(CMSPluginBase):
model = models.Sponsor... | bsd-3-clause | Python |
a8d03480e10b21e54f4c36eaf730ee9bb653c7d1 | Make RFC1459 protocol.py prettier. | Shizmob/pydle | pydle/features/rfc1459/protocol.py | pydle/features/rfc1459/protocol.py | ## protocol.py
# RFC1459 protocol constants.
import re
import collections
## Limits.
CHANNEL_LIMITS_GROUPS = {
'#': frozenset('#&'),
'&': frozenset('#&')
}
CHANNEL_LIMITS = {
frozenset('#&'): 10
}
LIST_LIMIT_GROUPS = {
'b': frozenset('b')
}
LIST_LIMITS = {
frozenset('b'): None
}
PARAMETER_LIMIT =... | ## protocol.py
# RFC1459 protocol constants.
import re
import collections
## Limits.
CHANNEL_LIMITS_GROUPS = { '#': frozenset('#&'), '&': frozenset('#&') }
CHANNEL_LIMITS = { frozenset('#&'): 10 }
LIST_LIMIT_GROUPS = { 'b': frozenset('b') }
LIST_LIMITS = { frozenset('b'): None }
PARAMETER_LIMIT = 15
MESSAGE_LENGTH_L... | bsd-3-clause | Python |
767fd08da2710a36b34f6b8f2ff1df462f98674f | use setuptools_scm & markdown readme | wq/django-rest-pandas,wq/django-rest-pandas,wq/django-rest-pandas,wq/django-rest-pandas | setup.py | setup.py | from setuptools import setup, find_packages
LONG_DESCRIPTION = (
"Serves up pandas dataframes via the Django REST Framework for client-side"
"(i.e. d3.js) visualizations"
)
def readme():
try:
readme = open('README.md')
except IOError:
return LONG_DESCRIPTION
else:
return r... | import subprocess
from setuptools import setup, find_packages
LONG_DESCRIPTION = (
"Serves up pandas dataframes via the Django REST Framework for client-side"
"(i.e. d3.js) visualizations"
)
def parse_markdown_readme():
"""
Convert README.md to RST via pandoc, and load into memory
(fallback to LO... | mit | Python |
873f06f7d8b04edf16017474128f7156ccf263cb | manage version number of Py client indep | slivingston/gr1c,slivingston/gr1c,slivingston/gr1c | contrib/py/setup.py | contrib/py/setup.py | #!/usr/bin/env python
from __future__ import print_function
from setuptools import setup
# This version number is independent of that of gr1c!
MAJOR = 0
MINOR = 0
MICRO = 0
gr1c_version = '{major}.{minor}.{micro}'.format(major=MAJOR, minor=MINOR, micro=MICRO)
with open('gr1c/_version.py', 'w') as f:
f.write("""... | #!/usr/bin/env python
from __future__ import print_function
from setuptools import setup
# Version; manually keep in sync with src/common.h !
MAJOR = 0
MINOR = 12
MICRO = 0
gr1c_version = '{major}.{minor}.{micro}'.format(major=MAJOR, minor=MINOR, micro=MICRO)
with open('gr1c/_version.py', 'w') as f:
f.write("""... | bsd-3-clause | Python |
3053219149f7dac7ab073fc24488116b1b280b77 | Use function described in readme | coolshop-com/coolshop-application-assignment | money_rounding.py | money_rounding.py | def show_pretty_price(value):
raise NotImplementedError()
| def get_price_without_vat(price_to_show, vat_percent):
raise NotImplementedError()
def get_price_without_vat_from_other_valuta(conversion_rate, origin_price,
origin_vat, other_vat):
raise NotImplementedError()
| mit | Python |
ea7200bc9774f69562b37f177ad18ca606998dfa | Archive logs from the tools | couchbase/perfrunner,couchbase/perfrunner,pavel-paulau/perfrunner,couchbase/perfrunner,couchbase/perfrunner,pavel-paulau/perfrunner,couchbase/perfrunner,couchbase/perfrunner,pavel-paulau/perfrunner,pavel-paulau/perfrunner,pavel-paulau/perfrunner | perfrunner/utils/debug.py | perfrunner/utils/debug.py | import glob
import os.path
import shutil
from optparse import OptionParser
from perfrunner.helpers.remote import RemoteHelper
from perfrunner.settings import ClusterSpec
def get_options():
usage = '%prog -c cluster'
parser = OptionParser(usage)
parser.add_option('-c', dest='cluster_spec_fname',
... | import glob
import shutil
from optparse import OptionParser
from perfrunner.helpers.remote import RemoteHelper
from perfrunner.settings import ClusterSpec
def get_options():
usage = '%prog -c cluster'
parser = OptionParser(usage)
parser.add_option('-c', dest='cluster_spec_fname',
... | apache-2.0 | Python |
41416afdd05df56180a8d795ed77e83e0851efdd | Set version to 0.2; add brownie dependency | schwa-lab/dr-apps-python | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup
setup(name='drcli',
version='0.2',
description='Command-line tools for docrep',
author = 'schwa lab',
url='http://schwa.org/git/drcli.git',
packages=['drcli'],
scripts=['dr'],
install_requires=['argparse', 'brownie'],
p... | #!/usr/bin/env python
from setuptools import setup
setup(name='drcli',
version='0.1',
description='Command-line tools for docrep',
author = 'schwa lab',
url='http://schwa.org/git/drcli.git',
packages=['drcli'],
scripts=['dr'],
install_requires=['argparse'],
package_data... | mit | Python |
5f2b8f73ca83b669245ea1d9e2369066ef9957dd | Increment version to 1.0.3. | getwarped/powershift-cluster,getwarped/powershift-cluster | setup.py | setup.py | import sys
import os
from setuptools import setup
long_description = open('README.rst').read()
classifiers = [
'Development Status :: 4 - Beta',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
]
setup_kwargs = dict(
name='... | import sys
import os
from setuptools import setup
long_description = open('README.rst').read()
classifiers = [
'Development Status :: 4 - Beta',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
]
setup_kwargs = dict(
name='... | bsd-2-clause | Python |
ffc71a306885f290eb20f8bfa24d6ee2fd70cf24 | bump to v0.1.1 | schlan/hevi_client | version.py | version.py | VERSION = "0.1.1"
AUTHOR = "Sebastian Chlan"
VERSION_STRING = "Version {0} | Author: {1}".format(VERSION, AUTHOR) | VERSION = "0.1.0"
AUTHOR = "Sebastian Chlan"
VERSION_STRING = "Version {0} | Author: {1}".format(VERSION, AUTHOR) | apache-2.0 | Python |
e6b7bfe0a5b173dad76f6c39f25e0f27563ae490 | Fix syntax for Python 2 | kayak/pypika | pypika/tests/test_pseudocolumns.py | pypika/tests/test_pseudocolumns.py | import unittest
from pypika import (
Table,
Query,
)
from pypika.pseudocolumns import (
ColumnValue,
ObjectID,
ObjectValue,
RowID,
RowNum,
SysDate,
)
from pypika.terms import PseudoColumn
class PseudocolumnsTest(unittest.TestCase):
@classmethod
def setUpClass(cls):
su... | import unittest
from pypika import (
Table,
Query,
)
from pypika.pseudocolumns import (
ColumnValue,
ObjectID,
ObjectValue,
RowID,
RowNum,
SysDate,
)
from pypika.terms import PseudoColumn
class PseudocolumnsTest(unittest.TestCase):
@classmethod
def setUpClass(cls):
su... | apache-2.0 | Python |
5b18fad6bea744e38b14d6e603e5fb0091bbc9d9 | Remove unicode from named query help message. | rafalcieslinski/pgspecial,dbcli/pgspecial | pgspecial/namedqueries.py | pgspecial/namedqueries.py | # -*- coding: utf-8 -*-
class NamedQueries(object):
section_name = 'named queries'
usage = u'''Named Queries are a way to save frequently used queries
with a short name. Think of them as favorites.
Examples:
# Save a new named query.
> \\ns simple select * from abc where a is not Null;
# List al... | # -*- coding: utf-8 -*-
class NamedQueries(object):
section_name = 'named queries'
usage = u'''Named Queries are a way to save frequently used queries
with a short name. Think of them as favorites.
Examples:
# Save a new named query.
> \\ns simple select * from abc where a is not Null;
# List al... | bsd-3-clause | Python |
277647fe7f8a4610b8e2ac417a686e9b4d81baf1 | remove $Id$ tag and sort imports | ZeitOnline/zeit.content.portraitbox | src/zeit/content/portraitbox/reference.py | src/zeit/content/portraitbox/reference.py | # Copyright (c) 2007-2010 gocept gmbh & co. kg
# See also LICENSE.txt
import zeit.cms.content.dav
import zeit.cms.interfaces
import zeit.connector.interfaces
import zeit.content.portraitbox.interfaces
import zope.component
import zope.interface
class PortraitboxReference(object):
zope.component.adapts(zeit.cms.... | # Copyright (c) 2007-2010 gocept gmbh & co. kg
# See also LICENSE.txt
# $Id$
import zope.component
import zope.interface
import zeit.cms.content.dav
import zeit.cms.interfaces
import zeit.connector.interfaces
import zeit.content.portraitbox.interfaces
class PortraitboxReference(object):
zope.component.adapts(z... | bsd-3-clause | Python |
c090478ca2252d7085a1d60954cd893d47b591db | add "you're ignored" message | Rouji/Yui,Rj48/ircbot | plugins/ratelimit.py | plugins/ratelimit.py | import time
from collections import deque
last_tick = time.time()
timeframe = yui.config_val('ratelimit', 'timeframe', default=60.0)
max_msg = yui.config_val('ratelimit', 'messages', default=6.0) + 1
ignore_minutes = yui.config_val('ratelimit', 'ignoreMinutes', default=3.0)
ignore_seconds = 60.0 * ignore_minutes
buf... | import time
from collections import deque
last_tick = time.time()
timeframe = yui.config_val('ratelimit', 'timeframe', default=60.0)
max_msg = yui.config_val('ratelimit', 'messages', default=6.0) + 1
ignore_for = 60.0 * yui.config_val('ratelimit', 'ignoreMinutes', default=3.0)
buffers = {}
@yui.event('preCmd')
def... | mit | Python |
e851bf65a16619038dd409cdac39acb211855bc0 | Update strings script to use absolute paths | mattprecious/smstimefix,mattprecious/smstimefix,mattprecious/smstimefix | port_strings.py | port_strings.py | #!/usr/bin/python
import xml.etree.ElementTree as etree
import xml.dom.minidom as minidom
import glob
import os
import sys
def makedir(directory):
if not os.path.exists(directory):
os.makedirs(directory)
def findandappend(source, target):
nodes = source.findall(".//string[@multiapk='true']")
for n... | #!/usr/bin/python
import xml.etree.ElementTree as etree
import xml.dom.minidom as minidom
import glob
import os
def makedir(directory):
if not os.path.exists(directory):
os.makedirs(directory)
def findandappend(source, target):
nodes = source.findall(".//string[@multiapk='true']")
for node in nodes... | apache-2.0 | Python |
9e63030460b287b7f268b6924697e0265019b37c | Fix avatar URL address | terotic/digihel,City-of-Helsinki/digihel,terotic/digihel,City-of-Helsinki/digihel,City-of-Helsinki/digihel,terotic/digihel,City-of-Helsinki/digihel | people/models.py | people/models.py | import hashlib
from django.db import models
from wagtail.wagtailcore.models import Page
from wagtail.wagtailadmin.edit_handlers import FieldPanel, InlinePanel
from users.models import User
class Person(models.Model):
user = models.OneToOneField(User, null=True, blank=True)
first_name = models.CharField(max_le... | import hashlib
from django.db import models
from wagtail.wagtailcore.models import Page
from wagtail.wagtailadmin.edit_handlers import FieldPanel, InlinePanel
from users.models import User
class Person(models.Model):
user = models.OneToOneField(User, null=True, blank=True)
first_name = models.CharField(max_le... | mit | Python |
fd36dc1ef73c9db61bb22d868bfb30ac15604cc1 | Bump dev version | rueckstiess/mtools,rueckstiess/mtools | mtools/version.py | mtools/version.py | #!/usr/bin/env python3
"""Mtools version."""
__version__ = '1.6.2-dev'
| #!/usr/bin/env python3
"""Mtools version."""
__version__ = '1.6.1'
| apache-2.0 | Python |
98a6581e2925fb9a0d24e19eacc9d6fc03108da4 | fix setup for pip | gbrammer/grizli | setup.py | setup.py | from distutils.core import setup
from distutils.extension import Extension
import os
import numpy
try:
from Cython.Build import cythonize
USE_CYTHON = True
except ImportError:
USE_CYTHON = False
if not os.path.exists('grizli/utils_c/interp.pyx'):
USE_CYTHON = False
if USE_CYTHON:
cext = '.py... | from distutils.core import setup
from distutils.extension import Extension
try:
from Cython.Build import cythonize
USE_CYTHON = True
cext = '.pyx'
except ImportError:
USE_CYTHON = False
cext = '.c'
import os
import numpy
extensions = [
Extension("grizli/utils_c/interp", ["grizli/utils_c/i... | mit | Python |
ae27d070ccbd9939ffd69520a0278dfcf666b1a5 | Add project_urls to setup.py | cihai/unihan-db | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf8 - *-
"""unihan-db lives at <https://unihan-db.git-pull.com>."""
import sys
from setuptools import setup
from setuptools.command.test import test as TestCommand
about = {}
with open("unihan_db/__about__.py") as fp:
exec(fp.read(), about)
with open('requirements/base.txt')... | #!/usr/bin/env python
# -*- coding: utf8 - *-
"""unihan-db lives at <https://unihan-db.git-pull.com>."""
import sys
from setuptools import setup
from setuptools.command.test import test as TestCommand
about = {}
with open("unihan_db/__about__.py") as fp:
exec(fp.read(), about)
with open('requirements/base.txt')... | mit | Python |
e4c0dd7989fff2dedeb7e808de460e6fa1b0c895 | Bump to 0.3.12 | cookbrite/flyingcloud,cookbrite/flyingcloud | setup.py | setup.py | from __future__ import absolute_import
from setuptools import setup, find_packages
setup(
name='flyingcloud',
version='0.3.12',
description='Build Docker images using SaltStack',
author='MetaBrite, Inc.',
author_email='flyingcloud-admin@metabrite.com',
license='Apache Software License 2.0',
... | from __future__ import absolute_import
from setuptools import setup, find_packages
setup(
name='flyingcloud',
version='0.3.11',
description='Build Docker images using SaltStack',
author='MetaBrite, Inc.',
author_email='flyingcloud-admin@metabrite.com',
license='Apache Software License 2.0',
... | apache-2.0 | Python |
0b68ef8757a13a1bdf1d7fdfb18f3aa7fca065d5 | Update draft2tool.py | common-workflow-language/cwltool,dleehr/cwltool,dleehr/cwltool,dleehr/cwltool,dleehr/cwltool,common-workflow-language/cwltool,common-workflow-language/cwltool | cwltool/draft2tool.py | cwltool/draft2tool.py | # Do wildcard import of cltool
from .cltool import *
_logger = logging.getLogger("cwltool")
_logger.warning("'draft2tool.py' has been renamed to 'tool.py'"
"and will be removed in the future.")
| # Do wildcard import of tool
from .cltool import *
_logger = logging.getLogger("cwltool")
_logger.warning("'draft2tool.py' has been renamed to 'tool.py'"
"and will be removed in the future.")
| apache-2.0 | Python |
22e82e3fb6949efe862216feafaedb2da9b19c62 | Update file handlers to use Python3 urllib | brianjbuck/robie | filehandler.py | filehandler.py | import csv
import sys
import urllib.error
import urllib.request
from scheduleitem import ScheduleItem
from team import Team
def read(uri):
"""Open a File or a Web URL"""
if uri.startswith('http://') or uri.startswith('https://'):
return open_url(uri)
else:
return open_local_file(uri)
d... | import csv
import sys
import urllib
from scheduleitem import ScheduleItem
from team import Team
def read(uri):
"""Open a File or a Web URL"""
if uri.startswith('http://') or uri.startswith('https://'):
return open_url(uri)
else:
return open_file(uri)
def open_url(url):
"""Return the... | mit | Python |
d24ccebda013923fe256a612ee148b1419af3503 | Upgrade tangled from 0.1a6 to 0.1a7 | TangledWeb/tangled.web | setup.py | setup.py | from setuptools import setup
setup(
name='tangled.web',
version='0.1a8.dev0',
description='RESTful Web Framework',
long_description=open('README.rst').read(),
url='http://tangledframework.org/',
download_url='https://github.com/TangledWeb/tangled.web/tags',
author='Wyatt Baldwin',
auth... | from setuptools import setup
setup(
name='tangled.web',
version='0.1a8.dev0',
description='RESTful Web Framework',
long_description=open('README.rst').read(),
url='http://tangledframework.org/',
download_url='https://github.com/TangledWeb/tangled.web/tags',
author='Wyatt Baldwin',
auth... | mit | Python |
5d16ac431f7b6a98d964558f247c56bdc764a53c | Bump version to 1.4.3. | pbs/django-cms-smartsnippets,pbs/django-cms-smartsnippets,pbs/django-cms-smartsnippets,pbs/django-cms-smartsnippets | setup.py | setup.py | import os
from setuptools import setup, find_packages
README_PATH = os.path.join(os.path.abspath(os.path.dirname(__file__)),
'README.rst')
dependencies = [
'django-cms>=2.3,<2.3.6',
'django-sekizai>=0.6.1,<0.9.0',
'django-admin-extend'
]
dependency_links = [
'http://github.... | import os
from setuptools import setup, find_packages
README_PATH = os.path.join(os.path.abspath(os.path.dirname(__file__)),
'README.rst')
dependencies = [
'django-cms>=2.3,<2.3.6',
'django-sekizai>=0.6.1,<0.9.0',
'django-admin-extend'
]
dependency_links = [
'http://github.... | bsd-3-clause | Python |
d223e27f88950187cc9ae438fd6c1b98bfa1e22a | Update the minimum pytest requirement in setup.py to 4.6 | renanivo/pytest-testdox | setup.py | setup.py | #!/usr/bin/env python
import os
from setuptools import setup
def read(fname):
path = os.path.join(os.path.dirname(__file__), fname)
with open(path) as f:
return f.read()
setup(
name='pytest-testdox',
version='2.0.1',
description='A testdox format reporter for pytest',
long_descripti... | #!/usr/bin/env python
import os
from setuptools import setup
def read(fname):
path = os.path.join(os.path.dirname(__file__), fname)
with open(path) as f:
return f.read()
setup(
name='pytest-testdox',
version='2.0.1',
description='A testdox format reporter for pytest',
long_descripti... | mit | Python |
badbca0aed47d91194e3377f64634e4d82a35dc6 | bump version | HubSpot/sanetime | setup.py | setup.py | #!/usr/bin/env python
from distutils.core import setup
setup(
name='sanetime',
version='3.0.4',
description='A drop-in replacement for datetime that brings sanity and ease-of-use to the date/time/timezone/dateutil/calendar/pytz/timetuple/parsing insane shitshow.',
long_description = open('README.md').r... | #!/usr/bin/env python
from distutils.core import setup
setup(
name='sanetime',
version='3.0.3',
description='A drop-in replacement for datetime that brings sanity and ease-of-use to the date/time/timezone/dateutil/calendar/pytz/timetuple/parsing insane shitshow.',
long_description = open('README.md').r... | mit | Python |
2a4864e5082d9629baace34bdfeb1d18df946435 | Add certifi to requirements | kfdm/hatarake | setup.py | setup.py | from setuptools import setup
from hatarake import __version__
APP = ['hatarake/app.py']
DATA_FILES = []
OPTIONS = {
'argv_emulation': True,
'plist': {
'LSUIElement': True,
},
'packages': [
'certifi'
'gntp',
'icalendar',
'jinja2',
'rumps',
],
}
setup(... | from setuptools import setup
from hatarake import __version__
APP = ['hatarake/app.py']
DATA_FILES = []
OPTIONS = {
'argv_emulation': True,
'plist': {
'LSUIElement': True,
},
'packages': ['rumps', 'gntp', 'jinja2', 'icalendar'],
}
setup(
name='Hatarake',
author='Paul Traylor',
vers... | mit | Python |
806a983027bb4589b3ccf8a79540f8e0f656f6db | refactor into function | datalib/proclib | proclib/pipe.py | proclib/pipe.py | """
proclib.pipe
~~~~~~~~~~~~
Implements the Pipe object.
"""
from subprocess import PIPE
from .process import Process
def make_response(procs):
history = [p.run() for p in procs]
r = history.pop()
r.history = history
for res in r.history:
res.stdout.close()
return r
clas... | """
proclib.pipe
~~~~~~~~~~~~
Implements the Pipe object.
"""
from subprocess import PIPE
from .process import Process
class Pipe(object):
"""
A Pipe object represents and starts the parallel
execution and piping of multiple Processes.
:param commands: A list of commands.
:param dat... | mit | Python |
63e012566157bd16be800d7e9e52aa9ce4022c96 | Drop 32 bits support for pymssql. | bigbrozer/monitoring.nagios,bigbrozer/monitoring.nagios | setup.py | setup.py | #!/usr/bin/env python2.7
# -*- coding: utf-8 -*-
#==============================================================================
# Module : setup
# Author : Vincent BESANCON <besancon.vincent@gmail.com>
# Description : Setuptools install script.
#---------------------------------------------------------... | #!/usr/bin/env python2.7
# -*- coding: utf-8 -*-
#==============================================================================
# Module : setup
# Author : Vincent BESANCON <besancon.vincent@gmail.com>
# Description : Setuptools install script.
#---------------------------------------------------------... | mit | Python |
7a767c40d840c1f3af95a4d0a8e2b043b2edd153 | enumerate the `airship.contrib` package | mgax/airship,mgax/airship,mgax/airship | setup.py | setup.py | import sys
import distutils.core
dependencies = ['supervisor', 'blinker', 'path.py', 'PyYAML', 'kv']
if sys.version_info < (2, 7):
dependencies += ['importlib', 'argparse']
distutils.core.setup(
name='Airship',
version='0.3-dev',
packages=['airship', 'airship.contrib', 'airship.contrib.python'],
i... | import sys
import distutils.core
dependencies = ['supervisor', 'blinker', 'path.py', 'PyYAML', 'kv']
if sys.version_info < (2, 7):
dependencies += ['importlib', 'argparse']
distutils.core.setup(
name='Airship',
version='0.3-dev',
packages=['airship', 'airship.contrib.python'],
install_requires=dep... | bsd-2-clause | Python |
220fcd8886610a6f3445019830d7fd3b60fd58e1 | Add topic | jblakeman/apt-select,jblakeman/apt-select | setup.py | setup.py | """A setuptools based setup module.
See:
https://packaging.python.org/en/latest/distributing.html """
from setuptools import setup, find_packages
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
long_descripti... | """A setuptools based setup module.
See:
https://packaging.python.org/en/latest/distributing.html """
from setuptools import setup, find_packages
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
long_descripti... | mit | Python |
e5aa80e979c2d39ace276c001faa03c110fd2af9 | fix xdg dependency | acerix/flickmagnet,acerix/flickmagnet,acerix/flickmagnet | setup.py | setup.py | #!/usr/bin/env python3
# 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.abspath(path.dirname(__file__))
# Get the long description from the README file
with open(path.join(here, 'README.md'), e... | #!/usr/bin/env python3
# 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.abspath(path.dirname(__file__))
# Get the long description from the README file
with open(path.join(here, 'README.md'), e... | mit | Python |
b097a57acb287f13dd3f26b8fdf71b5842dfa067 | Bump jmespath version to latest release | boto/botocore,pplu/botocore | setup.py | setup.py | #!/usr/bin/env python
"""
distutils/setuptools install script.
"""
import sys
import botocore
from setuptools import setup, find_packages
requires = ['six>=1.1.0',
'jmespath==0.5.0',
'python-dateutil>=2.1']
if sys.version_info[:2] == (2, 6):
# For python2.6 we have a few other depende... | #!/usr/bin/env python
"""
distutils/setuptools install script.
"""
import sys
import botocore
from setuptools import setup, find_packages
requires = ['six>=1.1.0',
'jmespath==0.4.1',
'python-dateutil>=2.1']
if sys.version_info[:2] == (2, 6):
# For python2.6 we have a few other depende... | apache-2.0 | Python |
20bed003b09576227b1888e1ac96dbd01c26da12 | change numerical parameters and faster mesolve | qutip/qutip,qutip/qutip | qutip/tests/test_transfertensor.py | qutip/tests/test_transfertensor.py | import pytest
import qutip as qt
import numpy as np
from qutip.nonmarkov.transfertensor import ttmsolve
def test_ttmsolve_jc_model():
"""
Checks the output of ttmsolve using an example from Jaynes-Cumming model,
which can also be found in the qutip-notebooks repository.
"""
# Define Hamiltonian an... | import pytest
import qutip as qt
import numpy as np
from qutip.nonmarkov.transfertensor import ttmsolve
def test_ttmsolve_jc_model():
"""
Checks the output of ttmsolve using an example from Jaynes-Cumming model,
which can also be found in the qutip-notebooks repository.
"""
# Define Hamiltonian an... | bsd-3-clause | Python |
55e42b430d0c663bd8685931ae83069d881b4992 | Add basic HTML conversion | kdelwat/Coda,kdelwat/Coda | src/generate.py | src/generate.py | import time
import pypandoc
def generate(markdown_file_strings, lexicon_file, settings):
concatenated_markdown = '\n'.join(markdown_file_strings)
if settings['format'] == 'HTML':
filename = generate_HTML(concatenated_markdown, lexicon_file,
theme=settings['theme'],
... | import time
def generate(markdown_file_strings, lexicon_file, settings):
print('Generating...')
temp_filename = str(time.time()) + '.md'
with open('temp/' + temp_filename, 'w') as f:
f.write('\n'.join(markdown_file_strings))
return 'temp/' + temp_filename
| mit | Python |
3053e5560d0a5aae54a2f056243f3109fd5d0d85 | restructure the code for clarity | zacharydenton/wavebender | wavegen.py | wavegen.py | #!/usr/bin/env python
import wave
import math
import struct
import argparse
from itertools import *
MAX_AMPLITUDE = 32767
def grouper(n, iterable, fillvalue=None):
"grouper(3, 'ABCDEFG', 'x') --> ABC DEF Gxx"
args = [iter(iterable)] * n
return izip_longest(fillvalue=fillvalue, *args)
def sine_wave(freque... | #!/usr/bin/env python
import wave
import math
import struct
import argparse
from itertools import *
MAX_AMPLITUDE = 32767
def grouper(n, iterable, fillvalue=None):
"grouper(3, 'ABCDEFG', 'x') --> ABC DEF Gxx"
args = [iter(iterable)] * n
return izip_longest(fillvalue=fillvalue, *args)
def sine_wave(freque... | mit | Python |
b70ee477b5dd71d669096816fa8cd9026257fc21 | bump version | autosportlabs/podium-api | setup.py | setup.py | from distutils.core import setup
setup(
name = 'podium_api',
packages = ['podium_api','podium_api.types'],
version = '0.0.11',
description = 'API for Podium Motorsports Platform http://podium.live',
author = 'Autosport Labs',
author_email = 'sales@autosportlabs.com',
url = 'https://github.com/autosportla... | from distutils.core import setup
setup(
name = 'podium_api',
packages = ['podium_api','podium_api.types'],
version = '0.0.10',
description = 'API for Podium Motorsports Platform http://podium.live',
author = 'Autosport Labs',
author_email = 'sales@autosportlabs.com',
url = 'https://github.com/autosportla... | mit | Python |
254548936be1ac866cc5e7153649df696edf0670 | expand path to config file | google/importlab,google/importlab | importlab/config.py | importlab/config.py | import imp
import os
import sys
import textwrap
from . import utils
class Config(object):
def __init__(self):
self.projects = None
self.deps = None
self.output_dir = 'importlab_output'
def _validate_keys(self, consts):
valid = {'projects', 'deps', 'output_dir'}
invali... | import imp
import os
import sys
import textwrap
from . import utils
class Config(object):
def __init__(self):
self.projects = None
self.deps = None
self.output_dir = 'importlab_output'
def _validate_keys(self, consts):
valid = {'projects', 'deps', 'output_dir'}
invali... | apache-2.0 | Python |
83b42f8878312c4597d8ad9b5a58a16d65bcb37f | Fix import order warning | raviqqe/tensorflow-entrec,raviqqe/tensorflow-entrec | setup.py | setup.py | import re
import sys
import setuptools
if not sys.version_info >= (3, 5):
exit("Sorry, Python must be later than 3.5.")
setuptools.setup(
name="tensorflow-entrec",
version=re.search(r'__version__ *= *"([0-9]+\.[0-9]+\.[0-9]+)" *\n',
open("entrec/__init__.py").read()).group(1),
... | import re
import setuptools
import sys
if not sys.version_info >= (3, 5):
exit("Sorry, Python must be later than 3.5.")
setuptools.setup(
name="tensorflow-entrec",
version=re.search(r'__version__ *= *"([0-9]+\.[0-9]+\.[0-9]+)" *\n',
open("entrec/__init__.py").read()).group(1),
... | unlicense | Python |
f5cc3ceb5858477e72025a514cdfe3317fb878a8 | fix contract | ethereum/btcrelay,ethereum/btcrelay,ethers/btcrelay,vaporry/btcrelay | sampleContractC.py | sampleContractC.py | def test(str:s):
n = getch(str, 1) # 2nd char
self.storage[n] = n
return(n)
| def test(str:s):
n = getch(s, 1) # 2nd char
self.storage[n] = n
return(n)
| mit | Python |
09ccd3ba9522efff296bb77a5daa80cf8f1a7933 | Fix no section error when configuring app | rakanalh/pocket-cli | pocket_cli/config.py | pocket_cli/config.py | import os
import configparser
class Configs:
_section_name = 'pocket'
def __init__(self):
path = self._get_file_path()
self._config_parser = configparser.ConfigParser()
if not os.path.exists(path):
return
self._config_parser.readfp(open(path))
def get(self,... | import os
import configparser
class Configs:
_section_name = 'pocket'
def __init__(self):
path = self._get_file_path()
self._config_parser = configparser.ConfigParser()
if not os.path.exists(path):
return
self._config_parser.readfp(open(path))
def get(self,... | mit | Python |
61f540537b3a13da7d9da064ff6410dfef3362b3 | prepare 2.3.9 | openprocurement/openprocurement.planning.api | setup.py | setup.py | from setuptools import setup, find_packages
import os
version = '2.3.9'
requires = [
'setuptools',
'openprocurement.api>=2.3',
]
test_requires = requires + [
'webtest',
'python-coveralls',
]
docs_requires = requires + [
'sphinxcontrib-httpdomain',
]
entry_points = {
'openprocurement.api.plugi... | from setuptools import setup, find_packages
import os
version = '2.3.8'
requires = [
'setuptools',
'openprocurement.api>=2.3',
]
test_requires = requires + [
'webtest',
'python-coveralls',
]
docs_requires = requires + [
'sphinxcontrib-httpdomain',
]
entry_points = {
'openprocurement.api.plugi... | apache-2.0 | Python |
ebe31f83d48a0c599878f3bf2dd62a1dcb86acbe | Clean up setup.py and bump to 0.1.3 | Anmol-Singh-Jaggi/tldr-python-client,tldr-pages/tldr-python-client | setup.py | setup.py | from setuptools import setup
setup(
name='tldr',
version="0.1.3",
author='Felix Yan',
author_email='felixonmars@gmail.com',
url='https://github.com/felixonmars/tldr-python-client',
description='command line client for tldr',
license='MIT',
py_modules=['tldr'],
scripts=['tldr.py'],
... | from setuptools import setup, Extension
import distutils.core
import sys
import os
setup(
name = 'tldr',
version = "0.1.2",
author = 'Felix Yan',
author_email = 'felixonmars@gmail.com',
url = 'https://github.com/felixonmars/tldr-python-client',
description = 'command lin... | mit | Python |
56cdbd9dcd6b0c7fbdf7115ba274be921fe30200 | Add Python 3 compability | scriptotek/otsrdflib | setup.py | setup.py | #!/usr/bin/env python
# encoding=utf-8
from __future__ import print_function
import os
import sys
try:
from setuptools import setup
except ImportError:
print("This package requires 'setuptools' to be installed.")
sys.exit(1)
here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(her... | #!/usr/bin/env python
# encoding=utf-8
from __future__ import print_function
import os
import sys
try:
from setuptools import setup
except ImportError:
print("This package requires 'setuptools' to be installed.")
sys.exit(1)
here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(her... | mit | Python |
b7613de21ec30bdde36398570f57f6ef5cbd5831 | Add mystrom | sfam/netdisco,balloob/netdisco,brburns/netdisco | netdisco/const.py | netdisco/const.py | """Constants of services that can be discovered."""
BELKIN_WEMO = "belkin_wemo"
DLNA = "DLNA"
GOOGLE_CAST = "google_cast"
PHILIPS_HUE = "philips_hue"
PMS = 'plex_mediaserver'
LMS = 'logitech_mediaserver'
NETGEAR_ROUTER = "netgear_router"
SONOS = "sonos"
PANASONIC_VIERA = "panasonic_viera"
SABNZBD = 'sabnzbd'
KODI = 'k... | """Constants of services that can be discovered."""
BELKIN_WEMO = "belkin_wemo"
DLNA = "DLNA"
GOOGLE_CAST = "google_cast"
PHILIPS_HUE = "philips_hue"
PMS = 'plex_mediaserver'
LMS = 'logitech_mediaserver'
NETGEAR_ROUTER = "netgear_router"
SONOS = "sonos"
PANASONIC_VIERA = "panasonic_viera"
SABNZBD = 'sabnzbd'
KODI = 'k... | mit | Python |
3415b3b9ef23e9684252a69c6a614e1900d70eea | Add 'marshmallow' as a dependency in setup.py | Cargill/pipewrench,Cargill/pipewrench | setup.py | setup.py | #!/usr/bin/env python
# Copyright 2017 Cargill Incorporated
#
# 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 requ... | #!/usr/bin/env python
# Copyright 2017 Cargill Incorporated
#
# 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 requ... | apache-2.0 | Python |
bc2fd6d72e3bcd3247c7e1725343d0de16a28d22 | Bump pypi version | inorton/junit2html | setup.py | setup.py | from distutils.core import setup
files = ["*.css"]
setup(
name="junit2html",
version="006",
description="Generate HTML reports from Junit results",
author="Ian Norton",
author_email="inorton@gmail.com",
url="https://github.com/inorton/junit2html",
packages=["junit2htmlreport"],
packag... | from distutils.core import setup
files = ["*.css"]
setup(
name="junit2html",
version="005",
description="Generate HTML reports from Junit results",
author="Ian Norton",
author_email="inorton@gmail.com",
url="https://github.com/inorton/junit2html",
packages=["junit2htmlreport"],
packag... | mit | Python |
33e3ff0cb99bf859680ec41bf669a030ecc3d707 | Fix flake8 errors | he7d3r/ores,wiki-ai/ores,he7d3r/ores,wiki-ai/ores,he7d3r/ores,wiki-ai/ores | setup.py | setup.py | import os
import re
import sys
import platform
from setuptools import find_packages, setup
about_path = os.path.join(os.path.dirname(__file__), "ores/about.py")
exec(compile(open(about_path).read(), about_path, "exec"))
if sys.version_info <= (3, 0):
print("ORES needs Python 3 to run properly. Your version is " +... | import os
import re
import sys
import platform
from setuptools import find_packages, setup
about_path = os.path.join(os.path.dirname(__file__), "ores/about.py")
exec(compile(open(about_path).read(), about_path, "exec"))
if sys.version_info <= (3, 0):
print("ORES needs Python 3 to run properly. Your version is " +... | mit | Python |
9188c18c480031a9b22c5e6eba67a087ba22eefc | Set max_open_files and write_buffer_size for main LevelDB instance | wbolster/whip | whip/db.py | whip/db.py |
import logging
import socket
import plyvel
import simplejson as json
logger = logging.getLogger(__name__)
class Database(object):
def __init__(self, database_dir, create_if_missing=False):
logger.debug("Opening database %s", database_dir)
self.db = plyvel.DB(
database_dir,
... |
import logging
import socket
import plyvel
import simplejson as json
logger = logging.getLogger(__name__)
class Database(object):
def __init__(self, database_dir, create_if_missing=False):
logger.debug("Opening database %s", database_dir)
self.db = plyvel.DB(
database_dir,
... | bsd-3-clause | Python |
c70f31c0180b66c3a675c968feabbeb6fe64b24d | Remove Python 2.5 from Trove classifiers | davidcaste/fabtools,prologic/fabtools,fabtools/fabtools,n0n0x/fabtools-python,ronnix/fabtools,wagigi/fabtools-python,AMOSoft/fabtools,pombredanne/fabtools,sociateru/fabtools,badele/fabtools,bitmonk/fabtools,ahnjungho/fabtools,hagai26/fabtools | setup.py | setup.py | import os
import re
try:
from setuptools import setup, find_packages
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
def read(filename):
path = os.path.join(os.path.dirname(__file__), filename)
contents = open(path).read()
... | import os
import re
try:
from setuptools import setup, find_packages
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
def read(filename):
path = os.path.join(os.path.dirname(__file__), filename)
contents = open(path).read()
... | bsd-2-clause | Python |
9d3b774306dc63b81e5b8a683a5481df0a91ab17 | Increment setup.py version | tofu702/varz_python_client | setup.py | setup.py | from distutils.core import setup
setup(name="varz_client",
version='0.2a',
package_dir={"varz_client": ""},
packages=["varz_client"],
)
| from distutils.core import setup
setup(name="varz_client",
version='0.1a',
package_dir={"varz_client": ""},
packages=["varz_client"],
)
| bsd-2-clause | Python |
28545545b218ad1b0373c6dfc6b26d94d7e408a7 | Remove alter_list() API hook | idan/telostats,idan/telostats,idan/telostats | telostats/stations/api.py | telostats/stations/api.py | from tastypie.resources import ModelResource
from tastypie.serializers import Serializer
from .models import Station
class StationResource(ModelResource):
class Meta:
queryset = Station.objects.all()
resource_name = 'station'
serializer = Serializer(formats=['json'])
limit = 200 #... | from tastypie.resources import ModelResource
from tastypie.serializers import Serializer
from .models import Station
from ..utils.tempodb import get_latest_counts
class StationResource(ModelResource):
class Meta:
queryset = Station.objects.all()
resource_name = 'station'
serializer = Seria... | bsd-3-clause | Python |
a0e117c61fa7db15d764264a69a232416d094289 | advance version to 0.3.1 | ContextLab/hypertools | setup.py | setup.py | # -*- coding: utf-8 -*-
import os
os.environ["MPLCONFIGDIR"] = "."
from setuptools import setup, find_packages
DESCRIPTION = 'A python package for visualizing and manipulating high-dimensional data'
LONG_DESCRIPTION = """\
HyperTools is a library for visualizing and manipulating high-dimensional data in Python. It is... | # -*- coding: utf-8 -*-
import os
os.environ["MPLCONFIGDIR"] = "."
from setuptools import setup, find_packages
DESCRIPTION = 'A python package for visualizing and manipulating high-dimensional data'
LONG_DESCRIPTION = """\
HyperTools is a library for visualizing and manipulating high-dimensional data in Python. It is... | mit | Python |
a8d77b8af1da501864d3734782f3f7a1435d4bed | add isIdentical() branch comparison | kjedruczyk/phabricator-tools,valhallasw/phabricator-tools,cs-shadow/phabricator-tools,kjedruczyk/phabricator-tools,kjedruczyk/phabricator-tools,cs-shadow/phabricator-tools,aevri/phabricator-tools,valhallasw/phabricator-tools,aevri/phabricator-tools,bloomberg/phabricator-tools,bloomberg/phabricator-tools,valhallasw/phab... | phlgit_branch.py | phlgit_branch.py | """Wrapper around 'git branch'"""
def _catFilePretty(clone, objectHash):
return clone.call('cat-file', '-p', objectHash)
def _getTree(clone, commit):
content = _catFilePretty(clone, commit).splitlines()
tree = content[0].split("tree ")[1].strip()
return tree
def isTreeSame(clone, branch, targetBra... | """Wrapper around 'git branch'"""
def _catFilePretty(clone, objectHash):
return clone.call('cat-file', '-p', objectHash)
def _getTree(clone, commit):
content = _catFilePretty(clone, commit).splitlines()
tree = content[0].split("tree ")[1].strip()
return tree
def isTreeSame(clone, branch, targetBra... | apache-2.0 | Python |
f48729787a17ac9305635365aacf40540e8fb331 | Update setup.py | bmihelac/django-cookie-consent,bmihelac/django-cookie-consent,bmihelac/django-cookie-consent,bmihelac/django-cookie-consent | setup.py | setup.py | from distutils.core import setup
from setuptools import find_packages
version = '0.2.5.dev0'
CLASSIFIERS = [
'Framework :: Django',
'Framework :: Django :: 1.9',
'Framework :: Django :: 2.1',
'Framework :: Django :: 2.2',
'Framework :: Django :: 3.0',
'Intended Audience :: Developers',
... | from distutils.core import setup
from setuptools import find_packages
version = '0.2.5.dev0'
CLASSIFIERS = [
'Framework :: Django',
'Framework :: Django :: 1.9',
'Framework :: Django :: 2.1',
'Framework :: Django :: 2.2',
'Framework :: Django :: 3.0',
'Intended Audience :: Developers',
... | bsd-2-clause | Python |
ddef35bed6218f29f2f5df8225dcbf80633fce48 | fix short description | yyuu/pyenv-installer,yyuu/pyenv-installer,pualxiao/pyenv-installer,pualxiao/pyenv-installer | setup.py | setup.py | import distutils.core
from distutils.command.install import install
import subprocess
class PyenvInstall(install):
def run(self):
print(subprocess.check_output(['bash', 'bin/pyenv-installer']))
with open('README.rst') as file:
long_description = file.read()
distutils.core.setup(
version='2015011... | import distutils.core
from distutils.command.install import install
import subprocess
class PyenvInstall(install):
def run(self):
print(subprocess.check_output(['bash', 'bin/pyenv-installer']))
with open('README.rst') as file:
long_description = file.read()
distutils.core.setup(
version='2015011... | mit | Python |
4ba4857e75b29d642510abc39506aac2aaca9c6e | use versioneer | jeroyang/txttk | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
import versioneer
with open('README.rst') as readme_file:
readme = readme_file.read()
with open('HISTORY.rst') as history_file:
history = history_file.read().replace(... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
try:
from setuptools import setup
except ImportError:
from distutils.core 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:', ... | bsd-3-clause | Python |
5c5ce43338acf80f16c62f991d17e49ae056934f | Make sympy-daemon gracefully handle evaluation errors | horazont/xmpp-crowd | sympy-daemon.py | sympy-daemon.py | #!/usr/bin/python2
import sympy
import socket
import io
import sympy.physics.units as u
import sympy.core.sympify
import SympyComm
if __name__ == "__main__":
import sys
import argparse
parser = argparse.ArgumentParser()
parser.add_argument(
"fd",
type=int,
help="File descriptor... | #!/usr/bin/python2
import sympy
import socket
import io
import sympy.physics.units as u
import sympy.core.sympify
import SympyComm
if __name__ == "__main__":
import sys
import argparse
parser = argparse.ArgumentParser()
parser.add_argument(
"fd",
type=int,
help="File descriptor... | mit | Python |
41b1168a2568af8ac800b6690e6d191c29f5cb89 | Remove 'license' from setup.py | IATI/iati.core,IATI/iati.core | setup.py | setup.py | from setuptools import setup, find_packages
setup(
name = 'iati.core',
version = '0.1dev',
description = 'Python library representing the IATI Schemas, Codelists and Rulesets',
author = 'IATI Technical Team and other authors',
author_email = 'code@iatistandard.org',
url='http://iatistandard.org... | from setuptools import setup, find_packages
setup(
name = 'iati.core',
version = '0.1dev',
description = 'Python library representing the IATI Schemas, Codelists and Rulesets',
author = 'IATI Technical Team and other authors',
author_email = 'code@iatistandard.org',
url='http://iatistandard.org... | mit | Python |
9206ee4b32b3c97a7bc60440ce8221d483f1a24a | Fix formatting for pyupgrade | lukaszb/django-guardian,lukaszb/django-guardian,lukaszb/django-guardian | setup.py | setup.py | import os
from setuptools import setup
from extras import RunFlakesCommand
version = '2.2.0'
readme_file = os.path.join(os.path.dirname(__file__), 'README.rst')
with open(readme_file) as f:
long_description = f.read()
setup(
name='django-guardian',
version=version,
python_requires='>=3.5',
url='... | import os
from setuptools import setup
from extras import RunFlakesCommand
version = '2.2.0'
readme_file = os.path.join(os.path.dirname(__file__), 'README.rst')
with open(readme_file, 'r') as f:
long_description = f.read()
setup(
name='django-guardian',
version=version,
python_requires='>=3.5',
... | bsd-2-clause | Python |
7585225ae64ded12ea4b55ba3bf964c88f439395 | update version number in setup.py | ftrobopy/ftrobopy,ftrobopy/ftrobopy | setup.py | setup.py | from distutils.core import setup, Extension
setup(name='ftrobopy',
description='Python Interface for Fischertechnik ROBOTICS TXT Controller',
version='1.75',
author='Torsten Stuehn',
author_email='Torsten Stuehn',
url='https://github.com/ftrobopy/ftrobopy',
download_url='https://git... | from distutils.core import setup, Extension
setup(name='ftrobopy',
description='Python Interface for Fischertechnik ROBOTICS TXT Controller',
version='1.67',
author='Torsten Stuehn',
author_email='Torsten Stuehn',
url='https://github.com/ftrobopy/ftrobopy',
license='MIT',
py_m... | mit | Python |
6759e0f0e66c7f39f4d9e08bc0c236e9df1314b8 | Prepare pytest-flakes 3.0.1. | fschulze/pytest-flakes | setup.py | setup.py | from setuptools import setup
setup(
name='pytest-flakes',
description='pytest plugin to check source code with pyflakes',
long_description=open("README.rst").read(),
license="MIT license",
version='3.0.1',
author='Florian Schulze, Holger Krekel and Ronny Pfannschmidt',
author_email='florian... | from setuptools import setup
setup(
name='pytest-flakes',
description='pytest plugin to check source code with pyflakes',
long_description=open("README.rst").read(),
license="MIT license",
version='3.0.0',
author='Florian Schulze, Holger Krekel and Ronny Pfannschmidt',
author_email='florian... | mit | Python |
c91ff6adc9e46772ce3f975a8b89191eb9bd7c1f | Bump version: 0.0.7.dev0 | hgdeoro/pcassandra,hgdeoro/pcassandra | setup.py | setup.py | import os
from setuptools import setup
with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme:
README = readme.read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='pcassandra',
version='0.0.7.dev0',
... | import os
from setuptools import setup
with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme:
README = readme.read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='pcassandra',
version='0.0.6',
p... | bsd-3-clause | Python |
74afd87d3e48aa32cc6e1ebcbd23c34b0387e3a6 | Bump version to 0.2.0 | yunojuno/django-expiring-links,yunojuno/django-request-token,yunojuno/django-jwt,yunojuno/django-request-token | setup.py | setup.py | # -*- coding: utf-8 -*-
"""request_token package setup."""
import os
from setuptools import setup, find_packages
README = open(os.path.join(os.path.dirname(__file__), 'README.rst')).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(
... | # -*- coding: utf-8 -*-
"""request_token package setup."""
import os
from setuptools import setup, find_packages
README = open(os.path.join(os.path.dirname(__file__), 'README.rst')).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(
... | mit | Python |
36fa856548eada001dc37e5537a28c06b845ab9e | Bump up version to 1.1.0 | giginet/django-debug-toolbar-vcs-info,giginet/django-debug-toolbar-vcs-info | setup.py | setup.py | # coding=utf-8
import sys
from setuptools import setup, find_packages
NAME = 'django-debug-toolbar-vcs-info'
VERSION = '1.1.0'
def read(filename):
import os
BASE_DIR = os.path.dirname(__file__)
filename = os.path.join(BASE_DIR, filename)
with open(filename, 'r') as fi:
return fi.read()
def ... | # coding=utf-8
import sys
from setuptools import setup, find_packages
NAME = 'django-debug-toolbar-vcs-info'
VERSION = '1.0.0'
def read(filename):
import os
BASE_DIR = os.path.dirname(__file__)
filename = os.path.join(BASE_DIR, filename)
with open(filename, 'r') as fi:
return fi.read()
def ... | mit | Python |
68ce54ad3a99d412d4886fddc94a5f38a79777d6 | add dep on attrs, >=16.3.0 to get __attrs_post_init__ | warner/magic-wormhole,warner/magic-wormhole,warner/magic-wormhole,warner/magic-wormhole | setup.py | setup.py | from setuptools import setup
import versioneer
commands = versioneer.get_cmdclass()
setup(name="magic-wormhole",
version=versioneer.get_version(),
description="Securely transfer data between computers",
author="Brian Warner",
author_email="warner-magic-wormhole@lothar.com",
license="MIT... | from setuptools import setup
import versioneer
commands = versioneer.get_cmdclass()
setup(name="magic-wormhole",
version=versioneer.get_version(),
description="Securely transfer data between computers",
author="Brian Warner",
author_email="warner-magic-wormhole@lothar.com",
license="MIT... | mit | Python |
2fdefa6e2a61d3faa2888bd991b9ff59c9bc185e | Update setup.py file | praekelt/django-category,praekelt/django-category | setup.py | setup.py | from setuptools import setup, find_packages
setup(
name="django-category",
version="2.0.0",
description="Django categorize content app.",
long_description=open("README.rst", "r").read() + open("AUTHORS.rst", "r").read() + open("CHANGELOG.rst", "r").read(),
author="Praekelt Consulting",
author_e... | from setuptools import setup, find_packages
setup(
name="django-category",
version="2.0.0",
description="Django categorize content app.",
long_description = open("README.rst", "r").read() + open("AUTHORS.rst", "r").read() + open("CHANGELOG.rst", "r").read(),
author="Praekelt Consulting",
author... | bsd-3-clause | Python |
7db8bc12c34b3470a31fa846ebf5218d2a1c6679 | add package data + dir | mkolodny/3taps | setup.py | setup.py | #!/usr/bin/env python
import os
import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist bdist_wininst upload')
sys.exit()
with open('README.rst') as f:
readme = f.read()
with open('LICENSE') ... | #!/usr/bin/env python
import os
import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist bdist_wininst upload')
sys.exit()
with open('README.rst') as f:
readme = f.read()
with open('LICENSE') ... | mit | Python |
650682c3643912c53e643d7b1074f1a6c4a1556b | Update package version to v1.1.0 | MasterKale/django-cra-helper | setup.py | setup.py | from setuptools import setup, find_packages
# To use a consistent encoding
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
with open("README.md", "r") as fh:
long_description = fh.read()
setup(
name='django-cra-helper',
version='1.1.0',
description='The missing... | from setuptools import setup, find_packages
# To use a consistent encoding
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
with open("README.md", "r") as fh:
long_description = fh.read()
setup(
name='django-cra-helper',
version='1.0.2',
description='The missing... | mit | Python |
1a34946d6fe59be656d6074432254621f4289725 | Bump version to 0.11.4 | miLibris/flask-rest-jsonapi | setup.py | setup.py | from setuptools import setup, find_packages
__version__ = '0.11.4'
setup(
name="Flask-REST-JSONAPI",
version=__version__,
description='Flask extension to create REST web api according to JSONAPI 1.0 specification with Flask, Marshmallow \
and data provider of your choice (SQLAlchemy, Mo... | from setuptools import setup, find_packages
__version__ = '0.11.3'
setup(
name="Flask-REST-JSONAPI",
version=__version__,
description='Flask extension to create REST web api according to JSONAPI 1.0 specification with Flask, Marshmallow \
and data provider of your choice (SQLAlchemy, Mo... | mit | Python |
89024412a2ece5f8b770fdabf6aa98e005f45e57 | Update setup.py. | mikekap/unicodedata2,daltonmaag/unicodedata2,jayvdb/unicodedata2,daltonmaag/unicodedata2,mikekap/unicodedata2,moyogo/unicodedata2,jayvdb/unicodedata2,moyogo/unicodedata2,anthrotype/unicodedata2,mikekap/unicodedata2,mikekap/unicodedata2,anthrotype/unicodedata2 | setup.py | setup.py | from setuptools import setup, Extension
module1 = Extension('unicodedata2',
sources = ['./unicodedata2/unicodedata.c'],
include_dirs = ['./unicodedata2'],
)
setup (name = "unicodedata2",
version = "7.0.0",
description = "Unicodedata backport for python 2 updated t... | from setuptools import setup, Extension
import shutil
import sys
module1 = Extension('unicodedata2',
sources = ['./unicodedata2/unicodedata.c'],
include_dirs = ['./unicodedata2'],
extra_compile_args=['-flto'],
extra_link_args=['-fl... | apache-2.0 | Python |
132adb43bb14edd40459f39f360eee48910152ae | Prepare openprocurement.auctions.dgf 1.0.12-sale. | prozorro-sale/openprocurement.auctions.dgf | setup.py | setup.py | from setuptools import setup, find_packages
import os
version = '1.0.12-sale'
entry_points = {
'openprocurement.auctions.core.plugins': [
'auctions.dgf = openprocurement.auctions.dgf:includeme'
]
}
requires = [
'setuptools',
'openprocurement.api',
'openprocurement.auctions.core',
'ope... | from setuptools import setup, find_packages
import os
version = '1.0.11-sale'
entry_points = {
'openprocurement.auctions.core.plugins': [
'auctions.dgf = openprocurement.auctions.dgf:includeme'
]
}
requires = [
'setuptools',
'openprocurement.api',
'openprocurement.auctions.core',
'ope... | apache-2.0 | Python |
c1dcdb3c8856fbfd449524f66f5fc819eb1a19bc | Move development status to alpha | jcollado/esis | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
try:
from setuptools import setup
except ImportError:
from distutils.core 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:', ... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
try:
from setuptools import setup
except ImportError:
from distutils.core 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:', ... | mit | Python |
8c151ccdd75956da60b2304417c41a60a2c28231 | update version to 1.1.fb17 | cvubrugier/configshell-fb,agrover/configshell-fb | setup.py | setup.py | #! /usr/bin/env python
'''
This file is part of ConfigShell.
Copyright (c) 2011-2013 by Datera, Inc
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
U... | #! /usr/bin/env python
'''
This file is part of ConfigShell.
Copyright (c) 2011-2013 by Datera, Inc
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
U... | apache-2.0 | Python |
5adea1799f3b6f32cfa8a7695b5ddde71bd59ae2 | Fix missing layers | zhenwendai/DeepGP | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
from setuptools import setup
import numpy
# Version number
version = '1.0'
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(name = 'DGP',
version = version,
author = read('AUTHORS.txt'),
author_ema... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
from setuptools import setup
import numpy
# Version number
version = '1.0'
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(name = 'DGP',
version = version,
author = read('AUTHORS.txt'),
author_ema... | bsd-3-clause | Python |
2d60c0518f5e7644f58a12bed048ac59756071d1 | Bump version | douban/dpark,douban/dpark,douban/dpark,douban/dpark,douban/dpark | setup.py | setup.py | import platform
import setuptools
from setuptools import setup, Extension, find_packages
setuptools_version = tuple(int(n) for n in setuptools.__version__.split('.'))
assert setuptools_version >= (18, 0, 0), \
'setuptools >= 18.0.0 required for Cython extension'
ext_modules = [Extension('dpark.portable_hash', ['d... | import platform
import setuptools
from setuptools import setup, Extension, find_packages
setuptools_version = tuple(int(n) for n in setuptools.__version__.split('.'))
assert setuptools_version >= (18, 0, 0), \
'setuptools >= 18.0.0 required for Cython extension'
ext_modules = [Extension('dpark.portable_hash', ['d... | bsd-3-clause | Python |
0bf3b0d076f660efdce162c58633822a2aaf26b0 | Fix setup.py to install pygments dependency | nyaruka/django-hamlpy,frankvdp/HamlPy,GetHappie/HamlPy,frankvdp/HamlPy,GetHappie/HamlPy,jessemiller/HamlPy,nyaruka/django-hamlpy,frankvdp/HamlPy,Psycojoker/HamlPy,Psycojoker/HamlPy,GetHappie/HamlPy,frankvdp/HamlPy,jessemiller/HamlPy,Psycojoker/HamlPy,jessemiller/HamlPy,GetHappie/HamlPy | setup.py | setup.py | from setuptools import setup
# Note to Jesse - only push sdist to PyPi, bdist seems to always break pip installer
setup(name='hamlpy',
version = '0.80.4',
download_url = 'git@github.com:jessemiller/HamlPy.git',
packages = ['hamlpy'],
author = 'Jesse Miller',
author_email = 'millerjesse@gm... | from setuptools import setup
# Note to Jesse - only push sdist to PyPi, bdist seems to always break pip installer
setup(name='hamlpy',
version = '0.80.4',
download_url = 'git@github.com:jessemiller/HamlPy.git',
packages = ['hamlpy'],
author = 'Jesse Miller',
author_email = 'millerjesse@gm... | mit | Python |
4a466ff6515acbf90500d4c66ac39b9ce16fd2e0 | Stop trying to install nova-api-new (it's gone). Install nova-scheduler. | rajarammallya/melange,openstack-attic/melange,rackerlabs/melange,openstack-attic/melange,rajarammallya/melange,rajarammallya/melange,rackerlabs/melange,rackerlabs/melange,openstack-attic/melange | setup.py | setup.py | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2010 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compli... | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2010 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compli... | apache-2.0 | Python |
658183af1e1cf7397cd3dba02a0489d24fb99dfb | remove import | gescheit/fastsnmp | setup.py | setup.py | #!/usr/bin/python3
__version__ = '0.1'
from distutils.core import setup
from distutils.extension import Extension
classifiers = [
'Development Status :: 4 - Beta',
'Operating System :: POSIX :: Linux',
'License :: OSI Approved :: GNU General Public License v2 (GPLv2)',
'Programming Language :: Python :... | #!/usr/bin/python3
__version__ = '0.1'
from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext
classifiers = [
'Development Status :: 4 - Beta',
'Operating System :: POSIX :: Linux',
'License :: OSI Approved :: GNU General Public License v2 (GPLv2)'... | mit | Python |
7b4b2fcbcb9a95c07f09b71305afa0c5ce95fe99 | Add database router allow_migrate() for Django 1.7 | goodtune/django-tenant-schemas,Mobytes/django-tenant-schemas,kajarenc/django-tenant-schemas,honur/django-tenant-schemas,mcanaves/django-tenant-schemas,ArtProcessors/django-tenant-schemas,goodtune/django-tenant-schemas,ArtProcessors/django-tenant-schemas,bernardopires/django-tenant-schemas,bernardopires/django-tenant-sc... | tenant_schemas/routers.py | tenant_schemas/routers.py | from django.conf import settings
class TenantSyncRouter(object):
"""
A router to control which applications will be synced,
depending if we are syncing the shared apps or the tenant apps.
"""
def allow_migrate(self, db, model):
# the imports below need to be done here else django <1.5 goe... | from django.conf import settings
class TenantSyncRouter(object):
"""
A router to control which applications will be synced,
depending if we are syncing the shared apps or the tenant apps.
"""
def allow_syncdb(self, db, model):
# the imports below need to be done here else django <1.5 goes... | mit | Python |
0c73bcd6e6eca9780ec8f36ee696ad923676478c | Improve setup.py | Scille/umongo | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
try:
from setuptools import setup, find_packages
except ImportError:
from distutils.core import setup, find_packages
with open('README.rst', 'rb') as readme_file:
readme = readme_file.read().decode('utf8')
with open('HISTORY.rst', 'rb') as history_file:
... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
try:
from setuptools import setup, find_packages
except ImportError:
from distutils.core import setup, find_packages
with open('README.rst', 'rb') as readme_file:
readme = readme_file.read().decode('utf8')
with open('HISTORY.rst', 'rb') as history_file:
... | mit | Python |
63ce23125cc555d41a14aa45eccce2e418b13f54 | Increase version | crateio/crate.web,crateio/crate.web | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup, find_packages
install_requires = [
"bleach",
"jinja2",
"Django>=1.4",
"django-celery",
"django-jsonfield",
"django-model-utils",
"django-tastypie",
"docutils",
"isoweek",
"lxml",
]
setup(
name="crate.web",
version="0.1... | #!/usr/bin/env python
from setuptools import setup, find_packages
install_requires = [
"bleach",
"jinja2",
"Django>=1.4",
"django-celery",
"django-jsonfield",
"django-model-utils",
"django-tastypie",
"docutils",
"isoweek",
"lxml",
]
setup(
name="crate.web",
version="0.1... | bsd-2-clause | Python |
1c11d8e2169a90efcd16340c46114cf978e2343f | Add sc-mixed.py in installed scripts | ynsta/steamcontroller,ynsta/steamcontroller | setup.py | setup.py | #!/usr/bin/env python
import sys
try:
from setuptools import setup, Extension
except ImportError:
from distutils.core import setup, Extension
uinput = Extension('libuinput',
sources = ['src/uinput.c'])
deps = ['libusb1', 'psutil']
if sys.version_info < (3,4):
deps.append('enum34')
set... | #!/usr/bin/env python
import sys
try:
from setuptools import setup, Extension
except ImportError:
from distutils.core import setup, Extension
uinput = Extension('libuinput',
sources = ['src/uinput.c'])
deps = ['libusb1', 'psutil']
if sys.version_info < (3,4):
deps.append('enum34')
set... | mit | Python |
a83b45f6096d7cc0e019a282dc4a7fa713740c6a | Bump version to 3.2m5 | cloudify-cosmo/cloudify-amqp-influxdb,cloudify-cosmo/cloudify-amqp-influxdb,geokala/cloudify-amqp-influxdb,geokala/cloudify-amqp-influxdb | setup.py | setup.py | ########
# Copyright (c) 2014 GigaSpaces Technologies Ltd. All rights reserved
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless... | ########
# Copyright (c) 2014 GigaSpaces Technologies Ltd. All rights reserved
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless... | apache-2.0 | Python |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.