commit stringlengths 40 40 | old_file stringlengths 4 150 | new_file stringlengths 4 150 | old_contents stringlengths 0 3.26k | new_contents stringlengths 1 4.43k | subject stringlengths 15 501 | message stringlengths 15 4.06k | lang stringclasses 4
values | license stringclasses 13
values | repos stringlengths 5 91.5k | diff stringlengths 0 4.35k |
|---|---|---|---|---|---|---|---|---|---|---|
351815d8da1dc1b2227e8fd832e690f8aee47747 | setup.py | setup.py | import codecs
from setuptools import setup
lines = codecs.open('README', 'r', 'utf-8').readlines()[3:]
lines.extend(codecs.open('CHANGES', 'r', 'utf-8').readlines()[1:])
desc = ''.join(lines).lstrip()
import translitcodec
version = translitcodec.__version__
setup(name='translitcodec',
version=version,
d... | import codecs
from setuptools import setup
lines = codecs.open('README', 'r', 'utf-8').readlines()[3:]
lines.append('\n')
lines.extend(codecs.open('CHANGES', 'r', 'utf-8').readlines()[1:])
desc = ''.join(lines).lstrip()
import translitcodec
version = translitcodec.__version__
setup(name='translitcodec',
versi... | Add blank line between README and CHANGES in long_description | Add blank line between README and CHANGES in long_description
| Python | mit | claudep/translitcodec,claudep/translitcodec | ---
+++
@@ -3,6 +3,7 @@
lines = codecs.open('README', 'r', 'utf-8').readlines()[3:]
+lines.append('\n')
lines.extend(codecs.open('CHANGES', 'r', 'utf-8').readlines()[1:])
desc = ''.join(lines).lstrip()
@@ -13,6 +14,7 @@
version=version,
description='Unicode to 8-bit charset transliteration code... |
748f6f932be1feda15fc27eed7cbe1cff934fb35 | setup.py | setup.py | #!/usr/bin/env python3.6
# Copyright (C) 2018 Andrew Hamilton. All rights reserved.
# Licensed under the Artistic License 2.0.
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(name="vigil",
version="17.06",
description=("Vigil maintains an up-to-date ... | #!/usr/bin/env python3.6
# Copyright (C) 2018 Andrew Hamilton. All rights reserved.
# Licensed under the Artistic License 2.0.
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(name="vigil",
version="17.06",
description=("Vigil maintains an up-to-date ... | Fix vigil only working in dev mode. | Fix vigil only working in dev mode.
- Be careful in future with pip dev mode. Unfortunately its
possible for code to work in dev mode but not when deployed.
For example in this case, when files aren't listed in setup.py
package_data.
| Python | artistic-2.0 | ahamilton/vigil,ahamilton/vigil,ahamilton/vigil,ahamilton/vigil,ahamilton/vigil,ahamilton/vigil,ahamilton/vigil,ahamilton/vigil,ahamilton/vigil | ---
+++
@@ -18,7 +18,7 @@
author="Andrew Hamilton",
license="Artistic 2.0",
packages=["vigil", "vigil.urwid"],
- package_data={"vigil": ["LS_COLORS.sh"]},
+ package_data={"vigil": ["LS_COLORS.sh", "tools.yaml"]},
entry_points={"console_scripts":
["vigil=vigil... |
17ed284dd2c084d95fdbae221cbf9e701827f16d | setup.py | setup.py | # -*- coding: UTF-8 -*-
from distutils.core import setup
from setuptools import find_packages
from dodgy import __pkginfo__
_packages = find_packages(exclude=["*.tests", "*.tests.*", "tests.*", "tests"])
_short_description = "Dodgy: Searches for dodgy looking lines in Python code"
_install_requires = []
_classifi... | # -*- coding: UTF-8 -*-
from distutils.core import setup
from setuptools import find_packages
from dodgy import __pkginfo__
_packages = find_packages(exclude=["*.tests", "*.tests.*", "tests.*", "tests"])
_short_description = "Searches for dodgy looking lines in Python code"
_install_requires = []
_classifiers = (... | Remove dodgy mention from _short_description | Remove dodgy mention from _short_description
The package name shouldn't be in the description. | Python | mit | landscapeio/dodgy | ---
+++
@@ -7,7 +7,7 @@
_packages = find_packages(exclude=["*.tests", "*.tests.*", "tests.*", "tests"])
-_short_description = "Dodgy: Searches for dodgy looking lines in Python code"
+_short_description = "Searches for dodgy looking lines in Python code"
_install_requires = []
|
bec0984d0fe1cd6820f9e10dbc97b5c872c41a87 | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name="txyam",
version="0.4+weasyl.1",
description="Yet Another Memcached (YAM) client for Twisted.",
author="Brian Muller",
author_email="bamuller@gmail.com",
license="MIT",
url="http://github.com/bmuller/txyam",
p... | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name="txyam2",
version="0.5.1+weasyl.1",
description="Yet Another Memcached (YAM) client for Twisted.",
author="Brian Muller",
author_email="bamuller@gmail.com",
license="MIT",
url="http://github.com/bmuller/txyam",
... | Update local version identifier. Name txyam2 per dev discussion. | Update local version identifier. Name txyam2 per dev discussion. | Python | mit | Weasyl/txyam2 | ---
+++
@@ -2,8 +2,8 @@
from setuptools import setup, find_packages
setup(
- name="txyam",
- version="0.4+weasyl.1",
+ name="txyam2",
+ version="0.5.1+weasyl.1",
description="Yet Another Memcached (YAM) client for Twisted.",
author="Brian Muller",
author_email="bamuller@gmail.com", |
51356be94e251b75b8262170ac2f8c2c3a2c5ba6 | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name = 'spotter',
version = '1.7',
url = "http://github.com/borntyping/spotter",
author = "Sam Clements",
author_email = "sam@borntyping.co.uk",
description = "A comm... | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name = 'spotter',
version = '1.7',
url = "http://github.com/borntyping/spotter",
author = "Sam Clements",
author_email = "sam@borntyping.co.uk",
description = "A comm... | Allow newer versions of pyinotify | Allow newer versions of pyinotify | Python | mit | borntyping/spotter | ---
+++
@@ -38,6 +38,6 @@
},
install_requires = [
- 'pyinotify==0.9.4',
+ 'pyinotify>=0.9.4',
],
) |
54af02729b1bbac17e5c65337635a46493bd2177 | setup.py | setup.py | from setuptools import find_packages, setup
setup(
name='eDisGo',
version='0.0.1',
packages=find_packages(),
url='https://github.com/openego/eDisGo',
license='GNU Affero General Public License v3.0',
author='gplssm, nesnoj',
author_email='',
description='A python package for distributio... | from setuptools import find_packages, setup
from setuptools.command.install import install
import os
BASEPATH='.eDisGo'
class InstallSetup(install):
def run(self):
self.create_edisgo_path()
install.run(self)
@staticmethod
def create_edisgo_path():
edisgo_path = os.path.join(os.pa... | Create path ~/.eDisGo on install | Create path ~/.eDisGo on install
For all of those already installed eDisGo run
pip3 install -U .
again.
| Python | agpl-3.0 | openego/eDisGo,openego/eDisGo | ---
+++
@@ -1,4 +1,25 @@
from setuptools import find_packages, setup
+from setuptools.command.install import install
+import os
+
+BASEPATH='.eDisGo'
+
+
+class InstallSetup(install):
+ def run(self):
+ self.create_edisgo_path()
+ install.run(self)
+
+ @staticmethod
+ def create_edisgo_path():... |
9674f2d1f459db6e231d81fa979db07d4805ca29 | shuup/admin/modules/shops/views/list.py | shuup/admin/modules/shops/views/list.py | # -*- coding: utf-8 -*-
# This file is part of Shuup.
#
# Copyright (c) 2012-2016, Shoop Ltd. All rights reserved.
#
# This source code is licensed under the AGPLv3 license found in the
# LICENSE file in the root directory of this source tree.
from __future__ import unicode_literals
from django.conf import settings
fr... | # -*- coding: utf-8 -*-
# This file is part of Shuup.
#
# Copyright (c) 2012-2016, Shoop Ltd. All rights reserved.
#
# This source code is licensed under the AGPLv3 license found in the
# LICENSE file in the root directory of this source tree.
from __future__ import unicode_literals
from django.conf import settings
fr... | Modify shops for dynamic columns | Modify shops for dynamic columns
Refs SH-64
| Python | agpl-3.0 | shoopio/shoop,suutari/shoop,suutari-ai/shoop,shawnadelic/shuup,suutari/shoop,shawnadelic/shuup,shoopio/shoop,suutari/shoop,suutari-ai/shoop,shawnadelic/shuup,shoopio/shoop,suutari-ai/shoop | ---
+++
@@ -18,7 +18,7 @@
class ShopListView(PicotableListView):
model = Shop
- columns = [
+ default_columns = [
Column("name", _(u"Name"), sort_field="translations__name", display="name", filter_config=TextFilter(
filter_field="translations__name",
placeholder=_("Fil... |
a7b47737be5e0ad674025348ce938a81058c85f6 | viewer/viewer.py | viewer/viewer.py | # Run with `python viewer.py PATH_TO_RECORD_JSON.
import json
import sys
from flask import Flask, jsonify
from flask.templating import render_template
app = Flask(__name__, template_folder='.')
# app.debug = True
# `main` inits these.
# File containing `record` output.
record_path = None
# 0: source, 1: state
reco... | # Run with `python viewer.py PATH_TO_RECORD_JSON.
import json
import sys
from flask import Flask, jsonify
from flask.helpers import send_from_directory
app = Flask(__name__)
# `main` inits these.
# File containing `record` output.
record_path = None
# 0: source, 1: state
record_data = []
@app.route("/")
def hell... | Use send so no templates are evald by python. | Use send so no templates are evald by python.
| Python | mit | mihneadb/python-execution-trace,mihneadb/python-execution-trace,mihneadb/python-execution-trace | ---
+++
@@ -4,11 +4,10 @@
import sys
from flask import Flask, jsonify
-from flask.templating import render_template
+from flask.helpers import send_from_directory
-app = Flask(__name__, template_folder='.')
-# app.debug = True
+app = Flask(__name__)
# `main` inits these.
# File containing `record` output.... |
7b30846c322f7f81566f0b2a454e61ad271eee65 | cegui/src/ScriptingModules/PythonScriptModule/bindings/distutils/PyCEGUI/__init__.py | cegui/src/ScriptingModules/PythonScriptModule/bindings/distutils/PyCEGUI/__init__.py | import os
import os.path
# atrocious and unholy!
def get_my_path():
import fake
return os.path.dirname(str(fake).split()[3][1:])
libpath = os.path.abspath(get_my_path())
#print "libpath =", libpath
os.environ['PATH'] = libpath + ";" + os.environ['PATH']
from PyCEGUI import *
| import os
import os.path
# atrocious and unholy!
def get_my_path():
import fake
return os.path.dirname(os.path.abspath(fake.__file__))
libpath = get_my_path()
#print "libpath =", libpath
os.environ['PATH'] = libpath + ";" + os.environ['PATH']
from PyCEGUI import *
| Use a less pathetic method to retrieve the PyCEGUI dirname | MOD: Use a less pathetic method to retrieve the PyCEGUI dirname
| Python | mit | arkana-fts/cegui,arkana-fts/cegui,cbeck88/cegui-mirror,cbeck88/cegui-mirror,RealityFactory/CEGUI,arkana-fts/cegui,cbeck88/cegui-mirror,RealityFactory/CEGUI,arkana-fts/cegui,RealityFactory/CEGUI,cbeck88/cegui-mirror,RealityFactory/CEGUI,arkana-fts/cegui,RealityFactory/CEGUI,cbeck88/cegui-mirror | ---
+++
@@ -4,9 +4,9 @@
# atrocious and unholy!
def get_my_path():
import fake
- return os.path.dirname(str(fake).split()[3][1:])
+ return os.path.dirname(os.path.abspath(fake.__file__))
-libpath = os.path.abspath(get_my_path())
+libpath = get_my_path()
#print "libpath =", libpath
os.environ['PATH'] ... |
212bf2f97a82ebe28431ff3d8f64affaf45fd55e | pyforge/celeryconfig.py | pyforge/celeryconfig.py | # -*- coding: utf-8 -*-
CELERY_BACKEND = "mongodb"
AMQP_SERVER = "localhost"
AMQP_PORT = 5672
AMQP_VHOST = "celeryvhost"
AMQP_USER = "celeryuser"
AMQP_PASSWORD = "celerypw"
CELERYD_LOG_FILE = "celeryd.log"
CELERYD_PID_FILE = "celeryd.pid"
CELERYD_DAEMON_LOG_LEVEL = "INFO"
CELERY_MONGODB_BACKEND_SETTINGS = {
"hos... | # -*- coding: utf-8 -*-
CELERY_BACKEND = "mongodb"
# We shouldn't need to supply these because we're using Mongo,
# but Celery gives us errors if we don't.
DATABASE_ENGINE = "sqlite3"
DATABASE_NAME = "celery.db"
AMQP_SERVER = "localhost"
AMQP_PORT = 5672
AMQP_VHOST = "celeryvhost"
AMQP_USER = "celeryuser"
AMQP_PASSWO... | Add unused DATABASE_ENGINE, DATABASE_NAME to pacify celeryinit | Add unused DATABASE_ENGINE, DATABASE_NAME to pacify celeryinit
| Python | apache-2.0 | Bitergia/allura,apache/incubator-allura,apache/allura,apache/incubator-allura,lym/allura-git,lym/allura-git,apache/incubator-allura,leotrubach/sourceforge-allura,lym/allura-git,heiths/allura,apache/allura,heiths/allura,apache/allura,heiths/allura,Bitergia/allura,apache/incubator-allura,leotrubach/sourceforge-allura,lym... | ---
+++
@@ -1,5 +1,10 @@
# -*- coding: utf-8 -*-
CELERY_BACKEND = "mongodb"
+
+# We shouldn't need to supply these because we're using Mongo,
+# but Celery gives us errors if we don't.
+DATABASE_ENGINE = "sqlite3"
+DATABASE_NAME = "celery.db"
AMQP_SERVER = "localhost"
AMQP_PORT = 5672 |
d8588d31f23377f27b81e62f5471997271ae0ca2 | tasks.py | tasks.py | import os
import sys
from invoke import task, util
in_ci = os.environ.get("CI", "false") == "true"
if in_ci:
pty = False
else:
pty = util.isatty(sys.stdout) and util.isatty(sys.stderr)
@task
def reformat(c):
c.run("isort mopidy_webhooks tests setup.py tasks.py", pty=pty)
c.run("black mopidy_webhook... | import os
import sys
from invoke import task, util
in_ci = os.environ.get("CI", "false") == "true"
if in_ci:
pty = False
else:
pty = util.isatty(sys.stdout) and util.isatty(sys.stderr)
@task
def reformat(c):
c.run("isort mopidy_webhooks tests setup.py tasks.py", pty=pty)
c.run("black mopidy_webhook... | Remove redundant flag from flake8 task | Remove redundant flag from flake8 task
The max line length is already specified in Flake8's configuration.
| Python | apache-2.0 | paddycarey/mopidy-webhooks | ---
+++
@@ -20,7 +20,7 @@
@task
def lint(c):
c.run(
- "flake8 --show-source --statistics --max-line-length 100 mopidy_webhooks tests",
+ "flake8 --show-source --statistics mopidy_webhooks tests",
pty=pty,
)
c.run("check-manifest", pty=pty) |
d3ef281b8e64ede5076aa58e47016b3252c2c181 | polling_stations/apps/data_importers/management/commands/import_barrow_in_furness.py | polling_stations/apps/data_importers/management/commands/import_barrow_in_furness.py | from data_importers.management.commands import BaseDemocracyCountsCsvImporter
class Command(BaseDemocracyCountsCsvImporter):
council_id = "BAR"
addresses_name = "2021-03-08T19:54:15.110811/Barrow in Furness Democracy Club - Polling Districts (2).csv"
stations_name = "2021-03-08T19:54:15.110811/Barrow in F... | from data_importers.management.commands import BaseDemocracyCountsCsvImporter
class Command(BaseDemocracyCountsCsvImporter):
council_id = "BAR"
addresses_name = "2021-03-08T19:54:15.110811/Barrow in Furness Democracy Club - Polling Districts (2).csv"
stations_name = "2021-03-08T19:54:15.110811/Barrow in F... | Update barrow in furness coords from council | Update barrow in furness coords from council
| Python | bsd-3-clause | DemocracyClub/UK-Polling-Stations,DemocracyClub/UK-Polling-Stations,DemocracyClub/UK-Polling-Stations | ---
+++
@@ -17,12 +17,12 @@
def station_record_to_dict(self, record):
# ASKAM COMMUNITY CENTRE
if record.stationcode in ["LC/1", "LC/2"]:
- record = record._replace(xordinate="321436")
- record = record._replace(yordinate="477564")
+ record = record._replace(xor... |
63f8f15d359fd12827ef41def4faf72a5e998640 | cactus/listener/__init__.py | cactus/listener/__init__.py | import logging
from cactus.listener.polling import PollingListener
logger = logging.getLogger(__name__)
try:
from cactus.listener.mac import FSEventsListener as Listener
except (ImportError, OSError):
logger.warning("Failed to load FSEventsListener", exc_info=True)
Listener = PollingListener
| import logging
from cactus.listener.polling import PollingListener
logger = logging.getLogger(__name__)
try:
from cactus.listener.mac import FSEventsListener as Listener
except (ImportError, OSError):
logger.debug("Failed to load FSEventsListener, falling back to PollingListener", exc_info=True)
Liste... | Make FSEventsListener a debug-only thing | Make FSEventsListener a debug-only thing
| Python | bsd-3-clause | chaudum/Cactus,Knownly/Cactus,Knownly/Cactus,koenbok/Cactus,koenbok/Cactus,chaudum/Cactus,chaudum/Cactus,koenbok/Cactus,eudicots/Cactus,ibarria0/Cactus,Knownly/Cactus,eudicots/Cactus,ibarria0/Cactus,eudicots/Cactus,ibarria0/Cactus | ---
+++
@@ -10,5 +10,5 @@
try:
from cactus.listener.mac import FSEventsListener as Listener
except (ImportError, OSError):
- logger.warning("Failed to load FSEventsListener", exc_info=True)
+ logger.debug("Failed to load FSEventsListener, falling back to PollingListener", exc_info=True)
Listener = P... |
86dca4a7d3c1574af9da85e5a2f10b84d18d28c0 | blueprints/aws_backup_plans/delete.py | blueprints/aws_backup_plans/delete.py | from common.methods import set_progress
from azure.common.credentials import ServicePrincipalCredentials
from botocore.exceptions import ClientError
from resourcehandlers.aws.models import AWSHandler
import boto3
def run(job, **kwargs):
resource = kwargs.pop('resources').first()
backup_plan_id = resource.attr... | from common.methods import set_progress
from azure.common.credentials import ServicePrincipalCredentials
from botocore.exceptions import ClientError
from resourcehandlers.aws.models import AWSHandler
import boto3
def run(job, **kwargs):
resource = kwargs.pop('resources').first()
backup_plan_id = resource.attr... | Revert "[Dev-20546] AwSBackPlan-Blueprint is broken-Teardown is not working" | Revert "[Dev-20546] AwSBackPlan-Blueprint is broken-Teardown is not working"
| Python | apache-2.0 | CloudBoltSoftware/cloudbolt-forge,CloudBoltSoftware/cloudbolt-forge,CloudBoltSoftware/cloudbolt-forge,CloudBoltSoftware/cloudbolt-forge | ---
+++
@@ -11,8 +11,7 @@
rh_id = resource.attributes.get(field__name='aws_rh_id').value
region = resource.attributes.get(field__name='aws_region').value
rh = AWSHandler.objects.get(id=rh_id)
- backup_plan_name=resource.name
- backup_vault_name=backup_plan_name+'backup-vault'
+
set_progress(... |
e6a3e0c77ada592c06394af2e235b3528a61202a | armstrong/dev/tasks/__init__.py | armstrong/dev/tasks/__init__.py | import pkg_resources
pkg_resources.declare_namespace(__name__)
| import pkg_resources
pkg_resources.declare_namespace(__name__)
from contextlib import contextmanager
try:
import coverage
except ImportError:
coverage = False
import os
from os.path import basename, dirname
import sys
from fabric.api import *
from fabric.decorators import task
if not "fabfile" in sys.module... | Create all of the tasks needed for developing in Armstrong | Create all of the tasks needed for developing in Armstrong
| Python | apache-2.0 | armstrong/armstrong.dev | ---
+++
@@ -1,2 +1,107 @@
import pkg_resources
pkg_resources.declare_namespace(__name__)
+
+
+from contextlib import contextmanager
+try:
+ import coverage
+except ImportError:
+ coverage = False
+import os
+from os.path import basename, dirname
+import sys
+
+from fabric.api import *
+from fabric.decorators ... |
a37db382c69293953c709365cd2c64c4a99f419e | rest_framework/authtoken/migrations/0001_initial.py | rest_framework/authtoken/migrations/0001_initial.py | # encoding: utf8
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operations = [
migrations.CreateModel(
... |
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operations = [
migrations.CreateModel(
name... | Update authtoken latest Django 1.7 migration | Update authtoken latest Django 1.7 migration | Python | bsd-2-clause | James1345/django-rest-framework,wzbozon/django-rest-framework,rhblind/django-rest-framework,ajaali/django-rest-framework,tcroiset/django-rest-framework,hunter007/django-rest-framework,hunter007/django-rest-framework,wwj718/django-rest-framework,kennydude/django-rest-framework,jpadilla/django-rest-framework,kezabelle/dj... | ---
+++
@@ -1,4 +1,4 @@
-# encoding: utf8
+
from __future__ import unicode_literals
from django.db import models, migrations
@@ -16,11 +16,10 @@
name='Token',
fields=[
('key', models.CharField(max_length=40, serialize=False, primary_key=True)),
- ('user', ... |
04557bbff362ae3b89e7dd98a1fb11e0aaeba50e | common/djangoapps/student/migrations/0010_auto_20170207_0458.py | common/djangoapps/student/migrations/0010_auto_20170207_0458.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('student', '0009_auto_20170111_0422'),
]
# This migration was to add a constraint that we lost in the Django
# 1.4->1.8 upgrade. ... | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('student', '0009_auto_20170111_0422'),
]
# This migration was to add a constraint that we lost in the Django
# 1.4->1.8 upgrade. ... | Make this no-op migration be a true no-op. | Make this no-op migration be a true no-op.
| Python | agpl-3.0 | philanthropy-u/edx-platform,lduarte1991/edx-platform,eduNEXT/edx-platform,msegado/edx-platform,cpennington/edx-platform,hastexo/edx-platform,a-parhom/edx-platform,ESOedX/edx-platform,angelapper/edx-platform,gymnasium/edx-platform,eduNEXT/edunext-platform,pepeportela/edx-platform,ESOedX/edx-platform,pepeportela/edx-plat... | ---
+++
@@ -26,9 +26,5 @@
# )
operations = [
- migrations.RunSQL(
- # Do nothing:
- "select 1",
- "select 1"
- )
+ # Nothing to do.
] |
7f796b74b8996bda7d31184e6c580d2a3e4f7e18 | os.py | os.py | import os
def sorted_walk(rootpath):
# report this
dirpath, dirs, files = next(os.walk(rootpath))
yield (dirpath, dirs, files)
for ndir in sorted(dirs):
ndirpath = os.path.join(rootpath, ndir)
for _, ndirs, nfiles in sorted_walk(ndirpath):
yield (ndirpath, ndirs, nfiles)
| import os
def sorted_walk(rootpath):
# report this
dirpath, dirs, files = next(os.walk(rootpath))
yield (dirpath, dirs, files)
for ndir in sorted(dirs):
ndirpath = os.path.join(rootpath, ndir)
for _, ndirs, nfiles in sorted_walk(ndirpath):
yield (ndirpath, ndirs, nfiles)
if... | Add example code for sorted_walk | Add example code for sorted_walk
| Python | mit | inker610566/python-improve-libs | ---
+++
@@ -9,3 +9,8 @@
for _, ndirs, nfiles in sorted_walk(ndirpath):
yield (ndirpath, ndirs, nfiles)
+if __name__ == '__main__':
+ for dirpath, dirs, files in sorted_walk('..'):
+ print dirpath
+ print dirs
+ print files |
6f5c1aa40181d5f9cc34bf85fd03e8e5758a9183 | libs/utils.py | libs/utils.py | from django.core.cache import cache
#get the cache key for storage
def cache_get_key(*args, **kwargs):
import hashlib
serialise = []
for arg in args:
serialise.append(str(arg))
for key,arg in kwargs.items():
serialise.append(str(key))
serialise.append(str(arg))
key = hashlib... | from django.core.cache import cache
#get the cache key for storage
def cache_get_key(*args, **kwargs):
import hashlib
serialise = []
for arg in args:
serialise.append(str(arg))
for key,arg in kwargs.items():
if key == "clear_cache":
continue
serialise.append(str(key)... | Exclude clear_cache from cache key | Exclude clear_cache from cache key
| Python | mit | daigotanaka/kawaraban,daigotanaka/kawaraban,daigotanaka/kawaraban,daigotanaka/kawaraban | ---
+++
@@ -7,6 +7,8 @@
for arg in args:
serialise.append(str(arg))
for key,arg in kwargs.items():
+ if key == "clear_cache":
+ continue
serialise.append(str(key))
serialise.append(str(arg))
key = hashlib.md5("".join(serialise)).hexdigest() |
e7278521d8ee387acc5bc94c39f041c7e08c6cc6 | lab_members/views.py | lab_members/views.py | from django.views.generic import DetailView, ListView
from lab_members.models import Scientist
class ScientistListView(ListView):
model = Scientist
queryset = Scientist.objects.all()
class ScientistDetailView(DetailView):
model = Scientist
| from django.views.generic import DetailView, ListView
from lab_members.models import Scientist
class ScientistListView(ListView):
model = Scientist
def get_context_data(self, **kwargs):
context = super(ScientistListView, self).get_context_data(**kwargs)
context['scientist_list'] = Scientist.ob... | Return both scientist_list and alumni_list for ScientistListView | Return both scientist_list and alumni_list for ScientistListView
| Python | bsd-3-clause | mfcovington/django-lab-members,mfcovington/django-lab-members,mfcovington/django-lab-members | ---
+++
@@ -3,7 +3,12 @@
class ScientistListView(ListView):
model = Scientist
- queryset = Scientist.objects.all()
+
+ def get_context_data(self, **kwargs):
+ context = super(ScientistListView, self).get_context_data(**kwargs)
+ context['scientist_list'] = Scientist.objects.filter(current=... |
d4171faa21324cc8d23b5e0352932e3d1769f58a | bluesky/tests/test_callbacks.py | bluesky/tests/test_callbacks.py | from nose.tools import assert_in, assert_equal
from bluesky.run_engine import RunEngine
from bluesky.examples import *
RE = None
def setup():
global RE
RE = RunEngine()
def test_main_thread_callback_exceptions():
def callbacker(doc):
raise Exception("Hey look it's an exception that better not ... | from nose.tools import assert_in, assert_equal
from bluesky.run_engine import RunEngine
from bluesky.examples import *
from nose.tools import raises
RE = None
def setup():
global RE
RE = RunEngine()
def exception_raiser(doc):
raise Exception("Hey look it's an exception that better not kill the "
... | Add test that fails *if* 'all' is not working | ENH: Add test that fails *if* 'all' is not working
| Python | bsd-3-clause | klauer/bluesky,ericdill/bluesky,sameera2004/bluesky,klauer/bluesky,dchabot/bluesky,ericdill/bluesky,dchabot/bluesky,sameera2004/bluesky | ---
+++
@@ -1,6 +1,7 @@
from nose.tools import assert_in, assert_equal
from bluesky.run_engine import RunEngine
from bluesky.examples import *
+from nose.tools import raises
RE = None
@@ -10,18 +11,19 @@
global RE
RE = RunEngine()
+def exception_raiser(doc):
+ raise Exception("Hey look it's an ... |
77c6fd50fdc2bd7e716ecfba30e8e18e27b3c0eb | oslo/__init__.py | oslo/__init__.py | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# 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... | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# d... | Remove extraneous vim editor configuration comments | Remove extraneous vim editor configuration comments
Change-Id: I0a48345e7fd2703b6651531087097f096264dc7d
Partial-Bug: #1229324
| Python | apache-2.0 | openstack/oslo.concurrency,varunarya10/oslo.concurrency,JioCloud/oslo.concurrency | ---
+++
@@ -1,5 +1,3 @@
-# vim: tabstop=4 shiftwidth=4 softtabstop=4
-
# 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 |
c974c7a73e8ef48ea4fb1436b397f2973d8048c7 | {{cookiecutter.project_name}}/{{cookiecutter.project_name}}/apps/users/adapter.py | {{cookiecutter.project_name}}/{{cookiecutter.project_name}}/apps/users/adapter.py | # -*- coding: utf-8 -*-
from django.conf import settings
from allauth.account.adapter import DefaultAccountAdapter
from allauth.socialaccount.adapter import DefaultSocialAccountAdapter
class AccountAdapter(DefaultAccountAdapter):
def is_open_for_signup(self, request):
return getattr(settings, 'ACCOUNT_ALL... | # -*- coding: utf-8 -*-
from django.conf import settings
from allauth.account.adapter import DefaultAccountAdapter
from allauth.socialaccount.adapter import DefaultSocialAccountAdapter
class AccountAdapter(DefaultAccountAdapter):
def is_open_for_signup(self, request):
return getattr(settings, 'ACCOUNT_ALL... | Modify is_open_for_signup to receive 3 arguments | Modify is_open_for_signup to receive 3 arguments
SocialAccountAdapter expects a sociallogin argument.
| Python | mit | LucianU/bud,LucianU/bud,LucianU/bud | ---
+++
@@ -10,5 +10,5 @@
class SocialAccountAdapter(DefaultSocialAccountAdapter):
- def is_open_for_signup(self, request):
+ def is_open_for_signup(self, request, sociallogin):
return getattr(settings, 'ACCOUNT_ALLOW_REGISTRATION', True) |
4adb9f2f526970ee40ee26c5969fc58db1a6b04e | setup.py | setup.py | try:
from setuptools.core import setup
except ImportError:
from distutils.core import setup
import sys
svem_flag = '--single-version-externally-managed'
if svem_flag in sys.argv:
# Die, setuptools, die.
sys.argv.remove(svem_flag)
with open('jupyter_kernel/__init__.py', 'rb') as fid:
for line in ... | try:
from setuptools.core import setup
except ImportError:
from distutils.core import setup
import sys
svem_flag = '--single-version-externally-managed'
if svem_flag in sys.argv:
# Die, setuptools, die.
sys.argv.remove(svem_flag)
with open('jupyter_kernel/__init__.py', 'rb') as fid:
for line in ... | Use the readme as the long description | Use the readme as the long description
| Python | bsd-3-clause | Calysto/metakernel | ---
+++
@@ -22,7 +22,7 @@
setup(name='jupyter_kernel',
version=version,
description='Jupyter Kernel Tools',
- long_description="Jupyter Kernel Tools using kernel wrappers",
+ long_description=open('README.rst', 'rb').read().decode('utf-8'),
author='Steven Silvester',
author_emai... |
cdf98c02f8c7590931e732226a65f2e15daa7500 | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup, find_packages
from pydy_code_gen import __version__
setup(
name='pydy-code-gen',
version=__version__,
author='Jason K. Moore',
author_email='moorepants@gmail.com',
url="https://github.com/PythonDynamics/pydy-code-gen/",
description='Code gen... | #!/usr/bin/env python
from setuptools import setup, find_packages
from pydy_code_gen import __version__
setup(
name='pydy-code-gen',
version=__version__,
author='Jason K. Moore',
author_email='moorepants@gmail.com',
url="https://github.com/PythonDynamics/pydy-code-gen/",
description='Code gen... | Set SymPy version req to 0.7.4.1 (required only for Theano). | Set SymPy version req to 0.7.4.1 (required only for Theano).
| Python | bsd-3-clause | Shekharrajak/pydy,skidzo/pydy,oliverlee/pydy,jcrist/pydy,skidzo/pydy,jcrist/pydy,pydy/pydy-code-gen,Shekharrajak/pydy,pydy/pydy-code-gen,skidzo/pydy,jcrist/pydy,jcrist/pydy,skidzo/pydy,jcrist/pydy,Shekharrajak/pydy,Shekharrajak/pydy,jcrist/pydy,oliverlee/pydy,jcrist/pydy,oliverlee/pydy | ---
+++
@@ -15,7 +15,7 @@
keywords="dynamics multibody simulation code generation",
license='UNLICENSE',
packages=find_packages(),
- install_requires=['sympy>=0.7.3',
+ install_requires=['sympy>=0.7.4.1',
'numpy>=1.6.1',
],
extras_require={'doc':... |
a95f74e926a9381e16688fbebd017f676d19b7a5 | setup.py | setup.py | from setuptools import setup
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
#import here, cause outside the eggs a... | from setuptools import setup
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
#import here, cause outside the eggs a... | Make sure that the error code is returned properly | Make sure that the error code is returned properly
| Python | mit | teozkr/Flask-Pushrod,UYSio/Flask-Pushrod,teozkr/Flask-Pushrod | ---
+++
@@ -11,7 +11,7 @@
def run_tests(self):
#import here, cause outside the eggs aren't loaded
import pytest
- pytest.main(self.test_args)
+ raise SystemExit(pytest.main(self.test_args))
setup( |
681326cb6b070c84f5d84064f3d8925dd2762065 | setup.py | setup.py | from distutils.core import setup
import re
versionPattern = re.compile(r"""^__version__ = ['"](.*?)['"]$""", re.M)
with open("axiom/_version.py", "rt") as f:
version = versionPattern.search(f.read()).group(1)
setup(
name="Axiom",
version=version,
description="An in-process object-relational database",... | from distutils.core import setup
import re
versionPattern = re.compile(r"""^__version__ = ['"](.*?)['"]$""", re.M)
with open("axiom/_version.py", "rt") as f:
version = versionPattern.search(f.read()).group(1)
setup(
name="Axiom",
version=version,
description="An in-process object-relational database",... | Add trove classifiers for supported Python versions | Add trove classifiers for supported Python versions | Python | mit | twisted/axiom,hawkowl/axiom | ---
+++
@@ -35,4 +35,8 @@
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
+ "Programming Language :: Python :: 2",
+ "Programming Language :: Python :: 2.6",
+ "Programming Language :: Python :: 2.7",
+ ... |
fc8b5e8744ba8fe26d12788829eac90dcb6ea87e | setup.py | setup.py | from numpy.distutils.core import setup, Extension
import os
if os.name == 'nt':
# If OS is Windows, don't compile Fortran code
ext = []
else:
# If OS is OS X or Linux, assume Fortran compilers are available
ext = [
Extension(name='smt.IDWlib', extra_compile_args=['-fbounds-check'],
... | from numpy.distutils.core import setup, Extension
import os
if os.name == 'nt' and 0:
# If OS is Windows, don't compile Fortran code
ext = []
else:
# If OS is OS X or Linux, assume Fortran compilers are available
ext = [
Extension(name='smt.IDWlib', extra_compile_args=['-fbounds-check'],
... | Test Fortran compiler on windows | Test Fortran compiler on windows
| Python | bsd-3-clause | SMTorg/smt,bouhlelma/smt,bouhlelma/smt,hwangjt/SMT,SMTorg/smt,relf/smt,hwangjt/SMT,relf/smt | ---
+++
@@ -2,7 +2,7 @@
import os
-if os.name == 'nt':
+if os.name == 'nt' and 0:
# If OS is Windows, don't compile Fortran code
ext = []
else: |
119478a8531bc7b58257801c4cf18628ce006d7e | setup.py | setup.py | #!/usr/bin/python
from distutils.core import setup
from glob import glob
# Scripts whose names end in a-z or 1-9 (avoids emacs backup files)
scripts = glob('scripts/*[a-z,1-9]')
setup(name='vasputil',
version='5.1',
description='VASP utilities',
author='Janne Blomqvist',
author_email='Janne.B... | #!/usr/bin/python
from distutils.core import setup
from glob import glob
# Scripts whose names end in a-z or 1-9 (avoids emacs backup files)
scripts = glob('scripts/*[a-z,1-9]')
setup(name='vasputil',
version='5.1',
description='VASP utilities',
author='Janne Blomqvist',
author_email='Janne.B... | Fix url, correct url this time? | Fix url, correct url this time?
| Python | lgpl-2.1 | jabl/vasputil,jabl/vasputil,oren88/vasputil,oren88/vasputil | ---
+++
@@ -11,7 +11,7 @@
description='VASP utilities',
author='Janne Blomqvist',
author_email='Janne.Blomqvist@tkk.fi',
- url='http://tfy.tkk.fi/~job/',
+ url='http://tfy.tkk.fi/~job/vasputil',
packages=['vasputil', 'vasputil.tests'],
scripts = scripts)
|
05139a0944d227064458d06c06ae5088784b4298 | hoodcms/models.py | hoodcms/models.py |
import os
import time
from django.contrib.staticfiles import finders
from django.templatetags.static import StaticNode
def get_media(path):
result = finders.find(path, all=True)
return [os.path.realpath(path) for path in result]
def new_url(self, context):
"""Add a query string to invalidate cached file... | Add a query string static patch | Add a query string static patch
| Python | agpl-3.0 | Ashmont-Valley/ashmont-valley-website,Ashmont-Valley/ashmont-valley-website,Ashmont-Valley/ashmont-valley-website,Ashmont-Valley/ashmont-valley-website | ---
+++
@@ -0,0 +1,20 @@
+
+import os
+import time
+
+from django.contrib.staticfiles import finders
+from django.templatetags.static import StaticNode
+
+def get_media(path):
+ result = finders.find(path, all=True)
+ return [os.path.realpath(path) for path in result]
+
+def new_url(self, context):
+ """Add ... | |
0ef82c3b6b98da84f423a61482969cb1cdb64681 | setup.py | setup.py | import os
import re
from setuptools import setup, find_packages
with open(os.path.join(os.path.dirname(__file__), 'jsondiff', '__init__.py')) as f:
version = re.compile(r".*__version__ = '(.*?)'", re.S).match(f.read()).group(1)
setup(
name='jsondiff',
packages=find_packages(exclude=['tests']),
version... | import os
import re
from setuptools import setup, find_packages
with open(os.path.join(os.path.dirname(__file__), 'jsondiff', '__init__.py')) as f:
version = re.compile(r".*__version__ = '(.*?)'", re.S).match(f.read()).group(1)
setup(
name='jsondiff',
packages=find_packages(exclude=['tests']),
version... | Remove deprecated jsondiff entry point. | Remove deprecated jsondiff entry point.
| Python | mit | ZoomerAnalytics/jsondiff | ---
+++
@@ -22,7 +22,6 @@
],
entry_points={
'console_scripts': [
- 'jsondiff=jsondiff.cli:main_deprecated',
'jdiff=jsondiff.cli:main'
]
} |
7a4f8b1456183d48f508086887d7bb79a1f24dff | setup.py | setup.py | import os
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(name='windpowerlib',
version='0.1.2dev',
description='Creating time series of wind power plants.',
url='http://github.com/wind-python/windpowerlib',
author='oe... | import os
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(name='windpowerlib',
version='0.1.2dev',
description='Creating time series of wind power plants.',
url='http://github.com/wind-python/windpowerlib',
author='oe... | Remove packages. tables not needed anymore, numpy installed with pandas | Remove packages. tables not needed anymore, numpy installed with pandas
| Python | mit | wind-python/windpowerlib | ---
+++
@@ -18,7 +18,5 @@
'windpowerlib': [os.path.join('data', '*.csv')]},
long_description=read('README.rst'),
zip_safe=False,
- install_requires=['numpy <= 1.15.4', # remove after PyTables release 3.4.5
- 'pandas >= 0.19.1',
- 'requests',
... |
1f484b5001e53955a85bed2a8ea5da3ed3fde139 | setup.py | setup.py | import setuptools
setuptools.setup(name='pytest-cov',
version='1.7.0',
description='py.test plugin for coverage reporting with '
'support for both centralised and distributed testing, '
'including subprocesses and multiprocessing',
lo... | import setuptools
setuptools.setup(name='pytest-cov',
version='1.7.0',
description='py.test plugin for coverage reporting with '
'support for both centralised and distributed testing, '
'including subprocesses and multiprocessing',
lo... | Set cov-core dependency to 1.13.0 | Set cov-core dependency to 1.13.0
| Python | mit | ionelmc/pytest-cover,pytest-dev/pytest-cov,opoplawski/pytest-cov,schlamar/pytest-cov,moreati/pytest-cov | ---
+++
@@ -11,7 +11,7 @@
url='https://github.com/schlamar/pytest-cov',
py_modules=['pytest_cov'],
install_requires=['pytest>=2.5.2',
- 'cov-core>=1.12'],
+ 'cov-core>=1.13.0'],
... |
5d9032fc79466880c28b4472f152d517c027ab40 | setup.py | setup.py | #!/usr/bin/env python
from distutils.core import setup
import fedex
LONG_DESCRIPTION = open('README.rst').read()
CLASSIFIERS = [
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Op... | #!/usr/bin/env python
from distutils.core import setup
import fedex
LONG_DESCRIPTION = open('README.rst').read()
CLASSIFIERS = [
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Op... | Add tools to package data | Add tools to package data | Python | bsd-3-clause | gtaylor/python-fedex,python-fedex-devs/python-fedex,gtaylor/python-fedex,python-fedex-devs/python-fedex,python-fedex-devs/python-fedex,gtaylor/python-fedex,python-fedex-devs/python-fedex,gtaylor/python-fedex | ---
+++
@@ -27,7 +27,7 @@
download_url='http://pypi.python.org/pypi/fedex/',
packages=['fedex', 'fedex.services', 'fedex.printers'],
package_dir={'fedex': 'fedex'},
- package_data={'fedex': ['wsdl/*.wsdl', 'wsdl/test_server_wsdl/*.wsdl']},
+ package_data={'fedex': ['wsdl/*.wsdl', 'wsdl/... |
5af8feb0372ef6bb33b4fd686a30da95cabb6840 | setup.py | setup.py | #! /usr/bin/env python
import sys
from setuptools import setup
if 'upload' in sys.argv:
if '--sign' not in sys.argv and sys.argv[1:] != ['upload', '--help']:
raise SystemExit('Refusing to upload unsigned packages.')
PACKAGENAME = 'preconditions'
setup(
name=PACKAGENAME,
description='Flexible, ... | #! /usr/bin/env python
import sys
from setuptools import setup
if 'upload' in sys.argv:
if '--sign' not in sys.argv and sys.argv[1:] != ['upload', '--help']:
raise SystemExit('Refusing to upload unsigned packages.')
PACKAGENAME = 'preconditions'
setup(
name=PACKAGENAME,
description='Flexible, ... | Bump the version to 0.1. | Bump the version to 0.1.
| Python | mit | nejucomo/preconditions | ---
+++
@@ -16,7 +16,7 @@
description='Flexible, concise preconditions.',
url='https://github.com/nejucomo/{0}'.format(PACKAGENAME),
license='MIT',
- version='0.1.dev0',
+ version='0.1',
author='Nathan Wilcox',
author_email='nejucomo@gmail.com',
py_modules=[PACKAGENAME], |
95e0b154f8b612cdab3e255ee8450f7308800c3f | setup.py | setup.py | #! /usr/bin/env python
# coding: utf-8
from setuptools import find_packages, setup
setup(name='egoio',
author='NEXT ENERGY, Reiner Lemoine Institut gGmbH, ZNES',
author_email='ulf.p.mueller@hs-flensburg.de',
description='ego input/output repository',
version='0.4.5',
url='https://github.... | #! /usr/bin/env python
# coding: utf-8
from setuptools import find_packages, setup
setup(name='egoio',
author='NEXT ENERGY, Reiner Lemoine Institut gGmbH, ZNES',
author_email='ulf.p.mueller@hs-flensburg.de',
description='ego input/output repository',
version='0.4.5',
url='https://github.... | Install latest oedialect version from GitHub instead from PyPi | Install latest oedialect version from GitHub instead from PyPi
| Python | agpl-3.0 | openego/ego.io,openego/ego.io | ---
+++
@@ -16,7 +16,8 @@
'sqlalchemy >= 1.0.11, <= 1.2.0',
'keyring >= 4.0',
'keyrings.alt',
- 'psycopg2'],
+ 'psycopg2',
+ 'oedialect @ https://github.com/OpenEnergyPlatform/oedialect/archive/master.zip'],
extras_require={
"sqlalchemy": '... |
5b862e4c7ae236eb8fb476bb10eef2985c9e3bac | setup.py | setup.py | from setuptools import setup, find_packages
classifiers = [
'License :: OSI Approved :: BSD License',
'Intended Audience :: Developers',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Environment :: Web Environment',
... | from setuptools import setup, find_packages
classifiers = [
'License :: OSI Approved :: BSD License',
'Intended Audience :: Developers',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Environment :: Web Environment',
... | Replace extra deps with sync packages | Replace extra deps with sync packages
| Python | bsd-3-clause | rrader/aio_manager | ---
+++
@@ -12,8 +12,8 @@
]
extras_require = {'sa': ['sqlalchemy>=0.9']}
-extras_require['postgres'] = ['aiopg', *extras_require['sa']]
-extras_require['mysql'] = ['aiomysql', *extras_require['sa']]
+extras_require['postgres'] = ['psycopg2>=2.5.2', *extras_require['sa']]
+extras_require['mysql'] = ['PyMySQL>=0.7.... |
4a5496fc655818cfe87934c91c9be206957d221e | setup.py | setup.py | # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
import re
version = re.search(
r'__version__\s*=\s*[\'"]([^\'"]+)[\'"]',
open('wdmapper/version.py').read()
).group(1)
setup(
name='wdmapper',
version=version,
description='Wikidata authority file mapping tool',
author='Jakob ... | # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
import re
version = re.search(
r'__version__\s*=\s*[\'"]([^\'"]+)[\'"]',
open('wdmapper/version.py').read()
).group(1)
setup(
name='wdmapper',
version=version,
description='Wikidata authority file mapping tool',
author='Jakob ... | Fix code style to fix travis build | Fix code style to fix travis build
| Python | mit | gbv/wdmapper | ---
+++
@@ -19,8 +19,8 @@
install_requires=['pywikibot'],
setup_requires=['pytest-runner'],
tests_require=['pytest', 'pytest-pep8', 'pytest-cov'],
- download_url = 'https://github.com/gbv/wdmapper/tarball/' + version,
- keywords = ['wikidata', 'beacon', 'identifier'],
+ download_url='https://g... |
242c302f110fef9f2016d76c5e5b05a0c929497e | setup.py | setup.py | # -*- coding: utf-8 -*-
# Copyright (c) 2010-2014, MIT Probabilistic Computing Project
#
# 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/LICENS... | # -*- coding: utf-8 -*-
# Copyright (c) 2010-2014, MIT Probabilistic Computing Project
#
# 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/LICENS... | Switch to new version scheme, alpha timestamped today. | Switch to new version scheme, alpha timestamped today.
| Python | apache-2.0 | probcomp/bdbcontrib,probcomp/bdbcontrib | ---
+++
@@ -21,7 +21,7 @@
setup(
name='bdbcontrib',
- version='0.1.dev',
+ version='0.1a20150917',
description='Hodgepodge library of extras for bayeslite',
url='http://probcomp.csail.mit.edu/bayesdb',
author='MIT Probabilistic Computing Project', |
1c7cac04f9398abb824a7591caa381bcc495dcfe | setup.py | setup.py | # https://jeffknupp.com/blog/2013/08/16/open-sourcing-a-python-project-the-right-way/
# http://peterdowns.com/posts/first-time-with-pypi.html
# Upload to PyPI Live
# python setup.py sdist upload -r pypi
from setuptools import setup
setup(
name='axis',
packages=['axis'],
version='11',
description='A python lib... | # https://jeffknupp.com/blog/2013/08/16/open-sourcing-a-python-project-the-right-way/
# http://peterdowns.com/posts/first-time-with-pypi.html
# Upload to PyPI Live
# python setup.py sdist upload -r pypi
from setuptools import setup
setup(
name='axis',
packages=['axis'],
version='12',
description='A python lib... | Increase version to 12 (it goes past 11!!!) | Increase version to 12 (it goes past 11!!!)
| Python | mit | Kane610/axis | ---
+++
@@ -8,13 +8,13 @@
setup(
name='axis',
packages=['axis'],
- version='11',
+ version='12',
description='A python library for communicating with devices from Axis Communications',
author='Robert Svensson',
author_email='Kane610@users.noreply.github.com',
license='MIT',
url='https://github... |
5194e3d8c433bcd427b04eb3611834aa36e3d0ac | setup.py | setup.py | import subprocess
from codecs import open
from setuptools import setup, find_packages
from setuptools.command import develop, build_py
def readme():
with open("README.md", "r", "utf-8") as f:
return f.read()
class CustomDevelop(develop.develop, object):
"""
Class needed for "pip install -e ."
... | import subprocess
from codecs import open
from setuptools import setup, find_packages
from setuptools.command import develop, build_py
def readme():
with open("README.md", "r", "utf-8") as f:
return f.read()
class CustomDevelop(develop.develop, object):
"""
Class needed for "pip install -e ."
... | Install beautifulsoup4 with lxml parser | Install beautifulsoup4 with lxml parser
| Python | agpl-3.0 | carlodef/s2p,MISS3D/s2p,MISS3D/s2p,MISS3D/s2p,MISS3D/s2p,carlodef/s2p,mnhrdt/s2p,mnhrdt/s2p | ---
+++
@@ -33,7 +33,7 @@
'rasterio[s3,test]',
'utm',
'pyproj',
- 'bs4',
+ 'beautifulsoup4[lxml]',
'requests']
setup(name="s2p", |
4f672bd867e1e94b8b78f0f50d3da1be93af84d2 | setup.py | setup.py | #!/usr/bin/env python
import os
from setuptools import setup
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
execfile('kronos/version.py')
readme = open('README.rst').read()
history = open('HISTORY.rst').read()
setup(
name='django-kronos',
version=__version__,
description='... | #!/usr/bin/env python
import os
from setuptools import setup
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
exec(compile(open('kronos/version.py').read(), 'kronos/version.py', 'exec'))
readme = open('README.rst').read()
history = open('HISTORY.rst').read()
setup(
name='django-kron... | Change execfile to exec() for python 3 | Change execfile to exec() for python 3
| Python | mit | joshblum/django-kronos,jgorset/django-kronos,jgorset/django-kronos,joshblum/django-kronos,jeanbaptistelab/django-kronos,jeanbaptistelab/django-kronos | ---
+++
@@ -3,7 +3,7 @@
from setuptools import setup
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
-execfile('kronos/version.py')
+exec(compile(open('kronos/version.py').read(), 'kronos/version.py', 'exec'))
readme = open('README.rst').read()
history = open('HISTORY.rst').read... |
57ed6bb3994342fce594c9cbbb0ecde4ee8c117c | setup.py | setup.py | from setuptools import setup
setup(
name="Flask-Redistore",
version="1.0",
url="",
license="BSD",
author="Donald Stufft",
author_email="donald.stufft@gmail.com",
description="Adds Redis support to your Flask applications",
long_description=open("README.rst").read(),
py_modules=["fl... | import sys
from setuptools import setup
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
#import here, cause outsi... | Enable running tests with py.test | Enable running tests with py.test
| Python | bsd-2-clause | dstufft/Flask-Redistore | ---
+++
@@ -1,4 +1,21 @@
+import sys
+
from setuptools import setup
+from setuptools.command.test import test as TestCommand
+
+
+class PyTest(TestCommand):
+
+ def finalize_options(self):
+ TestCommand.finalize_options(self)
+ self.test_args = []
+ self.test_suite = True
+
+ def run_tests... |
d6dcc2162ad24cd46b1b2661f996e6a90f77da94 | setup.py | setup.py | #!/usr/bin/env python
from distutils.core import setup
try:
import robofab
except:
print "*** Warning: defcon requires RoboFab, see:"
print " robofab.com"
setup(name="fontMath",
version="0.2",
description="A set of objects for performing math operations on font data.",
author="Tal Leming"... | #!/usr/bin/env python
from distutils.core import setup
try:
import robofab
except:
print "*** Warning: fontMath requires RoboFab, see:"
print " robofab.com"
setup(name="fontMath",
version="0.2",
description="A set of objects for performing math operations on font data.",
author="Tal Lemin... | Correct name of package in warning message | Correct name of package in warning message | Python | mit | typesupply/fontMath,anthrotype/fontMath,moyogo/fontMath | ---
+++
@@ -5,7 +5,7 @@
try:
import robofab
except:
- print "*** Warning: defcon requires RoboFab, see:"
+ print "*** Warning: fontMath requires RoboFab, see:"
print " robofab.com"
|
370aa8094a9a2cc67acc414ceb7f24dd33fd7e68 | setup.py | setup.py | from distutils.core import setup
LONG_DESC = """
Unicode URLS in django."""
setup(
name='unicode_urls',
packages=['unicode_urls', 'unicode_urls.django', 'unicode_urls.cms'],
version='0.0.1',
long_description=LONG_DESC,
description='Unicode urls.',
author='Alex Gavrisco',
author_email='alex... | from distutils.core import setup
LONG_DESC = """
Unicode URLS in django."""
setup(
name='unicode_urls',
packages=['unicode_urls', 'unicode_urls.django', 'unicode_urls.cms'],
version='0.2.1',
long_description=LONG_DESC,
description='Unicode urls.',
author='Alex Gavrisco',
author_email='alex... | Fix package version and remove django from list of required packages. | Fix package version and remove django from list of required packages.
| Python | mit | Alexx-G/django-unicode-urls | ---
+++
@@ -6,7 +6,7 @@
setup(
name='unicode_urls',
packages=['unicode_urls', 'unicode_urls.django', 'unicode_urls.cms'],
- version='0.0.1',
+ version='0.2.1',
long_description=LONG_DESC,
description='Unicode urls.',
author='Alex Gavrisco',
@@ -22,8 +22,5 @@
'Development Statu... |
a0a0a92e6cf1e2f0f288c46d75c66ec74e0b08be | setup.py | setup.py | from setuptools import setup, find_packages
setup(
name="voltron",
version="0.1",
author="snare",
author_email="snare@ho.ax",
description=("A UI for GDB & LLDB"),
license="Buy snare a beer",
keywords="voltron gdb lldb",
url="https://github.com/snarez/voltron",
packages=find_packages... | from setuptools import setup, find_packages
setup(
name="voltron",
version="0.1",
author="snare",
author_email="snare@ho.ax",
description=("A UI for GDB & LLDB"),
license="Buy snare a beer",
keywords="voltron gdb lldb",
url="https://github.com/snarez/voltron",
packages=['voltron'],
... | Fix install per \@8BitAce's PR | Fix install per \@8BitAce's PR
| Python | mit | snare/voltron,snare/voltron,snare/voltron,snare/voltron | ---
+++
@@ -9,7 +9,7 @@
license="Buy snare a beer",
keywords="voltron gdb lldb",
url="https://github.com/snarez/voltron",
- packages=find_packages(),
+ packages=['voltron'],
install_requires=['scruffington', 'flask', 'blessed', 'pygments', 'requests_unixsocket'],
data_files=['dbgentry.p... |
c62a0ceecd9067dad757d3def34ce747557b2509 | setup.py | setup.py | #!/usr/bin/env python
# coding: utf-8
from setuptools import setup, find_packages
setup(
name="bentoo",
description="Benchmarking tools",
version="0.15",
packages=find_packages(),
scripts=["scripts/bentoo-generator.py", "scripts/bentoo-runner.py",
"scripts/bentoo-collector.py", "script... | #!/usr/bin/env python
# coding: utf-8
from setuptools import setup, find_packages
setup(
name="bentoo",
description="Benchmarking tools",
version="0.16.dev",
packages=find_packages(),
scripts=["scripts/bentoo-generator.py", "scripts/bentoo-runner.py",
"scripts/bentoo-collector.py", "sc... | Prepare for next dev cycle | Prepare for next dev cycle
| Python | mit | ProgramFan/bentoo | ---
+++
@@ -5,7 +5,7 @@
setup(
name="bentoo",
description="Benchmarking tools",
- version="0.15",
+ version="0.16.dev",
packages=find_packages(),
scripts=["scripts/bentoo-generator.py", "scripts/bentoo-runner.py",
"scripts/bentoo-collector.py", "scripts/bentoo-analyser.py", |
372b39cb1e4537b2f3221e71e310a4c928a81468 | tests/func/import/imported_actions/by_decorator_action_name/base_actions.py | tests/func/import/imported_actions/by_decorator_action_name/base_actions.py | from parglare.actions import get_action_decorator
action = get_action_decorator()
@action('number')
def NUMERIC(_, value):
return float(value)
| from __future__ import unicode_literals
from parglare.actions import get_action_decorator
action = get_action_decorator()
@action('number')
def NUMERIC(_, value):
return float(value)
| Test fix for Python 2. | Test fix for Python 2.
| Python | mit | igordejanovic/parglare,igordejanovic/parglare | ---
+++
@@ -1,3 +1,4 @@
+from __future__ import unicode_literals
from parglare.actions import get_action_decorator
action = get_action_decorator() |
551b96a3a2f354b6aa281546a32a08f70c31c03f | mysite/views/testmode_switch.py | mysite/views/testmode_switch.py | from flask import redirect
from mysite.viewcore import viewcore
from mysite.test.FileSystemStub import FileSystemStub
from mysite.core import FileSystem
from mysite.viewcore import configuration_provider
def leave_debug(request):
viewcore.switch_database_instance(request.GET['database'])
return redirect('/das... | from flask import redirect
from mysite.viewcore import viewcore
from mysite.test.FileSystemStub import FileSystemStub
from mysite.core import FileSystem
from mysite.viewcore import configuration_provider
def leave_debug(request):
viewcore.switch_database_instance(request.args['database'])
return redirect('/',... | Fix a redirect error and adjust request object method call. | Fix a redirect error and adjust request object method call.
| Python | agpl-3.0 | RosesTheN00b/BudgetButlerWeb,RosesTheN00b/BudgetButlerWeb,RosesTheN00b/BudgetButlerWeb,RosesTheN00b/BudgetButlerWeb,RosesTheN00b/BudgetButlerWeb,RosesTheN00b/BudgetButlerWeb | ---
+++
@@ -6,8 +6,8 @@
def leave_debug(request):
- viewcore.switch_database_instance(request.GET['database'])
- return redirect('/dashboard/', code=301)
+ viewcore.switch_database_instance(request.args['database'])
+ return redirect('/', code=301)
def enter_testmode(request):
FileSystem.INST... |
b540d5c3943f6a21232428ecf717667c6beb48d5 | dmp/__init__.py | dmp/__init__.py | """
.. Copyright 2016 EMBL-European Bioinformatics Institute
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 applic... | """
.. Copyright 2016 EMBL-European Bioinformatics Institute
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 applic... | Change to try and improve importability | Change to try and improve importability
| Python | apache-2.0 | Multiscale-Genomics/mg-dm-api,Multiscale-Genomics/mg-dm-api | ---
+++
@@ -14,9 +14,9 @@
limitations under the License.
"""
-import dmp
-import rest
+import dmp.dmp
+import rest.rest
__author__ = 'Mark McDowall'
-__version__ = 'v0.0'
+__version__ = '0.0'
__license__ = 'Apache 2.0' |
6c6e8d17bce3976a2ef766139f3692a78df2d0c4 | tests/unit/cloud/clouds/test_saltify.py | tests/unit/cloud/clouds/test_saltify.py | # -*- coding: utf-8 -*-
'''
:codeauthor: :email:`Alexander Schwartz <alexander.schwartz@gmx.net>`
'''
# Import Python libs
from __future__ import absolute_import
# Import Salt Testing Libs
from tests.support.unit import TestCase
from tests.support.mock import MagicMock
# Import Salt Libs
from salt.cloud.clouds i... | # -*- coding: utf-8 -*-
'''
:codeauthor: :email:`Alexander Schwartz <alexander.schwartz@gmx.net>`
'''
# Import Python libs
from __future__ import absolute_import
# Import Salt Testing Libs
from tests.support.unit import TestCase
from tests.support.mock import (
MagicMock,
patch
)
# Import Salt Libs
from ... | Update unit test for Saltify with credential verification | Update unit test for Saltify with credential verification
| Python | apache-2.0 | saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt | ---
+++
@@ -8,7 +8,10 @@
# Import Salt Testing Libs
from tests.support.unit import TestCase
-from tests.support.mock import MagicMock
+from tests.support.mock import (
+ MagicMock,
+ patch
+)
# Import Salt Libs
from salt.cloud.clouds import saltify
@@ -26,12 +29,13 @@
'''
# 'create' function t... |
f9fa16fb2bc04d6bdddf19a939291e39b0fa1741 | ores/wsgi/routes/v3/precache.py | ores/wsgi/routes/v3/precache.py | import json
import logging
from urllib.parse import unquote
from flask import request
from . import scores
from ... import preprocessors, responses, util
logger = logging.getLogger(__name__)
def configure(config, bp, scoring_system):
precache_map = util.build_precache_map(config)
@bp.route("/v3/precache/... | import logging
from flask import request
from . import scores
from ... import preprocessors, responses, util
logger = logging.getLogger(__name__)
def configure(config, bp, scoring_system):
precache_map = util.build_precache_map(config)
@bp.route("/v3/precache/", methods=["POST"])
@preprocessors.nocac... | Use the whole body of POST request as the json event in precaching | Use the whole body of POST request as the json event in precaching
| Python | mit | he7d3r/ores,wiki-ai/ores,wiki-ai/ores,wiki-ai/ores,he7d3r/ores,he7d3r/ores | ---
+++
@@ -1,6 +1,4 @@
-import json
import logging
-from urllib.parse import unquote
from flask import request
@@ -18,17 +16,17 @@
@preprocessors.nocache
@preprocessors.minifiable
def precache_v3():
- if 'event' not in request.form:
+ event = request.get_json()
+ if event is... |
4612d1ab6b3694e5926f54a55fefa305cac4e8bf | myhronet/utils.py | myhronet/utils.py | # -*- coding: utf-8 -*-
def get_client_ip(request):
ip = request.META.get('HTTP_X_FORWARDED_FOR')
if ip:
return ip.split(', ')[0]
else:
return request.META['REMOTE_ADDR']
| # -*- coding: utf-8 -*-
def get_client_ip(request):
ip = request.META.get('HTTP_X_FORWARDED_FOR')
if ip:
return ip.split(', ')[-1]
else:
return request.META['REMOTE_ADDR']
| Fix client IP detection behind reverse proxy | Fix client IP detection behind reverse proxy
The `X-Forwarded-For` header can be easily spoofed by a client. When
forwarding a connection, nginx appends the real detected IP to the the
list. So, what we need is actually the last one on this list, not the
first one.
| Python | mit | myhro/myhronet,myhro/myhronet | ---
+++
@@ -4,6 +4,6 @@
def get_client_ip(request):
ip = request.META.get('HTTP_X_FORWARDED_FOR')
if ip:
- return ip.split(', ')[0]
+ return ip.split(', ')[-1]
else:
return request.META['REMOTE_ADDR'] |
7494c5506cbfed0a641003f38085bd74f35d38b4 | cryptchat/test/test_networkhandler.py | cryptchat/test/test_networkhandler.py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Run from Cryptchat
# python3 -m unittest discover
import unittest
from ..network.networkhandler import NetworkHandler
from ..crypto.aes import AESCipher
from ..crypto.diffiehellman import DiffieHellman
class testNetworkHandler(unittest.TestCase):
@classmethod
... | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Run from Cryptchat
# python3 -m unittest discover
import unittest
from ..network.networkhandler import NetworkHandler
from ..crypto.diffiehellman import DiffieHellman
class testNetworkHandler(unittest.TestCase):
@classmethod
def setUpClass(cls):
alice ... | Update test to run on new code | Update test to run on new code
| Python | mit | djohsson/Cryptchat | ---
+++
@@ -5,32 +5,29 @@
import unittest
from ..network.networkhandler import NetworkHandler
-from ..crypto.aes import AESCipher
from ..crypto.diffiehellman import DiffieHellman
class testNetworkHandler(unittest.TestCase):
@classmethod
- def setUpClass(self):
+ def setUpClass(cls):
alic... |
c717ca0f2f85923dcf6ed3fd7a347f44f48f7941 | ocradmin/plugins/numpy_nodes.py | ocradmin/plugins/numpy_nodes.py |
import node
import manager
import stages
import numpy
class Rotate90Node(node.Node):
"""
Rotate a Numpy image by num*90 degrees.
"""
arity = 1
stage = stages.FILTER_BINARY
name = "Numpy::Rotate90"
def validate(self):
super(RotateNode, self).validate()
if not self._params.... |
import node
import manager
import stages
import numpy
class Rotate90Node(node.Node):
"""
Rotate a Numpy image by num*90 degrees.
"""
arity = 1
stage = stages.FILTER_BINARY
name = "Numpy::Rotate90"
_parameters = [{
"name": "num",
"value": 1,
}]
... | Add copy/pasted get_node function (TODO: Fix that), added parameters, fixed type | Add copy/pasted get_node function (TODO: Fix that), added parameters, fixed type
| Python | apache-2.0 | vitorio/ocropodium,vitorio/ocropodium,vitorio/ocropodium,vitorio/ocropodium | ---
+++
@@ -12,9 +12,14 @@
arity = 1
stage = stages.FILTER_BINARY
name = "Numpy::Rotate90"
+ _parameters = [{
+ "name": "num",
+ "value": 1,
+ }]
+
def validate(self):
- super(RotateNode, self).validate()
+ super(Rotate90Node, self).validate(... |
bece8b815ea3359433df708272ec3065d2c2a231 | examples/basic_siggen.py | examples/basic_siggen.py | from pymoku import Moku, ValueOutOfRangeException
from pymoku.instruments import *
import time, logging
import matplotlib
import matplotlib.pyplot as plt
logging.basicConfig(format='%(asctime)s:%(name)s:%(levelname)s::%(message)s')
logging.getLogger('pymoku').setLevel(logging.DEBUG)
# Use Moku.get_by_serial() or get... | from pymoku import Moku, ValueOutOfRangeException
from pymoku.instruments import *
import time
# Use Moku.get_by_serial() or get_by_name() if you don't know the IP
m = Moku.get_by_name("example")
i = SignalGenerator()
m.attach_instrument(i)
try:
i.synth_sinewave(1, 1.0, 1000000)
i.synth_squarewave(2, 1.0, 2000000, ... | Simplify and clean the siggen example | PM-133: Simplify and clean the siggen example
| Python | mit | liquidinstruments/pymoku | ---
+++
@@ -1,29 +1,18 @@
from pymoku import Moku, ValueOutOfRangeException
from pymoku.instruments import *
-import time, logging
-
-import matplotlib
-import matplotlib.pyplot as plt
-
-logging.basicConfig(format='%(asctime)s:%(name)s:%(levelname)s::%(message)s')
-logging.getLogger('pymoku').setLevel(logging.DEBU... |
5f416dadecf21accbaccd69740c5398967ec4a7c | doubles/nose.py | doubles/nose.py | from __future__ import absolute_import
import sys
from nose.plugins.base import Plugin
from doubles.lifecycle import setup, verify, teardown, current_space
from doubles.exceptions import MockExpectationError
class NoseIntegration(Plugin):
name = 'doubles'
def beforeTest(self, test):
setup()
d... | from __future__ import absolute_import
import sys
from nose.plugins.base import Plugin
from doubles.lifecycle import setup, verify, teardown, current_space
from doubles.exceptions import MockExpectationError
class NoseIntegration(Plugin):
name = 'doubles'
def beforeTest(self, test):
setup()
d... | Remove verification skipping in Nose plugin for now. | Remove verification skipping in Nose plugin for now.
| Python | mit | uber/doubles | ---
+++
@@ -21,11 +21,11 @@
def prepareTestCase(self, test):
def wrapped(result):
test.test.run()
- if result.failures or result.errors:
- return
+
try:
if current_space():
verify()
except MockExpectat... |
852ce5cee8171fdf4a33f3267de34042cb066bf3 | tests/routine/test_config.py | tests/routine/test_config.py | import unittest
from performance.routine import Config
from performance.web import Request
class ConfigTestCase(unittest.TestCase):
def setUp(self):
self.host = 'http://www.google.com'
def test_init(self):
config = Config(host=self.host)
self.assertEqual(self.host, config.host)
... | import unittest
from performance.routine import Config
from performance.web import Request
class ConfigTestCase(unittest.TestCase):
def setUp(self):
self.host = 'http://www.google.com'
def test_init(self):
config = Config(host=self.host)
self.assertEqual(self.host, config.host)
... | Update test to for Config.add_request and config-counts | Update test to for Config.add_request and config-counts
| Python | mit | BakeCode/performance-testing,BakeCode/performance-testing | ---
+++
@@ -10,15 +10,17 @@
def test_init(self):
config = Config(host=self.host)
self.assertEqual(self.host, config.host)
- self.assertEqual([], config.requests)
+ self.assertListEqual([], config.requests)
+ self.assertEqual(10, config.do_requests_count)
+ self.asser... |
9622a7dbac8fdaa97121b638aa72d43c446cb71c | astroquery/ogle/__init__.py | astroquery/ogle/__init__.py | # Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
OGLE Query Tool
---------------
:Author: Brian Svoboda (svobodb@email.arizona.edu)
This package is for querying interstellar extinction toward the Galactic bulge
from OGLE-III data hosted at: http://ogle.astrouw.edu.pl/cgi-ogle/getext.py.
Note:
If... | # Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
OGLE Query Tool
---------------
:Author: Brian Svoboda (svobodb@email.arizona.edu)
This package is for querying interstellar extinction toward the Galactic bulge
from OGLE-III data
`hosted at. <http://ogle.astrouw.edu.pl/cgi-ogle/getext.py>`_
Note:
... | Add reST link for sphinx | Add reST link for sphinx
| Python | bsd-3-clause | imbasimba/astroquery,ceb8/astroquery,imbasimba/astroquery,ceb8/astroquery | ---
+++
@@ -6,7 +6,8 @@
:Author: Brian Svoboda (svobodb@email.arizona.edu)
This package is for querying interstellar extinction toward the Galactic bulge
-from OGLE-III data hosted at: http://ogle.astrouw.edu.pl/cgi-ogle/getext.py.
+from OGLE-III data
+`hosted at. <http://ogle.astrouw.edu.pl/cgi-ogle/getext.py>`_... |
1f9edc409029556bb943655de311f47dfd4c2237 | src/hijri_converter/__init__.py | src/hijri_converter/__init__.py | __version__ = "2.1.2"
| """Accurate Hijri-Gregorian date converter based on the Umm al-Qura calendar"""
__version__ = "2.1.2"
| Add summary to package init | Add summary to package init
| Python | mit | dralshehri/hijri-converter | ---
+++
@@ -1 +1,3 @@
+"""Accurate Hijri-Gregorian date converter based on the Umm al-Qura calendar"""
+
__version__ = "2.1.2" |
562cad4342f9daff31ae383d96b2d86cabdca8fd | setup.py | setup.py | from distutils.core import setup, Extension
data_files = ["inpout32.dll"]
setup(name='PortFunctions', version='1.1',
description = 'A Windows port reader for Python, built in C',
author = 'Bradley Poulette',
author_email = 'bpoulett@ualberta.ca',
data_files = data_files,
ext_modules=[Ext... | from distutils.core import setup, Extension
data_files = [("DLLs", ["inpout32.dll"])]
setup(name='PortFunctions', version='1.1',
description = 'A Windows port reader for Python, built in C',
author = 'Bradley Poulette',
author_email = 'bpoulett@ualberta.ca',
data_files = data_files,
ext_... | Revert "Moved inpout32.dll from DLLs to Python27" | Revert "Moved inpout32.dll from DLLs to Python27"
This reverts commit 9274a30ba7c3ee82e4f5a94c276f26fa03d5fe89.
| Python | apache-2.0 | chickendiver/PortFunctions,chickendiver/PortFunctions | ---
+++
@@ -1,6 +1,6 @@
from distutils.core import setup, Extension
-data_files = ["inpout32.dll"]
+data_files = [("DLLs", ["inpout32.dll"])]
setup(name='PortFunctions', version='1.1',
description = 'A Windows port reader for Python, built in C', |
0cb6291d4134f527cc1bb905af836918c6994b13 | setup.py | setup.py | #!/usr/bin/env python3
from setuptools import find_packages, setup
dependency_links = [
'https://github.com/m157q/robobrowser/tarball/babf6dd#egg=robobrowser-0.5.3'
]
install_requires = [
'beautifulsoup4==4.4.1',
'dryscrape==1.0',
'requests==2.10.0',
'robobrowser==0.5.3',
]
setup(
packages=fi... | #!/usr/bin/env python3
from setuptools import find_packages, setup
dependency_links = [
'https://github.com/m157q/robobrowser/tarball/babf6dd#egg=robobrowser-0.5.3'
]
install_requires = [
'beautifulsoup4==4.4.1',
'dryscrape==1.0',
'requests==2.10.0',
'robobrowser==0.5.3',
]
setup(
packages=fi... | Fix for error when no X window detected. | [v0.1.2] Fix for error when no X window detected.
| Python | mit | M157q/gettitle | ---
+++
@@ -18,7 +18,7 @@
dependency_links=dependency_links,
install_requires=install_requires,
name='gettitle',
- version='0.1.1',
+ version='0.1.2',
author='Shun-Yi Jheng',
author_email='M157q.tw@gmail.com',
url="https://github.com/M157q/gettitle", |
1ed2f877556fb4a99f9e71177c1ada7585ed9a30 | setup.py | setup.py | from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
setup(
name='urbansim',
version='0.2dev',
description='Tool for modeling metropolitan real estate markets',
author='Synthicity',
author_email='ffoti@berkeley.edu',
license='AGPL',
u... | from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
setup(
name='urbansim',
version='0.2dev',
description='Tool for modeling metropolitan real estate markets',
author='Synthicity',
author_email='ffoti@berkeley.edu',
license='AGPL',
u... | Change compile CLI entry point name to urbansim_compile. | Change compile CLI entry point name to urbansim_compile.
| Python | bsd-3-clause | synthicity/urbansim,UDST/urbansim,UDST/urbansim,bricegnichols/urbansim,apdjustino/urbansim,synthicity/urbansim,AZMAG/urbansim,bricegnichols/urbansim,ual/urbansim,apdjustino/urbansim,VladimirTyrin/urbansim,ual/urbansim,UDST/urbansim,AZMAG/urbansim,waddell/urbansim,VladimirTyrin/urbansim,waddell/urbansim,waddell/urbansim... | ---
+++
@@ -32,7 +32,7 @@
],
entry_points={
'console_scripts': [
- 'usimcompile = synthicity.urbansim.compilecli:main'
+ 'urbansim_compile = synthicity.urbansim.compilecli:main'
]
}
) |
9c4fb8e031b2856c0cb425d64b0e7d032a4b5a19 | setup.py | setup.py | #!/usr/bin/env python
import os
try:
import setuptools
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup
NAME = 'chash'
VERSION = '0.1.0'
AUTHOR = 'Lev Givon'
AUTHOR_EMAIL = 'lev@columbia.edu'
URL = 'http... | #!/usr/bin/env python
import os
try:
import setuptools
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup
NAME = 'chash'
VERSION = '0.1.0'
AUTHOR = 'Lev Givon'
AUTHOR_EMAIL = 'lev@columbia.edu'
URL = 'http... | Add cachetools to install reqs. | Add cachetools to install reqs.
| Python | bsd-3-clause | lebedov/chash | ---
+++
@@ -48,6 +48,7 @@
packages = ['chash'],
test_suite = 'tests',
install_requires = [
+ 'cachetools',
'numpy',
'pandas',
'xxh']) |
a85dda3ae44782e897384e046b37b7de5811cef2 | setup.py | setup.py | from setuptools import find_packages, setup
setup(
name='satnogsclient',
version='0.2.5',
url='https://github.com/satnogs/satnogs-client/',
author='SatNOGS team',
author_email='client-dev@satnogs.org',
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
... | from setuptools import find_packages, setup
setup(
name='satnogsclient',
version='0.2.5',
url='https://github.com/satnogs/satnogs-client/',
author='SatNOGS project',
author_email='dev@satnogs.org',
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
... | Fix author name and email | Fix author name and email
| Python | agpl-3.0 | adamkalis/satnogs-client,adamkalis/satnogs-client | ---
+++
@@ -5,8 +5,8 @@
name='satnogsclient',
version='0.2.5',
url='https://github.com/satnogs/satnogs-client/',
- author='SatNOGS team',
- author_email='client-dev@satnogs.org',
+ author='SatNOGS project',
+ author_email='dev@satnogs.org',
classifiers=[
'Development Status ::... |
e9a445a4c12986680654e1ccb2feb3917ccbd263 | setup.py | setup.py | from setuptools import setup, find_packages
setup(name='addressable',
description='Use lists like you would dictionaries.',
long_description=open('README.rst').read(),
author='Stijn Debrouwere',
author_email='stijn@stdout.be',
url='http://stdbrouw.github.com/python-addressable/',
do... | from setuptools import setup, find_packages
setup(name='addressable',
description='Use lists like you would dictionaries.',
long_description=open('README.rst').read(),
author='Stijn Debrouwere',
author_email='stijn@debrouwere.org',
url='https://github.com/debrouwere/python-addressable/',
... | Fix faulty URL reference in the package metadata. | Fix faulty URL reference in the package metadata.
| Python | isc | debrouwere/python-addressable | ---
+++
@@ -4,10 +4,10 @@
description='Use lists like you would dictionaries.',
long_description=open('README.rst').read(),
author='Stijn Debrouwere',
- author_email='stijn@stdout.be',
- url='http://stdbrouw.github.com/python-addressable/',
- download_url='http://www.github.com/std... |
8f70e822a53ec4d00764c97e65597078c5e0c2b7 | setup.py | setup.py | import sys
import setuptools
def read_long_description():
with open('README.rst') as f:
data = f.read()
with open('CHANGES.rst') as f:
data += '\n\n' + f.read()
return data
importlib_req = ['importlib'] if sys.version_info < (2,7) else []
argparse_req = ['argparse'] if sys.ver... | import sys
import setuptools
def read_long_description():
with open('README.rst') as f:
data = f.read()
with open('CHANGES.rst') as f:
data += '\n\n' + f.read()
return data
importlib_req = ['importlib'] if sys.version_info < (2,7) else []
argparse_req = ['argparse'] if sys.ver... | Remove upper bound on jaraco.util. Incompatibility will be handled as it's encountered. | Remove upper bound on jaraco.util. Incompatibility will be handled as it's encountered.
| Python | mit | jaraco/irc | ---
+++
@@ -33,7 +33,7 @@
],
install_requires=[
'six',
- 'jaraco.util<10dev',
+ 'jaraco.util',
] + importlib_req + argparse_req,
setup_requires=[
'hgtools', |
084f70c87cf4a22d797ac282ba7f074802f6e6b3 | setup.py | setup.py | #! /usr/bin/env python
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
setup(name='rafem',
version='0.1.0',
author='Katherine Ratliff',
author_email='k.ratliff@duke.edu',
description='River Avulsion Flooplain Evolution Model',
long_descrip... | #! /usr/bin/env python
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
from model_metadata.utils import get_cmdclass, get_entry_points
pymt_components = [
(
"BmiRiverModule=rafem:BmiRiverModule",
".bmi",
)
]
setup(name='rafem',
version=... | Install rafem as a pymt component. | Install rafem as a pymt component.
| Python | mit | katmratliff/avulsion-bmi,mcflugen/avulsion-bmi | ---
+++
@@ -2,6 +2,16 @@
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
+
+from model_metadata.utils import get_cmdclass, get_entry_points
+
+
+pymt_components = [
+ (
+ "BmiRiverModule=rafem:BmiRiverModule",
+ ".bmi",
+ )
+]
setup(name='ra... |
6327b3f0f7f27647bac4d169169f3d727fdfabc4 | setup.py | setup.py | from setuptools import setup, find_packages
setup(
name='jupyterhub-kubespawner',
version='0.5.1',
install_requires=[
'jupyterhub',
'pyyaml',
],
setup_requires=['pytest-runner'],
tests_require=['pytest'],
description='JupyterHub Spawner targetting Kubernetes',
url='http:... | from setuptools import setup, find_packages
setup(
name='jupyterhub-kubespawner',
version='0.5.1',
install_requires=[
'jupyterhub',
'pyyaml',
'pycurl'
],
setup_requires=['pytest-runner'],
tests_require=['pytest'],
description='JupyterHub Spawner targetting Kubernetes... | Add pycurl as a dependency | Add pycurl as a dependency
| Python | bsd-3-clause | ktong/kubespawner,jupyterhub/kubespawner,jbmarcille/kubespawner,yuvipanda/jupyterhub-kubernetes-spawner | ---
+++
@@ -6,6 +6,7 @@
install_requires=[
'jupyterhub',
'pyyaml',
+ 'pycurl'
],
setup_requires=['pytest-runner'],
tests_require=['pytest'], |
cf3ba1d37ebcb037c7116097c55814c3af5f9512 | setup.py | setup.py | from setuptools import setup, find_packages
setup(
name='django-txtlocal',
packages=find_packages(),
include_package_data=True,
install_requires=['requests>=1.2.3'],
version='0.2',
description='App for sending and receiving SMS messages via http://www.textlocal.com',
author='Incuna Ltd',
... | from setuptools import setup, find_packages
setup(
name='django-txtlocal',
packages=find_packages(),
include_package_data=True,
install_requires=['requests>=1.2.3'],
version='0.2',
description='App for sending and receiving SMS messages via http://www.textlocal.com',
long_description=open(... | Use readme in long description | Use readme in long description
| Python | bsd-2-clause | incuna/django-txtlocal | ---
+++
@@ -1,4 +1,5 @@
from setuptools import setup, find_packages
+
setup(
name='django-txtlocal',
@@ -7,6 +8,7 @@
install_requires=['requests>=1.2.3'],
version='0.2',
description='App for sending and receiving SMS messages via http://www.textlocal.com',
+ long_description=open('README.rs... |
3f9cac3b9c36398a3eb6dba4ece49fc3656a56b0 | setup.py | setup.py | import os
from setuptools import Extension, find_packages, setup
with open(os.path.join(os.path.dirname(__file__), "README.md")) as f:
long_description = f.read()
setup(
name="pyinstrument",
packages=find_packages(include=["pyinstrument", "pyinstrument.*"]),
version="4.1.1",
ext_modules=[
... | import os
from pathlib import Path
from setuptools import Extension, find_packages, setup
PROJECT_ROOT = Path(__file__).parent
long_description = (PROJECT_ROOT / "README.md").read_text(encoding="utf8")
setup(
name="pyinstrument",
packages=find_packages(include=["pyinstrument", "pyinstrument.*"]),
version... | Add encoding to README read | Add encoding to README read
| Python | bsd-3-clause | joerick/pyinstrument,joerick/pyinstrument,joerick/pyinstrument,joerick/pyinstrument,joerick/pyinstrument,joerick/pyinstrument | ---
+++
@@ -1,9 +1,10 @@
import os
+from pathlib import Path
from setuptools import Extension, find_packages, setup
-with open(os.path.join(os.path.dirname(__file__), "README.md")) as f:
- long_description = f.read()
+PROJECT_ROOT = Path(__file__).parent
+long_description = (PROJECT_ROOT / "README.md").read_... |
f7709dc6de24c1acb36abcfd3d07f2b3a5130dfa | setup.py | setup.py | #!/usr/bin/env python
# Copyright (c) 2014, Michael Boyle
# See LICENSE file for details: <https://github.com/moble/spherical_functions/blob/master/LICENSE>
from distutils.core import setup
setup(name='spherical_functions',
version='1.0',
description='Python/numba implementation of Wigner D Matrices, spi... | #!/usr/bin/env python
# Copyright (c) 2014, Michael Boyle
# See LICENSE file for details: <https://github.com/moble/spherical_functions/blob/master/LICENSE>
from distutils.core import setup
setup(name='spherical_functions',
version='1.0',
description='Python/numba implementation of Wigner D Matrices, spi... | Include dot so that data files don't get their first letters cut off | Include dot so that data files don't get their first letters cut off
| Python | mit | moble/spherical_functions | ---
+++
@@ -12,6 +12,6 @@
# author_email='',
url='https://github.com/moble/spherical_functions',
packages=['spherical_functions',],
- package_dir={'spherical_functions': ''},
+ package_dir={'spherical_functions': '.'},
package_data={'spherical_functions': ['*.npy']},
) |
c3103d881024cef6a7790d47e4937838cf97c4a5 | setup.py | setup.py | # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
setup(
name="releng-sop",
version="0.1",
description="Release Enginering Standard Operating Procedures",
url="https://github.com/release-engineering/releng-sop.git",
author="Daniel Mach",
author_email="dmach@redhat.com",
... | # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
setup(
name="releng-sop",
version="0.1",
description="Release Enginering Standard Operating Procedures",
url="https://github.com/release-engineering/releng-sop.git",
author="Daniel Mach",
author_email="dmach@redhat.com",
... | Add xdg as a dependency | Add xdg as a dependency
| Python | mit | release-engineering/releng-sop,release-engineering/releng-sop | ---
+++
@@ -12,6 +12,9 @@
author="Daniel Mach",
author_email="dmach@redhat.com",
license="MIT",
+ install_requires=[
+ "pyxdg"
+ ],
packages=find_packages(),
include_package_data=True,
scripts=[ |
55718e4cc706341058d8bd2192598f9fa6ca8e22 | setup.py | setup.py | from __future__ import absolute_import
from __future__ import division
from __future__ import unicode_literals
from setuptools import setup
setup(
name='idlk',
version='0.0.1',
description='idlk lock filename generator',
author='Lorenz Schori',
author_email='lo@znerol.ch',
packages=['idlk'],
... | from __future__ import absolute_import
from __future__ import division
from __future__ import unicode_literals
from setuptools import setup
setup(
name='idlk',
version='0.0.9',
description='idlk lock filename generator',
author='Lorenz Schori',
author_email='lo@znerol.ch',
url='https://github.... | Add specifiers and bump version | Add specifiers and bump version
| Python | mit | znerol/py-idlk | ---
+++
@@ -6,11 +6,25 @@
setup(
name='idlk',
- version='0.0.1',
+ version='0.0.9',
description='idlk lock filename generator',
author='Lorenz Schori',
author_email='lo@znerol.ch',
+ url='https://github.com/znerol/py-idlk',
packages=['idlk'],
test_suite="idlk.test",
- zip_... |
0571579b98f516c208e6e84ae77abe25c4f248fc | setup.py | setup.py | """
scratchdir
~~~~~~~~~~
Context manager used to maintain your temporary directories/files.
:copyright: (c) 2017 Andrew Hawker.
:license: Apache 2.0, see LICENSE for more details.
"""
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(
name=... | """
scratchdir
~~~~~~~~~~
Context manager used to maintain your temporary directories/files.
:copyright: (c) 2017 Andrew Hawker.
:license: Apache 2.0, see LICENSE for more details.
"""
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
def get_long_des... | Use README.rst as long_description for package info. | Use README.rst as long_description for package info.
| Python | apache-2.0 | ahawker/scratchdir | ---
+++
@@ -13,6 +13,11 @@
from distutils.core import setup
+def get_long_description():
+ with open('README.rst') as f:
+ return f.read()
+
+
setup(
name='scratchdir',
version='0.0.3',
@@ -21,7 +26,7 @@
url='https://github.com/ahawker/scratchdir',
license='Apache 2.0',
de... |
e7a6eb6f63356f19a6deafb0b087f8deedc363c2 | setup.py | setup.py | from setuptools import setup
dependencies = [
'requests~=2.7'
]
setup(
name='eclipsegen',
version='0.4.1',
description='Generate Eclipse instances in Python',
url='http://github.com/Gohla/eclipsegen',
author='Gabriel Konat',
author_email='gabrielkonat@gmail.com',
license='Apache 2.0',
packages=['ecl... | from setuptools import setup
from setuptools.command.develop import develop
from setuptools.command.install import install
import os
dependencies = [
'requests~=2.7'
]
class PostDevelopCommand(develop):
def run(self):
make_director_executable()
class PostInstallCommand(install):
def run(self):
make_dir... | Make director scripts executable after installing, as they does not always seem to be executable. | Make director scripts executable after installing, as they does not always seem to be executable.
| Python | apache-2.0 | Gohla/eclipsegen,Gohla/eclipsegen,Gohla/eclipsegen,Gohla/eclipsegen | ---
+++
@@ -1,12 +1,30 @@
from setuptools import setup
+from setuptools.command.develop import develop
+from setuptools.command.install import install
+import os
dependencies = [
'requests~=2.7'
]
+class PostDevelopCommand(develop):
+ def run(self):
+ make_director_executable()
+
+class PostInstallComma... |
b635eddbe3ad344b02ecae47333a4ddf4b17cd18 | bin/remotePush.py | bin/remotePush.py | import json,httplib
config_file = open('conf/net/ext_service/parse.json')
silent_push_msg = {
"where": {
"deviceType": "ios"
},
"data": {
# "alert": "The Mets scored! The game is now tied 1-1.",
"content-available": 1,
"sound": "",
}
}
parse_headers = {
"X-Parse-Application-Id": co... | import json,httplib
config_data = json.load(open('conf/net/ext_service/parse.json'))
silent_push_msg = {
"where": {
"deviceType": "ios"
},
"data": {
# "alert": "The Mets scored! The game is now tied 1-1.",
"content-available": 1,
"sound": "",
}
}
parse_headers = {
"X-Parse-Applicat... | Fix minor issue in remote push | Fix minor issue in remote push
We need to open the file and then parse it as json
| Python | bsd-3-clause | joshzarrabi/e-mission-server,sunil07t/e-mission-server,joshzarrabi/e-mission-server,yw374cornell/e-mission-server,e-mission/e-mission-server,joshzarrabi/e-mission-server,joshzarrabi/e-mission-server,shankari/e-mission-server,yw374cornell/e-mission-server,e-mission/e-mission-server,e-mission/e-mission-server,sunil07t/e-... | ---
+++
@@ -1,6 +1,6 @@
import json,httplib
-config_file = open('conf/net/ext_service/parse.json')
+config_data = json.load(open('conf/net/ext_service/parse.json'))
silent_push_msg = {
"where": {
@@ -14,8 +14,8 @@
}
parse_headers = {
- "X-Parse-Application-Id": config_file["emission_id"],
- "X-Parse... |
6b667b62ad1987c2a312a918df77c0ebb77af298 | setup.py | setup.py | #!/usr/bin/env python
try:
from setuptools import setup, find_packages
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
tests_require = [
'django',
'django-celery',
'south',
'django-haystack',
]
setup(
name='djang... | #!/usr/bin/env python
try:
from setuptools import setup, find_packages
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
tests_require = [
'django',
'django-celery',
'south',
'django-haystack',
'whoosh',
]
setup(
... | Add whoosh as test dependancy | Add whoosh as test dependancy
| Python | bsd-3-clause | beniwohli/apm-agent-python,songyi199111/sentry,looker/sentry,jbarbuto/raven-python,jmp0xf/raven-python,arthurlogilab/raven-python,mvaled/sentry,looker/sentry,someonehan/raven-python,collective/mr.poe,felixbuenemann/sentry,Goldmund-Wyldebeast-Wunderliebe/raven-python,pauloschilling/sentry,1tush/sentry,nikolas/raven-pyth... | ---
+++
@@ -12,6 +12,7 @@
'django-celery',
'south',
'django-haystack',
+ 'whoosh',
]
setup( |
3315ce5ce730f0607c16864e12b6bbb7b2a1c69e | setup.py | setup.py | from distutils.core import setup
import sslserver
setup(name="django-sslserver",
version=sslserver.__version__,
author="Ted Dziuba",
author_email="tjdziuba@gmail.com",
description="An SSL-enabled development server for Django",
url="https://github.com/teddziuba/django-sslserver",
pa... | from distutils.core import setup
import sslserver
setup(name="django-sslserver",
version=sslserver.__version__,
author="Ted Dziuba",
author_email="tjdziuba@gmail.com",
description="An SSL-enabled development server for Django",
url="https://github.com/teddziuba/django-sslserver",
pa... | Fix Django dependency: update Django version from 1.4 to 1.8 | Fix Django dependency: update Django version from 1.4 to 1.8
| Python | mit | teddziuba/django-sslserver | ---
+++
@@ -15,6 +15,6 @@
"certs/development.key",
"certs/server.csr"]},
install_requires=["setuptools",
- "Django >= 1.4"],
+ "Django >= 1.8"],
license="MIT"
) |
f75d3c71bbcebbfa574d83ff336f55d36dce4d48 | setup.py | setup.py | from distutils.core import setup
files = ["*.css"]
setup(
name="junit2html",
version="023",
description="Generate HTML reports from Junit results",
author="Ian Norton",
author_email="inorton@gmail.com",
url="https://gitlab.com/inorton/junit2html",
packages=["junit2htmlreport"],
packag... | from distutils.core import setup
files = ["*.css"]
setup(
name="junit2html",
version="023",
description="Generate HTML reports from Junit results",
author="Ian Norton",
author_email="inorton@gmail.com",
url="https://gitlab.com/inorton/junit2html",
packages=["junit2htmlreport"],
packag... | Use entry_point instead of script for Windows (from sirhcel on github) | Use entry_point instead of script for Windows
(from sirhcel on github) | Python | mit | inorton/junit2html | ---
+++
@@ -12,7 +12,7 @@
url="https://gitlab.com/inorton/junit2html",
packages=["junit2htmlreport"],
package_data={"junit2htmlreport": files},
- scripts=["junit2html"],
+ entry_points={'console_scripts': ['junit2html=junit2htmlreport.runner:start']},
platforms=["any"],
license="License... |
8bb278bdba0d6325d3c9b7fbc26807e36fa90cdd | setup.py | setup.py | from setuptools import setup
setup(
name='guzzle_sphinx_theme',
version='0.7.11',
description='Sphinx theme used by Guzzle.',
long_description=open('README.rst').read(),
author='Michael Dowling',
author_email='mtdowling@gmail.com',
url='https://github.com/guzzle/guzzle_sphinx_theme',
pa... | from setuptools import setup
setup(
name='guzzle_sphinx_theme',
version='0.7.11',
description='Sphinx theme used by Guzzle.',
long_description=open('README.rst').read(),
author='Michael Dowling',
author_email='mtdowling@gmail.com',
url='https://github.com/guzzle/guzzle_sphinx_theme',
pa... | Add license meta for pypi | Add license meta for pypi
Add license meta for pypi. | Python | mit | guzzle/guzzle_sphinx_theme,guzzle/guzzle_sphinx_theme | ---
+++
@@ -11,6 +11,7 @@
packages=['guzzle_sphinx_theme'],
include_package_data=True,
install_requires=['Sphinx>1.3'],
+ license="MIT",
classifiers=(
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers', |
cdfd38a552f0f1bf0738e8c2d02f40c44db3fee3 | setup.py | setup.py | ### -*- coding: utf-8 -*-
###
### © 2012 Krux Digital, Inc.
### Author: Paul Lathrop <paul@krux.com>
###
from setuptools import setup, find_packages
setup(name='pysecurity-groups',
version="0.0.1",
description='Library for working with EC2 security groups in bulk.',
author='Paul Lathrop',
auth... | ### -*- coding: utf-8 -*-
###
### © 2012 Krux Digital, Inc.
### Author: Paul Lathrop <paul@krux.com>
###
from setuptools import setup, find_packages
setup(name='pysecurity-groups',
version="1.0.0",
description='Library for working with EC2 security groups in bulk.',
author='Paul Lathrop',
auth... | Update release version to 1.0.0 | Update release version to 1.0.0
| Python | mit | krux/pysecurity-groups | ---
+++
@@ -7,7 +7,7 @@
from setuptools import setup, find_packages
setup(name='pysecurity-groups',
- version="0.0.1",
+ version="1.0.0",
description='Library for working with EC2 security groups in bulk.',
author='Paul Lathrop',
author_email='paul@krux.com', |
c4ab1f10227fa98158127a390ab6b2a2b472a972 | setup.py | setup.py | import codecs
from os.path import join, dirname
from setuptools import setup, find_packages
version = '1.0dev'
read = lambda *rnames: unicode(codecs.open(join(dirname(__file__), *rnames),
encoding='utf-8').read()).strip()
setup(
name='sourcebuilder',
version=version... | import codecs
from os.path import join, dirname
from setuptools import setup, find_packages
version = '1.0dev'
read = lambda *rnames: unicode(codecs.open(join(dirname(__file__), *rnames),
encoding='utf-8').read()).strip()
setup(
name='sourcebuilder',
version=version... | Use github repo as package url. | Use github repo as package url.
| Python | mit | jaap3/sourcebuilder | ---
+++
@@ -14,7 +14,7 @@
long_description='\n\n'.join((read('README.rst'), read('CHANGES.rst'),)),
author='Jaap Roes',
author_email='jaap.roes@gmail.com',
- url='',
+ url='https://github.com/jaap3/sourcebuilder',
packages=find_packages(),
license='MIT',
classifiers=[ |
dd7b0abe5cdd94c90af5705b261463285f70d2d2 | setup.py | setup.py | '''
Flask-Cent
-----------
Flask-Cent is a flask extension for centrifugal/cent
'''
import os
import sys
from setuptools import setup
module_path = os.path.join(os.path.dirname(__file__), 'flask_cent.py')
version_line = [line for line in open(module_path)
if line.startswith('__version_inf... | '''
Flask-Cent
-----------
Flask-Cent is a flask extension for centrifugal/cent
'''
import os
import sys
from setuptools import setup
module_path = os.path.join(os.path.dirname(__file__), 'flask_cent.py')
version_line = [line for line in open(module_path)
if line.startswith('__version_inf... | Make cent package a requirement | Make cent package a requirement
| Python | mit | breakbase/flask-cent | ---
+++
@@ -30,6 +30,7 @@
install_requires=[
'Flask',
'blinker',
+ 'cent',
],
tests_require=[
'nose', |
f9784cd3f03094ab92e58c5168300f068668f905 | setup.py | setup.py | #!/usr/bin/env python
from distutils.core import setup
setup(name='OpenSDraw',
version='0.0.2',
description='A CAD program similar to OpenSCAD but for LEGO(R).',
author='Hazen Babcock',
author_email='hbabcock@mac.com',
packages=['opensdraw'],
install_requires['numpy', 'rply', 'scip... | #!/usr/bin/env python
from distutils.core import setup
setup(name='OpenSDraw',
version='0.0.2',
description='A CAD program similar to OpenSCAD but for LEGO(R).',
author='Hazen Babcock',
author_email='hbabcock@mac.com',
packages=['opensdraw'],
install_requires=['numpy', 'rply', 'sci... | Fix incorrect specification for install_requires. | Fix incorrect specification for install_requires.
| Python | mit | HazenBabcock/opensdraw | ---
+++
@@ -8,5 +8,5 @@
author='Hazen Babcock',
author_email='hbabcock@mac.com',
packages=['opensdraw'],
- install_requires['numpy', 'rply', 'scipy']
+ install_requires=['numpy', 'rply', 'scipy']
) |
8ed290524a4e8459bd448521633be62600df42fd | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup, find_packages
with open("README.md", "r") as fh:
long_description = fh.read()
setup(
name='malwareconfig',
version='1.0.3',
author='Kevin Breen',
author_email='thehermit@malwareconfig.com',
description="Malware Config Extraction",
long_de... | #!/usr/bin/env python3
from setuptools import setup, find_packages
with open("README.md", encoding='utf8') as fh:
long_description = fh.read()
setup(
name='malwareconfig',
version='1.0.3',
author='Kevin Breen',
author_email='thehermit@malwareconfig.com',
description="Malware Config Extraction"... | Modify encoding for open README to prevent ascii errors | Modify encoding for open README to prevent ascii errors
| Python | mit | kevthehermit/RATDecoders | ---
+++
@@ -1,7 +1,7 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
from setuptools import setup, find_packages
-with open("README.md", "r") as fh:
+with open("README.md", encoding='utf8') as fh:
long_description = fh.read()
setup( |
6d5d9e72125e5d281af3a93a83974c47e3400b95 | tasks.py | tasks.py | from arctasks import lint # noqa
from arctasks.python import show_upgraded_packages # noqa
from arctasks.release import * # noqa
| from arctasks.base import lint # noqa
from arctasks.python import show_upgraded_packages # noqa
from arctasks.release import * # noqa
| Fix lint task import path | Fix lint task import path
| Python | mit | wylee/django-arcutils,wylee/django-arcutils,PSU-OIT-ARC/django-arcutils,PSU-OIT-ARC/django-arcutils | ---
+++
@@ -1,3 +1,3 @@
-from arctasks import lint # noqa
+from arctasks.base import lint # noqa
from arctasks.python import show_upgraded_packages # noqa
from arctasks.release import * # noqa |
46bf4915426b14db84c46a0109645a3a0f3fa94d | mando/__init__.py | mando/__init__.py | __version__ = '0.3.2'
try:
from mando.core import Program
except ImportError as e: # unfortunately this is the only workaround for argparse
# and Python 2.6
e.version = __version__
raise e
main = Program()
command = main.command
arg = main.arg
parse = main.parse
execute = main.e... | __version__ = '0.3.2'
try:
from mando.core import Program
except ImportError as e: # pragma: no cover
# unfortunately the only workaround for Python2.6, argparse and setup.py
e.version = __version__
raise e
main = Program()
command = main.command
arg = main.arg
parse = main.parse
execute = main.execu... | Add a pragma comment to importerror | Add a pragma comment to importerror
| Python | mit | rubik/mando,MarioSchwalbe/mando,MarioSchwalbe/mando | ---
+++
@@ -2,8 +2,8 @@
try:
from mando.core import Program
-except ImportError as e: # unfortunately this is the only workaround for argparse
- # and Python 2.6
+except ImportError as e: # pragma: no cover
+ # unfortunately the only workaround for Python2.6, argparse and setup.p... |
62151b04bd46fc1f586b179cdaeeca8ba3e18fed | markups/common.py | markups/common.py | # This file is part of python-markups module
# License: BSD
# Copyright: (C) Dmitry Shachnev, 2012
import os.path
# Some common constants and functions
(LANGUAGE_HOME_PAGE, MODULE_HOME_PAGE, SYNTAX_DOCUMENTATION) = range(3)
CONFIGURATION_DIR = (os.environ.get('XDG_CONFIG_HOME') or
os.path.expanduser('~/.config'))
MA... | # This file is part of python-markups module
# License: BSD
# Copyright: (C) Dmitry Shachnev, 2012
import os.path
# Some common constants and functions
(LANGUAGE_HOME_PAGE, MODULE_HOME_PAGE, SYNTAX_DOCUMENTATION) = range(3)
CONFIGURATION_DIR = (os.environ.get('XDG_CONFIG_HOME') or
os.path.expanduser('~/.config'))
MA... | Use HTTPS url for MathJax script | Use HTTPS url for MathJax script
| Python | bsd-3-clause | mitya57/pymarkups,retext-project/pymarkups | ---
+++
@@ -9,7 +9,7 @@
CONFIGURATION_DIR = (os.environ.get('XDG_CONFIG_HOME') or
os.path.expanduser('~/.config'))
MATHJAX_LOCAL_URL = 'file:///usr/share/javascript/mathjax/MathJax.js'
-MATHJAX_WEB_URL = 'http://cdn.mathjax.org/mathjax/latest/MathJax.js'
+MATHJAX_WEB_URL = 'https://cdn.mathjax.org/mathjax/latest/... |
ed98c04ed7d5e99422a65fbdbf45f222aca408ca | poradnia/template_mail/utils.py | poradnia/template_mail/utils.py | from django.template import loader, Context
from django.core.mail import send_mail
from django.conf import settings
def send_tpl_email(template_name, recipient_list, context=None, from_email=None, **kwds):
t = loader.get_template(template_name)
c = Context(context or {})
subject, txt = t.render(c).split("... | from django.template import loader, Context
from django.core.mail import send_mail
from django.conf import settings
def send_tpl_email(template_name, recipient_list, context=None, from_email=None, **kwds):
t = loader.get_template(template_name)
c = Context(context or {})
subject, txt = t.render(c).split("... | Fix new mail subject header bug | Fix new mail subject header bug
| Python | mit | watchdogpolska/poradnia.siecobywatelska.pl,rwakulszowa/poradnia,watchdogpolska/poradnia,watchdogpolska/poradnia.siecobywatelska.pl,watchdogpolska/poradnia.siecobywatelska.pl,rwakulszowa/poradnia,watchdogpolska/poradnia,rwakulszowa/poradnia,watchdogpolska/poradnia,watchdogpolska/poradnia,rwakulszowa/poradnia | ---
+++
@@ -8,7 +8,7 @@
c = Context(context or {})
subject, txt = t.render(c).split("\n", 1)
from_email = from_email if from_email else settings.DEFAULT_FROM_EMAIL
- send_mail(subject=subject,
+ send_mail(subject=subject.split(),
message=txt,
from_email=from_email,
... |
191ba72a2d8b2e47363fcdbd200549ff3eef18fb | plex/objects/library/section.py | plex/objects/library/section.py | from plex.core.helpers import to_iterable
from plex.objects.container import Container
from plex.objects.core.base import Property
from plex.objects.directory import Directory
class Section(Directory):
uuid = Property
filters = Property(type=bool)
refreshing = Property(type=bool)
agent = Property
... | from plex.core.helpers import to_iterable
from plex.objects.container import Container
from plex.objects.core.base import Property
from plex.objects.directory import Directory
class Section(Directory):
uuid = Property
filters = Property(type=bool)
refreshing = Property(type=bool)
agent = Property
... | Fix issue with "titles" in SectionContainer.filter() | Fix issue with "titles" in SectionContainer.filter()
| Python | mit | fuzeman/plex.py | ---
+++
@@ -42,7 +42,11 @@
types = to_iterable(types)
keys = to_iterable(keys)
- titles = [x.lower() for x in to_iterable(titles)]
+ titles = to_iterable(titles)
+
+ if titles:
+ # Normalize titles
+ titles = [x.lower() for x in titles]
for sec... |
1cdd8add2807ecedb7efb23428075423dcf9bfd2 | ehriportal/suggestions/forms.py | ehriportal/suggestions/forms.py | """Form for submitting suggestions."""
from django import forms
from suggestions import models
class SuggestionForm(forms.ModelForm):
name = forms.CharField(max_length=100, label="Name",
widget=forms.TextInput(attrs={'placeholder': 'Name'}))
email = forms.EmailField(label="Email", required=False,... | """Form for submitting suggestions."""
from django import forms
from django.utils.translation import ugettext as _
from suggestions import models
class SuggestionForm(forms.ModelForm):
name = forms.CharField(max_length=100, label=_("Name"),
widget=forms.TextInput(attrs={'placeholder': _('Name')}))
... | Add some translation stuff on the suggestion form | Add some translation stuff on the suggestion form
| Python | mit | mikesname/ehri-collections,mikesname/ehri-collections,mikesname/ehri-collections | ---
+++
@@ -1,19 +1,20 @@
"""Form for submitting suggestions."""
from django import forms
+from django.utils.translation import ugettext as _
from suggestions import models
class SuggestionForm(forms.ModelForm):
- name = forms.CharField(max_length=100, label="Name",
- widget=forms.TextInput(at... |
c21c2f4879c48b6a881b480df7bbfbff47ffffcc | src/mmw/apps/modeling/calcs.py | src/mmw/apps/modeling/calcs.py | # -*- coding: utf-8 -*-
from __future__ import print_function
from __future__ import unicode_literals
from __future__ import absolute_import
from django.contrib.gis.geos import GEOSGeometry
from django.conf import settings
from apps.modeling.mapshed.calcs import animal_energy_units
ANIMAL_KEYS = settings.GWLFE_CONF... | # -*- coding: utf-8 -*-
from __future__ import print_function
from __future__ import unicode_literals
from __future__ import absolute_import
from django.contrib.gis.geos import GEOSGeometry
from django.conf import settings
from apps.modeling.mapshed.calcs import animal_energy_units
ANIMAL_KEYS = settings.GWLFE_CONF... | Align animal population counts rounding | Align animal population counts rounding
- round animal population counts down for the frontend "analyze" display to match the MapShed implementation
| Python | apache-2.0 | WikiWatershed/model-my-watershed,project-icp/bee-pollinator-app,project-icp/bee-pollinator-app,WikiWatershed/model-my-watershed,project-icp/bee-pollinator-app,kdeloach/model-my-watershed,WikiWatershed/model-my-watershed,kdeloach/model-my-watershed,kdeloach/model-my-watershed,project-icp/bee-pollinator-app,WikiWatershed... | ---
+++
@@ -28,7 +28,7 @@
for animal, aeu_value in aeu_for_geom.iteritems():
aeu_return_values.append({
'type': ANIMAL_DISPLAY_NAMES[animal],
- 'aeu': int(round(aeu_value)),
+ 'aeu': int(aeu_value),
})
return { |
ae0158c49224464084e0302897c91e9c9fa7ffbe | webview.py | webview.py | """Main module for pyicemon webview"""
import SimpleHTTPServer
import SocketServer
import threading
import sys
import os
import logging
from monitor import Monitor
from publishers import WebsocketPublisher
from connection import Connection
PORT = 80
if __name__ == "__main__":
logging.basicConfig(level=logging.WA... | """Main module for pyicemon webview"""
# Handle difference in module name between python2/3.
try:
from SimpleHTTPServer import SimpleHTTPRequestHandler
except ImportError:
from http.server import SimpleHTTPRequestHandler
try:
from SocketServer import TCPServer
except ImportError:
from socketserver imp... | Make it work with python3. | Make it work with python3.
| Python | mit | DiscoViking/pyicemon,DiscoViking/pyicemon | ---
+++
@@ -1,7 +1,16 @@
"""Main module for pyicemon webview"""
-import SimpleHTTPServer
-import SocketServer
+# Handle difference in module name between python2/3.
+try:
+ from SimpleHTTPServer import SimpleHTTPRequestHandler
+except ImportError:
+ from http.server import SimpleHTTPRequestHandler
+
+try:
+ ... |
580eb57f68a8501cae925f747e94a8edb2c6a028 | accounts/tests.py | accounts/tests.py | """accounts app unittests
"""
from django.test import TestCase
from django.contrib.auth import get_user_model
class WelcomePageTest(TestCase):
"""Tests relating to the welcome_page view.
"""
def test_uses_welcome_template(self):
"""The root url should response with the welcome page template.
... | """accounts app unittests
"""
from django.test import TestCase
from django.contrib.auth import get_user_model
from accounts.models import LoginToken
TEST_EMAIL = 'newvisitor@example.com'
class WelcomePageTest(TestCase):
"""Tests relating to the welcome_page view.
"""
def test_uses_welcome_template(se... | Add unit test for LoginToken model | Add unit test for LoginToken model
| Python | mit | randomic/aniauth-tdd,randomic/aniauth-tdd | ---
+++
@@ -3,6 +3,11 @@
"""
from django.test import TestCase
from django.contrib.auth import get_user_model
+
+from accounts.models import LoginToken
+
+
+TEST_EMAIL = 'newvisitor@example.com'
class WelcomePageTest(TestCase):
@@ -22,10 +27,10 @@
"""
def test_user_valid_with_only_email(self):
- ... |
48d9e6c2d36b7c1beb11f6574624731a88cdccbc | accounts/views.py | accounts/views.py | from django.views.generic import View
from django.shortcuts import render
class MemberProfileView(View):
template_name = 'accounts/profile.html'
def get(self, request):
return render(request, self.template_name) | from django.views.generic import View
from django.shortcuts import render
from django.contrib.auth.mixins import LoginRequiredMixin
class MemberProfileView(LoginRequiredMixin, View):
login_url = '/accounts/login/'
redirect_field_name = 'redirect_to'
template_name = 'accounts/profile.html'
def get(sel... | Add login required mixin to user profile | Add login required mixin to user profile
| Python | mit | davidjrichardson/uwcs-zarya,davidjrichardson/uwcs-zarya | ---
+++
@@ -1,8 +1,11 @@
from django.views.generic import View
from django.shortcuts import render
+from django.contrib.auth.mixins import LoginRequiredMixin
-class MemberProfileView(View):
+class MemberProfileView(LoginRequiredMixin, View):
+ login_url = '/accounts/login/'
+ redirect_field_name = 'redire... |
44514a724fc8eff464d4c26a7e9c213644c99e53 | elasticsearch_flex/tasks.py | elasticsearch_flex/tasks.py | from celery import shared_task
@shared_task
def update_indexed_document(index, created, pk):
indexed_doc = index.init_using_pk(pk)
indexed_doc.prepare()
indexed_doc.save()
@shared_task
def delete_indexed_document(index, pk):
indexed_doc = index.get(id=pk)
indexed_doc.delete()
__all__ = ('updat... | from celery import shared_task
@shared_task(rate_limit='50/m')
def update_indexed_document(index, created, pk):
indexed_doc = index.init_using_pk(pk)
indexed_doc.prepare()
indexed_doc.save()
@shared_task
def delete_indexed_document(index, pk):
indexed_doc = index.get(id=pk)
indexed_doc.delete()
... | Add rate-limit to update_indexed_document task | Add rate-limit to update_indexed_document task
| Python | mit | prashnts/dj-elasticsearch-flex,prashnts/dj-elasticsearch-flex | ---
+++
@@ -1,7 +1,7 @@
from celery import shared_task
-@shared_task
+@shared_task(rate_limit='50/m')
def update_indexed_document(index, created, pk):
indexed_doc = index.init_using_pk(pk)
indexed_doc.prepare() |
063d88ed5d5f48114cdf566433ae40d40a8674f4 | nbgrader/utils.py | nbgrader/utils.py | import hashlib
import autopep8
def is_grade(cell):
"""Returns True if the cell is a grade cell."""
if 'nbgrader' not in cell.metadata:
return False
return cell.metadata['nbgrader'].get('grade', False)
def is_solution(cell):
"""Returns True if the cell is a solution cell."""
if 'nbgrader' ... | import hashlib
import autopep8
def is_grade(cell):
"""Returns True if the cell is a grade cell."""
if 'nbgrader' not in cell.metadata:
return False
return cell.metadata['nbgrader'].get('grade', False)
def is_solution(cell):
"""Returns True if the cell is a solution cell."""
if 'nbgrader' ... | Make sure points in checksum are consistent | Make sure points in checksum are consistent
| Python | bsd-3-clause | EdwardJKim/nbgrader,modulexcite/nbgrader,jupyter/nbgrader,jhamrick/nbgrader,jdfreder/nbgrader,dementrock/nbgrader,ellisonbg/nbgrader,ellisonbg/nbgrader,ellisonbg/nbgrader,jhamrick/nbgrader,alope107/nbgrader,dementrock/nbgrader,MatKallada/nbgrader,EdwardJKim/nbgrader,ellisonbg/nbgrader,MatKallada/nbgrader,jdfreder/nbgra... | ---
+++
@@ -37,7 +37,7 @@
# include number of points that the cell is worth
if 'points' in cell.metadata.nbgrader:
- m.update(cell.metadata.nbgrader['points'])
+ m.update(str(float(cell.metadata.nbgrader['points'])))
# include the grade_id
if 'grade_id' in cell.metadata.nbgrader: |
ed8b6b615bc8d006e3e31843fa31f0bda09109ed | spec/puzzle/examples/public_domain/zebra_puzzle_spec.py | spec/puzzle/examples/public_domain/zebra_puzzle_spec.py | import astor
from data import warehouse
from puzzle.examples.public_domain import zebra_puzzle
from puzzle.problems import logic_problem
from puzzle.puzzlepedia import prod_config
from spec.mamba import *
with _description('zebra_puzzle'):
with description('solution'):
with before.all:
warehouse.save()
... | import astor
from data import warehouse
from puzzle.examples.public_domain import zebra_puzzle
from puzzle.problems import logic_problem
from puzzle.puzzlepedia import prod_config
from spec.mamba import *
with _description('zebra_puzzle'):
with description('solution'):
with before.all:
warehouse.save()
... | Update zebra puzzle to reflect LogicProblem changes. | Update zebra puzzle to reflect LogicProblem changes.
| Python | mit | PhilHarnish/forge,PhilHarnish/forge,PhilHarnish/forge,PhilHarnish/forge,PhilHarnish/forge,PhilHarnish/forge | ---
+++
@@ -24,10 +24,13 @@
expect(problem).to(be_a(logic_problem.LogicProblem))
with it('parses expressions'):
- problem = self.subject.problems()[0]
- expect(astor.to_source(problem._parse())).to(
- look_like(zebra_puzzle.PARSED))
+ parsed = logic_problem._parse(zebra_puzzle.SO... |
b2a7171aa274a1d1bfa0653fc9963e52b44dc904 | example/example/settings.py | example/example/settings.py | import os
import dj_database_url
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
DEBUG = TEMPLATE_DEBUG = True
SECRET_KEY = 'example-app!'
ROOT_URLCONF = 'example.urls'
STATIC_URL = '/static/'
DATABASES = {'default': dj_database_url.config(
default='postgres://localhost/conman_example',
)}
DATABASES['d... | import os
import dj_database_url
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
DEBUG = True
SECRET_KEY = 'example-app!'
ROOT_URLCONF = 'example.urls'
STATIC_URL = '/static/'
DATABASES = {'default': dj_database_url.config(
default='postgres://localhost/conman_example',
)}
DATABASES['default']['ATOMIC_... | Fix TEMPLATES setting in example project | Fix TEMPLATES setting in example project
| Python | bsd-2-clause | meshy/django-conman,meshy/django-conman | ---
+++
@@ -4,7 +4,7 @@
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
-DEBUG = TEMPLATE_DEBUG = True
+DEBUG = True
SECRET_KEY = 'example-app!'
@@ -42,3 +42,22 @@
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
)
+
+
+TEMPLA... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.