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 |
|---|---|---|---|---|---|---|---|---|
2cd12718f20447079fd02ec31d7e43e46f49f6b4 | Fix and improve upload_files.py example (#94) | VirusTotal/vt-py | examples/upload_files.py | examples/upload_files.py | # Copyright © 2019 The vt-py authors. All Rights Reserved.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable l... | # Copyright © 2019 The vt-py authors. All Rights Reserved.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable l... | apache-2.0 | Python |
814565b51136cf864a47988c2c0437000854fd08 | remove pdb.set_trace() | crosscompute/crosscompute-examples,crosscompute/crosscompute-examples | extract-pdf-pages/run.py | extract-pdf-pages/run.py | import json
from os.path import join
from sys import argv
from PyPDF2 import PdfFileReader, PdfFileWriter
def extract_pdf_pages(input_path, output_path, pages):
pdf_writer = PdfFileWriter()
pdf_reader = PdfFileReader(input_path)
pdf_last_page = pdf_reader.getNumPages()
for page_number in pages:
... | import json
from os.path import join
from sys import argv
from PyPDF2 import PdfFileReader, PdfFileWriter
def extract_pdf_pages(input_path, output_path, pages):
pdf_writer = PdfFileWriter()
pdf_reader = PdfFileReader(input_path)
pdf_last_page = pdf_reader.getNumPages()
for page_number in pages:
... | mit | Python |
462ae981ed5b9cc9a8f46e97dfe7908c0827ea64 | Fix implied_group, it still refers to the old module name | Antiun/account-invoicing,hbrunn/account-invoicing,kittiu/account-invoicing,open-synergy/account-invoicing,raycarnes/account-invoicing,brain-tec/account-invoicing,charbeljc/account-invoicing,Noviat/account-invoicing,Endika/account-invoicing,eezee-it/account-invoicing,brain-tec/account-invoicing,kmee/account-invoicing,gu... | account_invoice_line_description/res_config.py | account_invoice_line_description/res_config.py | # -*- coding: utf-8 -*-
##############################################################################
#
# Copyright (C) 2015 Agile Business Group sagl
# (<http://www.agilebg.com>)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public ... | # -*- coding: utf-8 -*-
##############################################################################
#
# Copyright (C) 2015 Agile Business Group sagl
# (<http://www.agilebg.com>)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public ... | agpl-3.0 | Python |
1326f15d112cb6e64caf6739d509f4b1e33ac726 | Convert to use the standard unittest module | scottp-dpaw/gsconfig,afabiani/gsconfig,Geode/gsconfig,cristianzamar/gsconfig,boundlessgeo/gsconfig,garnertb/gsconfig.py | test.py | test.py | import unittest
from catalog import Catalog
class CatalogTests(unittest.TestCase):
def setUp(self):
self.cat = Catalog("http://localhost:8080/geoserver/rest")
def testWorkspaces(self):
self.assertEqual(7, len(self.cat.getWorkspaces()))
self.assertEqual("nurc", self.cat.getDefaultWorkspace().name)
... | from catalog import Catalog
cat = Catalog("http://localhost:8080/geoserver/rest")
print cat.getWorkspaces()
print cat.getDefaultWorkspace()
topp = cat.getWorkspace("topp")
sf = cat.getWorkspace("sf")
print topp, sf
print cat.getStores()
print cat.getStores(topp)
print cat.getStores(sf)
print cat.getStore("states_sha... | mit | Python |
0d2211f0de15642f75c6ee372c756f9118059dd3 | Update test.py | reticulatingspline/WolframAlpha | test.py | test.py | ###
# Copyright (c) 2012-2014, spline
# All rights reserved.
#
#
###
from supybot.test import *
class WolframAlphaTestCase(PluginTestCase):
plugins = ('WolframAlpha',)
def testWolframAlpha(self):
conf.supybot.plugins.WolframAlpha.apiKey.setValue('VV6W6X-R7389R5AU5')
conf.supybot.plugins.Wolfr... | ###
# Copyright (c) 2012-2014, spline
# All rights reserved.
#
#
###
from supybot.test import *
class WolframAlphaTestCase(PluginTestCase):
plugins = ('WolframAlpha',)
# vim:set shiftwidth=4 tabstop=4 expandtab textwidth=79:
| mit | Python |
981217128ec5513b075368cbbfb56e012f108e56 | Fix shebang line. | az-labs/wilkins-python | test.py | test.py | #!/usr/bin/python
import unittest
import subprocess
class TestWilkins(unittest.TestCase):
def test_cliusage(self):
output = subprocess.check_output(['./wilkins.py', '--word', 'remain', '--output', 'json'])
self.assertEqual(output.strip(), '{"synonyms": ["stay", "rest"], "type": "Verb", "residual"... | #!/bin/usr/python
import unittest
import subprocess
class TestWilkins(unittest.TestCase):
def test_cliusage(self):
output = subprocess.check_output(['./wilkins.py', '--word', 'remain', '--output', 'json'])
self.assertEqual(output.strip(), '{"synonyms": ["stay", "rest"], "type": "Verb", "residual"... | mit | Python |
eb8bf60d0a97724a61cc8c4268e38f8ca786b530 | test ... | ryanrhymes/scandex | test.py | test.py | #!/usr/bin/env python
import httplib
import json
import os
import socket
import sys
class Uhttplib(httplib.HTTPConnection):
"""Subclass of Python library HTTPConnection that
uses a unix-domain socket.
"""
def __init__(self, path):
httplib.HTTPConnection.__init__(self, 'localhost')
s... | #!/usr/bin/env python
import httplib
import json
import os
import socket
import sys
class Uhttplib(httplib.HTTPConnection):
"""Subclass of Python library HTTPConnection that
uses a unix-domain socket.
"""
def __init__(self, path):
httplib.HTTPConnection.__init__(self, 'localhost')
s... | mit | Python |
a11cab503f6aabe7ad53422921422919951d204d | Fix tests so they pass. | reticulatingspline/Series | test.py | test.py | # coding=utf8
###
# Copyright (c) 2010, Terje Hoaas
# Copyright (c) 2014, spline
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyri... | # coding=utf8
###
# Copyright (c) 2010, Terje Hoaas
# Copyright (c) 2014, spline
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyri... | mit | Python |
d7b3c12cd5b34ec10044bbcd887fb1e479edda8e | add rng_collection argument to Dropout | google/flax,google/flax | flax/linen/stochastic.py | flax/linen/stochastic.py | # Copyright 2022 The Flax 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 wri... | # Copyright 2022 The Flax 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 wri... | apache-2.0 | Python |
e1399a0422429a55cdbeacb382eead2a72b78b2a | remove copy-paste | genome/flow-core,genome/flow-core,genome/flow-core | flow/protocol/message.py | flow/protocol/message.py | import copy
import json
from flow.protocol import exceptions
class Message(object):
required_fields = {}
optional_fields = {}
def __init__(self, **kwargs):
try:
for name, type_ in self.required_fields.iteritems():
value = kwargs.pop(name)
self._validate... | import copy
import json
from flow.protocol import exceptions
class Message(object):
required_fields = {}
optional_fields = {}
def __init__(self, **kwargs):
try:
for name, type_ in self.required_fields.iteritems():
value = kwargs.pop(name)
if isinstance(... | agpl-3.0 | Python |
f183b471bf92c03bb5353b02009e3287ffe06ae7 | Fix interpretation of parameters for names list modification | ElementalAlchemist/txircd,DesertBus/txircd,Heufneutje/txircd | txircd/modules/umode_i.py | txircd/modules/umode_i.py | from txircd.modbase import Mode
class InvisibleMode(Mode):
def namesListEntry(self, recipient, channel, user, representation):
if channel.name not in recipient.channels and "i" in user.mode:
return ""
return representation
class Spawner(object):
def __init__(self, ircd):
self.ircd = ircd
def spawn(self)... | from txircd.modbase import Mode
class InvisibleMode(Mode):
def namesListEntry(self, recipient, channel, user, representation):
if channel not in recipient.channels and "i" in user.mode:
return ""
return representation
class Spawner(object):
def __init__(self, ircd):
self.ircd = ircd
def spawn(self):
r... | bsd-3-clause | Python |
d56468b230c53f8fd9327cd73e0d270d3d73c3d9 | Remove former cmd instance attribute | mywulin/functest,mywulin/functest,opnfv/functest,opnfv/functest | functest/core/feature.py | functest/core/feature.py | #!/usr/bin/env python
# Copyright (c) 2016 ZTE Corp and others.
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distribution, and is available at
# http://www.apache.org/licenses/LICENSE-2.0
import ti... | #!/usr/bin/env python
# Copyright (c) 2016 ZTE Corp and others.
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distribution, and is available at
# http://www.apache.org/licenses/LICENSE-2.0
import ti... | apache-2.0 | Python |
c232e90ca0fc31b53fae970c3ff99ae143fb86d2 | Fix subcmd argument parsing from global arguments | eonpatapon/contrail-api-cli | contrail_api_cli/prompt.py | contrail_api_cli/prompt.py | import os
import sys
import argparse
from keystoneclient import session as ksession, auth
from keystoneclient.exceptions import ClientException, HttpError
from . import commands
def get_subcommand_kwargs(name, namespace):
"""Get subcommand options from global parsed
arguments.
"""
subcmd = commands.... | import os
import sys
import argparse
from keystoneclient import session as ksession, auth
from keystoneclient.exceptions import ClientException, HttpError
from . import commands
def get_subcommand_kwargs(name, namespace):
subcmd = commands.get_command(name)
subcmd_kwargs = {}
for (arg_name, arg_args, ar... | mit | Python |
60829c89bc692b4a2ab33844084bc9b08d8dbf6d | Fix linter. | opennode/waldur-mastermind,opennode/nodeconductor-assembly-waldur,opennode/nodeconductor-assembly-waldur,opennode/nodeconductor-assembly-waldur,opennode/waldur-mastermind,opennode/waldur-mastermind,opennode/waldur-mastermind | src/waldur_mastermind/marketplace_devops/utils.py | src/waldur_mastermind/marketplace_devops/utils.py | import json
from django.conf import settings
import epicbox
from rest_framework import serializers as rf_serializers
from . import serializers
class PythonScriptMixin:
script_name = NotImplemented
def send_request(self, user):
script = self.order_item.offering.plugin_options[self.script_name].encod... | import json
from django.conf import settings
import epicbox
from rest_framework import serializers
from . import serializers
class PythonScriptMixin:
script_name = NotImplemented
def send_request(self, user):
script = self.order_item.offering.plugin_options[self.script_name].encode('utf-8')
... | mit | Python |
8bb1aaf3a77764673d9793eb477ef811bfd61341 | Add filter hooks | geneanet/moneta | moneta/pluginregistry.py | moneta/pluginregistry.py | # -*- coding: utf-8 -*-
from __future__ import absolute_import
import logging
from imp import find_module, load_module
logger = logging.getLogger('moneta.pluginregistry')
class PluginRegistry(object):
def __init__(self, plugindir = "plugins", modules = None):
self.plugindir = plugindir
self.plu... | # -*- coding: utf-8 -*-
from __future__ import absolute_import
import logging
from imp import find_module, load_module
logger = logging.getLogger('moneta.pluginregistry')
class PluginRegistry(object):
def __init__(self, plugindir = "plugins", modules = None):
self.plugindir = plugindir
self.plu... | bsd-3-clause | Python |
5568b8f5ff418524cf2732b297e5150a1a606461 | add module summary | Eficent/stock-logistics-workflow,gurneyalex/stock-logistics-workflow,acsone/stock-logistics-workflow,Antiun/stock-logistics-workflow,BT-fgarbely/stock-logistics-workflow,open-synergy/stock-logistics-workflow,Eficent/stock-logistics-workflow,acsone/stock-logistics-workflow,BT-jmichaud/stock-logistics-workflow,brain-tec/... | stock_ownership_availability_rules/__openerp__.py | stock_ownership_availability_rules/__openerp__.py | # -*- coding: utf-8 -*-
# Author: Leonardo Pistone
# Copyright 2014 Camptocamp SA
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or... | # -*- coding: utf-8 -*-
# Author: Leonardo Pistone
# Copyright 2014 Camptocamp SA
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or... | agpl-3.0 | Python |
cd4ce0afd8d26ff7a09b2bfa495a1de3e840b26f | Fix wide line | aes/unleash-client-python,aes/unleash-client-python | unleash_client/clients.py | unleash_client/clients.py | import time
import logging
from .strategy import DEFAULT_STRATEGIES
from .io import UrlFetcher, Reporter
from .features import Feature
log = logging.getLogger(__name__)
def name_instance():
import os
import socket
return "%s:%s" % (socket.gethostname(), os.getpid())
class Client:
def __init__(
... | import time
import logging
from .strategy import DEFAULT_STRATEGIES
from .io import UrlFetcher, Reporter
from .features import Feature
log = logging.getLogger(__name__)
def name_instance():
import os
import socket
return "%s:%s" % (socket.gethostname(), os.getpid())
class Client:
def __init__(
... | apache-2.0 | Python |
d9395178d718e12fb1c7d9b3fed4dfce942f9f72 | Make sure Google Calendar works | blancltd/blanc-basic-events | blanc_basic_events/views.py | blanc_basic_events/views.py | from django.http import HttpResponse
from django.views.generic import ListView, DetailView
from django.conf import settings
from django.contrib.sites.shortcuts import get_current_site
from icalendar import Calendar, Event
import datetime
from . import get_special_events_model, get_recurring_events_model
class EventsH... | from django.http import HttpResponse
from django.views.generic import ListView, DetailView
from django.conf import settings
from icalendar import Calendar, Event
import datetime
from . import get_special_events_model, get_recurring_events_model
class EventsHomeView(ListView):
queryset = get_recurring_events_model... | bsd-3-clause | Python |
344d960929a7a44bf59ce7a98697d22d1b90dc30 | update license variable | sdpython/actuariat_python,sdpython/actuariat_python,sdpython/actuariat_python | src/actuariat_python/__init__.py | src/actuariat_python/__init__.py | #-*- coding: utf-8 -*-
"""
@file
@brief Main file
"""
import sys
if sys.version_info[0] < 3:
raise ImportError("pyensae only works with Python 3")
__version__ = "0.1"
__author__ = "Vincent Bernardi, Xavier Dupré"
__github__ = "https://github.com/sdpython/actuariat_python"
__url__ = "http://www.xavierdupre.fr/app/... | #-*- coding: utf-8 -*-
"""
@file
@brief Main file
"""
import sys
if sys.version_info[0] < 3:
raise ImportError("pyensae only works with Python 3")
__version__ = "0.1"
__author__ = "Vincent Bernardi, Xavier Dupré"
__github__ = "https://github.com/sdpython/actuariat_python"
__url__ = "http://www.xavierdupre.fr/app/... | mit | Python |
bb1d6ee6d8167e0c758ce29f8d846320a6959aef | Switch disabling local_server_unittest to use decorator.Disabled | SummerLW/Perf-Insight-Report,catapult-project/catapult-csm,benschmaus/catapult,SummerLW/Perf-Insight-Report,catapult-project/catapult-csm,catapult-project/catapult,SummerLW/Perf-Insight-Report,sahiljain/catapult,sahiljain/catapult,benschmaus/catapult,catapult-project/catapult-csm,catapult-project/catapult,SummerLW/Perf... | telemetry/telemetry/core/local_server_unittest.py | telemetry/telemetry/core/local_server_unittest.py | # Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import BaseHTTPServer
import SimpleHTTPServer
from telemetry import decorators
from telemetry.core import local_server
from telemetry.testing import tab_test... | # Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import unittest
import BaseHTTPServer
import SimpleHTTPServer
from telemetry.core import local_server
from telemetry.testing import tab_test_case
class Si... | bsd-3-clause | Python |
64290f1cedfdb10701906d1d4ff234aabf4a7315 | Improve battle result module | mythnc/gbf-bot | gbf_bot/battle_result.py | gbf_bot/battle_result.py | import logging
import random
import time
import pyautogui
from . import top_left, window_size
from . import battle_result_config as config
from . import utility
from .components import Button
logger = logging.getLogger(__name__)
result_ok = Button('ok1.png', config['result ok'])
to_quest = Button('to_quest.png', conf... | import logging
import random
import time
import pyautogui
from . import battle_result_config as config
from .components import Button
logger = logging.getLogger(__name__)
result_ok = Button('ok1.png', config['result ok'])
to_quest = Button('to_quest.png', config['to quest'])
friend_cancel = Button('cancel.png', confi... | mit | Python |
a96053ef752e27d09328c2237436d0a177684c5f | Add TestUnwrap | cupy/cupy,cupy/cupy,cupy/cupy,cupy/cupy | tests/cupy_tests/math_tests/test_trigonometric.py | tests/cupy_tests/math_tests/test_trigonometric.py | import unittest
from cupy import testing
@testing.gpu
class TestTrigonometric(unittest.TestCase):
@testing.for_all_dtypes(no_complex=True)
@testing.numpy_cupy_allclose(atol=1e-5)
def check_unary(self, name, xp, dtype):
a = testing.shaped_arange((2, 3), xp, dtype)
return getattr(xp, name)... | import unittest
from cupy import testing
@testing.gpu
class TestTrigonometric(unittest.TestCase):
@testing.for_all_dtypes(no_complex=True)
@testing.numpy_cupy_allclose(atol=1e-5)
def check_unary(self, name, xp, dtype):
a = testing.shaped_arange((2, 3), xp, dtype)
return getattr(xp, name)... | mit | Python |
c77e67b49d6c2c2a971389f24bfb784e9a26fc50 | add docopt parser to parse app arguments using docstrings | davidnjakai/bc-8-todo-console-application | myapp.py | myapp.py | """Usage:
myapp.py create_todo <name> [ --desc=description]
myapp.py open_todo <name>
myapp.py add_item <content> [--completed=complete]
myapp.py finish_item (<number>|<content>)
myapp.py list (todos|items (<todo-name>|<todo-id>))
myapp.py (-i | --interactive)
myapp.py quit
Options:
-h --help Show this screen... | """Usage: crollo [options] <command>
Options:
-h --help Show this screen
-v --version Show version
commands:
create
open
add
list
""" | mit | Python |
ec597465166c6a9ff94bdae1cb4371180b7236ce | Remove `Unauthorized` header workaround now that Werkzeug v0.15 is available | homeworkprod/byceps,homeworkprod/byceps,homeworkprod/byceps,m-ober/byceps,m-ober/byceps,m-ober/byceps | byceps/blueprints/authentication/decorators.py | byceps/blueprints/authentication/decorators.py | """
byceps.blueprints.authentication.decorators
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:Copyright: 2006-2019 Jochen Kupperschmidt
:License: Modified BSD, see LICENSE for details.
"""
import base64
import binascii
from functools import wraps
import hmac
from typing import Optional
from flask import abort, curren... | """
byceps.blueprints.authentication.decorators
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:Copyright: 2006-2019 Jochen Kupperschmidt
:License: Modified BSD, see LICENSE for details.
"""
import base64
import binascii
from functools import wraps
import hmac
from typing import Optional
from flask import current_app, ... | bsd-3-clause | Python |
5bde88e34c2af89c6cba4c66a324c25b312b3b8a | increase check “keyspace” to stop celery killing our checks. | ustream/openduty,ustream/openduty,ustream/openduty,ustream/openduty | openduty/healthcheck.py | openduty/healthcheck.py | __author__ = 'deathowl'
from time import sleep, time
import datetime
from openduty.serializers import NoneSerializer
from openduty.models import Incident
from rest_framework.response import Response
from rest_framework import status
from rest_framework import viewsets
from .celery import add
from random import randint... | __author__ = 'deathowl'
from time import sleep
import datetime
from openduty.serializers import NoneSerializer
from openduty.models import Incident
from rest_framework.response import Response
from rest_framework import status
from rest_framework import viewsets
from .celery import add
from random import randint
cl... | mit | Python |
c931757d02e4f94c560481bdcb8a585af193d44f | Fix package gpgme dependency (#12410) | iulian787/spack,LLNL/spack,iulian787/spack,iulian787/spack,LLNL/spack,LLNL/spack,LLNL/spack,iulian787/spack,iulian787/spack,LLNL/spack | var/spack/repos/builtin/packages/gpgme/package.py | var/spack/repos/builtin/packages/gpgme/package.py | # Copyright 2013-2019 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class Gpgme(AutotoolsPackage):
"""GPGME is the standard library to access GnuPG
functions... | # Copyright 2013-2019 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class Gpgme(AutotoolsPackage):
"""GPGME is the standard library to access GnuPG
functions... | lgpl-2.1 | Python |
e2616fdcac63d94b2230cdb47ede26c9fad8737a | Switch back to showing novel mutations for consistency | reimandlab/Visualistion-Framework-for-Genome-Mutations,reimandlab/ActiveDriverDB,reimandlab/ActiveDriverDB,reimandlab/Visualisation-Framework-for-Genome-Mutations,reimandlab/ActiveDriverDB,reimandlab/Visualistion-Framework-for-Genome-Mutations,reimandlab/Visualisation-Framework-for-Genome-Mutations,reimandlab/Visualist... | website/views/mutation.py | website/views/mutation.py | from flask import render_template as template
from flask_classful import FlaskView
from flask_login import current_user
from models import Protein, source_manager
from models import Mutation
from database import get_or_create
def prepare_datasets(mutation):
datasets = []
sources_with_mutation = mutation.sour... | from flask import render_template as template
from flask_classful import FlaskView
from flask_login import current_user
from models import Protein, source_manager
from models import Mutation
def prepare_datasets(mutation):
datasets = []
sources_with_mutation = mutation.sources_map
for source in source_m... | lgpl-2.1 | Python |
e813a62cbcfe9c19b0f288c094cc2833e314c11a | make lookup case insensitive but redirect to the proper name | crate-archive/crate-site,crateio/crate.pypi,crate-archive/crate-site | crate_project/apps/packages/simple/views.py | crate_project/apps/packages/simple/views.py | from django.core.urlresolvers import reverse
from django.http import HttpResponsePermanentRedirect
from django.views.generic.detail import DetailView
from django.views.generic.list import ListView
from packages.models import Package
class PackageIndex(ListView):
queryset = Package.objects.all().order_by("name")
... | from django.views.generic.detail import DetailView
from django.views.generic.list import ListView
from packages.models import Package
class PackageIndex(ListView):
queryset = Package.objects.all().order_by("name")
template_name = "packages/simple/package_list.html"
class PackageDetail(DetailView):
quer... | bsd-2-clause | Python |
512e4aa6c10046bdc5355cb2ec66c043bea4207c | fix profiler on windows | cyberegoorg/cetech,cyberegoorg/cetech,cyberegoorg/cetech,cyberegoorg/cetech | playground/src/playground/profilerwidget.py | playground/src/playground/profilerwidget.py | from PyQt5.QtCore import QUrl, QDir
from PyQt5.QtWebKit import QWebSettings
from PyQt5.QtWidgets import QFrame
from playground.ui.profilerwidget import Ui_ProfilerWidget
class ProfilerWidget(QFrame, Ui_ProfilerWidget):
def __init__(self, api):
super(ProfilerWidget, self).__init__()
self.setupUi(s... | from PyQt5.QtCore import QUrl, QDir
from PyQt5.QtWebKit import QWebSettings
from PyQt5.QtWidgets import QFrame
from playground.ui.profilerwidget import Ui_ProfilerWidget
class ProfilerWidget(QFrame, Ui_ProfilerWidget):
def __init__(self, api):
super(ProfilerWidget, self).__init__()
self.setupUi(s... | cc0-1.0 | Python |
2640f987c748ddf73936d03a4ff00eee29100f20 | disable debug | cchristelis/feti,lucernae/feti,lucernae/feti,lucernae/feti,cchristelis/feti,cchristelis/feti,lucernae/feti,cchristelis/feti | django_project/core/settings/prod_docker.py | django_project/core/settings/prod_docker.py | # noinspection PyUnresolvedReferences
from .prod import * # noqa
import os
print os.environ
ALLOWED_HOSTS = ['*']
ADMINS = (
('Tim Sutton', 'tim@kartoza.com'),
('Ismail Sunni', 'ismail@kartoza.com'),
('Christian Christelis', 'christian@kartoza.com'),)
DATABASES = {
'default': {
'ENGINE': 'dj... | # noinspection PyUnresolvedReferences
from .prod import * # noqa
import os
print os.environ
ALLOWED_HOSTS = ['*']
ADMINS = (
('Tim Sutton', 'tim@kartoza.com'),
('Ismail Sunni', 'ismail@kartoza.com'),
('Christian Christelis', 'christian@kartoza.com'),)
DATABASES = {
'default': {
'ENGINE': 'dj... | bsd-2-clause | Python |
e1b32d4f68363d0500b382e4884f6d4ddb58b09a | Update weather.py | Sopwai/dotfiles,Sopwai/dotfiles | .config/polybar/weather.py | .config/polybar/weather.py | #!/bin/python
# -*- coding: utf-8 -*-
# this is using python 3.6
import urllib.request, json
#input your info
city = "" #put your city here
api_key = "" #get an api key from openweathermap
units = "" #Metric or Imperial unit... | #!/bin/python
# -*- coding: utf-8 -*-
# this is using python 3.6
import urllib.request, json
#input your info
city = "" #put your city here
api_key = "" #get an api key from openweathermap
units = "" #Metric or Imperial unit... | mit | Python |
d7f1a1dc22035c48dbe97a28364383fa5859c86c | bump version to 1.0.1 | KristianOellegaard/django-health-check,clearclaw/django-health-check,kingctan/django-health-check,KristianOellegaard/django-health-check,pythonvietnam/django-health-check,pythonvietnam/django-health-check,kingctan/django-health-check,mspeedy/django-health-check,mspeedy/django-health-check,clearclaw/django-health-check | health_check/__init__.py | health_check/__init__.py | # This file is heavily inspired from the django admin autodiscover
__version_info__ = {
'major': 1,
'minor': 0,
'micro': 1,
'releaselevel': 'final',
'serial': 0
}
def autodiscover():
"""
Auto-discover INSTALLED_APPS admin.py modules and fail silently when
not present. This forces an i... | # This file is heavily inspired from the django admin autodiscover
__version_info__ = {
'major': 1,
'minor': 0,
'micro': 0,
'releaselevel': 'final',
'serial': 0
}
def autodiscover():
"""
Auto-discover INSTALLED_APPS admin.py modules and fail silently when
not present. This forces an i... | mit | Python |
31c53f137c9de95de345929421418d0eb01fcf0c | remove unused return statements | Railslide/subvenv,Railslide/subvenv | virtualenvwrapper/subvenv.py | virtualenvwrapper/subvenv.py | #!/usr/bin/env python
import json
import logging
import os
import sys
log = logging.getLogger(__name__)
def post_mkproject(args=None):
project_venv = os.getenv('VIRTUAL_ENV')
project_name = os.path.basename(project_venv)
project_path_file = os.path.join(project_venv, '.project')
interpreter = os.pa... | #!/usr/bin/env python
import json
import logging
import os
import sys
log = logging.getLogger(__name__)
def post_mkproject(args=None):
project_venv = os.getenv('VIRTUAL_ENV')
project_name = os.path.basename(project_venv)
project_path_file = os.path.join(project_venv, '.project')
interpreter = os.pa... | mit | Python |
c059ca650715c90b07c343363a96369e5216ffa0 | bump version | ramusus/django-vkontakte-groups,ramusus/django-vkontakte-groups | vkontakte_groups/__init__.py | vkontakte_groups/__init__.py | VERSION = (0, 3, 7)
__version__ = '.'.join(map(str, VERSION)) | VERSION = (0, 3, 6)
__version__ = '.'.join(map(str, VERSION)) | bsd-3-clause | Python |
e2612645c375df956b476701eafe8cc46740975d | Bump to version 0.16.5 | CartoDB/dataservices-api,CartoDB/geocoder-api,CartoDB/dataservices-api,CartoDB/geocoder-api,CartoDB/geocoder-api,CartoDB/geocoder-api,CartoDB/dataservices-api,CartoDB/dataservices-api | server/lib/python/cartodb_services/setup.py | server/lib/python/cartodb_services/setup.py | """
CartoDB Services Python Library
See:
https://github.com/CartoDB/geocoder-api
"""
from setuptools import setup, find_packages
setup(
name='cartodb_services',
version='0.16.5',
description='CartoDB Services API Python Library',
url='https://github.com/CartoDB/dataservices-api',
author='Data... | """
CartoDB Services Python Library
See:
https://github.com/CartoDB/geocoder-api
"""
from setuptools import setup, find_packages
setup(
name='cartodb_services',
version='0.16.4',
description='CartoDB Services API Python Library',
url='https://github.com/CartoDB/dataservices-api',
author='Data... | bsd-3-clause | Python |
dd2089d67578bbac224872eb3fb0514d9c0d0078 | Update phell script to show more gpt info | bjoernricks/phell | phell.py | phell.py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# (c) 2016 Björn Ricks <bjoern.ricks@gmail.com>
#
# See LICENSE comming with the source of 'phell' for details.
#
from __future__ import print_function
import sys
from phell.utils import to_hex
from phell.mbr import Mbr
from phell.gpt import Gpt, GptPartition
def ma... | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# (c) 2016 Björn Ricks <bjoern.ricks@gmail.com>
#
# See LICENSE comming with the source of 'phell' for details.
#
from __future__ import print_function
import uuid
import sys
from phell.utils import to_hex
from phell.mbr import Mbr
from phell.gpt import Gpt
def main... | mit | Python |
096e74150ccd87dcb5af688b8df7f43c1bb26b6b | Prepare 0.18.4b release | i3visio/osrframework | osrframework/__init__.py | osrframework/__init__.py | #!/usr/bin/python2
# -*- coding: utf-8 -*-
#
################################################################################
#
# Copyright 2015-2018 Félix Brezo and Yaiza Rubio
#
# This program is part of OSRFramework. You can redistribute it and/or modify
# it under the terms of the GNU Affero Genera... | #!/usr/bin/python2
# -*- coding: utf-8 -*-
#
################################################################################
#
# Copyright 2015-2018 Félix Brezo and Yaiza Rubio
#
# This program is part of OSRFramework. You can redistribute it and/or modify
# it under the terms of the GNU Affero Genera... | agpl-3.0 | Python |
f9b70af6a4cfd900bec6a5cb9dc0ba4b15b096e6 | Fix - updated migration to reflect related_name change | Pierre-Sassoulas/django-survey,Pierre-Sassoulas/django-survey,Pierre-Sassoulas/django-survey | survey/migrations/0003_auto_20170320_0337.py | survey/migrations/0003_auto_20170320_0337.py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-03-23 05:37
from __future__ import unicode_literals
import django.db.models.deletion
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('survey', '0002_survey_template'),
]
operations = [... | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('survey', '0002_survey_template'),
]
operations = [
migrations.RenameField(
model_name='question',
ol... | agpl-3.0 | Python |
2905da8df5f0d1237f3ca3c000943237e07a5b81 | Update XdadevelopersCom.py | vuolter/pyload,vuolter/pyload,vuolter/pyload | module/plugins/hoster/XdadevelopersCom.py | module/plugins/hoster/XdadevelopersCom.py | # -*- coding: utf-8 -*-
# http://forum.xda-developers.com/devdb/project/dl/?id=10885
import re
from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo
class XdadevelopersCom(SimpleHoster):
__name__ = "XdadevelopersCom"
__type__ = "hoster"
__version__ = "0.01"
__pattern__... | # -*- coding: utf-8 -*-
# http://forum.xda-developers.com/devdb/project/dl/?id=10885
import re
from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo
class XdadevelopersCom(SimpleHoster):
__name__ = "XdadevelopersCom"
__type__ = "hoster"
__version__ = "0.01"
__pattern__... | agpl-3.0 | Python |
1c4a2ea9121454d18c6da65d1fb183a0819fc88c | Update __openerp__.py | StefanRijnhart/server-tools,petrus-v/server-tools,archetipo/server-tools,archetipo/server-tools,petrus-v/server-tools,StefanRijnhart/server-tools | module_parent_dependencies/__openerp__.py | module_parent_dependencies/__openerp__.py | # -*- encoding: utf-8 -*-
##############################################################################
#
# Module - Parent Dependencies module for Odoo
# Copyright (C) 2014 GRAP (http://www.grap.coop)
# @author Sylvain LE GAL (https://twitter.com/legalsylvain)
#
# This program is free software: you can re... | # -*- encoding: utf-8 -*-
##############################################################################
#
# Module - Parent Dependencies module for Odoo
# Copyright (C) 2014 GRAP (http://www.grap.coop)
# @author Sylvain LE GAL (https://twitter.com/legalsylvain)
#
# This program is free software: you can re... | agpl-3.0 | Python |
8402c9bffbd43957bf64db6f34599507000bfa3f | Configure logging | dbinetti/barberscore-django,dbinetti/barberscore,barberscore/barberscore-api,barberscore/barberscore-api,barberscore/barberscore-api,dbinetti/barberscore,dbinetti/barberscore-django,barberscore/barberscore-api | project/settings/dev.py | project/settings/dev.py | from .base import *
ALLOWED_HOSTS = [
'localhost',
]
LOGGING = {
'version': 1,
"disable_existing_loggers": True,
'handlers': {
'console': {
'level': 'DEBUG',
'class': 'logging.StreamHandler',
'formatter': 'simple'
},
},
'formatters': {
... | from .base import *
ALLOWED_HOSTS = [
'localhost',
]
| bsd-2-clause | Python |
7dbd6c24a78a80f26316c0548445dc48674d42c8 | Support A/B/C Parts | jiangtianyu2009/PiSoftCake | YouKnowShit/DownloadFilesRename.py | YouKnowShit/DownloadFilesRename.py | import os
import re
distDir = r'H:\Temp\TC'
p = re.compile(r'(\D+\d+)(\w*)(.\w+)')
filenames = os.listdir(distDir)
upperfilenames = []
print(filenames)
for filenamepref in filenames:
if filenamepref.find('_') > 0:
filenameprefit = filenamepref[filenamepref.index('_'):]
else:
filenameprefit =... | import os
import re
distDir = r'E:\download\TC'
p = re.compile(r'(\D+\d+)\w*(.\w+)')
filenames = os.listdir(distDir)
upperfilenames = []
print(filenames)
for filenamepref in filenames:
if filenamepref.find('_') > 0:
filenameprefit = filenamepref[filenamepref.index('_'):]
else:
filenameprefit... | mit | Python |
39fc72b36ef2903989259d5ad927ce9e2c088300 | Remove unused import | amolenaar/gaphor,amolenaar/gaphor | packaging/make-script.py | packaging/make-script.py | from pathlib import Path
import pyinstaller_versionfile
import tomlkit
packaging_path = Path(__file__).resolve().parent
def get_version() -> str:
project_dir = Path(__file__).resolve().parent.parent
f = project_dir / "pyproject.toml"
return str(tomlkit.parse(f.read_text())["tool"]["poetry"]["version"])
... | import sys
from pathlib import Path
import pyinstaller_versionfile
import tomlkit
packaging_path = Path(__file__).resolve().parent
def get_version() -> str:
project_dir = Path(__file__).resolve().parent.parent
f = project_dir / "pyproject.toml"
return str(tomlkit.parse(f.read_text())["tool"]["poetry"]["... | lgpl-2.1 | Python |
a81cd36603402b9111256118472fa6056d2dc315 | Create new api ping route to include IP address | selfcommit/pi_director,PeterGrace/pi_director,PeterGrace/pi_director,selfcommit/pi_director,PeterGrace/pi_director,selfcommit/pi_director | pi_director/views/api.py | pi_director/views/api.py | from pyramid.response import Response
from pyramid.view import view_config
from cornice import Service
import logging
import sqlalchemy.exc
from datetime import datetime
from io import BytesIO
from pi_director.models.models import (
DBSession,
MyModel,
Screenshot
)
from pi_director.controllers.user_co... | from pyramid.response import Response
from pyramid.view import view_config
from cornice import Service
import logging
import sqlalchemy.exc
from datetime import datetime
from io import BytesIO
from pi_director.models.models import (
DBSession,
MyModel,
Screenshot
)
from pi_director.controllers.user_co... | mit | Python |
dd1573741f6ca27eed53282e70a716f05105eb58 | Add check_special_characters decorator | matheuscas/pycpfcnpj | pycpfcnpj/compatible.py | pycpfcnpj/compatible.py | def check_special_characters(func):
def wrapper(document):
not_digit = list(filter(lambda x: not x.isdigit(), clear_punctuation(document)))
return False if not_digit else func(document)
return wrapper
def clear_punctuation(document):
"""Remove from document all pontuation signals."""
... | def clear_punctuation(document):
"""Remove from document all pontuation signals."""
return document.translate(str.maketrans({".": None, "-": None, "/": None}))
| mit | Python |
fb0673a7794ee03642ee4c8bbd9de733cf864a73 | Update example_app.py | edhiley/pydashie,edhiley/pydashie,edhiley/pydashie,edhiley/pydashie | pydashie/example_app.py | pydashie/example_app.py | from example_samplers import *
def run(app, xyzzy):
samplers = [
SynergySampler(xyzzy, 3),
BuzzwordsSampler(xyzzy, 2), # 10
ConvergenceSampler(xyzzy, 1),
]
try:
app.run(host='0.0.0.0',
debug=True,
port=5000,
threaded=True,
... | from example_samplers import *
def run(app, xyzzy):
samplers = [
SynergySampler(xyzzy, 3),
BuzzwordsSampler(xyzzy, 2), # 10
ConvergenceSampler(xyzzy, 1),
]
try:
app.run(debug=True,
port=5000,
threaded=True,
use_reloader=False,... | mit | Python |
cedbf550efc4c15a5c5855e49d6f206be48eca35 | fix config key | cenkalti/pypi-notifier,cenkalti/pypi-notifier | pypi_notifier/config.py | pypi_notifier/config.py | import os
class development(object):
def __init__(self):
self.DEBUG = True
self.DEBUG_TB_INTERCEPT_REDIRECTS = False
self.SECRET_KEY = 'insecure'
self.CACHE_TYPE = 'filesystem'
self.CACHE_DIR = 'cache'
self.GITHUB_CLIENT_ID = ''
self.GITHUB_CLIENT_SECRET = '... | import os
class development(object):
def __init__(self):
self.DEBUG = True
self.DEBUG_TB_INTERCEPT_REDIRECTS = False
self.SECRET_KEY = 'insecure'
self.CACHE_TYPE = 'filesystem'
self.CACHE_DIR = 'cache'
self.GITHUB_CLIENT_ID = ''
self.GITHUB_CLIENT_SECRET = '... | mit | Python |
9cd9d9a8654aa8546083024802d1df6ad6b9d0be | rearrange code | shvets/Etvnet.bundle | Contents/Code/http_service.py | Contents/Code/http_service.py | import urllib
try:
from urllib2 import Request, urlopen
except:
from urllib.request import Request, urlopen
class HttpService():
def build_url(self, path, **params):
url = path
for key, val in params.items():
if val is not None:
delimiter = ('?', '&')['?' in ur... | import urllib
import sys
try:
from urllib2 import Request, urlopen
except:
from urllib.request import Request, urlopen
class HttpService():
def build_url(self, path, **params):
url = path
for key, val in params.items():
if val is not None:
delimiter = ('?', '&'... | mit | Python |
daa79349217d13652869b44060e698fd33656e0f | check for build_ext object in import check | ChristopherHogan/cython,cython/cython,ChristopherHogan/cython,fabianrost84/cython,fabianrost84/cython,da-woods/cython,cython/cython,scoder/cython,da-woods/cython,da-woods/cython,ChristopherHogan/cython,da-woods/cython,scoder/cython,scoder/cython,scoder/cython,fabianrost84/cython,fabianrost84/cython,fabianrost84/cython,... | Cython/Distutils/build_ext.py | Cython/Distutils/build_ext.py | import sys
if 'setuptools' in sys.modules:
try:
from setuptools.command.build_ext import build_ext as _build_ext
except ImportError:
# We may be in the process of importing setuptools, which tries
# to import this.
from distutils.command.build_ext import build_ext as _build_ext
... | import sys
if 'setuptools' in sys.modules:
try:
from setuptools.command import build_ext as _build_ext
except ImportError:
# We may be in the process of importing setuptools, which tries
# to import this.
from distutils.command import build_ext as _build_ext
else:
from distu... | apache-2.0 | Python |
c3f8860c717a139d396b0d902db989ab7b8369ba | Fix image path in manifest | kmee/stock-logistics-warehouse,factorlibre/stock-logistics-warehouse,open-synergy/stock-logistics-warehouse,acsone/stock-logistics-warehouse,avoinsystems/stock-logistics-warehouse | stock_inventory_hierarchical/__openerp__.py | stock_inventory_hierarchical/__openerp__.py | # -*- coding: utf-8 -*-
# © 2013-2016 Numérigraphe SARL
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
"name": "Hierarchical Inventory adjustments",
"summary": "Group several Inventory adjustments in a master inventory",
"version": "8.0.2.0.0",
"depends": ["stock"],
"author"... | # -*- coding: utf-8 -*-
# © 2013-2016 Numérigraphe SARL
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
"name": "Hierarchical Inventory adjustments",
"summary": "Group several Inventory adjustments in a master inventory",
"version": "8.0.2.0.0",
"depends": ["stock"],
"author"... | agpl-3.0 | Python |
c27f54d21b6fec4ebffa0ded78b04332e9947469 | change logger to system | romaneckert/robot,romaneckert/robot,romaneckert/robot | robot.py | robot.py | #!/usr/bin/env python
from bionics.controller import Controller
from bionics.system import System
import RPi.GPIO as GPIO
import urllib.request
import urllib.parse
import os
class Robot(Controller):
#motor = None
#cycle1 = 6
#cycle2 = 6
#cycle3 = 6
#cycle_direction1 = 1
#cycle_direction2 = 1
... | #!/usr/bin/env python
from bionics.controller import Controller
from bionics.system import Logger
import RPi.GPIO as GPIO
import urllib.request
import urllib.parse
import os
class Robot(Controller):
#motor = None
#cycle1 = 6
#cycle2 = 6
#cycle3 = 6
#cycle_direction1 = 1
#cycle_direction2 = 1
... | mit | Python |
9e169348d95e29ad04942ecb00628f3d1f3a3a1c | Make debugger record a debug message instead of error when importing validate_email in partner_email_check | BT-rmartin/partner-contact,OCA/partner-contact,OCA/partner-contact,BT-rmartin/partner-contact | partner_email_check/models/res_partner.py | partner_email_check/models/res_partner.py | # Copyright 2019 Komit <https://komit-consulting.com>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
import logging
from odoo import api, models, _
from odoo.exceptions import UserError
_logger = logging.getLogger(__name__)
try:
from validate_email import validate_email
except ImportError:
... | # Copyright 2019 Komit <https://komit-consulting.com>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
import logging
from odoo import api, models, _
from odoo.exceptions import UserError
_logger = logging.getLogger(__name__)
try:
from validate_email import validate_email
except ImportError:
... | agpl-3.0 | Python |
aaa9531e98f6301a1042150aaffca9b2d7420125 | Fix spurious -Wmaybe-uninitialized error in silo | GoogleCloudPlatform/PerfKitBenchmarker,meteorfox/PerfKitBenchmarker,meteorfox/PerfKitBenchmarker,GoogleCloudPlatform/PerfKitBenchmarker,GoogleCloudPlatform/PerfKitBenchmarker,GoogleCloudPlatform/PerfKitBenchmarker | perfkitbenchmarker/linux_packages/silo.py | perfkitbenchmarker/linux_packages/silo.py | # Copyright 2014 PerfKitBenchmarker Authors. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | # Copyright 2014 PerfKitBenchmarker Authors. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | apache-2.0 | Python |
15b7c61885ccc793f013654f6d7af640fd889f2e | Change server port | liverliu/netmusichacker,liverliu/netmusichacker | python/hacker/config.py | python/hacker/config.py | __author__ = 'shijianliu'
host = 'http://music.liverliu.com'
server_host='127.0.0.1'
server_port=80
| __author__ = 'shijianliu'
host = 'http://music.liverliu.com'
server_host='127.0.0.1'
server_port=9999
| apache-2.0 | Python |
f6102ee64e63e9a8e94bdc4bc4deb18aafc53092 | test priority | babelsberg/babelsberg-r,babelsberg/babelsberg-r,babelsberg/babelsberg-r,babelsberg/babelsberg-r,babelsberg/babelsberg-r | tests/constraints/test_local_propagation.py | tests/constraints/test_local_propagation.py | import py
from ..base import BaseTopazTest
class TestLocalPropagation(BaseTopazTest):
def test_simple(self, space):
w_res = space.execute("""
require "libdeltablue"
string, number = "0", 0
always predicate: -> { string == number.to_s },
methods: -> {[ string <-> { ... | import py
from ..base import BaseTopazTest
class TestLocalPropagation(BaseTopazTest):
def test_simple(self, space):
w_res = space.execute("""
require "libdeltablue"
string, number = "0", 0
always predicate: -> { string == number.to_s },
methods: -> {[ string <-> { ... | bsd-3-clause | Python |
587765138b01e575e6bd63a7ef1ee9fbe2fc3a8b | Add TODOs for linked list class methods | myleneh/code | pythonds/linked_list.py | pythonds/linked_list.py | class Node:
def __init__(self, initdata):
self.data = initdata
self.next = None
def getData(self):
return self.data
def getNext(self):
return self.next
def setData(self, newdata):
self.data = newdata
def setNext(self, newnext):
self.next = newnext
... | class Node:
def __init__(self, initdata):
self.data = initdata
self.next = None
def getData(self):
return self.data
def getNext(self):
return self.next
def setData(self, newdata):
self.data = newdata
def setNext(self, newnext):
self.next = newnext
... | mit | Python |
1bc7423aa4571f91a75d418038dbc0cdbde50bbf | change version number | david-leon/Pytorch_Ext | pytorch_ext/__init__.py | pytorch_ext/__init__.py | from . import nn
__version__ = "0.3"
__author__ = "David Leon (Dawei Leng)"
| from . import nn
__version__ = "0.2"
__author__ = "David Leon (Dawei Leng)"
| mpl-2.0 | Python |
5fbcd05060e520a53e7ea6e4cb2e02a48e228602 | allow for test data types other than float32 | waylonflinn/weblas,waylonflinn/weblas,waylonflinn/weblas | test/data/binary_matrix.py | test/data/binary_matrix.py | #!/usr/bin/env python
"""Create two randomly generated matrices, of the specified sizes and write them
to JSON files.
"""
import json
import numpy as np
import os
type_map = {
'.i32' : np.int32,
'.u32' : np.uint32,
'.f32' : np.float32,
'.i64' : np.int64,
'.u64' : np.uint64,
'.f64' : np.float64
}
def get_exten... | #!/usr/bin/env python
"""Create two randomly generated matrices, of the specified sizes and write them
to JSON files.
"""
import json
import numpy as np
def read(path):
with open(path, 'rb') as f:
matrix = np.fromfile(f, dtype=np.float32)
return matrix
def write(path, matrix):
with open(path, 'wb') as f:
... | mit | Python |
8b31ff1036c6c999bae569e62a5debc2fd771217 | Print only titles and scores, separated with tab | psychoslave/catscore,psychoslave/catscore | score.py | score.py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
import wikipedia
import sys
import os
sample = 'Philosophers'
# help(cat_page)
def getPagesIn(category):
"""Return the list of pages contained in the provided category"""
# wikipedia module doesn't provide category listing, let's retrieve it
# with some qu... | #! /usr/bin/env python
# -*- coding: utf-8 -*-
import wikipedia
import sys
import os
sample = 'Philosophers'
# help(cat_page)
def getPagesIn(category):
"""Return the list of pages contained in the provided category"""
# wikipedia module doesn't provide category listing, let's retrieve it
# with some qu... | agpl-3.0 | Python |
07d81d30683f8383da82c456cf15d9daa40843f6 | Update version. | ionelmc/python-tblib | setup.py | setup.py | # -*- encoding: utf8 -*-
from setuptools import setup, find_packages
import os
setup(
name="tblib",
version="1.0.0",
url='https://github.com/ionelmc/python-tblib',
download_url='',
license='BSD',
description="Traceback fiddling library.",
long_description=open(os.path.join(os.path.dirname(... | # -*- encoding: utf8 -*-
from setuptools import setup, find_packages
import os
setup(
name="tblib",
version="0.2.0",
url='https://github.com/ionelmc/python-tblib',
download_url='',
license='BSD',
description="Traceback fiddling library.",
long_description=open(os.path.join(os.path.dirname(... | bsd-2-clause | Python |
14c6ab41e0c1efe983f47cc4e2e73222e8c67d73 | Remove note about documentation | drj11/pypng,drj11/pypng | setup.py | setup.py | # PyPNG setup.py
# This is the setup.py script used by distutils.
# You can install the png module into your Python distribution with:
# python setup.py install
# You can also do other standard distutil type things, but you can refer
# to the distutil documentation for that.
# This script is also imported as a module... | # PyPNG setup.py
# This is the setup.py script used by distutils.
# You can install the png module into your Python distribution with:
# python setup.py install
# You can also do other standard distutil type things, but you can refer
# to the distutil documentation for that.
# This script is also imported as a module... | mit | Python |
530ebcf368e521b06b98392637853e429b3b2cff | Bump version to 0.3.2 | madmaze/pytesseract | setup.py | setup.py | import os
from setuptools import setup
README_PATH = 'README.rst'
LONG_DESC = ''
if os.path.exists(README_PATH):
with open(README_PATH) as readme:
LONG_DESC = readme.read()
INSTALL_REQUIRES = ['Pillow']
PACKAGE_NAME = 'pytesseract'
PACKAGE_DIR = 'src'
setup(
name=PACKAGE_NAME,
version='0.3.2',
... | import os
from setuptools import setup
README_PATH = 'README.rst'
LONG_DESC = ''
if os.path.exists(README_PATH):
with open(README_PATH) as readme:
LONG_DESC = readme.read()
INSTALL_REQUIRES = ['Pillow']
PACKAGE_NAME = 'pytesseract'
PACKAGE_DIR = 'src'
setup(
name=PACKAGE_NAME,
version='0.3.1',
... | apache-2.0 | Python |
469c9f598ace925543b76600b9ad3b7587d4ebb8 | add dateutil to setup.py | oscarbranson/latools,oscarbranson/latools | setup.py | setup.py | from setuptools import setup, find_packages
import latools
with open("README.md", "r") as fh:
long_description = fh.read()
setup(name='latools',
version=latools.__version__,
description='Tools for LA-ICPMS data analysis.',
long_description=long_description,
long_description_content_type="... | from setuptools import setup, find_packages
import latools
with open("README.md", "r") as fh:
long_description = fh.read()
setup(name='latools',
version=latools.__version__,
description='Tools for LA-ICPMS data analysis.',
long_description=long_description,
long_description_content_type="... | mit | Python |
e6813898fcf807df66e80d71b1dd7bad33ee8533 | Update classifiers | visio2img/sphinxcontrib-visio | setup.py | setup.py | from setuptools import setup
classifiers = [
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Environment :: Win32 (MS Windows)',
'Framework :: Sphinx :: Extension',
'License :: OSI Approved :: Apache Software License',
'Operating System :: Microsoft :: Windows',
'P... | from setuptools import setup
classifiers = [
'Development Status :: 4 - Beta',
'Environment :: Console',
'Environment :: Win32 (MS Windows)',
'License :: OSI Approved :: Apache Software License',
'Operating System :: Microsoft :: Windows',
'Programming Language :: Python',
'Programming Lang... | apache-2.0 | Python |
21f180b5183f9e286a423a6ad1fa22ba9d562fdd | Bump the 0.02 version | yassineAlouini/kaggle-tools,yassineAlouini/kaggle-tools | setup.py | setup.py | from setuptools import find_packages, setup
NAME = 'kaggle_tools'
VERSION = '0.0.2'
AUTHOR = 'Yassine Alouini'
DESCRIPTION = """This is a suite of tools to help you participate in various
Kaggle competitions"""
EMAIL = "yassinealouini@outlook.com"
URL = ""
setup(
name=NAME,
version=VERSION,
packages=find_... | from setuptools import find_packages, setup
NAME = 'kaggle_tools'
VERSION = '0.0.1'
AUTHOR = 'Yassine Alouini'
DESCRIPTION = """This is a suite of tools to help you participate in various
Kaggle competitions"""
EMAIL = "yassinealouini@outlook.com"
URL = ""
setup(
name=NAME,
version=VERSION,
packages=find_... | mit | Python |
b776cfac96b3cc693b7e063450dd7d9517860240 | add 3.11 string to classifiers | sckott/habanero | setup.py | setup.py | import codecs
import re
from setuptools import setup
from setuptools import find_packages
version = ""
with open("habanero/__init__.py", "r") as fd:
version = re.search(
r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', fd.read(), re.MULTILINE
).group(1)
if not version:
raise RuntimeError("Cannot find ve... | import codecs
import re
from setuptools import setup
from setuptools import find_packages
version = ""
with open("habanero/__init__.py", "r") as fd:
version = re.search(
r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', fd.read(), re.MULTILINE
).group(1)
if not version:
raise RuntimeError("Cannot find ve... | mit | Python |
7c370cd98be659b745e5a1d4539d5a5228d53be6 | Prepare for 3.9.0 | cqse/teamscale-client-python | setup.py | setup.py | from setuptools import setup
setup(
name="teamscale-client",
version="3.9.0",
author="Thomas Kinnen - CQSE GmbH",
author_email="kinnen@cqse.eu",
description=("A simple service client to interact with Teamscale's REST API."),
license="Apache",
keywords="rest api teamscale",
url="https://... | from setuptools import setup
setup(
name="teamscale-client",
version="3.8.0",
author="Thomas Kinnen - CQSE GmbH",
author_email="kinnen@cqse.eu",
description=("A simple service client to interact with Teamscale's REST API."),
license="Apache",
keywords="rest api teamscale",
url="https://... | apache-2.0 | Python |
f7204cf539e2c06a9a37508d9ad4004219d149d2 | Bump version to 0.6 | jarus/flask-mongokit,VishvajitP/flask-mongokit,jarus/flask-mongokit,VishvajitP/flask-mongokit | setup.py | setup.py | """
Flask-MongoKit
--------------
Flask-MongoKit simplifies to use MongoKit, a powerful MongoDB ORM in Flask
applications.
Links
`````
* `documentation <http://packages.python.org/Flask-MongoKit>`_
* `development version <http://github.com/jarus/flask-mongokit/zipball/master#egg=Flask-MongoKit-dev>`_
* `MongoK... | """
Flask-MongoKit
--------------
Flask-MongoKit simplifies to use MongoKit, a powerful MongoDB ORM in Flask
applications.
Links
`````
* `documentation <http://packages.python.org/Flask-MongoKit>`_
* `development version <http://github.com/jarus/flask-mongokit/zipball/master#egg=Flask-MongoKit-dev>`_
* `MongoK... | bsd-3-clause | Python |
cba77b8954b08eba7490dab5b1c975855db9aa8b | Update to 0.0.14 for release | GoogleCloudPlatform/python-repo-tools | setup.py | setup.py | # Copyright 2016 Google 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
#
# Unless required by applicable law or agreed to in writing, ... | # Copyright 2016 Google 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
#
# Unless required by applicable law or agreed to in writing, ... | apache-2.0 | Python |
5214675c085f613b804fb984bd8c72f38bee8202 | Set status to Production/Stable | retext-project/pymarkups,mitya57/pymarkups | setup.py | setup.py | #!/usr/bin/env python3
import sys
try:
from setuptools import setup, Command
except ImportError:
from distutils.core import setup, Command
from markups import __version__ as version
from os.path import dirname, join
with open(join(dirname(__file__), 'README.rst')) as readme_file:
long_description = '\n' + readme_f... | #!/usr/bin/env python3
import sys
try:
from setuptools import setup, Command
except ImportError:
from distutils.core import setup, Command
from markups import __version__ as version
from os.path import dirname, join
with open(join(dirname(__file__), 'README.rst')) as readme_file:
long_description = '\n' + readme_f... | bsd-3-clause | Python |
d46413dfceda9069ab609bb79d117ca7dde00d3c | Update setup.py | Radiomics/pyradiomics,Radiomics/pyradiomics,Radiomics/pyradiomics,Radiomics/pyradiomics | setup.py | setup.py | from setuptools import setup
setup(name='pyradiomics',
version='0.0.1dev',
packages=['radiomics'],
install_requires=['numpy==1.11.0',
'SimpleITK==0.9.1',
'nose-parameterized==0.5.0',
'tqdm==4.7.1',
'PyWave... | from setuptools import setup
setup(name='pyradiomics',
version='0.0.1dev',
packages=['radiomics'],
install_requires=['numpy==1.11.0',
'SimpleITK==0.9.1',
'nose-parameterized==0.5.0',
'tqdm==4.7.1',
'PyWave... | bsd-3-clause | Python |
2d762eff9cc6b0c07fc9ec4664a196915c8d645f | Bump version number | uglycitrus/py-authorize,vcatalano/py-authorize,aryeh/py-authorize | setup.py | setup.py | from setuptools import setup
setup(
name='Py-Authorize',
version='1.2.2.2',
author='Vincent Catalano',
author_email='vincent@vincentcatlano.com',
url='https://github.com/vcatalano/py-authorize',
download_url='',
description="A full-featured Python API for Authorize.net's AIM, CIM, ARB and ... | from setuptools import setup
setup(
name='Py-Authorize',
version='1.2.2.1',
author='Vincent Catalano',
author_email='vincent@vincentcatlano.com',
url='https://github.com/vcatalano/py-authorize',
download_url='',
description="A full-featured Python API for Authorize.net's AIM, CIM, ARB and ... | mit | Python |
cb7b5c5618085e0d1aa7d5f79f66a0302a2daaac | Fix E-Mail address | joerns/prettyplot | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Functions and tools to style matplotlib plots.
"""
# Always prefer setuptools over distutils
from setuptools import setup
# To use a consistent encoding
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
# Get the long descriptio... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Functions and tools to style matplotlib plots.
"""
# Always prefer setuptools over distutils
from setuptools import setup
# To use a consistent encoding
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
# Get the long descriptio... | mit | Python |
f91c4d2c54123eff57af527f2c0a570b522ec257 | Fix typo in setup.py homepage URL | t4ngo/sphinxcontrib-multilatex,t4ngo/sphinxcontrib-multilatex | setup.py | setup.py |
from setuptools import setup, find_packages
from pip.req import parse_requirements
from pip.download import PipSession
import os
# --------------------------------------------------------------------------
# Setup package.
root_dir = os.path.dirname(__file__)
def read(*names):
path = os.path.joi... |
from setuptools import setup, find_packages
from pip.req import parse_requirements
from pip.download import PipSession
import os
# --------------------------------------------------------------------------
# Setup package.
root_dir = os.path.dirname(__file__)
def read(*names):
path = os.path.joi... | apache-2.0 | Python |
acfd9f65717dcce61e29bbd411db417521880373 | Tweak setup.py. | jonathanj/renamer,jonathanj/renamer | setup.py | setup.py | from epsilon.setuphelper import autosetup
import renamer
distobj = autosetup(
name="Renamer",
version=renamer.version.short(),
maintainer="Jonathan Jacobs",
url="http://launchpad.net/renamer",
license="MIT",
platforms=["any"],
description="A mass file renamer with plugin support",
clas... | from epsilon.setuphelper import autosetup
import renamer
distobj = autosetup(
name="Renamer",
version=renamer.version.short(),
maintainer="Jonathan Jacobs",
url="http://launchpad.net/renamer",
license="MIT",
platforms=["any"],
description="A scriptable and extensible mass file renamer",
... | mit | Python |
0c2398be5bf727eb8d560f58e7d9fa27c9af8373 | update dev version to 019a1 | OpenMined/PySyft,OpenMined/PySyft,OpenMined/PySyft,OpenMined/PySyft | setup.py | setup.py | import os
from setuptools import find_packages
from setuptools import setup
# Utility function to read the README file.
# Used for the long_description. It's nice, because now 1) we have a top level
# README file and 2) it's easier to type in the README file than to put a raw
# string in below ...
def read(fname):
... | import os
from setuptools import find_packages
from setuptools import setup
# Utility function to read the README file.
# Used for the long_description. It's nice, because now 1) we have a top level
# README file and 2) it's easier to type in the README file than to put a raw
# string in below ...
def read(fname):
... | apache-2.0 | Python |
96df060e10e06697c4072881f962f1998060b6ac | bump version [ci skip] | mocketize/python-mocket,mindflayer/python-mocket | setup.py | setup.py | from setuptools import setup, find_packages, os
# Hack to prevent stupid "TypeError: 'NoneType' object is not callable" error
# in multiprocessing/util.py _exit_function when running `python
# setup.py test` (see
# http://www.eby-sarna.com/pipermail/peak/2010-May/003357.html)
for m in ('multiprocessing', 'billiard'):
... | from setuptools import setup, find_packages, os
# Hack to prevent stupid "TypeError: 'NoneType' object is not callable" error
# in multiprocessing/util.py _exit_function when running `python
# setup.py test` (see
# http://www.eby-sarna.com/pipermail/peak/2010-May/003357.html)
for m in ('multiprocessing', 'billiard'):
... | bsd-3-clause | Python |
f9643bbe0c2c1f71f31a7771c9965bbf7dba37cc | Install colorama by default on win32 | nickstenning/honcho,nickstenning/honcho,myyk/honcho,xarisd/honcho,janusnic/honcho | setup.py | setup.py | import os
import sys
from setuptools import setup, find_packages
from honcho import __version__
HERE = os.path.dirname(__file__)
try:
long_description = open(os.path.join(HERE, 'README.rst')).read()
except:
long_description = None
setup(
name='honcho',
version=__version__,
packages=find_packages(... | import os
import sys
from setuptools import setup, find_packages
from honcho import __version__
HERE = os.path.dirname(__file__)
try:
long_description = open(os.path.join(HERE, 'README.rst')).read()
except:
long_description = None
setup(
name='honcho',
version=__version__,
packages=find_packages(... | mit | Python |
850f8d9789d8f76d9934e145e2f6b20c2b6354c2 | bump eduid-am dep to 0.4.9-dev | SUNET/eduid-dashboard-amp | setup.py | setup.py | import sys
import os
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.rst')).read()
CHANGES = open(os.path.join(here, 'CHANGES.rst')).read()
version = '0.2.5'
requires = [
'pymongo==2.6.3',
'eduid_am==0.4.9-dev',
]
testi... | import sys
import os
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.rst')).read()
CHANGES = open(os.path.join(here, 'CHANGES.rst')).read()
version = '0.2.5'
requires = [
'pymongo==2.6.3',
'eduid_am==0.4.8-dev',
]
testi... | bsd-3-clause | Python |
7d1768d2c97a4bdbdb9338bf95683b63803dc0de | Bump pytest version to see if it fixes test failures | django/asgiref | setup.py | setup.py | import os
from setuptools import find_packages, setup
from asgiref import __version__
# We use the README as the long_description
readme_path = os.path.join(os.path.dirname(__file__), "README.rst")
setup(
name='asgiref',
version=__version__,
url='http://github.com/django/asgiref/',
author='Django So... | import os
from setuptools import find_packages, setup
from asgiref import __version__
# We use the README as the long_description
readme_path = os.path.join(os.path.dirname(__file__), "README.rst")
setup(
name='asgiref',
version=__version__,
url='http://github.com/django/asgiref/',
author='Django So... | bsd-3-clause | Python |
5d862fad4f6c4ab71cf3a01540e920bbd265ab6d | bump version to 0.1.1 | WolfgangSteiner/midicontrol | setup.py | setup.py | from distutils.core import setup
setup(
name = 'midicontrol',
packages = ['midicontrol'], # this must be the same as the name above
version = '0.1.1',
description = '',
author = 'Wolfgang Steiner',
author_email = 'wolfgang.steiner@gmail.com',
url = 'https://github.com/wolfgangsteiner/midicontrol', # use t... | from distutils.core import setup
setup(
name = 'midicontrol',
packages = ['midicontrol'], # this must be the same as the name above
version = '0.1',
description = '',
author = 'Wolfgang Steiner',
author_email = 'wolfgang.steiner@gmail.com',
url = 'https://github.com/wolfgangsteiner/midicontrol', # use the... | mit | Python |
843d625d94e317ba79896beefbdcd2d13d7ee552 | Bump to dev version | texas/tx_people,texas/tx_people | setup.py | setup.py | from distutils.core import setup
import os
# Stolen from django-registration
# Compile the list of packages available, because distutils doesn't have
# an easy way to do this.
packages, data_files = [], []
root_dir = os.path.dirname(__file__)
if root_dir:
os.chdir(root_dir)
for dirpath, dirnames, filenames in os.... | from distutils.core import setup
import os
# Stolen from django-registration
# Compile the list of packages available, because distutils doesn't have
# an easy way to do this.
packages, data_files = [], []
root_dir = os.path.dirname(__file__)
if root_dir:
os.chdir(root_dir)
for dirpath, dirnames, filenames in os.... | apache-2.0 | Python |
7ee422728704a22585763c11e873513930db6a84 | Rename project to avoid conflict | elliterate/capybara.py,elliterate/capybara.py,elliterate/capybara.py | setup.py | setup.py | import os
from setuptools import setup, find_packages
import sys
tests_require = ["flask", "lxml", "pytest >= 3", "selenium < 3", "werkzeug"]
if sys.version_info < (3, 3):
tests_require.append("mock")
def read(filename):
"""
Returns the contents of the given package file.
Args:
filename (st... | import os
from setuptools import setup, find_packages
import sys
tests_require = ["flask", "lxml", "pytest >= 3", "selenium < 3", "werkzeug"]
if sys.version_info < (3, 3):
tests_require.append("mock")
def read(filename):
"""
Returns the contents of the given package file.
Args:
filename (st... | mit | Python |
5c748a3ba8d28176a5032ba4cd50c81000d2cae8 | Fix syntax error in setup.py. | jimmycuadra/pork,jimmycuadra/pork | setup.py | setup.py | from setuptools import setup
import pork
setup(
name='pork',
version=pork.__version__,
description='Text snippets on the command line.',
long_description=pork.__doc__,
author='Jimmy Cuadra',
author_email='jimmy@jimmycuadra.com',
url='https://github.com/jimmycuadra/pork',
license='MIT',... | from setuptools import setup
import pork
setup(
name='pork',
version=pork.__version__,
description='Text snippets on the command line.',
long_description=pork.__doc__,
author='Jimmy Cuadra',
author_email='jimmy@jimmycuadra.com',
url='https://github.com/jimmycuadra/pork',
license='MIT',... | mit | Python |
0bd9c01d5d52ad12e2ccc8e2bddbd43395f0df84 | Fix setup. | Oxygem/pytask,Oxygem/pytask | setup.py | setup.py | # pytask
# File: setup.py
# Desc: needed
from setuptools import setup
setup(
version='1.0.2',
name='pytask',
description='A simple Python based task runner',
author='Nick Barrett',
author_email='nick@oxygem.com',
url='http://github.com/Oxygem/pytask',
packages=('pytask',),
package_dir... | #!/usr/bin/env python
# File: setup.py
# Desc: needed
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(
version='1.0.2',
name='pytask',
description='A simple Python based task runner',
author='Nick Barrett',
author_email='nick@oxygem.com',
... | mit | Python |
7bd2c57aef26aa69a710c8708e2abddf78fb68be | Bump to popquotes 1.3 | jawilson/pmxbot,jawilson/pmxbot | setup.py | setup.py | # -*- coding: utf-8 -*-
# vim:ts=4:sw=4:noexpandtab
# c-basic-indent: 4; tab-width: 4; indent-tabs-mode: true;
import sys
import setuptools
py26reqs = ['importlib'] if sys.version_info < (2, 7) else []
setup_params = dict(
name="pmxbot",
use_hg_version=True,
packages=setuptools.find_packages(),
include_package_d... | # -*- coding: utf-8 -*-
# vim:ts=4:sw=4:noexpandtab
# c-basic-indent: 4; tab-width: 4; indent-tabs-mode: true;
import sys
import setuptools
py26reqs = ['importlib'] if sys.version_info < (2, 7) else []
setup_params = dict(
name="pmxbot",
use_hg_version=True,
packages=setuptools.find_packages(),
include_package_d... | bsd-3-clause | Python |
ce594184fb4cc14ebbb72be8b8c7f89ef4c6b248 | Bump version | Hipo/drf-extra-fields,Hipo/drf-extra-fields | 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()
with open(os.path.join(os.path.dirname(__file__), 'requirements.txt')) as requirements_txt:
requirements = requirements_txt.read().strip().splitlines()
# allow setup.py to ... | import os
from setuptools import setup
with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme:
README = readme.read()
with open(os.path.join(os.path.dirname(__file__), 'requirements.txt')) as requirements_txt:
requirements = requirements_txt.read().strip().splitlines()
# allow setup.py to ... | apache-2.0 | Python |
cd56fb2c1a0f4b6dd40ce03545e57c6fd2e1c519 | Modify the author email address | yuzie007/upho,yuzie007/ph_unfolder | setup.py | setup.py | #!/usr/bin/env python
from distutils.core import setup
packages = [
'upho',
'upho.phonon',
'upho.harmonic',
'upho.analysis',
'upho.structure',
'upho.irreps',
'upho.qpoints',
'group',
]
scripts = [
'scripts/upho_weights',
'scripts/upho_sf',
'scripts/upho_qpoints',
'script... | #!/usr/bin/env python
from distutils.core import setup
packages = [
'upho',
'upho.phonon',
'upho.harmonic',
'upho.analysis',
'upho.structure',
'upho.irreps',
'upho.qpoints',
'group',
]
scripts = [
'scripts/upho_weights',
'scripts/upho_sf',
'scripts/upho_qpoints',
'script... | mit | Python |
3b68fac615690af21b335ec627b08f8011f6d88b | fix installer | WhackoJacko/Jetee | setup.py | setup.py | import os
import errno
import os
import subprocess
from setuptools.command.install import install
from setuptools.command.develop import develop
from setuptools import setup
def galaxy_packages_wrapper(cls):
def run(self):
try:
import ansible
except ImportError:
raise Exce... | import os
import errno
import subprocess
from setuptools.command.install import install
from setuptools.command.develop import develop
from setuptools import setup
def galaxy_packages_wrapper(cls):
def run(self):
# because ansible is not installable with easy_install,
# so it cannot be installed ... | bsd-2-clause | Python |
d1ba2bb8986e262f42198c32ec656952f12f1c92 | Bump release version in setup.py | secure-systems-lab/securesystemslib,secure-systems-lab/securesystemslib | setup.py | setup.py | #! /usr/bin/env python
"""
<Program Name>
setup.py
<Author>
Vladimir Diaz <vladimir.v.diaz@gmail.com>
<Started>
December 7, 2016.
<Copyright>
See LICENSE for licensing information.
<Purpose>
BUILD SOURCE DISTRIBUTION
The following shell command generates a TUF source archive that can be
distributed ... | #! /usr/bin/env python
"""
<Program Name>
setup.py
<Author>
Vladimir Diaz <vladimir.v.diaz@gmail.com>
<Started>
December 7, 2016.
<Copyright>
See LICENSE for licensing information.
<Purpose>
BUILD SOURCE DISTRIBUTION
The following shell command generates a TUF source archive that can be
distributed ... | mit | Python |
04de9b6a529cb54f5a7e74242d5934942b0051c8 | Bump version | crosscompute/crosscompute,crosscompute/crosscompute,crosscompute/crosscompute,crosscompute/crosscompute | setup.py | setup.py | import sys
from os.path import abspath, dirname, join
from setuptools import find_packages, setup
ENTRY_POINTS = """
[console_scripts]
crosscompute = crosscompute.scripts:launch
[crosscompute]
setup = crosscompute.scripts.setup:SetupScript
run = crosscompute.scripts.run:RunScript
serve = crosscompute.scripts.serve:Se... | import sys
from os.path import abspath, dirname, join
from setuptools import find_packages, setup
ENTRY_POINTS = """
[console_scripts]
crosscompute = crosscompute.scripts:launch
[crosscompute]
setup = crosscompute.scripts.setup:SetupScript
run = crosscompute.scripts.run:RunScript
serve = crosscompute.scripts.serve:Se... | mit | Python |
80a2d79ae2243e2e7cadb57e7dcd95d47de09f02 | bump version | hhatto/pyrapidjson,hhatto/pyrapidjson | setup.py | setup.py | from distutils.core import setup, Extension
setup(
name='pyrapidjson',
version='0.4.1',
description='Python Interface for rapidjson(JSON parser and generator).',
long_description=open('README.rst').read(),
license='Expat License',
author='Hideo Hattori',
author_email='hhatto.jp@gmail.com',... | from distutils.core import setup, Extension
setup(
name='pyrapidjson',
version='0.4',
description='Python Interface for rapidjson(JSON parser and generator).',
long_description=open('README.rst').read(),
license='Expat License',
author='Hideo Hattori',
author_email='hhatto.jp@gmail.com',
... | mit | Python |
d7bc4cacddc4502f553f8247dda09132c0161cea | Add sockshandler to setup.py to include in PyPI | beermix/PySocks,spumer/PySocksChain,gumblex/PySocks,beermix/PySocks,lvh/PySocks,lvh/PySocks,dahebolangkuan/PySocks,spumer/PySocksChain,gumblex/PySocks,dahebolangkuan/PySocks | setup.py | setup.py | #!/usr/bin/env python
from distutils.core import setup
VERSION = "1.5.2"
setup(
name = "PySocks",
version = VERSION,
description = "A Python SOCKS client module",
url = "https://github.com/Anorov/PySocks",
license = "BSD",
author_email = "anorov.vorona@gmail.com",
keywords = ["socks", "pro... | #!/usr/bin/env python
from distutils.core import setup
VERSION = "1.5.2"
setup(
name = "PySocks",
version = VERSION,
description = "A Python SOCKS client module",
url = "https://github.com/Anorov/PySocks",
license = "BSD",
author_email = "anorov.vorona@gmail.com",
keywords = ["socks", "pro... | bsd-3-clause | Python |
b65c0d1710fad6f0972974b937b7e2779a987bab | Add click 6.6 to setup.py | ysim/songtext,ysim/songtext | setup.py | setup.py | #!/usr/bin/env python
import os
import sys
from setuptools import setup, find_packages
os.chdir(os.path.dirname(sys.argv[0]) or ".")
import libsongtext
version = '%s.%s.%s' % libsongtext.__version__
try:
long_description = open('README.rst', 'U').read()
except IOError:
long_description = 'See https://githu... | #!/usr/bin/env python
import os
import sys
from setuptools import setup, find_packages
os.chdir(os.path.dirname(sys.argv[0]) or ".")
import libsongtext
version = '%s.%s.%s' % libsongtext.__version__
try:
long_description = open('README.rst', 'U').read()
except IOError:
long_description = 'See https://githu... | bsd-2-clause | Python |
c04131728b9cc32a62857d90069dc40c6d4056d4 | remove argparse dep | analyst-collective/dbt,analyst-collective/dbt,fishtown-analytics/dbt,fishtown-analytics/dbt,nave91/dbt,nave91/dbt,fishtown-analytics/dbt | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup, find_packages
import os.path
package_name = "dbt"
package_version = "0.1.0-SNAPSHOT"
setup(
name=package_name,
version=package_version,
packages=find_packages(),
scripts=[
'scripts/dbt',
],
install_requires=[
'Jinja2>=2.8',
'PyYAML>=3.11',
... | #!/usr/bin/env python
from setuptools import setup, find_packages
import os.path
package_name = "dbt"
package_version = "0.1.0-SNAPSHOT"
setup(
name=package_name,
version=package_version,
packages=find_packages(),
scripts=[
'scripts/dbt',
],
install_requires=[
'argparse>=1.2.1',
'Jinja2>=2.8',... | apache-2.0 | Python |
5bfce6b1d3da1e7a82882b7a61a4527e5aee03b0 | upgrade version | hubo1016/aiogrpc,hubo1016/aiogrpc | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup
version = "1.3"
try:
import pypandoc
long_description = pypandoc.convert('README.md', 'rst')
except (IOError, ImportError):
long_description = ""
setup(
name="aiogrpc",
version=version,
author="Hu Bo",
author_email="hubo1016@126.com",
... | #!/usr/bin/env python
from setuptools import setup
version = "1.2"
try:
import pypandoc
long_description = pypandoc.convert('README.md', 'rst')
except (IOError, ImportError):
long_description = ""
setup(
name="aiogrpc",
version=version,
author="Hu Bo",
author_email="hubo1016@126.com",
... | apache-2.0 | Python |
f326a3995c0d836e602c3382f927370031d9d239 | Update homepage in package metadata | googleapis/google-auth-library-python-oauthlib,googleapis/google-auth-library-python-oauthlib | setup.py | setup.py | # Copyright 2014 Google 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
#
# Unless required by applicable law or agreed to in writing,... | # Copyright 2014 Google 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
#
# Unless required by applicable law or agreed to in writing,... | apache-2.0 | Python |
88d78723a575326cb2dca8dfba2159a6852ddbde | change REPL name to pyota-cli | iotaledger/iota.lib.py | setup.py | setup.py | #!/usr/bin/env python
# coding=utf-8
# :bc: Not importing unicode_literals because in Python 2 distutils,
# some values are expected to be byte strings.
from __future__ import absolute_import, division, print_function
from codecs import StreamReader, open
import setuptools
from setuptools import find_packages, setup
... | #!/usr/bin/env python
# coding=utf-8
# :bc: Not importing unicode_literals because in Python 2 distutils,
# some values are expected to be byte strings.
from __future__ import absolute_import, division, print_function
from codecs import StreamReader, open
import setuptools
from setuptools import find_packages, setup
... | mit | Python |
db7bc89d03089ad3107a19220a94ee3fe3d230c3 | Change the version of the package. | bfaludi/daprot | setup.py | setup.py |
from setuptools import setup, find_packages
import sys, os
version = '1.1.2'
setup(
name = 'daprot',
version = version,
description = "daprot is a data prototyper and mapper library.",
packages = find_packages( exclude = [ 'ez_setup'] ),
include_package_data = True,
zip_safe = False,
entr... |
from setuptools import setup, find_packages
import sys, os
version = '1.1.1'
setup(
name = 'daprot',
version = version,
description = "daprot is a data prototyper and mapper library.",
packages = find_packages( exclude = [ 'ez_setup'] ),
include_package_data = True,
zip_safe = False,
entr... | agpl-3.0 | Python |
bf04ce79dd70ff5d5c28115b2cdb175a5c8f8e7d | rename psycopg package | better/jsonschema2db | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup
long_description = '''
For more information, see
`the package documentation <https://better.engineering/jsonschema2db>`_
or
`the Github project page <https://github.com/better/jsonschema2db>`_.
'''
setup(name='JSONSchema2DB',
version='1.0.1',
description... | #!/usr/bin/env python
from setuptools import setup
long_description = '''
For more information, see
`the package documentation <https://better.engineering/jsonschema2db>`_
or
`the Github project page <https://github.com/better/jsonschema2db>`_.
'''
setup(name='JSONSchema2DB',
version='1.0.1',
description... | mit | Python |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.