commit
stringlengths 40
40
| old_file
stringlengths 4
118
| new_file
stringlengths 4
118
| old_contents
stringlengths 0
2.94k
| new_contents
stringlengths 1
4.43k
| subject
stringlengths 15
444
| message
stringlengths 16
3.45k
| lang
stringclasses 1
value | license
stringclasses 13
values | repos
stringlengths 5
43.2k
| prompt
stringlengths 17
4.58k
| response
stringlengths 1
4.43k
| prompt_tagged
stringlengths 58
4.62k
| response_tagged
stringlengths 1
4.43k
| text
stringlengths 132
7.29k
| text_tagged
stringlengths 173
7.33k
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5741aad8ddd7080c6a11dfd70b08ed28954d8817
|
setup.py
|
setup.py
|
from setuptools import setup, find_packages
version = '0.9.8'
setup(name='btsync.py',
version=version,
description="A Python API client for BitTorrent Sync",
long_description=open('README.md').read(),
classifiers=[
'Intended Audience :: Developers',
'Environment :: Console',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Topic :: Software Development :: Libraries :: Application Frameworks',
],
keywords='api',
author='Kevin Jing Qiu',
author_email='kevin.jing.qiu@gmail.com',
url='https://github.com/kevinjqiu/btsync.py',
license='MIT',
packages=find_packages(exclude=['ez_setup', 'examples', 'tests']),
data_files=[('.', ['requirements.txt', 'README.md', 'LICENSE'])],
include_package_data=True,
zip_safe=False,
install_requires=open('requirements.txt').readlines(),
entry_points={},
)
|
from setuptools import setup, find_packages
version = '0.9.8'
setup(name='btsync.py',
version=version,
description="A Python API client for BitTorrent Sync",
long_description=open('README.rst').read(),
classifiers=[
'Intended Audience :: Developers',
'Environment :: Console',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Topic :: Software Development :: Libraries :: Application Frameworks',
],
keywords='api',
author='Kevin Jing Qiu',
author_email='kevin.jing.qiu@gmail.com',
url='https://github.com/kevinjqiu/btsync.py',
license='MIT',
packages=find_packages(exclude=['ez_setup', 'examples', 'tests']),
data_files=[('.', ['requirements.txt', 'README.md', 'LICENSE'])],
include_package_data=True,
zip_safe=False,
install_requires=open('requirements.txt').readlines(),
entry_points={},
)
|
Use RST documentation by default
|
Use RST documentation by default
|
Python
|
mit
|
kevinjqiu/btsync.py
|
from setuptools import setup, find_packages
version = '0.9.8'
setup(name='btsync.py',
version=version,
description="A Python API client for BitTorrent Sync",
long_description=open('README.md').read(),
classifiers=[
'Intended Audience :: Developers',
'Environment :: Console',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Topic :: Software Development :: Libraries :: Application Frameworks',
],
keywords='api',
author='Kevin Jing Qiu',
author_email='kevin.jing.qiu@gmail.com',
url='https://github.com/kevinjqiu/btsync.py',
license='MIT',
packages=find_packages(exclude=['ez_setup', 'examples', 'tests']),
data_files=[('.', ['requirements.txt', 'README.md', 'LICENSE'])],
include_package_data=True,
zip_safe=False,
install_requires=open('requirements.txt').readlines(),
entry_points={},
)
Use RST documentation by default
|
from setuptools import setup, find_packages
version = '0.9.8'
setup(name='btsync.py',
version=version,
description="A Python API client for BitTorrent Sync",
long_description=open('README.rst').read(),
classifiers=[
'Intended Audience :: Developers',
'Environment :: Console',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Topic :: Software Development :: Libraries :: Application Frameworks',
],
keywords='api',
author='Kevin Jing Qiu',
author_email='kevin.jing.qiu@gmail.com',
url='https://github.com/kevinjqiu/btsync.py',
license='MIT',
packages=find_packages(exclude=['ez_setup', 'examples', 'tests']),
data_files=[('.', ['requirements.txt', 'README.md', 'LICENSE'])],
include_package_data=True,
zip_safe=False,
install_requires=open('requirements.txt').readlines(),
entry_points={},
)
|
<commit_before>from setuptools import setup, find_packages
version = '0.9.8'
setup(name='btsync.py',
version=version,
description="A Python API client for BitTorrent Sync",
long_description=open('README.md').read(),
classifiers=[
'Intended Audience :: Developers',
'Environment :: Console',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Topic :: Software Development :: Libraries :: Application Frameworks',
],
keywords='api',
author='Kevin Jing Qiu',
author_email='kevin.jing.qiu@gmail.com',
url='https://github.com/kevinjqiu/btsync.py',
license='MIT',
packages=find_packages(exclude=['ez_setup', 'examples', 'tests']),
data_files=[('.', ['requirements.txt', 'README.md', 'LICENSE'])],
include_package_data=True,
zip_safe=False,
install_requires=open('requirements.txt').readlines(),
entry_points={},
)
<commit_msg>Use RST documentation by default<commit_after>
|
from setuptools import setup, find_packages
version = '0.9.8'
setup(name='btsync.py',
version=version,
description="A Python API client for BitTorrent Sync",
long_description=open('README.rst').read(),
classifiers=[
'Intended Audience :: Developers',
'Environment :: Console',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Topic :: Software Development :: Libraries :: Application Frameworks',
],
keywords='api',
author='Kevin Jing Qiu',
author_email='kevin.jing.qiu@gmail.com',
url='https://github.com/kevinjqiu/btsync.py',
license='MIT',
packages=find_packages(exclude=['ez_setup', 'examples', 'tests']),
data_files=[('.', ['requirements.txt', 'README.md', 'LICENSE'])],
include_package_data=True,
zip_safe=False,
install_requires=open('requirements.txt').readlines(),
entry_points={},
)
|
from setuptools import setup, find_packages
version = '0.9.8'
setup(name='btsync.py',
version=version,
description="A Python API client for BitTorrent Sync",
long_description=open('README.md').read(),
classifiers=[
'Intended Audience :: Developers',
'Environment :: Console',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Topic :: Software Development :: Libraries :: Application Frameworks',
],
keywords='api',
author='Kevin Jing Qiu',
author_email='kevin.jing.qiu@gmail.com',
url='https://github.com/kevinjqiu/btsync.py',
license='MIT',
packages=find_packages(exclude=['ez_setup', 'examples', 'tests']),
data_files=[('.', ['requirements.txt', 'README.md', 'LICENSE'])],
include_package_data=True,
zip_safe=False,
install_requires=open('requirements.txt').readlines(),
entry_points={},
)
Use RST documentation by defaultfrom setuptools import setup, find_packages
version = '0.9.8'
setup(name='btsync.py',
version=version,
description="A Python API client for BitTorrent Sync",
long_description=open('README.rst').read(),
classifiers=[
'Intended Audience :: Developers',
'Environment :: Console',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Topic :: Software Development :: Libraries :: Application Frameworks',
],
keywords='api',
author='Kevin Jing Qiu',
author_email='kevin.jing.qiu@gmail.com',
url='https://github.com/kevinjqiu/btsync.py',
license='MIT',
packages=find_packages(exclude=['ez_setup', 'examples', 'tests']),
data_files=[('.', ['requirements.txt', 'README.md', 'LICENSE'])],
include_package_data=True,
zip_safe=False,
install_requires=open('requirements.txt').readlines(),
entry_points={},
)
|
<commit_before>from setuptools import setup, find_packages
version = '0.9.8'
setup(name='btsync.py',
version=version,
description="A Python API client for BitTorrent Sync",
long_description=open('README.md').read(),
classifiers=[
'Intended Audience :: Developers',
'Environment :: Console',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Topic :: Software Development :: Libraries :: Application Frameworks',
],
keywords='api',
author='Kevin Jing Qiu',
author_email='kevin.jing.qiu@gmail.com',
url='https://github.com/kevinjqiu/btsync.py',
license='MIT',
packages=find_packages(exclude=['ez_setup', 'examples', 'tests']),
data_files=[('.', ['requirements.txt', 'README.md', 'LICENSE'])],
include_package_data=True,
zip_safe=False,
install_requires=open('requirements.txt').readlines(),
entry_points={},
)
<commit_msg>Use RST documentation by default<commit_after>from setuptools import setup, find_packages
version = '0.9.8'
setup(name='btsync.py',
version=version,
description="A Python API client for BitTorrent Sync",
long_description=open('README.rst').read(),
classifiers=[
'Intended Audience :: Developers',
'Environment :: Console',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Topic :: Software Development :: Libraries :: Application Frameworks',
],
keywords='api',
author='Kevin Jing Qiu',
author_email='kevin.jing.qiu@gmail.com',
url='https://github.com/kevinjqiu/btsync.py',
license='MIT',
packages=find_packages(exclude=['ez_setup', 'examples', 'tests']),
data_files=[('.', ['requirements.txt', 'README.md', 'LICENSE'])],
include_package_data=True,
zip_safe=False,
install_requires=open('requirements.txt').readlines(),
entry_points={},
)
|
aacc8530ff1d2da53e4fc82bb2c9e0fd085039d5
|
setup.py
|
setup.py
|
#!/usr/bin/env python
"""omf: API Library for Open Mining Format"""
from distutils.core import setup
from setuptools import find_packages
CLASSIFIERS = [
'Development Status :: 4 - Beta',
'Programming Language :: Python',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Mathematics',
'Topic :: Scientific/Engineering :: Physics',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'Operating System :: Unix',
'Operating System :: MacOS',
'Natural Language :: English',
]
with open('README.rst') as f:
LONG_DESCRIPTION = ''.join(f.readlines())
setup(
name='omf',
version='0.9.3',
packages=find_packages(exclude=('tests',)),
install_requires=[
'numpy>=1.7',
'properties==0.4.0',
'pypng',
'six',
'vectormath==0.2.0',
],
author='Global Mining Guidelines Group',
author_email='it@seequent.com',
description='API Library for Open Mining Format',
long_description=LONG_DESCRIPTION,
keywords='mining data interchange',
url='https://gmggroup.org',
download_url='https://github.com/gmggroup/omf',
classifiers=CLASSIFIERS,
platforms=['Windows', 'Linux', 'Solaris', 'Mac OS-X', 'Unix'],
license='MIT License',
use_2to3=False,
)
|
#!/usr/bin/env python
"""omf: API Library for Open Mining Format"""
from distutils.core import setup
from setuptools import find_packages
CLASSIFIERS = [
'Development Status :: 4 - Beta',
'Programming Language :: Python',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Mathematics',
'Topic :: Scientific/Engineering :: Physics',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'Operating System :: Unix',
'Operating System :: MacOS',
'Natural Language :: English',
]
with open('README.rst') as f:
LONG_DESCRIPTION = ''.join(f.readlines())
setup(
name='omf',
version='0.9.3',
packages=find_packages(exclude=('tests',)),
install_requires=[
'numpy>=1.7',
'properties>=0.5.5',
'pypng',
'six',
'vectormath>=0.2.0',
],
author='Global Mining Guidelines Group',
author_email='it@seequent.com',
description='API Library for Open Mining Format',
long_description=LONG_DESCRIPTION,
keywords='mining data interchange',
url='https://gmggroup.org',
download_url='https://github.com/gmggroup/omf',
classifiers=CLASSIFIERS,
platforms=['Windows', 'Linux', 'Solaris', 'Mac OS-X', 'Unix'],
license='MIT License',
use_2to3=False,
)
|
Update properties and vectormath dependencies
|
Update properties and vectormath dependencies
|
Python
|
mit
|
aranzgeo/omf,GMSGDataExchange/omf
|
#!/usr/bin/env python
"""omf: API Library for Open Mining Format"""
from distutils.core import setup
from setuptools import find_packages
CLASSIFIERS = [
'Development Status :: 4 - Beta',
'Programming Language :: Python',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Mathematics',
'Topic :: Scientific/Engineering :: Physics',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'Operating System :: Unix',
'Operating System :: MacOS',
'Natural Language :: English',
]
with open('README.rst') as f:
LONG_DESCRIPTION = ''.join(f.readlines())
setup(
name='omf',
version='0.9.3',
packages=find_packages(exclude=('tests',)),
install_requires=[
'numpy>=1.7',
'properties==0.4.0',
'pypng',
'six',
'vectormath==0.2.0',
],
author='Global Mining Guidelines Group',
author_email='it@seequent.com',
description='API Library for Open Mining Format',
long_description=LONG_DESCRIPTION,
keywords='mining data interchange',
url='https://gmggroup.org',
download_url='https://github.com/gmggroup/omf',
classifiers=CLASSIFIERS,
platforms=['Windows', 'Linux', 'Solaris', 'Mac OS-X', 'Unix'],
license='MIT License',
use_2to3=False,
)
Update properties and vectormath dependencies
|
#!/usr/bin/env python
"""omf: API Library for Open Mining Format"""
from distutils.core import setup
from setuptools import find_packages
CLASSIFIERS = [
'Development Status :: 4 - Beta',
'Programming Language :: Python',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Mathematics',
'Topic :: Scientific/Engineering :: Physics',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'Operating System :: Unix',
'Operating System :: MacOS',
'Natural Language :: English',
]
with open('README.rst') as f:
LONG_DESCRIPTION = ''.join(f.readlines())
setup(
name='omf',
version='0.9.3',
packages=find_packages(exclude=('tests',)),
install_requires=[
'numpy>=1.7',
'properties>=0.5.5',
'pypng',
'six',
'vectormath>=0.2.0',
],
author='Global Mining Guidelines Group',
author_email='it@seequent.com',
description='API Library for Open Mining Format',
long_description=LONG_DESCRIPTION,
keywords='mining data interchange',
url='https://gmggroup.org',
download_url='https://github.com/gmggroup/omf',
classifiers=CLASSIFIERS,
platforms=['Windows', 'Linux', 'Solaris', 'Mac OS-X', 'Unix'],
license='MIT License',
use_2to3=False,
)
|
<commit_before>#!/usr/bin/env python
"""omf: API Library for Open Mining Format"""
from distutils.core import setup
from setuptools import find_packages
CLASSIFIERS = [
'Development Status :: 4 - Beta',
'Programming Language :: Python',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Mathematics',
'Topic :: Scientific/Engineering :: Physics',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'Operating System :: Unix',
'Operating System :: MacOS',
'Natural Language :: English',
]
with open('README.rst') as f:
LONG_DESCRIPTION = ''.join(f.readlines())
setup(
name='omf',
version='0.9.3',
packages=find_packages(exclude=('tests',)),
install_requires=[
'numpy>=1.7',
'properties==0.4.0',
'pypng',
'six',
'vectormath==0.2.0',
],
author='Global Mining Guidelines Group',
author_email='it@seequent.com',
description='API Library for Open Mining Format',
long_description=LONG_DESCRIPTION,
keywords='mining data interchange',
url='https://gmggroup.org',
download_url='https://github.com/gmggroup/omf',
classifiers=CLASSIFIERS,
platforms=['Windows', 'Linux', 'Solaris', 'Mac OS-X', 'Unix'],
license='MIT License',
use_2to3=False,
)
<commit_msg>Update properties and vectormath dependencies<commit_after>
|
#!/usr/bin/env python
"""omf: API Library for Open Mining Format"""
from distutils.core import setup
from setuptools import find_packages
CLASSIFIERS = [
'Development Status :: 4 - Beta',
'Programming Language :: Python',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Mathematics',
'Topic :: Scientific/Engineering :: Physics',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'Operating System :: Unix',
'Operating System :: MacOS',
'Natural Language :: English',
]
with open('README.rst') as f:
LONG_DESCRIPTION = ''.join(f.readlines())
setup(
name='omf',
version='0.9.3',
packages=find_packages(exclude=('tests',)),
install_requires=[
'numpy>=1.7',
'properties>=0.5.5',
'pypng',
'six',
'vectormath>=0.2.0',
],
author='Global Mining Guidelines Group',
author_email='it@seequent.com',
description='API Library for Open Mining Format',
long_description=LONG_DESCRIPTION,
keywords='mining data interchange',
url='https://gmggroup.org',
download_url='https://github.com/gmggroup/omf',
classifiers=CLASSIFIERS,
platforms=['Windows', 'Linux', 'Solaris', 'Mac OS-X', 'Unix'],
license='MIT License',
use_2to3=False,
)
|
#!/usr/bin/env python
"""omf: API Library for Open Mining Format"""
from distutils.core import setup
from setuptools import find_packages
CLASSIFIERS = [
'Development Status :: 4 - Beta',
'Programming Language :: Python',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Mathematics',
'Topic :: Scientific/Engineering :: Physics',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'Operating System :: Unix',
'Operating System :: MacOS',
'Natural Language :: English',
]
with open('README.rst') as f:
LONG_DESCRIPTION = ''.join(f.readlines())
setup(
name='omf',
version='0.9.3',
packages=find_packages(exclude=('tests',)),
install_requires=[
'numpy>=1.7',
'properties==0.4.0',
'pypng',
'six',
'vectormath==0.2.0',
],
author='Global Mining Guidelines Group',
author_email='it@seequent.com',
description='API Library for Open Mining Format',
long_description=LONG_DESCRIPTION,
keywords='mining data interchange',
url='https://gmggroup.org',
download_url='https://github.com/gmggroup/omf',
classifiers=CLASSIFIERS,
platforms=['Windows', 'Linux', 'Solaris', 'Mac OS-X', 'Unix'],
license='MIT License',
use_2to3=False,
)
Update properties and vectormath dependencies#!/usr/bin/env python
"""omf: API Library for Open Mining Format"""
from distutils.core import setup
from setuptools import find_packages
CLASSIFIERS = [
'Development Status :: 4 - Beta',
'Programming Language :: Python',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Mathematics',
'Topic :: Scientific/Engineering :: Physics',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'Operating System :: Unix',
'Operating System :: MacOS',
'Natural Language :: English',
]
with open('README.rst') as f:
LONG_DESCRIPTION = ''.join(f.readlines())
setup(
name='omf',
version='0.9.3',
packages=find_packages(exclude=('tests',)),
install_requires=[
'numpy>=1.7',
'properties>=0.5.5',
'pypng',
'six',
'vectormath>=0.2.0',
],
author='Global Mining Guidelines Group',
author_email='it@seequent.com',
description='API Library for Open Mining Format',
long_description=LONG_DESCRIPTION,
keywords='mining data interchange',
url='https://gmggroup.org',
download_url='https://github.com/gmggroup/omf',
classifiers=CLASSIFIERS,
platforms=['Windows', 'Linux', 'Solaris', 'Mac OS-X', 'Unix'],
license='MIT License',
use_2to3=False,
)
|
<commit_before>#!/usr/bin/env python
"""omf: API Library for Open Mining Format"""
from distutils.core import setup
from setuptools import find_packages
CLASSIFIERS = [
'Development Status :: 4 - Beta',
'Programming Language :: Python',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Mathematics',
'Topic :: Scientific/Engineering :: Physics',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'Operating System :: Unix',
'Operating System :: MacOS',
'Natural Language :: English',
]
with open('README.rst') as f:
LONG_DESCRIPTION = ''.join(f.readlines())
setup(
name='omf',
version='0.9.3',
packages=find_packages(exclude=('tests',)),
install_requires=[
'numpy>=1.7',
'properties==0.4.0',
'pypng',
'six',
'vectormath==0.2.0',
],
author='Global Mining Guidelines Group',
author_email='it@seequent.com',
description='API Library for Open Mining Format',
long_description=LONG_DESCRIPTION,
keywords='mining data interchange',
url='https://gmggroup.org',
download_url='https://github.com/gmggroup/omf',
classifiers=CLASSIFIERS,
platforms=['Windows', 'Linux', 'Solaris', 'Mac OS-X', 'Unix'],
license='MIT License',
use_2to3=False,
)
<commit_msg>Update properties and vectormath dependencies<commit_after>#!/usr/bin/env python
"""omf: API Library for Open Mining Format"""
from distutils.core import setup
from setuptools import find_packages
CLASSIFIERS = [
'Development Status :: 4 - Beta',
'Programming Language :: Python',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Mathematics',
'Topic :: Scientific/Engineering :: Physics',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'Operating System :: Unix',
'Operating System :: MacOS',
'Natural Language :: English',
]
with open('README.rst') as f:
LONG_DESCRIPTION = ''.join(f.readlines())
setup(
name='omf',
version='0.9.3',
packages=find_packages(exclude=('tests',)),
install_requires=[
'numpy>=1.7',
'properties>=0.5.5',
'pypng',
'six',
'vectormath>=0.2.0',
],
author='Global Mining Guidelines Group',
author_email='it@seequent.com',
description='API Library for Open Mining Format',
long_description=LONG_DESCRIPTION,
keywords='mining data interchange',
url='https://gmggroup.org',
download_url='https://github.com/gmggroup/omf',
classifiers=CLASSIFIERS,
platforms=['Windows', 'Linux', 'Solaris', 'Mac OS-X', 'Unix'],
license='MIT License',
use_2to3=False,
)
|
49ea8677fb7e41099c6de77eaa926eb5081937cd
|
setup.py
|
setup.py
|
import codecs
from os import path
from setuptools import find_packages, setup
def read(*parts):
filename = path.join(path.dirname(__file__), *parts)
with codecs.open(filename, encoding="utf-8") as fp:
return fp.read()
setup(
author="Pinax Team",
author_email="team@pinaxproject.com",
description="a user to user join invitations app",
name="pinax-invitations",
long_description=read("README.rst"),
version="2.1.1",
url="http://github.com/pinax/pinax-invitations/",
license="MIT",
packages=find_packages(),
package_data={
"invitations": []
},
test_suite="runtests.runtests",
install_requires=[
"django-appconf>=1.0.1",
"django-user-accounts>=1.2"
],
tests_require=[
],
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Framework :: Django",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3",
"Topic :: Software Development :: Libraries :: Python Modules",
],
zip_safe=False
)
|
import codecs
from os import path
from setuptools import find_packages, setup
def read(*parts):
filename = path.join(path.dirname(__file__), *parts)
with codecs.open(filename, encoding="utf-8") as fp:
return fp.read()
setup(
author="Pinax Team",
author_email="team@pinaxproject.com",
description="a user to user join invitations app",
name="pinax-invitations",
long_description=read("README.rst"),
version="2.2.0.dev1",
url="http://github.com/pinax/pinax-invitations/",
license="MIT",
packages=find_packages(),
package_data={
"invitations": []
},
test_suite="runtests.runtests",
install_requires=[
"django-appconf>=1.0.1",
"django-user-accounts>=1.2"
],
tests_require=[
],
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Framework :: Django",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3",
"Topic :: Software Development :: Libraries :: Python Modules",
],
zip_safe=False
)
|
Bump version number for next release
|
Bump version number for next release
|
Python
|
unknown
|
rizumu/pinax-invitations,pinax/pinax-invitations,jacobwegner/pinax-invitations,eldarion/kaleo
|
import codecs
from os import path
from setuptools import find_packages, setup
def read(*parts):
filename = path.join(path.dirname(__file__), *parts)
with codecs.open(filename, encoding="utf-8") as fp:
return fp.read()
setup(
author="Pinax Team",
author_email="team@pinaxproject.com",
description="a user to user join invitations app",
name="pinax-invitations",
long_description=read("README.rst"),
version="2.1.1",
url="http://github.com/pinax/pinax-invitations/",
license="MIT",
packages=find_packages(),
package_data={
"invitations": []
},
test_suite="runtests.runtests",
install_requires=[
"django-appconf>=1.0.1",
"django-user-accounts>=1.2"
],
tests_require=[
],
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Framework :: Django",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3",
"Topic :: Software Development :: Libraries :: Python Modules",
],
zip_safe=False
)
Bump version number for next release
|
import codecs
from os import path
from setuptools import find_packages, setup
def read(*parts):
filename = path.join(path.dirname(__file__), *parts)
with codecs.open(filename, encoding="utf-8") as fp:
return fp.read()
setup(
author="Pinax Team",
author_email="team@pinaxproject.com",
description="a user to user join invitations app",
name="pinax-invitations",
long_description=read("README.rst"),
version="2.2.0.dev1",
url="http://github.com/pinax/pinax-invitations/",
license="MIT",
packages=find_packages(),
package_data={
"invitations": []
},
test_suite="runtests.runtests",
install_requires=[
"django-appconf>=1.0.1",
"django-user-accounts>=1.2"
],
tests_require=[
],
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Framework :: Django",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3",
"Topic :: Software Development :: Libraries :: Python Modules",
],
zip_safe=False
)
|
<commit_before>import codecs
from os import path
from setuptools import find_packages, setup
def read(*parts):
filename = path.join(path.dirname(__file__), *parts)
with codecs.open(filename, encoding="utf-8") as fp:
return fp.read()
setup(
author="Pinax Team",
author_email="team@pinaxproject.com",
description="a user to user join invitations app",
name="pinax-invitations",
long_description=read("README.rst"),
version="2.1.1",
url="http://github.com/pinax/pinax-invitations/",
license="MIT",
packages=find_packages(),
package_data={
"invitations": []
},
test_suite="runtests.runtests",
install_requires=[
"django-appconf>=1.0.1",
"django-user-accounts>=1.2"
],
tests_require=[
],
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Framework :: Django",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3",
"Topic :: Software Development :: Libraries :: Python Modules",
],
zip_safe=False
)
<commit_msg>Bump version number for next release<commit_after>
|
import codecs
from os import path
from setuptools import find_packages, setup
def read(*parts):
filename = path.join(path.dirname(__file__), *parts)
with codecs.open(filename, encoding="utf-8") as fp:
return fp.read()
setup(
author="Pinax Team",
author_email="team@pinaxproject.com",
description="a user to user join invitations app",
name="pinax-invitations",
long_description=read("README.rst"),
version="2.2.0.dev1",
url="http://github.com/pinax/pinax-invitations/",
license="MIT",
packages=find_packages(),
package_data={
"invitations": []
},
test_suite="runtests.runtests",
install_requires=[
"django-appconf>=1.0.1",
"django-user-accounts>=1.2"
],
tests_require=[
],
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Framework :: Django",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3",
"Topic :: Software Development :: Libraries :: Python Modules",
],
zip_safe=False
)
|
import codecs
from os import path
from setuptools import find_packages, setup
def read(*parts):
filename = path.join(path.dirname(__file__), *parts)
with codecs.open(filename, encoding="utf-8") as fp:
return fp.read()
setup(
author="Pinax Team",
author_email="team@pinaxproject.com",
description="a user to user join invitations app",
name="pinax-invitations",
long_description=read("README.rst"),
version="2.1.1",
url="http://github.com/pinax/pinax-invitations/",
license="MIT",
packages=find_packages(),
package_data={
"invitations": []
},
test_suite="runtests.runtests",
install_requires=[
"django-appconf>=1.0.1",
"django-user-accounts>=1.2"
],
tests_require=[
],
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Framework :: Django",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3",
"Topic :: Software Development :: Libraries :: Python Modules",
],
zip_safe=False
)
Bump version number for next releaseimport codecs
from os import path
from setuptools import find_packages, setup
def read(*parts):
filename = path.join(path.dirname(__file__), *parts)
with codecs.open(filename, encoding="utf-8") as fp:
return fp.read()
setup(
author="Pinax Team",
author_email="team@pinaxproject.com",
description="a user to user join invitations app",
name="pinax-invitations",
long_description=read("README.rst"),
version="2.2.0.dev1",
url="http://github.com/pinax/pinax-invitations/",
license="MIT",
packages=find_packages(),
package_data={
"invitations": []
},
test_suite="runtests.runtests",
install_requires=[
"django-appconf>=1.0.1",
"django-user-accounts>=1.2"
],
tests_require=[
],
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Framework :: Django",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3",
"Topic :: Software Development :: Libraries :: Python Modules",
],
zip_safe=False
)
|
<commit_before>import codecs
from os import path
from setuptools import find_packages, setup
def read(*parts):
filename = path.join(path.dirname(__file__), *parts)
with codecs.open(filename, encoding="utf-8") as fp:
return fp.read()
setup(
author="Pinax Team",
author_email="team@pinaxproject.com",
description="a user to user join invitations app",
name="pinax-invitations",
long_description=read("README.rst"),
version="2.1.1",
url="http://github.com/pinax/pinax-invitations/",
license="MIT",
packages=find_packages(),
package_data={
"invitations": []
},
test_suite="runtests.runtests",
install_requires=[
"django-appconf>=1.0.1",
"django-user-accounts>=1.2"
],
tests_require=[
],
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Framework :: Django",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3",
"Topic :: Software Development :: Libraries :: Python Modules",
],
zip_safe=False
)
<commit_msg>Bump version number for next release<commit_after>import codecs
from os import path
from setuptools import find_packages, setup
def read(*parts):
filename = path.join(path.dirname(__file__), *parts)
with codecs.open(filename, encoding="utf-8") as fp:
return fp.read()
setup(
author="Pinax Team",
author_email="team@pinaxproject.com",
description="a user to user join invitations app",
name="pinax-invitations",
long_description=read("README.rst"),
version="2.2.0.dev1",
url="http://github.com/pinax/pinax-invitations/",
license="MIT",
packages=find_packages(),
package_data={
"invitations": []
},
test_suite="runtests.runtests",
install_requires=[
"django-appconf>=1.0.1",
"django-user-accounts>=1.2"
],
tests_require=[
],
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Framework :: Django",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3",
"Topic :: Software Development :: Libraries :: Python Modules",
],
zip_safe=False
)
|
684ba6619c267ce4364a12f30a65fe8cc8f78a53
|
setup.py
|
setup.py
|
from setuptools import setup
setup(
name='tangled.website',
version='0.1.dev0',
description='tangledframework.org',
long_description=open('README.rst').read(),
url='http://tangledframework.org/',
download_url='https://github.com/TangledWeb/tangled.website/tags',
author='Wyatt Baldwin',
author_email='self@wyattbaldwin.com',
packages=[
'tangled',
'tangled.website',
],
include_package_data=True,
install_requires=[
'tangled.auth>=0.1a3',
'tangled.session>=0.1a2',
'tangled.site>=0.1a2',
'SQLAlchemy>=0.9.7',
],
extras_require={
'dev': ['coverage'],
},
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
],
)
|
from setuptools import setup
setup(
name='tangled.website',
version='0.1.dev0',
description='tangledframework.org',
long_description=open('README.rst').read(),
url='http://tangledframework.org/',
download_url='https://github.com/TangledWeb/tangled.website/tags',
author='Wyatt Baldwin',
author_email='self@wyattbaldwin.com',
packages=[
'tangled',
'tangled.website',
],
include_package_data=True,
install_requires=[
'tangled.auth>=0.1a3',
'tangled.session>=0.1a2',
'tangled.site>=0.1a2',
'SQLAlchemy>=1.1.6',
],
extras_require={
'dev': ['coverage'],
},
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
],
)
|
Upgrade SQLAlchemy 0.9.7 => 1.1.6
|
Upgrade SQLAlchemy 0.9.7 => 1.1.6
|
Python
|
mit
|
TangledWeb/tangled.website
|
from setuptools import setup
setup(
name='tangled.website',
version='0.1.dev0',
description='tangledframework.org',
long_description=open('README.rst').read(),
url='http://tangledframework.org/',
download_url='https://github.com/TangledWeb/tangled.website/tags',
author='Wyatt Baldwin',
author_email='self@wyattbaldwin.com',
packages=[
'tangled',
'tangled.website',
],
include_package_data=True,
install_requires=[
'tangled.auth>=0.1a3',
'tangled.session>=0.1a2',
'tangled.site>=0.1a2',
'SQLAlchemy>=0.9.7',
],
extras_require={
'dev': ['coverage'],
},
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
],
)
Upgrade SQLAlchemy 0.9.7 => 1.1.6
|
from setuptools import setup
setup(
name='tangled.website',
version='0.1.dev0',
description='tangledframework.org',
long_description=open('README.rst').read(),
url='http://tangledframework.org/',
download_url='https://github.com/TangledWeb/tangled.website/tags',
author='Wyatt Baldwin',
author_email='self@wyattbaldwin.com',
packages=[
'tangled',
'tangled.website',
],
include_package_data=True,
install_requires=[
'tangled.auth>=0.1a3',
'tangled.session>=0.1a2',
'tangled.site>=0.1a2',
'SQLAlchemy>=1.1.6',
],
extras_require={
'dev': ['coverage'],
},
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
],
)
|
<commit_before>from setuptools import setup
setup(
name='tangled.website',
version='0.1.dev0',
description='tangledframework.org',
long_description=open('README.rst').read(),
url='http://tangledframework.org/',
download_url='https://github.com/TangledWeb/tangled.website/tags',
author='Wyatt Baldwin',
author_email='self@wyattbaldwin.com',
packages=[
'tangled',
'tangled.website',
],
include_package_data=True,
install_requires=[
'tangled.auth>=0.1a3',
'tangled.session>=0.1a2',
'tangled.site>=0.1a2',
'SQLAlchemy>=0.9.7',
],
extras_require={
'dev': ['coverage'],
},
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
],
)
<commit_msg>Upgrade SQLAlchemy 0.9.7 => 1.1.6<commit_after>
|
from setuptools import setup
setup(
name='tangled.website',
version='0.1.dev0',
description='tangledframework.org',
long_description=open('README.rst').read(),
url='http://tangledframework.org/',
download_url='https://github.com/TangledWeb/tangled.website/tags',
author='Wyatt Baldwin',
author_email='self@wyattbaldwin.com',
packages=[
'tangled',
'tangled.website',
],
include_package_data=True,
install_requires=[
'tangled.auth>=0.1a3',
'tangled.session>=0.1a2',
'tangled.site>=0.1a2',
'SQLAlchemy>=1.1.6',
],
extras_require={
'dev': ['coverage'],
},
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
],
)
|
from setuptools import setup
setup(
name='tangled.website',
version='0.1.dev0',
description='tangledframework.org',
long_description=open('README.rst').read(),
url='http://tangledframework.org/',
download_url='https://github.com/TangledWeb/tangled.website/tags',
author='Wyatt Baldwin',
author_email='self@wyattbaldwin.com',
packages=[
'tangled',
'tangled.website',
],
include_package_data=True,
install_requires=[
'tangled.auth>=0.1a3',
'tangled.session>=0.1a2',
'tangled.site>=0.1a2',
'SQLAlchemy>=0.9.7',
],
extras_require={
'dev': ['coverage'],
},
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
],
)
Upgrade SQLAlchemy 0.9.7 => 1.1.6from setuptools import setup
setup(
name='tangled.website',
version='0.1.dev0',
description='tangledframework.org',
long_description=open('README.rst').read(),
url='http://tangledframework.org/',
download_url='https://github.com/TangledWeb/tangled.website/tags',
author='Wyatt Baldwin',
author_email='self@wyattbaldwin.com',
packages=[
'tangled',
'tangled.website',
],
include_package_data=True,
install_requires=[
'tangled.auth>=0.1a3',
'tangled.session>=0.1a2',
'tangled.site>=0.1a2',
'SQLAlchemy>=1.1.6',
],
extras_require={
'dev': ['coverage'],
},
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
],
)
|
<commit_before>from setuptools import setup
setup(
name='tangled.website',
version='0.1.dev0',
description='tangledframework.org',
long_description=open('README.rst').read(),
url='http://tangledframework.org/',
download_url='https://github.com/TangledWeb/tangled.website/tags',
author='Wyatt Baldwin',
author_email='self@wyattbaldwin.com',
packages=[
'tangled',
'tangled.website',
],
include_package_data=True,
install_requires=[
'tangled.auth>=0.1a3',
'tangled.session>=0.1a2',
'tangled.site>=0.1a2',
'SQLAlchemy>=0.9.7',
],
extras_require={
'dev': ['coverage'],
},
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
],
)
<commit_msg>Upgrade SQLAlchemy 0.9.7 => 1.1.6<commit_after>from setuptools import setup
setup(
name='tangled.website',
version='0.1.dev0',
description='tangledframework.org',
long_description=open('README.rst').read(),
url='http://tangledframework.org/',
download_url='https://github.com/TangledWeb/tangled.website/tags',
author='Wyatt Baldwin',
author_email='self@wyattbaldwin.com',
packages=[
'tangled',
'tangled.website',
],
include_package_data=True,
install_requires=[
'tangled.auth>=0.1a3',
'tangled.session>=0.1a2',
'tangled.site>=0.1a2',
'SQLAlchemy>=1.1.6',
],
extras_require={
'dev': ['coverage'],
},
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
],
)
|
2b421b006b0f87cadcbad18b0b4eea55e04ee63c
|
setup.py
|
setup.py
|
from setuptools import find_packages, setup
tests_require = [
'mock',
'pytest',
'pytest-django',
]
requires = [
'Django',
]
entry_points = {
}
setup(
name='django-view-as',
version='0.1.1',
author="David Cramer",
author_email="dcramer@gmail.com",
license='Apache License 2.0',
package_dir={'': 'src'},
packages=find_packages("src"),
install_requires=requires,
extras_require={
'tests': tests_require,
},
entry_points=entry_points,
zip_safe=False,
)
|
from setuptools import find_packages, setup
tests_require = [
'mock',
'pytest',
'pytest-django',
]
requires = [
'Django',
]
entry_points = {
}
setup(
name='django-view-as',
version='0.1.0',
description="A Django middleware which allows you to view the site on behalf of a user.",
author="David Cramer",
author_email="dcramer@gmail.com",
license='Apache License 2.0',
package_dir={'': 'src'},
packages=find_packages("src"),
install_requires=requires,
extras_require={
'tests': tests_require,
},
entry_points=entry_points,
zip_safe=False,
)
|
Drop version back to 0.1.0 and add desc
|
Drop version back to 0.1.0 and add desc
|
Python
|
apache-2.0
|
dcramer/django-view-as,dcramer/django-view-as
|
from setuptools import find_packages, setup
tests_require = [
'mock',
'pytest',
'pytest-django',
]
requires = [
'Django',
]
entry_points = {
}
setup(
name='django-view-as',
version='0.1.1',
author="David Cramer",
author_email="dcramer@gmail.com",
license='Apache License 2.0',
package_dir={'': 'src'},
packages=find_packages("src"),
install_requires=requires,
extras_require={
'tests': tests_require,
},
entry_points=entry_points,
zip_safe=False,
)
Drop version back to 0.1.0 and add desc
|
from setuptools import find_packages, setup
tests_require = [
'mock',
'pytest',
'pytest-django',
]
requires = [
'Django',
]
entry_points = {
}
setup(
name='django-view-as',
version='0.1.0',
description="A Django middleware which allows you to view the site on behalf of a user.",
author="David Cramer",
author_email="dcramer@gmail.com",
license='Apache License 2.0',
package_dir={'': 'src'},
packages=find_packages("src"),
install_requires=requires,
extras_require={
'tests': tests_require,
},
entry_points=entry_points,
zip_safe=False,
)
|
<commit_before>from setuptools import find_packages, setup
tests_require = [
'mock',
'pytest',
'pytest-django',
]
requires = [
'Django',
]
entry_points = {
}
setup(
name='django-view-as',
version='0.1.1',
author="David Cramer",
author_email="dcramer@gmail.com",
license='Apache License 2.0',
package_dir={'': 'src'},
packages=find_packages("src"),
install_requires=requires,
extras_require={
'tests': tests_require,
},
entry_points=entry_points,
zip_safe=False,
)
<commit_msg>Drop version back to 0.1.0 and add desc<commit_after>
|
from setuptools import find_packages, setup
tests_require = [
'mock',
'pytest',
'pytest-django',
]
requires = [
'Django',
]
entry_points = {
}
setup(
name='django-view-as',
version='0.1.0',
description="A Django middleware which allows you to view the site on behalf of a user.",
author="David Cramer",
author_email="dcramer@gmail.com",
license='Apache License 2.0',
package_dir={'': 'src'},
packages=find_packages("src"),
install_requires=requires,
extras_require={
'tests': tests_require,
},
entry_points=entry_points,
zip_safe=False,
)
|
from setuptools import find_packages, setup
tests_require = [
'mock',
'pytest',
'pytest-django',
]
requires = [
'Django',
]
entry_points = {
}
setup(
name='django-view-as',
version='0.1.1',
author="David Cramer",
author_email="dcramer@gmail.com",
license='Apache License 2.0',
package_dir={'': 'src'},
packages=find_packages("src"),
install_requires=requires,
extras_require={
'tests': tests_require,
},
entry_points=entry_points,
zip_safe=False,
)
Drop version back to 0.1.0 and add descfrom setuptools import find_packages, setup
tests_require = [
'mock',
'pytest',
'pytest-django',
]
requires = [
'Django',
]
entry_points = {
}
setup(
name='django-view-as',
version='0.1.0',
description="A Django middleware which allows you to view the site on behalf of a user.",
author="David Cramer",
author_email="dcramer@gmail.com",
license='Apache License 2.0',
package_dir={'': 'src'},
packages=find_packages("src"),
install_requires=requires,
extras_require={
'tests': tests_require,
},
entry_points=entry_points,
zip_safe=False,
)
|
<commit_before>from setuptools import find_packages, setup
tests_require = [
'mock',
'pytest',
'pytest-django',
]
requires = [
'Django',
]
entry_points = {
}
setup(
name='django-view-as',
version='0.1.1',
author="David Cramer",
author_email="dcramer@gmail.com",
license='Apache License 2.0',
package_dir={'': 'src'},
packages=find_packages("src"),
install_requires=requires,
extras_require={
'tests': tests_require,
},
entry_points=entry_points,
zip_safe=False,
)
<commit_msg>Drop version back to 0.1.0 and add desc<commit_after>from setuptools import find_packages, setup
tests_require = [
'mock',
'pytest',
'pytest-django',
]
requires = [
'Django',
]
entry_points = {
}
setup(
name='django-view-as',
version='0.1.0',
description="A Django middleware which allows you to view the site on behalf of a user.",
author="David Cramer",
author_email="dcramer@gmail.com",
license='Apache License 2.0',
package_dir={'': 'src'},
packages=find_packages("src"),
install_requires=requires,
extras_require={
'tests': tests_require,
},
entry_points=entry_points,
zip_safe=False,
)
|
16bbd7e31abef111bb7801e7c6639e368fd5b142
|
setup.py
|
setup.py
|
#!/usr/bin/env python
from setuptools import setup
setup(name='tap-awin',
version='0.0.3',
description='Singer.io tap for extracting data from the Affiliate Window API',
author='Onedox',
url='https://github.com/onedox/tap-awin',
classifiers=['Programming Language :: Python :: 3 :: Only'],
py_modules=['tap_awin'],
install_requires=[
'zeep>=1.4.1',
'singer-python>=3.6.3',
'tzlocal>=1.3',
],
entry_points='''
[console_scripts]
tap-awin=tap_awin:main
''',
packages=['tap_awin'],
package_data = {
'tap_awin/schemas': [
"transactions.json",
"merchants.json",
],
},
include_package_data=True,
)
|
#!/usr/bin/env python
from setuptools import setup
setup(name='tap-awin',
version='0.0.4',
description='Singer.io tap for extracting data from the Affiliate Window API',
author='Onedox',
url='https://github.com/onedox/tap-awin',
classifiers=['Programming Language :: Python :: 3 :: Only'],
py_modules=['tap_awin'],
install_requires=[
'zeep>=1.4.1',
'singer-python>=3.6.3',
'tzlocal>=1.3',
],
entry_points='''
[console_scripts]
tap-awin=tap_awin:main
''',
packages=['tap_awin'],
package_data = {
'tap_awin/schemas': [
"transactions.json",
"merchants.json",
],
},
include_package_data=True,
)
|
Prepare for release of 0.0.4
|
Prepare for release of 0.0.4
|
Python
|
apache-2.0
|
onedox/tap-awin
|
#!/usr/bin/env python
from setuptools import setup
setup(name='tap-awin',
version='0.0.3',
description='Singer.io tap for extracting data from the Affiliate Window API',
author='Onedox',
url='https://github.com/onedox/tap-awin',
classifiers=['Programming Language :: Python :: 3 :: Only'],
py_modules=['tap_awin'],
install_requires=[
'zeep>=1.4.1',
'singer-python>=3.6.3',
'tzlocal>=1.3',
],
entry_points='''
[console_scripts]
tap-awin=tap_awin:main
''',
packages=['tap_awin'],
package_data = {
'tap_awin/schemas': [
"transactions.json",
"merchants.json",
],
},
include_package_data=True,
)
Prepare for release of 0.0.4
|
#!/usr/bin/env python
from setuptools import setup
setup(name='tap-awin',
version='0.0.4',
description='Singer.io tap for extracting data from the Affiliate Window API',
author='Onedox',
url='https://github.com/onedox/tap-awin',
classifiers=['Programming Language :: Python :: 3 :: Only'],
py_modules=['tap_awin'],
install_requires=[
'zeep>=1.4.1',
'singer-python>=3.6.3',
'tzlocal>=1.3',
],
entry_points='''
[console_scripts]
tap-awin=tap_awin:main
''',
packages=['tap_awin'],
package_data = {
'tap_awin/schemas': [
"transactions.json",
"merchants.json",
],
},
include_package_data=True,
)
|
<commit_before>#!/usr/bin/env python
from setuptools import setup
setup(name='tap-awin',
version='0.0.3',
description='Singer.io tap for extracting data from the Affiliate Window API',
author='Onedox',
url='https://github.com/onedox/tap-awin',
classifiers=['Programming Language :: Python :: 3 :: Only'],
py_modules=['tap_awin'],
install_requires=[
'zeep>=1.4.1',
'singer-python>=3.6.3',
'tzlocal>=1.3',
],
entry_points='''
[console_scripts]
tap-awin=tap_awin:main
''',
packages=['tap_awin'],
package_data = {
'tap_awin/schemas': [
"transactions.json",
"merchants.json",
],
},
include_package_data=True,
)
<commit_msg>Prepare for release of 0.0.4<commit_after>
|
#!/usr/bin/env python
from setuptools import setup
setup(name='tap-awin',
version='0.0.4',
description='Singer.io tap for extracting data from the Affiliate Window API',
author='Onedox',
url='https://github.com/onedox/tap-awin',
classifiers=['Programming Language :: Python :: 3 :: Only'],
py_modules=['tap_awin'],
install_requires=[
'zeep>=1.4.1',
'singer-python>=3.6.3',
'tzlocal>=1.3',
],
entry_points='''
[console_scripts]
tap-awin=tap_awin:main
''',
packages=['tap_awin'],
package_data = {
'tap_awin/schemas': [
"transactions.json",
"merchants.json",
],
},
include_package_data=True,
)
|
#!/usr/bin/env python
from setuptools import setup
setup(name='tap-awin',
version='0.0.3',
description='Singer.io tap for extracting data from the Affiliate Window API',
author='Onedox',
url='https://github.com/onedox/tap-awin',
classifiers=['Programming Language :: Python :: 3 :: Only'],
py_modules=['tap_awin'],
install_requires=[
'zeep>=1.4.1',
'singer-python>=3.6.3',
'tzlocal>=1.3',
],
entry_points='''
[console_scripts]
tap-awin=tap_awin:main
''',
packages=['tap_awin'],
package_data = {
'tap_awin/schemas': [
"transactions.json",
"merchants.json",
],
},
include_package_data=True,
)
Prepare for release of 0.0.4#!/usr/bin/env python
from setuptools import setup
setup(name='tap-awin',
version='0.0.4',
description='Singer.io tap for extracting data from the Affiliate Window API',
author='Onedox',
url='https://github.com/onedox/tap-awin',
classifiers=['Programming Language :: Python :: 3 :: Only'],
py_modules=['tap_awin'],
install_requires=[
'zeep>=1.4.1',
'singer-python>=3.6.3',
'tzlocal>=1.3',
],
entry_points='''
[console_scripts]
tap-awin=tap_awin:main
''',
packages=['tap_awin'],
package_data = {
'tap_awin/schemas': [
"transactions.json",
"merchants.json",
],
},
include_package_data=True,
)
|
<commit_before>#!/usr/bin/env python
from setuptools import setup
setup(name='tap-awin',
version='0.0.3',
description='Singer.io tap for extracting data from the Affiliate Window API',
author='Onedox',
url='https://github.com/onedox/tap-awin',
classifiers=['Programming Language :: Python :: 3 :: Only'],
py_modules=['tap_awin'],
install_requires=[
'zeep>=1.4.1',
'singer-python>=3.6.3',
'tzlocal>=1.3',
],
entry_points='''
[console_scripts]
tap-awin=tap_awin:main
''',
packages=['tap_awin'],
package_data = {
'tap_awin/schemas': [
"transactions.json",
"merchants.json",
],
},
include_package_data=True,
)
<commit_msg>Prepare for release of 0.0.4<commit_after>#!/usr/bin/env python
from setuptools import setup
setup(name='tap-awin',
version='0.0.4',
description='Singer.io tap for extracting data from the Affiliate Window API',
author='Onedox',
url='https://github.com/onedox/tap-awin',
classifiers=['Programming Language :: Python :: 3 :: Only'],
py_modules=['tap_awin'],
install_requires=[
'zeep>=1.4.1',
'singer-python>=3.6.3',
'tzlocal>=1.3',
],
entry_points='''
[console_scripts]
tap-awin=tap_awin:main
''',
packages=['tap_awin'],
package_data = {
'tap_awin/schemas': [
"transactions.json",
"merchants.json",
],
},
include_package_data=True,
)
|
3d0117fe770141d888c48f6c8792fffa00ee47df
|
setup.py
|
setup.py
|
#!/usr/bin/env python
from setuptools import setup
with open('README.rst') as f:
long_description = f.read()
setup(name='schoolbus',
version='0.4.16',
description='schoolbus is a library to guess whether an email is from an academic institution.',
long_description=long_description,
author='Joshua Ma',
author_email='josh@benchling.com',
url='https://github.com/benchling/schoolbus',
packages=['schoolbus'],
install_requires=['publicsuffix >= 1.0.4'])
|
#!/usr/bin/env python
from setuptools import setup
with open('README.rst') as f:
long_description = f.read()
setup(name='schoolbus',
version='0.5.0',
description='schoolbus is a library to guess whether an email is from an academic institution.',
long_description=long_description,
author='Joshua Ma',
author_email='josh@benchling.com',
url='https://github.com/benchling/schoolbus',
packages=['schoolbus'],
install_requires=['publicsuffix >= 1.1.0'])
|
Upgrade schoolbus to 0.5.0 and require public_suffix >= 1.1.0
|
Upgrade schoolbus to 0.5.0 and require public_suffix >= 1.1.0
|
Python
|
mit
|
benchling/schoolbus
|
#!/usr/bin/env python
from setuptools import setup
with open('README.rst') as f:
long_description = f.read()
setup(name='schoolbus',
version='0.4.16',
description='schoolbus is a library to guess whether an email is from an academic institution.',
long_description=long_description,
author='Joshua Ma',
author_email='josh@benchling.com',
url='https://github.com/benchling/schoolbus',
packages=['schoolbus'],
install_requires=['publicsuffix >= 1.0.4'])
Upgrade schoolbus to 0.5.0 and require public_suffix >= 1.1.0
|
#!/usr/bin/env python
from setuptools import setup
with open('README.rst') as f:
long_description = f.read()
setup(name='schoolbus',
version='0.5.0',
description='schoolbus is a library to guess whether an email is from an academic institution.',
long_description=long_description,
author='Joshua Ma',
author_email='josh@benchling.com',
url='https://github.com/benchling/schoolbus',
packages=['schoolbus'],
install_requires=['publicsuffix >= 1.1.0'])
|
<commit_before>#!/usr/bin/env python
from setuptools import setup
with open('README.rst') as f:
long_description = f.read()
setup(name='schoolbus',
version='0.4.16',
description='schoolbus is a library to guess whether an email is from an academic institution.',
long_description=long_description,
author='Joshua Ma',
author_email='josh@benchling.com',
url='https://github.com/benchling/schoolbus',
packages=['schoolbus'],
install_requires=['publicsuffix >= 1.0.4'])
<commit_msg>Upgrade schoolbus to 0.5.0 and require public_suffix >= 1.1.0<commit_after>
|
#!/usr/bin/env python
from setuptools import setup
with open('README.rst') as f:
long_description = f.read()
setup(name='schoolbus',
version='0.5.0',
description='schoolbus is a library to guess whether an email is from an academic institution.',
long_description=long_description,
author='Joshua Ma',
author_email='josh@benchling.com',
url='https://github.com/benchling/schoolbus',
packages=['schoolbus'],
install_requires=['publicsuffix >= 1.1.0'])
|
#!/usr/bin/env python
from setuptools import setup
with open('README.rst') as f:
long_description = f.read()
setup(name='schoolbus',
version='0.4.16',
description='schoolbus is a library to guess whether an email is from an academic institution.',
long_description=long_description,
author='Joshua Ma',
author_email='josh@benchling.com',
url='https://github.com/benchling/schoolbus',
packages=['schoolbus'],
install_requires=['publicsuffix >= 1.0.4'])
Upgrade schoolbus to 0.5.0 and require public_suffix >= 1.1.0#!/usr/bin/env python
from setuptools import setup
with open('README.rst') as f:
long_description = f.read()
setup(name='schoolbus',
version='0.5.0',
description='schoolbus is a library to guess whether an email is from an academic institution.',
long_description=long_description,
author='Joshua Ma',
author_email='josh@benchling.com',
url='https://github.com/benchling/schoolbus',
packages=['schoolbus'],
install_requires=['publicsuffix >= 1.1.0'])
|
<commit_before>#!/usr/bin/env python
from setuptools import setup
with open('README.rst') as f:
long_description = f.read()
setup(name='schoolbus',
version='0.4.16',
description='schoolbus is a library to guess whether an email is from an academic institution.',
long_description=long_description,
author='Joshua Ma',
author_email='josh@benchling.com',
url='https://github.com/benchling/schoolbus',
packages=['schoolbus'],
install_requires=['publicsuffix >= 1.0.4'])
<commit_msg>Upgrade schoolbus to 0.5.0 and require public_suffix >= 1.1.0<commit_after>#!/usr/bin/env python
from setuptools import setup
with open('README.rst') as f:
long_description = f.read()
setup(name='schoolbus',
version='0.5.0',
description='schoolbus is a library to guess whether an email is from an academic institution.',
long_description=long_description,
author='Joshua Ma',
author_email='josh@benchling.com',
url='https://github.com/benchling/schoolbus',
packages=['schoolbus'],
install_requires=['publicsuffix >= 1.1.0'])
|
fc249017ce2b36b5b1c63536649f116c0de411c0
|
setup.py
|
setup.py
|
from setuptools import setup
datafiles = [('/etc', ['general_conf/bck.conf'])]
setup(
name='mysql-autoxtrabackup',
version='1.1',
packages=['general_conf', 'backup_prepare', 'partial_recovery', 'master_backup_script'],
py_modules = ['autoxtrabackup'],
url='https://github.com/ShahriyarR/MySQL-AutoXtraBackup',
license='GPL',
author='Shahriyar Rzayev',
author_email='rzayev.shahriyar@yandex.com',
description='Commandline tool written in Python 3 for using Percona Xtrabackup',
install_requires=[
'click>=3.3',
'mysql-connector>=2.0.2',
],
dependency_links = ['https://dev.mysql.com/get/Downloads/Connector-Python/mysql-connector-python-2.1.3.tar.gz'],
entry_points='''
[console_scripts]
autoxtrabackup=autoxtrabackup:all_procedure
''',
data_files = datafiles,
)
|
from setuptools import setup
datafiles = [('//etc', ['general_conf/bck.conf'])]
setup(
name='mysql-autoxtrabackup',
version='1.1',
packages=['general_conf', 'backup_prepare', 'partial_recovery', 'master_backup_script'],
py_modules = ['autoxtrabackup'],
url='https://github.com/ShahriyarR/MySQL-AutoXtraBackup',
license='GPL',
author='Shahriyar Rzayev',
author_email='rzayev.shahriyar@yandex.com',
description='Commandline tool written in Python 3 for using Percona Xtrabackup',
install_requires=[
'click>=3.3',
'mysql-connector>=2.0.2',
],
dependency_links = ['https://dev.mysql.com/get/Downloads/Connector-Python/mysql-connector-python-2.1.3.tar.gz'],
entry_points='''
[console_scripts]
autoxtrabackup=autoxtrabackup:all_procedure
''',
data_files = datafiles,
)
|
Set install datafile to root
|
Set install datafile to root
|
Python
|
mit
|
ShahriyarR/MySQL-AutoXtraBackup,ShahriyarR/MySQL-AutoXtraBackup
|
from setuptools import setup
datafiles = [('/etc', ['general_conf/bck.conf'])]
setup(
name='mysql-autoxtrabackup',
version='1.1',
packages=['general_conf', 'backup_prepare', 'partial_recovery', 'master_backup_script'],
py_modules = ['autoxtrabackup'],
url='https://github.com/ShahriyarR/MySQL-AutoXtraBackup',
license='GPL',
author='Shahriyar Rzayev',
author_email='rzayev.shahriyar@yandex.com',
description='Commandline tool written in Python 3 for using Percona Xtrabackup',
install_requires=[
'click>=3.3',
'mysql-connector>=2.0.2',
],
dependency_links = ['https://dev.mysql.com/get/Downloads/Connector-Python/mysql-connector-python-2.1.3.tar.gz'],
entry_points='''
[console_scripts]
autoxtrabackup=autoxtrabackup:all_procedure
''',
data_files = datafiles,
)Set install datafile to root
|
from setuptools import setup
datafiles = [('//etc', ['general_conf/bck.conf'])]
setup(
name='mysql-autoxtrabackup',
version='1.1',
packages=['general_conf', 'backup_prepare', 'partial_recovery', 'master_backup_script'],
py_modules = ['autoxtrabackup'],
url='https://github.com/ShahriyarR/MySQL-AutoXtraBackup',
license='GPL',
author='Shahriyar Rzayev',
author_email='rzayev.shahriyar@yandex.com',
description='Commandline tool written in Python 3 for using Percona Xtrabackup',
install_requires=[
'click>=3.3',
'mysql-connector>=2.0.2',
],
dependency_links = ['https://dev.mysql.com/get/Downloads/Connector-Python/mysql-connector-python-2.1.3.tar.gz'],
entry_points='''
[console_scripts]
autoxtrabackup=autoxtrabackup:all_procedure
''',
data_files = datafiles,
)
|
<commit_before>from setuptools import setup
datafiles = [('/etc', ['general_conf/bck.conf'])]
setup(
name='mysql-autoxtrabackup',
version='1.1',
packages=['general_conf', 'backup_prepare', 'partial_recovery', 'master_backup_script'],
py_modules = ['autoxtrabackup'],
url='https://github.com/ShahriyarR/MySQL-AutoXtraBackup',
license='GPL',
author='Shahriyar Rzayev',
author_email='rzayev.shahriyar@yandex.com',
description='Commandline tool written in Python 3 for using Percona Xtrabackup',
install_requires=[
'click>=3.3',
'mysql-connector>=2.0.2',
],
dependency_links = ['https://dev.mysql.com/get/Downloads/Connector-Python/mysql-connector-python-2.1.3.tar.gz'],
entry_points='''
[console_scripts]
autoxtrabackup=autoxtrabackup:all_procedure
''',
data_files = datafiles,
)<commit_msg>Set install datafile to root<commit_after>
|
from setuptools import setup
datafiles = [('//etc', ['general_conf/bck.conf'])]
setup(
name='mysql-autoxtrabackup',
version='1.1',
packages=['general_conf', 'backup_prepare', 'partial_recovery', 'master_backup_script'],
py_modules = ['autoxtrabackup'],
url='https://github.com/ShahriyarR/MySQL-AutoXtraBackup',
license='GPL',
author='Shahriyar Rzayev',
author_email='rzayev.shahriyar@yandex.com',
description='Commandline tool written in Python 3 for using Percona Xtrabackup',
install_requires=[
'click>=3.3',
'mysql-connector>=2.0.2',
],
dependency_links = ['https://dev.mysql.com/get/Downloads/Connector-Python/mysql-connector-python-2.1.3.tar.gz'],
entry_points='''
[console_scripts]
autoxtrabackup=autoxtrabackup:all_procedure
''',
data_files = datafiles,
)
|
from setuptools import setup
datafiles = [('/etc', ['general_conf/bck.conf'])]
setup(
name='mysql-autoxtrabackup',
version='1.1',
packages=['general_conf', 'backup_prepare', 'partial_recovery', 'master_backup_script'],
py_modules = ['autoxtrabackup'],
url='https://github.com/ShahriyarR/MySQL-AutoXtraBackup',
license='GPL',
author='Shahriyar Rzayev',
author_email='rzayev.shahriyar@yandex.com',
description='Commandline tool written in Python 3 for using Percona Xtrabackup',
install_requires=[
'click>=3.3',
'mysql-connector>=2.0.2',
],
dependency_links = ['https://dev.mysql.com/get/Downloads/Connector-Python/mysql-connector-python-2.1.3.tar.gz'],
entry_points='''
[console_scripts]
autoxtrabackup=autoxtrabackup:all_procedure
''',
data_files = datafiles,
)Set install datafile to rootfrom setuptools import setup
datafiles = [('//etc', ['general_conf/bck.conf'])]
setup(
name='mysql-autoxtrabackup',
version='1.1',
packages=['general_conf', 'backup_prepare', 'partial_recovery', 'master_backup_script'],
py_modules = ['autoxtrabackup'],
url='https://github.com/ShahriyarR/MySQL-AutoXtraBackup',
license='GPL',
author='Shahriyar Rzayev',
author_email='rzayev.shahriyar@yandex.com',
description='Commandline tool written in Python 3 for using Percona Xtrabackup',
install_requires=[
'click>=3.3',
'mysql-connector>=2.0.2',
],
dependency_links = ['https://dev.mysql.com/get/Downloads/Connector-Python/mysql-connector-python-2.1.3.tar.gz'],
entry_points='''
[console_scripts]
autoxtrabackup=autoxtrabackup:all_procedure
''',
data_files = datafiles,
)
|
<commit_before>from setuptools import setup
datafiles = [('/etc', ['general_conf/bck.conf'])]
setup(
name='mysql-autoxtrabackup',
version='1.1',
packages=['general_conf', 'backup_prepare', 'partial_recovery', 'master_backup_script'],
py_modules = ['autoxtrabackup'],
url='https://github.com/ShahriyarR/MySQL-AutoXtraBackup',
license='GPL',
author='Shahriyar Rzayev',
author_email='rzayev.shahriyar@yandex.com',
description='Commandline tool written in Python 3 for using Percona Xtrabackup',
install_requires=[
'click>=3.3',
'mysql-connector>=2.0.2',
],
dependency_links = ['https://dev.mysql.com/get/Downloads/Connector-Python/mysql-connector-python-2.1.3.tar.gz'],
entry_points='''
[console_scripts]
autoxtrabackup=autoxtrabackup:all_procedure
''',
data_files = datafiles,
)<commit_msg>Set install datafile to root<commit_after>from setuptools import setup
datafiles = [('//etc', ['general_conf/bck.conf'])]
setup(
name='mysql-autoxtrabackup',
version='1.1',
packages=['general_conf', 'backup_prepare', 'partial_recovery', 'master_backup_script'],
py_modules = ['autoxtrabackup'],
url='https://github.com/ShahriyarR/MySQL-AutoXtraBackup',
license='GPL',
author='Shahriyar Rzayev',
author_email='rzayev.shahriyar@yandex.com',
description='Commandline tool written in Python 3 for using Percona Xtrabackup',
install_requires=[
'click>=3.3',
'mysql-connector>=2.0.2',
],
dependency_links = ['https://dev.mysql.com/get/Downloads/Connector-Python/mysql-connector-python-2.1.3.tar.gz'],
entry_points='''
[console_scripts]
autoxtrabackup=autoxtrabackup:all_procedure
''',
data_files = datafiles,
)
|
31d009e4aec67f4ee0918158ee681019947699d5
|
setup.py
|
setup.py
|
from ado.version import ADO_VERSION
from setuptools import setup, find_packages
setup(
name='ado',
author='Ana Nelson',
packages=find_packages(),
version=ADO_VERSION,
install_requires = [
'python-modargs>=1.7',
'Markdown', # for reports
'dexy>=0.9.9'
],
entry_points = {
'console_scripts' : [ 'ado = ado.commands:run' ]
}
)
|
from ado.version import ADO_VERSION
from setuptools import setup, find_packages
setup(
name='ado',
author='Ana Nelson',
packages=find_packages(),
version=ADO_VERSION,
include_package_data = True,
install_requires = [
'python-modargs>=1.7',
'Markdown', # for reports
'dexy>=0.9.9'
],
entry_points = {
'console_scripts' : [ 'ado = ado.commands:run' ]
}
)
|
Set include package data to true.
|
Set include package data to true.
|
Python
|
mit
|
ananelson/ado,ananelson/ado,ananelson/ado,ananelson/ado
|
from ado.version import ADO_VERSION
from setuptools import setup, find_packages
setup(
name='ado',
author='Ana Nelson',
packages=find_packages(),
version=ADO_VERSION,
install_requires = [
'python-modargs>=1.7',
'Markdown', # for reports
'dexy>=0.9.9'
],
entry_points = {
'console_scripts' : [ 'ado = ado.commands:run' ]
}
)
Set include package data to true.
|
from ado.version import ADO_VERSION
from setuptools import setup, find_packages
setup(
name='ado',
author='Ana Nelson',
packages=find_packages(),
version=ADO_VERSION,
include_package_data = True,
install_requires = [
'python-modargs>=1.7',
'Markdown', # for reports
'dexy>=0.9.9'
],
entry_points = {
'console_scripts' : [ 'ado = ado.commands:run' ]
}
)
|
<commit_before>from ado.version import ADO_VERSION
from setuptools import setup, find_packages
setup(
name='ado',
author='Ana Nelson',
packages=find_packages(),
version=ADO_VERSION,
install_requires = [
'python-modargs>=1.7',
'Markdown', # for reports
'dexy>=0.9.9'
],
entry_points = {
'console_scripts' : [ 'ado = ado.commands:run' ]
}
)
<commit_msg>Set include package data to true.<commit_after>
|
from ado.version import ADO_VERSION
from setuptools import setup, find_packages
setup(
name='ado',
author='Ana Nelson',
packages=find_packages(),
version=ADO_VERSION,
include_package_data = True,
install_requires = [
'python-modargs>=1.7',
'Markdown', # for reports
'dexy>=0.9.9'
],
entry_points = {
'console_scripts' : [ 'ado = ado.commands:run' ]
}
)
|
from ado.version import ADO_VERSION
from setuptools import setup, find_packages
setup(
name='ado',
author='Ana Nelson',
packages=find_packages(),
version=ADO_VERSION,
install_requires = [
'python-modargs>=1.7',
'Markdown', # for reports
'dexy>=0.9.9'
],
entry_points = {
'console_scripts' : [ 'ado = ado.commands:run' ]
}
)
Set include package data to true.from ado.version import ADO_VERSION
from setuptools import setup, find_packages
setup(
name='ado',
author='Ana Nelson',
packages=find_packages(),
version=ADO_VERSION,
include_package_data = True,
install_requires = [
'python-modargs>=1.7',
'Markdown', # for reports
'dexy>=0.9.9'
],
entry_points = {
'console_scripts' : [ 'ado = ado.commands:run' ]
}
)
|
<commit_before>from ado.version import ADO_VERSION
from setuptools import setup, find_packages
setup(
name='ado',
author='Ana Nelson',
packages=find_packages(),
version=ADO_VERSION,
install_requires = [
'python-modargs>=1.7',
'Markdown', # for reports
'dexy>=0.9.9'
],
entry_points = {
'console_scripts' : [ 'ado = ado.commands:run' ]
}
)
<commit_msg>Set include package data to true.<commit_after>from ado.version import ADO_VERSION
from setuptools import setup, find_packages
setup(
name='ado',
author='Ana Nelson',
packages=find_packages(),
version=ADO_VERSION,
include_package_data = True,
install_requires = [
'python-modargs>=1.7',
'Markdown', # for reports
'dexy>=0.9.9'
],
entry_points = {
'console_scripts' : [ 'ado = ado.commands:run' ]
}
)
|
0ccf40ceff0ca0000641791dc9750fcd52932cd8
|
setup.py
|
setup.py
|
#!/usr/bin/env python
# Generated by jaraco.develop (https://bitbucket.org/jaraco/jaraco.develop)
import io
import setuptools
with io.open('README.txt', encoding='utf-8') as readme:
long_description = readme.read()
with io.open('CHANGES.txt', encoding='utf-8') as changes:
long_description += '\n\n' + changes.read()
setup_params = dict(
name='tempora',
use_hg_version=True,
author="Jason R. Coombs",
author_email="jaraco@jaraco.com",
description="tempora",
long_description=long_description,
url="https://bitbucket.org/jaraco/tempora",
py_modules=['tempora'],
entry_points={
'console_scripts': [
'calc-prorate = tempora:calculate_prorated_values',
],
},
setup_requires=[
'hgtools',
'pytest-runner',
'sphinx',
],
tests_require=[
'pytest',
],
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
],
)
if __name__ == '__main__':
setuptools.setup(**setup_params)
|
#!/usr/bin/env python
# Generated by jaraco.develop (https://bitbucket.org/jaraco/jaraco.develop)
import io
import setuptools
with io.open('README.txt', encoding='utf-8') as readme:
long_description = readme.read()
with io.open('CHANGES.txt', encoding='utf-8') as changes:
long_description += '\n\n' + changes.read()
setup_params = dict(
name='tempora',
use_hg_version=True,
author="Jason R. Coombs",
author_email="jaraco@jaraco.com",
description="tempora",
long_description=long_description,
url="https://bitbucket.org/jaraco/tempora",
py_modules=['tempora'],
license='MIT',
entry_points={
'console_scripts': [
'calc-prorate = tempora:calculate_prorated_values',
],
},
setup_requires=[
'hgtools',
'pytest-runner',
'sphinx',
],
tests_require=[
'pytest',
],
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
],
)
if __name__ == '__main__':
setuptools.setup(**setup_params)
|
Add license info (retroactively applied to all commits).
|
Add license info (retroactively applied to all commits).
|
Python
|
mit
|
jaraco/tempora
|
#!/usr/bin/env python
# Generated by jaraco.develop (https://bitbucket.org/jaraco/jaraco.develop)
import io
import setuptools
with io.open('README.txt', encoding='utf-8') as readme:
long_description = readme.read()
with io.open('CHANGES.txt', encoding='utf-8') as changes:
long_description += '\n\n' + changes.read()
setup_params = dict(
name='tempora',
use_hg_version=True,
author="Jason R. Coombs",
author_email="jaraco@jaraco.com",
description="tempora",
long_description=long_description,
url="https://bitbucket.org/jaraco/tempora",
py_modules=['tempora'],
entry_points={
'console_scripts': [
'calc-prorate = tempora:calculate_prorated_values',
],
},
setup_requires=[
'hgtools',
'pytest-runner',
'sphinx',
],
tests_require=[
'pytest',
],
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
],
)
if __name__ == '__main__':
setuptools.setup(**setup_params)
Add license info (retroactively applied to all commits).
|
#!/usr/bin/env python
# Generated by jaraco.develop (https://bitbucket.org/jaraco/jaraco.develop)
import io
import setuptools
with io.open('README.txt', encoding='utf-8') as readme:
long_description = readme.read()
with io.open('CHANGES.txt', encoding='utf-8') as changes:
long_description += '\n\n' + changes.read()
setup_params = dict(
name='tempora',
use_hg_version=True,
author="Jason R. Coombs",
author_email="jaraco@jaraco.com",
description="tempora",
long_description=long_description,
url="https://bitbucket.org/jaraco/tempora",
py_modules=['tempora'],
license='MIT',
entry_points={
'console_scripts': [
'calc-prorate = tempora:calculate_prorated_values',
],
},
setup_requires=[
'hgtools',
'pytest-runner',
'sphinx',
],
tests_require=[
'pytest',
],
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
],
)
if __name__ == '__main__':
setuptools.setup(**setup_params)
|
<commit_before>#!/usr/bin/env python
# Generated by jaraco.develop (https://bitbucket.org/jaraco/jaraco.develop)
import io
import setuptools
with io.open('README.txt', encoding='utf-8') as readme:
long_description = readme.read()
with io.open('CHANGES.txt', encoding='utf-8') as changes:
long_description += '\n\n' + changes.read()
setup_params = dict(
name='tempora',
use_hg_version=True,
author="Jason R. Coombs",
author_email="jaraco@jaraco.com",
description="tempora",
long_description=long_description,
url="https://bitbucket.org/jaraco/tempora",
py_modules=['tempora'],
entry_points={
'console_scripts': [
'calc-prorate = tempora:calculate_prorated_values',
],
},
setup_requires=[
'hgtools',
'pytest-runner',
'sphinx',
],
tests_require=[
'pytest',
],
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
],
)
if __name__ == '__main__':
setuptools.setup(**setup_params)
<commit_msg>Add license info (retroactively applied to all commits).<commit_after>
|
#!/usr/bin/env python
# Generated by jaraco.develop (https://bitbucket.org/jaraco/jaraco.develop)
import io
import setuptools
with io.open('README.txt', encoding='utf-8') as readme:
long_description = readme.read()
with io.open('CHANGES.txt', encoding='utf-8') as changes:
long_description += '\n\n' + changes.read()
setup_params = dict(
name='tempora',
use_hg_version=True,
author="Jason R. Coombs",
author_email="jaraco@jaraco.com",
description="tempora",
long_description=long_description,
url="https://bitbucket.org/jaraco/tempora",
py_modules=['tempora'],
license='MIT',
entry_points={
'console_scripts': [
'calc-prorate = tempora:calculate_prorated_values',
],
},
setup_requires=[
'hgtools',
'pytest-runner',
'sphinx',
],
tests_require=[
'pytest',
],
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
],
)
if __name__ == '__main__':
setuptools.setup(**setup_params)
|
#!/usr/bin/env python
# Generated by jaraco.develop (https://bitbucket.org/jaraco/jaraco.develop)
import io
import setuptools
with io.open('README.txt', encoding='utf-8') as readme:
long_description = readme.read()
with io.open('CHANGES.txt', encoding='utf-8') as changes:
long_description += '\n\n' + changes.read()
setup_params = dict(
name='tempora',
use_hg_version=True,
author="Jason R. Coombs",
author_email="jaraco@jaraco.com",
description="tempora",
long_description=long_description,
url="https://bitbucket.org/jaraco/tempora",
py_modules=['tempora'],
entry_points={
'console_scripts': [
'calc-prorate = tempora:calculate_prorated_values',
],
},
setup_requires=[
'hgtools',
'pytest-runner',
'sphinx',
],
tests_require=[
'pytest',
],
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
],
)
if __name__ == '__main__':
setuptools.setup(**setup_params)
Add license info (retroactively applied to all commits).#!/usr/bin/env python
# Generated by jaraco.develop (https://bitbucket.org/jaraco/jaraco.develop)
import io
import setuptools
with io.open('README.txt', encoding='utf-8') as readme:
long_description = readme.read()
with io.open('CHANGES.txt', encoding='utf-8') as changes:
long_description += '\n\n' + changes.read()
setup_params = dict(
name='tempora',
use_hg_version=True,
author="Jason R. Coombs",
author_email="jaraco@jaraco.com",
description="tempora",
long_description=long_description,
url="https://bitbucket.org/jaraco/tempora",
py_modules=['tempora'],
license='MIT',
entry_points={
'console_scripts': [
'calc-prorate = tempora:calculate_prorated_values',
],
},
setup_requires=[
'hgtools',
'pytest-runner',
'sphinx',
],
tests_require=[
'pytest',
],
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
],
)
if __name__ == '__main__':
setuptools.setup(**setup_params)
|
<commit_before>#!/usr/bin/env python
# Generated by jaraco.develop (https://bitbucket.org/jaraco/jaraco.develop)
import io
import setuptools
with io.open('README.txt', encoding='utf-8') as readme:
long_description = readme.read()
with io.open('CHANGES.txt', encoding='utf-8') as changes:
long_description += '\n\n' + changes.read()
setup_params = dict(
name='tempora',
use_hg_version=True,
author="Jason R. Coombs",
author_email="jaraco@jaraco.com",
description="tempora",
long_description=long_description,
url="https://bitbucket.org/jaraco/tempora",
py_modules=['tempora'],
entry_points={
'console_scripts': [
'calc-prorate = tempora:calculate_prorated_values',
],
},
setup_requires=[
'hgtools',
'pytest-runner',
'sphinx',
],
tests_require=[
'pytest',
],
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
],
)
if __name__ == '__main__':
setuptools.setup(**setup_params)
<commit_msg>Add license info (retroactively applied to all commits).<commit_after>#!/usr/bin/env python
# Generated by jaraco.develop (https://bitbucket.org/jaraco/jaraco.develop)
import io
import setuptools
with io.open('README.txt', encoding='utf-8') as readme:
long_description = readme.read()
with io.open('CHANGES.txt', encoding='utf-8') as changes:
long_description += '\n\n' + changes.read()
setup_params = dict(
name='tempora',
use_hg_version=True,
author="Jason R. Coombs",
author_email="jaraco@jaraco.com",
description="tempora",
long_description=long_description,
url="https://bitbucket.org/jaraco/tempora",
py_modules=['tempora'],
license='MIT',
entry_points={
'console_scripts': [
'calc-prorate = tempora:calculate_prorated_values',
],
},
setup_requires=[
'hgtools',
'pytest-runner',
'sphinx',
],
tests_require=[
'pytest',
],
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
],
)
if __name__ == '__main__':
setuptools.setup(**setup_params)
|
a4598045180d89130d6ec5bde3ca63b7155a9ccd
|
setup.py
|
setup.py
|
#!/usr/bin/env python
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
import os
import sys
if sys.version < '3':
execfile(os.path.join('algoliasearch', 'version.py'))
else:
exec(open("algoliasearch/version.py").read())
setup( name='algoliasearch',
version=VERSION,
description='Algolia Search API Client for Python',
url='https://github.com/algolia/algoliasearch-client-python',
packages = ["algoliasearch"],
install_requires = ['urllib3 >= 1.8.2'],
keywords = ['algolia', 'pyalgolia', 'search', 'backend', 'hosted', 'cloud', 'full-text search', 'faceted search'],
classifiers = [
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules',
],
)
|
#!/usr/bin/env python
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
import os
import sys
if sys.version < '3':
execfile(os.path.join('algoliasearch', 'version.py'))
else:
exec(open("algoliasearch/version.py").read())
setup( name='algoliasearch',
version=VERSION,
description='Algolia Search API Client for Python',
url='https://github.com/algolia/algoliasearch-client-python',
packages = ["algoliasearch"],
data_files = [('resources', 'resources/ca-bundle.crt')],
install_requires = ['urllib3 >= 1.8.2'],
keywords = ['algolia', 'pyalgolia', 'search', 'backend', 'hosted', 'cloud', 'full-text search', 'faceted search'],
classifiers = [
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules',
],
)
|
Include resources/ca-bundle.crt as data file
|
Include resources/ca-bundle.crt as data file
|
Python
|
mit
|
algolia/algoliasearch-client-python
|
#!/usr/bin/env python
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
import os
import sys
if sys.version < '3':
execfile(os.path.join('algoliasearch', 'version.py'))
else:
exec(open("algoliasearch/version.py").read())
setup( name='algoliasearch',
version=VERSION,
description='Algolia Search API Client for Python',
url='https://github.com/algolia/algoliasearch-client-python',
packages = ["algoliasearch"],
install_requires = ['urllib3 >= 1.8.2'],
keywords = ['algolia', 'pyalgolia', 'search', 'backend', 'hosted', 'cloud', 'full-text search', 'faceted search'],
classifiers = [
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules',
],
)
Include resources/ca-bundle.crt as data file
|
#!/usr/bin/env python
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
import os
import sys
if sys.version < '3':
execfile(os.path.join('algoliasearch', 'version.py'))
else:
exec(open("algoliasearch/version.py").read())
setup( name='algoliasearch',
version=VERSION,
description='Algolia Search API Client for Python',
url='https://github.com/algolia/algoliasearch-client-python',
packages = ["algoliasearch"],
data_files = [('resources', 'resources/ca-bundle.crt')],
install_requires = ['urllib3 >= 1.8.2'],
keywords = ['algolia', 'pyalgolia', 'search', 'backend', 'hosted', 'cloud', 'full-text search', 'faceted search'],
classifiers = [
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules',
],
)
|
<commit_before>#!/usr/bin/env python
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
import os
import sys
if sys.version < '3':
execfile(os.path.join('algoliasearch', 'version.py'))
else:
exec(open("algoliasearch/version.py").read())
setup( name='algoliasearch',
version=VERSION,
description='Algolia Search API Client for Python',
url='https://github.com/algolia/algoliasearch-client-python',
packages = ["algoliasearch"],
install_requires = ['urllib3 >= 1.8.2'],
keywords = ['algolia', 'pyalgolia', 'search', 'backend', 'hosted', 'cloud', 'full-text search', 'faceted search'],
classifiers = [
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules',
],
)
<commit_msg>Include resources/ca-bundle.crt as data file<commit_after>
|
#!/usr/bin/env python
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
import os
import sys
if sys.version < '3':
execfile(os.path.join('algoliasearch', 'version.py'))
else:
exec(open("algoliasearch/version.py").read())
setup( name='algoliasearch',
version=VERSION,
description='Algolia Search API Client for Python',
url='https://github.com/algolia/algoliasearch-client-python',
packages = ["algoliasearch"],
data_files = [('resources', 'resources/ca-bundle.crt')],
install_requires = ['urllib3 >= 1.8.2'],
keywords = ['algolia', 'pyalgolia', 'search', 'backend', 'hosted', 'cloud', 'full-text search', 'faceted search'],
classifiers = [
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules',
],
)
|
#!/usr/bin/env python
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
import os
import sys
if sys.version < '3':
execfile(os.path.join('algoliasearch', 'version.py'))
else:
exec(open("algoliasearch/version.py").read())
setup( name='algoliasearch',
version=VERSION,
description='Algolia Search API Client for Python',
url='https://github.com/algolia/algoliasearch-client-python',
packages = ["algoliasearch"],
install_requires = ['urllib3 >= 1.8.2'],
keywords = ['algolia', 'pyalgolia', 'search', 'backend', 'hosted', 'cloud', 'full-text search', 'faceted search'],
classifiers = [
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules',
],
)
Include resources/ca-bundle.crt as data file#!/usr/bin/env python
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
import os
import sys
if sys.version < '3':
execfile(os.path.join('algoliasearch', 'version.py'))
else:
exec(open("algoliasearch/version.py").read())
setup( name='algoliasearch',
version=VERSION,
description='Algolia Search API Client for Python',
url='https://github.com/algolia/algoliasearch-client-python',
packages = ["algoliasearch"],
data_files = [('resources', 'resources/ca-bundle.crt')],
install_requires = ['urllib3 >= 1.8.2'],
keywords = ['algolia', 'pyalgolia', 'search', 'backend', 'hosted', 'cloud', 'full-text search', 'faceted search'],
classifiers = [
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules',
],
)
|
<commit_before>#!/usr/bin/env python
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
import os
import sys
if sys.version < '3':
execfile(os.path.join('algoliasearch', 'version.py'))
else:
exec(open("algoliasearch/version.py").read())
setup( name='algoliasearch',
version=VERSION,
description='Algolia Search API Client for Python',
url='https://github.com/algolia/algoliasearch-client-python',
packages = ["algoliasearch"],
install_requires = ['urllib3 >= 1.8.2'],
keywords = ['algolia', 'pyalgolia', 'search', 'backend', 'hosted', 'cloud', 'full-text search', 'faceted search'],
classifiers = [
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules',
],
)
<commit_msg>Include resources/ca-bundle.crt as data file<commit_after>#!/usr/bin/env python
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
import os
import sys
if sys.version < '3':
execfile(os.path.join('algoliasearch', 'version.py'))
else:
exec(open("algoliasearch/version.py").read())
setup( name='algoliasearch',
version=VERSION,
description='Algolia Search API Client for Python',
url='https://github.com/algolia/algoliasearch-client-python',
packages = ["algoliasearch"],
data_files = [('resources', 'resources/ca-bundle.crt')],
install_requires = ['urllib3 >= 1.8.2'],
keywords = ['algolia', 'pyalgolia', 'search', 'backend', 'hosted', 'cloud', 'full-text search', 'faceted search'],
classifiers = [
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules',
],
)
|
67f9729d34732c82cbc26a393f7c5ddf4f27625e
|
setup.py
|
setup.py
|
import sys
from setuptools import find_packages, setup
with open('VERSION') as version_fp:
VERSION = version_fp.read().strip()
install_requires = [
'django-local-settings>=1.0a13',
'stashward',
]
if sys.version_info[:2] < (3, 4):
install_requires.append('enum34')
setup(
name='django-arcutils',
version=VERSION,
url='https://github.com/PSU-OIT-ARC/django-arcutils',
author='PSU - OIT - ARC',
author_email='consultants@pdx.edu',
description='Common utilities used in ARC Django projects',
packages=find_packages(),
include_package_data=True,
zip_safe=False,
install_requires=install_requires,
extras_require={
'ldap': [
'certifi>=2015.11.20.1',
'ldap3>=1.0.4',
],
'dev': [
'django>=1.7,<1.9',
'djangorestframework>3.3',
'flake8',
'ldap3',
],
},
entry_points="""
[console_scripts]
arcutils = arcutils.__main__:main
""",
classifiers=[
'Development Status :: 3 - Alpha',
'Framework :: Django',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
],
)
|
import sys
from setuptools import find_packages, setup
with open('VERSION') as version_fp:
VERSION = version_fp.read().strip()
install_requires = [
'django-local-settings>=1.0a13',
'stashward',
]
if sys.version_info[:2] < (3, 4):
install_requires.append('enum34')
setup(
name='django-arcutils',
version=VERSION,
url='https://github.com/PSU-OIT-ARC/django-arcutils',
author='PSU - OIT - ARC',
author_email='consultants@pdx.edu',
description='Common utilities used in ARC Django projects',
packages=find_packages(),
include_package_data=True,
zip_safe=False,
install_requires=install_requires,
extras_require={
'ldap': [
'certifi>=2016.2.28',
'ldap3>=1.0.4',
],
'dev': [
'django>=1.7,<1.9',
'djangorestframework>3.3',
'flake8',
'ldap3',
],
},
entry_points="""
[console_scripts]
arcutils = arcutils.__main__:main
""",
classifiers=[
'Development Status :: 3 - Alpha',
'Framework :: Django',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
],
)
|
Upgrade certifi 2015.11.20.1 => 2016.2.28
|
Upgrade certifi 2015.11.20.1 => 2016.2.28
|
Python
|
mit
|
PSU-OIT-ARC/django-arcutils,PSU-OIT-ARC/django-arcutils,wylee/django-arcutils,wylee/django-arcutils
|
import sys
from setuptools import find_packages, setup
with open('VERSION') as version_fp:
VERSION = version_fp.read().strip()
install_requires = [
'django-local-settings>=1.0a13',
'stashward',
]
if sys.version_info[:2] < (3, 4):
install_requires.append('enum34')
setup(
name='django-arcutils',
version=VERSION,
url='https://github.com/PSU-OIT-ARC/django-arcutils',
author='PSU - OIT - ARC',
author_email='consultants@pdx.edu',
description='Common utilities used in ARC Django projects',
packages=find_packages(),
include_package_data=True,
zip_safe=False,
install_requires=install_requires,
extras_require={
'ldap': [
'certifi>=2015.11.20.1',
'ldap3>=1.0.4',
],
'dev': [
'django>=1.7,<1.9',
'djangorestframework>3.3',
'flake8',
'ldap3',
],
},
entry_points="""
[console_scripts]
arcutils = arcutils.__main__:main
""",
classifiers=[
'Development Status :: 3 - Alpha',
'Framework :: Django',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
],
)
Upgrade certifi 2015.11.20.1 => 2016.2.28
|
import sys
from setuptools import find_packages, setup
with open('VERSION') as version_fp:
VERSION = version_fp.read().strip()
install_requires = [
'django-local-settings>=1.0a13',
'stashward',
]
if sys.version_info[:2] < (3, 4):
install_requires.append('enum34')
setup(
name='django-arcutils',
version=VERSION,
url='https://github.com/PSU-OIT-ARC/django-arcutils',
author='PSU - OIT - ARC',
author_email='consultants@pdx.edu',
description='Common utilities used in ARC Django projects',
packages=find_packages(),
include_package_data=True,
zip_safe=False,
install_requires=install_requires,
extras_require={
'ldap': [
'certifi>=2016.2.28',
'ldap3>=1.0.4',
],
'dev': [
'django>=1.7,<1.9',
'djangorestframework>3.3',
'flake8',
'ldap3',
],
},
entry_points="""
[console_scripts]
arcutils = arcutils.__main__:main
""",
classifiers=[
'Development Status :: 3 - Alpha',
'Framework :: Django',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
],
)
|
<commit_before>import sys
from setuptools import find_packages, setup
with open('VERSION') as version_fp:
VERSION = version_fp.read().strip()
install_requires = [
'django-local-settings>=1.0a13',
'stashward',
]
if sys.version_info[:2] < (3, 4):
install_requires.append('enum34')
setup(
name='django-arcutils',
version=VERSION,
url='https://github.com/PSU-OIT-ARC/django-arcutils',
author='PSU - OIT - ARC',
author_email='consultants@pdx.edu',
description='Common utilities used in ARC Django projects',
packages=find_packages(),
include_package_data=True,
zip_safe=False,
install_requires=install_requires,
extras_require={
'ldap': [
'certifi>=2015.11.20.1',
'ldap3>=1.0.4',
],
'dev': [
'django>=1.7,<1.9',
'djangorestframework>3.3',
'flake8',
'ldap3',
],
},
entry_points="""
[console_scripts]
arcutils = arcutils.__main__:main
""",
classifiers=[
'Development Status :: 3 - Alpha',
'Framework :: Django',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
],
)
<commit_msg>Upgrade certifi 2015.11.20.1 => 2016.2.28<commit_after>
|
import sys
from setuptools import find_packages, setup
with open('VERSION') as version_fp:
VERSION = version_fp.read().strip()
install_requires = [
'django-local-settings>=1.0a13',
'stashward',
]
if sys.version_info[:2] < (3, 4):
install_requires.append('enum34')
setup(
name='django-arcutils',
version=VERSION,
url='https://github.com/PSU-OIT-ARC/django-arcutils',
author='PSU - OIT - ARC',
author_email='consultants@pdx.edu',
description='Common utilities used in ARC Django projects',
packages=find_packages(),
include_package_data=True,
zip_safe=False,
install_requires=install_requires,
extras_require={
'ldap': [
'certifi>=2016.2.28',
'ldap3>=1.0.4',
],
'dev': [
'django>=1.7,<1.9',
'djangorestframework>3.3',
'flake8',
'ldap3',
],
},
entry_points="""
[console_scripts]
arcutils = arcutils.__main__:main
""",
classifiers=[
'Development Status :: 3 - Alpha',
'Framework :: Django',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
],
)
|
import sys
from setuptools import find_packages, setup
with open('VERSION') as version_fp:
VERSION = version_fp.read().strip()
install_requires = [
'django-local-settings>=1.0a13',
'stashward',
]
if sys.version_info[:2] < (3, 4):
install_requires.append('enum34')
setup(
name='django-arcutils',
version=VERSION,
url='https://github.com/PSU-OIT-ARC/django-arcutils',
author='PSU - OIT - ARC',
author_email='consultants@pdx.edu',
description='Common utilities used in ARC Django projects',
packages=find_packages(),
include_package_data=True,
zip_safe=False,
install_requires=install_requires,
extras_require={
'ldap': [
'certifi>=2015.11.20.1',
'ldap3>=1.0.4',
],
'dev': [
'django>=1.7,<1.9',
'djangorestframework>3.3',
'flake8',
'ldap3',
],
},
entry_points="""
[console_scripts]
arcutils = arcutils.__main__:main
""",
classifiers=[
'Development Status :: 3 - Alpha',
'Framework :: Django',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
],
)
Upgrade certifi 2015.11.20.1 => 2016.2.28import sys
from setuptools import find_packages, setup
with open('VERSION') as version_fp:
VERSION = version_fp.read().strip()
install_requires = [
'django-local-settings>=1.0a13',
'stashward',
]
if sys.version_info[:2] < (3, 4):
install_requires.append('enum34')
setup(
name='django-arcutils',
version=VERSION,
url='https://github.com/PSU-OIT-ARC/django-arcutils',
author='PSU - OIT - ARC',
author_email='consultants@pdx.edu',
description='Common utilities used in ARC Django projects',
packages=find_packages(),
include_package_data=True,
zip_safe=False,
install_requires=install_requires,
extras_require={
'ldap': [
'certifi>=2016.2.28',
'ldap3>=1.0.4',
],
'dev': [
'django>=1.7,<1.9',
'djangorestframework>3.3',
'flake8',
'ldap3',
],
},
entry_points="""
[console_scripts]
arcutils = arcutils.__main__:main
""",
classifiers=[
'Development Status :: 3 - Alpha',
'Framework :: Django',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
],
)
|
<commit_before>import sys
from setuptools import find_packages, setup
with open('VERSION') as version_fp:
VERSION = version_fp.read().strip()
install_requires = [
'django-local-settings>=1.0a13',
'stashward',
]
if sys.version_info[:2] < (3, 4):
install_requires.append('enum34')
setup(
name='django-arcutils',
version=VERSION,
url='https://github.com/PSU-OIT-ARC/django-arcutils',
author='PSU - OIT - ARC',
author_email='consultants@pdx.edu',
description='Common utilities used in ARC Django projects',
packages=find_packages(),
include_package_data=True,
zip_safe=False,
install_requires=install_requires,
extras_require={
'ldap': [
'certifi>=2015.11.20.1',
'ldap3>=1.0.4',
],
'dev': [
'django>=1.7,<1.9',
'djangorestframework>3.3',
'flake8',
'ldap3',
],
},
entry_points="""
[console_scripts]
arcutils = arcutils.__main__:main
""",
classifiers=[
'Development Status :: 3 - Alpha',
'Framework :: Django',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
],
)
<commit_msg>Upgrade certifi 2015.11.20.1 => 2016.2.28<commit_after>import sys
from setuptools import find_packages, setup
with open('VERSION') as version_fp:
VERSION = version_fp.read().strip()
install_requires = [
'django-local-settings>=1.0a13',
'stashward',
]
if sys.version_info[:2] < (3, 4):
install_requires.append('enum34')
setup(
name='django-arcutils',
version=VERSION,
url='https://github.com/PSU-OIT-ARC/django-arcutils',
author='PSU - OIT - ARC',
author_email='consultants@pdx.edu',
description='Common utilities used in ARC Django projects',
packages=find_packages(),
include_package_data=True,
zip_safe=False,
install_requires=install_requires,
extras_require={
'ldap': [
'certifi>=2016.2.28',
'ldap3>=1.0.4',
],
'dev': [
'django>=1.7,<1.9',
'djangorestframework>3.3',
'flake8',
'ldap3',
],
},
entry_points="""
[console_scripts]
arcutils = arcutils.__main__:main
""",
classifiers=[
'Development Status :: 3 - Alpha',
'Framework :: Django',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
],
)
|
a74c939b306e8bcc1aa987848ce6a69038555786
|
setup.py
|
setup.py
|
from distutils.core import setup, Extension
from setuptools import setup, Extension
config = {
'include_package_data': True,
'description': 'Deep RegulAtory GenOmic Neural Networks (DragoNN)',
'download_url': 'https://github.com/kundajelab/dragonn',
'version': '0.1',
'packages': ['dragonn', 'dragonn.synthetic'],
'package_data': {'dragonn.synthetic': ['motifs.txt.gz']},
'setup_requires': [],
'install_requires': ['numpy>=1.9', 'keras==0.3.2', 'deeplift', 'shapely', 'matplotlib'],
'dependency_links': ['https://github.com/kundajelab/deeplift/tarball/master#egg=deeplift-0.2'],
'scripts': [],
'name': 'dragonn'
}
if __name__== '__main__':
setup(**config)
|
from distutils.core import setup, Extension
from setuptools import setup, Extension
config = {
'include_package_data': True,
'description': 'Deep RegulAtory GenOmic Neural Networks (DragoNN)',
'download_url': 'https://github.com/kundajelab/dragonn',
'version': '0.1',
'packages': ['dragonn', 'dragonn.synthetic'],
'package_data': {'dragonn.synthetic': ['motifs.txt.gz']},
'setup_requires': [],
'install_requires': ['numpy>=1.9', 'keras==0.3.2', 'deeplift', 'shapely', 'matplotlib', 'sklearn'],
'dependency_links': ['https://github.com/kundajelab/deeplift/tarball/master#egg=deeplift-0.2'],
'scripts': [],
'name': 'dragonn'
}
if __name__== '__main__':
setup(**config)
|
Add sklearn dependency for tutorial
|
Add sklearn dependency for tutorial
|
Python
|
mit
|
agitter/dragonn,jisraeli/dragonn,jisraeli/dragonn,agitter/dragonn
|
from distutils.core import setup, Extension
from setuptools import setup, Extension
config = {
'include_package_data': True,
'description': 'Deep RegulAtory GenOmic Neural Networks (DragoNN)',
'download_url': 'https://github.com/kundajelab/dragonn',
'version': '0.1',
'packages': ['dragonn', 'dragonn.synthetic'],
'package_data': {'dragonn.synthetic': ['motifs.txt.gz']},
'setup_requires': [],
'install_requires': ['numpy>=1.9', 'keras==0.3.2', 'deeplift', 'shapely', 'matplotlib'],
'dependency_links': ['https://github.com/kundajelab/deeplift/tarball/master#egg=deeplift-0.2'],
'scripts': [],
'name': 'dragonn'
}
if __name__== '__main__':
setup(**config)
Add sklearn dependency for tutorial
|
from distutils.core import setup, Extension
from setuptools import setup, Extension
config = {
'include_package_data': True,
'description': 'Deep RegulAtory GenOmic Neural Networks (DragoNN)',
'download_url': 'https://github.com/kundajelab/dragonn',
'version': '0.1',
'packages': ['dragonn', 'dragonn.synthetic'],
'package_data': {'dragonn.synthetic': ['motifs.txt.gz']},
'setup_requires': [],
'install_requires': ['numpy>=1.9', 'keras==0.3.2', 'deeplift', 'shapely', 'matplotlib', 'sklearn'],
'dependency_links': ['https://github.com/kundajelab/deeplift/tarball/master#egg=deeplift-0.2'],
'scripts': [],
'name': 'dragonn'
}
if __name__== '__main__':
setup(**config)
|
<commit_before>from distutils.core import setup, Extension
from setuptools import setup, Extension
config = {
'include_package_data': True,
'description': 'Deep RegulAtory GenOmic Neural Networks (DragoNN)',
'download_url': 'https://github.com/kundajelab/dragonn',
'version': '0.1',
'packages': ['dragonn', 'dragonn.synthetic'],
'package_data': {'dragonn.synthetic': ['motifs.txt.gz']},
'setup_requires': [],
'install_requires': ['numpy>=1.9', 'keras==0.3.2', 'deeplift', 'shapely', 'matplotlib'],
'dependency_links': ['https://github.com/kundajelab/deeplift/tarball/master#egg=deeplift-0.2'],
'scripts': [],
'name': 'dragonn'
}
if __name__== '__main__':
setup(**config)
<commit_msg>Add sklearn dependency for tutorial<commit_after>
|
from distutils.core import setup, Extension
from setuptools import setup, Extension
config = {
'include_package_data': True,
'description': 'Deep RegulAtory GenOmic Neural Networks (DragoNN)',
'download_url': 'https://github.com/kundajelab/dragonn',
'version': '0.1',
'packages': ['dragonn', 'dragonn.synthetic'],
'package_data': {'dragonn.synthetic': ['motifs.txt.gz']},
'setup_requires': [],
'install_requires': ['numpy>=1.9', 'keras==0.3.2', 'deeplift', 'shapely', 'matplotlib', 'sklearn'],
'dependency_links': ['https://github.com/kundajelab/deeplift/tarball/master#egg=deeplift-0.2'],
'scripts': [],
'name': 'dragonn'
}
if __name__== '__main__':
setup(**config)
|
from distutils.core import setup, Extension
from setuptools import setup, Extension
config = {
'include_package_data': True,
'description': 'Deep RegulAtory GenOmic Neural Networks (DragoNN)',
'download_url': 'https://github.com/kundajelab/dragonn',
'version': '0.1',
'packages': ['dragonn', 'dragonn.synthetic'],
'package_data': {'dragonn.synthetic': ['motifs.txt.gz']},
'setup_requires': [],
'install_requires': ['numpy>=1.9', 'keras==0.3.2', 'deeplift', 'shapely', 'matplotlib'],
'dependency_links': ['https://github.com/kundajelab/deeplift/tarball/master#egg=deeplift-0.2'],
'scripts': [],
'name': 'dragonn'
}
if __name__== '__main__':
setup(**config)
Add sklearn dependency for tutorialfrom distutils.core import setup, Extension
from setuptools import setup, Extension
config = {
'include_package_data': True,
'description': 'Deep RegulAtory GenOmic Neural Networks (DragoNN)',
'download_url': 'https://github.com/kundajelab/dragonn',
'version': '0.1',
'packages': ['dragonn', 'dragonn.synthetic'],
'package_data': {'dragonn.synthetic': ['motifs.txt.gz']},
'setup_requires': [],
'install_requires': ['numpy>=1.9', 'keras==0.3.2', 'deeplift', 'shapely', 'matplotlib', 'sklearn'],
'dependency_links': ['https://github.com/kundajelab/deeplift/tarball/master#egg=deeplift-0.2'],
'scripts': [],
'name': 'dragonn'
}
if __name__== '__main__':
setup(**config)
|
<commit_before>from distutils.core import setup, Extension
from setuptools import setup, Extension
config = {
'include_package_data': True,
'description': 'Deep RegulAtory GenOmic Neural Networks (DragoNN)',
'download_url': 'https://github.com/kundajelab/dragonn',
'version': '0.1',
'packages': ['dragonn', 'dragonn.synthetic'],
'package_data': {'dragonn.synthetic': ['motifs.txt.gz']},
'setup_requires': [],
'install_requires': ['numpy>=1.9', 'keras==0.3.2', 'deeplift', 'shapely', 'matplotlib'],
'dependency_links': ['https://github.com/kundajelab/deeplift/tarball/master#egg=deeplift-0.2'],
'scripts': [],
'name': 'dragonn'
}
if __name__== '__main__':
setup(**config)
<commit_msg>Add sklearn dependency for tutorial<commit_after>from distutils.core import setup, Extension
from setuptools import setup, Extension
config = {
'include_package_data': True,
'description': 'Deep RegulAtory GenOmic Neural Networks (DragoNN)',
'download_url': 'https://github.com/kundajelab/dragonn',
'version': '0.1',
'packages': ['dragonn', 'dragonn.synthetic'],
'package_data': {'dragonn.synthetic': ['motifs.txt.gz']},
'setup_requires': [],
'install_requires': ['numpy>=1.9', 'keras==0.3.2', 'deeplift', 'shapely', 'matplotlib', 'sklearn'],
'dependency_links': ['https://github.com/kundajelab/deeplift/tarball/master#egg=deeplift-0.2'],
'scripts': [],
'name': 'dragonn'
}
if __name__== '__main__':
setup(**config)
|
e650562758023a01b9c3566d1e35bb5185d1193a
|
setup.py
|
setup.py
|
from setuptools import setup, find_packages
import torba
setup(
name='torba',
version=torba.__version__,
url='https://github.com/lbryio/torba',
license='MIT',
author='LBRY Inc.',
author_email='hello@lbry.io',
description='Wallet library for bitcoin based currencies.',
keywords='wallet,crypto,currency,money,bitcoin,lbry',
classifiers=(
'Framework :: AsyncIO',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Operating System :: OS Independent',
'Topic :: Internet',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: System :: Distributed Computing',
'Topic :: Utilities',
),
packages=find_packages(exclude=('tests',)),
python_requires='>=3.6',
install_requires=(
'aiorpcx',
'coincurve',
'pbkdf2',
'cryptography'
),
extras_require={
'test': (
'mock',
)
}
)
|
import os
from setuptools import setup, find_packages
import torba
setup(
name='torba',
version=torba.__version__,
url='https://github.com/lbryio/torba',
license='MIT',
author='LBRY Inc.',
author_email='hello@lbry.io',
description='Wallet library for bitcoin based currencies.',
long_description=open(os.path.join(os.path.dirname(__file__), 'README.md'),
encoding='utf-8').read(),
long_description_content_type="text/markdown",
keywords='wallet,crypto,currency,money,bitcoin,lbry',
classifiers=(
'Framework :: AsyncIO',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Operating System :: OS Independent',
'Topic :: Internet',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: System :: Distributed Computing',
'Topic :: Utilities',
),
packages=find_packages(exclude=('tests',)),
python_requires='>=3.6',
install_requires=(
'aiorpcx',
'coincurve',
'pbkdf2',
'cryptography'
),
extras_require={
'test': (
'mock',
)
}
)
|
Use README as long description on PyPI
|
Use README as long description on PyPI
|
Python
|
mit
|
lbryio/lbry,lbryio/lbry,lbryio/lbry
|
from setuptools import setup, find_packages
import torba
setup(
name='torba',
version=torba.__version__,
url='https://github.com/lbryio/torba',
license='MIT',
author='LBRY Inc.',
author_email='hello@lbry.io',
description='Wallet library for bitcoin based currencies.',
keywords='wallet,crypto,currency,money,bitcoin,lbry',
classifiers=(
'Framework :: AsyncIO',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Operating System :: OS Independent',
'Topic :: Internet',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: System :: Distributed Computing',
'Topic :: Utilities',
),
packages=find_packages(exclude=('tests',)),
python_requires='>=3.6',
install_requires=(
'aiorpcx',
'coincurve',
'pbkdf2',
'cryptography'
),
extras_require={
'test': (
'mock',
)
}
)
Use README as long description on PyPI
|
import os
from setuptools import setup, find_packages
import torba
setup(
name='torba',
version=torba.__version__,
url='https://github.com/lbryio/torba',
license='MIT',
author='LBRY Inc.',
author_email='hello@lbry.io',
description='Wallet library for bitcoin based currencies.',
long_description=open(os.path.join(os.path.dirname(__file__), 'README.md'),
encoding='utf-8').read(),
long_description_content_type="text/markdown",
keywords='wallet,crypto,currency,money,bitcoin,lbry',
classifiers=(
'Framework :: AsyncIO',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Operating System :: OS Independent',
'Topic :: Internet',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: System :: Distributed Computing',
'Topic :: Utilities',
),
packages=find_packages(exclude=('tests',)),
python_requires='>=3.6',
install_requires=(
'aiorpcx',
'coincurve',
'pbkdf2',
'cryptography'
),
extras_require={
'test': (
'mock',
)
}
)
|
<commit_before>from setuptools import setup, find_packages
import torba
setup(
name='torba',
version=torba.__version__,
url='https://github.com/lbryio/torba',
license='MIT',
author='LBRY Inc.',
author_email='hello@lbry.io',
description='Wallet library for bitcoin based currencies.',
keywords='wallet,crypto,currency,money,bitcoin,lbry',
classifiers=(
'Framework :: AsyncIO',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Operating System :: OS Independent',
'Topic :: Internet',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: System :: Distributed Computing',
'Topic :: Utilities',
),
packages=find_packages(exclude=('tests',)),
python_requires='>=3.6',
install_requires=(
'aiorpcx',
'coincurve',
'pbkdf2',
'cryptography'
),
extras_require={
'test': (
'mock',
)
}
)
<commit_msg>Use README as long description on PyPI<commit_after>
|
import os
from setuptools import setup, find_packages
import torba
setup(
name='torba',
version=torba.__version__,
url='https://github.com/lbryio/torba',
license='MIT',
author='LBRY Inc.',
author_email='hello@lbry.io',
description='Wallet library for bitcoin based currencies.',
long_description=open(os.path.join(os.path.dirname(__file__), 'README.md'),
encoding='utf-8').read(),
long_description_content_type="text/markdown",
keywords='wallet,crypto,currency,money,bitcoin,lbry',
classifiers=(
'Framework :: AsyncIO',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Operating System :: OS Independent',
'Topic :: Internet',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: System :: Distributed Computing',
'Topic :: Utilities',
),
packages=find_packages(exclude=('tests',)),
python_requires='>=3.6',
install_requires=(
'aiorpcx',
'coincurve',
'pbkdf2',
'cryptography'
),
extras_require={
'test': (
'mock',
)
}
)
|
from setuptools import setup, find_packages
import torba
setup(
name='torba',
version=torba.__version__,
url='https://github.com/lbryio/torba',
license='MIT',
author='LBRY Inc.',
author_email='hello@lbry.io',
description='Wallet library for bitcoin based currencies.',
keywords='wallet,crypto,currency,money,bitcoin,lbry',
classifiers=(
'Framework :: AsyncIO',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Operating System :: OS Independent',
'Topic :: Internet',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: System :: Distributed Computing',
'Topic :: Utilities',
),
packages=find_packages(exclude=('tests',)),
python_requires='>=3.6',
install_requires=(
'aiorpcx',
'coincurve',
'pbkdf2',
'cryptography'
),
extras_require={
'test': (
'mock',
)
}
)
Use README as long description on PyPIimport os
from setuptools import setup, find_packages
import torba
setup(
name='torba',
version=torba.__version__,
url='https://github.com/lbryio/torba',
license='MIT',
author='LBRY Inc.',
author_email='hello@lbry.io',
description='Wallet library for bitcoin based currencies.',
long_description=open(os.path.join(os.path.dirname(__file__), 'README.md'),
encoding='utf-8').read(),
long_description_content_type="text/markdown",
keywords='wallet,crypto,currency,money,bitcoin,lbry',
classifiers=(
'Framework :: AsyncIO',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Operating System :: OS Independent',
'Topic :: Internet',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: System :: Distributed Computing',
'Topic :: Utilities',
),
packages=find_packages(exclude=('tests',)),
python_requires='>=3.6',
install_requires=(
'aiorpcx',
'coincurve',
'pbkdf2',
'cryptography'
),
extras_require={
'test': (
'mock',
)
}
)
|
<commit_before>from setuptools import setup, find_packages
import torba
setup(
name='torba',
version=torba.__version__,
url='https://github.com/lbryio/torba',
license='MIT',
author='LBRY Inc.',
author_email='hello@lbry.io',
description='Wallet library for bitcoin based currencies.',
keywords='wallet,crypto,currency,money,bitcoin,lbry',
classifiers=(
'Framework :: AsyncIO',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Operating System :: OS Independent',
'Topic :: Internet',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: System :: Distributed Computing',
'Topic :: Utilities',
),
packages=find_packages(exclude=('tests',)),
python_requires='>=3.6',
install_requires=(
'aiorpcx',
'coincurve',
'pbkdf2',
'cryptography'
),
extras_require={
'test': (
'mock',
)
}
)
<commit_msg>Use README as long description on PyPI<commit_after>import os
from setuptools import setup, find_packages
import torba
setup(
name='torba',
version=torba.__version__,
url='https://github.com/lbryio/torba',
license='MIT',
author='LBRY Inc.',
author_email='hello@lbry.io',
description='Wallet library for bitcoin based currencies.',
long_description=open(os.path.join(os.path.dirname(__file__), 'README.md'),
encoding='utf-8').read(),
long_description_content_type="text/markdown",
keywords='wallet,crypto,currency,money,bitcoin,lbry',
classifiers=(
'Framework :: AsyncIO',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Operating System :: OS Independent',
'Topic :: Internet',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: System :: Distributed Computing',
'Topic :: Utilities',
),
packages=find_packages(exclude=('tests',)),
python_requires='>=3.6',
install_requires=(
'aiorpcx',
'coincurve',
'pbkdf2',
'cryptography'
),
extras_require={
'test': (
'mock',
)
}
)
|
cacbc6825be010f6b839c8d21392a43b8b7b938d
|
setup.py
|
setup.py
|
from distutils.core import setup
setup(name='pandocfilters',
version='1.0',
description='Utilities for writing pandoc filters in python',
author='John MacFarlane',
author_email='fiddlosopher@gmail.com',
url='http://github.com/jgm/pandocfilters',
py_modules=['pandocfilters'],
keywords=['pandoc'],
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Console',
'Intended Audience :: End Users/Desktop',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Text Processing :: Filters'
],
)
|
from distutils.core import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(name='pandocfilters',
version='1.0',
description='Utilities for writing pandoc filters in python',
long_description=read('README.rst'),
author='John MacFarlane',
author_email='fiddlosopher@gmail.com',
url='http://github.com/jgm/pandocfilters',
py_modules=['pandocfilters'],
keywords=['pandoc'],
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Console',
'Intended Audience :: End Users/Desktop',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Text Processing :: Filters'
],
)
|
INclude README as long description.
|
INclude README as long description.
|
Python
|
bsd-3-clause
|
AugustH/pandocfilters,infotroph/pandocfilters,silvio/pandocfilters,alycosta/pandocfilters,timtylin/scholdoc-filters,jgm/pandocfilters
|
from distutils.core import setup
setup(name='pandocfilters',
version='1.0',
description='Utilities for writing pandoc filters in python',
author='John MacFarlane',
author_email='fiddlosopher@gmail.com',
url='http://github.com/jgm/pandocfilters',
py_modules=['pandocfilters'],
keywords=['pandoc'],
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Console',
'Intended Audience :: End Users/Desktop',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Text Processing :: Filters'
],
)
INclude README as long description.
|
from distutils.core import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(name='pandocfilters',
version='1.0',
description='Utilities for writing pandoc filters in python',
long_description=read('README.rst'),
author='John MacFarlane',
author_email='fiddlosopher@gmail.com',
url='http://github.com/jgm/pandocfilters',
py_modules=['pandocfilters'],
keywords=['pandoc'],
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Console',
'Intended Audience :: End Users/Desktop',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Text Processing :: Filters'
],
)
|
<commit_before>from distutils.core import setup
setup(name='pandocfilters',
version='1.0',
description='Utilities for writing pandoc filters in python',
author='John MacFarlane',
author_email='fiddlosopher@gmail.com',
url='http://github.com/jgm/pandocfilters',
py_modules=['pandocfilters'],
keywords=['pandoc'],
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Console',
'Intended Audience :: End Users/Desktop',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Text Processing :: Filters'
],
)
<commit_msg>INclude README as long description.<commit_after>
|
from distutils.core import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(name='pandocfilters',
version='1.0',
description='Utilities for writing pandoc filters in python',
long_description=read('README.rst'),
author='John MacFarlane',
author_email='fiddlosopher@gmail.com',
url='http://github.com/jgm/pandocfilters',
py_modules=['pandocfilters'],
keywords=['pandoc'],
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Console',
'Intended Audience :: End Users/Desktop',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Text Processing :: Filters'
],
)
|
from distutils.core import setup
setup(name='pandocfilters',
version='1.0',
description='Utilities for writing pandoc filters in python',
author='John MacFarlane',
author_email='fiddlosopher@gmail.com',
url='http://github.com/jgm/pandocfilters',
py_modules=['pandocfilters'],
keywords=['pandoc'],
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Console',
'Intended Audience :: End Users/Desktop',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Text Processing :: Filters'
],
)
INclude README as long description.from distutils.core import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(name='pandocfilters',
version='1.0',
description='Utilities for writing pandoc filters in python',
long_description=read('README.rst'),
author='John MacFarlane',
author_email='fiddlosopher@gmail.com',
url='http://github.com/jgm/pandocfilters',
py_modules=['pandocfilters'],
keywords=['pandoc'],
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Console',
'Intended Audience :: End Users/Desktop',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Text Processing :: Filters'
],
)
|
<commit_before>from distutils.core import setup
setup(name='pandocfilters',
version='1.0',
description='Utilities for writing pandoc filters in python',
author='John MacFarlane',
author_email='fiddlosopher@gmail.com',
url='http://github.com/jgm/pandocfilters',
py_modules=['pandocfilters'],
keywords=['pandoc'],
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Console',
'Intended Audience :: End Users/Desktop',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Text Processing :: Filters'
],
)
<commit_msg>INclude README as long description.<commit_after>from distutils.core import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(name='pandocfilters',
version='1.0',
description='Utilities for writing pandoc filters in python',
long_description=read('README.rst'),
author='John MacFarlane',
author_email='fiddlosopher@gmail.com',
url='http://github.com/jgm/pandocfilters',
py_modules=['pandocfilters'],
keywords=['pandoc'],
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Console',
'Intended Audience :: End Users/Desktop',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Text Processing :: Filters'
],
)
|
5181b779555de20c55fa5bdb67c1b4d52ae5cc03
|
setup.py
|
setup.py
|
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(
name='python-evrythng',
version='0.1',
packages=['evrythng', 'evrythng.entities'],
package_dir={'': 'src'},
url='https://github.com/GooeeIOT/python-evrythng',
license='MIT',
author='Lyle Scott, III',
author_email='lyle@digitalfoo.net',
description='A Python wrapper about the Evrythng REST API.'
)
|
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(
name='python-evrythng',
version='0.2',
packages=['evrythng', 'evrythng.entities'],
package_dir={'': 'src'},
url='https://github.com/GooeeIOT/python-evrythng',
license='MIT',
author='Gooee, Inc',
author_email='lyle@gooee.com',
description='A Python wrapper about the Evrythng REST API.',
install_requires=[
'requests',
],
)
|
Add requests as a requirement package.
|
Add requests as a requirement package.
|
Python
|
mit
|
GooeeIOT/python-evrythng
|
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(
name='python-evrythng',
version='0.1',
packages=['evrythng', 'evrythng.entities'],
package_dir={'': 'src'},
url='https://github.com/GooeeIOT/python-evrythng',
license='MIT',
author='Lyle Scott, III',
author_email='lyle@digitalfoo.net',
description='A Python wrapper about the Evrythng REST API.'
)
Add requests as a requirement package.
|
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(
name='python-evrythng',
version='0.2',
packages=['evrythng', 'evrythng.entities'],
package_dir={'': 'src'},
url='https://github.com/GooeeIOT/python-evrythng',
license='MIT',
author='Gooee, Inc',
author_email='lyle@gooee.com',
description='A Python wrapper about the Evrythng REST API.',
install_requires=[
'requests',
],
)
|
<commit_before>try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(
name='python-evrythng',
version='0.1',
packages=['evrythng', 'evrythng.entities'],
package_dir={'': 'src'},
url='https://github.com/GooeeIOT/python-evrythng',
license='MIT',
author='Lyle Scott, III',
author_email='lyle@digitalfoo.net',
description='A Python wrapper about the Evrythng REST API.'
)
<commit_msg>Add requests as a requirement package.<commit_after>
|
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(
name='python-evrythng',
version='0.2',
packages=['evrythng', 'evrythng.entities'],
package_dir={'': 'src'},
url='https://github.com/GooeeIOT/python-evrythng',
license='MIT',
author='Gooee, Inc',
author_email='lyle@gooee.com',
description='A Python wrapper about the Evrythng REST API.',
install_requires=[
'requests',
],
)
|
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(
name='python-evrythng',
version='0.1',
packages=['evrythng', 'evrythng.entities'],
package_dir={'': 'src'},
url='https://github.com/GooeeIOT/python-evrythng',
license='MIT',
author='Lyle Scott, III',
author_email='lyle@digitalfoo.net',
description='A Python wrapper about the Evrythng REST API.'
)
Add requests as a requirement package.try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(
name='python-evrythng',
version='0.2',
packages=['evrythng', 'evrythng.entities'],
package_dir={'': 'src'},
url='https://github.com/GooeeIOT/python-evrythng',
license='MIT',
author='Gooee, Inc',
author_email='lyle@gooee.com',
description='A Python wrapper about the Evrythng REST API.',
install_requires=[
'requests',
],
)
|
<commit_before>try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(
name='python-evrythng',
version='0.1',
packages=['evrythng', 'evrythng.entities'],
package_dir={'': 'src'},
url='https://github.com/GooeeIOT/python-evrythng',
license='MIT',
author='Lyle Scott, III',
author_email='lyle@digitalfoo.net',
description='A Python wrapper about the Evrythng REST API.'
)
<commit_msg>Add requests as a requirement package.<commit_after>try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(
name='python-evrythng',
version='0.2',
packages=['evrythng', 'evrythng.entities'],
package_dir={'': 'src'},
url='https://github.com/GooeeIOT/python-evrythng',
license='MIT',
author='Gooee, Inc',
author_email='lyle@gooee.com',
description='A Python wrapper about the Evrythng REST API.',
install_requires=[
'requests',
],
)
|
50d875569eeab42b9967890e8db61ec2f5ed0eb7
|
setup.py
|
setup.py
|
import os
from setuptools import setup, find_packages
requires = [
'pyramid',
'pyramid_chameleon',
'pyramid_debugtoolbar',
'waitress',
]
setup(name='kimochi-consumer',
version='0.0',
description='kimochi-consumer',
long_description="Example content consumer for Kimochi.",
classifiers=[
"Programming Language :: Python",
"Framework :: Pyramid",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
],
author='',
author_email='',
url='',
keywords='web pyramid pylons',
packages=find_packages(),
include_package_data=True,
zip_safe=False,
install_requires=requires,
tests_require=requires,
test_suite="kimochiconsumer",
entry_points="""\
[paste.app_factory]
main = kimochiconsumer:main
""",
)
|
import os
from setuptools import setup, find_packages
requires = [
'pyramid',
'pyramid_debugtoolbar',
'pyramid_mako',
'waitress',
]
setup(name='kimochi-consumer',
version='0.0',
description='kimochi-consumer',
long_description="Example content consumer for Kimochi.",
classifiers=[
"Programming Language :: Python",
"Framework :: Pyramid",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
],
author='',
author_email='',
url='',
keywords='web pyramid pylons',
packages=find_packages(),
include_package_data=True,
zip_safe=False,
install_requires=requires,
tests_require=requires,
test_suite="kimochiconsumer",
entry_points="""\
[paste.app_factory]
main = kimochiconsumer:main
""",
)
|
Use mako for templating instead of chameleon
|
Use mako for templating instead of chameleon
|
Python
|
mit
|
matslindh/kimochi-consumer
|
import os
from setuptools import setup, find_packages
requires = [
'pyramid',
'pyramid_chameleon',
'pyramid_debugtoolbar',
'waitress',
]
setup(name='kimochi-consumer',
version='0.0',
description='kimochi-consumer',
long_description="Example content consumer for Kimochi.",
classifiers=[
"Programming Language :: Python",
"Framework :: Pyramid",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
],
author='',
author_email='',
url='',
keywords='web pyramid pylons',
packages=find_packages(),
include_package_data=True,
zip_safe=False,
install_requires=requires,
tests_require=requires,
test_suite="kimochiconsumer",
entry_points="""\
[paste.app_factory]
main = kimochiconsumer:main
""",
)
Use mako for templating instead of chameleon
|
import os
from setuptools import setup, find_packages
requires = [
'pyramid',
'pyramid_debugtoolbar',
'pyramid_mako',
'waitress',
]
setup(name='kimochi-consumer',
version='0.0',
description='kimochi-consumer',
long_description="Example content consumer for Kimochi.",
classifiers=[
"Programming Language :: Python",
"Framework :: Pyramid",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
],
author='',
author_email='',
url='',
keywords='web pyramid pylons',
packages=find_packages(),
include_package_data=True,
zip_safe=False,
install_requires=requires,
tests_require=requires,
test_suite="kimochiconsumer",
entry_points="""\
[paste.app_factory]
main = kimochiconsumer:main
""",
)
|
<commit_before>import os
from setuptools import setup, find_packages
requires = [
'pyramid',
'pyramid_chameleon',
'pyramid_debugtoolbar',
'waitress',
]
setup(name='kimochi-consumer',
version='0.0',
description='kimochi-consumer',
long_description="Example content consumer for Kimochi.",
classifiers=[
"Programming Language :: Python",
"Framework :: Pyramid",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
],
author='',
author_email='',
url='',
keywords='web pyramid pylons',
packages=find_packages(),
include_package_data=True,
zip_safe=False,
install_requires=requires,
tests_require=requires,
test_suite="kimochiconsumer",
entry_points="""\
[paste.app_factory]
main = kimochiconsumer:main
""",
)
<commit_msg>Use mako for templating instead of chameleon<commit_after>
|
import os
from setuptools import setup, find_packages
requires = [
'pyramid',
'pyramid_debugtoolbar',
'pyramid_mako',
'waitress',
]
setup(name='kimochi-consumer',
version='0.0',
description='kimochi-consumer',
long_description="Example content consumer for Kimochi.",
classifiers=[
"Programming Language :: Python",
"Framework :: Pyramid",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
],
author='',
author_email='',
url='',
keywords='web pyramid pylons',
packages=find_packages(),
include_package_data=True,
zip_safe=False,
install_requires=requires,
tests_require=requires,
test_suite="kimochiconsumer",
entry_points="""\
[paste.app_factory]
main = kimochiconsumer:main
""",
)
|
import os
from setuptools import setup, find_packages
requires = [
'pyramid',
'pyramid_chameleon',
'pyramid_debugtoolbar',
'waitress',
]
setup(name='kimochi-consumer',
version='0.0',
description='kimochi-consumer',
long_description="Example content consumer for Kimochi.",
classifiers=[
"Programming Language :: Python",
"Framework :: Pyramid",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
],
author='',
author_email='',
url='',
keywords='web pyramid pylons',
packages=find_packages(),
include_package_data=True,
zip_safe=False,
install_requires=requires,
tests_require=requires,
test_suite="kimochiconsumer",
entry_points="""\
[paste.app_factory]
main = kimochiconsumer:main
""",
)
Use mako for templating instead of chameleonimport os
from setuptools import setup, find_packages
requires = [
'pyramid',
'pyramid_debugtoolbar',
'pyramid_mako',
'waitress',
]
setup(name='kimochi-consumer',
version='0.0',
description='kimochi-consumer',
long_description="Example content consumer for Kimochi.",
classifiers=[
"Programming Language :: Python",
"Framework :: Pyramid",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
],
author='',
author_email='',
url='',
keywords='web pyramid pylons',
packages=find_packages(),
include_package_data=True,
zip_safe=False,
install_requires=requires,
tests_require=requires,
test_suite="kimochiconsumer",
entry_points="""\
[paste.app_factory]
main = kimochiconsumer:main
""",
)
|
<commit_before>import os
from setuptools import setup, find_packages
requires = [
'pyramid',
'pyramid_chameleon',
'pyramid_debugtoolbar',
'waitress',
]
setup(name='kimochi-consumer',
version='0.0',
description='kimochi-consumer',
long_description="Example content consumer for Kimochi.",
classifiers=[
"Programming Language :: Python",
"Framework :: Pyramid",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
],
author='',
author_email='',
url='',
keywords='web pyramid pylons',
packages=find_packages(),
include_package_data=True,
zip_safe=False,
install_requires=requires,
tests_require=requires,
test_suite="kimochiconsumer",
entry_points="""\
[paste.app_factory]
main = kimochiconsumer:main
""",
)
<commit_msg>Use mako for templating instead of chameleon<commit_after>import os
from setuptools import setup, find_packages
requires = [
'pyramid',
'pyramid_debugtoolbar',
'pyramid_mako',
'waitress',
]
setup(name='kimochi-consumer',
version='0.0',
description='kimochi-consumer',
long_description="Example content consumer for Kimochi.",
classifiers=[
"Programming Language :: Python",
"Framework :: Pyramid",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
],
author='',
author_email='',
url='',
keywords='web pyramid pylons',
packages=find_packages(),
include_package_data=True,
zip_safe=False,
install_requires=requires,
tests_require=requires,
test_suite="kimochiconsumer",
entry_points="""\
[paste.app_factory]
main = kimochiconsumer:main
""",
)
|
20419a44c76fc042856857c2883de19342fa2b1b
|
setup.py
|
setup.py
|
#!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='django-fancypages',
version=":versiontools:oscar_mws:",
url='https://github.com/tangentlabs/django-oscar-mws',
author="Sebastian Vetter",
author_email="sebastian.vetter@tangentsnowball.com.au",
description="Integrating Oscar with Amazon MWS",
long_description='\n\n'.join([
open('README.rst').read(),
open('CHANGELOG.rst').read(),
]),
keywords="django, Oscar, django-oscar, Amazon, MWS, fulfilment",
license='BSD',
platforms=['linux'],
packages=find_packages(exclude=["sandbox*", "tests*"]),
include_package_data=True,
install_requires=[
'django-oscar>=0.5',
],
setup_requires=[
'versiontools >= 1.8',
],
# See http://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: Unix',
'Programming Language :: Python',
]
)
|
#!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='django-fancypages',
version=":versiontools:oscar_mws:",
url='https://github.com/tangentlabs/django-oscar-mws',
author="Sebastian Vetter",
author_email="sebastian.vetter@tangentsnowball.com.au",
description="Integrating Oscar with Amazon MWS",
long_description='\n\n'.join([
open('README.rst').read(),
open('CHANGELOG.rst').read(),
]),
keywords="django, Oscar, django-oscar, Amazon, MWS, fulfilment",
license='BSD',
platforms=['linux'],
packages=find_packages(exclude=["sandbox*", "tests*"]),
include_package_data=True,
install_requires=[
'django-oscar>=0.5',
'boto>=2.10.0',
'lxml>=3.2.3',
],
setup_requires=[
'versiontools>=1.8',
],
# See http://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: Unix',
'Programming Language :: Python',
]
)
|
Add deps for Amazon API and XML handling
|
Add deps for Amazon API and XML handling
|
Python
|
bsd-3-clause
|
django-oscar/django-oscar-mws,django-oscar/django-oscar-mws
|
#!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='django-fancypages',
version=":versiontools:oscar_mws:",
url='https://github.com/tangentlabs/django-oscar-mws',
author="Sebastian Vetter",
author_email="sebastian.vetter@tangentsnowball.com.au",
description="Integrating Oscar with Amazon MWS",
long_description='\n\n'.join([
open('README.rst').read(),
open('CHANGELOG.rst').read(),
]),
keywords="django, Oscar, django-oscar, Amazon, MWS, fulfilment",
license='BSD',
platforms=['linux'],
packages=find_packages(exclude=["sandbox*", "tests*"]),
include_package_data=True,
install_requires=[
'django-oscar>=0.5',
],
setup_requires=[
'versiontools >= 1.8',
],
# See http://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: Unix',
'Programming Language :: Python',
]
)
Add deps for Amazon API and XML handling
|
#!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='django-fancypages',
version=":versiontools:oscar_mws:",
url='https://github.com/tangentlabs/django-oscar-mws',
author="Sebastian Vetter",
author_email="sebastian.vetter@tangentsnowball.com.au",
description="Integrating Oscar with Amazon MWS",
long_description='\n\n'.join([
open('README.rst').read(),
open('CHANGELOG.rst').read(),
]),
keywords="django, Oscar, django-oscar, Amazon, MWS, fulfilment",
license='BSD',
platforms=['linux'],
packages=find_packages(exclude=["sandbox*", "tests*"]),
include_package_data=True,
install_requires=[
'django-oscar>=0.5',
'boto>=2.10.0',
'lxml>=3.2.3',
],
setup_requires=[
'versiontools>=1.8',
],
# See http://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: Unix',
'Programming Language :: Python',
]
)
|
<commit_before>#!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='django-fancypages',
version=":versiontools:oscar_mws:",
url='https://github.com/tangentlabs/django-oscar-mws',
author="Sebastian Vetter",
author_email="sebastian.vetter@tangentsnowball.com.au",
description="Integrating Oscar with Amazon MWS",
long_description='\n\n'.join([
open('README.rst').read(),
open('CHANGELOG.rst').read(),
]),
keywords="django, Oscar, django-oscar, Amazon, MWS, fulfilment",
license='BSD',
platforms=['linux'],
packages=find_packages(exclude=["sandbox*", "tests*"]),
include_package_data=True,
install_requires=[
'django-oscar>=0.5',
],
setup_requires=[
'versiontools >= 1.8',
],
# See http://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: Unix',
'Programming Language :: Python',
]
)
<commit_msg>Add deps for Amazon API and XML handling<commit_after>
|
#!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='django-fancypages',
version=":versiontools:oscar_mws:",
url='https://github.com/tangentlabs/django-oscar-mws',
author="Sebastian Vetter",
author_email="sebastian.vetter@tangentsnowball.com.au",
description="Integrating Oscar with Amazon MWS",
long_description='\n\n'.join([
open('README.rst').read(),
open('CHANGELOG.rst').read(),
]),
keywords="django, Oscar, django-oscar, Amazon, MWS, fulfilment",
license='BSD',
platforms=['linux'],
packages=find_packages(exclude=["sandbox*", "tests*"]),
include_package_data=True,
install_requires=[
'django-oscar>=0.5',
'boto>=2.10.0',
'lxml>=3.2.3',
],
setup_requires=[
'versiontools>=1.8',
],
# See http://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: Unix',
'Programming Language :: Python',
]
)
|
#!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='django-fancypages',
version=":versiontools:oscar_mws:",
url='https://github.com/tangentlabs/django-oscar-mws',
author="Sebastian Vetter",
author_email="sebastian.vetter@tangentsnowball.com.au",
description="Integrating Oscar with Amazon MWS",
long_description='\n\n'.join([
open('README.rst').read(),
open('CHANGELOG.rst').read(),
]),
keywords="django, Oscar, django-oscar, Amazon, MWS, fulfilment",
license='BSD',
platforms=['linux'],
packages=find_packages(exclude=["sandbox*", "tests*"]),
include_package_data=True,
install_requires=[
'django-oscar>=0.5',
],
setup_requires=[
'versiontools >= 1.8',
],
# See http://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: Unix',
'Programming Language :: Python',
]
)
Add deps for Amazon API and XML handling#!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='django-fancypages',
version=":versiontools:oscar_mws:",
url='https://github.com/tangentlabs/django-oscar-mws',
author="Sebastian Vetter",
author_email="sebastian.vetter@tangentsnowball.com.au",
description="Integrating Oscar with Amazon MWS",
long_description='\n\n'.join([
open('README.rst').read(),
open('CHANGELOG.rst').read(),
]),
keywords="django, Oscar, django-oscar, Amazon, MWS, fulfilment",
license='BSD',
platforms=['linux'],
packages=find_packages(exclude=["sandbox*", "tests*"]),
include_package_data=True,
install_requires=[
'django-oscar>=0.5',
'boto>=2.10.0',
'lxml>=3.2.3',
],
setup_requires=[
'versiontools>=1.8',
],
# See http://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: Unix',
'Programming Language :: Python',
]
)
|
<commit_before>#!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='django-fancypages',
version=":versiontools:oscar_mws:",
url='https://github.com/tangentlabs/django-oscar-mws',
author="Sebastian Vetter",
author_email="sebastian.vetter@tangentsnowball.com.au",
description="Integrating Oscar with Amazon MWS",
long_description='\n\n'.join([
open('README.rst').read(),
open('CHANGELOG.rst').read(),
]),
keywords="django, Oscar, django-oscar, Amazon, MWS, fulfilment",
license='BSD',
platforms=['linux'],
packages=find_packages(exclude=["sandbox*", "tests*"]),
include_package_data=True,
install_requires=[
'django-oscar>=0.5',
],
setup_requires=[
'versiontools >= 1.8',
],
# See http://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: Unix',
'Programming Language :: Python',
]
)
<commit_msg>Add deps for Amazon API and XML handling<commit_after>#!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='django-fancypages',
version=":versiontools:oscar_mws:",
url='https://github.com/tangentlabs/django-oscar-mws',
author="Sebastian Vetter",
author_email="sebastian.vetter@tangentsnowball.com.au",
description="Integrating Oscar with Amazon MWS",
long_description='\n\n'.join([
open('README.rst').read(),
open('CHANGELOG.rst').read(),
]),
keywords="django, Oscar, django-oscar, Amazon, MWS, fulfilment",
license='BSD',
platforms=['linux'],
packages=find_packages(exclude=["sandbox*", "tests*"]),
include_package_data=True,
install_requires=[
'django-oscar>=0.5',
'boto>=2.10.0',
'lxml>=3.2.3',
],
setup_requires=[
'versiontools>=1.8',
],
# See http://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: Unix',
'Programming Language :: Python',
]
)
|
bd1908fe817e24c93690e0bc5e12eaad5bf7a374
|
setup.py
|
setup.py
|
#!/usr/bin/env python
from ez_setup import use_setuptools
use_setuptools()
import os
from setuptools import setup, find_packages
here = os.path.dirname(__file__)
version_file = os.path.join(here, 'src/iptools/__init__.py')
d = {}
execfile(version_file, d)
version = d['__version__']
setup(
name = 'iptools',
version = version,
description = 'Python utilites for manipulating IP addresses',
long_description = "Utilities for manipulating IP addresses including a class that can be used to include CIDR network blocks in Django's INTERNAL_IPS setting.",
url = 'http://python-iptools.googlecode.com',
download_url = '',
author = 'Bryan Davis',
author_email = 'casadebender+iptools@gmail.com',
license = 'BSD',
platforms = ['any',],
package_dir = {'': 'src'},
packages = find_packages('src'),
include_package_data = True,
test_suite='iptools.test_iptools',
classifiers = [
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Utilities',
'Topic :: Internet',
],
zip_safe=False,
)
|
#!/usr/bin/env python
from ez_setup import use_setuptools
use_setuptools()
import os
from setuptools import setup, find_packages
here = os.path.dirname(__file__)
version_file = os.path.join(here, 'src/iptools/__init__.py')
d = {}
execfile(version_file, d)
version = d['__version__']
setup(
name = 'iptools',
version = version,
description = 'Python utilites for manipulating IP addresses',
long_description = "Utilities for manipulating IP addresses including a class that can be used to include CIDR network blocks in Django's INTERNAL_IPS setting.",
url = 'http://python-iptools.googlecode.com',
download_url = '',
author = 'Bryan Davis',
author_email = 'casadebender+iptools@gmail.com',
license = 'BSD',
platforms = ['any',],
package_dir = {'': 'src'},
packages = find_packages('src'),
include_package_data = True,
test_suite='iptools.test_iptools',
classifiers = [
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Topic :: Utilities',
'Topic :: Internet',
],
zip_safe=False,
)
|
Mark as python 3 compatable.
|
Mark as python 3 compatable.
|
Python
|
bsd-2-clause
|
timmerk/python-iptools,malonlabe/python-iptools,ancat/python-iptools
|
#!/usr/bin/env python
from ez_setup import use_setuptools
use_setuptools()
import os
from setuptools import setup, find_packages
here = os.path.dirname(__file__)
version_file = os.path.join(here, 'src/iptools/__init__.py')
d = {}
execfile(version_file, d)
version = d['__version__']
setup(
name = 'iptools',
version = version,
description = 'Python utilites for manipulating IP addresses',
long_description = "Utilities for manipulating IP addresses including a class that can be used to include CIDR network blocks in Django's INTERNAL_IPS setting.",
url = 'http://python-iptools.googlecode.com',
download_url = '',
author = 'Bryan Davis',
author_email = 'casadebender+iptools@gmail.com',
license = 'BSD',
platforms = ['any',],
package_dir = {'': 'src'},
packages = find_packages('src'),
include_package_data = True,
test_suite='iptools.test_iptools',
classifiers = [
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Utilities',
'Topic :: Internet',
],
zip_safe=False,
)
Mark as python 3 compatable.
|
#!/usr/bin/env python
from ez_setup import use_setuptools
use_setuptools()
import os
from setuptools import setup, find_packages
here = os.path.dirname(__file__)
version_file = os.path.join(here, 'src/iptools/__init__.py')
d = {}
execfile(version_file, d)
version = d['__version__']
setup(
name = 'iptools',
version = version,
description = 'Python utilites for manipulating IP addresses',
long_description = "Utilities for manipulating IP addresses including a class that can be used to include CIDR network blocks in Django's INTERNAL_IPS setting.",
url = 'http://python-iptools.googlecode.com',
download_url = '',
author = 'Bryan Davis',
author_email = 'casadebender+iptools@gmail.com',
license = 'BSD',
platforms = ['any',],
package_dir = {'': 'src'},
packages = find_packages('src'),
include_package_data = True,
test_suite='iptools.test_iptools',
classifiers = [
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Topic :: Utilities',
'Topic :: Internet',
],
zip_safe=False,
)
|
<commit_before>#!/usr/bin/env python
from ez_setup import use_setuptools
use_setuptools()
import os
from setuptools import setup, find_packages
here = os.path.dirname(__file__)
version_file = os.path.join(here, 'src/iptools/__init__.py')
d = {}
execfile(version_file, d)
version = d['__version__']
setup(
name = 'iptools',
version = version,
description = 'Python utilites for manipulating IP addresses',
long_description = "Utilities for manipulating IP addresses including a class that can be used to include CIDR network blocks in Django's INTERNAL_IPS setting.",
url = 'http://python-iptools.googlecode.com',
download_url = '',
author = 'Bryan Davis',
author_email = 'casadebender+iptools@gmail.com',
license = 'BSD',
platforms = ['any',],
package_dir = {'': 'src'},
packages = find_packages('src'),
include_package_data = True,
test_suite='iptools.test_iptools',
classifiers = [
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Utilities',
'Topic :: Internet',
],
zip_safe=False,
)
<commit_msg>Mark as python 3 compatable.<commit_after>
|
#!/usr/bin/env python
from ez_setup import use_setuptools
use_setuptools()
import os
from setuptools import setup, find_packages
here = os.path.dirname(__file__)
version_file = os.path.join(here, 'src/iptools/__init__.py')
d = {}
execfile(version_file, d)
version = d['__version__']
setup(
name = 'iptools',
version = version,
description = 'Python utilites for manipulating IP addresses',
long_description = "Utilities for manipulating IP addresses including a class that can be used to include CIDR network blocks in Django's INTERNAL_IPS setting.",
url = 'http://python-iptools.googlecode.com',
download_url = '',
author = 'Bryan Davis',
author_email = 'casadebender+iptools@gmail.com',
license = 'BSD',
platforms = ['any',],
package_dir = {'': 'src'},
packages = find_packages('src'),
include_package_data = True,
test_suite='iptools.test_iptools',
classifiers = [
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Topic :: Utilities',
'Topic :: Internet',
],
zip_safe=False,
)
|
#!/usr/bin/env python
from ez_setup import use_setuptools
use_setuptools()
import os
from setuptools import setup, find_packages
here = os.path.dirname(__file__)
version_file = os.path.join(here, 'src/iptools/__init__.py')
d = {}
execfile(version_file, d)
version = d['__version__']
setup(
name = 'iptools',
version = version,
description = 'Python utilites for manipulating IP addresses',
long_description = "Utilities for manipulating IP addresses including a class that can be used to include CIDR network blocks in Django's INTERNAL_IPS setting.",
url = 'http://python-iptools.googlecode.com',
download_url = '',
author = 'Bryan Davis',
author_email = 'casadebender+iptools@gmail.com',
license = 'BSD',
platforms = ['any',],
package_dir = {'': 'src'},
packages = find_packages('src'),
include_package_data = True,
test_suite='iptools.test_iptools',
classifiers = [
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Utilities',
'Topic :: Internet',
],
zip_safe=False,
)
Mark as python 3 compatable.#!/usr/bin/env python
from ez_setup import use_setuptools
use_setuptools()
import os
from setuptools import setup, find_packages
here = os.path.dirname(__file__)
version_file = os.path.join(here, 'src/iptools/__init__.py')
d = {}
execfile(version_file, d)
version = d['__version__']
setup(
name = 'iptools',
version = version,
description = 'Python utilites for manipulating IP addresses',
long_description = "Utilities for manipulating IP addresses including a class that can be used to include CIDR network blocks in Django's INTERNAL_IPS setting.",
url = 'http://python-iptools.googlecode.com',
download_url = '',
author = 'Bryan Davis',
author_email = 'casadebender+iptools@gmail.com',
license = 'BSD',
platforms = ['any',],
package_dir = {'': 'src'},
packages = find_packages('src'),
include_package_data = True,
test_suite='iptools.test_iptools',
classifiers = [
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Topic :: Utilities',
'Topic :: Internet',
],
zip_safe=False,
)
|
<commit_before>#!/usr/bin/env python
from ez_setup import use_setuptools
use_setuptools()
import os
from setuptools import setup, find_packages
here = os.path.dirname(__file__)
version_file = os.path.join(here, 'src/iptools/__init__.py')
d = {}
execfile(version_file, d)
version = d['__version__']
setup(
name = 'iptools',
version = version,
description = 'Python utilites for manipulating IP addresses',
long_description = "Utilities for manipulating IP addresses including a class that can be used to include CIDR network blocks in Django's INTERNAL_IPS setting.",
url = 'http://python-iptools.googlecode.com',
download_url = '',
author = 'Bryan Davis',
author_email = 'casadebender+iptools@gmail.com',
license = 'BSD',
platforms = ['any',],
package_dir = {'': 'src'},
packages = find_packages('src'),
include_package_data = True,
test_suite='iptools.test_iptools',
classifiers = [
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Utilities',
'Topic :: Internet',
],
zip_safe=False,
)
<commit_msg>Mark as python 3 compatable.<commit_after>#!/usr/bin/env python
from ez_setup import use_setuptools
use_setuptools()
import os
from setuptools import setup, find_packages
here = os.path.dirname(__file__)
version_file = os.path.join(here, 'src/iptools/__init__.py')
d = {}
execfile(version_file, d)
version = d['__version__']
setup(
name = 'iptools',
version = version,
description = 'Python utilites for manipulating IP addresses',
long_description = "Utilities for manipulating IP addresses including a class that can be used to include CIDR network blocks in Django's INTERNAL_IPS setting.",
url = 'http://python-iptools.googlecode.com',
download_url = '',
author = 'Bryan Davis',
author_email = 'casadebender+iptools@gmail.com',
license = 'BSD',
platforms = ['any',],
package_dir = {'': 'src'},
packages = find_packages('src'),
include_package_data = True,
test_suite='iptools.test_iptools',
classifiers = [
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Topic :: Utilities',
'Topic :: Internet',
],
zip_safe=False,
)
|
a7c31950cc2ad737176ba2aa91c77c7c649aa8c7
|
shell.py
|
shell.py
|
import sys, os, subprocess
def make_environment(env=None):
if env is None:
env = os.environ
env = env.copy()
env["PYTHONUNBUFFERED"] = "1"
env["PYTHONIOENCODING"] = "UTF-8"
return env
def run_shell_command(cmdline, pipe_output=True, env=None, **kwargs):
if sys.platform == "win32":
args = cmdline
else:
args = [os.environ.get("SHELL", "/bin/sh")]
process = subprocess.Popen(args,
stdin = subprocess.PIPE if sys.platform != "win32" else None,
stdout = subprocess.PIPE if pipe_output else None,
stderr = subprocess.STDOUT if pipe_output else None,
bufsize = 1,
close_fds = (sys.platform != "win32"),
shell = (sys.platform == "win32"),
env = make_environment(env),
**kwargs)
if sys.platform != "win32":
process.stdin.write(cmdline)
process.stdin.close()
return process
def kill_shell_process(process, force=False):
if sys.platform != "win32":
signal = "-KILL" if force else "-TERM"
rc = subprocess.call(["pkill", signal, "-P", str(process.pid)])
if rc == 0:
return
if force:
process.kill()
else:
process.terminate()
|
import sys, os, subprocess
remove_vars = ("PYTHONHOME", "PYTHONPATH", "VERSIONER_PYTHON_PREFER_32_BIT")
def make_environment(env=None):
if env is None:
env = os.environ
env = env.copy()
for var in remove_vars:
if var in env:
del env[var]
env["PYTHONUNBUFFERED"] = "1"
env["PYTHONIOENCODING"] = "UTF-8"
return env
def run_shell_command(cmdline, pipe_output=True, env=None, **kwargs):
if sys.platform == "win32":
args = cmdline
else:
args = [os.environ.get("SHELL", "/bin/sh")]
process = subprocess.Popen(args,
stdin = subprocess.PIPE if sys.platform != "win32" else None,
stdout = subprocess.PIPE if pipe_output else None,
stderr = subprocess.STDOUT if pipe_output else None,
bufsize = 1,
close_fds = (sys.platform != "win32"),
shell = (sys.platform == "win32"),
env = make_environment(env),
**kwargs)
if sys.platform != "win32":
process.stdin.write(cmdline)
process.stdin.close()
return process
def kill_shell_process(process, force=False):
if sys.platform != "win32":
signal = "-KILL" if force else "-TERM"
rc = subprocess.call(["pkill", signal, "-P", str(process.pid)])
if rc == 0:
return
if force:
process.kill()
else:
process.terminate()
|
Remove some Python environment variables from user subprocess environment.
|
Remove some Python environment variables from user subprocess environment.
|
Python
|
mit
|
shaurz/devo
|
import sys, os, subprocess
def make_environment(env=None):
if env is None:
env = os.environ
env = env.copy()
env["PYTHONUNBUFFERED"] = "1"
env["PYTHONIOENCODING"] = "UTF-8"
return env
def run_shell_command(cmdline, pipe_output=True, env=None, **kwargs):
if sys.platform == "win32":
args = cmdline
else:
args = [os.environ.get("SHELL", "/bin/sh")]
process = subprocess.Popen(args,
stdin = subprocess.PIPE if sys.platform != "win32" else None,
stdout = subprocess.PIPE if pipe_output else None,
stderr = subprocess.STDOUT if pipe_output else None,
bufsize = 1,
close_fds = (sys.platform != "win32"),
shell = (sys.platform == "win32"),
env = make_environment(env),
**kwargs)
if sys.platform != "win32":
process.stdin.write(cmdline)
process.stdin.close()
return process
def kill_shell_process(process, force=False):
if sys.platform != "win32":
signal = "-KILL" if force else "-TERM"
rc = subprocess.call(["pkill", signal, "-P", str(process.pid)])
if rc == 0:
return
if force:
process.kill()
else:
process.terminate()
Remove some Python environment variables from user subprocess environment.
|
import sys, os, subprocess
remove_vars = ("PYTHONHOME", "PYTHONPATH", "VERSIONER_PYTHON_PREFER_32_BIT")
def make_environment(env=None):
if env is None:
env = os.environ
env = env.copy()
for var in remove_vars:
if var in env:
del env[var]
env["PYTHONUNBUFFERED"] = "1"
env["PYTHONIOENCODING"] = "UTF-8"
return env
def run_shell_command(cmdline, pipe_output=True, env=None, **kwargs):
if sys.platform == "win32":
args = cmdline
else:
args = [os.environ.get("SHELL", "/bin/sh")]
process = subprocess.Popen(args,
stdin = subprocess.PIPE if sys.platform != "win32" else None,
stdout = subprocess.PIPE if pipe_output else None,
stderr = subprocess.STDOUT if pipe_output else None,
bufsize = 1,
close_fds = (sys.platform != "win32"),
shell = (sys.platform == "win32"),
env = make_environment(env),
**kwargs)
if sys.platform != "win32":
process.stdin.write(cmdline)
process.stdin.close()
return process
def kill_shell_process(process, force=False):
if sys.platform != "win32":
signal = "-KILL" if force else "-TERM"
rc = subprocess.call(["pkill", signal, "-P", str(process.pid)])
if rc == 0:
return
if force:
process.kill()
else:
process.terminate()
|
<commit_before>import sys, os, subprocess
def make_environment(env=None):
if env is None:
env = os.environ
env = env.copy()
env["PYTHONUNBUFFERED"] = "1"
env["PYTHONIOENCODING"] = "UTF-8"
return env
def run_shell_command(cmdline, pipe_output=True, env=None, **kwargs):
if sys.platform == "win32":
args = cmdline
else:
args = [os.environ.get("SHELL", "/bin/sh")]
process = subprocess.Popen(args,
stdin = subprocess.PIPE if sys.platform != "win32" else None,
stdout = subprocess.PIPE if pipe_output else None,
stderr = subprocess.STDOUT if pipe_output else None,
bufsize = 1,
close_fds = (sys.platform != "win32"),
shell = (sys.platform == "win32"),
env = make_environment(env),
**kwargs)
if sys.platform != "win32":
process.stdin.write(cmdline)
process.stdin.close()
return process
def kill_shell_process(process, force=False):
if sys.platform != "win32":
signal = "-KILL" if force else "-TERM"
rc = subprocess.call(["pkill", signal, "-P", str(process.pid)])
if rc == 0:
return
if force:
process.kill()
else:
process.terminate()
<commit_msg>Remove some Python environment variables from user subprocess environment.<commit_after>
|
import sys, os, subprocess
remove_vars = ("PYTHONHOME", "PYTHONPATH", "VERSIONER_PYTHON_PREFER_32_BIT")
def make_environment(env=None):
if env is None:
env = os.environ
env = env.copy()
for var in remove_vars:
if var in env:
del env[var]
env["PYTHONUNBUFFERED"] = "1"
env["PYTHONIOENCODING"] = "UTF-8"
return env
def run_shell_command(cmdline, pipe_output=True, env=None, **kwargs):
if sys.platform == "win32":
args = cmdline
else:
args = [os.environ.get("SHELL", "/bin/sh")]
process = subprocess.Popen(args,
stdin = subprocess.PIPE if sys.platform != "win32" else None,
stdout = subprocess.PIPE if pipe_output else None,
stderr = subprocess.STDOUT if pipe_output else None,
bufsize = 1,
close_fds = (sys.platform != "win32"),
shell = (sys.platform == "win32"),
env = make_environment(env),
**kwargs)
if sys.platform != "win32":
process.stdin.write(cmdline)
process.stdin.close()
return process
def kill_shell_process(process, force=False):
if sys.platform != "win32":
signal = "-KILL" if force else "-TERM"
rc = subprocess.call(["pkill", signal, "-P", str(process.pid)])
if rc == 0:
return
if force:
process.kill()
else:
process.terminate()
|
import sys, os, subprocess
def make_environment(env=None):
if env is None:
env = os.environ
env = env.copy()
env["PYTHONUNBUFFERED"] = "1"
env["PYTHONIOENCODING"] = "UTF-8"
return env
def run_shell_command(cmdline, pipe_output=True, env=None, **kwargs):
if sys.platform == "win32":
args = cmdline
else:
args = [os.environ.get("SHELL", "/bin/sh")]
process = subprocess.Popen(args,
stdin = subprocess.PIPE if sys.platform != "win32" else None,
stdout = subprocess.PIPE if pipe_output else None,
stderr = subprocess.STDOUT if pipe_output else None,
bufsize = 1,
close_fds = (sys.platform != "win32"),
shell = (sys.platform == "win32"),
env = make_environment(env),
**kwargs)
if sys.platform != "win32":
process.stdin.write(cmdline)
process.stdin.close()
return process
def kill_shell_process(process, force=False):
if sys.platform != "win32":
signal = "-KILL" if force else "-TERM"
rc = subprocess.call(["pkill", signal, "-P", str(process.pid)])
if rc == 0:
return
if force:
process.kill()
else:
process.terminate()
Remove some Python environment variables from user subprocess environment.import sys, os, subprocess
remove_vars = ("PYTHONHOME", "PYTHONPATH", "VERSIONER_PYTHON_PREFER_32_BIT")
def make_environment(env=None):
if env is None:
env = os.environ
env = env.copy()
for var in remove_vars:
if var in env:
del env[var]
env["PYTHONUNBUFFERED"] = "1"
env["PYTHONIOENCODING"] = "UTF-8"
return env
def run_shell_command(cmdline, pipe_output=True, env=None, **kwargs):
if sys.platform == "win32":
args = cmdline
else:
args = [os.environ.get("SHELL", "/bin/sh")]
process = subprocess.Popen(args,
stdin = subprocess.PIPE if sys.platform != "win32" else None,
stdout = subprocess.PIPE if pipe_output else None,
stderr = subprocess.STDOUT if pipe_output else None,
bufsize = 1,
close_fds = (sys.platform != "win32"),
shell = (sys.platform == "win32"),
env = make_environment(env),
**kwargs)
if sys.platform != "win32":
process.stdin.write(cmdline)
process.stdin.close()
return process
def kill_shell_process(process, force=False):
if sys.platform != "win32":
signal = "-KILL" if force else "-TERM"
rc = subprocess.call(["pkill", signal, "-P", str(process.pid)])
if rc == 0:
return
if force:
process.kill()
else:
process.terminate()
|
<commit_before>import sys, os, subprocess
def make_environment(env=None):
if env is None:
env = os.environ
env = env.copy()
env["PYTHONUNBUFFERED"] = "1"
env["PYTHONIOENCODING"] = "UTF-8"
return env
def run_shell_command(cmdline, pipe_output=True, env=None, **kwargs):
if sys.platform == "win32":
args = cmdline
else:
args = [os.environ.get("SHELL", "/bin/sh")]
process = subprocess.Popen(args,
stdin = subprocess.PIPE if sys.platform != "win32" else None,
stdout = subprocess.PIPE if pipe_output else None,
stderr = subprocess.STDOUT if pipe_output else None,
bufsize = 1,
close_fds = (sys.platform != "win32"),
shell = (sys.platform == "win32"),
env = make_environment(env),
**kwargs)
if sys.platform != "win32":
process.stdin.write(cmdline)
process.stdin.close()
return process
def kill_shell_process(process, force=False):
if sys.platform != "win32":
signal = "-KILL" if force else "-TERM"
rc = subprocess.call(["pkill", signal, "-P", str(process.pid)])
if rc == 0:
return
if force:
process.kill()
else:
process.terminate()
<commit_msg>Remove some Python environment variables from user subprocess environment.<commit_after>import sys, os, subprocess
remove_vars = ("PYTHONHOME", "PYTHONPATH", "VERSIONER_PYTHON_PREFER_32_BIT")
def make_environment(env=None):
if env is None:
env = os.environ
env = env.copy()
for var in remove_vars:
if var in env:
del env[var]
env["PYTHONUNBUFFERED"] = "1"
env["PYTHONIOENCODING"] = "UTF-8"
return env
def run_shell_command(cmdline, pipe_output=True, env=None, **kwargs):
if sys.platform == "win32":
args = cmdline
else:
args = [os.environ.get("SHELL", "/bin/sh")]
process = subprocess.Popen(args,
stdin = subprocess.PIPE if sys.platform != "win32" else None,
stdout = subprocess.PIPE if pipe_output else None,
stderr = subprocess.STDOUT if pipe_output else None,
bufsize = 1,
close_fds = (sys.platform != "win32"),
shell = (sys.platform == "win32"),
env = make_environment(env),
**kwargs)
if sys.platform != "win32":
process.stdin.write(cmdline)
process.stdin.close()
return process
def kill_shell_process(process, force=False):
if sys.platform != "win32":
signal = "-KILL" if force else "-TERM"
rc = subprocess.call(["pkill", signal, "-P", str(process.pid)])
if rc == 0:
return
if force:
process.kill()
else:
process.terminate()
|
bc25841219aa4811b8fb3ec19f5f75809a6e62c0
|
tasks.py
|
tasks.py
|
# Project tasks (for use with invoke task runner)
import subprocess
from invoke import task
@task
def test(cover=False):
# Run tests using nose called with coverage
code = subprocess.call(['coverage', 'run', '-m', 'nose', '--rednose'])
# Also generate coverage reports when --cover flag is given
if cover and code == 0:
# Add blank line between test report and coverage report
print('')
subprocess.call(['coverage', 'report'])
subprocess.call(['coverage', 'html'])
|
# Project tasks (for use with invoke task runner)
import subprocess
from invoke import task
@task
def test(cover=False):
if cover:
# Run tests via coverage and generate reports if --cover flag is given
code = subprocess.call(['coverage', 'run', '-m', 'nose', '--rednose'])
# Only show coverage report if all tests have passed
if code == 0:
# Add blank line between test report and coverage report
print('')
subprocess.call(['coverage', 'report'])
subprocess.call(['coverage', 'html'])
else:
# Otherwise, run tests via nose (which is faster)
code = subprocess.call(['nosetests', '--rednose'])
|
Improve performance of test task
|
Improve performance of test task
|
Python
|
mit
|
caleb531/three-of-a-crime
|
# Project tasks (for use with invoke task runner)
import subprocess
from invoke import task
@task
def test(cover=False):
# Run tests using nose called with coverage
code = subprocess.call(['coverage', 'run', '-m', 'nose', '--rednose'])
# Also generate coverage reports when --cover flag is given
if cover and code == 0:
# Add blank line between test report and coverage report
print('')
subprocess.call(['coverage', 'report'])
subprocess.call(['coverage', 'html'])
Improve performance of test task
|
# Project tasks (for use with invoke task runner)
import subprocess
from invoke import task
@task
def test(cover=False):
if cover:
# Run tests via coverage and generate reports if --cover flag is given
code = subprocess.call(['coverage', 'run', '-m', 'nose', '--rednose'])
# Only show coverage report if all tests have passed
if code == 0:
# Add blank line between test report and coverage report
print('')
subprocess.call(['coverage', 'report'])
subprocess.call(['coverage', 'html'])
else:
# Otherwise, run tests via nose (which is faster)
code = subprocess.call(['nosetests', '--rednose'])
|
<commit_before># Project tasks (for use with invoke task runner)
import subprocess
from invoke import task
@task
def test(cover=False):
# Run tests using nose called with coverage
code = subprocess.call(['coverage', 'run', '-m', 'nose', '--rednose'])
# Also generate coverage reports when --cover flag is given
if cover and code == 0:
# Add blank line between test report and coverage report
print('')
subprocess.call(['coverage', 'report'])
subprocess.call(['coverage', 'html'])
<commit_msg>Improve performance of test task<commit_after>
|
# Project tasks (for use with invoke task runner)
import subprocess
from invoke import task
@task
def test(cover=False):
if cover:
# Run tests via coverage and generate reports if --cover flag is given
code = subprocess.call(['coverage', 'run', '-m', 'nose', '--rednose'])
# Only show coverage report if all tests have passed
if code == 0:
# Add blank line between test report and coverage report
print('')
subprocess.call(['coverage', 'report'])
subprocess.call(['coverage', 'html'])
else:
# Otherwise, run tests via nose (which is faster)
code = subprocess.call(['nosetests', '--rednose'])
|
# Project tasks (for use with invoke task runner)
import subprocess
from invoke import task
@task
def test(cover=False):
# Run tests using nose called with coverage
code = subprocess.call(['coverage', 'run', '-m', 'nose', '--rednose'])
# Also generate coverage reports when --cover flag is given
if cover and code == 0:
# Add blank line between test report and coverage report
print('')
subprocess.call(['coverage', 'report'])
subprocess.call(['coverage', 'html'])
Improve performance of test task# Project tasks (for use with invoke task runner)
import subprocess
from invoke import task
@task
def test(cover=False):
if cover:
# Run tests via coverage and generate reports if --cover flag is given
code = subprocess.call(['coverage', 'run', '-m', 'nose', '--rednose'])
# Only show coverage report if all tests have passed
if code == 0:
# Add blank line between test report and coverage report
print('')
subprocess.call(['coverage', 'report'])
subprocess.call(['coverage', 'html'])
else:
# Otherwise, run tests via nose (which is faster)
code = subprocess.call(['nosetests', '--rednose'])
|
<commit_before># Project tasks (for use with invoke task runner)
import subprocess
from invoke import task
@task
def test(cover=False):
# Run tests using nose called with coverage
code = subprocess.call(['coverage', 'run', '-m', 'nose', '--rednose'])
# Also generate coverage reports when --cover flag is given
if cover and code == 0:
# Add blank line between test report and coverage report
print('')
subprocess.call(['coverage', 'report'])
subprocess.call(['coverage', 'html'])
<commit_msg>Improve performance of test task<commit_after># Project tasks (for use with invoke task runner)
import subprocess
from invoke import task
@task
def test(cover=False):
if cover:
# Run tests via coverage and generate reports if --cover flag is given
code = subprocess.call(['coverage', 'run', '-m', 'nose', '--rednose'])
# Only show coverage report if all tests have passed
if code == 0:
# Add blank line between test report and coverage report
print('')
subprocess.call(['coverage', 'report'])
subprocess.call(['coverage', 'html'])
else:
# Otherwise, run tests via nose (which is faster)
code = subprocess.call(['nosetests', '--rednose'])
|
3075a1bea22c55a1da5453df23f44ee126eaf8ae
|
syncplay/__init__.py
|
syncplay/__init__.py
|
version = '1.2.7'
milestone = 'Tequila'
projectURL = 'http://syncplay.pl/'
|
version = '1.2.7'
milestone = 'Biscuit'
projectURL = 'http://syncplay.pl/'
|
Change milestone from Tequila to Biscuit
|
Change milestone from Tequila to Biscuit
|
Python
|
apache-2.0
|
Syncplay/syncplay,alby128/syncplay,alby128/syncplay,Syncplay/syncplay,NeverDecaf/syncplay,NeverDecaf/syncplay
|
version = '1.2.7'
milestone = 'Tequila'
projectURL = 'http://syncplay.pl/'
Change milestone from Tequila to Biscuit
|
version = '1.2.7'
milestone = 'Biscuit'
projectURL = 'http://syncplay.pl/'
|
<commit_before>version = '1.2.7'
milestone = 'Tequila'
projectURL = 'http://syncplay.pl/'
<commit_msg>Change milestone from Tequila to Biscuit<commit_after>
|
version = '1.2.7'
milestone = 'Biscuit'
projectURL = 'http://syncplay.pl/'
|
version = '1.2.7'
milestone = 'Tequila'
projectURL = 'http://syncplay.pl/'
Change milestone from Tequila to Biscuitversion = '1.2.7'
milestone = 'Biscuit'
projectURL = 'http://syncplay.pl/'
|
<commit_before>version = '1.2.7'
milestone = 'Tequila'
projectURL = 'http://syncplay.pl/'
<commit_msg>Change milestone from Tequila to Biscuit<commit_after>version = '1.2.7'
milestone = 'Biscuit'
projectURL = 'http://syncplay.pl/'
|
82099790938fefa3e844c908271471a8313356d0
|
code_highlight/code_highlight.py
|
code_highlight/code_highlight.py
|
from django.utils.safestring import mark_safe
from pygments import highlight
from pygments.formatters import get_formatter_by_name
from pygments.lexers import get_lexer_by_name
from wagtail.wagtailcore import blocks
class CodeBlock(blocks.StructBlock):
"""
Code Highlighting Block
"""
LANGUAGE_CHOICES = (
('python', 'Python'),
('javascript', 'Javascript'),
('json', 'JSON'),
('bash', 'Bash/Shell'),
('html', 'HTML'),
('css', 'CSS'),
('scss', 'SCSS'),
('yaml', 'YAML'),
)
language = blocks.ChoiceBlock(choices=LANGUAGE_CHOICES)
code = blocks.TextBlock()
class Meta:
icon = 'code'
def render(self, value):
src = value['code'].strip('\n')
lang = value['language']
lexer = get_lexer_by_name(lang)
formatter = get_formatter_by_name(
'html',
linenos=None,
cssclass='codehilite',
style='default',
noclasses=False,
)
return mark_safe(highlight(src, lexer, formatter))
|
from django.utils.safestring import mark_safe
from pygments import highlight
from pygments.formatters import get_formatter_by_name
from pygments.lexers import get_lexer_by_name
from wagtail.wagtailcore import blocks
class CodeBlock(blocks.StructBlock):
"""
Code Highlighting Block
"""
LANGUAGE_CHOICES = (
('python', 'Python'),
('javascript', 'Javascript'),
('json', 'JSON'),
('bash', 'Bash/Shell'),
('html', 'HTML'),
('css', 'CSS'),
('scss', 'SCSS'),
('yaml', 'YAML'),
)
language = blocks.ChoiceBlock(choices=LANGUAGE_CHOICES)
code = blocks.TextBlock()
class Meta:
icon = 'code'
def render(self, value, context=None):
src = value['code'].strip('\n')
lang = value['language']
lexer = get_lexer_by_name(lang)
formatter = get_formatter_by_name(
'html',
linenos=None,
cssclass='codehilite',
style='default',
noclasses=False,
)
return mark_safe(highlight(src, lexer, formatter))
|
Add context=None to render as well.
|
Add context=None to render as well.
|
Python
|
bsd-3-clause
|
FlipperPA/wagtail-components
|
from django.utils.safestring import mark_safe
from pygments import highlight
from pygments.formatters import get_formatter_by_name
from pygments.lexers import get_lexer_by_name
from wagtail.wagtailcore import blocks
class CodeBlock(blocks.StructBlock):
"""
Code Highlighting Block
"""
LANGUAGE_CHOICES = (
('python', 'Python'),
('javascript', 'Javascript'),
('json', 'JSON'),
('bash', 'Bash/Shell'),
('html', 'HTML'),
('css', 'CSS'),
('scss', 'SCSS'),
('yaml', 'YAML'),
)
language = blocks.ChoiceBlock(choices=LANGUAGE_CHOICES)
code = blocks.TextBlock()
class Meta:
icon = 'code'
def render(self, value):
src = value['code'].strip('\n')
lang = value['language']
lexer = get_lexer_by_name(lang)
formatter = get_formatter_by_name(
'html',
linenos=None,
cssclass='codehilite',
style='default',
noclasses=False,
)
return mark_safe(highlight(src, lexer, formatter))
Add context=None to render as well.
|
from django.utils.safestring import mark_safe
from pygments import highlight
from pygments.formatters import get_formatter_by_name
from pygments.lexers import get_lexer_by_name
from wagtail.wagtailcore import blocks
class CodeBlock(blocks.StructBlock):
"""
Code Highlighting Block
"""
LANGUAGE_CHOICES = (
('python', 'Python'),
('javascript', 'Javascript'),
('json', 'JSON'),
('bash', 'Bash/Shell'),
('html', 'HTML'),
('css', 'CSS'),
('scss', 'SCSS'),
('yaml', 'YAML'),
)
language = blocks.ChoiceBlock(choices=LANGUAGE_CHOICES)
code = blocks.TextBlock()
class Meta:
icon = 'code'
def render(self, value, context=None):
src = value['code'].strip('\n')
lang = value['language']
lexer = get_lexer_by_name(lang)
formatter = get_formatter_by_name(
'html',
linenos=None,
cssclass='codehilite',
style='default',
noclasses=False,
)
return mark_safe(highlight(src, lexer, formatter))
|
<commit_before>from django.utils.safestring import mark_safe
from pygments import highlight
from pygments.formatters import get_formatter_by_name
from pygments.lexers import get_lexer_by_name
from wagtail.wagtailcore import blocks
class CodeBlock(blocks.StructBlock):
"""
Code Highlighting Block
"""
LANGUAGE_CHOICES = (
('python', 'Python'),
('javascript', 'Javascript'),
('json', 'JSON'),
('bash', 'Bash/Shell'),
('html', 'HTML'),
('css', 'CSS'),
('scss', 'SCSS'),
('yaml', 'YAML'),
)
language = blocks.ChoiceBlock(choices=LANGUAGE_CHOICES)
code = blocks.TextBlock()
class Meta:
icon = 'code'
def render(self, value):
src = value['code'].strip('\n')
lang = value['language']
lexer = get_lexer_by_name(lang)
formatter = get_formatter_by_name(
'html',
linenos=None,
cssclass='codehilite',
style='default',
noclasses=False,
)
return mark_safe(highlight(src, lexer, formatter))
<commit_msg>Add context=None to render as well.<commit_after>
|
from django.utils.safestring import mark_safe
from pygments import highlight
from pygments.formatters import get_formatter_by_name
from pygments.lexers import get_lexer_by_name
from wagtail.wagtailcore import blocks
class CodeBlock(blocks.StructBlock):
"""
Code Highlighting Block
"""
LANGUAGE_CHOICES = (
('python', 'Python'),
('javascript', 'Javascript'),
('json', 'JSON'),
('bash', 'Bash/Shell'),
('html', 'HTML'),
('css', 'CSS'),
('scss', 'SCSS'),
('yaml', 'YAML'),
)
language = blocks.ChoiceBlock(choices=LANGUAGE_CHOICES)
code = blocks.TextBlock()
class Meta:
icon = 'code'
def render(self, value, context=None):
src = value['code'].strip('\n')
lang = value['language']
lexer = get_lexer_by_name(lang)
formatter = get_formatter_by_name(
'html',
linenos=None,
cssclass='codehilite',
style='default',
noclasses=False,
)
return mark_safe(highlight(src, lexer, formatter))
|
from django.utils.safestring import mark_safe
from pygments import highlight
from pygments.formatters import get_formatter_by_name
from pygments.lexers import get_lexer_by_name
from wagtail.wagtailcore import blocks
class CodeBlock(blocks.StructBlock):
"""
Code Highlighting Block
"""
LANGUAGE_CHOICES = (
('python', 'Python'),
('javascript', 'Javascript'),
('json', 'JSON'),
('bash', 'Bash/Shell'),
('html', 'HTML'),
('css', 'CSS'),
('scss', 'SCSS'),
('yaml', 'YAML'),
)
language = blocks.ChoiceBlock(choices=LANGUAGE_CHOICES)
code = blocks.TextBlock()
class Meta:
icon = 'code'
def render(self, value):
src = value['code'].strip('\n')
lang = value['language']
lexer = get_lexer_by_name(lang)
formatter = get_formatter_by_name(
'html',
linenos=None,
cssclass='codehilite',
style='default',
noclasses=False,
)
return mark_safe(highlight(src, lexer, formatter))
Add context=None to render as well.from django.utils.safestring import mark_safe
from pygments import highlight
from pygments.formatters import get_formatter_by_name
from pygments.lexers import get_lexer_by_name
from wagtail.wagtailcore import blocks
class CodeBlock(blocks.StructBlock):
"""
Code Highlighting Block
"""
LANGUAGE_CHOICES = (
('python', 'Python'),
('javascript', 'Javascript'),
('json', 'JSON'),
('bash', 'Bash/Shell'),
('html', 'HTML'),
('css', 'CSS'),
('scss', 'SCSS'),
('yaml', 'YAML'),
)
language = blocks.ChoiceBlock(choices=LANGUAGE_CHOICES)
code = blocks.TextBlock()
class Meta:
icon = 'code'
def render(self, value, context=None):
src = value['code'].strip('\n')
lang = value['language']
lexer = get_lexer_by_name(lang)
formatter = get_formatter_by_name(
'html',
linenos=None,
cssclass='codehilite',
style='default',
noclasses=False,
)
return mark_safe(highlight(src, lexer, formatter))
|
<commit_before>from django.utils.safestring import mark_safe
from pygments import highlight
from pygments.formatters import get_formatter_by_name
from pygments.lexers import get_lexer_by_name
from wagtail.wagtailcore import blocks
class CodeBlock(blocks.StructBlock):
"""
Code Highlighting Block
"""
LANGUAGE_CHOICES = (
('python', 'Python'),
('javascript', 'Javascript'),
('json', 'JSON'),
('bash', 'Bash/Shell'),
('html', 'HTML'),
('css', 'CSS'),
('scss', 'SCSS'),
('yaml', 'YAML'),
)
language = blocks.ChoiceBlock(choices=LANGUAGE_CHOICES)
code = blocks.TextBlock()
class Meta:
icon = 'code'
def render(self, value):
src = value['code'].strip('\n')
lang = value['language']
lexer = get_lexer_by_name(lang)
formatter = get_formatter_by_name(
'html',
linenos=None,
cssclass='codehilite',
style='default',
noclasses=False,
)
return mark_safe(highlight(src, lexer, formatter))
<commit_msg>Add context=None to render as well.<commit_after>from django.utils.safestring import mark_safe
from pygments import highlight
from pygments.formatters import get_formatter_by_name
from pygments.lexers import get_lexer_by_name
from wagtail.wagtailcore import blocks
class CodeBlock(blocks.StructBlock):
"""
Code Highlighting Block
"""
LANGUAGE_CHOICES = (
('python', 'Python'),
('javascript', 'Javascript'),
('json', 'JSON'),
('bash', 'Bash/Shell'),
('html', 'HTML'),
('css', 'CSS'),
('scss', 'SCSS'),
('yaml', 'YAML'),
)
language = blocks.ChoiceBlock(choices=LANGUAGE_CHOICES)
code = blocks.TextBlock()
class Meta:
icon = 'code'
def render(self, value, context=None):
src = value['code'].strip('\n')
lang = value['language']
lexer = get_lexer_by_name(lang)
formatter = get_formatter_by_name(
'html',
linenos=None,
cssclass='codehilite',
style='default',
noclasses=False,
)
return mark_safe(highlight(src, lexer, formatter))
|
123f8b581fc7178d32680850220f74383a674911
|
Logger.py
|
Logger.py
|
import time
class Logger():
def __init__(self, name = "defaultLogFile"):
timestamp = time.strftime('%Y_%m_%d-%H_%M_%S')
self.name = "Logs/" + timestamp + "_" + name + ".txt"
try:
self.logfile = open(self.name, 'w')
self.opened = True
except:
self.opened = False
def save_line(self,data):
time_s = time.time()
time_ms = int((time_s - int(time_s))*1000.0)
timestamp = time.strftime(('%H_%M_%S'), time.localtime(time_s))+"_" +str(time_ms) + " : "
if(self.opened):
self.logfile.write(timestamp+data)
self.logfile.flush()
return 0,""
else:
return 1,str(timestamp+data)
def close(self):
if(self.opened):
self.logfile.flush()
self.logfile.close()
self.opened = False
return 0
else:
return 1
|
import time
class Logger():
def __init__(self, name = "defaultLogFile"):
timestamp = time.strftime('%Y_%m_%d-%H_%M_%S')
self.name = "Logs/" + timestamp + "_" + name + ".txt"
try:
self.logfile = open(self.name, 'w')
self.opened = True
except:
self.opened = False
def save_line(self,data):
time_s = time.time()
time_ms = int((time_s - int(time_s))*1000.0)
timestamp = time.strftime(('%H_%M_%S'), time.localtime(time_s))+"_" +str(time_ms) + " : "
if(self.opened):
self.logfile.write(timestamp+data+"\r\n")
self.logfile.flush()
return 0,""
else:
return 1,str(timestamp+data)
def close(self):
if(self.opened):
self.logfile.flush()
self.logfile.close()
self.opened = False
return 0
else:
return 1
|
Add missing CRLF for new line in logs
|
Add missing CRLF for new line in logs
Signed-off-by: TeaPackCZ <a78d8486eff6e2cb08b2d9907449b92187b8e215@gmail.com>
|
Python
|
mit
|
TeaPackCZ/RobotZed,TeaPackCZ/RobotZed
|
import time
class Logger():
def __init__(self, name = "defaultLogFile"):
timestamp = time.strftime('%Y_%m_%d-%H_%M_%S')
self.name = "Logs/" + timestamp + "_" + name + ".txt"
try:
self.logfile = open(self.name, 'w')
self.opened = True
except:
self.opened = False
def save_line(self,data):
time_s = time.time()
time_ms = int((time_s - int(time_s))*1000.0)
timestamp = time.strftime(('%H_%M_%S'), time.localtime(time_s))+"_" +str(time_ms) + " : "
if(self.opened):
self.logfile.write(timestamp+data)
self.logfile.flush()
return 0,""
else:
return 1,str(timestamp+data)
def close(self):
if(self.opened):
self.logfile.flush()
self.logfile.close()
self.opened = False
return 0
else:
return 1
Add missing CRLF for new line in logs
Signed-off-by: TeaPackCZ <a78d8486eff6e2cb08b2d9907449b92187b8e215@gmail.com>
|
import time
class Logger():
def __init__(self, name = "defaultLogFile"):
timestamp = time.strftime('%Y_%m_%d-%H_%M_%S')
self.name = "Logs/" + timestamp + "_" + name + ".txt"
try:
self.logfile = open(self.name, 'w')
self.opened = True
except:
self.opened = False
def save_line(self,data):
time_s = time.time()
time_ms = int((time_s - int(time_s))*1000.0)
timestamp = time.strftime(('%H_%M_%S'), time.localtime(time_s))+"_" +str(time_ms) + " : "
if(self.opened):
self.logfile.write(timestamp+data+"\r\n")
self.logfile.flush()
return 0,""
else:
return 1,str(timestamp+data)
def close(self):
if(self.opened):
self.logfile.flush()
self.logfile.close()
self.opened = False
return 0
else:
return 1
|
<commit_before>import time
class Logger():
def __init__(self, name = "defaultLogFile"):
timestamp = time.strftime('%Y_%m_%d-%H_%M_%S')
self.name = "Logs/" + timestamp + "_" + name + ".txt"
try:
self.logfile = open(self.name, 'w')
self.opened = True
except:
self.opened = False
def save_line(self,data):
time_s = time.time()
time_ms = int((time_s - int(time_s))*1000.0)
timestamp = time.strftime(('%H_%M_%S'), time.localtime(time_s))+"_" +str(time_ms) + " : "
if(self.opened):
self.logfile.write(timestamp+data)
self.logfile.flush()
return 0,""
else:
return 1,str(timestamp+data)
def close(self):
if(self.opened):
self.logfile.flush()
self.logfile.close()
self.opened = False
return 0
else:
return 1
<commit_msg>Add missing CRLF for new line in logs
Signed-off-by: TeaPackCZ <a78d8486eff6e2cb08b2d9907449b92187b8e215@gmail.com><commit_after>
|
import time
class Logger():
def __init__(self, name = "defaultLogFile"):
timestamp = time.strftime('%Y_%m_%d-%H_%M_%S')
self.name = "Logs/" + timestamp + "_" + name + ".txt"
try:
self.logfile = open(self.name, 'w')
self.opened = True
except:
self.opened = False
def save_line(self,data):
time_s = time.time()
time_ms = int((time_s - int(time_s))*1000.0)
timestamp = time.strftime(('%H_%M_%S'), time.localtime(time_s))+"_" +str(time_ms) + " : "
if(self.opened):
self.logfile.write(timestamp+data+"\r\n")
self.logfile.flush()
return 0,""
else:
return 1,str(timestamp+data)
def close(self):
if(self.opened):
self.logfile.flush()
self.logfile.close()
self.opened = False
return 0
else:
return 1
|
import time
class Logger():
def __init__(self, name = "defaultLogFile"):
timestamp = time.strftime('%Y_%m_%d-%H_%M_%S')
self.name = "Logs/" + timestamp + "_" + name + ".txt"
try:
self.logfile = open(self.name, 'w')
self.opened = True
except:
self.opened = False
def save_line(self,data):
time_s = time.time()
time_ms = int((time_s - int(time_s))*1000.0)
timestamp = time.strftime(('%H_%M_%S'), time.localtime(time_s))+"_" +str(time_ms) + " : "
if(self.opened):
self.logfile.write(timestamp+data)
self.logfile.flush()
return 0,""
else:
return 1,str(timestamp+data)
def close(self):
if(self.opened):
self.logfile.flush()
self.logfile.close()
self.opened = False
return 0
else:
return 1
Add missing CRLF for new line in logs
Signed-off-by: TeaPackCZ <a78d8486eff6e2cb08b2d9907449b92187b8e215@gmail.com>import time
class Logger():
def __init__(self, name = "defaultLogFile"):
timestamp = time.strftime('%Y_%m_%d-%H_%M_%S')
self.name = "Logs/" + timestamp + "_" + name + ".txt"
try:
self.logfile = open(self.name, 'w')
self.opened = True
except:
self.opened = False
def save_line(self,data):
time_s = time.time()
time_ms = int((time_s - int(time_s))*1000.0)
timestamp = time.strftime(('%H_%M_%S'), time.localtime(time_s))+"_" +str(time_ms) + " : "
if(self.opened):
self.logfile.write(timestamp+data+"\r\n")
self.logfile.flush()
return 0,""
else:
return 1,str(timestamp+data)
def close(self):
if(self.opened):
self.logfile.flush()
self.logfile.close()
self.opened = False
return 0
else:
return 1
|
<commit_before>import time
class Logger():
def __init__(self, name = "defaultLogFile"):
timestamp = time.strftime('%Y_%m_%d-%H_%M_%S')
self.name = "Logs/" + timestamp + "_" + name + ".txt"
try:
self.logfile = open(self.name, 'w')
self.opened = True
except:
self.opened = False
def save_line(self,data):
time_s = time.time()
time_ms = int((time_s - int(time_s))*1000.0)
timestamp = time.strftime(('%H_%M_%S'), time.localtime(time_s))+"_" +str(time_ms) + " : "
if(self.opened):
self.logfile.write(timestamp+data)
self.logfile.flush()
return 0,""
else:
return 1,str(timestamp+data)
def close(self):
if(self.opened):
self.logfile.flush()
self.logfile.close()
self.opened = False
return 0
else:
return 1
<commit_msg>Add missing CRLF for new line in logs
Signed-off-by: TeaPackCZ <a78d8486eff6e2cb08b2d9907449b92187b8e215@gmail.com><commit_after>import time
class Logger():
def __init__(self, name = "defaultLogFile"):
timestamp = time.strftime('%Y_%m_%d-%H_%M_%S')
self.name = "Logs/" + timestamp + "_" + name + ".txt"
try:
self.logfile = open(self.name, 'w')
self.opened = True
except:
self.opened = False
def save_line(self,data):
time_s = time.time()
time_ms = int((time_s - int(time_s))*1000.0)
timestamp = time.strftime(('%H_%M_%S'), time.localtime(time_s))+"_" +str(time_ms) + " : "
if(self.opened):
self.logfile.write(timestamp+data+"\r\n")
self.logfile.flush()
return 0,""
else:
return 1,str(timestamp+data)
def close(self):
if(self.opened):
self.logfile.flush()
self.logfile.close()
self.opened = False
return 0
else:
return 1
|
ceadd1355ef25282567030c180139886419543db
|
db/goalie_game.py
|
db/goalie_game.py
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from .common import Base
class GoalieGame(Base):
__tablename__ = 'goalie_games'
__autoload__ = True
STANDARD_ATTRS = [
"position", "no", "goals", "assists", "primary_assists",
"secondary_assists", "points", "plus_minus", "penalties", "pim",
"toi_overall", "toi_pp", "toi_sh", "toi_ev", "avg_shift", "no_shifts",
"shots_on_goal", "shots_blocked", "shots_missed", "hits",
"giveaways", "takeaways", "blocks", "faceoffs_won", "faceoffs_lost",
"on_ice_shots_on_goal", "on_ice_shots_blocked", "on_ice_shots_missed"
]
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from sqlalchemy import and_
from .common import Base, session_scope
class GoalieGame(Base):
__tablename__ = 'goalie_games'
__autoload__ = True
STANDARD_ATTRS = [
"position", "no", "goals", "assists", "primary_assists",
"secondary_assists", "points", "plus_minus", "penalties", "pim",
"toi_overall", "toi_pp", "toi_sh", "toi_ev", "avg_shift", "no_shifts",
"shots_on_goal", "shots_blocked", "shots_missed", "hits",
"giveaways", "takeaways", "blocks", "faceoffs_won", "faceoffs_lost",
"on_ice_shots_on_goal", "on_ice_shots_blocked", "on_ice_shots_missed"
]
def __init__(self, game_id, team_id, plr_id, data_dict):
self.goalie_game_id = int("%d%02d%d" % (game_id, team_id, plr_id))
self.game_id = game_id
self.team_id = team_id
self.player_id = plr_id
for attr in self.STANDARD_ATTRS:
if attr in data_dict:
setattr(self, attr, data_dict[attr])
else:
setattr(self, attr, None)
@classmethod
def find(self, game_id, player_id):
with session_scope() as session:
try:
plr_game = session.query(GoalieGame).filter(
and_(
GoalieGame.game_id == game_id,
GoalieGame.player_id == player_id
)).one()
except:
plr_game = None
return plr_game
def update(self, other):
for attr in self.STANDARD_ATTRS:
setattr(self, attr, getattr(other, attr))
|
Add find and update functions to goalie game definition
|
Add find and update functions to goalie game definition
|
Python
|
mit
|
leaffan/pynhldb
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from .common import Base
class GoalieGame(Base):
__tablename__ = 'goalie_games'
__autoload__ = True
STANDARD_ATTRS = [
"position", "no", "goals", "assists", "primary_assists",
"secondary_assists", "points", "plus_minus", "penalties", "pim",
"toi_overall", "toi_pp", "toi_sh", "toi_ev", "avg_shift", "no_shifts",
"shots_on_goal", "shots_blocked", "shots_missed", "hits",
"giveaways", "takeaways", "blocks", "faceoffs_won", "faceoffs_lost",
"on_ice_shots_on_goal", "on_ice_shots_blocked", "on_ice_shots_missed"
]
Add find and update functions to goalie game definition
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from sqlalchemy import and_
from .common import Base, session_scope
class GoalieGame(Base):
__tablename__ = 'goalie_games'
__autoload__ = True
STANDARD_ATTRS = [
"position", "no", "goals", "assists", "primary_assists",
"secondary_assists", "points", "plus_minus", "penalties", "pim",
"toi_overall", "toi_pp", "toi_sh", "toi_ev", "avg_shift", "no_shifts",
"shots_on_goal", "shots_blocked", "shots_missed", "hits",
"giveaways", "takeaways", "blocks", "faceoffs_won", "faceoffs_lost",
"on_ice_shots_on_goal", "on_ice_shots_blocked", "on_ice_shots_missed"
]
def __init__(self, game_id, team_id, plr_id, data_dict):
self.goalie_game_id = int("%d%02d%d" % (game_id, team_id, plr_id))
self.game_id = game_id
self.team_id = team_id
self.player_id = plr_id
for attr in self.STANDARD_ATTRS:
if attr in data_dict:
setattr(self, attr, data_dict[attr])
else:
setattr(self, attr, None)
@classmethod
def find(self, game_id, player_id):
with session_scope() as session:
try:
plr_game = session.query(GoalieGame).filter(
and_(
GoalieGame.game_id == game_id,
GoalieGame.player_id == player_id
)).one()
except:
plr_game = None
return plr_game
def update(self, other):
for attr in self.STANDARD_ATTRS:
setattr(self, attr, getattr(other, attr))
|
<commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
from .common import Base
class GoalieGame(Base):
__tablename__ = 'goalie_games'
__autoload__ = True
STANDARD_ATTRS = [
"position", "no", "goals", "assists", "primary_assists",
"secondary_assists", "points", "plus_minus", "penalties", "pim",
"toi_overall", "toi_pp", "toi_sh", "toi_ev", "avg_shift", "no_shifts",
"shots_on_goal", "shots_blocked", "shots_missed", "hits",
"giveaways", "takeaways", "blocks", "faceoffs_won", "faceoffs_lost",
"on_ice_shots_on_goal", "on_ice_shots_blocked", "on_ice_shots_missed"
]
<commit_msg>Add find and update functions to goalie game definition<commit_after>
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from sqlalchemy import and_
from .common import Base, session_scope
class GoalieGame(Base):
__tablename__ = 'goalie_games'
__autoload__ = True
STANDARD_ATTRS = [
"position", "no", "goals", "assists", "primary_assists",
"secondary_assists", "points", "plus_minus", "penalties", "pim",
"toi_overall", "toi_pp", "toi_sh", "toi_ev", "avg_shift", "no_shifts",
"shots_on_goal", "shots_blocked", "shots_missed", "hits",
"giveaways", "takeaways", "blocks", "faceoffs_won", "faceoffs_lost",
"on_ice_shots_on_goal", "on_ice_shots_blocked", "on_ice_shots_missed"
]
def __init__(self, game_id, team_id, plr_id, data_dict):
self.goalie_game_id = int("%d%02d%d" % (game_id, team_id, plr_id))
self.game_id = game_id
self.team_id = team_id
self.player_id = plr_id
for attr in self.STANDARD_ATTRS:
if attr in data_dict:
setattr(self, attr, data_dict[attr])
else:
setattr(self, attr, None)
@classmethod
def find(self, game_id, player_id):
with session_scope() as session:
try:
plr_game = session.query(GoalieGame).filter(
and_(
GoalieGame.game_id == game_id,
GoalieGame.player_id == player_id
)).one()
except:
plr_game = None
return plr_game
def update(self, other):
for attr in self.STANDARD_ATTRS:
setattr(self, attr, getattr(other, attr))
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from .common import Base
class GoalieGame(Base):
__tablename__ = 'goalie_games'
__autoload__ = True
STANDARD_ATTRS = [
"position", "no", "goals", "assists", "primary_assists",
"secondary_assists", "points", "plus_minus", "penalties", "pim",
"toi_overall", "toi_pp", "toi_sh", "toi_ev", "avg_shift", "no_shifts",
"shots_on_goal", "shots_blocked", "shots_missed", "hits",
"giveaways", "takeaways", "blocks", "faceoffs_won", "faceoffs_lost",
"on_ice_shots_on_goal", "on_ice_shots_blocked", "on_ice_shots_missed"
]
Add find and update functions to goalie game definition#!/usr/bin/env python
# -*- coding: utf-8 -*-
from sqlalchemy import and_
from .common import Base, session_scope
class GoalieGame(Base):
__tablename__ = 'goalie_games'
__autoload__ = True
STANDARD_ATTRS = [
"position", "no", "goals", "assists", "primary_assists",
"secondary_assists", "points", "plus_minus", "penalties", "pim",
"toi_overall", "toi_pp", "toi_sh", "toi_ev", "avg_shift", "no_shifts",
"shots_on_goal", "shots_blocked", "shots_missed", "hits",
"giveaways", "takeaways", "blocks", "faceoffs_won", "faceoffs_lost",
"on_ice_shots_on_goal", "on_ice_shots_blocked", "on_ice_shots_missed"
]
def __init__(self, game_id, team_id, plr_id, data_dict):
self.goalie_game_id = int("%d%02d%d" % (game_id, team_id, plr_id))
self.game_id = game_id
self.team_id = team_id
self.player_id = plr_id
for attr in self.STANDARD_ATTRS:
if attr in data_dict:
setattr(self, attr, data_dict[attr])
else:
setattr(self, attr, None)
@classmethod
def find(self, game_id, player_id):
with session_scope() as session:
try:
plr_game = session.query(GoalieGame).filter(
and_(
GoalieGame.game_id == game_id,
GoalieGame.player_id == player_id
)).one()
except:
plr_game = None
return plr_game
def update(self, other):
for attr in self.STANDARD_ATTRS:
setattr(self, attr, getattr(other, attr))
|
<commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
from .common import Base
class GoalieGame(Base):
__tablename__ = 'goalie_games'
__autoload__ = True
STANDARD_ATTRS = [
"position", "no", "goals", "assists", "primary_assists",
"secondary_assists", "points", "plus_minus", "penalties", "pim",
"toi_overall", "toi_pp", "toi_sh", "toi_ev", "avg_shift", "no_shifts",
"shots_on_goal", "shots_blocked", "shots_missed", "hits",
"giveaways", "takeaways", "blocks", "faceoffs_won", "faceoffs_lost",
"on_ice_shots_on_goal", "on_ice_shots_blocked", "on_ice_shots_missed"
]
<commit_msg>Add find and update functions to goalie game definition<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-
from sqlalchemy import and_
from .common import Base, session_scope
class GoalieGame(Base):
__tablename__ = 'goalie_games'
__autoload__ = True
STANDARD_ATTRS = [
"position", "no", "goals", "assists", "primary_assists",
"secondary_assists", "points", "plus_minus", "penalties", "pim",
"toi_overall", "toi_pp", "toi_sh", "toi_ev", "avg_shift", "no_shifts",
"shots_on_goal", "shots_blocked", "shots_missed", "hits",
"giveaways", "takeaways", "blocks", "faceoffs_won", "faceoffs_lost",
"on_ice_shots_on_goal", "on_ice_shots_blocked", "on_ice_shots_missed"
]
def __init__(self, game_id, team_id, plr_id, data_dict):
self.goalie_game_id = int("%d%02d%d" % (game_id, team_id, plr_id))
self.game_id = game_id
self.team_id = team_id
self.player_id = plr_id
for attr in self.STANDARD_ATTRS:
if attr in data_dict:
setattr(self, attr, data_dict[attr])
else:
setattr(self, attr, None)
@classmethod
def find(self, game_id, player_id):
with session_scope() as session:
try:
plr_game = session.query(GoalieGame).filter(
and_(
GoalieGame.game_id == game_id,
GoalieGame.player_id == player_id
)).one()
except:
plr_game = None
return plr_game
def update(self, other):
for attr in self.STANDARD_ATTRS:
setattr(self, attr, getattr(other, attr))
|
f38f8765ba2b25437dddb5af13f68be3a6fdcffa
|
tap/tests/factory.py
|
tap/tests/factory.py
|
# Copyright (c) 2014, Matt Layman
import tempfile
from unittest.runner import TextTestResult
from tap.directive import Directive
from tap.line import Result
class Factory(object):
"""A factory to produce commonly needed objects"""
def make_ok(self, directive_text=''):
return Result(
True, 1, 'This is a description.', Directive(directive_text))
def make_test_result(self):
stream = tempfile.TemporaryFile()
return TextTestResult(stream, None, 1)
|
# Copyright (c) 2014, Matt Layman
import tempfile
try:
from unittest.runner import TextTestResult
except ImportError:
# Support Python 2.6.
from unittest import _TextTestResult as TextTestResult
from tap.directive import Directive
from tap.line import Result
class Factory(object):
"""A factory to produce commonly needed objects"""
def make_ok(self, directive_text=''):
return Result(
True, 1, 'This is a description.', Directive(directive_text))
def make_test_result(self):
stream = tempfile.TemporaryFile(mode='w')
return TextTestResult(stream, None, 1)
|
Fix Python 2.6 and Python 3 tests.
|
Fix Python 2.6 and Python 3 tests.
|
Python
|
bsd-2-clause
|
python-tap/tappy,blakev/tappy,Mark-E-Hamilton/tappy,mblayman/tappy
|
# Copyright (c) 2014, Matt Layman
import tempfile
from unittest.runner import TextTestResult
from tap.directive import Directive
from tap.line import Result
class Factory(object):
"""A factory to produce commonly needed objects"""
def make_ok(self, directive_text=''):
return Result(
True, 1, 'This is a description.', Directive(directive_text))
def make_test_result(self):
stream = tempfile.TemporaryFile()
return TextTestResult(stream, None, 1)
Fix Python 2.6 and Python 3 tests.
|
# Copyright (c) 2014, Matt Layman
import tempfile
try:
from unittest.runner import TextTestResult
except ImportError:
# Support Python 2.6.
from unittest import _TextTestResult as TextTestResult
from tap.directive import Directive
from tap.line import Result
class Factory(object):
"""A factory to produce commonly needed objects"""
def make_ok(self, directive_text=''):
return Result(
True, 1, 'This is a description.', Directive(directive_text))
def make_test_result(self):
stream = tempfile.TemporaryFile(mode='w')
return TextTestResult(stream, None, 1)
|
<commit_before># Copyright (c) 2014, Matt Layman
import tempfile
from unittest.runner import TextTestResult
from tap.directive import Directive
from tap.line import Result
class Factory(object):
"""A factory to produce commonly needed objects"""
def make_ok(self, directive_text=''):
return Result(
True, 1, 'This is a description.', Directive(directive_text))
def make_test_result(self):
stream = tempfile.TemporaryFile()
return TextTestResult(stream, None, 1)
<commit_msg>Fix Python 2.6 and Python 3 tests.<commit_after>
|
# Copyright (c) 2014, Matt Layman
import tempfile
try:
from unittest.runner import TextTestResult
except ImportError:
# Support Python 2.6.
from unittest import _TextTestResult as TextTestResult
from tap.directive import Directive
from tap.line import Result
class Factory(object):
"""A factory to produce commonly needed objects"""
def make_ok(self, directive_text=''):
return Result(
True, 1, 'This is a description.', Directive(directive_text))
def make_test_result(self):
stream = tempfile.TemporaryFile(mode='w')
return TextTestResult(stream, None, 1)
|
# Copyright (c) 2014, Matt Layman
import tempfile
from unittest.runner import TextTestResult
from tap.directive import Directive
from tap.line import Result
class Factory(object):
"""A factory to produce commonly needed objects"""
def make_ok(self, directive_text=''):
return Result(
True, 1, 'This is a description.', Directive(directive_text))
def make_test_result(self):
stream = tempfile.TemporaryFile()
return TextTestResult(stream, None, 1)
Fix Python 2.6 and Python 3 tests.# Copyright (c) 2014, Matt Layman
import tempfile
try:
from unittest.runner import TextTestResult
except ImportError:
# Support Python 2.6.
from unittest import _TextTestResult as TextTestResult
from tap.directive import Directive
from tap.line import Result
class Factory(object):
"""A factory to produce commonly needed objects"""
def make_ok(self, directive_text=''):
return Result(
True, 1, 'This is a description.', Directive(directive_text))
def make_test_result(self):
stream = tempfile.TemporaryFile(mode='w')
return TextTestResult(stream, None, 1)
|
<commit_before># Copyright (c) 2014, Matt Layman
import tempfile
from unittest.runner import TextTestResult
from tap.directive import Directive
from tap.line import Result
class Factory(object):
"""A factory to produce commonly needed objects"""
def make_ok(self, directive_text=''):
return Result(
True, 1, 'This is a description.', Directive(directive_text))
def make_test_result(self):
stream = tempfile.TemporaryFile()
return TextTestResult(stream, None, 1)
<commit_msg>Fix Python 2.6 and Python 3 tests.<commit_after># Copyright (c) 2014, Matt Layman
import tempfile
try:
from unittest.runner import TextTestResult
except ImportError:
# Support Python 2.6.
from unittest import _TextTestResult as TextTestResult
from tap.directive import Directive
from tap.line import Result
class Factory(object):
"""A factory to produce commonly needed objects"""
def make_ok(self, directive_text=''):
return Result(
True, 1, 'This is a description.', Directive(directive_text))
def make_test_result(self):
stream = tempfile.TemporaryFile(mode='w')
return TextTestResult(stream, None, 1)
|
aa690a36cd6933e309b2881211ae1bfa9169d968
|
dpnode/dpnode/urls.py
|
dpnode/dpnode/urls.py
|
"""
There are two ways of constructing a software design.
One way is to make it so simple that there are obviously no deficiencies.
And the other way is to make it so complicated that there are no obvious deficiencies.
- C. A. R. Hoare
"""
from django.conf.urls import patterns, include, url
from django.contrib import admin
from django.conf import settings
urlpatterns = patterns('',
url(r'^admin/', include(admin.site.urls)),
# Grappelli URLs
url(r'^grappelli/', include('grappelli.urls')),
# Default Root
# url(r'^$', 'dpn_registry.views.index', name="siteroot"),
# Login URL
url(r'^%s$' % settings.LOGIN_URL, 'django.contrib.auth.views.login', {'template_name': 'login.html'}, name="login"),
url(r'^%s$' % settings.LOGOUT_URL, 'django.contrib.auth.views.logout', {'template_name': 'logout.html'}, name="logout"),
# REST Login/Out
url(r'^api-auth/', include('rest_framework.urls', namespace='rest_framework')),
# API calls
url(r'^api-v0/', include('dpn.api.urls', namespace="api")),
# API Documentation
url(r'^docs/', include('rest_framework_swagger.urls', namespace="api-docs"))
)
|
"""
There are two ways of constructing a software design.
One way is to make it so simple that there are obviously no deficiencies.
And the other way is to make it so complicated that there are no obvious deficiencies.
- C. A. R. Hoare
"""
from django.conf.urls import patterns, include, url
from django.contrib import admin
from django.conf import settings
urlpatterns = patterns('',
url(r'^admin/', include(admin.site.urls)),
# Grappelli URLs
url(r'^grappelli/', include('grappelli.urls')),
# Default Root
# url(r'^$', 'dpn_registry.views.index', name="siteroot"),
# Login URL
url(r'^%s$' % settings.LOGIN_URL, 'django.contrib.auth.views.login', {'template_name': 'login.html'}, name="login"),
url(r'^%s$' % settings.LOGOUT_URL, 'django.contrib.auth.views.logout', {'template_name': 'logout.html'}, name="logout"),
# REST Login/Out
url(r'^api-auth/', include('rest_framework.urls', namespace='rest_framework')),
# API calls
url(r'^api-v1/', include('dpn.api.urls', namespace="api")),
# API Documentation
url(r'^docs/', include('rest_framework_swagger.urls', namespace="api-docs"))
)
|
Change base API url version to 1
|
Change base API url version to 1
|
Python
|
apache-2.0
|
APTrust/EarthDiver,APTrust/EarthDiver
|
"""
There are two ways of constructing a software design.
One way is to make it so simple that there are obviously no deficiencies.
And the other way is to make it so complicated that there are no obvious deficiencies.
- C. A. R. Hoare
"""
from django.conf.urls import patterns, include, url
from django.contrib import admin
from django.conf import settings
urlpatterns = patterns('',
url(r'^admin/', include(admin.site.urls)),
# Grappelli URLs
url(r'^grappelli/', include('grappelli.urls')),
# Default Root
# url(r'^$', 'dpn_registry.views.index', name="siteroot"),
# Login URL
url(r'^%s$' % settings.LOGIN_URL, 'django.contrib.auth.views.login', {'template_name': 'login.html'}, name="login"),
url(r'^%s$' % settings.LOGOUT_URL, 'django.contrib.auth.views.logout', {'template_name': 'logout.html'}, name="logout"),
# REST Login/Out
url(r'^api-auth/', include('rest_framework.urls', namespace='rest_framework')),
# API calls
url(r'^api-v0/', include('dpn.api.urls', namespace="api")),
# API Documentation
url(r'^docs/', include('rest_framework_swagger.urls', namespace="api-docs"))
)
Change base API url version to 1
|
"""
There are two ways of constructing a software design.
One way is to make it so simple that there are obviously no deficiencies.
And the other way is to make it so complicated that there are no obvious deficiencies.
- C. A. R. Hoare
"""
from django.conf.urls import patterns, include, url
from django.contrib import admin
from django.conf import settings
urlpatterns = patterns('',
url(r'^admin/', include(admin.site.urls)),
# Grappelli URLs
url(r'^grappelli/', include('grappelli.urls')),
# Default Root
# url(r'^$', 'dpn_registry.views.index', name="siteroot"),
# Login URL
url(r'^%s$' % settings.LOGIN_URL, 'django.contrib.auth.views.login', {'template_name': 'login.html'}, name="login"),
url(r'^%s$' % settings.LOGOUT_URL, 'django.contrib.auth.views.logout', {'template_name': 'logout.html'}, name="logout"),
# REST Login/Out
url(r'^api-auth/', include('rest_framework.urls', namespace='rest_framework')),
# API calls
url(r'^api-v1/', include('dpn.api.urls', namespace="api")),
# API Documentation
url(r'^docs/', include('rest_framework_swagger.urls', namespace="api-docs"))
)
|
<commit_before>"""
There are two ways of constructing a software design.
One way is to make it so simple that there are obviously no deficiencies.
And the other way is to make it so complicated that there are no obvious deficiencies.
- C. A. R. Hoare
"""
from django.conf.urls import patterns, include, url
from django.contrib import admin
from django.conf import settings
urlpatterns = patterns('',
url(r'^admin/', include(admin.site.urls)),
# Grappelli URLs
url(r'^grappelli/', include('grappelli.urls')),
# Default Root
# url(r'^$', 'dpn_registry.views.index', name="siteroot"),
# Login URL
url(r'^%s$' % settings.LOGIN_URL, 'django.contrib.auth.views.login', {'template_name': 'login.html'}, name="login"),
url(r'^%s$' % settings.LOGOUT_URL, 'django.contrib.auth.views.logout', {'template_name': 'logout.html'}, name="logout"),
# REST Login/Out
url(r'^api-auth/', include('rest_framework.urls', namespace='rest_framework')),
# API calls
url(r'^api-v0/', include('dpn.api.urls', namespace="api")),
# API Documentation
url(r'^docs/', include('rest_framework_swagger.urls', namespace="api-docs"))
)
<commit_msg>Change base API url version to 1<commit_after>
|
"""
There are two ways of constructing a software design.
One way is to make it so simple that there are obviously no deficiencies.
And the other way is to make it so complicated that there are no obvious deficiencies.
- C. A. R. Hoare
"""
from django.conf.urls import patterns, include, url
from django.contrib import admin
from django.conf import settings
urlpatterns = patterns('',
url(r'^admin/', include(admin.site.urls)),
# Grappelli URLs
url(r'^grappelli/', include('grappelli.urls')),
# Default Root
# url(r'^$', 'dpn_registry.views.index', name="siteroot"),
# Login URL
url(r'^%s$' % settings.LOGIN_URL, 'django.contrib.auth.views.login', {'template_name': 'login.html'}, name="login"),
url(r'^%s$' % settings.LOGOUT_URL, 'django.contrib.auth.views.logout', {'template_name': 'logout.html'}, name="logout"),
# REST Login/Out
url(r'^api-auth/', include('rest_framework.urls', namespace='rest_framework')),
# API calls
url(r'^api-v1/', include('dpn.api.urls', namespace="api")),
# API Documentation
url(r'^docs/', include('rest_framework_swagger.urls', namespace="api-docs"))
)
|
"""
There are two ways of constructing a software design.
One way is to make it so simple that there are obviously no deficiencies.
And the other way is to make it so complicated that there are no obvious deficiencies.
- C. A. R. Hoare
"""
from django.conf.urls import patterns, include, url
from django.contrib import admin
from django.conf import settings
urlpatterns = patterns('',
url(r'^admin/', include(admin.site.urls)),
# Grappelli URLs
url(r'^grappelli/', include('grappelli.urls')),
# Default Root
# url(r'^$', 'dpn_registry.views.index', name="siteroot"),
# Login URL
url(r'^%s$' % settings.LOGIN_URL, 'django.contrib.auth.views.login', {'template_name': 'login.html'}, name="login"),
url(r'^%s$' % settings.LOGOUT_URL, 'django.contrib.auth.views.logout', {'template_name': 'logout.html'}, name="logout"),
# REST Login/Out
url(r'^api-auth/', include('rest_framework.urls', namespace='rest_framework')),
# API calls
url(r'^api-v0/', include('dpn.api.urls', namespace="api")),
# API Documentation
url(r'^docs/', include('rest_framework_swagger.urls', namespace="api-docs"))
)
Change base API url version to 1"""
There are two ways of constructing a software design.
One way is to make it so simple that there are obviously no deficiencies.
And the other way is to make it so complicated that there are no obvious deficiencies.
- C. A. R. Hoare
"""
from django.conf.urls import patterns, include, url
from django.contrib import admin
from django.conf import settings
urlpatterns = patterns('',
url(r'^admin/', include(admin.site.urls)),
# Grappelli URLs
url(r'^grappelli/', include('grappelli.urls')),
# Default Root
# url(r'^$', 'dpn_registry.views.index', name="siteroot"),
# Login URL
url(r'^%s$' % settings.LOGIN_URL, 'django.contrib.auth.views.login', {'template_name': 'login.html'}, name="login"),
url(r'^%s$' % settings.LOGOUT_URL, 'django.contrib.auth.views.logout', {'template_name': 'logout.html'}, name="logout"),
# REST Login/Out
url(r'^api-auth/', include('rest_framework.urls', namespace='rest_framework')),
# API calls
url(r'^api-v1/', include('dpn.api.urls', namespace="api")),
# API Documentation
url(r'^docs/', include('rest_framework_swagger.urls', namespace="api-docs"))
)
|
<commit_before>"""
There are two ways of constructing a software design.
One way is to make it so simple that there are obviously no deficiencies.
And the other way is to make it so complicated that there are no obvious deficiencies.
- C. A. R. Hoare
"""
from django.conf.urls import patterns, include, url
from django.contrib import admin
from django.conf import settings
urlpatterns = patterns('',
url(r'^admin/', include(admin.site.urls)),
# Grappelli URLs
url(r'^grappelli/', include('grappelli.urls')),
# Default Root
# url(r'^$', 'dpn_registry.views.index', name="siteroot"),
# Login URL
url(r'^%s$' % settings.LOGIN_URL, 'django.contrib.auth.views.login', {'template_name': 'login.html'}, name="login"),
url(r'^%s$' % settings.LOGOUT_URL, 'django.contrib.auth.views.logout', {'template_name': 'logout.html'}, name="logout"),
# REST Login/Out
url(r'^api-auth/', include('rest_framework.urls', namespace='rest_framework')),
# API calls
url(r'^api-v0/', include('dpn.api.urls', namespace="api")),
# API Documentation
url(r'^docs/', include('rest_framework_swagger.urls', namespace="api-docs"))
)
<commit_msg>Change base API url version to 1<commit_after>"""
There are two ways of constructing a software design.
One way is to make it so simple that there are obviously no deficiencies.
And the other way is to make it so complicated that there are no obvious deficiencies.
- C. A. R. Hoare
"""
from django.conf.urls import patterns, include, url
from django.contrib import admin
from django.conf import settings
urlpatterns = patterns('',
url(r'^admin/', include(admin.site.urls)),
# Grappelli URLs
url(r'^grappelli/', include('grappelli.urls')),
# Default Root
# url(r'^$', 'dpn_registry.views.index', name="siteroot"),
# Login URL
url(r'^%s$' % settings.LOGIN_URL, 'django.contrib.auth.views.login', {'template_name': 'login.html'}, name="login"),
url(r'^%s$' % settings.LOGOUT_URL, 'django.contrib.auth.views.logout', {'template_name': 'logout.html'}, name="logout"),
# REST Login/Out
url(r'^api-auth/', include('rest_framework.urls', namespace='rest_framework')),
# API calls
url(r'^api-v1/', include('dpn.api.urls', namespace="api")),
# API Documentation
url(r'^docs/', include('rest_framework_swagger.urls', namespace="api-docs"))
)
|
4eb043cfb0f2535a1dca37927323155b7d3f363e
|
dynamic_rest/links.py
|
dynamic_rest/links.py
|
"""This module contains utilities to support API links."""
from django.utils import six
from dynamic_rest.conf import settings
from .routers import DynamicRouter
def merge_link_object(serializer, data, instance):
"""Add a 'links' attribute to the data that maps field names to URLs.
NOTE: This is the format that Ember Data supports, but alternative
implementations are possible to support other formats.
"""
link_object = {}
if not getattr(instance, 'pk', None):
# If instance doesn't have a `pk` field, we'll assume it doesn't
# have a canonical resource URL to hang a link off of.
# This generally only affectes Ephemeral Objects.
return data
link_fields = serializer.get_link_fields()
for name, field in six.iteritems(link_fields):
# For included fields, omit link if there's no data.
if name in data and not data[name]:
continue
link = getattr(field, 'link', None)
if link is None:
base_url = ''
if settings.ENABLE_HOST_RELATIVE_LINKS:
# if the resource isn't registered, this will default back to
# using resource-relative urls for links.
base_url = DynamicRouter.get_canonical_path(
serializer.get_resource_key(),
instance.pk
) or ''
link = '%s%s/' % (base_url, name)
# Default to DREST-generated relation endpoints.
elif callable(link):
link = link(name, field, data, instance)
link_object[name] = link
if link_object:
data['links'] = link_object
return data
|
"""This module contains utilities to support API links."""
from django.utils import six
from dynamic_rest.conf import settings
from dynamic_rest.routers import DynamicRouter
def merge_link_object(serializer, data, instance):
"""Add a 'links' attribute to the data that maps field names to URLs.
NOTE: This is the format that Ember Data supports, but alternative
implementations are possible to support other formats.
"""
link_object = {}
if not getattr(instance, 'pk', None):
# If instance doesn't have a `pk` field, we'll assume it doesn't
# have a canonical resource URL to hang a link off of.
# This generally only affectes Ephemeral Objects.
return data
link_fields = serializer.get_link_fields()
for name, field in six.iteritems(link_fields):
# For included fields, omit link if there's no data.
if name in data and not data[name]:
continue
link = getattr(field, 'link', None)
if link is None:
base_url = ''
if settings.ENABLE_HOST_RELATIVE_LINKS:
# if the resource isn't registered, this will default back to
# using resource-relative urls for links.
base_url = DynamicRouter.get_canonical_path(
serializer.get_resource_key(),
instance.pk
) or ''
link = '%s%s/' % (base_url, name)
# Default to DREST-generated relation endpoints.
elif callable(link):
link = link(name, field, data, instance)
link_object[name] = link
if link_object:
data['links'] = link_object
return data
|
Fix some sorting thing for isort
|
Fix some sorting thing for isort
|
Python
|
mit
|
sanoma/dynamic-rest,AltSchool/dynamic-rest,sanoma/dynamic-rest,AltSchool/dynamic-rest
|
"""This module contains utilities to support API links."""
from django.utils import six
from dynamic_rest.conf import settings
from .routers import DynamicRouter
def merge_link_object(serializer, data, instance):
"""Add a 'links' attribute to the data that maps field names to URLs.
NOTE: This is the format that Ember Data supports, but alternative
implementations are possible to support other formats.
"""
link_object = {}
if not getattr(instance, 'pk', None):
# If instance doesn't have a `pk` field, we'll assume it doesn't
# have a canonical resource URL to hang a link off of.
# This generally only affectes Ephemeral Objects.
return data
link_fields = serializer.get_link_fields()
for name, field in six.iteritems(link_fields):
# For included fields, omit link if there's no data.
if name in data and not data[name]:
continue
link = getattr(field, 'link', None)
if link is None:
base_url = ''
if settings.ENABLE_HOST_RELATIVE_LINKS:
# if the resource isn't registered, this will default back to
# using resource-relative urls for links.
base_url = DynamicRouter.get_canonical_path(
serializer.get_resource_key(),
instance.pk
) or ''
link = '%s%s/' % (base_url, name)
# Default to DREST-generated relation endpoints.
elif callable(link):
link = link(name, field, data, instance)
link_object[name] = link
if link_object:
data['links'] = link_object
return data
Fix some sorting thing for isort
|
"""This module contains utilities to support API links."""
from django.utils import six
from dynamic_rest.conf import settings
from dynamic_rest.routers import DynamicRouter
def merge_link_object(serializer, data, instance):
"""Add a 'links' attribute to the data that maps field names to URLs.
NOTE: This is the format that Ember Data supports, but alternative
implementations are possible to support other formats.
"""
link_object = {}
if not getattr(instance, 'pk', None):
# If instance doesn't have a `pk` field, we'll assume it doesn't
# have a canonical resource URL to hang a link off of.
# This generally only affectes Ephemeral Objects.
return data
link_fields = serializer.get_link_fields()
for name, field in six.iteritems(link_fields):
# For included fields, omit link if there's no data.
if name in data and not data[name]:
continue
link = getattr(field, 'link', None)
if link is None:
base_url = ''
if settings.ENABLE_HOST_RELATIVE_LINKS:
# if the resource isn't registered, this will default back to
# using resource-relative urls for links.
base_url = DynamicRouter.get_canonical_path(
serializer.get_resource_key(),
instance.pk
) or ''
link = '%s%s/' % (base_url, name)
# Default to DREST-generated relation endpoints.
elif callable(link):
link = link(name, field, data, instance)
link_object[name] = link
if link_object:
data['links'] = link_object
return data
|
<commit_before>"""This module contains utilities to support API links."""
from django.utils import six
from dynamic_rest.conf import settings
from .routers import DynamicRouter
def merge_link_object(serializer, data, instance):
"""Add a 'links' attribute to the data that maps field names to URLs.
NOTE: This is the format that Ember Data supports, but alternative
implementations are possible to support other formats.
"""
link_object = {}
if not getattr(instance, 'pk', None):
# If instance doesn't have a `pk` field, we'll assume it doesn't
# have a canonical resource URL to hang a link off of.
# This generally only affectes Ephemeral Objects.
return data
link_fields = serializer.get_link_fields()
for name, field in six.iteritems(link_fields):
# For included fields, omit link if there's no data.
if name in data and not data[name]:
continue
link = getattr(field, 'link', None)
if link is None:
base_url = ''
if settings.ENABLE_HOST_RELATIVE_LINKS:
# if the resource isn't registered, this will default back to
# using resource-relative urls for links.
base_url = DynamicRouter.get_canonical_path(
serializer.get_resource_key(),
instance.pk
) or ''
link = '%s%s/' % (base_url, name)
# Default to DREST-generated relation endpoints.
elif callable(link):
link = link(name, field, data, instance)
link_object[name] = link
if link_object:
data['links'] = link_object
return data
<commit_msg>Fix some sorting thing for isort<commit_after>
|
"""This module contains utilities to support API links."""
from django.utils import six
from dynamic_rest.conf import settings
from dynamic_rest.routers import DynamicRouter
def merge_link_object(serializer, data, instance):
"""Add a 'links' attribute to the data that maps field names to URLs.
NOTE: This is the format that Ember Data supports, but alternative
implementations are possible to support other formats.
"""
link_object = {}
if not getattr(instance, 'pk', None):
# If instance doesn't have a `pk` field, we'll assume it doesn't
# have a canonical resource URL to hang a link off of.
# This generally only affectes Ephemeral Objects.
return data
link_fields = serializer.get_link_fields()
for name, field in six.iteritems(link_fields):
# For included fields, omit link if there's no data.
if name in data and not data[name]:
continue
link = getattr(field, 'link', None)
if link is None:
base_url = ''
if settings.ENABLE_HOST_RELATIVE_LINKS:
# if the resource isn't registered, this will default back to
# using resource-relative urls for links.
base_url = DynamicRouter.get_canonical_path(
serializer.get_resource_key(),
instance.pk
) or ''
link = '%s%s/' % (base_url, name)
# Default to DREST-generated relation endpoints.
elif callable(link):
link = link(name, field, data, instance)
link_object[name] = link
if link_object:
data['links'] = link_object
return data
|
"""This module contains utilities to support API links."""
from django.utils import six
from dynamic_rest.conf import settings
from .routers import DynamicRouter
def merge_link_object(serializer, data, instance):
"""Add a 'links' attribute to the data that maps field names to URLs.
NOTE: This is the format that Ember Data supports, but alternative
implementations are possible to support other formats.
"""
link_object = {}
if not getattr(instance, 'pk', None):
# If instance doesn't have a `pk` field, we'll assume it doesn't
# have a canonical resource URL to hang a link off of.
# This generally only affectes Ephemeral Objects.
return data
link_fields = serializer.get_link_fields()
for name, field in six.iteritems(link_fields):
# For included fields, omit link if there's no data.
if name in data and not data[name]:
continue
link = getattr(field, 'link', None)
if link is None:
base_url = ''
if settings.ENABLE_HOST_RELATIVE_LINKS:
# if the resource isn't registered, this will default back to
# using resource-relative urls for links.
base_url = DynamicRouter.get_canonical_path(
serializer.get_resource_key(),
instance.pk
) or ''
link = '%s%s/' % (base_url, name)
# Default to DREST-generated relation endpoints.
elif callable(link):
link = link(name, field, data, instance)
link_object[name] = link
if link_object:
data['links'] = link_object
return data
Fix some sorting thing for isort"""This module contains utilities to support API links."""
from django.utils import six
from dynamic_rest.conf import settings
from dynamic_rest.routers import DynamicRouter
def merge_link_object(serializer, data, instance):
"""Add a 'links' attribute to the data that maps field names to URLs.
NOTE: This is the format that Ember Data supports, but alternative
implementations are possible to support other formats.
"""
link_object = {}
if not getattr(instance, 'pk', None):
# If instance doesn't have a `pk` field, we'll assume it doesn't
# have a canonical resource URL to hang a link off of.
# This generally only affectes Ephemeral Objects.
return data
link_fields = serializer.get_link_fields()
for name, field in six.iteritems(link_fields):
# For included fields, omit link if there's no data.
if name in data and not data[name]:
continue
link = getattr(field, 'link', None)
if link is None:
base_url = ''
if settings.ENABLE_HOST_RELATIVE_LINKS:
# if the resource isn't registered, this will default back to
# using resource-relative urls for links.
base_url = DynamicRouter.get_canonical_path(
serializer.get_resource_key(),
instance.pk
) or ''
link = '%s%s/' % (base_url, name)
# Default to DREST-generated relation endpoints.
elif callable(link):
link = link(name, field, data, instance)
link_object[name] = link
if link_object:
data['links'] = link_object
return data
|
<commit_before>"""This module contains utilities to support API links."""
from django.utils import six
from dynamic_rest.conf import settings
from .routers import DynamicRouter
def merge_link_object(serializer, data, instance):
"""Add a 'links' attribute to the data that maps field names to URLs.
NOTE: This is the format that Ember Data supports, but alternative
implementations are possible to support other formats.
"""
link_object = {}
if not getattr(instance, 'pk', None):
# If instance doesn't have a `pk` field, we'll assume it doesn't
# have a canonical resource URL to hang a link off of.
# This generally only affectes Ephemeral Objects.
return data
link_fields = serializer.get_link_fields()
for name, field in six.iteritems(link_fields):
# For included fields, omit link if there's no data.
if name in data and not data[name]:
continue
link = getattr(field, 'link', None)
if link is None:
base_url = ''
if settings.ENABLE_HOST_RELATIVE_LINKS:
# if the resource isn't registered, this will default back to
# using resource-relative urls for links.
base_url = DynamicRouter.get_canonical_path(
serializer.get_resource_key(),
instance.pk
) or ''
link = '%s%s/' % (base_url, name)
# Default to DREST-generated relation endpoints.
elif callable(link):
link = link(name, field, data, instance)
link_object[name] = link
if link_object:
data['links'] = link_object
return data
<commit_msg>Fix some sorting thing for isort<commit_after>"""This module contains utilities to support API links."""
from django.utils import six
from dynamic_rest.conf import settings
from dynamic_rest.routers import DynamicRouter
def merge_link_object(serializer, data, instance):
"""Add a 'links' attribute to the data that maps field names to URLs.
NOTE: This is the format that Ember Data supports, but alternative
implementations are possible to support other formats.
"""
link_object = {}
if not getattr(instance, 'pk', None):
# If instance doesn't have a `pk` field, we'll assume it doesn't
# have a canonical resource URL to hang a link off of.
# This generally only affectes Ephemeral Objects.
return data
link_fields = serializer.get_link_fields()
for name, field in six.iteritems(link_fields):
# For included fields, omit link if there's no data.
if name in data and not data[name]:
continue
link = getattr(field, 'link', None)
if link is None:
base_url = ''
if settings.ENABLE_HOST_RELATIVE_LINKS:
# if the resource isn't registered, this will default back to
# using resource-relative urls for links.
base_url = DynamicRouter.get_canonical_path(
serializer.get_resource_key(),
instance.pk
) or ''
link = '%s%s/' % (base_url, name)
# Default to DREST-generated relation endpoints.
elif callable(link):
link = link(name, field, data, instance)
link_object[name] = link
if link_object:
data['links'] = link_object
return data
|
9f843b34ef5c85d781b7dd322641d5459cf6190d
|
linked_accounts/backends.py
|
linked_accounts/backends.py
|
from django.contrib.auth.models import User
from linked_accounts.utils import get_profile
class LinkedAccountsBackend(object):
def get_user(self, user_id):
return User.objects.get(id=user_id)
def authenticate(self, service=None, token=None):
profile = get_profile(service, token)
|
from django.contrib.auth.models import User
from linked_accounts.utils import get_profile
class LinkedAccountsBackend(object):
def get_user(self, user_id):
return User.objects.get(id=user_id)
def authenticate(self, service=None, token=None):
profile = get_profile(service, token)
return profile
|
Return profile from authenticate method
|
Return profile from authenticate method
|
Python
|
mit
|
zen4ever/django-linked-accounts,zen4ever/django-linked-accounts
|
from django.contrib.auth.models import User
from linked_accounts.utils import get_profile
class LinkedAccountsBackend(object):
def get_user(self, user_id):
return User.objects.get(id=user_id)
def authenticate(self, service=None, token=None):
profile = get_profile(service, token)
Return profile from authenticate method
|
from django.contrib.auth.models import User
from linked_accounts.utils import get_profile
class LinkedAccountsBackend(object):
def get_user(self, user_id):
return User.objects.get(id=user_id)
def authenticate(self, service=None, token=None):
profile = get_profile(service, token)
return profile
|
<commit_before>from django.contrib.auth.models import User
from linked_accounts.utils import get_profile
class LinkedAccountsBackend(object):
def get_user(self, user_id):
return User.objects.get(id=user_id)
def authenticate(self, service=None, token=None):
profile = get_profile(service, token)
<commit_msg>Return profile from authenticate method<commit_after>
|
from django.contrib.auth.models import User
from linked_accounts.utils import get_profile
class LinkedAccountsBackend(object):
def get_user(self, user_id):
return User.objects.get(id=user_id)
def authenticate(self, service=None, token=None):
profile = get_profile(service, token)
return profile
|
from django.contrib.auth.models import User
from linked_accounts.utils import get_profile
class LinkedAccountsBackend(object):
def get_user(self, user_id):
return User.objects.get(id=user_id)
def authenticate(self, service=None, token=None):
profile = get_profile(service, token)
Return profile from authenticate methodfrom django.contrib.auth.models import User
from linked_accounts.utils import get_profile
class LinkedAccountsBackend(object):
def get_user(self, user_id):
return User.objects.get(id=user_id)
def authenticate(self, service=None, token=None):
profile = get_profile(service, token)
return profile
|
<commit_before>from django.contrib.auth.models import User
from linked_accounts.utils import get_profile
class LinkedAccountsBackend(object):
def get_user(self, user_id):
return User.objects.get(id=user_id)
def authenticate(self, service=None, token=None):
profile = get_profile(service, token)
<commit_msg>Return profile from authenticate method<commit_after>from django.contrib.auth.models import User
from linked_accounts.utils import get_profile
class LinkedAccountsBackend(object):
def get_user(self, user_id):
return User.objects.get(id=user_id)
def authenticate(self, service=None, token=None):
profile = get_profile(service, token)
return profile
|
dae3944a7e3cb0d861c8a118f36627e811cadc38
|
kdl/settings/dev.py
|
kdl/settings/dev.py
|
from .base import * # noqa
DEBUG = True
INTERNAL_IPS = INTERNAL_IPS + ('', )
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'app_kdl_dev',
'USER': 'app_kdl',
'PASSWORD': '',
'HOST': ''
},
}
LOGGING_LEVEL = logging.DEBUG
LOGGING['loggers']['kdl']['level'] = LOGGING_LEVEL
TEMPLATES[0]['OPTIONS']['debug'] = True
# -----------------------------------------------------------------------------
# Django Extensions
# http://django-extensions.readthedocs.org/en/latest/
# -----------------------------------------------------------------------------
try:
import django_extensions # noqa
INSTALLED_APPS = INSTALLED_APPS + ('django_extensions',)
except ImportError:
pass
# -----------------------------------------------------------------------------
# Django Debug Toolbar
# http://django-debug-toolbar.readthedocs.org/en/latest/
# -----------------------------------------------------------------------------
try:
import debug_toolbar # noqa
INSTALLED_APPS = INSTALLED_APPS + ('debug_toolbar',)
MIDDLEWARE_CLASSES = MIDDLEWARE_CLASSES + (
'debug_toolbar.middleware.DebugToolbarMiddleware',)
DEBUG_TOOLBAR_PATCH_SETTINGS = True
except ImportError:
pass
# -----------------------------------------------------------------------------
# Local settings
# -----------------------------------------------------------------------------
try:
from .local import * # noqa
except ImportError:
print('dev, failed to import local settings')
from .test import * # noqa
print('the project is running with test settings')
print('please create a local settings file')
|
from .base import * # noqa
DEBUG = True
REQUIRE_DEBUG = DEBUG
INTERNAL_IPS = INTERNAL_IPS + ('', )
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'app_kdl_dev',
'USER': 'app_kdl',
'PASSWORD': '',
'HOST': ''
},
}
LOGGING_LEVEL = logging.DEBUG
LOGGING['loggers']['kdl']['level'] = LOGGING_LEVEL
TEMPLATES[0]['OPTIONS']['debug'] = True
# -----------------------------------------------------------------------------
# Django Extensions
# http://django-extensions.readthedocs.org/en/latest/
# -----------------------------------------------------------------------------
try:
import django_extensions # noqa
INSTALLED_APPS = INSTALLED_APPS + ('django_extensions',)
except ImportError:
pass
# -----------------------------------------------------------------------------
# Django Debug Toolbar
# http://django-debug-toolbar.readthedocs.org/en/latest/
# -----------------------------------------------------------------------------
try:
import debug_toolbar # noqa
INSTALLED_APPS = INSTALLED_APPS + ('debug_toolbar',)
MIDDLEWARE_CLASSES = MIDDLEWARE_CLASSES + (
'debug_toolbar.middleware.DebugToolbarMiddleware',)
DEBUG_TOOLBAR_PATCH_SETTINGS = True
except ImportError:
pass
# -----------------------------------------------------------------------------
# Local settings
# -----------------------------------------------------------------------------
try:
from .local import * # noqa
except ImportError:
print('dev, failed to import local settings')
from .test import * # noqa
print('the project is running with test settings')
print('please create a local settings file')
|
Set require debug to be the same as debug.
|
Set require debug to be the same as debug.
|
Python
|
mit
|
kingsdigitallab/kdl-django,kingsdigitallab/kdl-django,kingsdigitallab/kdl-django,kingsdigitallab/kdl-django
|
from .base import * # noqa
DEBUG = True
INTERNAL_IPS = INTERNAL_IPS + ('', )
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'app_kdl_dev',
'USER': 'app_kdl',
'PASSWORD': '',
'HOST': ''
},
}
LOGGING_LEVEL = logging.DEBUG
LOGGING['loggers']['kdl']['level'] = LOGGING_LEVEL
TEMPLATES[0]['OPTIONS']['debug'] = True
# -----------------------------------------------------------------------------
# Django Extensions
# http://django-extensions.readthedocs.org/en/latest/
# -----------------------------------------------------------------------------
try:
import django_extensions # noqa
INSTALLED_APPS = INSTALLED_APPS + ('django_extensions',)
except ImportError:
pass
# -----------------------------------------------------------------------------
# Django Debug Toolbar
# http://django-debug-toolbar.readthedocs.org/en/latest/
# -----------------------------------------------------------------------------
try:
import debug_toolbar # noqa
INSTALLED_APPS = INSTALLED_APPS + ('debug_toolbar',)
MIDDLEWARE_CLASSES = MIDDLEWARE_CLASSES + (
'debug_toolbar.middleware.DebugToolbarMiddleware',)
DEBUG_TOOLBAR_PATCH_SETTINGS = True
except ImportError:
pass
# -----------------------------------------------------------------------------
# Local settings
# -----------------------------------------------------------------------------
try:
from .local import * # noqa
except ImportError:
print('dev, failed to import local settings')
from .test import * # noqa
print('the project is running with test settings')
print('please create a local settings file')
Set require debug to be the same as debug.
|
from .base import * # noqa
DEBUG = True
REQUIRE_DEBUG = DEBUG
INTERNAL_IPS = INTERNAL_IPS + ('', )
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'app_kdl_dev',
'USER': 'app_kdl',
'PASSWORD': '',
'HOST': ''
},
}
LOGGING_LEVEL = logging.DEBUG
LOGGING['loggers']['kdl']['level'] = LOGGING_LEVEL
TEMPLATES[0]['OPTIONS']['debug'] = True
# -----------------------------------------------------------------------------
# Django Extensions
# http://django-extensions.readthedocs.org/en/latest/
# -----------------------------------------------------------------------------
try:
import django_extensions # noqa
INSTALLED_APPS = INSTALLED_APPS + ('django_extensions',)
except ImportError:
pass
# -----------------------------------------------------------------------------
# Django Debug Toolbar
# http://django-debug-toolbar.readthedocs.org/en/latest/
# -----------------------------------------------------------------------------
try:
import debug_toolbar # noqa
INSTALLED_APPS = INSTALLED_APPS + ('debug_toolbar',)
MIDDLEWARE_CLASSES = MIDDLEWARE_CLASSES + (
'debug_toolbar.middleware.DebugToolbarMiddleware',)
DEBUG_TOOLBAR_PATCH_SETTINGS = True
except ImportError:
pass
# -----------------------------------------------------------------------------
# Local settings
# -----------------------------------------------------------------------------
try:
from .local import * # noqa
except ImportError:
print('dev, failed to import local settings')
from .test import * # noqa
print('the project is running with test settings')
print('please create a local settings file')
|
<commit_before>from .base import * # noqa
DEBUG = True
INTERNAL_IPS = INTERNAL_IPS + ('', )
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'app_kdl_dev',
'USER': 'app_kdl',
'PASSWORD': '',
'HOST': ''
},
}
LOGGING_LEVEL = logging.DEBUG
LOGGING['loggers']['kdl']['level'] = LOGGING_LEVEL
TEMPLATES[0]['OPTIONS']['debug'] = True
# -----------------------------------------------------------------------------
# Django Extensions
# http://django-extensions.readthedocs.org/en/latest/
# -----------------------------------------------------------------------------
try:
import django_extensions # noqa
INSTALLED_APPS = INSTALLED_APPS + ('django_extensions',)
except ImportError:
pass
# -----------------------------------------------------------------------------
# Django Debug Toolbar
# http://django-debug-toolbar.readthedocs.org/en/latest/
# -----------------------------------------------------------------------------
try:
import debug_toolbar # noqa
INSTALLED_APPS = INSTALLED_APPS + ('debug_toolbar',)
MIDDLEWARE_CLASSES = MIDDLEWARE_CLASSES + (
'debug_toolbar.middleware.DebugToolbarMiddleware',)
DEBUG_TOOLBAR_PATCH_SETTINGS = True
except ImportError:
pass
# -----------------------------------------------------------------------------
# Local settings
# -----------------------------------------------------------------------------
try:
from .local import * # noqa
except ImportError:
print('dev, failed to import local settings')
from .test import * # noqa
print('the project is running with test settings')
print('please create a local settings file')
<commit_msg>Set require debug to be the same as debug.<commit_after>
|
from .base import * # noqa
DEBUG = True
REQUIRE_DEBUG = DEBUG
INTERNAL_IPS = INTERNAL_IPS + ('', )
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'app_kdl_dev',
'USER': 'app_kdl',
'PASSWORD': '',
'HOST': ''
},
}
LOGGING_LEVEL = logging.DEBUG
LOGGING['loggers']['kdl']['level'] = LOGGING_LEVEL
TEMPLATES[0]['OPTIONS']['debug'] = True
# -----------------------------------------------------------------------------
# Django Extensions
# http://django-extensions.readthedocs.org/en/latest/
# -----------------------------------------------------------------------------
try:
import django_extensions # noqa
INSTALLED_APPS = INSTALLED_APPS + ('django_extensions',)
except ImportError:
pass
# -----------------------------------------------------------------------------
# Django Debug Toolbar
# http://django-debug-toolbar.readthedocs.org/en/latest/
# -----------------------------------------------------------------------------
try:
import debug_toolbar # noqa
INSTALLED_APPS = INSTALLED_APPS + ('debug_toolbar',)
MIDDLEWARE_CLASSES = MIDDLEWARE_CLASSES + (
'debug_toolbar.middleware.DebugToolbarMiddleware',)
DEBUG_TOOLBAR_PATCH_SETTINGS = True
except ImportError:
pass
# -----------------------------------------------------------------------------
# Local settings
# -----------------------------------------------------------------------------
try:
from .local import * # noqa
except ImportError:
print('dev, failed to import local settings')
from .test import * # noqa
print('the project is running with test settings')
print('please create a local settings file')
|
from .base import * # noqa
DEBUG = True
INTERNAL_IPS = INTERNAL_IPS + ('', )
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'app_kdl_dev',
'USER': 'app_kdl',
'PASSWORD': '',
'HOST': ''
},
}
LOGGING_LEVEL = logging.DEBUG
LOGGING['loggers']['kdl']['level'] = LOGGING_LEVEL
TEMPLATES[0]['OPTIONS']['debug'] = True
# -----------------------------------------------------------------------------
# Django Extensions
# http://django-extensions.readthedocs.org/en/latest/
# -----------------------------------------------------------------------------
try:
import django_extensions # noqa
INSTALLED_APPS = INSTALLED_APPS + ('django_extensions',)
except ImportError:
pass
# -----------------------------------------------------------------------------
# Django Debug Toolbar
# http://django-debug-toolbar.readthedocs.org/en/latest/
# -----------------------------------------------------------------------------
try:
import debug_toolbar # noqa
INSTALLED_APPS = INSTALLED_APPS + ('debug_toolbar',)
MIDDLEWARE_CLASSES = MIDDLEWARE_CLASSES + (
'debug_toolbar.middleware.DebugToolbarMiddleware',)
DEBUG_TOOLBAR_PATCH_SETTINGS = True
except ImportError:
pass
# -----------------------------------------------------------------------------
# Local settings
# -----------------------------------------------------------------------------
try:
from .local import * # noqa
except ImportError:
print('dev, failed to import local settings')
from .test import * # noqa
print('the project is running with test settings')
print('please create a local settings file')
Set require debug to be the same as debug.from .base import * # noqa
DEBUG = True
REQUIRE_DEBUG = DEBUG
INTERNAL_IPS = INTERNAL_IPS + ('', )
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'app_kdl_dev',
'USER': 'app_kdl',
'PASSWORD': '',
'HOST': ''
},
}
LOGGING_LEVEL = logging.DEBUG
LOGGING['loggers']['kdl']['level'] = LOGGING_LEVEL
TEMPLATES[0]['OPTIONS']['debug'] = True
# -----------------------------------------------------------------------------
# Django Extensions
# http://django-extensions.readthedocs.org/en/latest/
# -----------------------------------------------------------------------------
try:
import django_extensions # noqa
INSTALLED_APPS = INSTALLED_APPS + ('django_extensions',)
except ImportError:
pass
# -----------------------------------------------------------------------------
# Django Debug Toolbar
# http://django-debug-toolbar.readthedocs.org/en/latest/
# -----------------------------------------------------------------------------
try:
import debug_toolbar # noqa
INSTALLED_APPS = INSTALLED_APPS + ('debug_toolbar',)
MIDDLEWARE_CLASSES = MIDDLEWARE_CLASSES + (
'debug_toolbar.middleware.DebugToolbarMiddleware',)
DEBUG_TOOLBAR_PATCH_SETTINGS = True
except ImportError:
pass
# -----------------------------------------------------------------------------
# Local settings
# -----------------------------------------------------------------------------
try:
from .local import * # noqa
except ImportError:
print('dev, failed to import local settings')
from .test import * # noqa
print('the project is running with test settings')
print('please create a local settings file')
|
<commit_before>from .base import * # noqa
DEBUG = True
INTERNAL_IPS = INTERNAL_IPS + ('', )
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'app_kdl_dev',
'USER': 'app_kdl',
'PASSWORD': '',
'HOST': ''
},
}
LOGGING_LEVEL = logging.DEBUG
LOGGING['loggers']['kdl']['level'] = LOGGING_LEVEL
TEMPLATES[0]['OPTIONS']['debug'] = True
# -----------------------------------------------------------------------------
# Django Extensions
# http://django-extensions.readthedocs.org/en/latest/
# -----------------------------------------------------------------------------
try:
import django_extensions # noqa
INSTALLED_APPS = INSTALLED_APPS + ('django_extensions',)
except ImportError:
pass
# -----------------------------------------------------------------------------
# Django Debug Toolbar
# http://django-debug-toolbar.readthedocs.org/en/latest/
# -----------------------------------------------------------------------------
try:
import debug_toolbar # noqa
INSTALLED_APPS = INSTALLED_APPS + ('debug_toolbar',)
MIDDLEWARE_CLASSES = MIDDLEWARE_CLASSES + (
'debug_toolbar.middleware.DebugToolbarMiddleware',)
DEBUG_TOOLBAR_PATCH_SETTINGS = True
except ImportError:
pass
# -----------------------------------------------------------------------------
# Local settings
# -----------------------------------------------------------------------------
try:
from .local import * # noqa
except ImportError:
print('dev, failed to import local settings')
from .test import * # noqa
print('the project is running with test settings')
print('please create a local settings file')
<commit_msg>Set require debug to be the same as debug.<commit_after>from .base import * # noqa
DEBUG = True
REQUIRE_DEBUG = DEBUG
INTERNAL_IPS = INTERNAL_IPS + ('', )
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'app_kdl_dev',
'USER': 'app_kdl',
'PASSWORD': '',
'HOST': ''
},
}
LOGGING_LEVEL = logging.DEBUG
LOGGING['loggers']['kdl']['level'] = LOGGING_LEVEL
TEMPLATES[0]['OPTIONS']['debug'] = True
# -----------------------------------------------------------------------------
# Django Extensions
# http://django-extensions.readthedocs.org/en/latest/
# -----------------------------------------------------------------------------
try:
import django_extensions # noqa
INSTALLED_APPS = INSTALLED_APPS + ('django_extensions',)
except ImportError:
pass
# -----------------------------------------------------------------------------
# Django Debug Toolbar
# http://django-debug-toolbar.readthedocs.org/en/latest/
# -----------------------------------------------------------------------------
try:
import debug_toolbar # noqa
INSTALLED_APPS = INSTALLED_APPS + ('debug_toolbar',)
MIDDLEWARE_CLASSES = MIDDLEWARE_CLASSES + (
'debug_toolbar.middleware.DebugToolbarMiddleware',)
DEBUG_TOOLBAR_PATCH_SETTINGS = True
except ImportError:
pass
# -----------------------------------------------------------------------------
# Local settings
# -----------------------------------------------------------------------------
try:
from .local import * # noqa
except ImportError:
print('dev, failed to import local settings')
from .test import * # noqa
print('the project is running with test settings')
print('please create a local settings file')
|
5c8b4446b4e1fc2eee1daa52f8a422eb90700ed2
|
ELiDE/setup.py
|
ELiDE/setup.py
|
# This file is part of LiSE, a framework for life simulation games.
# Copyright (c) Zachary Spector, zacharyspector@gmail.com
import sys
if sys.version_info[0] < 3 or (
sys.version_info[0] == 3 and sys.version_info[1] < 3
):
raise RuntimeError("ELiDE requires Python 3.3 or later")
from setuptools import setup
setup(
name="ELiDE",
version="0.8.0a",
packages=[
"ELiDE",
"ELiDE.board",
"ELiDE.kivygarden.stiffscroll",
"ELiDE.kivygarden.texturestack"
],
package_dir={
'ELiDE.kivygarden.stiffscroll': 'ELiDE/kivygarden/stiffscroll',
'ELiDE.kivygarden.texturestack':
'ELiDE/kivygarden/texturestack'
},
install_requires=[
"LiSE==0.8.0a",
"numpy",
"kivy>=1.10.0",
"pygments"
],
package_data={
"ELiDE": [
"assets/*.png",
"assets/*.jpg",
"assets/*.ttf",
"assets/*.atlas",
"assets/rltiles/*"
]
},
zip_safe=False
)
|
# This file is part of LiSE, a framework for life simulation games.
# Copyright (c) Zachary Spector, zacharyspector@gmail.com
import sys
if sys.version_info[0] < 3 or (
sys.version_info[0] == 3 and sys.version_info[1] < 3
):
raise RuntimeError("ELiDE requires Python 3.3 or later")
from setuptools import setup
setup(
name="ELiDE",
version="0.8.0a",
packages=[
"ELiDE",
"ELiDE.board",
"ELiDE.kivygarden.texturestack"
],
package_dir={
'ELiDE.kivygarden.texturestack':
'ELiDE/kivygarden/texturestack'
},
install_requires=[
"LiSE==0.8.0a",
"numpy",
"kivy>=1.10.0",
"pygments"
],
package_data={
"ELiDE": [
"assets/*.png",
"assets/*.jpg",
"assets/*.ttf",
"assets/*.atlas",
"assets/rltiles/*"
]
},
zip_safe=False
)
|
Remove stiffscroll from ELiDE requirements
|
Remove stiffscroll from ELiDE requirements
|
Python
|
agpl-3.0
|
LogicalDash/LiSE,LogicalDash/LiSE
|
# This file is part of LiSE, a framework for life simulation games.
# Copyright (c) Zachary Spector, zacharyspector@gmail.com
import sys
if sys.version_info[0] < 3 or (
sys.version_info[0] == 3 and sys.version_info[1] < 3
):
raise RuntimeError("ELiDE requires Python 3.3 or later")
from setuptools import setup
setup(
name="ELiDE",
version="0.8.0a",
packages=[
"ELiDE",
"ELiDE.board",
"ELiDE.kivygarden.stiffscroll",
"ELiDE.kivygarden.texturestack"
],
package_dir={
'ELiDE.kivygarden.stiffscroll': 'ELiDE/kivygarden/stiffscroll',
'ELiDE.kivygarden.texturestack':
'ELiDE/kivygarden/texturestack'
},
install_requires=[
"LiSE==0.8.0a",
"numpy",
"kivy>=1.10.0",
"pygments"
],
package_data={
"ELiDE": [
"assets/*.png",
"assets/*.jpg",
"assets/*.ttf",
"assets/*.atlas",
"assets/rltiles/*"
]
},
zip_safe=False
)
Remove stiffscroll from ELiDE requirements
|
# This file is part of LiSE, a framework for life simulation games.
# Copyright (c) Zachary Spector, zacharyspector@gmail.com
import sys
if sys.version_info[0] < 3 or (
sys.version_info[0] == 3 and sys.version_info[1] < 3
):
raise RuntimeError("ELiDE requires Python 3.3 or later")
from setuptools import setup
setup(
name="ELiDE",
version="0.8.0a",
packages=[
"ELiDE",
"ELiDE.board",
"ELiDE.kivygarden.texturestack"
],
package_dir={
'ELiDE.kivygarden.texturestack':
'ELiDE/kivygarden/texturestack'
},
install_requires=[
"LiSE==0.8.0a",
"numpy",
"kivy>=1.10.0",
"pygments"
],
package_data={
"ELiDE": [
"assets/*.png",
"assets/*.jpg",
"assets/*.ttf",
"assets/*.atlas",
"assets/rltiles/*"
]
},
zip_safe=False
)
|
<commit_before># This file is part of LiSE, a framework for life simulation games.
# Copyright (c) Zachary Spector, zacharyspector@gmail.com
import sys
if sys.version_info[0] < 3 or (
sys.version_info[0] == 3 and sys.version_info[1] < 3
):
raise RuntimeError("ELiDE requires Python 3.3 or later")
from setuptools import setup
setup(
name="ELiDE",
version="0.8.0a",
packages=[
"ELiDE",
"ELiDE.board",
"ELiDE.kivygarden.stiffscroll",
"ELiDE.kivygarden.texturestack"
],
package_dir={
'ELiDE.kivygarden.stiffscroll': 'ELiDE/kivygarden/stiffscroll',
'ELiDE.kivygarden.texturestack':
'ELiDE/kivygarden/texturestack'
},
install_requires=[
"LiSE==0.8.0a",
"numpy",
"kivy>=1.10.0",
"pygments"
],
package_data={
"ELiDE": [
"assets/*.png",
"assets/*.jpg",
"assets/*.ttf",
"assets/*.atlas",
"assets/rltiles/*"
]
},
zip_safe=False
)
<commit_msg>Remove stiffscroll from ELiDE requirements<commit_after>
|
# This file is part of LiSE, a framework for life simulation games.
# Copyright (c) Zachary Spector, zacharyspector@gmail.com
import sys
if sys.version_info[0] < 3 or (
sys.version_info[0] == 3 and sys.version_info[1] < 3
):
raise RuntimeError("ELiDE requires Python 3.3 or later")
from setuptools import setup
setup(
name="ELiDE",
version="0.8.0a",
packages=[
"ELiDE",
"ELiDE.board",
"ELiDE.kivygarden.texturestack"
],
package_dir={
'ELiDE.kivygarden.texturestack':
'ELiDE/kivygarden/texturestack'
},
install_requires=[
"LiSE==0.8.0a",
"numpy",
"kivy>=1.10.0",
"pygments"
],
package_data={
"ELiDE": [
"assets/*.png",
"assets/*.jpg",
"assets/*.ttf",
"assets/*.atlas",
"assets/rltiles/*"
]
},
zip_safe=False
)
|
# This file is part of LiSE, a framework for life simulation games.
# Copyright (c) Zachary Spector, zacharyspector@gmail.com
import sys
if sys.version_info[0] < 3 or (
sys.version_info[0] == 3 and sys.version_info[1] < 3
):
raise RuntimeError("ELiDE requires Python 3.3 or later")
from setuptools import setup
setup(
name="ELiDE",
version="0.8.0a",
packages=[
"ELiDE",
"ELiDE.board",
"ELiDE.kivygarden.stiffscroll",
"ELiDE.kivygarden.texturestack"
],
package_dir={
'ELiDE.kivygarden.stiffscroll': 'ELiDE/kivygarden/stiffscroll',
'ELiDE.kivygarden.texturestack':
'ELiDE/kivygarden/texturestack'
},
install_requires=[
"LiSE==0.8.0a",
"numpy",
"kivy>=1.10.0",
"pygments"
],
package_data={
"ELiDE": [
"assets/*.png",
"assets/*.jpg",
"assets/*.ttf",
"assets/*.atlas",
"assets/rltiles/*"
]
},
zip_safe=False
)
Remove stiffscroll from ELiDE requirements# This file is part of LiSE, a framework for life simulation games.
# Copyright (c) Zachary Spector, zacharyspector@gmail.com
import sys
if sys.version_info[0] < 3 or (
sys.version_info[0] == 3 and sys.version_info[1] < 3
):
raise RuntimeError("ELiDE requires Python 3.3 or later")
from setuptools import setup
setup(
name="ELiDE",
version="0.8.0a",
packages=[
"ELiDE",
"ELiDE.board",
"ELiDE.kivygarden.texturestack"
],
package_dir={
'ELiDE.kivygarden.texturestack':
'ELiDE/kivygarden/texturestack'
},
install_requires=[
"LiSE==0.8.0a",
"numpy",
"kivy>=1.10.0",
"pygments"
],
package_data={
"ELiDE": [
"assets/*.png",
"assets/*.jpg",
"assets/*.ttf",
"assets/*.atlas",
"assets/rltiles/*"
]
},
zip_safe=False
)
|
<commit_before># This file is part of LiSE, a framework for life simulation games.
# Copyright (c) Zachary Spector, zacharyspector@gmail.com
import sys
if sys.version_info[0] < 3 or (
sys.version_info[0] == 3 and sys.version_info[1] < 3
):
raise RuntimeError("ELiDE requires Python 3.3 or later")
from setuptools import setup
setup(
name="ELiDE",
version="0.8.0a",
packages=[
"ELiDE",
"ELiDE.board",
"ELiDE.kivygarden.stiffscroll",
"ELiDE.kivygarden.texturestack"
],
package_dir={
'ELiDE.kivygarden.stiffscroll': 'ELiDE/kivygarden/stiffscroll',
'ELiDE.kivygarden.texturestack':
'ELiDE/kivygarden/texturestack'
},
install_requires=[
"LiSE==0.8.0a",
"numpy",
"kivy>=1.10.0",
"pygments"
],
package_data={
"ELiDE": [
"assets/*.png",
"assets/*.jpg",
"assets/*.ttf",
"assets/*.atlas",
"assets/rltiles/*"
]
},
zip_safe=False
)
<commit_msg>Remove stiffscroll from ELiDE requirements<commit_after># This file is part of LiSE, a framework for life simulation games.
# Copyright (c) Zachary Spector, zacharyspector@gmail.com
import sys
if sys.version_info[0] < 3 or (
sys.version_info[0] == 3 and sys.version_info[1] < 3
):
raise RuntimeError("ELiDE requires Python 3.3 or later")
from setuptools import setup
setup(
name="ELiDE",
version="0.8.0a",
packages=[
"ELiDE",
"ELiDE.board",
"ELiDE.kivygarden.texturestack"
],
package_dir={
'ELiDE.kivygarden.texturestack':
'ELiDE/kivygarden/texturestack'
},
install_requires=[
"LiSE==0.8.0a",
"numpy",
"kivy>=1.10.0",
"pygments"
],
package_data={
"ELiDE": [
"assets/*.png",
"assets/*.jpg",
"assets/*.ttf",
"assets/*.atlas",
"assets/rltiles/*"
]
},
zip_safe=False
)
|
1fb1b1fa6ed40b593c00101967b86bf1f94de8ab
|
atlasseq/cmds/rowjoin.py
|
atlasseq/cmds/rowjoin.py
|
#! /usr/bin/env python
from __future__ import print_function
import shutil
import logging
logger = logging.getLogger(__name__)
from atlasseq.storage.base import BerkeleyDBStorage
def rowjoin(partitioned_data, out_db, N=25000000):
db_out = BerkeleyDBStorage(config={'filename': out_db})
for x in ["colour_to_sample_lookup", "sample_to_colour_lookup", "metadata"]:
shutil.copy("".join([partitioned_data, "_0", x]), "".join([out_db, x]))
batch = 0
db = BerkeleyDBStorage(
config={'filename': "".join([partitioned_data, "_", str(batch)])})
for i in range(N):
if i % 10000 == 0 and not i == 0:
logger.info("%i of %i %f%% " % (i, N, 100*i/N))
db.storage.close()
batch += 1
db = BerkeleyDBStorage(
config={'filename': "".join([partitioned_data, "_", str(batch)])})
db_out[i] = db[i]
return {'graph': out_db}
|
#! /usr/bin/env python
from __future__ import print_function
import shutil
import logging
logger = logging.getLogger(__name__)
from atlasseq.storage.base import BerkeleyDBStorage
def rowjoin(partitioned_data, out_db, N=25000000):
N = int(N)
db_out = BerkeleyDBStorage(config={'filename': out_db})
for x in ["colour_to_sample_lookup", "sample_to_colour_lookup", "metadata"]:
shutil.copy("".join([partitioned_data, "_0", x]), "".join([out_db, x]))
batch = 0
db = BerkeleyDBStorage(
config={'filename': "".join([partitioned_data, "_", str(batch)])})
for i in range(N):
if i % 10000 == 0 and not i == 0:
logger.info("%i of %i %f%% " % (i, N, 100*i/N))
db.storage.close()
batch += 1
db = BerkeleyDBStorage(
config={'filename': "".join([partitioned_data, "_", str(batch)])})
db_out[i] = db[i]
return {'graph': out_db}
|
Add row join command for merging berkeley DBs
|
Add row join command for merging berkeley DBs
|
Python
|
mit
|
Phelimb/cbg,Phelimb/cbg,Phelimb/cbg,Phelimb/cbg
|
#! /usr/bin/env python
from __future__ import print_function
import shutil
import logging
logger = logging.getLogger(__name__)
from atlasseq.storage.base import BerkeleyDBStorage
def rowjoin(partitioned_data, out_db, N=25000000):
db_out = BerkeleyDBStorage(config={'filename': out_db})
for x in ["colour_to_sample_lookup", "sample_to_colour_lookup", "metadata"]:
shutil.copy("".join([partitioned_data, "_0", x]), "".join([out_db, x]))
batch = 0
db = BerkeleyDBStorage(
config={'filename': "".join([partitioned_data, "_", str(batch)])})
for i in range(N):
if i % 10000 == 0 and not i == 0:
logger.info("%i of %i %f%% " % (i, N, 100*i/N))
db.storage.close()
batch += 1
db = BerkeleyDBStorage(
config={'filename': "".join([partitioned_data, "_", str(batch)])})
db_out[i] = db[i]
return {'graph': out_db}
Add row join command for merging berkeley DBs
|
#! /usr/bin/env python
from __future__ import print_function
import shutil
import logging
logger = logging.getLogger(__name__)
from atlasseq.storage.base import BerkeleyDBStorage
def rowjoin(partitioned_data, out_db, N=25000000):
N = int(N)
db_out = BerkeleyDBStorage(config={'filename': out_db})
for x in ["colour_to_sample_lookup", "sample_to_colour_lookup", "metadata"]:
shutil.copy("".join([partitioned_data, "_0", x]), "".join([out_db, x]))
batch = 0
db = BerkeleyDBStorage(
config={'filename': "".join([partitioned_data, "_", str(batch)])})
for i in range(N):
if i % 10000 == 0 and not i == 0:
logger.info("%i of %i %f%% " % (i, N, 100*i/N))
db.storage.close()
batch += 1
db = BerkeleyDBStorage(
config={'filename': "".join([partitioned_data, "_", str(batch)])})
db_out[i] = db[i]
return {'graph': out_db}
|
<commit_before>#! /usr/bin/env python
from __future__ import print_function
import shutil
import logging
logger = logging.getLogger(__name__)
from atlasseq.storage.base import BerkeleyDBStorage
def rowjoin(partitioned_data, out_db, N=25000000):
db_out = BerkeleyDBStorage(config={'filename': out_db})
for x in ["colour_to_sample_lookup", "sample_to_colour_lookup", "metadata"]:
shutil.copy("".join([partitioned_data, "_0", x]), "".join([out_db, x]))
batch = 0
db = BerkeleyDBStorage(
config={'filename': "".join([partitioned_data, "_", str(batch)])})
for i in range(N):
if i % 10000 == 0 and not i == 0:
logger.info("%i of %i %f%% " % (i, N, 100*i/N))
db.storage.close()
batch += 1
db = BerkeleyDBStorage(
config={'filename': "".join([partitioned_data, "_", str(batch)])})
db_out[i] = db[i]
return {'graph': out_db}
<commit_msg>Add row join command for merging berkeley DBs<commit_after>
|
#! /usr/bin/env python
from __future__ import print_function
import shutil
import logging
logger = logging.getLogger(__name__)
from atlasseq.storage.base import BerkeleyDBStorage
def rowjoin(partitioned_data, out_db, N=25000000):
N = int(N)
db_out = BerkeleyDBStorage(config={'filename': out_db})
for x in ["colour_to_sample_lookup", "sample_to_colour_lookup", "metadata"]:
shutil.copy("".join([partitioned_data, "_0", x]), "".join([out_db, x]))
batch = 0
db = BerkeleyDBStorage(
config={'filename': "".join([partitioned_data, "_", str(batch)])})
for i in range(N):
if i % 10000 == 0 and not i == 0:
logger.info("%i of %i %f%% " % (i, N, 100*i/N))
db.storage.close()
batch += 1
db = BerkeleyDBStorage(
config={'filename': "".join([partitioned_data, "_", str(batch)])})
db_out[i] = db[i]
return {'graph': out_db}
|
#! /usr/bin/env python
from __future__ import print_function
import shutil
import logging
logger = logging.getLogger(__name__)
from atlasseq.storage.base import BerkeleyDBStorage
def rowjoin(partitioned_data, out_db, N=25000000):
db_out = BerkeleyDBStorage(config={'filename': out_db})
for x in ["colour_to_sample_lookup", "sample_to_colour_lookup", "metadata"]:
shutil.copy("".join([partitioned_data, "_0", x]), "".join([out_db, x]))
batch = 0
db = BerkeleyDBStorage(
config={'filename': "".join([partitioned_data, "_", str(batch)])})
for i in range(N):
if i % 10000 == 0 and not i == 0:
logger.info("%i of %i %f%% " % (i, N, 100*i/N))
db.storage.close()
batch += 1
db = BerkeleyDBStorage(
config={'filename': "".join([partitioned_data, "_", str(batch)])})
db_out[i] = db[i]
return {'graph': out_db}
Add row join command for merging berkeley DBs#! /usr/bin/env python
from __future__ import print_function
import shutil
import logging
logger = logging.getLogger(__name__)
from atlasseq.storage.base import BerkeleyDBStorage
def rowjoin(partitioned_data, out_db, N=25000000):
N = int(N)
db_out = BerkeleyDBStorage(config={'filename': out_db})
for x in ["colour_to_sample_lookup", "sample_to_colour_lookup", "metadata"]:
shutil.copy("".join([partitioned_data, "_0", x]), "".join([out_db, x]))
batch = 0
db = BerkeleyDBStorage(
config={'filename': "".join([partitioned_data, "_", str(batch)])})
for i in range(N):
if i % 10000 == 0 and not i == 0:
logger.info("%i of %i %f%% " % (i, N, 100*i/N))
db.storage.close()
batch += 1
db = BerkeleyDBStorage(
config={'filename': "".join([partitioned_data, "_", str(batch)])})
db_out[i] = db[i]
return {'graph': out_db}
|
<commit_before>#! /usr/bin/env python
from __future__ import print_function
import shutil
import logging
logger = logging.getLogger(__name__)
from atlasseq.storage.base import BerkeleyDBStorage
def rowjoin(partitioned_data, out_db, N=25000000):
db_out = BerkeleyDBStorage(config={'filename': out_db})
for x in ["colour_to_sample_lookup", "sample_to_colour_lookup", "metadata"]:
shutil.copy("".join([partitioned_data, "_0", x]), "".join([out_db, x]))
batch = 0
db = BerkeleyDBStorage(
config={'filename': "".join([partitioned_data, "_", str(batch)])})
for i in range(N):
if i % 10000 == 0 and not i == 0:
logger.info("%i of %i %f%% " % (i, N, 100*i/N))
db.storage.close()
batch += 1
db = BerkeleyDBStorage(
config={'filename': "".join([partitioned_data, "_", str(batch)])})
db_out[i] = db[i]
return {'graph': out_db}
<commit_msg>Add row join command for merging berkeley DBs<commit_after>#! /usr/bin/env python
from __future__ import print_function
import shutil
import logging
logger = logging.getLogger(__name__)
from atlasseq.storage.base import BerkeleyDBStorage
def rowjoin(partitioned_data, out_db, N=25000000):
N = int(N)
db_out = BerkeleyDBStorage(config={'filename': out_db})
for x in ["colour_to_sample_lookup", "sample_to_colour_lookup", "metadata"]:
shutil.copy("".join([partitioned_data, "_0", x]), "".join([out_db, x]))
batch = 0
db = BerkeleyDBStorage(
config={'filename': "".join([partitioned_data, "_", str(batch)])})
for i in range(N):
if i % 10000 == 0 and not i == 0:
logger.info("%i of %i %f%% " % (i, N, 100*i/N))
db.storage.close()
batch += 1
db = BerkeleyDBStorage(
config={'filename': "".join([partitioned_data, "_", str(batch)])})
db_out[i] = db[i]
return {'graph': out_db}
|
c37e0b66b6f0cc57d7df94f62dd47e00dc91c544
|
django_archive/archivers/__init__.py
|
django_archive/archivers/__init__.py
|
from .tarball import TarballArchiver
from .zipfile import ZipArchiver
TARBALL = TarballArchiver.UNCOMPRESSED
TARBALL_GZ = TarballArchiver.GZ
TARBALL_BZ2 = TarballArchiver.BZ2
TARBALL_XZ = TarballArchiver.XZ
ZIP = 'zip'
FORMATS = (
(TARBALL, "Tarball (.tar)"),
(TARBALL_GZ, "gzip-compressed Tarball (.tar.gz)"),
(TARBALL_BZ2, "bzip2-compressed Tarball (.tar.bz2)"),
(TARBALL_XZ, "xz-compressed Tarball (.tar.xz)"),
(ZIP, "ZIP archive (.zip)"),
)
def get_archiver(fmt):
"""
Return the class corresponding with the provided archival format
"""
if fmt in (TARBALL, TARBALL_GZ, TARBALL_BZ2, TARBALL_XZ):
return TarballArchiver
if fmt == ZIP:
return ZipArchiver
raise KeyError("Invalid format '{}' specified".format(fmt))
|
from .tarball import TarballArchiver
from .zipfile import ZipArchiver
TARBALL = TarballArchiver.UNCOMPRESSED
TARBALL_GZ = TarballArchiver.GZ
TARBALL_BZ2 = TarballArchiver.BZ2
TARBALL_XZ = TarballArchiver.XZ
ZIP = 'zip'
FORMATS = (
TARBALL,
TARBALL_GZ,
TARBALL_BZ2,
TARBALL_XZ,
ZIP,
)
FORMATS_DESC = {
TARBALL: "Tarball (.tar)",
TARBALL_GZ: "gzip-compressed Tarball (.tar.gz)",
TARBALL_BZ2: "bzip2-compressed Tarball (.tar.bz2)",
TARBALL_XZ: "xz-compressed Tarball (.tar.xz)",
ZIP: "ZIP archive (.zip)",
}
def get_archiver(fmt):
"""
Return the class corresponding with the provided archival format
"""
if fmt in (TARBALL, TARBALL_GZ, TARBALL_BZ2, TARBALL_XZ):
return TarballArchiver
if fmt == ZIP:
return ZipArchiver
raise KeyError("Invalid format '{}' specified".format(fmt))
|
Make FORMATS a tuple and add FORMATS_DESC for textual format descriptions.
|
Make FORMATS a tuple and add FORMATS_DESC for textual format descriptions.
|
Python
|
mit
|
nathan-osman/django-archive,nathan-osman/django-archive
|
from .tarball import TarballArchiver
from .zipfile import ZipArchiver
TARBALL = TarballArchiver.UNCOMPRESSED
TARBALL_GZ = TarballArchiver.GZ
TARBALL_BZ2 = TarballArchiver.BZ2
TARBALL_XZ = TarballArchiver.XZ
ZIP = 'zip'
FORMATS = (
(TARBALL, "Tarball (.tar)"),
(TARBALL_GZ, "gzip-compressed Tarball (.tar.gz)"),
(TARBALL_BZ2, "bzip2-compressed Tarball (.tar.bz2)"),
(TARBALL_XZ, "xz-compressed Tarball (.tar.xz)"),
(ZIP, "ZIP archive (.zip)"),
)
def get_archiver(fmt):
"""
Return the class corresponding with the provided archival format
"""
if fmt in (TARBALL, TARBALL_GZ, TARBALL_BZ2, TARBALL_XZ):
return TarballArchiver
if fmt == ZIP:
return ZipArchiver
raise KeyError("Invalid format '{}' specified".format(fmt))
Make FORMATS a tuple and add FORMATS_DESC for textual format descriptions.
|
from .tarball import TarballArchiver
from .zipfile import ZipArchiver
TARBALL = TarballArchiver.UNCOMPRESSED
TARBALL_GZ = TarballArchiver.GZ
TARBALL_BZ2 = TarballArchiver.BZ2
TARBALL_XZ = TarballArchiver.XZ
ZIP = 'zip'
FORMATS = (
TARBALL,
TARBALL_GZ,
TARBALL_BZ2,
TARBALL_XZ,
ZIP,
)
FORMATS_DESC = {
TARBALL: "Tarball (.tar)",
TARBALL_GZ: "gzip-compressed Tarball (.tar.gz)",
TARBALL_BZ2: "bzip2-compressed Tarball (.tar.bz2)",
TARBALL_XZ: "xz-compressed Tarball (.tar.xz)",
ZIP: "ZIP archive (.zip)",
}
def get_archiver(fmt):
"""
Return the class corresponding with the provided archival format
"""
if fmt in (TARBALL, TARBALL_GZ, TARBALL_BZ2, TARBALL_XZ):
return TarballArchiver
if fmt == ZIP:
return ZipArchiver
raise KeyError("Invalid format '{}' specified".format(fmt))
|
<commit_before>from .tarball import TarballArchiver
from .zipfile import ZipArchiver
TARBALL = TarballArchiver.UNCOMPRESSED
TARBALL_GZ = TarballArchiver.GZ
TARBALL_BZ2 = TarballArchiver.BZ2
TARBALL_XZ = TarballArchiver.XZ
ZIP = 'zip'
FORMATS = (
(TARBALL, "Tarball (.tar)"),
(TARBALL_GZ, "gzip-compressed Tarball (.tar.gz)"),
(TARBALL_BZ2, "bzip2-compressed Tarball (.tar.bz2)"),
(TARBALL_XZ, "xz-compressed Tarball (.tar.xz)"),
(ZIP, "ZIP archive (.zip)"),
)
def get_archiver(fmt):
"""
Return the class corresponding with the provided archival format
"""
if fmt in (TARBALL, TARBALL_GZ, TARBALL_BZ2, TARBALL_XZ):
return TarballArchiver
if fmt == ZIP:
return ZipArchiver
raise KeyError("Invalid format '{}' specified".format(fmt))
<commit_msg>Make FORMATS a tuple and add FORMATS_DESC for textual format descriptions.<commit_after>
|
from .tarball import TarballArchiver
from .zipfile import ZipArchiver
TARBALL = TarballArchiver.UNCOMPRESSED
TARBALL_GZ = TarballArchiver.GZ
TARBALL_BZ2 = TarballArchiver.BZ2
TARBALL_XZ = TarballArchiver.XZ
ZIP = 'zip'
FORMATS = (
TARBALL,
TARBALL_GZ,
TARBALL_BZ2,
TARBALL_XZ,
ZIP,
)
FORMATS_DESC = {
TARBALL: "Tarball (.tar)",
TARBALL_GZ: "gzip-compressed Tarball (.tar.gz)",
TARBALL_BZ2: "bzip2-compressed Tarball (.tar.bz2)",
TARBALL_XZ: "xz-compressed Tarball (.tar.xz)",
ZIP: "ZIP archive (.zip)",
}
def get_archiver(fmt):
"""
Return the class corresponding with the provided archival format
"""
if fmt in (TARBALL, TARBALL_GZ, TARBALL_BZ2, TARBALL_XZ):
return TarballArchiver
if fmt == ZIP:
return ZipArchiver
raise KeyError("Invalid format '{}' specified".format(fmt))
|
from .tarball import TarballArchiver
from .zipfile import ZipArchiver
TARBALL = TarballArchiver.UNCOMPRESSED
TARBALL_GZ = TarballArchiver.GZ
TARBALL_BZ2 = TarballArchiver.BZ2
TARBALL_XZ = TarballArchiver.XZ
ZIP = 'zip'
FORMATS = (
(TARBALL, "Tarball (.tar)"),
(TARBALL_GZ, "gzip-compressed Tarball (.tar.gz)"),
(TARBALL_BZ2, "bzip2-compressed Tarball (.tar.bz2)"),
(TARBALL_XZ, "xz-compressed Tarball (.tar.xz)"),
(ZIP, "ZIP archive (.zip)"),
)
def get_archiver(fmt):
"""
Return the class corresponding with the provided archival format
"""
if fmt in (TARBALL, TARBALL_GZ, TARBALL_BZ2, TARBALL_XZ):
return TarballArchiver
if fmt == ZIP:
return ZipArchiver
raise KeyError("Invalid format '{}' specified".format(fmt))
Make FORMATS a tuple and add FORMATS_DESC for textual format descriptions.from .tarball import TarballArchiver
from .zipfile import ZipArchiver
TARBALL = TarballArchiver.UNCOMPRESSED
TARBALL_GZ = TarballArchiver.GZ
TARBALL_BZ2 = TarballArchiver.BZ2
TARBALL_XZ = TarballArchiver.XZ
ZIP = 'zip'
FORMATS = (
TARBALL,
TARBALL_GZ,
TARBALL_BZ2,
TARBALL_XZ,
ZIP,
)
FORMATS_DESC = {
TARBALL: "Tarball (.tar)",
TARBALL_GZ: "gzip-compressed Tarball (.tar.gz)",
TARBALL_BZ2: "bzip2-compressed Tarball (.tar.bz2)",
TARBALL_XZ: "xz-compressed Tarball (.tar.xz)",
ZIP: "ZIP archive (.zip)",
}
def get_archiver(fmt):
"""
Return the class corresponding with the provided archival format
"""
if fmt in (TARBALL, TARBALL_GZ, TARBALL_BZ2, TARBALL_XZ):
return TarballArchiver
if fmt == ZIP:
return ZipArchiver
raise KeyError("Invalid format '{}' specified".format(fmt))
|
<commit_before>from .tarball import TarballArchiver
from .zipfile import ZipArchiver
TARBALL = TarballArchiver.UNCOMPRESSED
TARBALL_GZ = TarballArchiver.GZ
TARBALL_BZ2 = TarballArchiver.BZ2
TARBALL_XZ = TarballArchiver.XZ
ZIP = 'zip'
FORMATS = (
(TARBALL, "Tarball (.tar)"),
(TARBALL_GZ, "gzip-compressed Tarball (.tar.gz)"),
(TARBALL_BZ2, "bzip2-compressed Tarball (.tar.bz2)"),
(TARBALL_XZ, "xz-compressed Tarball (.tar.xz)"),
(ZIP, "ZIP archive (.zip)"),
)
def get_archiver(fmt):
"""
Return the class corresponding with the provided archival format
"""
if fmt in (TARBALL, TARBALL_GZ, TARBALL_BZ2, TARBALL_XZ):
return TarballArchiver
if fmt == ZIP:
return ZipArchiver
raise KeyError("Invalid format '{}' specified".format(fmt))
<commit_msg>Make FORMATS a tuple and add FORMATS_DESC for textual format descriptions.<commit_after>from .tarball import TarballArchiver
from .zipfile import ZipArchiver
TARBALL = TarballArchiver.UNCOMPRESSED
TARBALL_GZ = TarballArchiver.GZ
TARBALL_BZ2 = TarballArchiver.BZ2
TARBALL_XZ = TarballArchiver.XZ
ZIP = 'zip'
FORMATS = (
TARBALL,
TARBALL_GZ,
TARBALL_BZ2,
TARBALL_XZ,
ZIP,
)
FORMATS_DESC = {
TARBALL: "Tarball (.tar)",
TARBALL_GZ: "gzip-compressed Tarball (.tar.gz)",
TARBALL_BZ2: "bzip2-compressed Tarball (.tar.bz2)",
TARBALL_XZ: "xz-compressed Tarball (.tar.xz)",
ZIP: "ZIP archive (.zip)",
}
def get_archiver(fmt):
"""
Return the class corresponding with the provided archival format
"""
if fmt in (TARBALL, TARBALL_GZ, TARBALL_BZ2, TARBALL_XZ):
return TarballArchiver
if fmt == ZIP:
return ZipArchiver
raise KeyError("Invalid format '{}' specified".format(fmt))
|
a05e9eff86ae43f83600842c5b9a840d22db6682
|
pyinfra/api/__init__.py
|
pyinfra/api/__init__.py
|
from .command import ( # noqa: F401 # pragma: no cover
FileDownloadCommand,
FileUploadCommand,
FunctionCommand,
MaskString,
QuoteString,
StringCommand,
)
from .config import Config # noqa: F401 # pragma: no cover
from .deploy import deploy # noqa: F401 # pragma: no cover
from .exceptions import ( # noqa: F401 # pragma: no cover
DeployError,
InventoryError,
OperationError,
OperationTypeError,
)
from .facts import FactBase, ShortFactBase # noqa: F401 # pragma: no cover
from .inventory import Inventory # noqa: F401 # pragma: no cover
from .operation import operation # noqa: F401 # pragma: no cover
from .state import State # noqa: F401 # pragma: no cover
|
from .command import ( # noqa: F401 # pragma: no cover
FileDownloadCommand,
FileUploadCommand,
FunctionCommand,
MaskString,
QuoteString,
StringCommand,
)
from .config import Config # noqa: F401 # pragma: no cover
from .deploy import deploy # noqa: F401 # pragma: no cover
from .exceptions import ( # noqa: F401 # pragma: no cover
DeployError,
InventoryError,
OperationError,
OperationTypeError,
)
from .facts import FactBase, ShortFactBase # noqa: F401 # pragma: no cover
from .host import Host # noqa: F401 # pragma: no cover
from .inventory import Inventory # noqa: F401 # pragma: no cover
from .operation import operation # noqa: F401 # pragma: no cover
from .state import State # noqa: F401 # pragma: no cover
|
Add `Host` to `pyinfra.api` imports.
|
Add `Host` to `pyinfra.api` imports.
|
Python
|
mit
|
Fizzadar/pyinfra,Fizzadar/pyinfra
|
from .command import ( # noqa: F401 # pragma: no cover
FileDownloadCommand,
FileUploadCommand,
FunctionCommand,
MaskString,
QuoteString,
StringCommand,
)
from .config import Config # noqa: F401 # pragma: no cover
from .deploy import deploy # noqa: F401 # pragma: no cover
from .exceptions import ( # noqa: F401 # pragma: no cover
DeployError,
InventoryError,
OperationError,
OperationTypeError,
)
from .facts import FactBase, ShortFactBase # noqa: F401 # pragma: no cover
from .inventory import Inventory # noqa: F401 # pragma: no cover
from .operation import operation # noqa: F401 # pragma: no cover
from .state import State # noqa: F401 # pragma: no cover
Add `Host` to `pyinfra.api` imports.
|
from .command import ( # noqa: F401 # pragma: no cover
FileDownloadCommand,
FileUploadCommand,
FunctionCommand,
MaskString,
QuoteString,
StringCommand,
)
from .config import Config # noqa: F401 # pragma: no cover
from .deploy import deploy # noqa: F401 # pragma: no cover
from .exceptions import ( # noqa: F401 # pragma: no cover
DeployError,
InventoryError,
OperationError,
OperationTypeError,
)
from .facts import FactBase, ShortFactBase # noqa: F401 # pragma: no cover
from .host import Host # noqa: F401 # pragma: no cover
from .inventory import Inventory # noqa: F401 # pragma: no cover
from .operation import operation # noqa: F401 # pragma: no cover
from .state import State # noqa: F401 # pragma: no cover
|
<commit_before>from .command import ( # noqa: F401 # pragma: no cover
FileDownloadCommand,
FileUploadCommand,
FunctionCommand,
MaskString,
QuoteString,
StringCommand,
)
from .config import Config # noqa: F401 # pragma: no cover
from .deploy import deploy # noqa: F401 # pragma: no cover
from .exceptions import ( # noqa: F401 # pragma: no cover
DeployError,
InventoryError,
OperationError,
OperationTypeError,
)
from .facts import FactBase, ShortFactBase # noqa: F401 # pragma: no cover
from .inventory import Inventory # noqa: F401 # pragma: no cover
from .operation import operation # noqa: F401 # pragma: no cover
from .state import State # noqa: F401 # pragma: no cover
<commit_msg>Add `Host` to `pyinfra.api` imports.<commit_after>
|
from .command import ( # noqa: F401 # pragma: no cover
FileDownloadCommand,
FileUploadCommand,
FunctionCommand,
MaskString,
QuoteString,
StringCommand,
)
from .config import Config # noqa: F401 # pragma: no cover
from .deploy import deploy # noqa: F401 # pragma: no cover
from .exceptions import ( # noqa: F401 # pragma: no cover
DeployError,
InventoryError,
OperationError,
OperationTypeError,
)
from .facts import FactBase, ShortFactBase # noqa: F401 # pragma: no cover
from .host import Host # noqa: F401 # pragma: no cover
from .inventory import Inventory # noqa: F401 # pragma: no cover
from .operation import operation # noqa: F401 # pragma: no cover
from .state import State # noqa: F401 # pragma: no cover
|
from .command import ( # noqa: F401 # pragma: no cover
FileDownloadCommand,
FileUploadCommand,
FunctionCommand,
MaskString,
QuoteString,
StringCommand,
)
from .config import Config # noqa: F401 # pragma: no cover
from .deploy import deploy # noqa: F401 # pragma: no cover
from .exceptions import ( # noqa: F401 # pragma: no cover
DeployError,
InventoryError,
OperationError,
OperationTypeError,
)
from .facts import FactBase, ShortFactBase # noqa: F401 # pragma: no cover
from .inventory import Inventory # noqa: F401 # pragma: no cover
from .operation import operation # noqa: F401 # pragma: no cover
from .state import State # noqa: F401 # pragma: no cover
Add `Host` to `pyinfra.api` imports.from .command import ( # noqa: F401 # pragma: no cover
FileDownloadCommand,
FileUploadCommand,
FunctionCommand,
MaskString,
QuoteString,
StringCommand,
)
from .config import Config # noqa: F401 # pragma: no cover
from .deploy import deploy # noqa: F401 # pragma: no cover
from .exceptions import ( # noqa: F401 # pragma: no cover
DeployError,
InventoryError,
OperationError,
OperationTypeError,
)
from .facts import FactBase, ShortFactBase # noqa: F401 # pragma: no cover
from .host import Host # noqa: F401 # pragma: no cover
from .inventory import Inventory # noqa: F401 # pragma: no cover
from .operation import operation # noqa: F401 # pragma: no cover
from .state import State # noqa: F401 # pragma: no cover
|
<commit_before>from .command import ( # noqa: F401 # pragma: no cover
FileDownloadCommand,
FileUploadCommand,
FunctionCommand,
MaskString,
QuoteString,
StringCommand,
)
from .config import Config # noqa: F401 # pragma: no cover
from .deploy import deploy # noqa: F401 # pragma: no cover
from .exceptions import ( # noqa: F401 # pragma: no cover
DeployError,
InventoryError,
OperationError,
OperationTypeError,
)
from .facts import FactBase, ShortFactBase # noqa: F401 # pragma: no cover
from .inventory import Inventory # noqa: F401 # pragma: no cover
from .operation import operation # noqa: F401 # pragma: no cover
from .state import State # noqa: F401 # pragma: no cover
<commit_msg>Add `Host` to `pyinfra.api` imports.<commit_after>from .command import ( # noqa: F401 # pragma: no cover
FileDownloadCommand,
FileUploadCommand,
FunctionCommand,
MaskString,
QuoteString,
StringCommand,
)
from .config import Config # noqa: F401 # pragma: no cover
from .deploy import deploy # noqa: F401 # pragma: no cover
from .exceptions import ( # noqa: F401 # pragma: no cover
DeployError,
InventoryError,
OperationError,
OperationTypeError,
)
from .facts import FactBase, ShortFactBase # noqa: F401 # pragma: no cover
from .host import Host # noqa: F401 # pragma: no cover
from .inventory import Inventory # noqa: F401 # pragma: no cover
from .operation import operation # noqa: F401 # pragma: no cover
from .state import State # noqa: F401 # pragma: no cover
|
ce82161dfcc1aa95febe601e331b8ba7044565ff
|
server/rest/twofishes.py
|
server/rest/twofishes.py
|
import requests
from girder.api import access
from girder.api.describe import Description
from girder.api.rest import Resource
class TwoFishes(Resource):
def __init__(self):
self.resourceName = 'minerva_geocoder'
self.route('GET', (), self.geocode)
@access.public
def geocode(self, params):
r = requests.get(params['twofishes'],
params={'query': params['location'],
'responseIncludes': 'WKT_GEOMETRY'})
return r.json()
geocode.description = (
Description('Get geojson for a given location name')
.param('twofishes', 'Twofishes url')
.param('location', 'Location name to get a geojson')
)
|
import requests
from girder.api import access
from girder.api.describe import Description
from girder.api.rest import Resource
class TwoFishes(Resource):
def __init__(self):
self.resourceName = 'minerva_geocoder'
self.route('GET', (), self.geocode)
self.route('GET', ('autocomplete',), self.autocomplete)
@access.public
def geocode(self, params):
r = requests.get(params['twofishes'],
params={'query': params['location'],
'responseIncludes': 'WKT_GEOMETRY'})
return r.json()
geocode.description = (
Description('Get geojson for a given location name')
.param('twofishes', 'Twofishes url')
.param('location', 'Location name to get a geojson')
)
@access.public
def autocomplete(self, params):
r = requests.get(params['twofishes'],
params={'autocomplete': True,
'query': params['location'],
'maxInterpretations': 10,
'autocompleteBias': None})
return [i['feature']['matchedName'] for i in r.json()['interpretations']]
autocomplete.description = (
Description('Autocomplete result for a given location name')
.param('twofishes', 'Twofishes url')
.param('location', 'Location name to autocomplete')
)
|
Add an endpoint which returns autocompleted results
|
Add an endpoint which returns autocompleted results
|
Python
|
apache-2.0
|
Kitware/minerva,Kitware/minerva,Kitware/minerva
|
import requests
from girder.api import access
from girder.api.describe import Description
from girder.api.rest import Resource
class TwoFishes(Resource):
def __init__(self):
self.resourceName = 'minerva_geocoder'
self.route('GET', (), self.geocode)
@access.public
def geocode(self, params):
r = requests.get(params['twofishes'],
params={'query': params['location'],
'responseIncludes': 'WKT_GEOMETRY'})
return r.json()
geocode.description = (
Description('Get geojson for a given location name')
.param('twofishes', 'Twofishes url')
.param('location', 'Location name to get a geojson')
)
Add an endpoint which returns autocompleted results
|
import requests
from girder.api import access
from girder.api.describe import Description
from girder.api.rest import Resource
class TwoFishes(Resource):
def __init__(self):
self.resourceName = 'minerva_geocoder'
self.route('GET', (), self.geocode)
self.route('GET', ('autocomplete',), self.autocomplete)
@access.public
def geocode(self, params):
r = requests.get(params['twofishes'],
params={'query': params['location'],
'responseIncludes': 'WKT_GEOMETRY'})
return r.json()
geocode.description = (
Description('Get geojson for a given location name')
.param('twofishes', 'Twofishes url')
.param('location', 'Location name to get a geojson')
)
@access.public
def autocomplete(self, params):
r = requests.get(params['twofishes'],
params={'autocomplete': True,
'query': params['location'],
'maxInterpretations': 10,
'autocompleteBias': None})
return [i['feature']['matchedName'] for i in r.json()['interpretations']]
autocomplete.description = (
Description('Autocomplete result for a given location name')
.param('twofishes', 'Twofishes url')
.param('location', 'Location name to autocomplete')
)
|
<commit_before>import requests
from girder.api import access
from girder.api.describe import Description
from girder.api.rest import Resource
class TwoFishes(Resource):
def __init__(self):
self.resourceName = 'minerva_geocoder'
self.route('GET', (), self.geocode)
@access.public
def geocode(self, params):
r = requests.get(params['twofishes'],
params={'query': params['location'],
'responseIncludes': 'WKT_GEOMETRY'})
return r.json()
geocode.description = (
Description('Get geojson for a given location name')
.param('twofishes', 'Twofishes url')
.param('location', 'Location name to get a geojson')
)
<commit_msg>Add an endpoint which returns autocompleted results<commit_after>
|
import requests
from girder.api import access
from girder.api.describe import Description
from girder.api.rest import Resource
class TwoFishes(Resource):
def __init__(self):
self.resourceName = 'minerva_geocoder'
self.route('GET', (), self.geocode)
self.route('GET', ('autocomplete',), self.autocomplete)
@access.public
def geocode(self, params):
r = requests.get(params['twofishes'],
params={'query': params['location'],
'responseIncludes': 'WKT_GEOMETRY'})
return r.json()
geocode.description = (
Description('Get geojson for a given location name')
.param('twofishes', 'Twofishes url')
.param('location', 'Location name to get a geojson')
)
@access.public
def autocomplete(self, params):
r = requests.get(params['twofishes'],
params={'autocomplete': True,
'query': params['location'],
'maxInterpretations': 10,
'autocompleteBias': None})
return [i['feature']['matchedName'] for i in r.json()['interpretations']]
autocomplete.description = (
Description('Autocomplete result for a given location name')
.param('twofishes', 'Twofishes url')
.param('location', 'Location name to autocomplete')
)
|
import requests
from girder.api import access
from girder.api.describe import Description
from girder.api.rest import Resource
class TwoFishes(Resource):
def __init__(self):
self.resourceName = 'minerva_geocoder'
self.route('GET', (), self.geocode)
@access.public
def geocode(self, params):
r = requests.get(params['twofishes'],
params={'query': params['location'],
'responseIncludes': 'WKT_GEOMETRY'})
return r.json()
geocode.description = (
Description('Get geojson for a given location name')
.param('twofishes', 'Twofishes url')
.param('location', 'Location name to get a geojson')
)
Add an endpoint which returns autocompleted resultsimport requests
from girder.api import access
from girder.api.describe import Description
from girder.api.rest import Resource
class TwoFishes(Resource):
def __init__(self):
self.resourceName = 'minerva_geocoder'
self.route('GET', (), self.geocode)
self.route('GET', ('autocomplete',), self.autocomplete)
@access.public
def geocode(self, params):
r = requests.get(params['twofishes'],
params={'query': params['location'],
'responseIncludes': 'WKT_GEOMETRY'})
return r.json()
geocode.description = (
Description('Get geojson for a given location name')
.param('twofishes', 'Twofishes url')
.param('location', 'Location name to get a geojson')
)
@access.public
def autocomplete(self, params):
r = requests.get(params['twofishes'],
params={'autocomplete': True,
'query': params['location'],
'maxInterpretations': 10,
'autocompleteBias': None})
return [i['feature']['matchedName'] for i in r.json()['interpretations']]
autocomplete.description = (
Description('Autocomplete result for a given location name')
.param('twofishes', 'Twofishes url')
.param('location', 'Location name to autocomplete')
)
|
<commit_before>import requests
from girder.api import access
from girder.api.describe import Description
from girder.api.rest import Resource
class TwoFishes(Resource):
def __init__(self):
self.resourceName = 'minerva_geocoder'
self.route('GET', (), self.geocode)
@access.public
def geocode(self, params):
r = requests.get(params['twofishes'],
params={'query': params['location'],
'responseIncludes': 'WKT_GEOMETRY'})
return r.json()
geocode.description = (
Description('Get geojson for a given location name')
.param('twofishes', 'Twofishes url')
.param('location', 'Location name to get a geojson')
)
<commit_msg>Add an endpoint which returns autocompleted results<commit_after>import requests
from girder.api import access
from girder.api.describe import Description
from girder.api.rest import Resource
class TwoFishes(Resource):
def __init__(self):
self.resourceName = 'minerva_geocoder'
self.route('GET', (), self.geocode)
self.route('GET', ('autocomplete',), self.autocomplete)
@access.public
def geocode(self, params):
r = requests.get(params['twofishes'],
params={'query': params['location'],
'responseIncludes': 'WKT_GEOMETRY'})
return r.json()
geocode.description = (
Description('Get geojson for a given location name')
.param('twofishes', 'Twofishes url')
.param('location', 'Location name to get a geojson')
)
@access.public
def autocomplete(self, params):
r = requests.get(params['twofishes'],
params={'autocomplete': True,
'query': params['location'],
'maxInterpretations': 10,
'autocompleteBias': None})
return [i['feature']['matchedName'] for i in r.json()['interpretations']]
autocomplete.description = (
Description('Autocomplete result for a given location name')
.param('twofishes', 'Twofishes url')
.param('location', 'Location name to autocomplete')
)
|
96d8431cd50a50a4ba25d63fbe1718a7c0ccba18
|
wsgi/dapi/templatetags/deplink.py
|
wsgi/dapi/templatetags/deplink.py
|
from django import template
from django.template.defaultfilters import stringfilter
from django.utils.safestring import mark_safe
from dapi import models
register = template.Library()
@register.filter(needs_autoescape=True)
@stringfilter
def deplink(value, autoescape=None):
'''Add links for required daps'''
usedmark = ''
for mark in '< > ='.split():
split = value.split(mark)
if len(split) > 1:
usedmark = mark
break
if usedmark:
dap = split[0]
else:
dap = value
dep = dep.strip()
try:
m = models.MetaDap.objects.get(package_name=dap)
link = '<a href="' + m.get_human_link() + '">' + dap + '</a>'
except models.MetaDap.DoesNotExist:
link = '<abbr title="This dap is not on Dapi">' + dap + '</abbr>'
if usedmark:
link = link + usedmark + usedmark.join(split[1:])
return mark_safe(link)
|
from django import template
from django.template.defaultfilters import stringfilter
from django.utils.safestring import mark_safe
from dapi import models
register = template.Library()
@register.filter(needs_autoescape=True)
@stringfilter
def deplink(value, autoescape=None):
'''Add links for required daps'''
usedmark = ''
for mark in '< > ='.split():
split = value.split(mark)
if len(split) > 1:
usedmark = mark
break
dep = ''
if usedmark:
dap = split[0]
else:
dap = value
dep = dep.strip()
try:
m = models.MetaDap.objects.get(package_name=dap)
link = '<a href="' + m.get_human_link() + '">' + dap + '</a>'
except models.MetaDap.DoesNotExist:
link = '<abbr title="This dap is not on Dapi">' + dap + '</abbr>'
if usedmark:
link = link + usedmark + usedmark.join(split[1:])
return mark_safe(link)
|
Fix "UnboundLocalError: local variable 'dep' referenced before assignment"
|
Fix "UnboundLocalError: local variable 'dep' referenced before assignment"
|
Python
|
agpl-3.0
|
devassistant/dapi,devassistant/dapi,devassistant/dapi
|
from django import template
from django.template.defaultfilters import stringfilter
from django.utils.safestring import mark_safe
from dapi import models
register = template.Library()
@register.filter(needs_autoescape=True)
@stringfilter
def deplink(value, autoescape=None):
'''Add links for required daps'''
usedmark = ''
for mark in '< > ='.split():
split = value.split(mark)
if len(split) > 1:
usedmark = mark
break
if usedmark:
dap = split[0]
else:
dap = value
dep = dep.strip()
try:
m = models.MetaDap.objects.get(package_name=dap)
link = '<a href="' + m.get_human_link() + '">' + dap + '</a>'
except models.MetaDap.DoesNotExist:
link = '<abbr title="This dap is not on Dapi">' + dap + '</abbr>'
if usedmark:
link = link + usedmark + usedmark.join(split[1:])
return mark_safe(link)
Fix "UnboundLocalError: local variable 'dep' referenced before assignment"
|
from django import template
from django.template.defaultfilters import stringfilter
from django.utils.safestring import mark_safe
from dapi import models
register = template.Library()
@register.filter(needs_autoescape=True)
@stringfilter
def deplink(value, autoescape=None):
'''Add links for required daps'''
usedmark = ''
for mark in '< > ='.split():
split = value.split(mark)
if len(split) > 1:
usedmark = mark
break
dep = ''
if usedmark:
dap = split[0]
else:
dap = value
dep = dep.strip()
try:
m = models.MetaDap.objects.get(package_name=dap)
link = '<a href="' + m.get_human_link() + '">' + dap + '</a>'
except models.MetaDap.DoesNotExist:
link = '<abbr title="This dap is not on Dapi">' + dap + '</abbr>'
if usedmark:
link = link + usedmark + usedmark.join(split[1:])
return mark_safe(link)
|
<commit_before>from django import template
from django.template.defaultfilters import stringfilter
from django.utils.safestring import mark_safe
from dapi import models
register = template.Library()
@register.filter(needs_autoescape=True)
@stringfilter
def deplink(value, autoescape=None):
'''Add links for required daps'''
usedmark = ''
for mark in '< > ='.split():
split = value.split(mark)
if len(split) > 1:
usedmark = mark
break
if usedmark:
dap = split[0]
else:
dap = value
dep = dep.strip()
try:
m = models.MetaDap.objects.get(package_name=dap)
link = '<a href="' + m.get_human_link() + '">' + dap + '</a>'
except models.MetaDap.DoesNotExist:
link = '<abbr title="This dap is not on Dapi">' + dap + '</abbr>'
if usedmark:
link = link + usedmark + usedmark.join(split[1:])
return mark_safe(link)
<commit_msg>Fix "UnboundLocalError: local variable 'dep' referenced before assignment"<commit_after>
|
from django import template
from django.template.defaultfilters import stringfilter
from django.utils.safestring import mark_safe
from dapi import models
register = template.Library()
@register.filter(needs_autoescape=True)
@stringfilter
def deplink(value, autoescape=None):
'''Add links for required daps'''
usedmark = ''
for mark in '< > ='.split():
split = value.split(mark)
if len(split) > 1:
usedmark = mark
break
dep = ''
if usedmark:
dap = split[0]
else:
dap = value
dep = dep.strip()
try:
m = models.MetaDap.objects.get(package_name=dap)
link = '<a href="' + m.get_human_link() + '">' + dap + '</a>'
except models.MetaDap.DoesNotExist:
link = '<abbr title="This dap is not on Dapi">' + dap + '</abbr>'
if usedmark:
link = link + usedmark + usedmark.join(split[1:])
return mark_safe(link)
|
from django import template
from django.template.defaultfilters import stringfilter
from django.utils.safestring import mark_safe
from dapi import models
register = template.Library()
@register.filter(needs_autoescape=True)
@stringfilter
def deplink(value, autoescape=None):
'''Add links for required daps'''
usedmark = ''
for mark in '< > ='.split():
split = value.split(mark)
if len(split) > 1:
usedmark = mark
break
if usedmark:
dap = split[0]
else:
dap = value
dep = dep.strip()
try:
m = models.MetaDap.objects.get(package_name=dap)
link = '<a href="' + m.get_human_link() + '">' + dap + '</a>'
except models.MetaDap.DoesNotExist:
link = '<abbr title="This dap is not on Dapi">' + dap + '</abbr>'
if usedmark:
link = link + usedmark + usedmark.join(split[1:])
return mark_safe(link)
Fix "UnboundLocalError: local variable 'dep' referenced before assignment"from django import template
from django.template.defaultfilters import stringfilter
from django.utils.safestring import mark_safe
from dapi import models
register = template.Library()
@register.filter(needs_autoescape=True)
@stringfilter
def deplink(value, autoescape=None):
'''Add links for required daps'''
usedmark = ''
for mark in '< > ='.split():
split = value.split(mark)
if len(split) > 1:
usedmark = mark
break
dep = ''
if usedmark:
dap = split[0]
else:
dap = value
dep = dep.strip()
try:
m = models.MetaDap.objects.get(package_name=dap)
link = '<a href="' + m.get_human_link() + '">' + dap + '</a>'
except models.MetaDap.DoesNotExist:
link = '<abbr title="This dap is not on Dapi">' + dap + '</abbr>'
if usedmark:
link = link + usedmark + usedmark.join(split[1:])
return mark_safe(link)
|
<commit_before>from django import template
from django.template.defaultfilters import stringfilter
from django.utils.safestring import mark_safe
from dapi import models
register = template.Library()
@register.filter(needs_autoescape=True)
@stringfilter
def deplink(value, autoescape=None):
'''Add links for required daps'''
usedmark = ''
for mark in '< > ='.split():
split = value.split(mark)
if len(split) > 1:
usedmark = mark
break
if usedmark:
dap = split[0]
else:
dap = value
dep = dep.strip()
try:
m = models.MetaDap.objects.get(package_name=dap)
link = '<a href="' + m.get_human_link() + '">' + dap + '</a>'
except models.MetaDap.DoesNotExist:
link = '<abbr title="This dap is not on Dapi">' + dap + '</abbr>'
if usedmark:
link = link + usedmark + usedmark.join(split[1:])
return mark_safe(link)
<commit_msg>Fix "UnboundLocalError: local variable 'dep' referenced before assignment"<commit_after>from django import template
from django.template.defaultfilters import stringfilter
from django.utils.safestring import mark_safe
from dapi import models
register = template.Library()
@register.filter(needs_autoescape=True)
@stringfilter
def deplink(value, autoescape=None):
'''Add links for required daps'''
usedmark = ''
for mark in '< > ='.split():
split = value.split(mark)
if len(split) > 1:
usedmark = mark
break
dep = ''
if usedmark:
dap = split[0]
else:
dap = value
dep = dep.strip()
try:
m = models.MetaDap.objects.get(package_name=dap)
link = '<a href="' + m.get_human_link() + '">' + dap + '</a>'
except models.MetaDap.DoesNotExist:
link = '<abbr title="This dap is not on Dapi">' + dap + '</abbr>'
if usedmark:
link = link + usedmark + usedmark.join(split[1:])
return mark_safe(link)
|
78d36a68e0d460f3ead713a82c7d23faf7e73b9b
|
Instanssi/tickets/views.py
|
Instanssi/tickets/views.py
|
# -*- coding: utf-8 -*-
from datetime import datetime
from django.conf import settings
from django.http import HttpResponse, Http404
from django.template import RequestContext
from django.shortcuts import render_to_response, get_object_or_404
from Instanssi.tickets.models import Ticket
from Instanssi.store.models import StoreTransaction
# Logging related
import logging
logger = logging.getLogger(__name__)
# Shows information about a single ticket
def ticket(request, ticket_key):
# Find ticket
ticket = get_object_or_404(Ticket, key=ticket_key)
# Render ticket
return render_to_response('tickets/ticket.html', {
'ticket': ticket,
}, context_instance=RequestContext(request))
# Lists all tickets
def tickets(request, transaction_key):
# Get transaction
transaction = get_object_or_404(StoreTransaction, key=transaction_key)
# Get all tickets by this transaction
tickets = Ticket.objects.filter(transaction=transaction)
# Render tickets
return render_to_response('tickets/tickets.html', {
'transaction': transaction,
'tickets': tickets,
}, context_instance=RequestContext(request))
|
# -*- coding: utf-8 -*-
from datetime import datetime
from django.conf import settings
from django.http import HttpResponse, Http404
from django.template import RequestContext
from django.shortcuts import render_to_response, get_object_or_404
from Instanssi.tickets.models import Ticket
from Instanssi.store.models import StoreTransaction
# Logging related
import logging
logger = logging.getLogger(__name__)
# Shows information about a single ticket
def ticket(request, ticket_key):
# Find ticket
ticket = get_object_or_404(Ticket, key=ticket_key)
# Render ticket
return render_to_response('tickets/ticket.html', {
'ticket': ticket,
}, context_instance=RequestContext(request))
# Lists all tickets
def tickets(request, transaction_key):
# Get transaction
transaction = get_object_or_404(StoreTransaction, key=transaction_key)
if not transaction.paid:
raise Http404
# Get all tickets by this transaction
tickets = Ticket.objects.filter(transaction=transaction)
# Render tickets
return render_to_response('tickets/tickets.html', {
'transaction': transaction,
'tickets': tickets,
}, context_instance=RequestContext(request))
|
Make sure ticket is paid before it can be viewed
|
tickets: Make sure ticket is paid before it can be viewed
|
Python
|
mit
|
Instanssi/Instanssi.org,Instanssi/Instanssi.org,Instanssi/Instanssi.org,Instanssi/Instanssi.org
|
# -*- coding: utf-8 -*-
from datetime import datetime
from django.conf import settings
from django.http import HttpResponse, Http404
from django.template import RequestContext
from django.shortcuts import render_to_response, get_object_or_404
from Instanssi.tickets.models import Ticket
from Instanssi.store.models import StoreTransaction
# Logging related
import logging
logger = logging.getLogger(__name__)
# Shows information about a single ticket
def ticket(request, ticket_key):
# Find ticket
ticket = get_object_or_404(Ticket, key=ticket_key)
# Render ticket
return render_to_response('tickets/ticket.html', {
'ticket': ticket,
}, context_instance=RequestContext(request))
# Lists all tickets
def tickets(request, transaction_key):
# Get transaction
transaction = get_object_or_404(StoreTransaction, key=transaction_key)
# Get all tickets by this transaction
tickets = Ticket.objects.filter(transaction=transaction)
# Render tickets
return render_to_response('tickets/tickets.html', {
'transaction': transaction,
'tickets': tickets,
}, context_instance=RequestContext(request))tickets: Make sure ticket is paid before it can be viewed
|
# -*- coding: utf-8 -*-
from datetime import datetime
from django.conf import settings
from django.http import HttpResponse, Http404
from django.template import RequestContext
from django.shortcuts import render_to_response, get_object_or_404
from Instanssi.tickets.models import Ticket
from Instanssi.store.models import StoreTransaction
# Logging related
import logging
logger = logging.getLogger(__name__)
# Shows information about a single ticket
def ticket(request, ticket_key):
# Find ticket
ticket = get_object_or_404(Ticket, key=ticket_key)
# Render ticket
return render_to_response('tickets/ticket.html', {
'ticket': ticket,
}, context_instance=RequestContext(request))
# Lists all tickets
def tickets(request, transaction_key):
# Get transaction
transaction = get_object_or_404(StoreTransaction, key=transaction_key)
if not transaction.paid:
raise Http404
# Get all tickets by this transaction
tickets = Ticket.objects.filter(transaction=transaction)
# Render tickets
return render_to_response('tickets/tickets.html', {
'transaction': transaction,
'tickets': tickets,
}, context_instance=RequestContext(request))
|
<commit_before># -*- coding: utf-8 -*-
from datetime import datetime
from django.conf import settings
from django.http import HttpResponse, Http404
from django.template import RequestContext
from django.shortcuts import render_to_response, get_object_or_404
from Instanssi.tickets.models import Ticket
from Instanssi.store.models import StoreTransaction
# Logging related
import logging
logger = logging.getLogger(__name__)
# Shows information about a single ticket
def ticket(request, ticket_key):
# Find ticket
ticket = get_object_or_404(Ticket, key=ticket_key)
# Render ticket
return render_to_response('tickets/ticket.html', {
'ticket': ticket,
}, context_instance=RequestContext(request))
# Lists all tickets
def tickets(request, transaction_key):
# Get transaction
transaction = get_object_or_404(StoreTransaction, key=transaction_key)
# Get all tickets by this transaction
tickets = Ticket.objects.filter(transaction=transaction)
# Render tickets
return render_to_response('tickets/tickets.html', {
'transaction': transaction,
'tickets': tickets,
}, context_instance=RequestContext(request))<commit_msg>tickets: Make sure ticket is paid before it can be viewed<commit_after>
|
# -*- coding: utf-8 -*-
from datetime import datetime
from django.conf import settings
from django.http import HttpResponse, Http404
from django.template import RequestContext
from django.shortcuts import render_to_response, get_object_or_404
from Instanssi.tickets.models import Ticket
from Instanssi.store.models import StoreTransaction
# Logging related
import logging
logger = logging.getLogger(__name__)
# Shows information about a single ticket
def ticket(request, ticket_key):
# Find ticket
ticket = get_object_or_404(Ticket, key=ticket_key)
# Render ticket
return render_to_response('tickets/ticket.html', {
'ticket': ticket,
}, context_instance=RequestContext(request))
# Lists all tickets
def tickets(request, transaction_key):
# Get transaction
transaction = get_object_or_404(StoreTransaction, key=transaction_key)
if not transaction.paid:
raise Http404
# Get all tickets by this transaction
tickets = Ticket.objects.filter(transaction=transaction)
# Render tickets
return render_to_response('tickets/tickets.html', {
'transaction': transaction,
'tickets': tickets,
}, context_instance=RequestContext(request))
|
# -*- coding: utf-8 -*-
from datetime import datetime
from django.conf import settings
from django.http import HttpResponse, Http404
from django.template import RequestContext
from django.shortcuts import render_to_response, get_object_or_404
from Instanssi.tickets.models import Ticket
from Instanssi.store.models import StoreTransaction
# Logging related
import logging
logger = logging.getLogger(__name__)
# Shows information about a single ticket
def ticket(request, ticket_key):
# Find ticket
ticket = get_object_or_404(Ticket, key=ticket_key)
# Render ticket
return render_to_response('tickets/ticket.html', {
'ticket': ticket,
}, context_instance=RequestContext(request))
# Lists all tickets
def tickets(request, transaction_key):
# Get transaction
transaction = get_object_or_404(StoreTransaction, key=transaction_key)
# Get all tickets by this transaction
tickets = Ticket.objects.filter(transaction=transaction)
# Render tickets
return render_to_response('tickets/tickets.html', {
'transaction': transaction,
'tickets': tickets,
}, context_instance=RequestContext(request))tickets: Make sure ticket is paid before it can be viewed# -*- coding: utf-8 -*-
from datetime import datetime
from django.conf import settings
from django.http import HttpResponse, Http404
from django.template import RequestContext
from django.shortcuts import render_to_response, get_object_or_404
from Instanssi.tickets.models import Ticket
from Instanssi.store.models import StoreTransaction
# Logging related
import logging
logger = logging.getLogger(__name__)
# Shows information about a single ticket
def ticket(request, ticket_key):
# Find ticket
ticket = get_object_or_404(Ticket, key=ticket_key)
# Render ticket
return render_to_response('tickets/ticket.html', {
'ticket': ticket,
}, context_instance=RequestContext(request))
# Lists all tickets
def tickets(request, transaction_key):
# Get transaction
transaction = get_object_or_404(StoreTransaction, key=transaction_key)
if not transaction.paid:
raise Http404
# Get all tickets by this transaction
tickets = Ticket.objects.filter(transaction=transaction)
# Render tickets
return render_to_response('tickets/tickets.html', {
'transaction': transaction,
'tickets': tickets,
}, context_instance=RequestContext(request))
|
<commit_before># -*- coding: utf-8 -*-
from datetime import datetime
from django.conf import settings
from django.http import HttpResponse, Http404
from django.template import RequestContext
from django.shortcuts import render_to_response, get_object_or_404
from Instanssi.tickets.models import Ticket
from Instanssi.store.models import StoreTransaction
# Logging related
import logging
logger = logging.getLogger(__name__)
# Shows information about a single ticket
def ticket(request, ticket_key):
# Find ticket
ticket = get_object_or_404(Ticket, key=ticket_key)
# Render ticket
return render_to_response('tickets/ticket.html', {
'ticket': ticket,
}, context_instance=RequestContext(request))
# Lists all tickets
def tickets(request, transaction_key):
# Get transaction
transaction = get_object_or_404(StoreTransaction, key=transaction_key)
# Get all tickets by this transaction
tickets = Ticket.objects.filter(transaction=transaction)
# Render tickets
return render_to_response('tickets/tickets.html', {
'transaction': transaction,
'tickets': tickets,
}, context_instance=RequestContext(request))<commit_msg>tickets: Make sure ticket is paid before it can be viewed<commit_after># -*- coding: utf-8 -*-
from datetime import datetime
from django.conf import settings
from django.http import HttpResponse, Http404
from django.template import RequestContext
from django.shortcuts import render_to_response, get_object_or_404
from Instanssi.tickets.models import Ticket
from Instanssi.store.models import StoreTransaction
# Logging related
import logging
logger = logging.getLogger(__name__)
# Shows information about a single ticket
def ticket(request, ticket_key):
# Find ticket
ticket = get_object_or_404(Ticket, key=ticket_key)
# Render ticket
return render_to_response('tickets/ticket.html', {
'ticket': ticket,
}, context_instance=RequestContext(request))
# Lists all tickets
def tickets(request, transaction_key):
# Get transaction
transaction = get_object_or_404(StoreTransaction, key=transaction_key)
if not transaction.paid:
raise Http404
# Get all tickets by this transaction
tickets = Ticket.objects.filter(transaction=transaction)
# Render tickets
return render_to_response('tickets/tickets.html', {
'transaction': transaction,
'tickets': tickets,
}, context_instance=RequestContext(request))
|
f3cdd03f1e02f7fd0614d4421b831794c01de66d
|
tests/web_api/case_with_reform/reforms.py
|
tests/web_api/case_with_reform/reforms.py
|
from openfisca_core.model_api import Variable, Reform, MONTH
from openfisca_country_template.entities import Person
class goes_to_school(Variable):
value_type = bool
default_value = True
entity = Person
label = "The person goes to school (only relevant for children)"
definition_period = MONTH
class add_variable_reform(Reform):
def apply(self):
self.add_variable(goes_to_school)
|
from openfisca_core.model_api import Variable, Reform, MONTH
from openfisca_country_template.entities import Person
def test_dynamic_variable():
class NewDynamicClass(Variable):
value_type = bool
default_value = True
entity = Person
label = "The person goes to school (only relevant for children)"
definition_period = MONTH
NewDynamicClass.__name__ = "goes_to_school"
return NewDynamicClass
class add_variable_reform(Reform):
def apply(self):
self.add_variable(test_dynamic_variable())
|
Update test reform to make it fail without a fix
|
Update test reform to make it fail without a fix
|
Python
|
agpl-3.0
|
openfisca/openfisca-core,openfisca/openfisca-core
|
from openfisca_core.model_api import Variable, Reform, MONTH
from openfisca_country_template.entities import Person
class goes_to_school(Variable):
value_type = bool
default_value = True
entity = Person
label = "The person goes to school (only relevant for children)"
definition_period = MONTH
class add_variable_reform(Reform):
def apply(self):
self.add_variable(goes_to_school)
Update test reform to make it fail without a fix
|
from openfisca_core.model_api import Variable, Reform, MONTH
from openfisca_country_template.entities import Person
def test_dynamic_variable():
class NewDynamicClass(Variable):
value_type = bool
default_value = True
entity = Person
label = "The person goes to school (only relevant for children)"
definition_period = MONTH
NewDynamicClass.__name__ = "goes_to_school"
return NewDynamicClass
class add_variable_reform(Reform):
def apply(self):
self.add_variable(test_dynamic_variable())
|
<commit_before>from openfisca_core.model_api import Variable, Reform, MONTH
from openfisca_country_template.entities import Person
class goes_to_school(Variable):
value_type = bool
default_value = True
entity = Person
label = "The person goes to school (only relevant for children)"
definition_period = MONTH
class add_variable_reform(Reform):
def apply(self):
self.add_variable(goes_to_school)
<commit_msg>Update test reform to make it fail without a fix<commit_after>
|
from openfisca_core.model_api import Variable, Reform, MONTH
from openfisca_country_template.entities import Person
def test_dynamic_variable():
class NewDynamicClass(Variable):
value_type = bool
default_value = True
entity = Person
label = "The person goes to school (only relevant for children)"
definition_period = MONTH
NewDynamicClass.__name__ = "goes_to_school"
return NewDynamicClass
class add_variable_reform(Reform):
def apply(self):
self.add_variable(test_dynamic_variable())
|
from openfisca_core.model_api import Variable, Reform, MONTH
from openfisca_country_template.entities import Person
class goes_to_school(Variable):
value_type = bool
default_value = True
entity = Person
label = "The person goes to school (only relevant for children)"
definition_period = MONTH
class add_variable_reform(Reform):
def apply(self):
self.add_variable(goes_to_school)
Update test reform to make it fail without a fixfrom openfisca_core.model_api import Variable, Reform, MONTH
from openfisca_country_template.entities import Person
def test_dynamic_variable():
class NewDynamicClass(Variable):
value_type = bool
default_value = True
entity = Person
label = "The person goes to school (only relevant for children)"
definition_period = MONTH
NewDynamicClass.__name__ = "goes_to_school"
return NewDynamicClass
class add_variable_reform(Reform):
def apply(self):
self.add_variable(test_dynamic_variable())
|
<commit_before>from openfisca_core.model_api import Variable, Reform, MONTH
from openfisca_country_template.entities import Person
class goes_to_school(Variable):
value_type = bool
default_value = True
entity = Person
label = "The person goes to school (only relevant for children)"
definition_period = MONTH
class add_variable_reform(Reform):
def apply(self):
self.add_variable(goes_to_school)
<commit_msg>Update test reform to make it fail without a fix<commit_after>from openfisca_core.model_api import Variable, Reform, MONTH
from openfisca_country_template.entities import Person
def test_dynamic_variable():
class NewDynamicClass(Variable):
value_type = bool
default_value = True
entity = Person
label = "The person goes to school (only relevant for children)"
definition_period = MONTH
NewDynamicClass.__name__ = "goes_to_school"
return NewDynamicClass
class add_variable_reform(Reform):
def apply(self):
self.add_variable(test_dynamic_variable())
|
f9bf31e7cfdcbe8d9195b0f2ca9e159788193c50
|
unjabberlib/cmdui.py
|
unjabberlib/cmdui.py
|
import cmd
from itertools import zip_longest
INDENT = 5 * ' '
class UnjabberCmd(cmd.Cmd):
def __init__(self, queries, **cmdargs):
super().__init__(**cmdargs)
self.queries = queries
def do_who(self, arg):
"""Show list of people. Add part of a name to narrow down."""
for name in self.queries.who(arg):
print(name)
def do_show(self, arg):
"""Show conversations with people matching name (or part of)."""
previous = None
for message in self.queries.messages_for_whom(arg):
print_message(previous, message)
previous = message
def do_grep(self, arg):
"""Show messages containing text."""
for message in self.queries.grep(arg):
print(message)
def do_quit(self, arg):
"""Exit the program."""
return True
def print_message(previous, message):
day, hour, shortname = message.after(previous)
if day:
if previous:
print()
print('==', day, '==')
if shortname:
if not day:
print()
print(hour, ' -- ', shortname)
sub_print_message(INDENT, message.what)
else:
sub_print_message(hour if hour else INDENT, message.what)
def sub_print_message(hour, what):
for h, line in zip_longest([hour], what.split('\n'), fillvalue=INDENT):
print(h, line)
|
import cmd
from functools import partial
from unjabberlib import formatters
trim_print = partial(print, sep='', end='')
class StdoutFormatter(formatters.Formatter):
def append(self, text, format=None):
if format is None or format == formatters.HOUR:
trim_print(text)
elif format == formatters.NAME:
trim_print(' -- ', text)
elif format == formatters.DAY:
trim_print('== ', text, ' ==')
class UnjabberCmd(cmd.Cmd):
def __init__(self, queries, **cmdargs):
super().__init__(**cmdargs)
self.formatter = StdoutFormatter()
self.queries = queries
def do_who(self, arg):
"""Show list of people. Add part of a name to narrow down."""
for name in self.queries.who(arg):
print(name)
def do_show(self, arg):
"""Show conversations with people matching name (or part of)."""
previous = None
for message in self.queries.messages_for_whom(arg):
day, hour, shortname = message.after(previous)
self.formatter.show(previous, day, hour, shortname, message.what)
previous = message
def do_grep(self, arg):
"""Show messages containing text."""
for message in self.queries.grep(arg):
print(message)
def do_quit(self, arg):
"""Exit the program."""
return True
|
Use new formatter in cmd
|
Use new formatter in cmd
|
Python
|
mit
|
adsr303/unjabber
|
import cmd
from itertools import zip_longest
INDENT = 5 * ' '
class UnjabberCmd(cmd.Cmd):
def __init__(self, queries, **cmdargs):
super().__init__(**cmdargs)
self.queries = queries
def do_who(self, arg):
"""Show list of people. Add part of a name to narrow down."""
for name in self.queries.who(arg):
print(name)
def do_show(self, arg):
"""Show conversations with people matching name (or part of)."""
previous = None
for message in self.queries.messages_for_whom(arg):
print_message(previous, message)
previous = message
def do_grep(self, arg):
"""Show messages containing text."""
for message in self.queries.grep(arg):
print(message)
def do_quit(self, arg):
"""Exit the program."""
return True
def print_message(previous, message):
day, hour, shortname = message.after(previous)
if day:
if previous:
print()
print('==', day, '==')
if shortname:
if not day:
print()
print(hour, ' -- ', shortname)
sub_print_message(INDENT, message.what)
else:
sub_print_message(hour if hour else INDENT, message.what)
def sub_print_message(hour, what):
for h, line in zip_longest([hour], what.split('\n'), fillvalue=INDENT):
print(h, line)
Use new formatter in cmd
|
import cmd
from functools import partial
from unjabberlib import formatters
trim_print = partial(print, sep='', end='')
class StdoutFormatter(formatters.Formatter):
def append(self, text, format=None):
if format is None or format == formatters.HOUR:
trim_print(text)
elif format == formatters.NAME:
trim_print(' -- ', text)
elif format == formatters.DAY:
trim_print('== ', text, ' ==')
class UnjabberCmd(cmd.Cmd):
def __init__(self, queries, **cmdargs):
super().__init__(**cmdargs)
self.formatter = StdoutFormatter()
self.queries = queries
def do_who(self, arg):
"""Show list of people. Add part of a name to narrow down."""
for name in self.queries.who(arg):
print(name)
def do_show(self, arg):
"""Show conversations with people matching name (or part of)."""
previous = None
for message in self.queries.messages_for_whom(arg):
day, hour, shortname = message.after(previous)
self.formatter.show(previous, day, hour, shortname, message.what)
previous = message
def do_grep(self, arg):
"""Show messages containing text."""
for message in self.queries.grep(arg):
print(message)
def do_quit(self, arg):
"""Exit the program."""
return True
|
<commit_before>import cmd
from itertools import zip_longest
INDENT = 5 * ' '
class UnjabberCmd(cmd.Cmd):
def __init__(self, queries, **cmdargs):
super().__init__(**cmdargs)
self.queries = queries
def do_who(self, arg):
"""Show list of people. Add part of a name to narrow down."""
for name in self.queries.who(arg):
print(name)
def do_show(self, arg):
"""Show conversations with people matching name (or part of)."""
previous = None
for message in self.queries.messages_for_whom(arg):
print_message(previous, message)
previous = message
def do_grep(self, arg):
"""Show messages containing text."""
for message in self.queries.grep(arg):
print(message)
def do_quit(self, arg):
"""Exit the program."""
return True
def print_message(previous, message):
day, hour, shortname = message.after(previous)
if day:
if previous:
print()
print('==', day, '==')
if shortname:
if not day:
print()
print(hour, ' -- ', shortname)
sub_print_message(INDENT, message.what)
else:
sub_print_message(hour if hour else INDENT, message.what)
def sub_print_message(hour, what):
for h, line in zip_longest([hour], what.split('\n'), fillvalue=INDENT):
print(h, line)
<commit_msg>Use new formatter in cmd<commit_after>
|
import cmd
from functools import partial
from unjabberlib import formatters
trim_print = partial(print, sep='', end='')
class StdoutFormatter(formatters.Formatter):
def append(self, text, format=None):
if format is None or format == formatters.HOUR:
trim_print(text)
elif format == formatters.NAME:
trim_print(' -- ', text)
elif format == formatters.DAY:
trim_print('== ', text, ' ==')
class UnjabberCmd(cmd.Cmd):
def __init__(self, queries, **cmdargs):
super().__init__(**cmdargs)
self.formatter = StdoutFormatter()
self.queries = queries
def do_who(self, arg):
"""Show list of people. Add part of a name to narrow down."""
for name in self.queries.who(arg):
print(name)
def do_show(self, arg):
"""Show conversations with people matching name (or part of)."""
previous = None
for message in self.queries.messages_for_whom(arg):
day, hour, shortname = message.after(previous)
self.formatter.show(previous, day, hour, shortname, message.what)
previous = message
def do_grep(self, arg):
"""Show messages containing text."""
for message in self.queries.grep(arg):
print(message)
def do_quit(self, arg):
"""Exit the program."""
return True
|
import cmd
from itertools import zip_longest
INDENT = 5 * ' '
class UnjabberCmd(cmd.Cmd):
def __init__(self, queries, **cmdargs):
super().__init__(**cmdargs)
self.queries = queries
def do_who(self, arg):
"""Show list of people. Add part of a name to narrow down."""
for name in self.queries.who(arg):
print(name)
def do_show(self, arg):
"""Show conversations with people matching name (or part of)."""
previous = None
for message in self.queries.messages_for_whom(arg):
print_message(previous, message)
previous = message
def do_grep(self, arg):
"""Show messages containing text."""
for message in self.queries.grep(arg):
print(message)
def do_quit(self, arg):
"""Exit the program."""
return True
def print_message(previous, message):
day, hour, shortname = message.after(previous)
if day:
if previous:
print()
print('==', day, '==')
if shortname:
if not day:
print()
print(hour, ' -- ', shortname)
sub_print_message(INDENT, message.what)
else:
sub_print_message(hour if hour else INDENT, message.what)
def sub_print_message(hour, what):
for h, line in zip_longest([hour], what.split('\n'), fillvalue=INDENT):
print(h, line)
Use new formatter in cmdimport cmd
from functools import partial
from unjabberlib import formatters
trim_print = partial(print, sep='', end='')
class StdoutFormatter(formatters.Formatter):
def append(self, text, format=None):
if format is None or format == formatters.HOUR:
trim_print(text)
elif format == formatters.NAME:
trim_print(' -- ', text)
elif format == formatters.DAY:
trim_print('== ', text, ' ==')
class UnjabberCmd(cmd.Cmd):
def __init__(self, queries, **cmdargs):
super().__init__(**cmdargs)
self.formatter = StdoutFormatter()
self.queries = queries
def do_who(self, arg):
"""Show list of people. Add part of a name to narrow down."""
for name in self.queries.who(arg):
print(name)
def do_show(self, arg):
"""Show conversations with people matching name (or part of)."""
previous = None
for message in self.queries.messages_for_whom(arg):
day, hour, shortname = message.after(previous)
self.formatter.show(previous, day, hour, shortname, message.what)
previous = message
def do_grep(self, arg):
"""Show messages containing text."""
for message in self.queries.grep(arg):
print(message)
def do_quit(self, arg):
"""Exit the program."""
return True
|
<commit_before>import cmd
from itertools import zip_longest
INDENT = 5 * ' '
class UnjabberCmd(cmd.Cmd):
def __init__(self, queries, **cmdargs):
super().__init__(**cmdargs)
self.queries = queries
def do_who(self, arg):
"""Show list of people. Add part of a name to narrow down."""
for name in self.queries.who(arg):
print(name)
def do_show(self, arg):
"""Show conversations with people matching name (or part of)."""
previous = None
for message in self.queries.messages_for_whom(arg):
print_message(previous, message)
previous = message
def do_grep(self, arg):
"""Show messages containing text."""
for message in self.queries.grep(arg):
print(message)
def do_quit(self, arg):
"""Exit the program."""
return True
def print_message(previous, message):
day, hour, shortname = message.after(previous)
if day:
if previous:
print()
print('==', day, '==')
if shortname:
if not day:
print()
print(hour, ' -- ', shortname)
sub_print_message(INDENT, message.what)
else:
sub_print_message(hour if hour else INDENT, message.what)
def sub_print_message(hour, what):
for h, line in zip_longest([hour], what.split('\n'), fillvalue=INDENT):
print(h, line)
<commit_msg>Use new formatter in cmd<commit_after>import cmd
from functools import partial
from unjabberlib import formatters
trim_print = partial(print, sep='', end='')
class StdoutFormatter(formatters.Formatter):
def append(self, text, format=None):
if format is None or format == formatters.HOUR:
trim_print(text)
elif format == formatters.NAME:
trim_print(' -- ', text)
elif format == formatters.DAY:
trim_print('== ', text, ' ==')
class UnjabberCmd(cmd.Cmd):
def __init__(self, queries, **cmdargs):
super().__init__(**cmdargs)
self.formatter = StdoutFormatter()
self.queries = queries
def do_who(self, arg):
"""Show list of people. Add part of a name to narrow down."""
for name in self.queries.who(arg):
print(name)
def do_show(self, arg):
"""Show conversations with people matching name (or part of)."""
previous = None
for message in self.queries.messages_for_whom(arg):
day, hour, shortname = message.after(previous)
self.formatter.show(previous, day, hour, shortname, message.what)
previous = message
def do_grep(self, arg):
"""Show messages containing text."""
for message in self.queries.grep(arg):
print(message)
def do_quit(self, arg):
"""Exit the program."""
return True
|
89d9363d803cf3329c786ecdb5e388e94213e026
|
setup.py
|
setup.py
|
# -*- coding: utf-8 -*-
from setuptools import setup
def read(filename):
with open(filename) as f:
return f.read()
setup(
name = 'ebucks',
version = '0.2.0',
author = 'Konrad Blum',
author_email = 'konrad@kblum.com',
packages = ['ebucks',],
url = 'https://github.com/kblum/ebucks',
license = read('LICENSE'),
description = 'Python module for scraping balance from eBucks website.',
long_description = read('README.md'),
keywords = 'ebucks',
install_requires = [
'beautifulsoup4==4.3.2',
'requests==2.4.3',
],
)
|
# -*- coding: utf-8 -*-
from setuptools import setup
def read(filename):
with open(filename) as f:
return f.read()
setup(
name = 'ebucks',
version = '0.2.1',
author = 'Konrad Blum',
author_email = 'konrad@kblum.com',
packages = ['ebucks',],
url = 'https://github.com/kblum/ebucks',
license = read('LICENSE'),
description = 'Python module for scraping balance from eBucks website.',
long_description = read('README.md'),
keywords = 'ebucks',
install_requires = [
'beautifulsoup4==4.3.2',
'requests==2.20.0',
],
)
|
Update requests library for CVE-2018-18074.
|
Update requests library for CVE-2018-18074.
CVE details: https://nvd.nist.gov/vuln/detail/CVE-2018-18074
|
Python
|
mit
|
kblum/ebucks
|
# -*- coding: utf-8 -*-
from setuptools import setup
def read(filename):
with open(filename) as f:
return f.read()
setup(
name = 'ebucks',
version = '0.2.0',
author = 'Konrad Blum',
author_email = 'konrad@kblum.com',
packages = ['ebucks',],
url = 'https://github.com/kblum/ebucks',
license = read('LICENSE'),
description = 'Python module for scraping balance from eBucks website.',
long_description = read('README.md'),
keywords = 'ebucks',
install_requires = [
'beautifulsoup4==4.3.2',
'requests==2.4.3',
],
)
Update requests library for CVE-2018-18074.
CVE details: https://nvd.nist.gov/vuln/detail/CVE-2018-18074
|
# -*- coding: utf-8 -*-
from setuptools import setup
def read(filename):
with open(filename) as f:
return f.read()
setup(
name = 'ebucks',
version = '0.2.1',
author = 'Konrad Blum',
author_email = 'konrad@kblum.com',
packages = ['ebucks',],
url = 'https://github.com/kblum/ebucks',
license = read('LICENSE'),
description = 'Python module for scraping balance from eBucks website.',
long_description = read('README.md'),
keywords = 'ebucks',
install_requires = [
'beautifulsoup4==4.3.2',
'requests==2.20.0',
],
)
|
<commit_before># -*- coding: utf-8 -*-
from setuptools import setup
def read(filename):
with open(filename) as f:
return f.read()
setup(
name = 'ebucks',
version = '0.2.0',
author = 'Konrad Blum',
author_email = 'konrad@kblum.com',
packages = ['ebucks',],
url = 'https://github.com/kblum/ebucks',
license = read('LICENSE'),
description = 'Python module for scraping balance from eBucks website.',
long_description = read('README.md'),
keywords = 'ebucks',
install_requires = [
'beautifulsoup4==4.3.2',
'requests==2.4.3',
],
)
<commit_msg>Update requests library for CVE-2018-18074.
CVE details: https://nvd.nist.gov/vuln/detail/CVE-2018-18074<commit_after>
|
# -*- coding: utf-8 -*-
from setuptools import setup
def read(filename):
with open(filename) as f:
return f.read()
setup(
name = 'ebucks',
version = '0.2.1',
author = 'Konrad Blum',
author_email = 'konrad@kblum.com',
packages = ['ebucks',],
url = 'https://github.com/kblum/ebucks',
license = read('LICENSE'),
description = 'Python module for scraping balance from eBucks website.',
long_description = read('README.md'),
keywords = 'ebucks',
install_requires = [
'beautifulsoup4==4.3.2',
'requests==2.20.0',
],
)
|
# -*- coding: utf-8 -*-
from setuptools import setup
def read(filename):
with open(filename) as f:
return f.read()
setup(
name = 'ebucks',
version = '0.2.0',
author = 'Konrad Blum',
author_email = 'konrad@kblum.com',
packages = ['ebucks',],
url = 'https://github.com/kblum/ebucks',
license = read('LICENSE'),
description = 'Python module for scraping balance from eBucks website.',
long_description = read('README.md'),
keywords = 'ebucks',
install_requires = [
'beautifulsoup4==4.3.2',
'requests==2.4.3',
],
)
Update requests library for CVE-2018-18074.
CVE details: https://nvd.nist.gov/vuln/detail/CVE-2018-18074# -*- coding: utf-8 -*-
from setuptools import setup
def read(filename):
with open(filename) as f:
return f.read()
setup(
name = 'ebucks',
version = '0.2.1',
author = 'Konrad Blum',
author_email = 'konrad@kblum.com',
packages = ['ebucks',],
url = 'https://github.com/kblum/ebucks',
license = read('LICENSE'),
description = 'Python module for scraping balance from eBucks website.',
long_description = read('README.md'),
keywords = 'ebucks',
install_requires = [
'beautifulsoup4==4.3.2',
'requests==2.20.0',
],
)
|
<commit_before># -*- coding: utf-8 -*-
from setuptools import setup
def read(filename):
with open(filename) as f:
return f.read()
setup(
name = 'ebucks',
version = '0.2.0',
author = 'Konrad Blum',
author_email = 'konrad@kblum.com',
packages = ['ebucks',],
url = 'https://github.com/kblum/ebucks',
license = read('LICENSE'),
description = 'Python module for scraping balance from eBucks website.',
long_description = read('README.md'),
keywords = 'ebucks',
install_requires = [
'beautifulsoup4==4.3.2',
'requests==2.4.3',
],
)
<commit_msg>Update requests library for CVE-2018-18074.
CVE details: https://nvd.nist.gov/vuln/detail/CVE-2018-18074<commit_after># -*- coding: utf-8 -*-
from setuptools import setup
def read(filename):
with open(filename) as f:
return f.read()
setup(
name = 'ebucks',
version = '0.2.1',
author = 'Konrad Blum',
author_email = 'konrad@kblum.com',
packages = ['ebucks',],
url = 'https://github.com/kblum/ebucks',
license = read('LICENSE'),
description = 'Python module for scraping balance from eBucks website.',
long_description = read('README.md'),
keywords = 'ebucks',
install_requires = [
'beautifulsoup4==4.3.2',
'requests==2.20.0',
],
)
|
1abd0ba89b2e0deeb3fce7b5e5459be458a21ed4
|
setup.py
|
setup.py
|
from setuptools import setup, find_packages
long_desc = """
XYPath is aiming to be XPath for spreadsheets: it offers a framework for
navigating around and extracting values from tabular data.
"""
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers for classifiers
setup(
name='xypath',
version='1.1.1',
description="Extract fields from tabular data with complex expressions.",
long_description=long_desc,
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: POSIX :: Linux",
"Operating System :: Microsoft :: Windows",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
],
keywords='',
author='The Sensible Code Company Ltd',
author_email='feedback@sensiblecode.io',
url='http://sensiblecode.io',
license='BSD',
packages=find_packages(exclude=['ez_setup', 'examples', 'tests']),
namespace_packages=[],
include_package_data=False,
zip_safe=False,
install_requires=[
'messytables==0.15.1',
],
tests_require=[],
entry_points=\
"""
""",
)
|
from setuptools import setup, find_packages
long_desc = """
XYPath is aiming to be XPath for spreadsheets: it offers a framework for
navigating around and extracting values from tabular data.
"""
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers for classifiers
setup(
name='xypath',
version='1.1.1',
description="Extract fields from tabular data with complex expressions.",
long_description=long_desc,
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: POSIX :: Linux",
"Operating System :: Microsoft :: Windows",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
],
keywords='',
author='The Sensible Code Company Ltd',
author_email='feedback@sensiblecode.io',
url='https://sensiblecode.io',
license='BSD',
packages=find_packages(exclude=['ez_setup', 'examples', 'tests']),
namespace_packages=[],
include_package_data=False,
zip_safe=False,
install_requires=[
'messytables==0.15.1',
],
tests_require=[],
entry_points=\
"""
""",
)
|
Update URL to https protocol
|
Update URL to https protocol
|
Python
|
bsd-2-clause
|
scraperwiki/xypath
|
from setuptools import setup, find_packages
long_desc = """
XYPath is aiming to be XPath for spreadsheets: it offers a framework for
navigating around and extracting values from tabular data.
"""
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers for classifiers
setup(
name='xypath',
version='1.1.1',
description="Extract fields from tabular data with complex expressions.",
long_description=long_desc,
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: POSIX :: Linux",
"Operating System :: Microsoft :: Windows",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
],
keywords='',
author='The Sensible Code Company Ltd',
author_email='feedback@sensiblecode.io',
url='http://sensiblecode.io',
license='BSD',
packages=find_packages(exclude=['ez_setup', 'examples', 'tests']),
namespace_packages=[],
include_package_data=False,
zip_safe=False,
install_requires=[
'messytables==0.15.1',
],
tests_require=[],
entry_points=\
"""
""",
)
Update URL to https protocol
|
from setuptools import setup, find_packages
long_desc = """
XYPath is aiming to be XPath for spreadsheets: it offers a framework for
navigating around and extracting values from tabular data.
"""
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers for classifiers
setup(
name='xypath',
version='1.1.1',
description="Extract fields from tabular data with complex expressions.",
long_description=long_desc,
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: POSIX :: Linux",
"Operating System :: Microsoft :: Windows",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
],
keywords='',
author='The Sensible Code Company Ltd',
author_email='feedback@sensiblecode.io',
url='https://sensiblecode.io',
license='BSD',
packages=find_packages(exclude=['ez_setup', 'examples', 'tests']),
namespace_packages=[],
include_package_data=False,
zip_safe=False,
install_requires=[
'messytables==0.15.1',
],
tests_require=[],
entry_points=\
"""
""",
)
|
<commit_before>from setuptools import setup, find_packages
long_desc = """
XYPath is aiming to be XPath for spreadsheets: it offers a framework for
navigating around and extracting values from tabular data.
"""
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers for classifiers
setup(
name='xypath',
version='1.1.1',
description="Extract fields from tabular data with complex expressions.",
long_description=long_desc,
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: POSIX :: Linux",
"Operating System :: Microsoft :: Windows",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
],
keywords='',
author='The Sensible Code Company Ltd',
author_email='feedback@sensiblecode.io',
url='http://sensiblecode.io',
license='BSD',
packages=find_packages(exclude=['ez_setup', 'examples', 'tests']),
namespace_packages=[],
include_package_data=False,
zip_safe=False,
install_requires=[
'messytables==0.15.1',
],
tests_require=[],
entry_points=\
"""
""",
)
<commit_msg>Update URL to https protocol<commit_after>
|
from setuptools import setup, find_packages
long_desc = """
XYPath is aiming to be XPath for spreadsheets: it offers a framework for
navigating around and extracting values from tabular data.
"""
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers for classifiers
setup(
name='xypath',
version='1.1.1',
description="Extract fields from tabular data with complex expressions.",
long_description=long_desc,
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: POSIX :: Linux",
"Operating System :: Microsoft :: Windows",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
],
keywords='',
author='The Sensible Code Company Ltd',
author_email='feedback@sensiblecode.io',
url='https://sensiblecode.io',
license='BSD',
packages=find_packages(exclude=['ez_setup', 'examples', 'tests']),
namespace_packages=[],
include_package_data=False,
zip_safe=False,
install_requires=[
'messytables==0.15.1',
],
tests_require=[],
entry_points=\
"""
""",
)
|
from setuptools import setup, find_packages
long_desc = """
XYPath is aiming to be XPath for spreadsheets: it offers a framework for
navigating around and extracting values from tabular data.
"""
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers for classifiers
setup(
name='xypath',
version='1.1.1',
description="Extract fields from tabular data with complex expressions.",
long_description=long_desc,
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: POSIX :: Linux",
"Operating System :: Microsoft :: Windows",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
],
keywords='',
author='The Sensible Code Company Ltd',
author_email='feedback@sensiblecode.io',
url='http://sensiblecode.io',
license='BSD',
packages=find_packages(exclude=['ez_setup', 'examples', 'tests']),
namespace_packages=[],
include_package_data=False,
zip_safe=False,
install_requires=[
'messytables==0.15.1',
],
tests_require=[],
entry_points=\
"""
""",
)
Update URL to https protocolfrom setuptools import setup, find_packages
long_desc = """
XYPath is aiming to be XPath for spreadsheets: it offers a framework for
navigating around and extracting values from tabular data.
"""
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers for classifiers
setup(
name='xypath',
version='1.1.1',
description="Extract fields from tabular data with complex expressions.",
long_description=long_desc,
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: POSIX :: Linux",
"Operating System :: Microsoft :: Windows",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
],
keywords='',
author='The Sensible Code Company Ltd',
author_email='feedback@sensiblecode.io',
url='https://sensiblecode.io',
license='BSD',
packages=find_packages(exclude=['ez_setup', 'examples', 'tests']),
namespace_packages=[],
include_package_data=False,
zip_safe=False,
install_requires=[
'messytables==0.15.1',
],
tests_require=[],
entry_points=\
"""
""",
)
|
<commit_before>from setuptools import setup, find_packages
long_desc = """
XYPath is aiming to be XPath for spreadsheets: it offers a framework for
navigating around and extracting values from tabular data.
"""
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers for classifiers
setup(
name='xypath',
version='1.1.1',
description="Extract fields from tabular data with complex expressions.",
long_description=long_desc,
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: POSIX :: Linux",
"Operating System :: Microsoft :: Windows",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
],
keywords='',
author='The Sensible Code Company Ltd',
author_email='feedback@sensiblecode.io',
url='http://sensiblecode.io',
license='BSD',
packages=find_packages(exclude=['ez_setup', 'examples', 'tests']),
namespace_packages=[],
include_package_data=False,
zip_safe=False,
install_requires=[
'messytables==0.15.1',
],
tests_require=[],
entry_points=\
"""
""",
)
<commit_msg>Update URL to https protocol<commit_after>from setuptools import setup, find_packages
long_desc = """
XYPath is aiming to be XPath for spreadsheets: it offers a framework for
navigating around and extracting values from tabular data.
"""
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers for classifiers
setup(
name='xypath',
version='1.1.1',
description="Extract fields from tabular data with complex expressions.",
long_description=long_desc,
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: POSIX :: Linux",
"Operating System :: Microsoft :: Windows",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
],
keywords='',
author='The Sensible Code Company Ltd',
author_email='feedback@sensiblecode.io',
url='https://sensiblecode.io',
license='BSD',
packages=find_packages(exclude=['ez_setup', 'examples', 'tests']),
namespace_packages=[],
include_package_data=False,
zip_safe=False,
install_requires=[
'messytables==0.15.1',
],
tests_require=[],
entry_points=\
"""
""",
)
|
516e67cc6d670050e9714460b082bc908ca94d84
|
setup.py
|
setup.py
|
"""
Slacky
------
A Python package for Slack's JSON REST API.
Slacky is Simple
````````````````
Save in a hello.py:
.. code:: python
from slacky import Slacky
slacky = Slacky(token='<Your slack api token>')
slacky.chat.post_message('#general', 'Hello World!!')
# '#' is not necessary with channel name.
slacky.chat.post_message('general', 'Hello World!!')
And Easy to Setup
`````````````````
And run it:
.. code:: bash
$ pip install slacky
$ python hello.py
Links
`````
* `website <https://github.com/nabetama/slacky>`_
"""
from setuptools import setup
setup(
name='slacky',
version="0.1.26-dev",
description="Package for Slack's API",
long_description=__doc__,
author='Mao Nabeta',
author_email='mao.nabeta@gmail.com',
url='https://github.com/nabetama/slacky',
packages=['slacky'],
install_requires=['requests', 'six'],
provides=['slack'],
keywords='slack',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Topic :: Communications :: Chat',
'Topic :: Software Development :: Libraries',
'Topic :: Software Development :: Libraries :: Python Modules',
]
)
|
"""
Slacky
------
A Python package for Slack's JSON REST API.
Slacky is Simple
````````````````
Save in a hello.py:
.. code:: python
from slacky import Slacky
slacky = Slacky(token='<Your slack api token>')
slacky.chat.post_message('#general', 'Hello World!!')
# '#' is not necessary with channel name.
slacky.chat.post_message('general', 'Hello World!!')
And Easy to Setup
`````````````````
And run it:
.. code:: bash
$ pip install slacky
$ python hello.py
Links
`````
* `website <https://github.com/nabetama/slacky>`_
"""
from setuptools import setup
setup(
name='slacky',
version="0.1.3",
description="Package for Slack's API",
long_description=__doc__,
author='Mao Nabeta',
author_email='mao.nabeta@gmail.com',
url='https://github.com/nabetama/slacky',
packages=['slacky'],
install_requires=['requests', 'six'],
provides=['slack'],
keywords='slack',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Topic :: Communications :: Chat',
'Topic :: Software Development :: Libraries',
'Topic :: Software Development :: Libraries :: Python Modules',
]
)
|
Set version number to 0.1.3.
|
Set version number to 0.1.3.
|
Python
|
mit
|
nabetama/slacky
|
"""
Slacky
------
A Python package for Slack's JSON REST API.
Slacky is Simple
````````````````
Save in a hello.py:
.. code:: python
from slacky import Slacky
slacky = Slacky(token='<Your slack api token>')
slacky.chat.post_message('#general', 'Hello World!!')
# '#' is not necessary with channel name.
slacky.chat.post_message('general', 'Hello World!!')
And Easy to Setup
`````````````````
And run it:
.. code:: bash
$ pip install slacky
$ python hello.py
Links
`````
* `website <https://github.com/nabetama/slacky>`_
"""
from setuptools import setup
setup(
name='slacky',
version="0.1.26-dev",
description="Package for Slack's API",
long_description=__doc__,
author='Mao Nabeta',
author_email='mao.nabeta@gmail.com',
url='https://github.com/nabetama/slacky',
packages=['slacky'],
install_requires=['requests', 'six'],
provides=['slack'],
keywords='slack',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Topic :: Communications :: Chat',
'Topic :: Software Development :: Libraries',
'Topic :: Software Development :: Libraries :: Python Modules',
]
)
Set version number to 0.1.3.
|
"""
Slacky
------
A Python package for Slack's JSON REST API.
Slacky is Simple
````````````````
Save in a hello.py:
.. code:: python
from slacky import Slacky
slacky = Slacky(token='<Your slack api token>')
slacky.chat.post_message('#general', 'Hello World!!')
# '#' is not necessary with channel name.
slacky.chat.post_message('general', 'Hello World!!')
And Easy to Setup
`````````````````
And run it:
.. code:: bash
$ pip install slacky
$ python hello.py
Links
`````
* `website <https://github.com/nabetama/slacky>`_
"""
from setuptools import setup
setup(
name='slacky',
version="0.1.3",
description="Package for Slack's API",
long_description=__doc__,
author='Mao Nabeta',
author_email='mao.nabeta@gmail.com',
url='https://github.com/nabetama/slacky',
packages=['slacky'],
install_requires=['requests', 'six'],
provides=['slack'],
keywords='slack',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Topic :: Communications :: Chat',
'Topic :: Software Development :: Libraries',
'Topic :: Software Development :: Libraries :: Python Modules',
]
)
|
<commit_before>"""
Slacky
------
A Python package for Slack's JSON REST API.
Slacky is Simple
````````````````
Save in a hello.py:
.. code:: python
from slacky import Slacky
slacky = Slacky(token='<Your slack api token>')
slacky.chat.post_message('#general', 'Hello World!!')
# '#' is not necessary with channel name.
slacky.chat.post_message('general', 'Hello World!!')
And Easy to Setup
`````````````````
And run it:
.. code:: bash
$ pip install slacky
$ python hello.py
Links
`````
* `website <https://github.com/nabetama/slacky>`_
"""
from setuptools import setup
setup(
name='slacky',
version="0.1.26-dev",
description="Package for Slack's API",
long_description=__doc__,
author='Mao Nabeta',
author_email='mao.nabeta@gmail.com',
url='https://github.com/nabetama/slacky',
packages=['slacky'],
install_requires=['requests', 'six'],
provides=['slack'],
keywords='slack',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Topic :: Communications :: Chat',
'Topic :: Software Development :: Libraries',
'Topic :: Software Development :: Libraries :: Python Modules',
]
)
<commit_msg>Set version number to 0.1.3.<commit_after>
|
"""
Slacky
------
A Python package for Slack's JSON REST API.
Slacky is Simple
````````````````
Save in a hello.py:
.. code:: python
from slacky import Slacky
slacky = Slacky(token='<Your slack api token>')
slacky.chat.post_message('#general', 'Hello World!!')
# '#' is not necessary with channel name.
slacky.chat.post_message('general', 'Hello World!!')
And Easy to Setup
`````````````````
And run it:
.. code:: bash
$ pip install slacky
$ python hello.py
Links
`````
* `website <https://github.com/nabetama/slacky>`_
"""
from setuptools import setup
setup(
name='slacky',
version="0.1.3",
description="Package for Slack's API",
long_description=__doc__,
author='Mao Nabeta',
author_email='mao.nabeta@gmail.com',
url='https://github.com/nabetama/slacky',
packages=['slacky'],
install_requires=['requests', 'six'],
provides=['slack'],
keywords='slack',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Topic :: Communications :: Chat',
'Topic :: Software Development :: Libraries',
'Topic :: Software Development :: Libraries :: Python Modules',
]
)
|
"""
Slacky
------
A Python package for Slack's JSON REST API.
Slacky is Simple
````````````````
Save in a hello.py:
.. code:: python
from slacky import Slacky
slacky = Slacky(token='<Your slack api token>')
slacky.chat.post_message('#general', 'Hello World!!')
# '#' is not necessary with channel name.
slacky.chat.post_message('general', 'Hello World!!')
And Easy to Setup
`````````````````
And run it:
.. code:: bash
$ pip install slacky
$ python hello.py
Links
`````
* `website <https://github.com/nabetama/slacky>`_
"""
from setuptools import setup
setup(
name='slacky',
version="0.1.26-dev",
description="Package for Slack's API",
long_description=__doc__,
author='Mao Nabeta',
author_email='mao.nabeta@gmail.com',
url='https://github.com/nabetama/slacky',
packages=['slacky'],
install_requires=['requests', 'six'],
provides=['slack'],
keywords='slack',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Topic :: Communications :: Chat',
'Topic :: Software Development :: Libraries',
'Topic :: Software Development :: Libraries :: Python Modules',
]
)
Set version number to 0.1.3."""
Slacky
------
A Python package for Slack's JSON REST API.
Slacky is Simple
````````````````
Save in a hello.py:
.. code:: python
from slacky import Slacky
slacky = Slacky(token='<Your slack api token>')
slacky.chat.post_message('#general', 'Hello World!!')
# '#' is not necessary with channel name.
slacky.chat.post_message('general', 'Hello World!!')
And Easy to Setup
`````````````````
And run it:
.. code:: bash
$ pip install slacky
$ python hello.py
Links
`````
* `website <https://github.com/nabetama/slacky>`_
"""
from setuptools import setup
setup(
name='slacky',
version="0.1.3",
description="Package for Slack's API",
long_description=__doc__,
author='Mao Nabeta',
author_email='mao.nabeta@gmail.com',
url='https://github.com/nabetama/slacky',
packages=['slacky'],
install_requires=['requests', 'six'],
provides=['slack'],
keywords='slack',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Topic :: Communications :: Chat',
'Topic :: Software Development :: Libraries',
'Topic :: Software Development :: Libraries :: Python Modules',
]
)
|
<commit_before>"""
Slacky
------
A Python package for Slack's JSON REST API.
Slacky is Simple
````````````````
Save in a hello.py:
.. code:: python
from slacky import Slacky
slacky = Slacky(token='<Your slack api token>')
slacky.chat.post_message('#general', 'Hello World!!')
# '#' is not necessary with channel name.
slacky.chat.post_message('general', 'Hello World!!')
And Easy to Setup
`````````````````
And run it:
.. code:: bash
$ pip install slacky
$ python hello.py
Links
`````
* `website <https://github.com/nabetama/slacky>`_
"""
from setuptools import setup
setup(
name='slacky',
version="0.1.26-dev",
description="Package for Slack's API",
long_description=__doc__,
author='Mao Nabeta',
author_email='mao.nabeta@gmail.com',
url='https://github.com/nabetama/slacky',
packages=['slacky'],
install_requires=['requests', 'six'],
provides=['slack'],
keywords='slack',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Topic :: Communications :: Chat',
'Topic :: Software Development :: Libraries',
'Topic :: Software Development :: Libraries :: Python Modules',
]
)
<commit_msg>Set version number to 0.1.3.<commit_after>"""
Slacky
------
A Python package for Slack's JSON REST API.
Slacky is Simple
````````````````
Save in a hello.py:
.. code:: python
from slacky import Slacky
slacky = Slacky(token='<Your slack api token>')
slacky.chat.post_message('#general', 'Hello World!!')
# '#' is not necessary with channel name.
slacky.chat.post_message('general', 'Hello World!!')
And Easy to Setup
`````````````````
And run it:
.. code:: bash
$ pip install slacky
$ python hello.py
Links
`````
* `website <https://github.com/nabetama/slacky>`_
"""
from setuptools import setup
setup(
name='slacky',
version="0.1.3",
description="Package for Slack's API",
long_description=__doc__,
author='Mao Nabeta',
author_email='mao.nabeta@gmail.com',
url='https://github.com/nabetama/slacky',
packages=['slacky'],
install_requires=['requests', 'six'],
provides=['slack'],
keywords='slack',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Topic :: Communications :: Chat',
'Topic :: Software Development :: Libraries',
'Topic :: Software Development :: Libraries :: Python Modules',
]
)
|
c3c6fab3bf7f9d2d75b6a68e3f1122724cc4bbc1
|
setup.py
|
setup.py
|
from setuptools import setup, find_packages
requirements = ['pycryptodome>=3.7.0']
setup(
name="ziggeo",
version="2.15",
description="Ziggeo SDK for python",
long_description="Ziggeo API (https://ziggeo.com) allows you to integrate video recording and playback with only two lines of code in your site, service or app. This is the Python Server SDK repository.",
url="http://github.com/Ziggeo/ZiggeoPythonSdk",
license="Apache 2.0",
classifiers=[
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 2.7",
],
keywords=("Ziggeo video-upload"),
packages=["."],
package_dir={'ziggeo': '.'},
install_requires=requirements,
author="Ziggeo",
author_email="support@ziggeo.com"
)
|
from setuptools import setup, find_packages
requirements = ['pycryptodome>=3.7.0']
setup(
name="ziggeo",
version="2.15",
description="Ziggeo SDK for python",
long_description="Ziggeo API (https://ziggeo.com) allows you to integrate video recording and playback with only two lines of code in your site, service or app. This is the Python Server SDK repository.",
url="http://github.com/Ziggeo/ZiggeoPythonSdk",
license="Apache 2.0",
classifiers=[
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
],
keywords=("Ziggeo video-upload"),
packages=["."],
package_dir={'ziggeo': '.'},
install_requires=requirements,
author="Ziggeo",
author_email="support@ziggeo.com"
)
|
Add Python 3 as Programming Language
|
Add Python 3 as Programming Language
Show support for Python 3 by adding classifier on setup.py
|
Python
|
apache-2.0
|
Ziggeo/ZiggeoPythonSdk,Ziggeo/ZiggeoPythonSdk
|
from setuptools import setup, find_packages
requirements = ['pycryptodome>=3.7.0']
setup(
name="ziggeo",
version="2.15",
description="Ziggeo SDK for python",
long_description="Ziggeo API (https://ziggeo.com) allows you to integrate video recording and playback with only two lines of code in your site, service or app. This is the Python Server SDK repository.",
url="http://github.com/Ziggeo/ZiggeoPythonSdk",
license="Apache 2.0",
classifiers=[
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 2.7",
],
keywords=("Ziggeo video-upload"),
packages=["."],
package_dir={'ziggeo': '.'},
install_requires=requirements,
author="Ziggeo",
author_email="support@ziggeo.com"
)
Add Python 3 as Programming Language
Show support for Python 3 by adding classifier on setup.py
|
from setuptools import setup, find_packages
requirements = ['pycryptodome>=3.7.0']
setup(
name="ziggeo",
version="2.15",
description="Ziggeo SDK for python",
long_description="Ziggeo API (https://ziggeo.com) allows you to integrate video recording and playback with only two lines of code in your site, service or app. This is the Python Server SDK repository.",
url="http://github.com/Ziggeo/ZiggeoPythonSdk",
license="Apache 2.0",
classifiers=[
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
],
keywords=("Ziggeo video-upload"),
packages=["."],
package_dir={'ziggeo': '.'},
install_requires=requirements,
author="Ziggeo",
author_email="support@ziggeo.com"
)
|
<commit_before>from setuptools import setup, find_packages
requirements = ['pycryptodome>=3.7.0']
setup(
name="ziggeo",
version="2.15",
description="Ziggeo SDK for python",
long_description="Ziggeo API (https://ziggeo.com) allows you to integrate video recording and playback with only two lines of code in your site, service or app. This is the Python Server SDK repository.",
url="http://github.com/Ziggeo/ZiggeoPythonSdk",
license="Apache 2.0",
classifiers=[
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 2.7",
],
keywords=("Ziggeo video-upload"),
packages=["."],
package_dir={'ziggeo': '.'},
install_requires=requirements,
author="Ziggeo",
author_email="support@ziggeo.com"
)
<commit_msg>Add Python 3 as Programming Language
Show support for Python 3 by adding classifier on setup.py<commit_after>
|
from setuptools import setup, find_packages
requirements = ['pycryptodome>=3.7.0']
setup(
name="ziggeo",
version="2.15",
description="Ziggeo SDK for python",
long_description="Ziggeo API (https://ziggeo.com) allows you to integrate video recording and playback with only two lines of code in your site, service or app. This is the Python Server SDK repository.",
url="http://github.com/Ziggeo/ZiggeoPythonSdk",
license="Apache 2.0",
classifiers=[
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
],
keywords=("Ziggeo video-upload"),
packages=["."],
package_dir={'ziggeo': '.'},
install_requires=requirements,
author="Ziggeo",
author_email="support@ziggeo.com"
)
|
from setuptools import setup, find_packages
requirements = ['pycryptodome>=3.7.0']
setup(
name="ziggeo",
version="2.15",
description="Ziggeo SDK for python",
long_description="Ziggeo API (https://ziggeo.com) allows you to integrate video recording and playback with only two lines of code in your site, service or app. This is the Python Server SDK repository.",
url="http://github.com/Ziggeo/ZiggeoPythonSdk",
license="Apache 2.0",
classifiers=[
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 2.7",
],
keywords=("Ziggeo video-upload"),
packages=["."],
package_dir={'ziggeo': '.'},
install_requires=requirements,
author="Ziggeo",
author_email="support@ziggeo.com"
)
Add Python 3 as Programming Language
Show support for Python 3 by adding classifier on setup.pyfrom setuptools import setup, find_packages
requirements = ['pycryptodome>=3.7.0']
setup(
name="ziggeo",
version="2.15",
description="Ziggeo SDK for python",
long_description="Ziggeo API (https://ziggeo.com) allows you to integrate video recording and playback with only two lines of code in your site, service or app. This is the Python Server SDK repository.",
url="http://github.com/Ziggeo/ZiggeoPythonSdk",
license="Apache 2.0",
classifiers=[
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
],
keywords=("Ziggeo video-upload"),
packages=["."],
package_dir={'ziggeo': '.'},
install_requires=requirements,
author="Ziggeo",
author_email="support@ziggeo.com"
)
|
<commit_before>from setuptools import setup, find_packages
requirements = ['pycryptodome>=3.7.0']
setup(
name="ziggeo",
version="2.15",
description="Ziggeo SDK for python",
long_description="Ziggeo API (https://ziggeo.com) allows you to integrate video recording and playback with only two lines of code in your site, service or app. This is the Python Server SDK repository.",
url="http://github.com/Ziggeo/ZiggeoPythonSdk",
license="Apache 2.0",
classifiers=[
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 2.7",
],
keywords=("Ziggeo video-upload"),
packages=["."],
package_dir={'ziggeo': '.'},
install_requires=requirements,
author="Ziggeo",
author_email="support@ziggeo.com"
)
<commit_msg>Add Python 3 as Programming Language
Show support for Python 3 by adding classifier on setup.py<commit_after>from setuptools import setup, find_packages
requirements = ['pycryptodome>=3.7.0']
setup(
name="ziggeo",
version="2.15",
description="Ziggeo SDK for python",
long_description="Ziggeo API (https://ziggeo.com) allows you to integrate video recording and playback with only two lines of code in your site, service or app. This is the Python Server SDK repository.",
url="http://github.com/Ziggeo/ZiggeoPythonSdk",
license="Apache 2.0",
classifiers=[
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
],
keywords=("Ziggeo video-upload"),
packages=["."],
package_dir={'ziggeo': '.'},
install_requires=requirements,
author="Ziggeo",
author_email="support@ziggeo.com"
)
|
00567407069f706b9cf55dfccb18fd80b9ed8f72
|
setup.py
|
setup.py
|
try:
from setuptools import setup
except ImportError:
from distutils import setup
readme = open('README.rst', 'r')
README_TEXT = readme.read()
readme.close()
setup(
name='aniso8601',
version='0.50',
description='A library for parsing ISO 8601 strings.',
long_description=README_TEXT,
author='Brandon Nielsen',
author_email='nielsenb@jetfuse.net',
url='https://bitbucket.org/nielsenb/aniso8601',
packages=['aniso8601'],
classifiers=[
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules'
]
)
|
try:
from setuptools import setup
except ImportError:
from distutils import setup
readme = open('README.rst', 'r')
README_TEXT = readme.read()
readme.close()
setup(
name='aniso8601',
version='0.60dev',
description='A library for parsing ISO 8601 strings.',
long_description=README_TEXT,
author='Brandon Nielsen',
author_email='nielsenb@jetfuse.net',
url='https://bitbucket.org/nielsenb/aniso8601',
packages=['aniso8601'],
classifiers=[
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules'
]
)
|
Switch to development of next version.
|
Switch to development of next version.
|
Python
|
bsd-3-clause
|
3stack-software/python-aniso8601-relativedelta
|
try:
from setuptools import setup
except ImportError:
from distutils import setup
readme = open('README.rst', 'r')
README_TEXT = readme.read()
readme.close()
setup(
name='aniso8601',
version='0.50',
description='A library for parsing ISO 8601 strings.',
long_description=README_TEXT,
author='Brandon Nielsen',
author_email='nielsenb@jetfuse.net',
url='https://bitbucket.org/nielsenb/aniso8601',
packages=['aniso8601'],
classifiers=[
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules'
]
)
Switch to development of next version.
|
try:
from setuptools import setup
except ImportError:
from distutils import setup
readme = open('README.rst', 'r')
README_TEXT = readme.read()
readme.close()
setup(
name='aniso8601',
version='0.60dev',
description='A library for parsing ISO 8601 strings.',
long_description=README_TEXT,
author='Brandon Nielsen',
author_email='nielsenb@jetfuse.net',
url='https://bitbucket.org/nielsenb/aniso8601',
packages=['aniso8601'],
classifiers=[
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules'
]
)
|
<commit_before>try:
from setuptools import setup
except ImportError:
from distutils import setup
readme = open('README.rst', 'r')
README_TEXT = readme.read()
readme.close()
setup(
name='aniso8601',
version='0.50',
description='A library for parsing ISO 8601 strings.',
long_description=README_TEXT,
author='Brandon Nielsen',
author_email='nielsenb@jetfuse.net',
url='https://bitbucket.org/nielsenb/aniso8601',
packages=['aniso8601'],
classifiers=[
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules'
]
)
<commit_msg>Switch to development of next version.<commit_after>
|
try:
from setuptools import setup
except ImportError:
from distutils import setup
readme = open('README.rst', 'r')
README_TEXT = readme.read()
readme.close()
setup(
name='aniso8601',
version='0.60dev',
description='A library for parsing ISO 8601 strings.',
long_description=README_TEXT,
author='Brandon Nielsen',
author_email='nielsenb@jetfuse.net',
url='https://bitbucket.org/nielsenb/aniso8601',
packages=['aniso8601'],
classifiers=[
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules'
]
)
|
try:
from setuptools import setup
except ImportError:
from distutils import setup
readme = open('README.rst', 'r')
README_TEXT = readme.read()
readme.close()
setup(
name='aniso8601',
version='0.50',
description='A library for parsing ISO 8601 strings.',
long_description=README_TEXT,
author='Brandon Nielsen',
author_email='nielsenb@jetfuse.net',
url='https://bitbucket.org/nielsenb/aniso8601',
packages=['aniso8601'],
classifiers=[
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules'
]
)
Switch to development of next version.try:
from setuptools import setup
except ImportError:
from distutils import setup
readme = open('README.rst', 'r')
README_TEXT = readme.read()
readme.close()
setup(
name='aniso8601',
version='0.60dev',
description='A library for parsing ISO 8601 strings.',
long_description=README_TEXT,
author='Brandon Nielsen',
author_email='nielsenb@jetfuse.net',
url='https://bitbucket.org/nielsenb/aniso8601',
packages=['aniso8601'],
classifiers=[
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules'
]
)
|
<commit_before>try:
from setuptools import setup
except ImportError:
from distutils import setup
readme = open('README.rst', 'r')
README_TEXT = readme.read()
readme.close()
setup(
name='aniso8601',
version='0.50',
description='A library for parsing ISO 8601 strings.',
long_description=README_TEXT,
author='Brandon Nielsen',
author_email='nielsenb@jetfuse.net',
url='https://bitbucket.org/nielsenb/aniso8601',
packages=['aniso8601'],
classifiers=[
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules'
]
)
<commit_msg>Switch to development of next version.<commit_after>try:
from setuptools import setup
except ImportError:
from distutils import setup
readme = open('README.rst', 'r')
README_TEXT = readme.read()
readme.close()
setup(
name='aniso8601',
version='0.60dev',
description='A library for parsing ISO 8601 strings.',
long_description=README_TEXT,
author='Brandon Nielsen',
author_email='nielsenb@jetfuse.net',
url='https://bitbucket.org/nielsenb/aniso8601',
packages=['aniso8601'],
classifiers=[
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules'
]
)
|
875848da1704726ab10a1d643b5fbdab91c81a81
|
setup.py
|
setup.py
|
#!/usr/bin/env python
"""Distutils setup file, used to install or test 'setuptools'"""
from setuptools import setup, find_packages, Require
from distutils.version import LooseVersion
setup(
name="setuptools",
version="0.3a1",
description="Distutils enhancements",
author="Phillip J. Eby",
author_email="peak@eby-sarna.com",
license="PSF or ZPL",
test_suite = 'setuptools.tests.test_suite',
requires = [
Require('Distutils','1.0.3','distutils',
"http://www.python.org/sigs/distutils-sig/"
),
Require('PyUnit', None, 'unittest', "http://pyunit.sf.net/"),
],
packages = find_packages(),
py_modules = ['pkg_resources', 'easy_install'],
scripts = ['easy_install.py']
)
|
#!/usr/bin/env python
"""Distutils setup file, used to install or test 'setuptools'"""
from setuptools import setup, find_packages, Require
from distutils.version import LooseVersion
setup(
name="setuptools",
version="0.3a2",
description="Distutils enhancements",
author="Phillip J. Eby",
author_email="peak@eby-sarna.com",
license="PSF or ZPL",
test_suite = 'setuptools.tests.test_suite',
requires = [
Require('Distutils','1.0.3','distutils',
"http://www.python.org/sigs/distutils-sig/"
),
Require('PyUnit', None, 'unittest', "http://pyunit.sf.net/"),
],
packages = find_packages(),
py_modules = ['pkg_resources', 'easy_install'],
scripts = ['easy_install.py']
)
|
Bump version to 0.3a2 for release
|
Bump version to 0.3a2 for release
--HG--
branch : setuptools
extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041026
|
Python
|
mit
|
pypa/setuptools,pypa/setuptools,pypa/setuptools
|
#!/usr/bin/env python
"""Distutils setup file, used to install or test 'setuptools'"""
from setuptools import setup, find_packages, Require
from distutils.version import LooseVersion
setup(
name="setuptools",
version="0.3a1",
description="Distutils enhancements",
author="Phillip J. Eby",
author_email="peak@eby-sarna.com",
license="PSF or ZPL",
test_suite = 'setuptools.tests.test_suite',
requires = [
Require('Distutils','1.0.3','distutils',
"http://www.python.org/sigs/distutils-sig/"
),
Require('PyUnit', None, 'unittest', "http://pyunit.sf.net/"),
],
packages = find_packages(),
py_modules = ['pkg_resources', 'easy_install'],
scripts = ['easy_install.py']
)
Bump version to 0.3a2 for release
--HG--
branch : setuptools
extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041026
|
#!/usr/bin/env python
"""Distutils setup file, used to install or test 'setuptools'"""
from setuptools import setup, find_packages, Require
from distutils.version import LooseVersion
setup(
name="setuptools",
version="0.3a2",
description="Distutils enhancements",
author="Phillip J. Eby",
author_email="peak@eby-sarna.com",
license="PSF or ZPL",
test_suite = 'setuptools.tests.test_suite',
requires = [
Require('Distutils','1.0.3','distutils',
"http://www.python.org/sigs/distutils-sig/"
),
Require('PyUnit', None, 'unittest', "http://pyunit.sf.net/"),
],
packages = find_packages(),
py_modules = ['pkg_resources', 'easy_install'],
scripts = ['easy_install.py']
)
|
<commit_before>#!/usr/bin/env python
"""Distutils setup file, used to install or test 'setuptools'"""
from setuptools import setup, find_packages, Require
from distutils.version import LooseVersion
setup(
name="setuptools",
version="0.3a1",
description="Distutils enhancements",
author="Phillip J. Eby",
author_email="peak@eby-sarna.com",
license="PSF or ZPL",
test_suite = 'setuptools.tests.test_suite',
requires = [
Require('Distutils','1.0.3','distutils',
"http://www.python.org/sigs/distutils-sig/"
),
Require('PyUnit', None, 'unittest', "http://pyunit.sf.net/"),
],
packages = find_packages(),
py_modules = ['pkg_resources', 'easy_install'],
scripts = ['easy_install.py']
)
<commit_msg>Bump version to 0.3a2 for release
--HG--
branch : setuptools
extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041026<commit_after>
|
#!/usr/bin/env python
"""Distutils setup file, used to install or test 'setuptools'"""
from setuptools import setup, find_packages, Require
from distutils.version import LooseVersion
setup(
name="setuptools",
version="0.3a2",
description="Distutils enhancements",
author="Phillip J. Eby",
author_email="peak@eby-sarna.com",
license="PSF or ZPL",
test_suite = 'setuptools.tests.test_suite',
requires = [
Require('Distutils','1.0.3','distutils',
"http://www.python.org/sigs/distutils-sig/"
),
Require('PyUnit', None, 'unittest', "http://pyunit.sf.net/"),
],
packages = find_packages(),
py_modules = ['pkg_resources', 'easy_install'],
scripts = ['easy_install.py']
)
|
#!/usr/bin/env python
"""Distutils setup file, used to install or test 'setuptools'"""
from setuptools import setup, find_packages, Require
from distutils.version import LooseVersion
setup(
name="setuptools",
version="0.3a1",
description="Distutils enhancements",
author="Phillip J. Eby",
author_email="peak@eby-sarna.com",
license="PSF or ZPL",
test_suite = 'setuptools.tests.test_suite',
requires = [
Require('Distutils','1.0.3','distutils',
"http://www.python.org/sigs/distutils-sig/"
),
Require('PyUnit', None, 'unittest', "http://pyunit.sf.net/"),
],
packages = find_packages(),
py_modules = ['pkg_resources', 'easy_install'],
scripts = ['easy_install.py']
)
Bump version to 0.3a2 for release
--HG--
branch : setuptools
extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041026#!/usr/bin/env python
"""Distutils setup file, used to install or test 'setuptools'"""
from setuptools import setup, find_packages, Require
from distutils.version import LooseVersion
setup(
name="setuptools",
version="0.3a2",
description="Distutils enhancements",
author="Phillip J. Eby",
author_email="peak@eby-sarna.com",
license="PSF or ZPL",
test_suite = 'setuptools.tests.test_suite',
requires = [
Require('Distutils','1.0.3','distutils',
"http://www.python.org/sigs/distutils-sig/"
),
Require('PyUnit', None, 'unittest', "http://pyunit.sf.net/"),
],
packages = find_packages(),
py_modules = ['pkg_resources', 'easy_install'],
scripts = ['easy_install.py']
)
|
<commit_before>#!/usr/bin/env python
"""Distutils setup file, used to install or test 'setuptools'"""
from setuptools import setup, find_packages, Require
from distutils.version import LooseVersion
setup(
name="setuptools",
version="0.3a1",
description="Distutils enhancements",
author="Phillip J. Eby",
author_email="peak@eby-sarna.com",
license="PSF or ZPL",
test_suite = 'setuptools.tests.test_suite',
requires = [
Require('Distutils','1.0.3','distutils',
"http://www.python.org/sigs/distutils-sig/"
),
Require('PyUnit', None, 'unittest', "http://pyunit.sf.net/"),
],
packages = find_packages(),
py_modules = ['pkg_resources', 'easy_install'],
scripts = ['easy_install.py']
)
<commit_msg>Bump version to 0.3a2 for release
--HG--
branch : setuptools
extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041026<commit_after>#!/usr/bin/env python
"""Distutils setup file, used to install or test 'setuptools'"""
from setuptools import setup, find_packages, Require
from distutils.version import LooseVersion
setup(
name="setuptools",
version="0.3a2",
description="Distutils enhancements",
author="Phillip J. Eby",
author_email="peak@eby-sarna.com",
license="PSF or ZPL",
test_suite = 'setuptools.tests.test_suite',
requires = [
Require('Distutils','1.0.3','distutils',
"http://www.python.org/sigs/distutils-sig/"
),
Require('PyUnit', None, 'unittest', "http://pyunit.sf.net/"),
],
packages = find_packages(),
py_modules = ['pkg_resources', 'easy_install'],
scripts = ['easy_install.py']
)
|
27758120f39c95d1040e7b6708808cc996363a3f
|
setup.py
|
setup.py
|
from distutils.core import setup
setup(
name='django-robots',
version=__import__('robots').__version__,
description='Robots exclusion application for Django, complementing Sitemaps.',
long_description=open('docs/overview.txt').read(),
author='Jannis Leidel',
author_email='jannis@leidel.info',
url='http://code.google.com/p/django-robots/',
download_url='http://github.com/jezdez/django-dbtemplates/zipball/0.5.4',
packages=['robots'],
package_dir={'dbtemplates': 'dbtemplates'},
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Framework :: Django',
]
)
|
from distutils.core import setup
setup(
name='django-robots',
version=__import__('robots').__version__,
description='Robots exclusion application for Django, complementing Sitemaps.',
long_description=open('docs/overview.txt').read(),
author='Jannis Leidel',
author_email='jannis@leidel.info',
url='http://code.google.com/p/django-robots/',
packages=['robots'],
package_dir={'dbtemplates': 'dbtemplates'},
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Framework :: Django',
]
)
|
Remove download URL since Github doesn't get his act together. Damnit
|
Remove download URL since Github doesn't get his act together. Damnit
committer: Jannis Leidel <9b7c7d158dc2d8ee5ad777a516c517e4cfb54547@leidel.info>
|
Python
|
bsd-3-clause
|
Jythoner/django-robots,Jythoner/django-robots
|
from distutils.core import setup
setup(
name='django-robots',
version=__import__('robots').__version__,
description='Robots exclusion application for Django, complementing Sitemaps.',
long_description=open('docs/overview.txt').read(),
author='Jannis Leidel',
author_email='jannis@leidel.info',
url='http://code.google.com/p/django-robots/',
download_url='http://github.com/jezdez/django-dbtemplates/zipball/0.5.4',
packages=['robots'],
package_dir={'dbtemplates': 'dbtemplates'},
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Framework :: Django',
]
)
Remove download URL since Github doesn't get his act together. Damnit
committer: Jannis Leidel <9b7c7d158dc2d8ee5ad777a516c517e4cfb54547@leidel.info>
|
from distutils.core import setup
setup(
name='django-robots',
version=__import__('robots').__version__,
description='Robots exclusion application for Django, complementing Sitemaps.',
long_description=open('docs/overview.txt').read(),
author='Jannis Leidel',
author_email='jannis@leidel.info',
url='http://code.google.com/p/django-robots/',
packages=['robots'],
package_dir={'dbtemplates': 'dbtemplates'},
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Framework :: Django',
]
)
|
<commit_before>from distutils.core import setup
setup(
name='django-robots',
version=__import__('robots').__version__,
description='Robots exclusion application for Django, complementing Sitemaps.',
long_description=open('docs/overview.txt').read(),
author='Jannis Leidel',
author_email='jannis@leidel.info',
url='http://code.google.com/p/django-robots/',
download_url='http://github.com/jezdez/django-dbtemplates/zipball/0.5.4',
packages=['robots'],
package_dir={'dbtemplates': 'dbtemplates'},
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Framework :: Django',
]
)
<commit_msg>Remove download URL since Github doesn't get his act together. Damnit
committer: Jannis Leidel <9b7c7d158dc2d8ee5ad777a516c517e4cfb54547@leidel.info><commit_after>
|
from distutils.core import setup
setup(
name='django-robots',
version=__import__('robots').__version__,
description='Robots exclusion application for Django, complementing Sitemaps.',
long_description=open('docs/overview.txt').read(),
author='Jannis Leidel',
author_email='jannis@leidel.info',
url='http://code.google.com/p/django-robots/',
packages=['robots'],
package_dir={'dbtemplates': 'dbtemplates'},
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Framework :: Django',
]
)
|
from distutils.core import setup
setup(
name='django-robots',
version=__import__('robots').__version__,
description='Robots exclusion application for Django, complementing Sitemaps.',
long_description=open('docs/overview.txt').read(),
author='Jannis Leidel',
author_email='jannis@leidel.info',
url='http://code.google.com/p/django-robots/',
download_url='http://github.com/jezdez/django-dbtemplates/zipball/0.5.4',
packages=['robots'],
package_dir={'dbtemplates': 'dbtemplates'},
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Framework :: Django',
]
)
Remove download URL since Github doesn't get his act together. Damnit
committer: Jannis Leidel <9b7c7d158dc2d8ee5ad777a516c517e4cfb54547@leidel.info>from distutils.core import setup
setup(
name='django-robots',
version=__import__('robots').__version__,
description='Robots exclusion application for Django, complementing Sitemaps.',
long_description=open('docs/overview.txt').read(),
author='Jannis Leidel',
author_email='jannis@leidel.info',
url='http://code.google.com/p/django-robots/',
packages=['robots'],
package_dir={'dbtemplates': 'dbtemplates'},
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Framework :: Django',
]
)
|
<commit_before>from distutils.core import setup
setup(
name='django-robots',
version=__import__('robots').__version__,
description='Robots exclusion application for Django, complementing Sitemaps.',
long_description=open('docs/overview.txt').read(),
author='Jannis Leidel',
author_email='jannis@leidel.info',
url='http://code.google.com/p/django-robots/',
download_url='http://github.com/jezdez/django-dbtemplates/zipball/0.5.4',
packages=['robots'],
package_dir={'dbtemplates': 'dbtemplates'},
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Framework :: Django',
]
)
<commit_msg>Remove download URL since Github doesn't get his act together. Damnit
committer: Jannis Leidel <9b7c7d158dc2d8ee5ad777a516c517e4cfb54547@leidel.info><commit_after>from distutils.core import setup
setup(
name='django-robots',
version=__import__('robots').__version__,
description='Robots exclusion application for Django, complementing Sitemaps.',
long_description=open('docs/overview.txt').read(),
author='Jannis Leidel',
author_email='jannis@leidel.info',
url='http://code.google.com/p/django-robots/',
packages=['robots'],
package_dir={'dbtemplates': 'dbtemplates'},
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Framework :: Django',
]
)
|
ccffe2f91298fe99b0c4903e38b6cb99b45474a5
|
setup.py
|
setup.py
|
import os
from os.path import relpath, join
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
def find_package_data(data_root, package_root):
files = []
for root, dirnames, filenames in os.walk(data_root):
for fn in filenames:
files.append(relpath(join(root, fn), package_root))
return files
setup(
name = "smarty",
version = "0.1.4",
author = "John Chodera, David Mobley, and others",
author_email = "john.chodera@choderalab.org",
description = ("Automated Bayesian atomtype sampling"),
license = "GNU Lesser General Public License (LGPL), Version 3",
keywords = "Bayesian atomtype sampling forcefield parameterization",
url = "http://github.com/open-forcefield-group/smarty",
packages=['smarty', 'smarty/tests', 'smarty/data'],
long_description=read('README.md'),
classifiers=[
"Development Status :: 3 - Alpha",
"Topic :: Utilities",
"License :: OSI Approved :: GNU Lesser General Public License (LGPL), Version 3",
],
entry_points={'console_scripts': ['smarty = smarty.cli_smarty:main', 'smirky = smarty.cli_smirky:main']},
package_data={'smarty': find_package_data('smarty/data', 'smarty')},
)
|
import os
from os.path import relpath, join
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
def find_package_data(data_root, package_root):
files = []
for root, dirnames, filenames in os.walk(data_root):
for fn in filenames:
files.append(relpath(join(root, fn), package_root))
return files
setup(
name = "smarty",
version = "0.1.5",
author = "John Chodera, David Mobley, and others",
author_email = "john.chodera@choderalab.org",
description = ("Automated Bayesian atomtype sampling"),
license = "GNU Lesser General Public License (LGPL), Version 3",
keywords = "Bayesian atomtype sampling forcefield parameterization",
url = "http://github.com/open-forcefield-group/smarty",
packages=['smarty', 'smarty/tests', 'smarty/data'],
long_description=read('README.md'),
classifiers=[
"Development Status :: 3 - Alpha",
"Topic :: Utilities",
"License :: OSI Approved :: GNU Lesser General Public License (LGPL), Version 3",
],
entry_points={'console_scripts': ['smarty = smarty.cli_smarty:main', 'smirky = smarty.cli_smirky:main']},
package_data={'smarty': find_package_data('smarty/data', 'smarty')},
)
|
Increment version number for release
|
Increment version number for release
|
Python
|
mit
|
open-forcefield-group/smarty,open-forcefield-group/smarty,open-forcefield-group/smarty
|
import os
from os.path import relpath, join
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
def find_package_data(data_root, package_root):
files = []
for root, dirnames, filenames in os.walk(data_root):
for fn in filenames:
files.append(relpath(join(root, fn), package_root))
return files
setup(
name = "smarty",
version = "0.1.4",
author = "John Chodera, David Mobley, and others",
author_email = "john.chodera@choderalab.org",
description = ("Automated Bayesian atomtype sampling"),
license = "GNU Lesser General Public License (LGPL), Version 3",
keywords = "Bayesian atomtype sampling forcefield parameterization",
url = "http://github.com/open-forcefield-group/smarty",
packages=['smarty', 'smarty/tests', 'smarty/data'],
long_description=read('README.md'),
classifiers=[
"Development Status :: 3 - Alpha",
"Topic :: Utilities",
"License :: OSI Approved :: GNU Lesser General Public License (LGPL), Version 3",
],
entry_points={'console_scripts': ['smarty = smarty.cli_smarty:main', 'smirky = smarty.cli_smirky:main']},
package_data={'smarty': find_package_data('smarty/data', 'smarty')},
)
Increment version number for release
|
import os
from os.path import relpath, join
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
def find_package_data(data_root, package_root):
files = []
for root, dirnames, filenames in os.walk(data_root):
for fn in filenames:
files.append(relpath(join(root, fn), package_root))
return files
setup(
name = "smarty",
version = "0.1.5",
author = "John Chodera, David Mobley, and others",
author_email = "john.chodera@choderalab.org",
description = ("Automated Bayesian atomtype sampling"),
license = "GNU Lesser General Public License (LGPL), Version 3",
keywords = "Bayesian atomtype sampling forcefield parameterization",
url = "http://github.com/open-forcefield-group/smarty",
packages=['smarty', 'smarty/tests', 'smarty/data'],
long_description=read('README.md'),
classifiers=[
"Development Status :: 3 - Alpha",
"Topic :: Utilities",
"License :: OSI Approved :: GNU Lesser General Public License (LGPL), Version 3",
],
entry_points={'console_scripts': ['smarty = smarty.cli_smarty:main', 'smirky = smarty.cli_smirky:main']},
package_data={'smarty': find_package_data('smarty/data', 'smarty')},
)
|
<commit_before>import os
from os.path import relpath, join
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
def find_package_data(data_root, package_root):
files = []
for root, dirnames, filenames in os.walk(data_root):
for fn in filenames:
files.append(relpath(join(root, fn), package_root))
return files
setup(
name = "smarty",
version = "0.1.4",
author = "John Chodera, David Mobley, and others",
author_email = "john.chodera@choderalab.org",
description = ("Automated Bayesian atomtype sampling"),
license = "GNU Lesser General Public License (LGPL), Version 3",
keywords = "Bayesian atomtype sampling forcefield parameterization",
url = "http://github.com/open-forcefield-group/smarty",
packages=['smarty', 'smarty/tests', 'smarty/data'],
long_description=read('README.md'),
classifiers=[
"Development Status :: 3 - Alpha",
"Topic :: Utilities",
"License :: OSI Approved :: GNU Lesser General Public License (LGPL), Version 3",
],
entry_points={'console_scripts': ['smarty = smarty.cli_smarty:main', 'smirky = smarty.cli_smirky:main']},
package_data={'smarty': find_package_data('smarty/data', 'smarty')},
)
<commit_msg>Increment version number for release<commit_after>
|
import os
from os.path import relpath, join
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
def find_package_data(data_root, package_root):
files = []
for root, dirnames, filenames in os.walk(data_root):
for fn in filenames:
files.append(relpath(join(root, fn), package_root))
return files
setup(
name = "smarty",
version = "0.1.5",
author = "John Chodera, David Mobley, and others",
author_email = "john.chodera@choderalab.org",
description = ("Automated Bayesian atomtype sampling"),
license = "GNU Lesser General Public License (LGPL), Version 3",
keywords = "Bayesian atomtype sampling forcefield parameterization",
url = "http://github.com/open-forcefield-group/smarty",
packages=['smarty', 'smarty/tests', 'smarty/data'],
long_description=read('README.md'),
classifiers=[
"Development Status :: 3 - Alpha",
"Topic :: Utilities",
"License :: OSI Approved :: GNU Lesser General Public License (LGPL), Version 3",
],
entry_points={'console_scripts': ['smarty = smarty.cli_smarty:main', 'smirky = smarty.cli_smirky:main']},
package_data={'smarty': find_package_data('smarty/data', 'smarty')},
)
|
import os
from os.path import relpath, join
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
def find_package_data(data_root, package_root):
files = []
for root, dirnames, filenames in os.walk(data_root):
for fn in filenames:
files.append(relpath(join(root, fn), package_root))
return files
setup(
name = "smarty",
version = "0.1.4",
author = "John Chodera, David Mobley, and others",
author_email = "john.chodera@choderalab.org",
description = ("Automated Bayesian atomtype sampling"),
license = "GNU Lesser General Public License (LGPL), Version 3",
keywords = "Bayesian atomtype sampling forcefield parameterization",
url = "http://github.com/open-forcefield-group/smarty",
packages=['smarty', 'smarty/tests', 'smarty/data'],
long_description=read('README.md'),
classifiers=[
"Development Status :: 3 - Alpha",
"Topic :: Utilities",
"License :: OSI Approved :: GNU Lesser General Public License (LGPL), Version 3",
],
entry_points={'console_scripts': ['smarty = smarty.cli_smarty:main', 'smirky = smarty.cli_smirky:main']},
package_data={'smarty': find_package_data('smarty/data', 'smarty')},
)
Increment version number for releaseimport os
from os.path import relpath, join
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
def find_package_data(data_root, package_root):
files = []
for root, dirnames, filenames in os.walk(data_root):
for fn in filenames:
files.append(relpath(join(root, fn), package_root))
return files
setup(
name = "smarty",
version = "0.1.5",
author = "John Chodera, David Mobley, and others",
author_email = "john.chodera@choderalab.org",
description = ("Automated Bayesian atomtype sampling"),
license = "GNU Lesser General Public License (LGPL), Version 3",
keywords = "Bayesian atomtype sampling forcefield parameterization",
url = "http://github.com/open-forcefield-group/smarty",
packages=['smarty', 'smarty/tests', 'smarty/data'],
long_description=read('README.md'),
classifiers=[
"Development Status :: 3 - Alpha",
"Topic :: Utilities",
"License :: OSI Approved :: GNU Lesser General Public License (LGPL), Version 3",
],
entry_points={'console_scripts': ['smarty = smarty.cli_smarty:main', 'smirky = smarty.cli_smirky:main']},
package_data={'smarty': find_package_data('smarty/data', 'smarty')},
)
|
<commit_before>import os
from os.path import relpath, join
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
def find_package_data(data_root, package_root):
files = []
for root, dirnames, filenames in os.walk(data_root):
for fn in filenames:
files.append(relpath(join(root, fn), package_root))
return files
setup(
name = "smarty",
version = "0.1.4",
author = "John Chodera, David Mobley, and others",
author_email = "john.chodera@choderalab.org",
description = ("Automated Bayesian atomtype sampling"),
license = "GNU Lesser General Public License (LGPL), Version 3",
keywords = "Bayesian atomtype sampling forcefield parameterization",
url = "http://github.com/open-forcefield-group/smarty",
packages=['smarty', 'smarty/tests', 'smarty/data'],
long_description=read('README.md'),
classifiers=[
"Development Status :: 3 - Alpha",
"Topic :: Utilities",
"License :: OSI Approved :: GNU Lesser General Public License (LGPL), Version 3",
],
entry_points={'console_scripts': ['smarty = smarty.cli_smarty:main', 'smirky = smarty.cli_smirky:main']},
package_data={'smarty': find_package_data('smarty/data', 'smarty')},
)
<commit_msg>Increment version number for release<commit_after>import os
from os.path import relpath, join
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
def find_package_data(data_root, package_root):
files = []
for root, dirnames, filenames in os.walk(data_root):
for fn in filenames:
files.append(relpath(join(root, fn), package_root))
return files
setup(
name = "smarty",
version = "0.1.5",
author = "John Chodera, David Mobley, and others",
author_email = "john.chodera@choderalab.org",
description = ("Automated Bayesian atomtype sampling"),
license = "GNU Lesser General Public License (LGPL), Version 3",
keywords = "Bayesian atomtype sampling forcefield parameterization",
url = "http://github.com/open-forcefield-group/smarty",
packages=['smarty', 'smarty/tests', 'smarty/data'],
long_description=read('README.md'),
classifiers=[
"Development Status :: 3 - Alpha",
"Topic :: Utilities",
"License :: OSI Approved :: GNU Lesser General Public License (LGPL), Version 3",
],
entry_points={'console_scripts': ['smarty = smarty.cli_smarty:main', 'smirky = smarty.cli_smirky:main']},
package_data={'smarty': find_package_data('smarty/data', 'smarty')},
)
|
08a9b37978481d68727c0886208ecd2e376e5248
|
setup.py
|
setup.py
|
from setuptools import setup
try:
readme = open("README.rst")
long_description = str(readme.read())
finally:
readme.close()
setup(name='itolapi',
version='1.1.2',
description='API for interacting with itol.embl.de',
long_description=long_description,
url='http://github.com/albertyw/itolapi',
author='Albert Wang',
author_email='albertyw@mit.edu',
license='MIT',
packages=['itolapi'],
install_requires=[
'urllib2_file==0.2.1',
],
scripts=['itolapi/Itol.py', 'itolapi/ItolExport.py'],
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Topic :: Scientific/Engineering :: Bio-Informatics',
],
)
|
from setuptools import setup
try:
readme = open("README.rst")
long_description = str(readme.read())
finally:
readme.close()
setup(name='itolapi',
version='1.1.2',
description='API for interacting with itol.embl.de',
long_description=long_description,
url='http://github.com/albertyw/itolapi',
author='Albert Wang',
author_email='albertyw@mit.edu',
license='MIT',
packages=['itolapi'],
install_requires=[
'urllib2_file==0.2.1',
],
scripts=['itolapi/Itol.py', 'itolapi/ItolExport.py'],
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Programming Language :: Python :: 2 :: Only',
'Topic :: Scientific/Engineering :: Bio-Informatics',
],
)
|
Add Python 2 trove classifier
|
Add Python 2 trove classifier
|
Python
|
mit
|
albertyw/itolapi
|
from setuptools import setup
try:
readme = open("README.rst")
long_description = str(readme.read())
finally:
readme.close()
setup(name='itolapi',
version='1.1.2',
description='API for interacting with itol.embl.de',
long_description=long_description,
url='http://github.com/albertyw/itolapi',
author='Albert Wang',
author_email='albertyw@mit.edu',
license='MIT',
packages=['itolapi'],
install_requires=[
'urllib2_file==0.2.1',
],
scripts=['itolapi/Itol.py', 'itolapi/ItolExport.py'],
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Topic :: Scientific/Engineering :: Bio-Informatics',
],
)
Add Python 2 trove classifier
|
from setuptools import setup
try:
readme = open("README.rst")
long_description = str(readme.read())
finally:
readme.close()
setup(name='itolapi',
version='1.1.2',
description='API for interacting with itol.embl.de',
long_description=long_description,
url='http://github.com/albertyw/itolapi',
author='Albert Wang',
author_email='albertyw@mit.edu',
license='MIT',
packages=['itolapi'],
install_requires=[
'urllib2_file==0.2.1',
],
scripts=['itolapi/Itol.py', 'itolapi/ItolExport.py'],
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Programming Language :: Python :: 2 :: Only',
'Topic :: Scientific/Engineering :: Bio-Informatics',
],
)
|
<commit_before>from setuptools import setup
try:
readme = open("README.rst")
long_description = str(readme.read())
finally:
readme.close()
setup(name='itolapi',
version='1.1.2',
description='API for interacting with itol.embl.de',
long_description=long_description,
url='http://github.com/albertyw/itolapi',
author='Albert Wang',
author_email='albertyw@mit.edu',
license='MIT',
packages=['itolapi'],
install_requires=[
'urllib2_file==0.2.1',
],
scripts=['itolapi/Itol.py', 'itolapi/ItolExport.py'],
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Topic :: Scientific/Engineering :: Bio-Informatics',
],
)
<commit_msg>Add Python 2 trove classifier<commit_after>
|
from setuptools import setup
try:
readme = open("README.rst")
long_description = str(readme.read())
finally:
readme.close()
setup(name='itolapi',
version='1.1.2',
description='API for interacting with itol.embl.de',
long_description=long_description,
url='http://github.com/albertyw/itolapi',
author='Albert Wang',
author_email='albertyw@mit.edu',
license='MIT',
packages=['itolapi'],
install_requires=[
'urllib2_file==0.2.1',
],
scripts=['itolapi/Itol.py', 'itolapi/ItolExport.py'],
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Programming Language :: Python :: 2 :: Only',
'Topic :: Scientific/Engineering :: Bio-Informatics',
],
)
|
from setuptools import setup
try:
readme = open("README.rst")
long_description = str(readme.read())
finally:
readme.close()
setup(name='itolapi',
version='1.1.2',
description='API for interacting with itol.embl.de',
long_description=long_description,
url='http://github.com/albertyw/itolapi',
author='Albert Wang',
author_email='albertyw@mit.edu',
license='MIT',
packages=['itolapi'],
install_requires=[
'urllib2_file==0.2.1',
],
scripts=['itolapi/Itol.py', 'itolapi/ItolExport.py'],
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Topic :: Scientific/Engineering :: Bio-Informatics',
],
)
Add Python 2 trove classifierfrom setuptools import setup
try:
readme = open("README.rst")
long_description = str(readme.read())
finally:
readme.close()
setup(name='itolapi',
version='1.1.2',
description='API for interacting with itol.embl.de',
long_description=long_description,
url='http://github.com/albertyw/itolapi',
author='Albert Wang',
author_email='albertyw@mit.edu',
license='MIT',
packages=['itolapi'],
install_requires=[
'urllib2_file==0.2.1',
],
scripts=['itolapi/Itol.py', 'itolapi/ItolExport.py'],
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Programming Language :: Python :: 2 :: Only',
'Topic :: Scientific/Engineering :: Bio-Informatics',
],
)
|
<commit_before>from setuptools import setup
try:
readme = open("README.rst")
long_description = str(readme.read())
finally:
readme.close()
setup(name='itolapi',
version='1.1.2',
description='API for interacting with itol.embl.de',
long_description=long_description,
url='http://github.com/albertyw/itolapi',
author='Albert Wang',
author_email='albertyw@mit.edu',
license='MIT',
packages=['itolapi'],
install_requires=[
'urllib2_file==0.2.1',
],
scripts=['itolapi/Itol.py', 'itolapi/ItolExport.py'],
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Topic :: Scientific/Engineering :: Bio-Informatics',
],
)
<commit_msg>Add Python 2 trove classifier<commit_after>from setuptools import setup
try:
readme = open("README.rst")
long_description = str(readme.read())
finally:
readme.close()
setup(name='itolapi',
version='1.1.2',
description='API for interacting with itol.embl.de',
long_description=long_description,
url='http://github.com/albertyw/itolapi',
author='Albert Wang',
author_email='albertyw@mit.edu',
license='MIT',
packages=['itolapi'],
install_requires=[
'urllib2_file==0.2.1',
],
scripts=['itolapi/Itol.py', 'itolapi/ItolExport.py'],
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Programming Language :: Python :: 2 :: Only',
'Topic :: Scientific/Engineering :: Bio-Informatics',
],
)
|
f6a780491eef74631cd5a55569188b9930e31b04
|
setup.py
|
setup.py
|
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
from setuptools import setup
PACKAGE_VERSION = '0.1'
deps = ['fxos-appgen>=0.2.7',
'marionette_client>=0.7.1.1',
'marionette_extension >= 0.1',
'mozdevice >= 0.33',
'mozlog >= 1.6',
'moznetwork >= 0.24',
'mozprocess >= 0.18',
'wptserve >= 1.0.1',
'wptrunner >= 0.2.4']
setup(name='fxos-certsuite',
version=PACKAGE_VERSION,
description='Certification suite for FirefoxOS',
classifiers=[],
keywords='mozilla',
author='Mozilla Automation and Testing Team',
author_email='tools@lists.mozilla.org',
url='https://github.com/mozilla-b2g/fxos-certsuite',
license='MPL',
packages=['certsuite'],
include_package_data=True,
zip_safe=False,
install_requires=deps,
entry_points="""
# -*- Entry points: -*-
[console_scripts]
runcertsuite = certsuite:harness_main
cert = certsuite:certcli
""")
|
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
from setuptools import setup
PACKAGE_VERSION = '0.1'
deps = ['fxos-appgen>=0.2.7',
'marionette_client>=0.7.1.1',
'marionette_extension >= 0.1',
'mozdevice >= 0.33',
'mozlog >= 1.6',
'moznetwork >= 0.24',
'mozprocess >= 0.18',
'wptserve >= 1.0.1',
'wptrunner >= 0.2.6']
setup(name='fxos-certsuite',
version=PACKAGE_VERSION,
description='Certification suite for FirefoxOS',
classifiers=[],
keywords='mozilla',
author='Mozilla Automation and Testing Team',
author_email='tools@lists.mozilla.org',
url='https://github.com/mozilla-b2g/fxos-certsuite',
license='MPL',
packages=['certsuite'],
include_package_data=True,
zip_safe=False,
install_requires=deps,
entry_points="""
# -*- Entry points: -*-
[console_scripts]
runcertsuite = certsuite:harness_main
cert = certsuite:certcli
""")
|
Update required version of wptrunner.
|
Update required version of wptrunner.
|
Python
|
mpl-2.0
|
cr/fxos-certsuite,ypwalter/fxos-certsuite,mozilla-b2g/fxos-certsuite,Conjuror/fxos-certsuite,askeing/fxos-certsuite,askeing/fxos-certsuite,ShakoHo/fxos-certsuite,oouyang/fxos-certsuite,mozilla-b2g/fxos-certsuite,cr/fxos-certsuite,cr/fxos-certsuite,cr/fxos-certsuite,ShakoHo/fxos-certsuite,cr/fxos-certsuite,mozilla-b2g/fxos-certsuite,ypwalter/fxos-certsuite,oouyang/fxos-certsuite,ypwalter/fxos-certsuite,mozilla-b2g/fxos-certsuite,mozilla-b2g/fxos-certsuite,mozilla-b2g/fxos-certsuite,cr/fxos-certsuite,askeing/fxos-certsuite,ypwalter/fxos-certsuite,Conjuror/fxos-certsuite,askeing/fxos-certsuite,Conjuror/fxos-certsuite,ypwalter/fxos-certsuite,ShakoHo/fxos-certsuite,mozilla-b2g/fxos-certsuite,Conjuror/fxos-certsuite,askeing/fxos-certsuite,Conjuror/fxos-certsuite,ypwalter/fxos-certsuite,ShakoHo/fxos-certsuite,Conjuror/fxos-certsuite,askeing/fxos-certsuite,Conjuror/fxos-certsuite,oouyang/fxos-certsuite,oouyang/fxos-certsuite,oouyang/fxos-certsuite,ypwalter/fxos-certsuite,oouyang/fxos-certsuite,ShakoHo/fxos-certsuite,cr/fxos-certsuite,ShakoHo/fxos-certsuite,askeing/fxos-certsuite,ShakoHo/fxos-certsuite,oouyang/fxos-certsuite
|
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
from setuptools import setup
PACKAGE_VERSION = '0.1'
deps = ['fxos-appgen>=0.2.7',
'marionette_client>=0.7.1.1',
'marionette_extension >= 0.1',
'mozdevice >= 0.33',
'mozlog >= 1.6',
'moznetwork >= 0.24',
'mozprocess >= 0.18',
'wptserve >= 1.0.1',
'wptrunner >= 0.2.4']
setup(name='fxos-certsuite',
version=PACKAGE_VERSION,
description='Certification suite for FirefoxOS',
classifiers=[],
keywords='mozilla',
author='Mozilla Automation and Testing Team',
author_email='tools@lists.mozilla.org',
url='https://github.com/mozilla-b2g/fxos-certsuite',
license='MPL',
packages=['certsuite'],
include_package_data=True,
zip_safe=False,
install_requires=deps,
entry_points="""
# -*- Entry points: -*-
[console_scripts]
runcertsuite = certsuite:harness_main
cert = certsuite:certcli
""")
Update required version of wptrunner.
|
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
from setuptools import setup
PACKAGE_VERSION = '0.1'
deps = ['fxos-appgen>=0.2.7',
'marionette_client>=0.7.1.1',
'marionette_extension >= 0.1',
'mozdevice >= 0.33',
'mozlog >= 1.6',
'moznetwork >= 0.24',
'mozprocess >= 0.18',
'wptserve >= 1.0.1',
'wptrunner >= 0.2.6']
setup(name='fxos-certsuite',
version=PACKAGE_VERSION,
description='Certification suite for FirefoxOS',
classifiers=[],
keywords='mozilla',
author='Mozilla Automation and Testing Team',
author_email='tools@lists.mozilla.org',
url='https://github.com/mozilla-b2g/fxos-certsuite',
license='MPL',
packages=['certsuite'],
include_package_data=True,
zip_safe=False,
install_requires=deps,
entry_points="""
# -*- Entry points: -*-
[console_scripts]
runcertsuite = certsuite:harness_main
cert = certsuite:certcli
""")
|
<commit_before># This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
from setuptools import setup
PACKAGE_VERSION = '0.1'
deps = ['fxos-appgen>=0.2.7',
'marionette_client>=0.7.1.1',
'marionette_extension >= 0.1',
'mozdevice >= 0.33',
'mozlog >= 1.6',
'moznetwork >= 0.24',
'mozprocess >= 0.18',
'wptserve >= 1.0.1',
'wptrunner >= 0.2.4']
setup(name='fxos-certsuite',
version=PACKAGE_VERSION,
description='Certification suite for FirefoxOS',
classifiers=[],
keywords='mozilla',
author='Mozilla Automation and Testing Team',
author_email='tools@lists.mozilla.org',
url='https://github.com/mozilla-b2g/fxos-certsuite',
license='MPL',
packages=['certsuite'],
include_package_data=True,
zip_safe=False,
install_requires=deps,
entry_points="""
# -*- Entry points: -*-
[console_scripts]
runcertsuite = certsuite:harness_main
cert = certsuite:certcli
""")
<commit_msg>Update required version of wptrunner.<commit_after>
|
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
from setuptools import setup
PACKAGE_VERSION = '0.1'
deps = ['fxos-appgen>=0.2.7',
'marionette_client>=0.7.1.1',
'marionette_extension >= 0.1',
'mozdevice >= 0.33',
'mozlog >= 1.6',
'moznetwork >= 0.24',
'mozprocess >= 0.18',
'wptserve >= 1.0.1',
'wptrunner >= 0.2.6']
setup(name='fxos-certsuite',
version=PACKAGE_VERSION,
description='Certification suite for FirefoxOS',
classifiers=[],
keywords='mozilla',
author='Mozilla Automation and Testing Team',
author_email='tools@lists.mozilla.org',
url='https://github.com/mozilla-b2g/fxos-certsuite',
license='MPL',
packages=['certsuite'],
include_package_data=True,
zip_safe=False,
install_requires=deps,
entry_points="""
# -*- Entry points: -*-
[console_scripts]
runcertsuite = certsuite:harness_main
cert = certsuite:certcli
""")
|
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
from setuptools import setup
PACKAGE_VERSION = '0.1'
deps = ['fxos-appgen>=0.2.7',
'marionette_client>=0.7.1.1',
'marionette_extension >= 0.1',
'mozdevice >= 0.33',
'mozlog >= 1.6',
'moznetwork >= 0.24',
'mozprocess >= 0.18',
'wptserve >= 1.0.1',
'wptrunner >= 0.2.4']
setup(name='fxos-certsuite',
version=PACKAGE_VERSION,
description='Certification suite for FirefoxOS',
classifiers=[],
keywords='mozilla',
author='Mozilla Automation and Testing Team',
author_email='tools@lists.mozilla.org',
url='https://github.com/mozilla-b2g/fxos-certsuite',
license='MPL',
packages=['certsuite'],
include_package_data=True,
zip_safe=False,
install_requires=deps,
entry_points="""
# -*- Entry points: -*-
[console_scripts]
runcertsuite = certsuite:harness_main
cert = certsuite:certcli
""")
Update required version of wptrunner.# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
from setuptools import setup
PACKAGE_VERSION = '0.1'
deps = ['fxos-appgen>=0.2.7',
'marionette_client>=0.7.1.1',
'marionette_extension >= 0.1',
'mozdevice >= 0.33',
'mozlog >= 1.6',
'moznetwork >= 0.24',
'mozprocess >= 0.18',
'wptserve >= 1.0.1',
'wptrunner >= 0.2.6']
setup(name='fxos-certsuite',
version=PACKAGE_VERSION,
description='Certification suite for FirefoxOS',
classifiers=[],
keywords='mozilla',
author='Mozilla Automation and Testing Team',
author_email='tools@lists.mozilla.org',
url='https://github.com/mozilla-b2g/fxos-certsuite',
license='MPL',
packages=['certsuite'],
include_package_data=True,
zip_safe=False,
install_requires=deps,
entry_points="""
# -*- Entry points: -*-
[console_scripts]
runcertsuite = certsuite:harness_main
cert = certsuite:certcli
""")
|
<commit_before># This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
from setuptools import setup
PACKAGE_VERSION = '0.1'
deps = ['fxos-appgen>=0.2.7',
'marionette_client>=0.7.1.1',
'marionette_extension >= 0.1',
'mozdevice >= 0.33',
'mozlog >= 1.6',
'moznetwork >= 0.24',
'mozprocess >= 0.18',
'wptserve >= 1.0.1',
'wptrunner >= 0.2.4']
setup(name='fxos-certsuite',
version=PACKAGE_VERSION,
description='Certification suite for FirefoxOS',
classifiers=[],
keywords='mozilla',
author='Mozilla Automation and Testing Team',
author_email='tools@lists.mozilla.org',
url='https://github.com/mozilla-b2g/fxos-certsuite',
license='MPL',
packages=['certsuite'],
include_package_data=True,
zip_safe=False,
install_requires=deps,
entry_points="""
# -*- Entry points: -*-
[console_scripts]
runcertsuite = certsuite:harness_main
cert = certsuite:certcli
""")
<commit_msg>Update required version of wptrunner.<commit_after># This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
from setuptools import setup
PACKAGE_VERSION = '0.1'
deps = ['fxos-appgen>=0.2.7',
'marionette_client>=0.7.1.1',
'marionette_extension >= 0.1',
'mozdevice >= 0.33',
'mozlog >= 1.6',
'moznetwork >= 0.24',
'mozprocess >= 0.18',
'wptserve >= 1.0.1',
'wptrunner >= 0.2.6']
setup(name='fxos-certsuite',
version=PACKAGE_VERSION,
description='Certification suite for FirefoxOS',
classifiers=[],
keywords='mozilla',
author='Mozilla Automation and Testing Team',
author_email='tools@lists.mozilla.org',
url='https://github.com/mozilla-b2g/fxos-certsuite',
license='MPL',
packages=['certsuite'],
include_package_data=True,
zip_safe=False,
install_requires=deps,
entry_points="""
# -*- Entry points: -*-
[console_scripts]
runcertsuite = certsuite:harness_main
cert = certsuite:certcli
""")
|
258ccc85ba73dbfaff26df798681c17303697648
|
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.19.0",
packages=find_packages(),
scripts=["scripts/bentoo-generator.py", "scripts/bentoo-runner.py",
"scripts/bentoo-collector.py", "scripts/bentoo-analyser.py",
"scripts/bentoo-aggregator.py", "scripts/bentoo-metric.py",
"scripts/bentoo-quickstart.py", "scripts/bentoo-calltree.py",
"scripts/bentoo-merge.py", "scripts/bentoo-calltree-analyser.py",
"scripts/bentoo-viewer.py", "scripts/bentoo-svgconvert.py",
"scripts/bentoo-confreader.py"],
package_data={
'': ['*.adoc', '*.rst', '*.md']
},
author="Zhang YANG",
author_email="zyangmath@gmail.com",
license="PSF",
keywords="Benchmark;Performance Analysis",
url="http://github.com/ProgramFan/bentoo")
|
#!/usr/bin/env python
# coding: utf-8
from setuptools import setup, find_packages
setup(
name="bentoo",
description="Benchmarking tools",
version="0.20.0_dev",
packages=find_packages(),
scripts=["scripts/bentoo-generator.py", "scripts/bentoo-runner.py",
"scripts/bentoo-collector.py", "scripts/bentoo-analyser.py",
"scripts/bentoo-aggregator.py", "scripts/bentoo-metric.py",
"scripts/bentoo-quickstart.py", "scripts/bentoo-calltree.py",
"scripts/bentoo-merge.py", "scripts/bentoo-calltree-analyser.py",
"scripts/bentoo-viewer.py", "scripts/bentoo-svgconvert.py",
"scripts/bentoo-confreader.py"],
package_data={
'': ['*.adoc', '*.rst', '*.md']
},
author="Zhang YANG",
author_email="zyangmath@gmail.com",
license="PSF",
keywords="Benchmark;Performance Analysis",
url="http://github.com/ProgramFan/bentoo")
|
Prepare for next dev cycle
|
Prepare for next dev cycle
|
Python
|
mit
|
ProgramFan/bentoo
|
#!/usr/bin/env python
# coding: utf-8
from setuptools import setup, find_packages
setup(
name="bentoo",
description="Benchmarking tools",
version="0.19.0",
packages=find_packages(),
scripts=["scripts/bentoo-generator.py", "scripts/bentoo-runner.py",
"scripts/bentoo-collector.py", "scripts/bentoo-analyser.py",
"scripts/bentoo-aggregator.py", "scripts/bentoo-metric.py",
"scripts/bentoo-quickstart.py", "scripts/bentoo-calltree.py",
"scripts/bentoo-merge.py", "scripts/bentoo-calltree-analyser.py",
"scripts/bentoo-viewer.py", "scripts/bentoo-svgconvert.py",
"scripts/bentoo-confreader.py"],
package_data={
'': ['*.adoc', '*.rst', '*.md']
},
author="Zhang YANG",
author_email="zyangmath@gmail.com",
license="PSF",
keywords="Benchmark;Performance Analysis",
url="http://github.com/ProgramFan/bentoo")
Prepare for next dev cycle
|
#!/usr/bin/env python
# coding: utf-8
from setuptools import setup, find_packages
setup(
name="bentoo",
description="Benchmarking tools",
version="0.20.0_dev",
packages=find_packages(),
scripts=["scripts/bentoo-generator.py", "scripts/bentoo-runner.py",
"scripts/bentoo-collector.py", "scripts/bentoo-analyser.py",
"scripts/bentoo-aggregator.py", "scripts/bentoo-metric.py",
"scripts/bentoo-quickstart.py", "scripts/bentoo-calltree.py",
"scripts/bentoo-merge.py", "scripts/bentoo-calltree-analyser.py",
"scripts/bentoo-viewer.py", "scripts/bentoo-svgconvert.py",
"scripts/bentoo-confreader.py"],
package_data={
'': ['*.adoc', '*.rst', '*.md']
},
author="Zhang YANG",
author_email="zyangmath@gmail.com",
license="PSF",
keywords="Benchmark;Performance Analysis",
url="http://github.com/ProgramFan/bentoo")
|
<commit_before>#!/usr/bin/env python
# coding: utf-8
from setuptools import setup, find_packages
setup(
name="bentoo",
description="Benchmarking tools",
version="0.19.0",
packages=find_packages(),
scripts=["scripts/bentoo-generator.py", "scripts/bentoo-runner.py",
"scripts/bentoo-collector.py", "scripts/bentoo-analyser.py",
"scripts/bentoo-aggregator.py", "scripts/bentoo-metric.py",
"scripts/bentoo-quickstart.py", "scripts/bentoo-calltree.py",
"scripts/bentoo-merge.py", "scripts/bentoo-calltree-analyser.py",
"scripts/bentoo-viewer.py", "scripts/bentoo-svgconvert.py",
"scripts/bentoo-confreader.py"],
package_data={
'': ['*.adoc', '*.rst', '*.md']
},
author="Zhang YANG",
author_email="zyangmath@gmail.com",
license="PSF",
keywords="Benchmark;Performance Analysis",
url="http://github.com/ProgramFan/bentoo")
<commit_msg>Prepare for next dev cycle<commit_after>
|
#!/usr/bin/env python
# coding: utf-8
from setuptools import setup, find_packages
setup(
name="bentoo",
description="Benchmarking tools",
version="0.20.0_dev",
packages=find_packages(),
scripts=["scripts/bentoo-generator.py", "scripts/bentoo-runner.py",
"scripts/bentoo-collector.py", "scripts/bentoo-analyser.py",
"scripts/bentoo-aggregator.py", "scripts/bentoo-metric.py",
"scripts/bentoo-quickstart.py", "scripts/bentoo-calltree.py",
"scripts/bentoo-merge.py", "scripts/bentoo-calltree-analyser.py",
"scripts/bentoo-viewer.py", "scripts/bentoo-svgconvert.py",
"scripts/bentoo-confreader.py"],
package_data={
'': ['*.adoc', '*.rst', '*.md']
},
author="Zhang YANG",
author_email="zyangmath@gmail.com",
license="PSF",
keywords="Benchmark;Performance Analysis",
url="http://github.com/ProgramFan/bentoo")
|
#!/usr/bin/env python
# coding: utf-8
from setuptools import setup, find_packages
setup(
name="bentoo",
description="Benchmarking tools",
version="0.19.0",
packages=find_packages(),
scripts=["scripts/bentoo-generator.py", "scripts/bentoo-runner.py",
"scripts/bentoo-collector.py", "scripts/bentoo-analyser.py",
"scripts/bentoo-aggregator.py", "scripts/bentoo-metric.py",
"scripts/bentoo-quickstart.py", "scripts/bentoo-calltree.py",
"scripts/bentoo-merge.py", "scripts/bentoo-calltree-analyser.py",
"scripts/bentoo-viewer.py", "scripts/bentoo-svgconvert.py",
"scripts/bentoo-confreader.py"],
package_data={
'': ['*.adoc', '*.rst', '*.md']
},
author="Zhang YANG",
author_email="zyangmath@gmail.com",
license="PSF",
keywords="Benchmark;Performance Analysis",
url="http://github.com/ProgramFan/bentoo")
Prepare for next dev cycle#!/usr/bin/env python
# coding: utf-8
from setuptools import setup, find_packages
setup(
name="bentoo",
description="Benchmarking tools",
version="0.20.0_dev",
packages=find_packages(),
scripts=["scripts/bentoo-generator.py", "scripts/bentoo-runner.py",
"scripts/bentoo-collector.py", "scripts/bentoo-analyser.py",
"scripts/bentoo-aggregator.py", "scripts/bentoo-metric.py",
"scripts/bentoo-quickstart.py", "scripts/bentoo-calltree.py",
"scripts/bentoo-merge.py", "scripts/bentoo-calltree-analyser.py",
"scripts/bentoo-viewer.py", "scripts/bentoo-svgconvert.py",
"scripts/bentoo-confreader.py"],
package_data={
'': ['*.adoc', '*.rst', '*.md']
},
author="Zhang YANG",
author_email="zyangmath@gmail.com",
license="PSF",
keywords="Benchmark;Performance Analysis",
url="http://github.com/ProgramFan/bentoo")
|
<commit_before>#!/usr/bin/env python
# coding: utf-8
from setuptools import setup, find_packages
setup(
name="bentoo",
description="Benchmarking tools",
version="0.19.0",
packages=find_packages(),
scripts=["scripts/bentoo-generator.py", "scripts/bentoo-runner.py",
"scripts/bentoo-collector.py", "scripts/bentoo-analyser.py",
"scripts/bentoo-aggregator.py", "scripts/bentoo-metric.py",
"scripts/bentoo-quickstart.py", "scripts/bentoo-calltree.py",
"scripts/bentoo-merge.py", "scripts/bentoo-calltree-analyser.py",
"scripts/bentoo-viewer.py", "scripts/bentoo-svgconvert.py",
"scripts/bentoo-confreader.py"],
package_data={
'': ['*.adoc', '*.rst', '*.md']
},
author="Zhang YANG",
author_email="zyangmath@gmail.com",
license="PSF",
keywords="Benchmark;Performance Analysis",
url="http://github.com/ProgramFan/bentoo")
<commit_msg>Prepare for next dev cycle<commit_after>#!/usr/bin/env python
# coding: utf-8
from setuptools import setup, find_packages
setup(
name="bentoo",
description="Benchmarking tools",
version="0.20.0_dev",
packages=find_packages(),
scripts=["scripts/bentoo-generator.py", "scripts/bentoo-runner.py",
"scripts/bentoo-collector.py", "scripts/bentoo-analyser.py",
"scripts/bentoo-aggregator.py", "scripts/bentoo-metric.py",
"scripts/bentoo-quickstart.py", "scripts/bentoo-calltree.py",
"scripts/bentoo-merge.py", "scripts/bentoo-calltree-analyser.py",
"scripts/bentoo-viewer.py", "scripts/bentoo-svgconvert.py",
"scripts/bentoo-confreader.py"],
package_data={
'': ['*.adoc', '*.rst', '*.md']
},
author="Zhang YANG",
author_email="zyangmath@gmail.com",
license="PSF",
keywords="Benchmark;Performance Analysis",
url="http://github.com/ProgramFan/bentoo")
|
a9864423caaba3c87003fdee69610591cf8eb15c
|
setup.py
|
setup.py
|
#!/usr/bin/env python
from distutils.core import setup
LONG_DESCRIPTION = open('README.md', 'r').read()
setup(name='captricity-python-client',
version='0.1',
description='Python client to access Captricity API',
url='https://github.com/Captricity/captools',
author='Captricity, Inc',
author_email='support@captricity.com',
classifiers=[
"Programming Language :: Python",
"License :: OSI Approved :: MIT License",
"Operating System :: Linux, Mac OS X",
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
],
long_description = LONG_DESCRIPTION,
packages=['captools', 'captools.api'],
package_data={'captools.api': ['img/*.png']})
|
#!/usr/bin/env python
from distutils.core import setup
LONG_DESCRIPTION = open('README.md', 'r').read()
setup(name='captricity-python-client',
version='0.11',
description='Python client to access Captricity API',
url='https://github.com/Captricity/captools',
author='Captricity, Inc',
author_email='support@captricity.com',
classifiers=[
"Programming Language :: Python",
"License :: OSI Approved :: MIT License",
"Operating System :: Linux, Mac OS X",
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
],
long_description = LONG_DESCRIPTION,
packages=['captools', 'captools.api'],
package_data={'captools.api': ['img/*.png']})
|
Increment version number so pip will install the newest version
|
Increment version number so pip will install the newest version
|
Python
|
mit
|
Captricity/captools
|
#!/usr/bin/env python
from distutils.core import setup
LONG_DESCRIPTION = open('README.md', 'r').read()
setup(name='captricity-python-client',
version='0.1',
description='Python client to access Captricity API',
url='https://github.com/Captricity/captools',
author='Captricity, Inc',
author_email='support@captricity.com',
classifiers=[
"Programming Language :: Python",
"License :: OSI Approved :: MIT License",
"Operating System :: Linux, Mac OS X",
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
],
long_description = LONG_DESCRIPTION,
packages=['captools', 'captools.api'],
package_data={'captools.api': ['img/*.png']})
Increment version number so pip will install the newest version
|
#!/usr/bin/env python
from distutils.core import setup
LONG_DESCRIPTION = open('README.md', 'r').read()
setup(name='captricity-python-client',
version='0.11',
description='Python client to access Captricity API',
url='https://github.com/Captricity/captools',
author='Captricity, Inc',
author_email='support@captricity.com',
classifiers=[
"Programming Language :: Python",
"License :: OSI Approved :: MIT License",
"Operating System :: Linux, Mac OS X",
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
],
long_description = LONG_DESCRIPTION,
packages=['captools', 'captools.api'],
package_data={'captools.api': ['img/*.png']})
|
<commit_before>#!/usr/bin/env python
from distutils.core import setup
LONG_DESCRIPTION = open('README.md', 'r').read()
setup(name='captricity-python-client',
version='0.1',
description='Python client to access Captricity API',
url='https://github.com/Captricity/captools',
author='Captricity, Inc',
author_email='support@captricity.com',
classifiers=[
"Programming Language :: Python",
"License :: OSI Approved :: MIT License",
"Operating System :: Linux, Mac OS X",
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
],
long_description = LONG_DESCRIPTION,
packages=['captools', 'captools.api'],
package_data={'captools.api': ['img/*.png']})
<commit_msg>Increment version number so pip will install the newest version<commit_after>
|
#!/usr/bin/env python
from distutils.core import setup
LONG_DESCRIPTION = open('README.md', 'r').read()
setup(name='captricity-python-client',
version='0.11',
description='Python client to access Captricity API',
url='https://github.com/Captricity/captools',
author='Captricity, Inc',
author_email='support@captricity.com',
classifiers=[
"Programming Language :: Python",
"License :: OSI Approved :: MIT License",
"Operating System :: Linux, Mac OS X",
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
],
long_description = LONG_DESCRIPTION,
packages=['captools', 'captools.api'],
package_data={'captools.api': ['img/*.png']})
|
#!/usr/bin/env python
from distutils.core import setup
LONG_DESCRIPTION = open('README.md', 'r').read()
setup(name='captricity-python-client',
version='0.1',
description='Python client to access Captricity API',
url='https://github.com/Captricity/captools',
author='Captricity, Inc',
author_email='support@captricity.com',
classifiers=[
"Programming Language :: Python",
"License :: OSI Approved :: MIT License",
"Operating System :: Linux, Mac OS X",
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
],
long_description = LONG_DESCRIPTION,
packages=['captools', 'captools.api'],
package_data={'captools.api': ['img/*.png']})
Increment version number so pip will install the newest version#!/usr/bin/env python
from distutils.core import setup
LONG_DESCRIPTION = open('README.md', 'r').read()
setup(name='captricity-python-client',
version='0.11',
description='Python client to access Captricity API',
url='https://github.com/Captricity/captools',
author='Captricity, Inc',
author_email='support@captricity.com',
classifiers=[
"Programming Language :: Python",
"License :: OSI Approved :: MIT License",
"Operating System :: Linux, Mac OS X",
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
],
long_description = LONG_DESCRIPTION,
packages=['captools', 'captools.api'],
package_data={'captools.api': ['img/*.png']})
|
<commit_before>#!/usr/bin/env python
from distutils.core import setup
LONG_DESCRIPTION = open('README.md', 'r').read()
setup(name='captricity-python-client',
version='0.1',
description='Python client to access Captricity API',
url='https://github.com/Captricity/captools',
author='Captricity, Inc',
author_email='support@captricity.com',
classifiers=[
"Programming Language :: Python",
"License :: OSI Approved :: MIT License",
"Operating System :: Linux, Mac OS X",
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
],
long_description = LONG_DESCRIPTION,
packages=['captools', 'captools.api'],
package_data={'captools.api': ['img/*.png']})
<commit_msg>Increment version number so pip will install the newest version<commit_after>#!/usr/bin/env python
from distutils.core import setup
LONG_DESCRIPTION = open('README.md', 'r').read()
setup(name='captricity-python-client',
version='0.11',
description='Python client to access Captricity API',
url='https://github.com/Captricity/captools',
author='Captricity, Inc',
author_email='support@captricity.com',
classifiers=[
"Programming Language :: Python",
"License :: OSI Approved :: MIT License",
"Operating System :: Linux, Mac OS X",
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
],
long_description = LONG_DESCRIPTION,
packages=['captools', 'captools.api'],
package_data={'captools.api': ['img/*.png']})
|
49a8e95dc5b2b2182368139a61d0ca63d732fbe4
|
setup.py
|
setup.py
|
#! /usr/bin/env python
import os
from setuptools import setup, find_packages
README = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name = "django-premis-event-service",
version = "1.0",
packages = find_packages(),
include_package_data = True,
package_data = {
'': ['*.html'],
},
# metadata (used during PyPI upload)
license = "BSD",
description = "A Django application for storing and querying PREMIS Events",
long_description=README,
keywords = "django PREMIS preservation",
author = "University of North Texas Libraries",
url = "https://github.com/unt-libraries/django-premis-event-service",
classifiers = [
"Environment :: Web Environment",
"Framework :: Django",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: BSD License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
],
)
|
#! /usr/bin/env python
import os
from setuptools import setup, find_packages
README = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name = "django-premis-event-service",
version = "1.0.0",
packages = find_packages(),
include_package_data = True,
package_data = {
'': ['*.html'],
},
# metadata (used during PyPI upload)
license = "BSD",
description = "A Django application for storing and querying PREMIS Events",
long_description=README,
keywords = "django PREMIS preservation",
author = "University of North Texas Libraries",
url = "https://github.com/unt-libraries/django-premis-event-service",
classifiers = [
"Environment :: Web Environment",
"Framework :: Django",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: BSD License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
],
)
|
Change version to 1.0.0 to match organizational versioning scheme.
|
Change version to 1.0.0 to match organizational versioning scheme.
|
Python
|
bsd-3-clause
|
unt-libraries/django-premis-event-service,unt-libraries/django-premis-event-service,unt-libraries/django-premis-event-service
|
#! /usr/bin/env python
import os
from setuptools import setup, find_packages
README = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name = "django-premis-event-service",
version = "1.0",
packages = find_packages(),
include_package_data = True,
package_data = {
'': ['*.html'],
},
# metadata (used during PyPI upload)
license = "BSD",
description = "A Django application for storing and querying PREMIS Events",
long_description=README,
keywords = "django PREMIS preservation",
author = "University of North Texas Libraries",
url = "https://github.com/unt-libraries/django-premis-event-service",
classifiers = [
"Environment :: Web Environment",
"Framework :: Django",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: BSD License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
],
)
Change version to 1.0.0 to match organizational versioning scheme.
|
#! /usr/bin/env python
import os
from setuptools import setup, find_packages
README = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name = "django-premis-event-service",
version = "1.0.0",
packages = find_packages(),
include_package_data = True,
package_data = {
'': ['*.html'],
},
# metadata (used during PyPI upload)
license = "BSD",
description = "A Django application for storing and querying PREMIS Events",
long_description=README,
keywords = "django PREMIS preservation",
author = "University of North Texas Libraries",
url = "https://github.com/unt-libraries/django-premis-event-service",
classifiers = [
"Environment :: Web Environment",
"Framework :: Django",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: BSD License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
],
)
|
<commit_before>#! /usr/bin/env python
import os
from setuptools import setup, find_packages
README = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name = "django-premis-event-service",
version = "1.0",
packages = find_packages(),
include_package_data = True,
package_data = {
'': ['*.html'],
},
# metadata (used during PyPI upload)
license = "BSD",
description = "A Django application for storing and querying PREMIS Events",
long_description=README,
keywords = "django PREMIS preservation",
author = "University of North Texas Libraries",
url = "https://github.com/unt-libraries/django-premis-event-service",
classifiers = [
"Environment :: Web Environment",
"Framework :: Django",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: BSD License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
],
)
<commit_msg>Change version to 1.0.0 to match organizational versioning scheme.<commit_after>
|
#! /usr/bin/env python
import os
from setuptools import setup, find_packages
README = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name = "django-premis-event-service",
version = "1.0.0",
packages = find_packages(),
include_package_data = True,
package_data = {
'': ['*.html'],
},
# metadata (used during PyPI upload)
license = "BSD",
description = "A Django application for storing and querying PREMIS Events",
long_description=README,
keywords = "django PREMIS preservation",
author = "University of North Texas Libraries",
url = "https://github.com/unt-libraries/django-premis-event-service",
classifiers = [
"Environment :: Web Environment",
"Framework :: Django",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: BSD License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
],
)
|
#! /usr/bin/env python
import os
from setuptools import setup, find_packages
README = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name = "django-premis-event-service",
version = "1.0",
packages = find_packages(),
include_package_data = True,
package_data = {
'': ['*.html'],
},
# metadata (used during PyPI upload)
license = "BSD",
description = "A Django application for storing and querying PREMIS Events",
long_description=README,
keywords = "django PREMIS preservation",
author = "University of North Texas Libraries",
url = "https://github.com/unt-libraries/django-premis-event-service",
classifiers = [
"Environment :: Web Environment",
"Framework :: Django",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: BSD License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
],
)
Change version to 1.0.0 to match organizational versioning scheme.#! /usr/bin/env python
import os
from setuptools import setup, find_packages
README = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name = "django-premis-event-service",
version = "1.0.0",
packages = find_packages(),
include_package_data = True,
package_data = {
'': ['*.html'],
},
# metadata (used during PyPI upload)
license = "BSD",
description = "A Django application for storing and querying PREMIS Events",
long_description=README,
keywords = "django PREMIS preservation",
author = "University of North Texas Libraries",
url = "https://github.com/unt-libraries/django-premis-event-service",
classifiers = [
"Environment :: Web Environment",
"Framework :: Django",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: BSD License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
],
)
|
<commit_before>#! /usr/bin/env python
import os
from setuptools import setup, find_packages
README = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name = "django-premis-event-service",
version = "1.0",
packages = find_packages(),
include_package_data = True,
package_data = {
'': ['*.html'],
},
# metadata (used during PyPI upload)
license = "BSD",
description = "A Django application for storing and querying PREMIS Events",
long_description=README,
keywords = "django PREMIS preservation",
author = "University of North Texas Libraries",
url = "https://github.com/unt-libraries/django-premis-event-service",
classifiers = [
"Environment :: Web Environment",
"Framework :: Django",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: BSD License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
],
)
<commit_msg>Change version to 1.0.0 to match organizational versioning scheme.<commit_after>#! /usr/bin/env python
import os
from setuptools import setup, find_packages
README = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name = "django-premis-event-service",
version = "1.0.0",
packages = find_packages(),
include_package_data = True,
package_data = {
'': ['*.html'],
},
# metadata (used during PyPI upload)
license = "BSD",
description = "A Django application for storing and querying PREMIS Events",
long_description=README,
keywords = "django PREMIS preservation",
author = "University of North Texas Libraries",
url = "https://github.com/unt-libraries/django-premis-event-service",
classifiers = [
"Environment :: Web Environment",
"Framework :: Django",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: BSD License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
],
)
|
952969952b835896e69f842aee711a58dc14a379
|
setup.py
|
setup.py
|
from distutils.core import setup
# If sphinx is installed, enable the command
try:
from sphinx.setup_command import BuildDoc
cmdclass = {'build_sphinx': BuildDoc}
command_options = {
'build_sphinx': {
'version': ('setup.py', version),
'release': ('setup.py', version),
}
}
except ImportError:
cmdclass = {}
command_options = {}
version = '1.0.2'
setup(name='simplemediawiki',
version=version,
description='Extremely low-level wrapper to the MediaWiki API',
author='Ian Weller',
author_email='iweller@redhat.com',
url='https://github.com/ianweller/python-simplemediawiki',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU Library or Lesser General Public '
'License (LGPL)',
],
requires=[
'kitchen',
'simplejson',
],
py_modules=['simplemediawiki'],
cmdclass=cmdclass,
command_options=command_options)
|
from distutils.core import setup
version = '1.0.2'
# If sphinx is installed, enable the command
try:
from sphinx.setup_command import BuildDoc
cmdclass = {'build_sphinx': BuildDoc}
command_options = {
'build_sphinx': {
'version': ('setup.py', version),
'release': ('setup.py', version),
}
}
except ImportError:
cmdclass = {}
command_options = {}
setup(name='simplemediawiki',
version=version,
description='Extremely low-level wrapper to the MediaWiki API',
author='Ian Weller',
author_email='iweller@redhat.com',
url='https://github.com/ianweller/python-simplemediawiki',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU Library or Lesser General Public '
'License (LGPL)',
],
requires=[
'kitchen',
'simplejson',
],
py_modules=['simplemediawiki'],
cmdclass=cmdclass,
command_options=command_options)
|
Make sphinx building actually work
|
Make sphinx building actually work
|
Python
|
lgpl-2.1
|
ianweller/python-simplemediawiki,YSelfTool/python-simplemediawiki,lahwaacz/python-simplemediawiki
|
from distutils.core import setup
# If sphinx is installed, enable the command
try:
from sphinx.setup_command import BuildDoc
cmdclass = {'build_sphinx': BuildDoc}
command_options = {
'build_sphinx': {
'version': ('setup.py', version),
'release': ('setup.py', version),
}
}
except ImportError:
cmdclass = {}
command_options = {}
version = '1.0.2'
setup(name='simplemediawiki',
version=version,
description='Extremely low-level wrapper to the MediaWiki API',
author='Ian Weller',
author_email='iweller@redhat.com',
url='https://github.com/ianweller/python-simplemediawiki',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU Library or Lesser General Public '
'License (LGPL)',
],
requires=[
'kitchen',
'simplejson',
],
py_modules=['simplemediawiki'],
cmdclass=cmdclass,
command_options=command_options)
Make sphinx building actually work
|
from distutils.core import setup
version = '1.0.2'
# If sphinx is installed, enable the command
try:
from sphinx.setup_command import BuildDoc
cmdclass = {'build_sphinx': BuildDoc}
command_options = {
'build_sphinx': {
'version': ('setup.py', version),
'release': ('setup.py', version),
}
}
except ImportError:
cmdclass = {}
command_options = {}
setup(name='simplemediawiki',
version=version,
description='Extremely low-level wrapper to the MediaWiki API',
author='Ian Weller',
author_email='iweller@redhat.com',
url='https://github.com/ianweller/python-simplemediawiki',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU Library or Lesser General Public '
'License (LGPL)',
],
requires=[
'kitchen',
'simplejson',
],
py_modules=['simplemediawiki'],
cmdclass=cmdclass,
command_options=command_options)
|
<commit_before>from distutils.core import setup
# If sphinx is installed, enable the command
try:
from sphinx.setup_command import BuildDoc
cmdclass = {'build_sphinx': BuildDoc}
command_options = {
'build_sphinx': {
'version': ('setup.py', version),
'release': ('setup.py', version),
}
}
except ImportError:
cmdclass = {}
command_options = {}
version = '1.0.2'
setup(name='simplemediawiki',
version=version,
description='Extremely low-level wrapper to the MediaWiki API',
author='Ian Weller',
author_email='iweller@redhat.com',
url='https://github.com/ianweller/python-simplemediawiki',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU Library or Lesser General Public '
'License (LGPL)',
],
requires=[
'kitchen',
'simplejson',
],
py_modules=['simplemediawiki'],
cmdclass=cmdclass,
command_options=command_options)
<commit_msg>Make sphinx building actually work<commit_after>
|
from distutils.core import setup
version = '1.0.2'
# If sphinx is installed, enable the command
try:
from sphinx.setup_command import BuildDoc
cmdclass = {'build_sphinx': BuildDoc}
command_options = {
'build_sphinx': {
'version': ('setup.py', version),
'release': ('setup.py', version),
}
}
except ImportError:
cmdclass = {}
command_options = {}
setup(name='simplemediawiki',
version=version,
description='Extremely low-level wrapper to the MediaWiki API',
author='Ian Weller',
author_email='iweller@redhat.com',
url='https://github.com/ianweller/python-simplemediawiki',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU Library or Lesser General Public '
'License (LGPL)',
],
requires=[
'kitchen',
'simplejson',
],
py_modules=['simplemediawiki'],
cmdclass=cmdclass,
command_options=command_options)
|
from distutils.core import setup
# If sphinx is installed, enable the command
try:
from sphinx.setup_command import BuildDoc
cmdclass = {'build_sphinx': BuildDoc}
command_options = {
'build_sphinx': {
'version': ('setup.py', version),
'release': ('setup.py', version),
}
}
except ImportError:
cmdclass = {}
command_options = {}
version = '1.0.2'
setup(name='simplemediawiki',
version=version,
description='Extremely low-level wrapper to the MediaWiki API',
author='Ian Weller',
author_email='iweller@redhat.com',
url='https://github.com/ianweller/python-simplemediawiki',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU Library or Lesser General Public '
'License (LGPL)',
],
requires=[
'kitchen',
'simplejson',
],
py_modules=['simplemediawiki'],
cmdclass=cmdclass,
command_options=command_options)
Make sphinx building actually workfrom distutils.core import setup
version = '1.0.2'
# If sphinx is installed, enable the command
try:
from sphinx.setup_command import BuildDoc
cmdclass = {'build_sphinx': BuildDoc}
command_options = {
'build_sphinx': {
'version': ('setup.py', version),
'release': ('setup.py', version),
}
}
except ImportError:
cmdclass = {}
command_options = {}
setup(name='simplemediawiki',
version=version,
description='Extremely low-level wrapper to the MediaWiki API',
author='Ian Weller',
author_email='iweller@redhat.com',
url='https://github.com/ianweller/python-simplemediawiki',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU Library or Lesser General Public '
'License (LGPL)',
],
requires=[
'kitchen',
'simplejson',
],
py_modules=['simplemediawiki'],
cmdclass=cmdclass,
command_options=command_options)
|
<commit_before>from distutils.core import setup
# If sphinx is installed, enable the command
try:
from sphinx.setup_command import BuildDoc
cmdclass = {'build_sphinx': BuildDoc}
command_options = {
'build_sphinx': {
'version': ('setup.py', version),
'release': ('setup.py', version),
}
}
except ImportError:
cmdclass = {}
command_options = {}
version = '1.0.2'
setup(name='simplemediawiki',
version=version,
description='Extremely low-level wrapper to the MediaWiki API',
author='Ian Weller',
author_email='iweller@redhat.com',
url='https://github.com/ianweller/python-simplemediawiki',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU Library or Lesser General Public '
'License (LGPL)',
],
requires=[
'kitchen',
'simplejson',
],
py_modules=['simplemediawiki'],
cmdclass=cmdclass,
command_options=command_options)
<commit_msg>Make sphinx building actually work<commit_after>from distutils.core import setup
version = '1.0.2'
# If sphinx is installed, enable the command
try:
from sphinx.setup_command import BuildDoc
cmdclass = {'build_sphinx': BuildDoc}
command_options = {
'build_sphinx': {
'version': ('setup.py', version),
'release': ('setup.py', version),
}
}
except ImportError:
cmdclass = {}
command_options = {}
setup(name='simplemediawiki',
version=version,
description='Extremely low-level wrapper to the MediaWiki API',
author='Ian Weller',
author_email='iweller@redhat.com',
url='https://github.com/ianweller/python-simplemediawiki',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU Library or Lesser General Public '
'License (LGPL)',
],
requires=[
'kitchen',
'simplejson',
],
py_modules=['simplemediawiki'],
cmdclass=cmdclass,
command_options=command_options)
|
c96b318166c19b644071386380e3b9b6b32deae6
|
tests/test_config.py
|
tests/test_config.py
|
import unittest
import figgypy.config
import sys
import os
class TestConfig(unittest.TestCase):
def test_config_load(self):
os.environ['FIGGY_GPG_HOME']='tests/resources/test-keys'
c = figgypy.config.Config('tests/resources/test-config.yaml')
self.assertEqual(c.db, 'db.heck.ya')
self.assertEqual(c.secrets['hush_hush'], 'i-u-i')
if __name__ == '__main__':
unittest.main()
|
import unittest
import figgypy.config
import sys
import os
class TestConfig(unittest.TestCase):
def test_config_load(self):
os.environ['FIGGY_GPG_HOME']='tests/resources/test-keys'
c = figgypy.config.Config('tests/resources/test-config.yaml')
self.assertEqual(c.db['host'], 'db.heck.ya')
self.assertEqual(c.db['pass'], 'test password')
if __name__ == '__main__':
unittest.main()
|
Modify to test with nesting
|
Modify to test with nesting
|
Python
|
mit
|
theherk/figgypy
|
import unittest
import figgypy.config
import sys
import os
class TestConfig(unittest.TestCase):
def test_config_load(self):
os.environ['FIGGY_GPG_HOME']='tests/resources/test-keys'
c = figgypy.config.Config('tests/resources/test-config.yaml')
self.assertEqual(c.db, 'db.heck.ya')
self.assertEqual(c.secrets['hush_hush'], 'i-u-i')
if __name__ == '__main__':
unittest.main()
Modify to test with nesting
|
import unittest
import figgypy.config
import sys
import os
class TestConfig(unittest.TestCase):
def test_config_load(self):
os.environ['FIGGY_GPG_HOME']='tests/resources/test-keys'
c = figgypy.config.Config('tests/resources/test-config.yaml')
self.assertEqual(c.db['host'], 'db.heck.ya')
self.assertEqual(c.db['pass'], 'test password')
if __name__ == '__main__':
unittest.main()
|
<commit_before>import unittest
import figgypy.config
import sys
import os
class TestConfig(unittest.TestCase):
def test_config_load(self):
os.environ['FIGGY_GPG_HOME']='tests/resources/test-keys'
c = figgypy.config.Config('tests/resources/test-config.yaml')
self.assertEqual(c.db, 'db.heck.ya')
self.assertEqual(c.secrets['hush_hush'], 'i-u-i')
if __name__ == '__main__':
unittest.main()
<commit_msg>Modify to test with nesting<commit_after>
|
import unittest
import figgypy.config
import sys
import os
class TestConfig(unittest.TestCase):
def test_config_load(self):
os.environ['FIGGY_GPG_HOME']='tests/resources/test-keys'
c = figgypy.config.Config('tests/resources/test-config.yaml')
self.assertEqual(c.db['host'], 'db.heck.ya')
self.assertEqual(c.db['pass'], 'test password')
if __name__ == '__main__':
unittest.main()
|
import unittest
import figgypy.config
import sys
import os
class TestConfig(unittest.TestCase):
def test_config_load(self):
os.environ['FIGGY_GPG_HOME']='tests/resources/test-keys'
c = figgypy.config.Config('tests/resources/test-config.yaml')
self.assertEqual(c.db, 'db.heck.ya')
self.assertEqual(c.secrets['hush_hush'], 'i-u-i')
if __name__ == '__main__':
unittest.main()
Modify to test with nestingimport unittest
import figgypy.config
import sys
import os
class TestConfig(unittest.TestCase):
def test_config_load(self):
os.environ['FIGGY_GPG_HOME']='tests/resources/test-keys'
c = figgypy.config.Config('tests/resources/test-config.yaml')
self.assertEqual(c.db['host'], 'db.heck.ya')
self.assertEqual(c.db['pass'], 'test password')
if __name__ == '__main__':
unittest.main()
|
<commit_before>import unittest
import figgypy.config
import sys
import os
class TestConfig(unittest.TestCase):
def test_config_load(self):
os.environ['FIGGY_GPG_HOME']='tests/resources/test-keys'
c = figgypy.config.Config('tests/resources/test-config.yaml')
self.assertEqual(c.db, 'db.heck.ya')
self.assertEqual(c.secrets['hush_hush'], 'i-u-i')
if __name__ == '__main__':
unittest.main()
<commit_msg>Modify to test with nesting<commit_after>import unittest
import figgypy.config
import sys
import os
class TestConfig(unittest.TestCase):
def test_config_load(self):
os.environ['FIGGY_GPG_HOME']='tests/resources/test-keys'
c = figgypy.config.Config('tests/resources/test-config.yaml')
self.assertEqual(c.db['host'], 'db.heck.ya')
self.assertEqual(c.db['pass'], 'test password')
if __name__ == '__main__':
unittest.main()
|
5502a0be6f419990b95480c5d92d0bc594783c80
|
tests/test_redgem.py
|
tests/test_redgem.py
|
from pytfa.redgem.redgem import RedGEM
from pytfa.io import import_matlab_model
from pytfa.io.base import load_thermoDB
from pytfa.thermo.tmodel import ThermoModel
from pytfa.io import read_compartment_data, apply_compartment_data, read_lexicon, annotate_from_lexicon
path_to_model = 'models/small_ecoli.mat'
thermoDB = "data/thermo_data.thermodb"
carbon_uptake = 60000
growth = 0.5
model = import_matlab_model(path_to_model)
thermo_data = load_thermoDB(thermoDB)
lexicon = read_lexicon('models/iJO1366/lexicon.csv')
compartment_data = read_compartment_data('models/iJO1366/compartment_data.json')
tfa_model = ThermoModel(thermo_data, model)
annotate_from_lexicon(tfa_model, lexicon)
apply_compartment_data(tfa_model, compartment_data)
tfa_model.name = 'Lumped Model'
path_to_params = 'tests/redgem_params.yml'
redgem = RedGEM(tfa_model, path_to_params, False)
redgem.run()
|
from pytfa.redgem.redgem import RedGEM
from pytfa.io import import_matlab_model
from pytfa.io.base import load_thermoDB
from pytfa.thermo.tmodel import ThermoModel
from pytfa.io import read_compartment_data, apply_compartment_data, read_lexicon, annotate_from_lexicon
path_to_model = 'models/small_ecoli.mat'
thermoDB = "data/thermo_data.thermodb"
path_to_lexicon = 'models/iJO1366/lexicon.csv'
path_to_compartment_data = 'models/iJO1366/compartment_data.json'
model = import_matlab_model(path_to_model)
thermo_data = load_thermoDB(thermoDB)
lexicon = read_lexicon(path_to_lexicon)
compartment_data = read_compartment_data(path_to_compartment_data)
tfa_model = ThermoModel(thermo_data, model)
annotate_from_lexicon(tfa_model, lexicon)
apply_compartment_data(tfa_model, compartment_data)
tfa_model.name = 'Lumped Model'
path_to_params = 'tests/redgem_params.yml'
redgem = RedGEM(tfa_model, path_to_params, False)
redgem.run()
|
Remove unused parameters in test script
|
FIX: Remove unused parameters in test script
|
Python
|
apache-2.0
|
EPFL-LCSB/pytfa,EPFL-LCSB/pytfa
|
from pytfa.redgem.redgem import RedGEM
from pytfa.io import import_matlab_model
from pytfa.io.base import load_thermoDB
from pytfa.thermo.tmodel import ThermoModel
from pytfa.io import read_compartment_data, apply_compartment_data, read_lexicon, annotate_from_lexicon
path_to_model = 'models/small_ecoli.mat'
thermoDB = "data/thermo_data.thermodb"
carbon_uptake = 60000
growth = 0.5
model = import_matlab_model(path_to_model)
thermo_data = load_thermoDB(thermoDB)
lexicon = read_lexicon('models/iJO1366/lexicon.csv')
compartment_data = read_compartment_data('models/iJO1366/compartment_data.json')
tfa_model = ThermoModel(thermo_data, model)
annotate_from_lexicon(tfa_model, lexicon)
apply_compartment_data(tfa_model, compartment_data)
tfa_model.name = 'Lumped Model'
path_to_params = 'tests/redgem_params.yml'
redgem = RedGEM(tfa_model, path_to_params, False)
redgem.run()
FIX: Remove unused parameters in test script
|
from pytfa.redgem.redgem import RedGEM
from pytfa.io import import_matlab_model
from pytfa.io.base import load_thermoDB
from pytfa.thermo.tmodel import ThermoModel
from pytfa.io import read_compartment_data, apply_compartment_data, read_lexicon, annotate_from_lexicon
path_to_model = 'models/small_ecoli.mat'
thermoDB = "data/thermo_data.thermodb"
path_to_lexicon = 'models/iJO1366/lexicon.csv'
path_to_compartment_data = 'models/iJO1366/compartment_data.json'
model = import_matlab_model(path_to_model)
thermo_data = load_thermoDB(thermoDB)
lexicon = read_lexicon(path_to_lexicon)
compartment_data = read_compartment_data(path_to_compartment_data)
tfa_model = ThermoModel(thermo_data, model)
annotate_from_lexicon(tfa_model, lexicon)
apply_compartment_data(tfa_model, compartment_data)
tfa_model.name = 'Lumped Model'
path_to_params = 'tests/redgem_params.yml'
redgem = RedGEM(tfa_model, path_to_params, False)
redgem.run()
|
<commit_before>from pytfa.redgem.redgem import RedGEM
from pytfa.io import import_matlab_model
from pytfa.io.base import load_thermoDB
from pytfa.thermo.tmodel import ThermoModel
from pytfa.io import read_compartment_data, apply_compartment_data, read_lexicon, annotate_from_lexicon
path_to_model = 'models/small_ecoli.mat'
thermoDB = "data/thermo_data.thermodb"
carbon_uptake = 60000
growth = 0.5
model = import_matlab_model(path_to_model)
thermo_data = load_thermoDB(thermoDB)
lexicon = read_lexicon('models/iJO1366/lexicon.csv')
compartment_data = read_compartment_data('models/iJO1366/compartment_data.json')
tfa_model = ThermoModel(thermo_data, model)
annotate_from_lexicon(tfa_model, lexicon)
apply_compartment_data(tfa_model, compartment_data)
tfa_model.name = 'Lumped Model'
path_to_params = 'tests/redgem_params.yml'
redgem = RedGEM(tfa_model, path_to_params, False)
redgem.run()
<commit_msg>FIX: Remove unused parameters in test script<commit_after>
|
from pytfa.redgem.redgem import RedGEM
from pytfa.io import import_matlab_model
from pytfa.io.base import load_thermoDB
from pytfa.thermo.tmodel import ThermoModel
from pytfa.io import read_compartment_data, apply_compartment_data, read_lexicon, annotate_from_lexicon
path_to_model = 'models/small_ecoli.mat'
thermoDB = "data/thermo_data.thermodb"
path_to_lexicon = 'models/iJO1366/lexicon.csv'
path_to_compartment_data = 'models/iJO1366/compartment_data.json'
model = import_matlab_model(path_to_model)
thermo_data = load_thermoDB(thermoDB)
lexicon = read_lexicon(path_to_lexicon)
compartment_data = read_compartment_data(path_to_compartment_data)
tfa_model = ThermoModel(thermo_data, model)
annotate_from_lexicon(tfa_model, lexicon)
apply_compartment_data(tfa_model, compartment_data)
tfa_model.name = 'Lumped Model'
path_to_params = 'tests/redgem_params.yml'
redgem = RedGEM(tfa_model, path_to_params, False)
redgem.run()
|
from pytfa.redgem.redgem import RedGEM
from pytfa.io import import_matlab_model
from pytfa.io.base import load_thermoDB
from pytfa.thermo.tmodel import ThermoModel
from pytfa.io import read_compartment_data, apply_compartment_data, read_lexicon, annotate_from_lexicon
path_to_model = 'models/small_ecoli.mat'
thermoDB = "data/thermo_data.thermodb"
carbon_uptake = 60000
growth = 0.5
model = import_matlab_model(path_to_model)
thermo_data = load_thermoDB(thermoDB)
lexicon = read_lexicon('models/iJO1366/lexicon.csv')
compartment_data = read_compartment_data('models/iJO1366/compartment_data.json')
tfa_model = ThermoModel(thermo_data, model)
annotate_from_lexicon(tfa_model, lexicon)
apply_compartment_data(tfa_model, compartment_data)
tfa_model.name = 'Lumped Model'
path_to_params = 'tests/redgem_params.yml'
redgem = RedGEM(tfa_model, path_to_params, False)
redgem.run()
FIX: Remove unused parameters in test scriptfrom pytfa.redgem.redgem import RedGEM
from pytfa.io import import_matlab_model
from pytfa.io.base import load_thermoDB
from pytfa.thermo.tmodel import ThermoModel
from pytfa.io import read_compartment_data, apply_compartment_data, read_lexicon, annotate_from_lexicon
path_to_model = 'models/small_ecoli.mat'
thermoDB = "data/thermo_data.thermodb"
path_to_lexicon = 'models/iJO1366/lexicon.csv'
path_to_compartment_data = 'models/iJO1366/compartment_data.json'
model = import_matlab_model(path_to_model)
thermo_data = load_thermoDB(thermoDB)
lexicon = read_lexicon(path_to_lexicon)
compartment_data = read_compartment_data(path_to_compartment_data)
tfa_model = ThermoModel(thermo_data, model)
annotate_from_lexicon(tfa_model, lexicon)
apply_compartment_data(tfa_model, compartment_data)
tfa_model.name = 'Lumped Model'
path_to_params = 'tests/redgem_params.yml'
redgem = RedGEM(tfa_model, path_to_params, False)
redgem.run()
|
<commit_before>from pytfa.redgem.redgem import RedGEM
from pytfa.io import import_matlab_model
from pytfa.io.base import load_thermoDB
from pytfa.thermo.tmodel import ThermoModel
from pytfa.io import read_compartment_data, apply_compartment_data, read_lexicon, annotate_from_lexicon
path_to_model = 'models/small_ecoli.mat'
thermoDB = "data/thermo_data.thermodb"
carbon_uptake = 60000
growth = 0.5
model = import_matlab_model(path_to_model)
thermo_data = load_thermoDB(thermoDB)
lexicon = read_lexicon('models/iJO1366/lexicon.csv')
compartment_data = read_compartment_data('models/iJO1366/compartment_data.json')
tfa_model = ThermoModel(thermo_data, model)
annotate_from_lexicon(tfa_model, lexicon)
apply_compartment_data(tfa_model, compartment_data)
tfa_model.name = 'Lumped Model'
path_to_params = 'tests/redgem_params.yml'
redgem = RedGEM(tfa_model, path_to_params, False)
redgem.run()
<commit_msg>FIX: Remove unused parameters in test script<commit_after>from pytfa.redgem.redgem import RedGEM
from pytfa.io import import_matlab_model
from pytfa.io.base import load_thermoDB
from pytfa.thermo.tmodel import ThermoModel
from pytfa.io import read_compartment_data, apply_compartment_data, read_lexicon, annotate_from_lexicon
path_to_model = 'models/small_ecoli.mat'
thermoDB = "data/thermo_data.thermodb"
path_to_lexicon = 'models/iJO1366/lexicon.csv'
path_to_compartment_data = 'models/iJO1366/compartment_data.json'
model = import_matlab_model(path_to_model)
thermo_data = load_thermoDB(thermoDB)
lexicon = read_lexicon(path_to_lexicon)
compartment_data = read_compartment_data(path_to_compartment_data)
tfa_model = ThermoModel(thermo_data, model)
annotate_from_lexicon(tfa_model, lexicon)
apply_compartment_data(tfa_model, compartment_data)
tfa_model.name = 'Lumped Model'
path_to_params = 'tests/redgem_params.yml'
redgem = RedGEM(tfa_model, path_to_params, False)
redgem.run()
|
476e0f7dc4c4e401416c92cca1d481fe2520d8f3
|
setup.py
|
setup.py
|
# encoding: utf-8
"""
The HAL client that does almost nothing for you.
Cetacean doesn't know about HTTP. You set up your own Requests client and use it
to make requests. You feed then Cetacean the decoded bodies as strings and it
helps you pull useful data out of them.
"""
from setuptools import setup
import cetacean
setup(
name="Cetacean",
version=cetacean.__version__,
author="Ben Hamill",
author_email="ben@benhamill.com",
url="http://github.com/benhamill/cetacean-python#readme",
license="MIT",
description="The HAL client that does almost nothing for you.",
long_description=__doc__,
py_modules=["cetacean"],
classifiers=[],
)
|
# encoding: utf-8
"""
The HAL client that does almost nothing for you.
Cetacean doesn't know about HTTP. You set up your own Requests client and use it
to make requests. You feed then Cetacean the decoded bodies as strings and it
helps you pull useful data out of them.
"""
from setuptools import setup
import cetacean
setup(
name="Cetacean",
version=cetacean.__version__,
author="Ben Hamill",
author_email="ben@benhamill.com",
url="http://github.com/benhamill/cetacean-python#readme",
license="MIT",
description="The HAL client that does almost nothing for you.",
long_description=__doc__,
py_modules=["cetacean"],
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.4",
"Topic :: Internet :: WWW/HTTP",
],
)
|
Add a bunch of classifiers.
|
Add a bunch of classifiers.
|
Python
|
mit
|
nanorepublica/cetacean-python,benhamill/cetacean-python
|
# encoding: utf-8
"""
The HAL client that does almost nothing for you.
Cetacean doesn't know about HTTP. You set up your own Requests client and use it
to make requests. You feed then Cetacean the decoded bodies as strings and it
helps you pull useful data out of them.
"""
from setuptools import setup
import cetacean
setup(
name="Cetacean",
version=cetacean.__version__,
author="Ben Hamill",
author_email="ben@benhamill.com",
url="http://github.com/benhamill/cetacean-python#readme",
license="MIT",
description="The HAL client that does almost nothing for you.",
long_description=__doc__,
py_modules=["cetacean"],
classifiers=[],
)
Add a bunch of classifiers.
|
# encoding: utf-8
"""
The HAL client that does almost nothing for you.
Cetacean doesn't know about HTTP. You set up your own Requests client and use it
to make requests. You feed then Cetacean the decoded bodies as strings and it
helps you pull useful data out of them.
"""
from setuptools import setup
import cetacean
setup(
name="Cetacean",
version=cetacean.__version__,
author="Ben Hamill",
author_email="ben@benhamill.com",
url="http://github.com/benhamill/cetacean-python#readme",
license="MIT",
description="The HAL client that does almost nothing for you.",
long_description=__doc__,
py_modules=["cetacean"],
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.4",
"Topic :: Internet :: WWW/HTTP",
],
)
|
<commit_before># encoding: utf-8
"""
The HAL client that does almost nothing for you.
Cetacean doesn't know about HTTP. You set up your own Requests client and use it
to make requests. You feed then Cetacean the decoded bodies as strings and it
helps you pull useful data out of them.
"""
from setuptools import setup
import cetacean
setup(
name="Cetacean",
version=cetacean.__version__,
author="Ben Hamill",
author_email="ben@benhamill.com",
url="http://github.com/benhamill/cetacean-python#readme",
license="MIT",
description="The HAL client that does almost nothing for you.",
long_description=__doc__,
py_modules=["cetacean"],
classifiers=[],
)
<commit_msg>Add a bunch of classifiers.<commit_after>
|
# encoding: utf-8
"""
The HAL client that does almost nothing for you.
Cetacean doesn't know about HTTP. You set up your own Requests client and use it
to make requests. You feed then Cetacean the decoded bodies as strings and it
helps you pull useful data out of them.
"""
from setuptools import setup
import cetacean
setup(
name="Cetacean",
version=cetacean.__version__,
author="Ben Hamill",
author_email="ben@benhamill.com",
url="http://github.com/benhamill/cetacean-python#readme",
license="MIT",
description="The HAL client that does almost nothing for you.",
long_description=__doc__,
py_modules=["cetacean"],
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.4",
"Topic :: Internet :: WWW/HTTP",
],
)
|
# encoding: utf-8
"""
The HAL client that does almost nothing for you.
Cetacean doesn't know about HTTP. You set up your own Requests client and use it
to make requests. You feed then Cetacean the decoded bodies as strings and it
helps you pull useful data out of them.
"""
from setuptools import setup
import cetacean
setup(
name="Cetacean",
version=cetacean.__version__,
author="Ben Hamill",
author_email="ben@benhamill.com",
url="http://github.com/benhamill/cetacean-python#readme",
license="MIT",
description="The HAL client that does almost nothing for you.",
long_description=__doc__,
py_modules=["cetacean"],
classifiers=[],
)
Add a bunch of classifiers.# encoding: utf-8
"""
The HAL client that does almost nothing for you.
Cetacean doesn't know about HTTP. You set up your own Requests client and use it
to make requests. You feed then Cetacean the decoded bodies as strings and it
helps you pull useful data out of them.
"""
from setuptools import setup
import cetacean
setup(
name="Cetacean",
version=cetacean.__version__,
author="Ben Hamill",
author_email="ben@benhamill.com",
url="http://github.com/benhamill/cetacean-python#readme",
license="MIT",
description="The HAL client that does almost nothing for you.",
long_description=__doc__,
py_modules=["cetacean"],
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.4",
"Topic :: Internet :: WWW/HTTP",
],
)
|
<commit_before># encoding: utf-8
"""
The HAL client that does almost nothing for you.
Cetacean doesn't know about HTTP. You set up your own Requests client and use it
to make requests. You feed then Cetacean the decoded bodies as strings and it
helps you pull useful data out of them.
"""
from setuptools import setup
import cetacean
setup(
name="Cetacean",
version=cetacean.__version__,
author="Ben Hamill",
author_email="ben@benhamill.com",
url="http://github.com/benhamill/cetacean-python#readme",
license="MIT",
description="The HAL client that does almost nothing for you.",
long_description=__doc__,
py_modules=["cetacean"],
classifiers=[],
)
<commit_msg>Add a bunch of classifiers.<commit_after># encoding: utf-8
"""
The HAL client that does almost nothing for you.
Cetacean doesn't know about HTTP. You set up your own Requests client and use it
to make requests. You feed then Cetacean the decoded bodies as strings and it
helps you pull useful data out of them.
"""
from setuptools import setup
import cetacean
setup(
name="Cetacean",
version=cetacean.__version__,
author="Ben Hamill",
author_email="ben@benhamill.com",
url="http://github.com/benhamill/cetacean-python#readme",
license="MIT",
description="The HAL client that does almost nothing for you.",
long_description=__doc__,
py_modules=["cetacean"],
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.4",
"Topic :: Internet :: WWW/HTTP",
],
)
|
b6632f1138b2006e869cfb2219e73e2c09c12d49
|
setup.py
|
setup.py
|
"""
Powerful and Lightweight Python Tree Data Structure with various plugins.
"""
# Always prefer setuptools over distutils
from setuptools import setup
# To use a consistent encoding
from codecs import open
from os import path
config = {
'name': "anytree",
'version': "1.0.1",
'author': 'c0fec0de',
'author_email': 'c0fec0de@gmail.com',
'description': "Powerful and Lightweight Python Tree Data Structure with various plugins.",
'url': "http://anytree.readthedocs.io",
'license': 'Apache 2.0',
'classifiers': [
'Development Status :: 3 - Alpha',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
],
'keywords': 'tree, tree data, treelib, tree walk',
'packages': ['anytree'],
'install_requires': ['six'],
'extras_require': {
'dev': ['check-manifest'],
'test': ['coverage'],
},
'test_suite': 'nose.collector',
}
# Get the long description from the README file
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
config['long_description'] = f.read()
setup(**config)
|
"""
Powerful and Lightweight Python Tree Data Structure with various plugins.
"""
# Always prefer setuptools over distutils
from setuptools import setup
# To use a consistent encoding
from codecs import open
from os import path
config = {
'name': "anytree",
'version': "1.0.1",
'author': 'c0fec0de',
'author_email': 'c0fec0de@gmail.com',
'description': "Powerful and Lightweight Python Tree Data Structure with various plugins.",
'url': "https://github.com/c0fec0de/anytree",
'license': 'Apache 2.0',
'classifiers': [
'Development Status :: 3 - Alpha',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
],
'keywords': 'tree, tree data, treelib, tree walk',
'packages': ['anytree'],
'install_requires': ['six'],
'extras_require': {
'dev': ['check-manifest'],
'test': ['coverage'],
},
'test_suite': 'nose.collector',
}
# Get the long description from the README file
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
config['long_description'] = f.read()
setup(**config)
|
Use github URL instead of documentation.
|
Use github URL instead of documentation.
|
Python
|
apache-2.0
|
c0fec0de/anytree
|
"""
Powerful and Lightweight Python Tree Data Structure with various plugins.
"""
# Always prefer setuptools over distutils
from setuptools import setup
# To use a consistent encoding
from codecs import open
from os import path
config = {
'name': "anytree",
'version': "1.0.1",
'author': 'c0fec0de',
'author_email': 'c0fec0de@gmail.com',
'description': "Powerful and Lightweight Python Tree Data Structure with various plugins.",
'url': "http://anytree.readthedocs.io",
'license': 'Apache 2.0',
'classifiers': [
'Development Status :: 3 - Alpha',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
],
'keywords': 'tree, tree data, treelib, tree walk',
'packages': ['anytree'],
'install_requires': ['six'],
'extras_require': {
'dev': ['check-manifest'],
'test': ['coverage'],
},
'test_suite': 'nose.collector',
}
# Get the long description from the README file
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
config['long_description'] = f.read()
setup(**config)
Use github URL instead of documentation.
|
"""
Powerful and Lightweight Python Tree Data Structure with various plugins.
"""
# Always prefer setuptools over distutils
from setuptools import setup
# To use a consistent encoding
from codecs import open
from os import path
config = {
'name': "anytree",
'version': "1.0.1",
'author': 'c0fec0de',
'author_email': 'c0fec0de@gmail.com',
'description': "Powerful and Lightweight Python Tree Data Structure with various plugins.",
'url': "https://github.com/c0fec0de/anytree",
'license': 'Apache 2.0',
'classifiers': [
'Development Status :: 3 - Alpha',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
],
'keywords': 'tree, tree data, treelib, tree walk',
'packages': ['anytree'],
'install_requires': ['six'],
'extras_require': {
'dev': ['check-manifest'],
'test': ['coverage'],
},
'test_suite': 'nose.collector',
}
# Get the long description from the README file
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
config['long_description'] = f.read()
setup(**config)
|
<commit_before>"""
Powerful and Lightweight Python Tree Data Structure with various plugins.
"""
# Always prefer setuptools over distutils
from setuptools import setup
# To use a consistent encoding
from codecs import open
from os import path
config = {
'name': "anytree",
'version': "1.0.1",
'author': 'c0fec0de',
'author_email': 'c0fec0de@gmail.com',
'description': "Powerful and Lightweight Python Tree Data Structure with various plugins.",
'url': "http://anytree.readthedocs.io",
'license': 'Apache 2.0',
'classifiers': [
'Development Status :: 3 - Alpha',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
],
'keywords': 'tree, tree data, treelib, tree walk',
'packages': ['anytree'],
'install_requires': ['six'],
'extras_require': {
'dev': ['check-manifest'],
'test': ['coverage'],
},
'test_suite': 'nose.collector',
}
# Get the long description from the README file
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
config['long_description'] = f.read()
setup(**config)
<commit_msg>Use github URL instead of documentation.<commit_after>
|
"""
Powerful and Lightweight Python Tree Data Structure with various plugins.
"""
# Always prefer setuptools over distutils
from setuptools import setup
# To use a consistent encoding
from codecs import open
from os import path
config = {
'name': "anytree",
'version': "1.0.1",
'author': 'c0fec0de',
'author_email': 'c0fec0de@gmail.com',
'description': "Powerful and Lightweight Python Tree Data Structure with various plugins.",
'url': "https://github.com/c0fec0de/anytree",
'license': 'Apache 2.0',
'classifiers': [
'Development Status :: 3 - Alpha',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
],
'keywords': 'tree, tree data, treelib, tree walk',
'packages': ['anytree'],
'install_requires': ['six'],
'extras_require': {
'dev': ['check-manifest'],
'test': ['coverage'],
},
'test_suite': 'nose.collector',
}
# Get the long description from the README file
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
config['long_description'] = f.read()
setup(**config)
|
"""
Powerful and Lightweight Python Tree Data Structure with various plugins.
"""
# Always prefer setuptools over distutils
from setuptools import setup
# To use a consistent encoding
from codecs import open
from os import path
config = {
'name': "anytree",
'version': "1.0.1",
'author': 'c0fec0de',
'author_email': 'c0fec0de@gmail.com',
'description': "Powerful and Lightweight Python Tree Data Structure with various plugins.",
'url': "http://anytree.readthedocs.io",
'license': 'Apache 2.0',
'classifiers': [
'Development Status :: 3 - Alpha',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
],
'keywords': 'tree, tree data, treelib, tree walk',
'packages': ['anytree'],
'install_requires': ['six'],
'extras_require': {
'dev': ['check-manifest'],
'test': ['coverage'],
},
'test_suite': 'nose.collector',
}
# Get the long description from the README file
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
config['long_description'] = f.read()
setup(**config)
Use github URL instead of documentation."""
Powerful and Lightweight Python Tree Data Structure with various plugins.
"""
# Always prefer setuptools over distutils
from setuptools import setup
# To use a consistent encoding
from codecs import open
from os import path
config = {
'name': "anytree",
'version': "1.0.1",
'author': 'c0fec0de',
'author_email': 'c0fec0de@gmail.com',
'description': "Powerful and Lightweight Python Tree Data Structure with various plugins.",
'url': "https://github.com/c0fec0de/anytree",
'license': 'Apache 2.0',
'classifiers': [
'Development Status :: 3 - Alpha',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
],
'keywords': 'tree, tree data, treelib, tree walk',
'packages': ['anytree'],
'install_requires': ['six'],
'extras_require': {
'dev': ['check-manifest'],
'test': ['coverage'],
},
'test_suite': 'nose.collector',
}
# Get the long description from the README file
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
config['long_description'] = f.read()
setup(**config)
|
<commit_before>"""
Powerful and Lightweight Python Tree Data Structure with various plugins.
"""
# Always prefer setuptools over distutils
from setuptools import setup
# To use a consistent encoding
from codecs import open
from os import path
config = {
'name': "anytree",
'version': "1.0.1",
'author': 'c0fec0de',
'author_email': 'c0fec0de@gmail.com',
'description': "Powerful and Lightweight Python Tree Data Structure with various plugins.",
'url': "http://anytree.readthedocs.io",
'license': 'Apache 2.0',
'classifiers': [
'Development Status :: 3 - Alpha',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
],
'keywords': 'tree, tree data, treelib, tree walk',
'packages': ['anytree'],
'install_requires': ['six'],
'extras_require': {
'dev': ['check-manifest'],
'test': ['coverage'],
},
'test_suite': 'nose.collector',
}
# Get the long description from the README file
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
config['long_description'] = f.read()
setup(**config)
<commit_msg>Use github URL instead of documentation.<commit_after>"""
Powerful and Lightweight Python Tree Data Structure with various plugins.
"""
# Always prefer setuptools over distutils
from setuptools import setup
# To use a consistent encoding
from codecs import open
from os import path
config = {
'name': "anytree",
'version': "1.0.1",
'author': 'c0fec0de',
'author_email': 'c0fec0de@gmail.com',
'description': "Powerful and Lightweight Python Tree Data Structure with various plugins.",
'url': "https://github.com/c0fec0de/anytree",
'license': 'Apache 2.0',
'classifiers': [
'Development Status :: 3 - Alpha',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
],
'keywords': 'tree, tree data, treelib, tree walk',
'packages': ['anytree'],
'install_requires': ['six'],
'extras_require': {
'dev': ['check-manifest'],
'test': ['coverage'],
},
'test_suite': 'nose.collector',
}
# Get the long description from the README file
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
config['long_description'] = f.read()
setup(**config)
|
bf6d4c4622b9a0161fad3b03422747fb16faf5de
|
setup.py
|
setup.py
|
from distutils.core import setup
setup(
name='BitstampClient',
version='0.1',
packages=['bitstamp'],
url='',
license='MIT',
author='Kamil Madac',
author_email='kamil.madac@gmail.com',
description='Bitstamp API python implementation',
requires=['requests']
)
|
from distutils.core import setup
setup(
name='bitstamp-python-client',
version='0.1',
packages=['bitstamp'],
url='',
license='MIT',
author='Kamil Madac',
author_email='kamil.madac@gmail.com',
description='Bitstamp API python implementation',
requires=['requests']
)
|
Rename because of clash with original package.
|
Rename because of clash with original package.
|
Python
|
mit
|
nederhoed/bitstamp-python-client
|
from distutils.core import setup
setup(
name='BitstampClient',
version='0.1',
packages=['bitstamp'],
url='',
license='MIT',
author='Kamil Madac',
author_email='kamil.madac@gmail.com',
description='Bitstamp API python implementation',
requires=['requests']
)
Rename because of clash with original package.
|
from distutils.core import setup
setup(
name='bitstamp-python-client',
version='0.1',
packages=['bitstamp'],
url='',
license='MIT',
author='Kamil Madac',
author_email='kamil.madac@gmail.com',
description='Bitstamp API python implementation',
requires=['requests']
)
|
<commit_before>from distutils.core import setup
setup(
name='BitstampClient',
version='0.1',
packages=['bitstamp'],
url='',
license='MIT',
author='Kamil Madac',
author_email='kamil.madac@gmail.com',
description='Bitstamp API python implementation',
requires=['requests']
)
<commit_msg>Rename because of clash with original package.<commit_after>
|
from distutils.core import setup
setup(
name='bitstamp-python-client',
version='0.1',
packages=['bitstamp'],
url='',
license='MIT',
author='Kamil Madac',
author_email='kamil.madac@gmail.com',
description='Bitstamp API python implementation',
requires=['requests']
)
|
from distutils.core import setup
setup(
name='BitstampClient',
version='0.1',
packages=['bitstamp'],
url='',
license='MIT',
author='Kamil Madac',
author_email='kamil.madac@gmail.com',
description='Bitstamp API python implementation',
requires=['requests']
)
Rename because of clash with original package.from distutils.core import setup
setup(
name='bitstamp-python-client',
version='0.1',
packages=['bitstamp'],
url='',
license='MIT',
author='Kamil Madac',
author_email='kamil.madac@gmail.com',
description='Bitstamp API python implementation',
requires=['requests']
)
|
<commit_before>from distutils.core import setup
setup(
name='BitstampClient',
version='0.1',
packages=['bitstamp'],
url='',
license='MIT',
author='Kamil Madac',
author_email='kamil.madac@gmail.com',
description='Bitstamp API python implementation',
requires=['requests']
)
<commit_msg>Rename because of clash with original package.<commit_after>from distutils.core import setup
setup(
name='bitstamp-python-client',
version='0.1',
packages=['bitstamp'],
url='',
license='MIT',
author='Kamil Madac',
author_email='kamil.madac@gmail.com',
description='Bitstamp API python implementation',
requires=['requests']
)
|
65d3b11c115c27b9067037c4d9b1a00c35bbfaa7
|
setup.py
|
setup.py
|
#!/usr/bin/env python
from setuptools import setup
__version__ = '0.1.0b1'
setup(
name='highlander-one',
version=__version__,
author='Christopher T. Cannon',
author_email='christophertcannon@gmail.com',
description='A simple decorator to ensure that your '
'program is only running once on a system.',
url='https://github.com/chriscannon/highlander',
install_requires=[
'funcy>=1.4',
'psutil>=2.2.1'
],
license='MIT',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
],
download_url='https://github.com/chriscannon/highlander/tarball/{0}'.format(__version__),
packages=['highlander'],
test_suite='tests.highlander_tests.get_suite',
)
|
#!/usr/bin/env python
from setuptools import setup
__version__ = '0.1.0'
setup(
name='highlander-one',
version=__version__,
author='Christopher T. Cannon',
author_email='christophertcannon@gmail.com',
description='A simple decorator to ensure that your '
'program is only running once on a system.',
url='https://github.com/chriscannon/highlander',
install_requires=[
'funcy>=1.4',
'psutil>=2.2.1'
],
license='MIT',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
],
download_url='https://github.com/chriscannon/highlander/tarball/{0}'.format(__version__),
packages=['highlander'],
test_suite='tests.highlander_tests.get_suite',
)
|
Make it not a pre-release so that it can be installed from pip.
|
Make it not a pre-release so that it can be installed from pip.
|
Python
|
mit
|
chriscannon/highlander
|
#!/usr/bin/env python
from setuptools import setup
__version__ = '0.1.0b1'
setup(
name='highlander-one',
version=__version__,
author='Christopher T. Cannon',
author_email='christophertcannon@gmail.com',
description='A simple decorator to ensure that your '
'program is only running once on a system.',
url='https://github.com/chriscannon/highlander',
install_requires=[
'funcy>=1.4',
'psutil>=2.2.1'
],
license='MIT',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
],
download_url='https://github.com/chriscannon/highlander/tarball/{0}'.format(__version__),
packages=['highlander'],
test_suite='tests.highlander_tests.get_suite',
)
Make it not a pre-release so that it can be installed from pip.
|
#!/usr/bin/env python
from setuptools import setup
__version__ = '0.1.0'
setup(
name='highlander-one',
version=__version__,
author='Christopher T. Cannon',
author_email='christophertcannon@gmail.com',
description='A simple decorator to ensure that your '
'program is only running once on a system.',
url='https://github.com/chriscannon/highlander',
install_requires=[
'funcy>=1.4',
'psutil>=2.2.1'
],
license='MIT',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
],
download_url='https://github.com/chriscannon/highlander/tarball/{0}'.format(__version__),
packages=['highlander'],
test_suite='tests.highlander_tests.get_suite',
)
|
<commit_before>#!/usr/bin/env python
from setuptools import setup
__version__ = '0.1.0b1'
setup(
name='highlander-one',
version=__version__,
author='Christopher T. Cannon',
author_email='christophertcannon@gmail.com',
description='A simple decorator to ensure that your '
'program is only running once on a system.',
url='https://github.com/chriscannon/highlander',
install_requires=[
'funcy>=1.4',
'psutil>=2.2.1'
],
license='MIT',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
],
download_url='https://github.com/chriscannon/highlander/tarball/{0}'.format(__version__),
packages=['highlander'],
test_suite='tests.highlander_tests.get_suite',
)
<commit_msg>Make it not a pre-release so that it can be installed from pip.<commit_after>
|
#!/usr/bin/env python
from setuptools import setup
__version__ = '0.1.0'
setup(
name='highlander-one',
version=__version__,
author='Christopher T. Cannon',
author_email='christophertcannon@gmail.com',
description='A simple decorator to ensure that your '
'program is only running once on a system.',
url='https://github.com/chriscannon/highlander',
install_requires=[
'funcy>=1.4',
'psutil>=2.2.1'
],
license='MIT',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
],
download_url='https://github.com/chriscannon/highlander/tarball/{0}'.format(__version__),
packages=['highlander'],
test_suite='tests.highlander_tests.get_suite',
)
|
#!/usr/bin/env python
from setuptools import setup
__version__ = '0.1.0b1'
setup(
name='highlander-one',
version=__version__,
author='Christopher T. Cannon',
author_email='christophertcannon@gmail.com',
description='A simple decorator to ensure that your '
'program is only running once on a system.',
url='https://github.com/chriscannon/highlander',
install_requires=[
'funcy>=1.4',
'psutil>=2.2.1'
],
license='MIT',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
],
download_url='https://github.com/chriscannon/highlander/tarball/{0}'.format(__version__),
packages=['highlander'],
test_suite='tests.highlander_tests.get_suite',
)
Make it not a pre-release so that it can be installed from pip.#!/usr/bin/env python
from setuptools import setup
__version__ = '0.1.0'
setup(
name='highlander-one',
version=__version__,
author='Christopher T. Cannon',
author_email='christophertcannon@gmail.com',
description='A simple decorator to ensure that your '
'program is only running once on a system.',
url='https://github.com/chriscannon/highlander',
install_requires=[
'funcy>=1.4',
'psutil>=2.2.1'
],
license='MIT',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
],
download_url='https://github.com/chriscannon/highlander/tarball/{0}'.format(__version__),
packages=['highlander'],
test_suite='tests.highlander_tests.get_suite',
)
|
<commit_before>#!/usr/bin/env python
from setuptools import setup
__version__ = '0.1.0b1'
setup(
name='highlander-one',
version=__version__,
author='Christopher T. Cannon',
author_email='christophertcannon@gmail.com',
description='A simple decorator to ensure that your '
'program is only running once on a system.',
url='https://github.com/chriscannon/highlander',
install_requires=[
'funcy>=1.4',
'psutil>=2.2.1'
],
license='MIT',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
],
download_url='https://github.com/chriscannon/highlander/tarball/{0}'.format(__version__),
packages=['highlander'],
test_suite='tests.highlander_tests.get_suite',
)
<commit_msg>Make it not a pre-release so that it can be installed from pip.<commit_after>#!/usr/bin/env python
from setuptools import setup
__version__ = '0.1.0'
setup(
name='highlander-one',
version=__version__,
author='Christopher T. Cannon',
author_email='christophertcannon@gmail.com',
description='A simple decorator to ensure that your '
'program is only running once on a system.',
url='https://github.com/chriscannon/highlander',
install_requires=[
'funcy>=1.4',
'psutil>=2.2.1'
],
license='MIT',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
],
download_url='https://github.com/chriscannon/highlander/tarball/{0}'.format(__version__),
packages=['highlander'],
test_suite='tests.highlander_tests.get_suite',
)
|
a89ff1565e83677a07affe7f7b018ab29d535b99
|
setup.py
|
setup.py
|
#from distutils.core import setup
from setuptools import setup, find_packages
setup(
name='Flask-MongoMyAdmin',
version='0.1',
url='http://github.com/classicspecs/Flask-MongoMyAdmin/',
author='Jay Goel',
author_email='jay@classicspecs.com',
description='Simple MongoDB Administrative Interface for Flask',
long_description=open('README.rst').read(),
#packages=['flask_mongomyadmin'],
packages=find_packages(),
include_package_data=True,
zip_safe=False,
platforms='any',
install_requires=[
'Flask',
'pymongo',
],
classifiers=[
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules'
]
)
# To update pypi: `python setup.py register sdist bdist_wininst upload`
|
#from distutils.core import setup
from setuptools import setup, find_packages
setup(
name='Flask-MongoMyAdmin',
version='0.1',
url='http://github.com/classicspecs/Flask-MongoMyAdmin/',
author='Jay Goel',
author_email='jay@classicspecs.com',
description='Simple MongoDB Administrative Interface for Flask',
long_description=open('README.rst').read(),
#packages=['flask_mongomyadmin'],
packages=find_packages(),
include_package_data=True,
zip_safe=False,
platforms='any',
install_requires=[
'Flask',
'pymongo',
],
classifiers=[
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules'
]
)
# To update pypi: `python setup.py register sdist upload`
|
Fix comment describing pypi incantation
|
Fix comment describing pypi incantation
|
Python
|
apache-2.0
|
poundifdef/Flask-MongoMyAdmin,poundifdef/Flask-MongoMyAdmin
|
#from distutils.core import setup
from setuptools import setup, find_packages
setup(
name='Flask-MongoMyAdmin',
version='0.1',
url='http://github.com/classicspecs/Flask-MongoMyAdmin/',
author='Jay Goel',
author_email='jay@classicspecs.com',
description='Simple MongoDB Administrative Interface for Flask',
long_description=open('README.rst').read(),
#packages=['flask_mongomyadmin'],
packages=find_packages(),
include_package_data=True,
zip_safe=False,
platforms='any',
install_requires=[
'Flask',
'pymongo',
],
classifiers=[
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules'
]
)
# To update pypi: `python setup.py register sdist bdist_wininst upload`
Fix comment describing pypi incantation
|
#from distutils.core import setup
from setuptools import setup, find_packages
setup(
name='Flask-MongoMyAdmin',
version='0.1',
url='http://github.com/classicspecs/Flask-MongoMyAdmin/',
author='Jay Goel',
author_email='jay@classicspecs.com',
description='Simple MongoDB Administrative Interface for Flask',
long_description=open('README.rst').read(),
#packages=['flask_mongomyadmin'],
packages=find_packages(),
include_package_data=True,
zip_safe=False,
platforms='any',
install_requires=[
'Flask',
'pymongo',
],
classifiers=[
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules'
]
)
# To update pypi: `python setup.py register sdist upload`
|
<commit_before>#from distutils.core import setup
from setuptools import setup, find_packages
setup(
name='Flask-MongoMyAdmin',
version='0.1',
url='http://github.com/classicspecs/Flask-MongoMyAdmin/',
author='Jay Goel',
author_email='jay@classicspecs.com',
description='Simple MongoDB Administrative Interface for Flask',
long_description=open('README.rst').read(),
#packages=['flask_mongomyadmin'],
packages=find_packages(),
include_package_data=True,
zip_safe=False,
platforms='any',
install_requires=[
'Flask',
'pymongo',
],
classifiers=[
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules'
]
)
# To update pypi: `python setup.py register sdist bdist_wininst upload`
<commit_msg>Fix comment describing pypi incantation<commit_after>
|
#from distutils.core import setup
from setuptools import setup, find_packages
setup(
name='Flask-MongoMyAdmin',
version='0.1',
url='http://github.com/classicspecs/Flask-MongoMyAdmin/',
author='Jay Goel',
author_email='jay@classicspecs.com',
description='Simple MongoDB Administrative Interface for Flask',
long_description=open('README.rst').read(),
#packages=['flask_mongomyadmin'],
packages=find_packages(),
include_package_data=True,
zip_safe=False,
platforms='any',
install_requires=[
'Flask',
'pymongo',
],
classifiers=[
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules'
]
)
# To update pypi: `python setup.py register sdist upload`
|
#from distutils.core import setup
from setuptools import setup, find_packages
setup(
name='Flask-MongoMyAdmin',
version='0.1',
url='http://github.com/classicspecs/Flask-MongoMyAdmin/',
author='Jay Goel',
author_email='jay@classicspecs.com',
description='Simple MongoDB Administrative Interface for Flask',
long_description=open('README.rst').read(),
#packages=['flask_mongomyadmin'],
packages=find_packages(),
include_package_data=True,
zip_safe=False,
platforms='any',
install_requires=[
'Flask',
'pymongo',
],
classifiers=[
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules'
]
)
# To update pypi: `python setup.py register sdist bdist_wininst upload`
Fix comment describing pypi incantation#from distutils.core import setup
from setuptools import setup, find_packages
setup(
name='Flask-MongoMyAdmin',
version='0.1',
url='http://github.com/classicspecs/Flask-MongoMyAdmin/',
author='Jay Goel',
author_email='jay@classicspecs.com',
description='Simple MongoDB Administrative Interface for Flask',
long_description=open('README.rst').read(),
#packages=['flask_mongomyadmin'],
packages=find_packages(),
include_package_data=True,
zip_safe=False,
platforms='any',
install_requires=[
'Flask',
'pymongo',
],
classifiers=[
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules'
]
)
# To update pypi: `python setup.py register sdist upload`
|
<commit_before>#from distutils.core import setup
from setuptools import setup, find_packages
setup(
name='Flask-MongoMyAdmin',
version='0.1',
url='http://github.com/classicspecs/Flask-MongoMyAdmin/',
author='Jay Goel',
author_email='jay@classicspecs.com',
description='Simple MongoDB Administrative Interface for Flask',
long_description=open('README.rst').read(),
#packages=['flask_mongomyadmin'],
packages=find_packages(),
include_package_data=True,
zip_safe=False,
platforms='any',
install_requires=[
'Flask',
'pymongo',
],
classifiers=[
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules'
]
)
# To update pypi: `python setup.py register sdist bdist_wininst upload`
<commit_msg>Fix comment describing pypi incantation<commit_after>#from distutils.core import setup
from setuptools import setup, find_packages
setup(
name='Flask-MongoMyAdmin',
version='0.1',
url='http://github.com/classicspecs/Flask-MongoMyAdmin/',
author='Jay Goel',
author_email='jay@classicspecs.com',
description='Simple MongoDB Administrative Interface for Flask',
long_description=open('README.rst').read(),
#packages=['flask_mongomyadmin'],
packages=find_packages(),
include_package_data=True,
zip_safe=False,
platforms='any',
install_requires=[
'Flask',
'pymongo',
],
classifiers=[
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules'
]
)
# To update pypi: `python setup.py register sdist upload`
|
94d650fb66f79021bd757d70c4b1b82c3f200c12
|
setup.py
|
setup.py
|
from setuptools import setup
setup(
name = 'flowz',
version = '0.5.0',
description = 'Async I/O - oriented dependency programming framework',
url = 'https://github.com/ethanrowe/flowz',
author = 'Ethan Rowe',
author_email = 'ethan@the-rowes.com',
license = 'MIT',
test_suite = 'nose.collector',
packages = [
'flowz',
'flowz.channels',
'flowz.examples',
'flowz.test',
'flowz.test.artifacts',
'flowz.test.channels',
'flowz.test.util',
],
tests_require = [
'mock',
'nose',
'six >= 1.9.0',
],
install_requires = [
'tornado >= 4.2',
'futures >= 3.0.5'
])
|
from setuptools import setup
setup(
name = 'flowz',
version = '0.6.0',
description = 'Async I/O - oriented dependency programming framework',
url = 'https://github.com/ethanrowe/flowz',
author = 'Ethan Rowe',
author_email = 'ethan@the-rowes.com',
license = 'MIT',
test_suite = 'nose.collector',
packages = [
'flowz',
'flowz.channels',
'flowz.examples',
'flowz.test',
'flowz.test.artifacts',
'flowz.test.channels',
'flowz.test.util',
],
tests_require = [
'mock',
'nose',
'six >= 1.9.0',
],
install_requires = [
'tornado >= 4.2',
'futures >= 3.0.5'
])
|
Package version bump to 0.6.0
|
Package version bump to 0.6.0
|
Python
|
mit
|
ethanrowe/flowz,PatrickDRusk/flowz
|
from setuptools import setup
setup(
name = 'flowz',
version = '0.5.0',
description = 'Async I/O - oriented dependency programming framework',
url = 'https://github.com/ethanrowe/flowz',
author = 'Ethan Rowe',
author_email = 'ethan@the-rowes.com',
license = 'MIT',
test_suite = 'nose.collector',
packages = [
'flowz',
'flowz.channels',
'flowz.examples',
'flowz.test',
'flowz.test.artifacts',
'flowz.test.channels',
'flowz.test.util',
],
tests_require = [
'mock',
'nose',
'six >= 1.9.0',
],
install_requires = [
'tornado >= 4.2',
'futures >= 3.0.5'
])
Package version bump to 0.6.0
|
from setuptools import setup
setup(
name = 'flowz',
version = '0.6.0',
description = 'Async I/O - oriented dependency programming framework',
url = 'https://github.com/ethanrowe/flowz',
author = 'Ethan Rowe',
author_email = 'ethan@the-rowes.com',
license = 'MIT',
test_suite = 'nose.collector',
packages = [
'flowz',
'flowz.channels',
'flowz.examples',
'flowz.test',
'flowz.test.artifacts',
'flowz.test.channels',
'flowz.test.util',
],
tests_require = [
'mock',
'nose',
'six >= 1.9.0',
],
install_requires = [
'tornado >= 4.2',
'futures >= 3.0.5'
])
|
<commit_before>from setuptools import setup
setup(
name = 'flowz',
version = '0.5.0',
description = 'Async I/O - oriented dependency programming framework',
url = 'https://github.com/ethanrowe/flowz',
author = 'Ethan Rowe',
author_email = 'ethan@the-rowes.com',
license = 'MIT',
test_suite = 'nose.collector',
packages = [
'flowz',
'flowz.channels',
'flowz.examples',
'flowz.test',
'flowz.test.artifacts',
'flowz.test.channels',
'flowz.test.util',
],
tests_require = [
'mock',
'nose',
'six >= 1.9.0',
],
install_requires = [
'tornado >= 4.2',
'futures >= 3.0.5'
])
<commit_msg>Package version bump to 0.6.0<commit_after>
|
from setuptools import setup
setup(
name = 'flowz',
version = '0.6.0',
description = 'Async I/O - oriented dependency programming framework',
url = 'https://github.com/ethanrowe/flowz',
author = 'Ethan Rowe',
author_email = 'ethan@the-rowes.com',
license = 'MIT',
test_suite = 'nose.collector',
packages = [
'flowz',
'flowz.channels',
'flowz.examples',
'flowz.test',
'flowz.test.artifacts',
'flowz.test.channels',
'flowz.test.util',
],
tests_require = [
'mock',
'nose',
'six >= 1.9.0',
],
install_requires = [
'tornado >= 4.2',
'futures >= 3.0.5'
])
|
from setuptools import setup
setup(
name = 'flowz',
version = '0.5.0',
description = 'Async I/O - oriented dependency programming framework',
url = 'https://github.com/ethanrowe/flowz',
author = 'Ethan Rowe',
author_email = 'ethan@the-rowes.com',
license = 'MIT',
test_suite = 'nose.collector',
packages = [
'flowz',
'flowz.channels',
'flowz.examples',
'flowz.test',
'flowz.test.artifacts',
'flowz.test.channels',
'flowz.test.util',
],
tests_require = [
'mock',
'nose',
'six >= 1.9.0',
],
install_requires = [
'tornado >= 4.2',
'futures >= 3.0.5'
])
Package version bump to 0.6.0from setuptools import setup
setup(
name = 'flowz',
version = '0.6.0',
description = 'Async I/O - oriented dependency programming framework',
url = 'https://github.com/ethanrowe/flowz',
author = 'Ethan Rowe',
author_email = 'ethan@the-rowes.com',
license = 'MIT',
test_suite = 'nose.collector',
packages = [
'flowz',
'flowz.channels',
'flowz.examples',
'flowz.test',
'flowz.test.artifacts',
'flowz.test.channels',
'flowz.test.util',
],
tests_require = [
'mock',
'nose',
'six >= 1.9.0',
],
install_requires = [
'tornado >= 4.2',
'futures >= 3.0.5'
])
|
<commit_before>from setuptools import setup
setup(
name = 'flowz',
version = '0.5.0',
description = 'Async I/O - oriented dependency programming framework',
url = 'https://github.com/ethanrowe/flowz',
author = 'Ethan Rowe',
author_email = 'ethan@the-rowes.com',
license = 'MIT',
test_suite = 'nose.collector',
packages = [
'flowz',
'flowz.channels',
'flowz.examples',
'flowz.test',
'flowz.test.artifacts',
'flowz.test.channels',
'flowz.test.util',
],
tests_require = [
'mock',
'nose',
'six >= 1.9.0',
],
install_requires = [
'tornado >= 4.2',
'futures >= 3.0.5'
])
<commit_msg>Package version bump to 0.6.0<commit_after>from setuptools import setup
setup(
name = 'flowz',
version = '0.6.0',
description = 'Async I/O - oriented dependency programming framework',
url = 'https://github.com/ethanrowe/flowz',
author = 'Ethan Rowe',
author_email = 'ethan@the-rowes.com',
license = 'MIT',
test_suite = 'nose.collector',
packages = [
'flowz',
'flowz.channels',
'flowz.examples',
'flowz.test',
'flowz.test.artifacts',
'flowz.test.channels',
'flowz.test.util',
],
tests_require = [
'mock',
'nose',
'six >= 1.9.0',
],
install_requires = [
'tornado >= 4.2',
'futures >= 3.0.5'
])
|
3a7d79e52ce942522f9802fd42c202369e0b5c8a
|
setup.py
|
setup.py
|
#!/usr/bin/env python2.7
from __future__ import print_function
import os
from setuptools import setup
version = '1.1.4b'
# Append TeamCity build number if it gives us one.
if 'TC_BUILD_NUMBER' in os.environ and version.endswith('b'):
version += '' + os.environ['TC_BUILD_NUMBER']
setup(name='fetch',
maintainer='Jeremy Hooke',
maintainer_email='jeremy.hooke@ga.gov.au',
version=version,
description='Automatic retrieval of ancillary and data',
packages=[
'fetch',
'fetch.scripts'
],
install_requires=[
'arrow',
'croniter',
'feedparser',
'lxml',
'pathlib',
'pyyaml',
'requests',
'setproctitle',
],
entry_points={
'console_scripts': [
'fetch-service = fetch.scripts.service:main'
'fetch-once = fetch.scripts.once:main'
]
},
)
|
#!/usr/bin/env python2.7
from __future__ import print_function
import os
import sys
from setuptools import setup
version = '1.1.4b'
# Append TeamCity build number if it gives us one.
if 'TC_BUILD_NUMBER' in os.environ and version.endswith('b'):
version += '' + os.environ['TC_BUILD_NUMBER']
setup(name='fetch',
maintainer='Jeremy Hooke',
maintainer_email='jeremy.hooke@ga.gov.au',
version=version,
description='Automatic retrieval of ancillary and data',
packages=[
'fetch',
'fetch.scripts'
],
install_requires=[
'arrow',
'croniter',
'feedparser',
'lxml',
'pathlib',
'pyyaml',
'requests',
] + (
# Setting subprocess names is only support on Linux
['setproctitle'] if 'linux' in sys.platform else []
),
entry_points={
'console_scripts': [
'fetch-service = fetch.scripts.service:main',
'fetch-once = fetch.scripts.once:main'
]
},
)
|
Fix the dependency list for non-Linux systems
|
Fix the dependency list for non-Linux systems
setproctitle is not available for other platforms. It's optional in the code.
|
Python
|
apache-2.0
|
GeoscienceAustralia/fetch,GeoscienceAustralia/fetch
|
#!/usr/bin/env python2.7
from __future__ import print_function
import os
from setuptools import setup
version = '1.1.4b'
# Append TeamCity build number if it gives us one.
if 'TC_BUILD_NUMBER' in os.environ and version.endswith('b'):
version += '' + os.environ['TC_BUILD_NUMBER']
setup(name='fetch',
maintainer='Jeremy Hooke',
maintainer_email='jeremy.hooke@ga.gov.au',
version=version,
description='Automatic retrieval of ancillary and data',
packages=[
'fetch',
'fetch.scripts'
],
install_requires=[
'arrow',
'croniter',
'feedparser',
'lxml',
'pathlib',
'pyyaml',
'requests',
'setproctitle',
],
entry_points={
'console_scripts': [
'fetch-service = fetch.scripts.service:main'
'fetch-once = fetch.scripts.once:main'
]
},
)
Fix the dependency list for non-Linux systems
setproctitle is not available for other platforms. It's optional in the code.
|
#!/usr/bin/env python2.7
from __future__ import print_function
import os
import sys
from setuptools import setup
version = '1.1.4b'
# Append TeamCity build number if it gives us one.
if 'TC_BUILD_NUMBER' in os.environ and version.endswith('b'):
version += '' + os.environ['TC_BUILD_NUMBER']
setup(name='fetch',
maintainer='Jeremy Hooke',
maintainer_email='jeremy.hooke@ga.gov.au',
version=version,
description='Automatic retrieval of ancillary and data',
packages=[
'fetch',
'fetch.scripts'
],
install_requires=[
'arrow',
'croniter',
'feedparser',
'lxml',
'pathlib',
'pyyaml',
'requests',
] + (
# Setting subprocess names is only support on Linux
['setproctitle'] if 'linux' in sys.platform else []
),
entry_points={
'console_scripts': [
'fetch-service = fetch.scripts.service:main',
'fetch-once = fetch.scripts.once:main'
]
},
)
|
<commit_before>#!/usr/bin/env python2.7
from __future__ import print_function
import os
from setuptools import setup
version = '1.1.4b'
# Append TeamCity build number if it gives us one.
if 'TC_BUILD_NUMBER' in os.environ and version.endswith('b'):
version += '' + os.environ['TC_BUILD_NUMBER']
setup(name='fetch',
maintainer='Jeremy Hooke',
maintainer_email='jeremy.hooke@ga.gov.au',
version=version,
description='Automatic retrieval of ancillary and data',
packages=[
'fetch',
'fetch.scripts'
],
install_requires=[
'arrow',
'croniter',
'feedparser',
'lxml',
'pathlib',
'pyyaml',
'requests',
'setproctitle',
],
entry_points={
'console_scripts': [
'fetch-service = fetch.scripts.service:main'
'fetch-once = fetch.scripts.once:main'
]
},
)
<commit_msg>Fix the dependency list for non-Linux systems
setproctitle is not available for other platforms. It's optional in the code.<commit_after>
|
#!/usr/bin/env python2.7
from __future__ import print_function
import os
import sys
from setuptools import setup
version = '1.1.4b'
# Append TeamCity build number if it gives us one.
if 'TC_BUILD_NUMBER' in os.environ and version.endswith('b'):
version += '' + os.environ['TC_BUILD_NUMBER']
setup(name='fetch',
maintainer='Jeremy Hooke',
maintainer_email='jeremy.hooke@ga.gov.au',
version=version,
description='Automatic retrieval of ancillary and data',
packages=[
'fetch',
'fetch.scripts'
],
install_requires=[
'arrow',
'croniter',
'feedparser',
'lxml',
'pathlib',
'pyyaml',
'requests',
] + (
# Setting subprocess names is only support on Linux
['setproctitle'] if 'linux' in sys.platform else []
),
entry_points={
'console_scripts': [
'fetch-service = fetch.scripts.service:main',
'fetch-once = fetch.scripts.once:main'
]
},
)
|
#!/usr/bin/env python2.7
from __future__ import print_function
import os
from setuptools import setup
version = '1.1.4b'
# Append TeamCity build number if it gives us one.
if 'TC_BUILD_NUMBER' in os.environ and version.endswith('b'):
version += '' + os.environ['TC_BUILD_NUMBER']
setup(name='fetch',
maintainer='Jeremy Hooke',
maintainer_email='jeremy.hooke@ga.gov.au',
version=version,
description='Automatic retrieval of ancillary and data',
packages=[
'fetch',
'fetch.scripts'
],
install_requires=[
'arrow',
'croniter',
'feedparser',
'lxml',
'pathlib',
'pyyaml',
'requests',
'setproctitle',
],
entry_points={
'console_scripts': [
'fetch-service = fetch.scripts.service:main'
'fetch-once = fetch.scripts.once:main'
]
},
)
Fix the dependency list for non-Linux systems
setproctitle is not available for other platforms. It's optional in the code.#!/usr/bin/env python2.7
from __future__ import print_function
import os
import sys
from setuptools import setup
version = '1.1.4b'
# Append TeamCity build number if it gives us one.
if 'TC_BUILD_NUMBER' in os.environ and version.endswith('b'):
version += '' + os.environ['TC_BUILD_NUMBER']
setup(name='fetch',
maintainer='Jeremy Hooke',
maintainer_email='jeremy.hooke@ga.gov.au',
version=version,
description='Automatic retrieval of ancillary and data',
packages=[
'fetch',
'fetch.scripts'
],
install_requires=[
'arrow',
'croniter',
'feedparser',
'lxml',
'pathlib',
'pyyaml',
'requests',
] + (
# Setting subprocess names is only support on Linux
['setproctitle'] if 'linux' in sys.platform else []
),
entry_points={
'console_scripts': [
'fetch-service = fetch.scripts.service:main',
'fetch-once = fetch.scripts.once:main'
]
},
)
|
<commit_before>#!/usr/bin/env python2.7
from __future__ import print_function
import os
from setuptools import setup
version = '1.1.4b'
# Append TeamCity build number if it gives us one.
if 'TC_BUILD_NUMBER' in os.environ and version.endswith('b'):
version += '' + os.environ['TC_BUILD_NUMBER']
setup(name='fetch',
maintainer='Jeremy Hooke',
maintainer_email='jeremy.hooke@ga.gov.au',
version=version,
description='Automatic retrieval of ancillary and data',
packages=[
'fetch',
'fetch.scripts'
],
install_requires=[
'arrow',
'croniter',
'feedparser',
'lxml',
'pathlib',
'pyyaml',
'requests',
'setproctitle',
],
entry_points={
'console_scripts': [
'fetch-service = fetch.scripts.service:main'
'fetch-once = fetch.scripts.once:main'
]
},
)
<commit_msg>Fix the dependency list for non-Linux systems
setproctitle is not available for other platforms. It's optional in the code.<commit_after>#!/usr/bin/env python2.7
from __future__ import print_function
import os
import sys
from setuptools import setup
version = '1.1.4b'
# Append TeamCity build number if it gives us one.
if 'TC_BUILD_NUMBER' in os.environ and version.endswith('b'):
version += '' + os.environ['TC_BUILD_NUMBER']
setup(name='fetch',
maintainer='Jeremy Hooke',
maintainer_email='jeremy.hooke@ga.gov.au',
version=version,
description='Automatic retrieval of ancillary and data',
packages=[
'fetch',
'fetch.scripts'
],
install_requires=[
'arrow',
'croniter',
'feedparser',
'lxml',
'pathlib',
'pyyaml',
'requests',
] + (
# Setting subprocess names is only support on Linux
['setproctitle'] if 'linux' in sys.platform else []
),
entry_points={
'console_scripts': [
'fetch-service = fetch.scripts.service:main',
'fetch-once = fetch.scripts.once:main'
]
},
)
|
372dcd7cf3b5cb71a592e5a8e3a9031a27cd92cc
|
setup.py
|
setup.py
|
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
version = '0.0.0'
try:
import bugbuzz
version = bugbuzz.__version__
except ImportError:
pass
tests_require = [
'mock',
'pytest',
'pytest-cov',
'pytest-xdist',
'pytest-capturelog',
'pytest-mock',
]
setup(
name='bugbuzz',
author='Victor Lin',
author_email='hello@victorlin.me',
url='https://github.com/victorlin/bugbuzz-python',
description='Easy to use web-base online debugger',
keywords='debugger debug pdb',
license='MIT',
version=version,
packages=find_packages(),
install_requires=[
'pycrypto',
],
extras_require=dict(
tests=tests_require,
),
tests_require=tests_require,
)
|
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
version = '0.0.0'
try:
import bugbuzz
version = bugbuzz.__version__
except ImportError:
pass
tests_require = [
'mock',
'pytest',
'pytest-cov',
'pytest-xdist',
'pytest-capturelog',
'pytest-mock',
]
setup(
name='bugbuzz',
author='Victor Lin',
author_email='hello@victorlin.me',
url='https://github.com/victorlin/bugbuzz-python',
description='Easy to use web-base online debugger',
keywords='debugger debug pdb',
license='MIT',
version=version,
packages=find_packages(),
package_data={'': ['LICENSE'], 'bugbuzz/packages/requests': ['*.pem']},
include_package_data=True,
zip_safe=False,
install_requires=[
'pycrypto',
],
extras_require=dict(
tests=tests_require,
),
tests_require=tests_require,
)
|
Fix requests ca cert file missing bug
|
Fix requests ca cert file missing bug
|
Python
|
mit
|
victorlin/bugbuzz-python,victorlin/bugbuzz-python
|
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
version = '0.0.0'
try:
import bugbuzz
version = bugbuzz.__version__
except ImportError:
pass
tests_require = [
'mock',
'pytest',
'pytest-cov',
'pytest-xdist',
'pytest-capturelog',
'pytest-mock',
]
setup(
name='bugbuzz',
author='Victor Lin',
author_email='hello@victorlin.me',
url='https://github.com/victorlin/bugbuzz-python',
description='Easy to use web-base online debugger',
keywords='debugger debug pdb',
license='MIT',
version=version,
packages=find_packages(),
install_requires=[
'pycrypto',
],
extras_require=dict(
tests=tests_require,
),
tests_require=tests_require,
)
Fix requests ca cert file missing bug
|
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
version = '0.0.0'
try:
import bugbuzz
version = bugbuzz.__version__
except ImportError:
pass
tests_require = [
'mock',
'pytest',
'pytest-cov',
'pytest-xdist',
'pytest-capturelog',
'pytest-mock',
]
setup(
name='bugbuzz',
author='Victor Lin',
author_email='hello@victorlin.me',
url='https://github.com/victorlin/bugbuzz-python',
description='Easy to use web-base online debugger',
keywords='debugger debug pdb',
license='MIT',
version=version,
packages=find_packages(),
package_data={'': ['LICENSE'], 'bugbuzz/packages/requests': ['*.pem']},
include_package_data=True,
zip_safe=False,
install_requires=[
'pycrypto',
],
extras_require=dict(
tests=tests_require,
),
tests_require=tests_require,
)
|
<commit_before>from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
version = '0.0.0'
try:
import bugbuzz
version = bugbuzz.__version__
except ImportError:
pass
tests_require = [
'mock',
'pytest',
'pytest-cov',
'pytest-xdist',
'pytest-capturelog',
'pytest-mock',
]
setup(
name='bugbuzz',
author='Victor Lin',
author_email='hello@victorlin.me',
url='https://github.com/victorlin/bugbuzz-python',
description='Easy to use web-base online debugger',
keywords='debugger debug pdb',
license='MIT',
version=version,
packages=find_packages(),
install_requires=[
'pycrypto',
],
extras_require=dict(
tests=tests_require,
),
tests_require=tests_require,
)
<commit_msg>Fix requests ca cert file missing bug<commit_after>
|
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
version = '0.0.0'
try:
import bugbuzz
version = bugbuzz.__version__
except ImportError:
pass
tests_require = [
'mock',
'pytest',
'pytest-cov',
'pytest-xdist',
'pytest-capturelog',
'pytest-mock',
]
setup(
name='bugbuzz',
author='Victor Lin',
author_email='hello@victorlin.me',
url='https://github.com/victorlin/bugbuzz-python',
description='Easy to use web-base online debugger',
keywords='debugger debug pdb',
license='MIT',
version=version,
packages=find_packages(),
package_data={'': ['LICENSE'], 'bugbuzz/packages/requests': ['*.pem']},
include_package_data=True,
zip_safe=False,
install_requires=[
'pycrypto',
],
extras_require=dict(
tests=tests_require,
),
tests_require=tests_require,
)
|
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
version = '0.0.0'
try:
import bugbuzz
version = bugbuzz.__version__
except ImportError:
pass
tests_require = [
'mock',
'pytest',
'pytest-cov',
'pytest-xdist',
'pytest-capturelog',
'pytest-mock',
]
setup(
name='bugbuzz',
author='Victor Lin',
author_email='hello@victorlin.me',
url='https://github.com/victorlin/bugbuzz-python',
description='Easy to use web-base online debugger',
keywords='debugger debug pdb',
license='MIT',
version=version,
packages=find_packages(),
install_requires=[
'pycrypto',
],
extras_require=dict(
tests=tests_require,
),
tests_require=tests_require,
)
Fix requests ca cert file missing bugfrom ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
version = '0.0.0'
try:
import bugbuzz
version = bugbuzz.__version__
except ImportError:
pass
tests_require = [
'mock',
'pytest',
'pytest-cov',
'pytest-xdist',
'pytest-capturelog',
'pytest-mock',
]
setup(
name='bugbuzz',
author='Victor Lin',
author_email='hello@victorlin.me',
url='https://github.com/victorlin/bugbuzz-python',
description='Easy to use web-base online debugger',
keywords='debugger debug pdb',
license='MIT',
version=version,
packages=find_packages(),
package_data={'': ['LICENSE'], 'bugbuzz/packages/requests': ['*.pem']},
include_package_data=True,
zip_safe=False,
install_requires=[
'pycrypto',
],
extras_require=dict(
tests=tests_require,
),
tests_require=tests_require,
)
|
<commit_before>from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
version = '0.0.0'
try:
import bugbuzz
version = bugbuzz.__version__
except ImportError:
pass
tests_require = [
'mock',
'pytest',
'pytest-cov',
'pytest-xdist',
'pytest-capturelog',
'pytest-mock',
]
setup(
name='bugbuzz',
author='Victor Lin',
author_email='hello@victorlin.me',
url='https://github.com/victorlin/bugbuzz-python',
description='Easy to use web-base online debugger',
keywords='debugger debug pdb',
license='MIT',
version=version,
packages=find_packages(),
install_requires=[
'pycrypto',
],
extras_require=dict(
tests=tests_require,
),
tests_require=tests_require,
)
<commit_msg>Fix requests ca cert file missing bug<commit_after>from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
version = '0.0.0'
try:
import bugbuzz
version = bugbuzz.__version__
except ImportError:
pass
tests_require = [
'mock',
'pytest',
'pytest-cov',
'pytest-xdist',
'pytest-capturelog',
'pytest-mock',
]
setup(
name='bugbuzz',
author='Victor Lin',
author_email='hello@victorlin.me',
url='https://github.com/victorlin/bugbuzz-python',
description='Easy to use web-base online debugger',
keywords='debugger debug pdb',
license='MIT',
version=version,
packages=find_packages(),
package_data={'': ['LICENSE'], 'bugbuzz/packages/requests': ['*.pem']},
include_package_data=True,
zip_safe=False,
install_requires=[
'pycrypto',
],
extras_require=dict(
tests=tests_require,
),
tests_require=tests_require,
)
|
6dee9e30424582b1a61f37803ef81f28ebc7baa3
|
setup.py
|
setup.py
|
#!/usr/bin/env python
import os
import sys
from setuptools import setup
__author__ = 'Mike Helmick <me@michaelhelmick.com>'
__version__ = '1.1.1'
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys.exit()
setup(
name='python-tumblpy',
version=__version__,
install_requires=['requests>=1.2.2', 'requests_oauthlib>=0.3.2'],
author='Mike Helmick',
author_email='me@michaelhelmick.com',
license=open('LICENSE').read(),
url='https://github.com/michaelhelmick/python-tumblpy/',
keywords='python tumblpy tumblr oauth api',
description='A Python Library to interface with Tumblr v2 REST API & OAuth',
long_description=open('README.rst').read() + '\n\n' +
open('HISTORY.rst').read(),
download_url='https://github.com/michaelhelmick/python-tumblpy/zipball/master',
include_package_data=True,
packages=['tumblpy'],
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Communications :: Chat',
'Topic :: Internet'
],
)
|
#!/usr/bin/env python
import os
import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
__author__ = 'Mike Helmick <me@michaelhelmick.com>'
__version__ = '1.1.1'
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys.exit()
setup(
name='python-tumblpy',
version=__version__,
install_requires=['requests>=1.2.2', 'requests_oauthlib>=0.3.2'],
author='Mike Helmick',
author_email='me@michaelhelmick.com',
license=open('LICENSE').read(),
url='https://github.com/michaelhelmick/python-tumblpy/',
keywords='python tumblpy tumblr oauth api',
description='A Python Library to interface with Tumblr v2 REST API & OAuth',
long_description=open('README.rst').read() + '\n\n' +
open('HISTORY.rst').read(),
download_url='https://github.com/michaelhelmick/python-tumblpy/zipball/master',
include_package_data=True,
packages=['tumblpy'],
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Communications :: Chat',
'Topic :: Internet'
],
)
|
Add distutils for legacy pypi
|
Add distutils for legacy pypi
|
Python
|
bsd-2-clause
|
michaelhelmick/python-tumblpy
|
#!/usr/bin/env python
import os
import sys
from setuptools import setup
__author__ = 'Mike Helmick <me@michaelhelmick.com>'
__version__ = '1.1.1'
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys.exit()
setup(
name='python-tumblpy',
version=__version__,
install_requires=['requests>=1.2.2', 'requests_oauthlib>=0.3.2'],
author='Mike Helmick',
author_email='me@michaelhelmick.com',
license=open('LICENSE').read(),
url='https://github.com/michaelhelmick/python-tumblpy/',
keywords='python tumblpy tumblr oauth api',
description='A Python Library to interface with Tumblr v2 REST API & OAuth',
long_description=open('README.rst').read() + '\n\n' +
open('HISTORY.rst').read(),
download_url='https://github.com/michaelhelmick/python-tumblpy/zipball/master',
include_package_data=True,
packages=['tumblpy'],
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Communications :: Chat',
'Topic :: Internet'
],
)
Add distutils for legacy pypi
|
#!/usr/bin/env python
import os
import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
__author__ = 'Mike Helmick <me@michaelhelmick.com>'
__version__ = '1.1.1'
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys.exit()
setup(
name='python-tumblpy',
version=__version__,
install_requires=['requests>=1.2.2', 'requests_oauthlib>=0.3.2'],
author='Mike Helmick',
author_email='me@michaelhelmick.com',
license=open('LICENSE').read(),
url='https://github.com/michaelhelmick/python-tumblpy/',
keywords='python tumblpy tumblr oauth api',
description='A Python Library to interface with Tumblr v2 REST API & OAuth',
long_description=open('README.rst').read() + '\n\n' +
open('HISTORY.rst').read(),
download_url='https://github.com/michaelhelmick/python-tumblpy/zipball/master',
include_package_data=True,
packages=['tumblpy'],
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Communications :: Chat',
'Topic :: Internet'
],
)
|
<commit_before>#!/usr/bin/env python
import os
import sys
from setuptools import setup
__author__ = 'Mike Helmick <me@michaelhelmick.com>'
__version__ = '1.1.1'
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys.exit()
setup(
name='python-tumblpy',
version=__version__,
install_requires=['requests>=1.2.2', 'requests_oauthlib>=0.3.2'],
author='Mike Helmick',
author_email='me@michaelhelmick.com',
license=open('LICENSE').read(),
url='https://github.com/michaelhelmick/python-tumblpy/',
keywords='python tumblpy tumblr oauth api',
description='A Python Library to interface with Tumblr v2 REST API & OAuth',
long_description=open('README.rst').read() + '\n\n' +
open('HISTORY.rst').read(),
download_url='https://github.com/michaelhelmick/python-tumblpy/zipball/master',
include_package_data=True,
packages=['tumblpy'],
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Communications :: Chat',
'Topic :: Internet'
],
)
<commit_msg>Add distutils for legacy pypi<commit_after>
|
#!/usr/bin/env python
import os
import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
__author__ = 'Mike Helmick <me@michaelhelmick.com>'
__version__ = '1.1.1'
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys.exit()
setup(
name='python-tumblpy',
version=__version__,
install_requires=['requests>=1.2.2', 'requests_oauthlib>=0.3.2'],
author='Mike Helmick',
author_email='me@michaelhelmick.com',
license=open('LICENSE').read(),
url='https://github.com/michaelhelmick/python-tumblpy/',
keywords='python tumblpy tumblr oauth api',
description='A Python Library to interface with Tumblr v2 REST API & OAuth',
long_description=open('README.rst').read() + '\n\n' +
open('HISTORY.rst').read(),
download_url='https://github.com/michaelhelmick/python-tumblpy/zipball/master',
include_package_data=True,
packages=['tumblpy'],
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Communications :: Chat',
'Topic :: Internet'
],
)
|
#!/usr/bin/env python
import os
import sys
from setuptools import setup
__author__ = 'Mike Helmick <me@michaelhelmick.com>'
__version__ = '1.1.1'
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys.exit()
setup(
name='python-tumblpy',
version=__version__,
install_requires=['requests>=1.2.2', 'requests_oauthlib>=0.3.2'],
author='Mike Helmick',
author_email='me@michaelhelmick.com',
license=open('LICENSE').read(),
url='https://github.com/michaelhelmick/python-tumblpy/',
keywords='python tumblpy tumblr oauth api',
description='A Python Library to interface with Tumblr v2 REST API & OAuth',
long_description=open('README.rst').read() + '\n\n' +
open('HISTORY.rst').read(),
download_url='https://github.com/michaelhelmick/python-tumblpy/zipball/master',
include_package_data=True,
packages=['tumblpy'],
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Communications :: Chat',
'Topic :: Internet'
],
)
Add distutils for legacy pypi#!/usr/bin/env python
import os
import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
__author__ = 'Mike Helmick <me@michaelhelmick.com>'
__version__ = '1.1.1'
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys.exit()
setup(
name='python-tumblpy',
version=__version__,
install_requires=['requests>=1.2.2', 'requests_oauthlib>=0.3.2'],
author='Mike Helmick',
author_email='me@michaelhelmick.com',
license=open('LICENSE').read(),
url='https://github.com/michaelhelmick/python-tumblpy/',
keywords='python tumblpy tumblr oauth api',
description='A Python Library to interface with Tumblr v2 REST API & OAuth',
long_description=open('README.rst').read() + '\n\n' +
open('HISTORY.rst').read(),
download_url='https://github.com/michaelhelmick/python-tumblpy/zipball/master',
include_package_data=True,
packages=['tumblpy'],
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Communications :: Chat',
'Topic :: Internet'
],
)
|
<commit_before>#!/usr/bin/env python
import os
import sys
from setuptools import setup
__author__ = 'Mike Helmick <me@michaelhelmick.com>'
__version__ = '1.1.1'
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys.exit()
setup(
name='python-tumblpy',
version=__version__,
install_requires=['requests>=1.2.2', 'requests_oauthlib>=0.3.2'],
author='Mike Helmick',
author_email='me@michaelhelmick.com',
license=open('LICENSE').read(),
url='https://github.com/michaelhelmick/python-tumblpy/',
keywords='python tumblpy tumblr oauth api',
description='A Python Library to interface with Tumblr v2 REST API & OAuth',
long_description=open('README.rst').read() + '\n\n' +
open('HISTORY.rst').read(),
download_url='https://github.com/michaelhelmick/python-tumblpy/zipball/master',
include_package_data=True,
packages=['tumblpy'],
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Communications :: Chat',
'Topic :: Internet'
],
)
<commit_msg>Add distutils for legacy pypi<commit_after>#!/usr/bin/env python
import os
import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
__author__ = 'Mike Helmick <me@michaelhelmick.com>'
__version__ = '1.1.1'
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys.exit()
setup(
name='python-tumblpy',
version=__version__,
install_requires=['requests>=1.2.2', 'requests_oauthlib>=0.3.2'],
author='Mike Helmick',
author_email='me@michaelhelmick.com',
license=open('LICENSE').read(),
url='https://github.com/michaelhelmick/python-tumblpy/',
keywords='python tumblpy tumblr oauth api',
description='A Python Library to interface with Tumblr v2 REST API & OAuth',
long_description=open('README.rst').read() + '\n\n' +
open('HISTORY.rst').read(),
download_url='https://github.com/michaelhelmick/python-tumblpy/zipball/master',
include_package_data=True,
packages=['tumblpy'],
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Communications :: Chat',
'Topic :: Internet'
],
)
|
62cecaaff0f19f5824515826fffbfd0bba4d9fbf
|
setup.py
|
setup.py
|
from setuptools import setup
with open('README.rst') as readme:
long_description = readme.read()
setup(
name='twixxy',
version='0.1.0',
description='Twisted integration with the twiggy logging library.',
url='https://github.com/dreid/twixxy',
author='David Reid',
author_email='dreid@dreid.org',
packages=['twixxy'],
license='MIT',
long_description=long_description,
install_requires=['Twisted', 'twiggy']
)
|
from setuptools import setup
with open('README.rst') as readme:
long_description = readme.read()
setup(
name='twixxy',
version='0.1.1',
description='Twisted integration with the twiggy logging library.',
url='https://github.com/dreid/twixxy',
author='David Reid',
author_email='dreid@dreid.org',
packages=['twixxy', 'twixxy.features'],
license='MIT',
long_description=long_description,
install_requires=['Twisted', 'twiggy']
)
|
Add twixxy.features to packages and bump version
|
Add twixxy.features to packages and bump version
|
Python
|
mit
|
dreid/twixxy
|
from setuptools import setup
with open('README.rst') as readme:
long_description = readme.read()
setup(
name='twixxy',
version='0.1.0',
description='Twisted integration with the twiggy logging library.',
url='https://github.com/dreid/twixxy',
author='David Reid',
author_email='dreid@dreid.org',
packages=['twixxy'],
license='MIT',
long_description=long_description,
install_requires=['Twisted', 'twiggy']
)
Add twixxy.features to packages and bump version
|
from setuptools import setup
with open('README.rst') as readme:
long_description = readme.read()
setup(
name='twixxy',
version='0.1.1',
description='Twisted integration with the twiggy logging library.',
url='https://github.com/dreid/twixxy',
author='David Reid',
author_email='dreid@dreid.org',
packages=['twixxy', 'twixxy.features'],
license='MIT',
long_description=long_description,
install_requires=['Twisted', 'twiggy']
)
|
<commit_before>from setuptools import setup
with open('README.rst') as readme:
long_description = readme.read()
setup(
name='twixxy',
version='0.1.0',
description='Twisted integration with the twiggy logging library.',
url='https://github.com/dreid/twixxy',
author='David Reid',
author_email='dreid@dreid.org',
packages=['twixxy'],
license='MIT',
long_description=long_description,
install_requires=['Twisted', 'twiggy']
)
<commit_msg>Add twixxy.features to packages and bump version<commit_after>
|
from setuptools import setup
with open('README.rst') as readme:
long_description = readme.read()
setup(
name='twixxy',
version='0.1.1',
description='Twisted integration with the twiggy logging library.',
url='https://github.com/dreid/twixxy',
author='David Reid',
author_email='dreid@dreid.org',
packages=['twixxy', 'twixxy.features'],
license='MIT',
long_description=long_description,
install_requires=['Twisted', 'twiggy']
)
|
from setuptools import setup
with open('README.rst') as readme:
long_description = readme.read()
setup(
name='twixxy',
version='0.1.0',
description='Twisted integration with the twiggy logging library.',
url='https://github.com/dreid/twixxy',
author='David Reid',
author_email='dreid@dreid.org',
packages=['twixxy'],
license='MIT',
long_description=long_description,
install_requires=['Twisted', 'twiggy']
)
Add twixxy.features to packages and bump versionfrom setuptools import setup
with open('README.rst') as readme:
long_description = readme.read()
setup(
name='twixxy',
version='0.1.1',
description='Twisted integration with the twiggy logging library.',
url='https://github.com/dreid/twixxy',
author='David Reid',
author_email='dreid@dreid.org',
packages=['twixxy', 'twixxy.features'],
license='MIT',
long_description=long_description,
install_requires=['Twisted', 'twiggy']
)
|
<commit_before>from setuptools import setup
with open('README.rst') as readme:
long_description = readme.read()
setup(
name='twixxy',
version='0.1.0',
description='Twisted integration with the twiggy logging library.',
url='https://github.com/dreid/twixxy',
author='David Reid',
author_email='dreid@dreid.org',
packages=['twixxy'],
license='MIT',
long_description=long_description,
install_requires=['Twisted', 'twiggy']
)
<commit_msg>Add twixxy.features to packages and bump version<commit_after>from setuptools import setup
with open('README.rst') as readme:
long_description = readme.read()
setup(
name='twixxy',
version='0.1.1',
description='Twisted integration with the twiggy logging library.',
url='https://github.com/dreid/twixxy',
author='David Reid',
author_email='dreid@dreid.org',
packages=['twixxy', 'twixxy.features'],
license='MIT',
long_description=long_description,
install_requires=['Twisted', 'twiggy']
)
|
d5c2a4643f22d768694b452ea1b0ca5db65bb169
|
setup.py
|
setup.py
|
import setuptools
NAME = "gidgethub"
tests_require = ['pytest>=3.0.0']
setuptools.setup(
name=NAME,
version="0.1.0.dev1",
description="A sans-I/O GitHub API library",
url="https://github.com/brettcannon/gidgethub",
author="Brett Cannon",
author_email="brett@python.org",
license="Apache",
classifiers=[
'Intended Audience :: Developers',
"License :: OSI Approved :: Apache Software License",
"Development Status :: 2 - Pre-Alpha",
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.6',
],
keywords="github sans-io",
packages=setuptools.find_packages(),
zip_safe=True,
python_requires=">=3.6.0",
setup_requires=['pytest-runner>=2.11.0'],
tests_require=tests_require,
install_requires=['uritemplate>=3.0.0'],
extras_require={
"test": tests_require
},
)
|
import setuptools
NAME = "gidgethub"
tests_require = ['pytest>=3.0.0']
setuptools.setup(
name=NAME,
version="0.1.0.dev1",
description="A sans-I/O GitHub API library",
url="https://github.com/brettcannon/gidgethub",
author="Brett Cannon",
author_email="brett@python.org",
license="Apache",
classifiers=[
'Intended Audience :: Developers',
"License :: OSI Approved :: Apache Software License",
"Development Status :: 2 - Pre-Alpha",
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.6',
],
keywords="github sans-io",
packages=setuptools.find_packages(),
zip_safe=True,
python_requires=">=3.6.0",
setup_requires=['pytest-runner>=2.11.0'],
tests_require=tests_require,
install_requires=['uritemplate>=3.0.0'],
extras_require={
"docs": ["sphinx"],
"test": tests_require
},
)
|
Add a docs build target
|
Add a docs build target
|
Python
|
apache-2.0
|
brettcannon/gidgethub,brettcannon/gidgethub
|
import setuptools
NAME = "gidgethub"
tests_require = ['pytest>=3.0.0']
setuptools.setup(
name=NAME,
version="0.1.0.dev1",
description="A sans-I/O GitHub API library",
url="https://github.com/brettcannon/gidgethub",
author="Brett Cannon",
author_email="brett@python.org",
license="Apache",
classifiers=[
'Intended Audience :: Developers',
"License :: OSI Approved :: Apache Software License",
"Development Status :: 2 - Pre-Alpha",
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.6',
],
keywords="github sans-io",
packages=setuptools.find_packages(),
zip_safe=True,
python_requires=">=3.6.0",
setup_requires=['pytest-runner>=2.11.0'],
tests_require=tests_require,
install_requires=['uritemplate>=3.0.0'],
extras_require={
"test": tests_require
},
)
Add a docs build target
|
import setuptools
NAME = "gidgethub"
tests_require = ['pytest>=3.0.0']
setuptools.setup(
name=NAME,
version="0.1.0.dev1",
description="A sans-I/O GitHub API library",
url="https://github.com/brettcannon/gidgethub",
author="Brett Cannon",
author_email="brett@python.org",
license="Apache",
classifiers=[
'Intended Audience :: Developers',
"License :: OSI Approved :: Apache Software License",
"Development Status :: 2 - Pre-Alpha",
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.6',
],
keywords="github sans-io",
packages=setuptools.find_packages(),
zip_safe=True,
python_requires=">=3.6.0",
setup_requires=['pytest-runner>=2.11.0'],
tests_require=tests_require,
install_requires=['uritemplate>=3.0.0'],
extras_require={
"docs": ["sphinx"],
"test": tests_require
},
)
|
<commit_before>import setuptools
NAME = "gidgethub"
tests_require = ['pytest>=3.0.0']
setuptools.setup(
name=NAME,
version="0.1.0.dev1",
description="A sans-I/O GitHub API library",
url="https://github.com/brettcannon/gidgethub",
author="Brett Cannon",
author_email="brett@python.org",
license="Apache",
classifiers=[
'Intended Audience :: Developers',
"License :: OSI Approved :: Apache Software License",
"Development Status :: 2 - Pre-Alpha",
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.6',
],
keywords="github sans-io",
packages=setuptools.find_packages(),
zip_safe=True,
python_requires=">=3.6.0",
setup_requires=['pytest-runner>=2.11.0'],
tests_require=tests_require,
install_requires=['uritemplate>=3.0.0'],
extras_require={
"test": tests_require
},
)
<commit_msg>Add a docs build target<commit_after>
|
import setuptools
NAME = "gidgethub"
tests_require = ['pytest>=3.0.0']
setuptools.setup(
name=NAME,
version="0.1.0.dev1",
description="A sans-I/O GitHub API library",
url="https://github.com/brettcannon/gidgethub",
author="Brett Cannon",
author_email="brett@python.org",
license="Apache",
classifiers=[
'Intended Audience :: Developers',
"License :: OSI Approved :: Apache Software License",
"Development Status :: 2 - Pre-Alpha",
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.6',
],
keywords="github sans-io",
packages=setuptools.find_packages(),
zip_safe=True,
python_requires=">=3.6.0",
setup_requires=['pytest-runner>=2.11.0'],
tests_require=tests_require,
install_requires=['uritemplate>=3.0.0'],
extras_require={
"docs": ["sphinx"],
"test": tests_require
},
)
|
import setuptools
NAME = "gidgethub"
tests_require = ['pytest>=3.0.0']
setuptools.setup(
name=NAME,
version="0.1.0.dev1",
description="A sans-I/O GitHub API library",
url="https://github.com/brettcannon/gidgethub",
author="Brett Cannon",
author_email="brett@python.org",
license="Apache",
classifiers=[
'Intended Audience :: Developers',
"License :: OSI Approved :: Apache Software License",
"Development Status :: 2 - Pre-Alpha",
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.6',
],
keywords="github sans-io",
packages=setuptools.find_packages(),
zip_safe=True,
python_requires=">=3.6.0",
setup_requires=['pytest-runner>=2.11.0'],
tests_require=tests_require,
install_requires=['uritemplate>=3.0.0'],
extras_require={
"test": tests_require
},
)
Add a docs build targetimport setuptools
NAME = "gidgethub"
tests_require = ['pytest>=3.0.0']
setuptools.setup(
name=NAME,
version="0.1.0.dev1",
description="A sans-I/O GitHub API library",
url="https://github.com/brettcannon/gidgethub",
author="Brett Cannon",
author_email="brett@python.org",
license="Apache",
classifiers=[
'Intended Audience :: Developers',
"License :: OSI Approved :: Apache Software License",
"Development Status :: 2 - Pre-Alpha",
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.6',
],
keywords="github sans-io",
packages=setuptools.find_packages(),
zip_safe=True,
python_requires=">=3.6.0",
setup_requires=['pytest-runner>=2.11.0'],
tests_require=tests_require,
install_requires=['uritemplate>=3.0.0'],
extras_require={
"docs": ["sphinx"],
"test": tests_require
},
)
|
<commit_before>import setuptools
NAME = "gidgethub"
tests_require = ['pytest>=3.0.0']
setuptools.setup(
name=NAME,
version="0.1.0.dev1",
description="A sans-I/O GitHub API library",
url="https://github.com/brettcannon/gidgethub",
author="Brett Cannon",
author_email="brett@python.org",
license="Apache",
classifiers=[
'Intended Audience :: Developers',
"License :: OSI Approved :: Apache Software License",
"Development Status :: 2 - Pre-Alpha",
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.6',
],
keywords="github sans-io",
packages=setuptools.find_packages(),
zip_safe=True,
python_requires=">=3.6.0",
setup_requires=['pytest-runner>=2.11.0'],
tests_require=tests_require,
install_requires=['uritemplate>=3.0.0'],
extras_require={
"test": tests_require
},
)
<commit_msg>Add a docs build target<commit_after>import setuptools
NAME = "gidgethub"
tests_require = ['pytest>=3.0.0']
setuptools.setup(
name=NAME,
version="0.1.0.dev1",
description="A sans-I/O GitHub API library",
url="https://github.com/brettcannon/gidgethub",
author="Brett Cannon",
author_email="brett@python.org",
license="Apache",
classifiers=[
'Intended Audience :: Developers',
"License :: OSI Approved :: Apache Software License",
"Development Status :: 2 - Pre-Alpha",
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.6',
],
keywords="github sans-io",
packages=setuptools.find_packages(),
zip_safe=True,
python_requires=">=3.6.0",
setup_requires=['pytest-runner>=2.11.0'],
tests_require=tests_require,
install_requires=['uritemplate>=3.0.0'],
extras_require={
"docs": ["sphinx"],
"test": tests_require
},
)
|
1b98defd5a2bd7d18971d7a10d2527ea55681e6b
|
setup.py
|
setup.py
|
from setuptools import setup
setup(
name='dictobj',
version='0.2',
author='William Grim',
author_email='william@grimapps.com',
url='https://github.com/grimwm/py-dictobj',
classifiers = [
'Development Status :: 4 - Beta',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules',
],
description='',
long_description='',
py_modules=['dictobj'],
test_suite='dictobj_test'
)
|
from setuptools import setup
setup(
name='dictobj',
version='0.2.1',
author='William Grim',
author_email='william@grimapps.com',
url='https://github.com/grimwm/py-dictobj',
classifiers = [
'Development Status :: 4 - Beta',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules',
],
description='A set of Python dictionary objects where keys can be accessed as instnace attributes.',
py_modules=['dictobj'],
test_suite='dictobj_test'
)
|
Upgrade to 0.2.1 and add a description.
|
Upgrade to 0.2.1 and add a description.
|
Python
|
apache-2.0
|
grimwm/py-dictobj,grimwm/py-dictobj
|
from setuptools import setup
setup(
name='dictobj',
version='0.2',
author='William Grim',
author_email='william@grimapps.com',
url='https://github.com/grimwm/py-dictobj',
classifiers = [
'Development Status :: 4 - Beta',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules',
],
description='',
long_description='',
py_modules=['dictobj'],
test_suite='dictobj_test'
)
Upgrade to 0.2.1 and add a description.
|
from setuptools import setup
setup(
name='dictobj',
version='0.2.1',
author='William Grim',
author_email='william@grimapps.com',
url='https://github.com/grimwm/py-dictobj',
classifiers = [
'Development Status :: 4 - Beta',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules',
],
description='A set of Python dictionary objects where keys can be accessed as instnace attributes.',
py_modules=['dictobj'],
test_suite='dictobj_test'
)
|
<commit_before>from setuptools import setup
setup(
name='dictobj',
version='0.2',
author='William Grim',
author_email='william@grimapps.com',
url='https://github.com/grimwm/py-dictobj',
classifiers = [
'Development Status :: 4 - Beta',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules',
],
description='',
long_description='',
py_modules=['dictobj'],
test_suite='dictobj_test'
)
<commit_msg>Upgrade to 0.2.1 and add a description.<commit_after>
|
from setuptools import setup
setup(
name='dictobj',
version='0.2.1',
author='William Grim',
author_email='william@grimapps.com',
url='https://github.com/grimwm/py-dictobj',
classifiers = [
'Development Status :: 4 - Beta',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules',
],
description='A set of Python dictionary objects where keys can be accessed as instnace attributes.',
py_modules=['dictobj'],
test_suite='dictobj_test'
)
|
from setuptools import setup
setup(
name='dictobj',
version='0.2',
author='William Grim',
author_email='william@grimapps.com',
url='https://github.com/grimwm/py-dictobj',
classifiers = [
'Development Status :: 4 - Beta',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules',
],
description='',
long_description='',
py_modules=['dictobj'],
test_suite='dictobj_test'
)
Upgrade to 0.2.1 and add a description.from setuptools import setup
setup(
name='dictobj',
version='0.2.1',
author='William Grim',
author_email='william@grimapps.com',
url='https://github.com/grimwm/py-dictobj',
classifiers = [
'Development Status :: 4 - Beta',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules',
],
description='A set of Python dictionary objects where keys can be accessed as instnace attributes.',
py_modules=['dictobj'],
test_suite='dictobj_test'
)
|
<commit_before>from setuptools import setup
setup(
name='dictobj',
version='0.2',
author='William Grim',
author_email='william@grimapps.com',
url='https://github.com/grimwm/py-dictobj',
classifiers = [
'Development Status :: 4 - Beta',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules',
],
description='',
long_description='',
py_modules=['dictobj'],
test_suite='dictobj_test'
)
<commit_msg>Upgrade to 0.2.1 and add a description.<commit_after>from setuptools import setup
setup(
name='dictobj',
version='0.2.1',
author='William Grim',
author_email='william@grimapps.com',
url='https://github.com/grimwm/py-dictobj',
classifiers = [
'Development Status :: 4 - Beta',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules',
],
description='A set of Python dictionary objects where keys can be accessed as instnace attributes.',
py_modules=['dictobj'],
test_suite='dictobj_test'
)
|
ee0f0dcbd1d2ce7558b59af4e8e018d5332aed92
|
setup.py
|
setup.py
|
#!/usr/bin/env python
import unittest
from setuptools import setup
def pccora_test_suite():
test_loader = unittest.TestLoader()
test_suite = test_loader.discover('tests', pattern='test_*.py')
return test_suite
test_requirements = []
install_requires = [
'construct==2.5.1'
]
extras_require = {
'scripts': [
'numpy',
'netcdf4'
]
}
setup(name='pccora',
version='0.3',
description='PC-CORA sounding data files parser for Python',
url='http://github.com/niwa/pccora',
author='Bruno P. Kinoshita',
author_email='brunodepaulak@yahoo.com.br',
license='MIT',
keywords=['sounding file', 'radiosonde', 'vaisala', 'pccora', 'atmosphere'],
packages=['pccora'],
zip_safe=False,
tests_require=test_requirements,
test_suite='setup.pccora_test_suite',
install_requires=[
'construct==2.5.1'
] + test_requirements,
extras_require=extras_require
)
|
#!/usr/bin/env python
import unittest
from setuptools import setup
def pccora_test_suite():
test_loader = unittest.TestLoader()
test_suite = test_loader.discover('tests', pattern='test_*.py')
return test_suite
test_requirements = []
install_requires = [
'construct==2.5.1'
]
extras_require = {
'scripts_linux': [
'jinja2',
'netcdf4',
'numpy',
'pytz'
],
'scripts_win32': [
'plac'
]
}
setup(name='pccora',
version='0.3',
description='PC-CORA sounding data files parser for Python',
url='http://github.com/niwa/pccora',
author='Bruno P. Kinoshita',
author_email='brunodepaulak@yahoo.com.br',
license='MIT',
keywords=['sounding file', 'radiosonde', 'vaisala', 'pccora', 'atmosphere'],
packages=['pccora'],
zip_safe=False,
test_suite='setup.pccora_test_suite',
tests_require=test_requirements,
install_requires=install_requires,
extras_require=extras_require
)
|
Add more specific installation dependencies
|
Add more specific installation dependencies
|
Python
|
mit
|
kinow/pccora
|
#!/usr/bin/env python
import unittest
from setuptools import setup
def pccora_test_suite():
test_loader = unittest.TestLoader()
test_suite = test_loader.discover('tests', pattern='test_*.py')
return test_suite
test_requirements = []
install_requires = [
'construct==2.5.1'
]
extras_require = {
'scripts': [
'numpy',
'netcdf4'
]
}
setup(name='pccora',
version='0.3',
description='PC-CORA sounding data files parser for Python',
url='http://github.com/niwa/pccora',
author='Bruno P. Kinoshita',
author_email='brunodepaulak@yahoo.com.br',
license='MIT',
keywords=['sounding file', 'radiosonde', 'vaisala', 'pccora', 'atmosphere'],
packages=['pccora'],
zip_safe=False,
tests_require=test_requirements,
test_suite='setup.pccora_test_suite',
install_requires=[
'construct==2.5.1'
] + test_requirements,
extras_require=extras_require
)
Add more specific installation dependencies
|
#!/usr/bin/env python
import unittest
from setuptools import setup
def pccora_test_suite():
test_loader = unittest.TestLoader()
test_suite = test_loader.discover('tests', pattern='test_*.py')
return test_suite
test_requirements = []
install_requires = [
'construct==2.5.1'
]
extras_require = {
'scripts_linux': [
'jinja2',
'netcdf4',
'numpy',
'pytz'
],
'scripts_win32': [
'plac'
]
}
setup(name='pccora',
version='0.3',
description='PC-CORA sounding data files parser for Python',
url='http://github.com/niwa/pccora',
author='Bruno P. Kinoshita',
author_email='brunodepaulak@yahoo.com.br',
license='MIT',
keywords=['sounding file', 'radiosonde', 'vaisala', 'pccora', 'atmosphere'],
packages=['pccora'],
zip_safe=False,
test_suite='setup.pccora_test_suite',
tests_require=test_requirements,
install_requires=install_requires,
extras_require=extras_require
)
|
<commit_before>#!/usr/bin/env python
import unittest
from setuptools import setup
def pccora_test_suite():
test_loader = unittest.TestLoader()
test_suite = test_loader.discover('tests', pattern='test_*.py')
return test_suite
test_requirements = []
install_requires = [
'construct==2.5.1'
]
extras_require = {
'scripts': [
'numpy',
'netcdf4'
]
}
setup(name='pccora',
version='0.3',
description='PC-CORA sounding data files parser for Python',
url='http://github.com/niwa/pccora',
author='Bruno P. Kinoshita',
author_email='brunodepaulak@yahoo.com.br',
license='MIT',
keywords=['sounding file', 'radiosonde', 'vaisala', 'pccora', 'atmosphere'],
packages=['pccora'],
zip_safe=False,
tests_require=test_requirements,
test_suite='setup.pccora_test_suite',
install_requires=[
'construct==2.5.1'
] + test_requirements,
extras_require=extras_require
)
<commit_msg>Add more specific installation dependencies<commit_after>
|
#!/usr/bin/env python
import unittest
from setuptools import setup
def pccora_test_suite():
test_loader = unittest.TestLoader()
test_suite = test_loader.discover('tests', pattern='test_*.py')
return test_suite
test_requirements = []
install_requires = [
'construct==2.5.1'
]
extras_require = {
'scripts_linux': [
'jinja2',
'netcdf4',
'numpy',
'pytz'
],
'scripts_win32': [
'plac'
]
}
setup(name='pccora',
version='0.3',
description='PC-CORA sounding data files parser for Python',
url='http://github.com/niwa/pccora',
author='Bruno P. Kinoshita',
author_email='brunodepaulak@yahoo.com.br',
license='MIT',
keywords=['sounding file', 'radiosonde', 'vaisala', 'pccora', 'atmosphere'],
packages=['pccora'],
zip_safe=False,
test_suite='setup.pccora_test_suite',
tests_require=test_requirements,
install_requires=install_requires,
extras_require=extras_require
)
|
#!/usr/bin/env python
import unittest
from setuptools import setup
def pccora_test_suite():
test_loader = unittest.TestLoader()
test_suite = test_loader.discover('tests', pattern='test_*.py')
return test_suite
test_requirements = []
install_requires = [
'construct==2.5.1'
]
extras_require = {
'scripts': [
'numpy',
'netcdf4'
]
}
setup(name='pccora',
version='0.3',
description='PC-CORA sounding data files parser for Python',
url='http://github.com/niwa/pccora',
author='Bruno P. Kinoshita',
author_email='brunodepaulak@yahoo.com.br',
license='MIT',
keywords=['sounding file', 'radiosonde', 'vaisala', 'pccora', 'atmosphere'],
packages=['pccora'],
zip_safe=False,
tests_require=test_requirements,
test_suite='setup.pccora_test_suite',
install_requires=[
'construct==2.5.1'
] + test_requirements,
extras_require=extras_require
)
Add more specific installation dependencies#!/usr/bin/env python
import unittest
from setuptools import setup
def pccora_test_suite():
test_loader = unittest.TestLoader()
test_suite = test_loader.discover('tests', pattern='test_*.py')
return test_suite
test_requirements = []
install_requires = [
'construct==2.5.1'
]
extras_require = {
'scripts_linux': [
'jinja2',
'netcdf4',
'numpy',
'pytz'
],
'scripts_win32': [
'plac'
]
}
setup(name='pccora',
version='0.3',
description='PC-CORA sounding data files parser for Python',
url='http://github.com/niwa/pccora',
author='Bruno P. Kinoshita',
author_email='brunodepaulak@yahoo.com.br',
license='MIT',
keywords=['sounding file', 'radiosonde', 'vaisala', 'pccora', 'atmosphere'],
packages=['pccora'],
zip_safe=False,
test_suite='setup.pccora_test_suite',
tests_require=test_requirements,
install_requires=install_requires,
extras_require=extras_require
)
|
<commit_before>#!/usr/bin/env python
import unittest
from setuptools import setup
def pccora_test_suite():
test_loader = unittest.TestLoader()
test_suite = test_loader.discover('tests', pattern='test_*.py')
return test_suite
test_requirements = []
install_requires = [
'construct==2.5.1'
]
extras_require = {
'scripts': [
'numpy',
'netcdf4'
]
}
setup(name='pccora',
version='0.3',
description='PC-CORA sounding data files parser for Python',
url='http://github.com/niwa/pccora',
author='Bruno P. Kinoshita',
author_email='brunodepaulak@yahoo.com.br',
license='MIT',
keywords=['sounding file', 'radiosonde', 'vaisala', 'pccora', 'atmosphere'],
packages=['pccora'],
zip_safe=False,
tests_require=test_requirements,
test_suite='setup.pccora_test_suite',
install_requires=[
'construct==2.5.1'
] + test_requirements,
extras_require=extras_require
)
<commit_msg>Add more specific installation dependencies<commit_after>#!/usr/bin/env python
import unittest
from setuptools import setup
def pccora_test_suite():
test_loader = unittest.TestLoader()
test_suite = test_loader.discover('tests', pattern='test_*.py')
return test_suite
test_requirements = []
install_requires = [
'construct==2.5.1'
]
extras_require = {
'scripts_linux': [
'jinja2',
'netcdf4',
'numpy',
'pytz'
],
'scripts_win32': [
'plac'
]
}
setup(name='pccora',
version='0.3',
description='PC-CORA sounding data files parser for Python',
url='http://github.com/niwa/pccora',
author='Bruno P. Kinoshita',
author_email='brunodepaulak@yahoo.com.br',
license='MIT',
keywords=['sounding file', 'radiosonde', 'vaisala', 'pccora', 'atmosphere'],
packages=['pccora'],
zip_safe=False,
test_suite='setup.pccora_test_suite',
tests_require=test_requirements,
install_requires=install_requires,
extras_require=extras_require
)
|
434bc5554dcd8b2f2bf4a3b4a1d1991746e86b78
|
setup.py
|
setup.py
|
from distutils.core import setup
setup(
name = 'pybenchmark',
packages = ['pybenchmark'], # this must be the same as the name above
version = '0.0.5',
description = 'A benchmark utility used in performance tests.',
author = 'Eugene Duboviy',
author_email = 'eugene.dubovoy@gmail.com',
url = 'https://github.com/duboviy/pybenchmark', # use the URL to the github repo
download_url = 'https://github.com/duboviy/pybenchmark/tarball/0.0.5', # I'll explain this in a second
keywords = ['benchmark', 'performance', 'testing'], # arbitrary keywords
classifiers=[
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries :: Python Modules",
],
long_description=open('README.md').read(),
install_requires=[
'psutil',
'gevent',
],
)
|
from distutils.core import setup
setup(
name = 'pybenchmark',
packages = ['pybenchmark'], # this must be the same as the name above
version = '0.0.6',
description = 'A benchmark utility used in performance tests.',
author = 'Eugene Duboviy',
author_email = 'eugene.dubovoy@gmail.com',
url = 'https://github.com/duboviy/pybenchmark', # use the URL to the github repo
download_url = 'https://github.com/duboviy/pybenchmark/tarball/0.0.6', # I'll explain this in a second
keywords = ['benchmark', 'performance', 'testing'], # arbitrary keywords
classifiers=[
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries :: Python Modules",
],
long_description="""
When measuring execution time, the result depends on the computer hardware.
To be able to produce a universal measure, the simplest way is to benchmark the speed of a fixed sequence
of code and calculate a ratio out of it. From there, the time taken by a function can be translated to a
universal value that can be compared on any computer. Python provides a benchmark utility in its test
package that measures the duration of a sequence of well-chosen operations.
pybenchmark designed to provide a simple and pythonic way to get performance data.
""",
install_requires=[
'psutil',
'gevent',
],
)
|
Fix long description; Add new PyPI release version
|
Fix long description; Add new PyPI release version
|
Python
|
mit
|
duboviy/pybenchmark
|
from distutils.core import setup
setup(
name = 'pybenchmark',
packages = ['pybenchmark'], # this must be the same as the name above
version = '0.0.5',
description = 'A benchmark utility used in performance tests.',
author = 'Eugene Duboviy',
author_email = 'eugene.dubovoy@gmail.com',
url = 'https://github.com/duboviy/pybenchmark', # use the URL to the github repo
download_url = 'https://github.com/duboviy/pybenchmark/tarball/0.0.5', # I'll explain this in a second
keywords = ['benchmark', 'performance', 'testing'], # arbitrary keywords
classifiers=[
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries :: Python Modules",
],
long_description=open('README.md').read(),
install_requires=[
'psutil',
'gevent',
],
)
Fix long description; Add new PyPI release version
|
from distutils.core import setup
setup(
name = 'pybenchmark',
packages = ['pybenchmark'], # this must be the same as the name above
version = '0.0.6',
description = 'A benchmark utility used in performance tests.',
author = 'Eugene Duboviy',
author_email = 'eugene.dubovoy@gmail.com',
url = 'https://github.com/duboviy/pybenchmark', # use the URL to the github repo
download_url = 'https://github.com/duboviy/pybenchmark/tarball/0.0.6', # I'll explain this in a second
keywords = ['benchmark', 'performance', 'testing'], # arbitrary keywords
classifiers=[
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries :: Python Modules",
],
long_description="""
When measuring execution time, the result depends on the computer hardware.
To be able to produce a universal measure, the simplest way is to benchmark the speed of a fixed sequence
of code and calculate a ratio out of it. From there, the time taken by a function can be translated to a
universal value that can be compared on any computer. Python provides a benchmark utility in its test
package that measures the duration of a sequence of well-chosen operations.
pybenchmark designed to provide a simple and pythonic way to get performance data.
""",
install_requires=[
'psutil',
'gevent',
],
)
|
<commit_before>from distutils.core import setup
setup(
name = 'pybenchmark',
packages = ['pybenchmark'], # this must be the same as the name above
version = '0.0.5',
description = 'A benchmark utility used in performance tests.',
author = 'Eugene Duboviy',
author_email = 'eugene.dubovoy@gmail.com',
url = 'https://github.com/duboviy/pybenchmark', # use the URL to the github repo
download_url = 'https://github.com/duboviy/pybenchmark/tarball/0.0.5', # I'll explain this in a second
keywords = ['benchmark', 'performance', 'testing'], # arbitrary keywords
classifiers=[
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries :: Python Modules",
],
long_description=open('README.md').read(),
install_requires=[
'psutil',
'gevent',
],
)
<commit_msg>Fix long description; Add new PyPI release version<commit_after>
|
from distutils.core import setup
setup(
name = 'pybenchmark',
packages = ['pybenchmark'], # this must be the same as the name above
version = '0.0.6',
description = 'A benchmark utility used in performance tests.',
author = 'Eugene Duboviy',
author_email = 'eugene.dubovoy@gmail.com',
url = 'https://github.com/duboviy/pybenchmark', # use the URL to the github repo
download_url = 'https://github.com/duboviy/pybenchmark/tarball/0.0.6', # I'll explain this in a second
keywords = ['benchmark', 'performance', 'testing'], # arbitrary keywords
classifiers=[
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries :: Python Modules",
],
long_description="""
When measuring execution time, the result depends on the computer hardware.
To be able to produce a universal measure, the simplest way is to benchmark the speed of a fixed sequence
of code and calculate a ratio out of it. From there, the time taken by a function can be translated to a
universal value that can be compared on any computer. Python provides a benchmark utility in its test
package that measures the duration of a sequence of well-chosen operations.
pybenchmark designed to provide a simple and pythonic way to get performance data.
""",
install_requires=[
'psutil',
'gevent',
],
)
|
from distutils.core import setup
setup(
name = 'pybenchmark',
packages = ['pybenchmark'], # this must be the same as the name above
version = '0.0.5',
description = 'A benchmark utility used in performance tests.',
author = 'Eugene Duboviy',
author_email = 'eugene.dubovoy@gmail.com',
url = 'https://github.com/duboviy/pybenchmark', # use the URL to the github repo
download_url = 'https://github.com/duboviy/pybenchmark/tarball/0.0.5', # I'll explain this in a second
keywords = ['benchmark', 'performance', 'testing'], # arbitrary keywords
classifiers=[
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries :: Python Modules",
],
long_description=open('README.md').read(),
install_requires=[
'psutil',
'gevent',
],
)
Fix long description; Add new PyPI release versionfrom distutils.core import setup
setup(
name = 'pybenchmark',
packages = ['pybenchmark'], # this must be the same as the name above
version = '0.0.6',
description = 'A benchmark utility used in performance tests.',
author = 'Eugene Duboviy',
author_email = 'eugene.dubovoy@gmail.com',
url = 'https://github.com/duboviy/pybenchmark', # use the URL to the github repo
download_url = 'https://github.com/duboviy/pybenchmark/tarball/0.0.6', # I'll explain this in a second
keywords = ['benchmark', 'performance', 'testing'], # arbitrary keywords
classifiers=[
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries :: Python Modules",
],
long_description="""
When measuring execution time, the result depends on the computer hardware.
To be able to produce a universal measure, the simplest way is to benchmark the speed of a fixed sequence
of code and calculate a ratio out of it. From there, the time taken by a function can be translated to a
universal value that can be compared on any computer. Python provides a benchmark utility in its test
package that measures the duration of a sequence of well-chosen operations.
pybenchmark designed to provide a simple and pythonic way to get performance data.
""",
install_requires=[
'psutil',
'gevent',
],
)
|
<commit_before>from distutils.core import setup
setup(
name = 'pybenchmark',
packages = ['pybenchmark'], # this must be the same as the name above
version = '0.0.5',
description = 'A benchmark utility used in performance tests.',
author = 'Eugene Duboviy',
author_email = 'eugene.dubovoy@gmail.com',
url = 'https://github.com/duboviy/pybenchmark', # use the URL to the github repo
download_url = 'https://github.com/duboviy/pybenchmark/tarball/0.0.5', # I'll explain this in a second
keywords = ['benchmark', 'performance', 'testing'], # arbitrary keywords
classifiers=[
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries :: Python Modules",
],
long_description=open('README.md').read(),
install_requires=[
'psutil',
'gevent',
],
)
<commit_msg>Fix long description; Add new PyPI release version<commit_after>from distutils.core import setup
setup(
name = 'pybenchmark',
packages = ['pybenchmark'], # this must be the same as the name above
version = '0.0.6',
description = 'A benchmark utility used in performance tests.',
author = 'Eugene Duboviy',
author_email = 'eugene.dubovoy@gmail.com',
url = 'https://github.com/duboviy/pybenchmark', # use the URL to the github repo
download_url = 'https://github.com/duboviy/pybenchmark/tarball/0.0.6', # I'll explain this in a second
keywords = ['benchmark', 'performance', 'testing'], # arbitrary keywords
classifiers=[
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries :: Python Modules",
],
long_description="""
When measuring execution time, the result depends on the computer hardware.
To be able to produce a universal measure, the simplest way is to benchmark the speed of a fixed sequence
of code and calculate a ratio out of it. From there, the time taken by a function can be translated to a
universal value that can be compared on any computer. Python provides a benchmark utility in its test
package that measures the duration of a sequence of well-chosen operations.
pybenchmark designed to provide a simple and pythonic way to get performance data.
""",
install_requires=[
'psutil',
'gevent',
],
)
|
3bad5f4bbb483cb3a7d5b3b67c002c71a0b96987
|
matches/admin.py
|
matches/admin.py
|
from django.contrib import admin
from .models import Match
from .models import Tip
def delete_tips(modeladmin, request, queryset):
for match in queryset:
tips = Tip.object.filter(match = match)
for tip in tips:
tip.score = 0
tip.scoring_field = ""
tip.is_score_calculated = False
delete_tips.delete_tips = "Delete calculated scores for tips for these matches"
class MatchAdmin(admin.ModelAdmin):
actions = [delete_tips]
admin.site.register(Match, MatchAdmin)
admin.site.register(Tip)
|
from django.contrib import admin
from .models import Match
from .models import Tip
def delete_tips(modeladmin, request, queryset):
for match in queryset:
tips = Tip.objects.filter(match = match)
for tip in tips:
tip.score = 0
tip.scoring_field = ""
tip.is_score_calculated = False
delete_tips.delete_tips = "Delete calculated scores for tips for these matches"
class MatchAdmin(admin.ModelAdmin):
actions = [delete_tips]
admin.site.register(Match, MatchAdmin)
admin.site.register(Tip)
|
Add action to zero out tips for given match
|
Add action to zero out tips for given match
|
Python
|
mit
|
leventebakos/football-ech,leventebakos/football-ech
|
from django.contrib import admin
from .models import Match
from .models import Tip
def delete_tips(modeladmin, request, queryset):
for match in queryset:
tips = Tip.object.filter(match = match)
for tip in tips:
tip.score = 0
tip.scoring_field = ""
tip.is_score_calculated = False
delete_tips.delete_tips = "Delete calculated scores for tips for these matches"
class MatchAdmin(admin.ModelAdmin):
actions = [delete_tips]
admin.site.register(Match, MatchAdmin)
admin.site.register(Tip)
Add action to zero out tips for given match
|
from django.contrib import admin
from .models import Match
from .models import Tip
def delete_tips(modeladmin, request, queryset):
for match in queryset:
tips = Tip.objects.filter(match = match)
for tip in tips:
tip.score = 0
tip.scoring_field = ""
tip.is_score_calculated = False
delete_tips.delete_tips = "Delete calculated scores for tips for these matches"
class MatchAdmin(admin.ModelAdmin):
actions = [delete_tips]
admin.site.register(Match, MatchAdmin)
admin.site.register(Tip)
|
<commit_before>from django.contrib import admin
from .models import Match
from .models import Tip
def delete_tips(modeladmin, request, queryset):
for match in queryset:
tips = Tip.object.filter(match = match)
for tip in tips:
tip.score = 0
tip.scoring_field = ""
tip.is_score_calculated = False
delete_tips.delete_tips = "Delete calculated scores for tips for these matches"
class MatchAdmin(admin.ModelAdmin):
actions = [delete_tips]
admin.site.register(Match, MatchAdmin)
admin.site.register(Tip)
<commit_msg>Add action to zero out tips for given match<commit_after>
|
from django.contrib import admin
from .models import Match
from .models import Tip
def delete_tips(modeladmin, request, queryset):
for match in queryset:
tips = Tip.objects.filter(match = match)
for tip in tips:
tip.score = 0
tip.scoring_field = ""
tip.is_score_calculated = False
delete_tips.delete_tips = "Delete calculated scores for tips for these matches"
class MatchAdmin(admin.ModelAdmin):
actions = [delete_tips]
admin.site.register(Match, MatchAdmin)
admin.site.register(Tip)
|
from django.contrib import admin
from .models import Match
from .models import Tip
def delete_tips(modeladmin, request, queryset):
for match in queryset:
tips = Tip.object.filter(match = match)
for tip in tips:
tip.score = 0
tip.scoring_field = ""
tip.is_score_calculated = False
delete_tips.delete_tips = "Delete calculated scores for tips for these matches"
class MatchAdmin(admin.ModelAdmin):
actions = [delete_tips]
admin.site.register(Match, MatchAdmin)
admin.site.register(Tip)
Add action to zero out tips for given matchfrom django.contrib import admin
from .models import Match
from .models import Tip
def delete_tips(modeladmin, request, queryset):
for match in queryset:
tips = Tip.objects.filter(match = match)
for tip in tips:
tip.score = 0
tip.scoring_field = ""
tip.is_score_calculated = False
delete_tips.delete_tips = "Delete calculated scores for tips for these matches"
class MatchAdmin(admin.ModelAdmin):
actions = [delete_tips]
admin.site.register(Match, MatchAdmin)
admin.site.register(Tip)
|
<commit_before>from django.contrib import admin
from .models import Match
from .models import Tip
def delete_tips(modeladmin, request, queryset):
for match in queryset:
tips = Tip.object.filter(match = match)
for tip in tips:
tip.score = 0
tip.scoring_field = ""
tip.is_score_calculated = False
delete_tips.delete_tips = "Delete calculated scores for tips for these matches"
class MatchAdmin(admin.ModelAdmin):
actions = [delete_tips]
admin.site.register(Match, MatchAdmin)
admin.site.register(Tip)
<commit_msg>Add action to zero out tips for given match<commit_after>from django.contrib import admin
from .models import Match
from .models import Tip
def delete_tips(modeladmin, request, queryset):
for match in queryset:
tips = Tip.objects.filter(match = match)
for tip in tips:
tip.score = 0
tip.scoring_field = ""
tip.is_score_calculated = False
delete_tips.delete_tips = "Delete calculated scores for tips for these matches"
class MatchAdmin(admin.ModelAdmin):
actions = [delete_tips]
admin.site.register(Match, MatchAdmin)
admin.site.register(Tip)
|
d9f2ab870c3226d932f7d31aed2c255495573051
|
src/xii/need/need_guestfs.py
|
src/xii/need/need_guestfs.py
|
from abc import ABCMeta, abstractmethod
import guestfs
from xii import util
class NeedGuestFS():
__metaclass__ = ABCMeta
@abstractmethod
def get_tmp_volume_path(self):
pass
def guest(self):
def _start_guestfs():
path = self.get_tmp_volume_path()
guest = guestfs.GuestFS()
guest.add_drive(path)
guest.launch()
guest.mount("/dev/sda1", "/")
if guest.exists('/etc/sysconfig/selinux'):
guest.get_selinux = lambda: 1
return guest
def _close_guest(guest):
guest.sync()
guest.umount("/")
guest.close()
return self.share("guestfs", _start_guestfs, _close_guest)
def guest_get_users(self):
content = self.guest().cat('/etc/passwd').split("\n")
return util.parse_passwd(content)
def guest_user_home(self, name):
users = self.guest_get_users()
if name not in users:
return None
return users[name]["home"]
def guest_get_groups(self):
content = self.guest().cat('/etc/group').split("\n")
return util.parse_groups(content)
|
from abc import ABCMeta, abstractmethod
import guestfs
from xii import util, error
class NeedGuestFS():
__metaclass__ = ABCMeta
@abstractmethod
def get_tmp_volume_path(self):
pass
def guest(self):
def _start_guestfs():
try:
path = self.get_tmp_volume_path()
guest = guestfs.GuestFS()
guest.add_drive(path)
guest.launch()
guest.mount("/dev/sda1", "/")
if guest.exists('/etc/sysconfig/selinux'):
guest.get_selinux = lambda: 1
except RuntimeError as e:
raise error.ExecError("guestfs error: {}".format(e))
return guest
def _close_guest(guest):
guest.sync()
guest.umount("/")
guest.close()
return self.share("guestfs", _start_guestfs, _close_guest)
def guest_get_users(self):
content = self.guest().cat('/etc/passwd').split("\n")
return util.parse_passwd(content)
def guest_user_home(self, name):
users = self.guest_get_users()
if name not in users:
return None
return users[name]["home"]
def guest_get_groups(self):
content = self.guest().cat('/etc/group').split("\n")
return util.parse_groups(content)
|
Add error handling to guestfs initializer
|
Add error handling to guestfs initializer
|
Python
|
apache-2.0
|
xii/xii,xii/xii
|
from abc import ABCMeta, abstractmethod
import guestfs
from xii import util
class NeedGuestFS():
__metaclass__ = ABCMeta
@abstractmethod
def get_tmp_volume_path(self):
pass
def guest(self):
def _start_guestfs():
path = self.get_tmp_volume_path()
guest = guestfs.GuestFS()
guest.add_drive(path)
guest.launch()
guest.mount("/dev/sda1", "/")
if guest.exists('/etc/sysconfig/selinux'):
guest.get_selinux = lambda: 1
return guest
def _close_guest(guest):
guest.sync()
guest.umount("/")
guest.close()
return self.share("guestfs", _start_guestfs, _close_guest)
def guest_get_users(self):
content = self.guest().cat('/etc/passwd').split("\n")
return util.parse_passwd(content)
def guest_user_home(self, name):
users = self.guest_get_users()
if name not in users:
return None
return users[name]["home"]
def guest_get_groups(self):
content = self.guest().cat('/etc/group').split("\n")
return util.parse_groups(content)
Add error handling to guestfs initializer
|
from abc import ABCMeta, abstractmethod
import guestfs
from xii import util, error
class NeedGuestFS():
__metaclass__ = ABCMeta
@abstractmethod
def get_tmp_volume_path(self):
pass
def guest(self):
def _start_guestfs():
try:
path = self.get_tmp_volume_path()
guest = guestfs.GuestFS()
guest.add_drive(path)
guest.launch()
guest.mount("/dev/sda1", "/")
if guest.exists('/etc/sysconfig/selinux'):
guest.get_selinux = lambda: 1
except RuntimeError as e:
raise error.ExecError("guestfs error: {}".format(e))
return guest
def _close_guest(guest):
guest.sync()
guest.umount("/")
guest.close()
return self.share("guestfs", _start_guestfs, _close_guest)
def guest_get_users(self):
content = self.guest().cat('/etc/passwd').split("\n")
return util.parse_passwd(content)
def guest_user_home(self, name):
users = self.guest_get_users()
if name not in users:
return None
return users[name]["home"]
def guest_get_groups(self):
content = self.guest().cat('/etc/group').split("\n")
return util.parse_groups(content)
|
<commit_before>from abc import ABCMeta, abstractmethod
import guestfs
from xii import util
class NeedGuestFS():
__metaclass__ = ABCMeta
@abstractmethod
def get_tmp_volume_path(self):
pass
def guest(self):
def _start_guestfs():
path = self.get_tmp_volume_path()
guest = guestfs.GuestFS()
guest.add_drive(path)
guest.launch()
guest.mount("/dev/sda1", "/")
if guest.exists('/etc/sysconfig/selinux'):
guest.get_selinux = lambda: 1
return guest
def _close_guest(guest):
guest.sync()
guest.umount("/")
guest.close()
return self.share("guestfs", _start_guestfs, _close_guest)
def guest_get_users(self):
content = self.guest().cat('/etc/passwd').split("\n")
return util.parse_passwd(content)
def guest_user_home(self, name):
users = self.guest_get_users()
if name not in users:
return None
return users[name]["home"]
def guest_get_groups(self):
content = self.guest().cat('/etc/group').split("\n")
return util.parse_groups(content)
<commit_msg>Add error handling to guestfs initializer<commit_after>
|
from abc import ABCMeta, abstractmethod
import guestfs
from xii import util, error
class NeedGuestFS():
__metaclass__ = ABCMeta
@abstractmethod
def get_tmp_volume_path(self):
pass
def guest(self):
def _start_guestfs():
try:
path = self.get_tmp_volume_path()
guest = guestfs.GuestFS()
guest.add_drive(path)
guest.launch()
guest.mount("/dev/sda1", "/")
if guest.exists('/etc/sysconfig/selinux'):
guest.get_selinux = lambda: 1
except RuntimeError as e:
raise error.ExecError("guestfs error: {}".format(e))
return guest
def _close_guest(guest):
guest.sync()
guest.umount("/")
guest.close()
return self.share("guestfs", _start_guestfs, _close_guest)
def guest_get_users(self):
content = self.guest().cat('/etc/passwd').split("\n")
return util.parse_passwd(content)
def guest_user_home(self, name):
users = self.guest_get_users()
if name not in users:
return None
return users[name]["home"]
def guest_get_groups(self):
content = self.guest().cat('/etc/group').split("\n")
return util.parse_groups(content)
|
from abc import ABCMeta, abstractmethod
import guestfs
from xii import util
class NeedGuestFS():
__metaclass__ = ABCMeta
@abstractmethod
def get_tmp_volume_path(self):
pass
def guest(self):
def _start_guestfs():
path = self.get_tmp_volume_path()
guest = guestfs.GuestFS()
guest.add_drive(path)
guest.launch()
guest.mount("/dev/sda1", "/")
if guest.exists('/etc/sysconfig/selinux'):
guest.get_selinux = lambda: 1
return guest
def _close_guest(guest):
guest.sync()
guest.umount("/")
guest.close()
return self.share("guestfs", _start_guestfs, _close_guest)
def guest_get_users(self):
content = self.guest().cat('/etc/passwd').split("\n")
return util.parse_passwd(content)
def guest_user_home(self, name):
users = self.guest_get_users()
if name not in users:
return None
return users[name]["home"]
def guest_get_groups(self):
content = self.guest().cat('/etc/group').split("\n")
return util.parse_groups(content)
Add error handling to guestfs initializerfrom abc import ABCMeta, abstractmethod
import guestfs
from xii import util, error
class NeedGuestFS():
__metaclass__ = ABCMeta
@abstractmethod
def get_tmp_volume_path(self):
pass
def guest(self):
def _start_guestfs():
try:
path = self.get_tmp_volume_path()
guest = guestfs.GuestFS()
guest.add_drive(path)
guest.launch()
guest.mount("/dev/sda1", "/")
if guest.exists('/etc/sysconfig/selinux'):
guest.get_selinux = lambda: 1
except RuntimeError as e:
raise error.ExecError("guestfs error: {}".format(e))
return guest
def _close_guest(guest):
guest.sync()
guest.umount("/")
guest.close()
return self.share("guestfs", _start_guestfs, _close_guest)
def guest_get_users(self):
content = self.guest().cat('/etc/passwd').split("\n")
return util.parse_passwd(content)
def guest_user_home(self, name):
users = self.guest_get_users()
if name not in users:
return None
return users[name]["home"]
def guest_get_groups(self):
content = self.guest().cat('/etc/group').split("\n")
return util.parse_groups(content)
|
<commit_before>from abc import ABCMeta, abstractmethod
import guestfs
from xii import util
class NeedGuestFS():
__metaclass__ = ABCMeta
@abstractmethod
def get_tmp_volume_path(self):
pass
def guest(self):
def _start_guestfs():
path = self.get_tmp_volume_path()
guest = guestfs.GuestFS()
guest.add_drive(path)
guest.launch()
guest.mount("/dev/sda1", "/")
if guest.exists('/etc/sysconfig/selinux'):
guest.get_selinux = lambda: 1
return guest
def _close_guest(guest):
guest.sync()
guest.umount("/")
guest.close()
return self.share("guestfs", _start_guestfs, _close_guest)
def guest_get_users(self):
content = self.guest().cat('/etc/passwd').split("\n")
return util.parse_passwd(content)
def guest_user_home(self, name):
users = self.guest_get_users()
if name not in users:
return None
return users[name]["home"]
def guest_get_groups(self):
content = self.guest().cat('/etc/group').split("\n")
return util.parse_groups(content)
<commit_msg>Add error handling to guestfs initializer<commit_after>from abc import ABCMeta, abstractmethod
import guestfs
from xii import util, error
class NeedGuestFS():
__metaclass__ = ABCMeta
@abstractmethod
def get_tmp_volume_path(self):
pass
def guest(self):
def _start_guestfs():
try:
path = self.get_tmp_volume_path()
guest = guestfs.GuestFS()
guest.add_drive(path)
guest.launch()
guest.mount("/dev/sda1", "/")
if guest.exists('/etc/sysconfig/selinux'):
guest.get_selinux = lambda: 1
except RuntimeError as e:
raise error.ExecError("guestfs error: {}".format(e))
return guest
def _close_guest(guest):
guest.sync()
guest.umount("/")
guest.close()
return self.share("guestfs", _start_guestfs, _close_guest)
def guest_get_users(self):
content = self.guest().cat('/etc/passwd').split("\n")
return util.parse_passwd(content)
def guest_user_home(self, name):
users = self.guest_get_users()
if name not in users:
return None
return users[name]["home"]
def guest_get_groups(self):
content = self.guest().cat('/etc/group').split("\n")
return util.parse_groups(content)
|
dcce2d6db32c94e382615dc8eb01d8bef0894c00
|
tests/test_config.py
|
tests/test_config.py
|
import unittest
import yaml
import keepaneyeon.config
from keepaneyeon.http import HttpDownloader
class TestConfig(unittest.TestCase):
def test_register(self):
# custom type we want to load from YAML
class A():
def __init__(self, **opts):
self.opts = opts
# YAML loader we will customize
class CustomLoader(yaml.Loader):
pass
# register our new type
keepaneyeon.config.register(CustomLoader, 'a', A)
# parse some YAML
config_sting = """
- !a
k1: v1
k2: v2
"""
parsed = yaml.load(config_string, Loader=CustomLoader)
self.assertEqual(len(parsed), 1)
self.assertIsInstance(parsed[0], A)
self.assertEqual(parsed[0].opts['k1'], 'v1')
self.assertEqual(parsed[0].opts['k2'], 'v2')
def test_load(self):
# test loading one of our registered types
config_string = """
- !downloader/http
k1: v1
k2: v2
"""
parsed = keepaneyeon.config.load(config_string)
self.assertEqual(len(parsed), 1)
self.assertIsInstance(parsed[0], HttpDownloader)
self.assertEqual(parsed[0].base['k1'], 'v1')
self.assertEqual(parsed[0].base['k2'], 'v2')
|
import unittest
import yaml
import keepaneyeon.config
from keepaneyeon.http import HttpDownloader
class TestConfig(unittest.TestCase):
def test_register(self):
# custom type we want to load from YAML
class A():
def __init__(self, **opts):
self.opts = opts
# YAML loader we will customize
class CustomLoader(yaml.Loader):
pass
# register our new type
keepaneyeon.config.register(CustomLoader, 'a', A)
# parse some YAML
config_string = """
- !a
k1: v1
k2: v2
"""
parsed = yaml.load(config_string, Loader=CustomLoader)
self.assertEqual(len(parsed), 1)
self.assertIsInstance(parsed[0], A)
self.assertEqual(parsed[0].opts['k1'], 'v1')
self.assertEqual(parsed[0].opts['k2'], 'v2')
def test_load(self):
# test loading one of our registered types
config_string = """
- !downloader/http
k1: v1
k2: v2
"""
parsed = keepaneyeon.config.load(config_string)
self.assertEqual(len(parsed), 1)
self.assertIsInstance(parsed[0], HttpDownloader)
self.assertEqual(parsed[0].base['k1'], 'v1')
self.assertEqual(parsed[0].base['k2'], 'v2')
|
Fix bug in config test
|
Fix bug in config test
|
Python
|
mit
|
mmcloughlin/keepaneyeon
|
import unittest
import yaml
import keepaneyeon.config
from keepaneyeon.http import HttpDownloader
class TestConfig(unittest.TestCase):
def test_register(self):
# custom type we want to load from YAML
class A():
def __init__(self, **opts):
self.opts = opts
# YAML loader we will customize
class CustomLoader(yaml.Loader):
pass
# register our new type
keepaneyeon.config.register(CustomLoader, 'a', A)
# parse some YAML
config_sting = """
- !a
k1: v1
k2: v2
"""
parsed = yaml.load(config_string, Loader=CustomLoader)
self.assertEqual(len(parsed), 1)
self.assertIsInstance(parsed[0], A)
self.assertEqual(parsed[0].opts['k1'], 'v1')
self.assertEqual(parsed[0].opts['k2'], 'v2')
def test_load(self):
# test loading one of our registered types
config_string = """
- !downloader/http
k1: v1
k2: v2
"""
parsed = keepaneyeon.config.load(config_string)
self.assertEqual(len(parsed), 1)
self.assertIsInstance(parsed[0], HttpDownloader)
self.assertEqual(parsed[0].base['k1'], 'v1')
self.assertEqual(parsed[0].base['k2'], 'v2')
Fix bug in config test
|
import unittest
import yaml
import keepaneyeon.config
from keepaneyeon.http import HttpDownloader
class TestConfig(unittest.TestCase):
def test_register(self):
# custom type we want to load from YAML
class A():
def __init__(self, **opts):
self.opts = opts
# YAML loader we will customize
class CustomLoader(yaml.Loader):
pass
# register our new type
keepaneyeon.config.register(CustomLoader, 'a', A)
# parse some YAML
config_string = """
- !a
k1: v1
k2: v2
"""
parsed = yaml.load(config_string, Loader=CustomLoader)
self.assertEqual(len(parsed), 1)
self.assertIsInstance(parsed[0], A)
self.assertEqual(parsed[0].opts['k1'], 'v1')
self.assertEqual(parsed[0].opts['k2'], 'v2')
def test_load(self):
# test loading one of our registered types
config_string = """
- !downloader/http
k1: v1
k2: v2
"""
parsed = keepaneyeon.config.load(config_string)
self.assertEqual(len(parsed), 1)
self.assertIsInstance(parsed[0], HttpDownloader)
self.assertEqual(parsed[0].base['k1'], 'v1')
self.assertEqual(parsed[0].base['k2'], 'v2')
|
<commit_before>import unittest
import yaml
import keepaneyeon.config
from keepaneyeon.http import HttpDownloader
class TestConfig(unittest.TestCase):
def test_register(self):
# custom type we want to load from YAML
class A():
def __init__(self, **opts):
self.opts = opts
# YAML loader we will customize
class CustomLoader(yaml.Loader):
pass
# register our new type
keepaneyeon.config.register(CustomLoader, 'a', A)
# parse some YAML
config_sting = """
- !a
k1: v1
k2: v2
"""
parsed = yaml.load(config_string, Loader=CustomLoader)
self.assertEqual(len(parsed), 1)
self.assertIsInstance(parsed[0], A)
self.assertEqual(parsed[0].opts['k1'], 'v1')
self.assertEqual(parsed[0].opts['k2'], 'v2')
def test_load(self):
# test loading one of our registered types
config_string = """
- !downloader/http
k1: v1
k2: v2
"""
parsed = keepaneyeon.config.load(config_string)
self.assertEqual(len(parsed), 1)
self.assertIsInstance(parsed[0], HttpDownloader)
self.assertEqual(parsed[0].base['k1'], 'v1')
self.assertEqual(parsed[0].base['k2'], 'v2')
<commit_msg>Fix bug in config test<commit_after>
|
import unittest
import yaml
import keepaneyeon.config
from keepaneyeon.http import HttpDownloader
class TestConfig(unittest.TestCase):
def test_register(self):
# custom type we want to load from YAML
class A():
def __init__(self, **opts):
self.opts = opts
# YAML loader we will customize
class CustomLoader(yaml.Loader):
pass
# register our new type
keepaneyeon.config.register(CustomLoader, 'a', A)
# parse some YAML
config_string = """
- !a
k1: v1
k2: v2
"""
parsed = yaml.load(config_string, Loader=CustomLoader)
self.assertEqual(len(parsed), 1)
self.assertIsInstance(parsed[0], A)
self.assertEqual(parsed[0].opts['k1'], 'v1')
self.assertEqual(parsed[0].opts['k2'], 'v2')
def test_load(self):
# test loading one of our registered types
config_string = """
- !downloader/http
k1: v1
k2: v2
"""
parsed = keepaneyeon.config.load(config_string)
self.assertEqual(len(parsed), 1)
self.assertIsInstance(parsed[0], HttpDownloader)
self.assertEqual(parsed[0].base['k1'], 'v1')
self.assertEqual(parsed[0].base['k2'], 'v2')
|
import unittest
import yaml
import keepaneyeon.config
from keepaneyeon.http import HttpDownloader
class TestConfig(unittest.TestCase):
def test_register(self):
# custom type we want to load from YAML
class A():
def __init__(self, **opts):
self.opts = opts
# YAML loader we will customize
class CustomLoader(yaml.Loader):
pass
# register our new type
keepaneyeon.config.register(CustomLoader, 'a', A)
# parse some YAML
config_sting = """
- !a
k1: v1
k2: v2
"""
parsed = yaml.load(config_string, Loader=CustomLoader)
self.assertEqual(len(parsed), 1)
self.assertIsInstance(parsed[0], A)
self.assertEqual(parsed[0].opts['k1'], 'v1')
self.assertEqual(parsed[0].opts['k2'], 'v2')
def test_load(self):
# test loading one of our registered types
config_string = """
- !downloader/http
k1: v1
k2: v2
"""
parsed = keepaneyeon.config.load(config_string)
self.assertEqual(len(parsed), 1)
self.assertIsInstance(parsed[0], HttpDownloader)
self.assertEqual(parsed[0].base['k1'], 'v1')
self.assertEqual(parsed[0].base['k2'], 'v2')
Fix bug in config testimport unittest
import yaml
import keepaneyeon.config
from keepaneyeon.http import HttpDownloader
class TestConfig(unittest.TestCase):
def test_register(self):
# custom type we want to load from YAML
class A():
def __init__(self, **opts):
self.opts = opts
# YAML loader we will customize
class CustomLoader(yaml.Loader):
pass
# register our new type
keepaneyeon.config.register(CustomLoader, 'a', A)
# parse some YAML
config_string = """
- !a
k1: v1
k2: v2
"""
parsed = yaml.load(config_string, Loader=CustomLoader)
self.assertEqual(len(parsed), 1)
self.assertIsInstance(parsed[0], A)
self.assertEqual(parsed[0].opts['k1'], 'v1')
self.assertEqual(parsed[0].opts['k2'], 'v2')
def test_load(self):
# test loading one of our registered types
config_string = """
- !downloader/http
k1: v1
k2: v2
"""
parsed = keepaneyeon.config.load(config_string)
self.assertEqual(len(parsed), 1)
self.assertIsInstance(parsed[0], HttpDownloader)
self.assertEqual(parsed[0].base['k1'], 'v1')
self.assertEqual(parsed[0].base['k2'], 'v2')
|
<commit_before>import unittest
import yaml
import keepaneyeon.config
from keepaneyeon.http import HttpDownloader
class TestConfig(unittest.TestCase):
def test_register(self):
# custom type we want to load from YAML
class A():
def __init__(self, **opts):
self.opts = opts
# YAML loader we will customize
class CustomLoader(yaml.Loader):
pass
# register our new type
keepaneyeon.config.register(CustomLoader, 'a', A)
# parse some YAML
config_sting = """
- !a
k1: v1
k2: v2
"""
parsed = yaml.load(config_string, Loader=CustomLoader)
self.assertEqual(len(parsed), 1)
self.assertIsInstance(parsed[0], A)
self.assertEqual(parsed[0].opts['k1'], 'v1')
self.assertEqual(parsed[0].opts['k2'], 'v2')
def test_load(self):
# test loading one of our registered types
config_string = """
- !downloader/http
k1: v1
k2: v2
"""
parsed = keepaneyeon.config.load(config_string)
self.assertEqual(len(parsed), 1)
self.assertIsInstance(parsed[0], HttpDownloader)
self.assertEqual(parsed[0].base['k1'], 'v1')
self.assertEqual(parsed[0].base['k2'], 'v2')
<commit_msg>Fix bug in config test<commit_after>import unittest
import yaml
import keepaneyeon.config
from keepaneyeon.http import HttpDownloader
class TestConfig(unittest.TestCase):
def test_register(self):
# custom type we want to load from YAML
class A():
def __init__(self, **opts):
self.opts = opts
# YAML loader we will customize
class CustomLoader(yaml.Loader):
pass
# register our new type
keepaneyeon.config.register(CustomLoader, 'a', A)
# parse some YAML
config_string = """
- !a
k1: v1
k2: v2
"""
parsed = yaml.load(config_string, Loader=CustomLoader)
self.assertEqual(len(parsed), 1)
self.assertIsInstance(parsed[0], A)
self.assertEqual(parsed[0].opts['k1'], 'v1')
self.assertEqual(parsed[0].opts['k2'], 'v2')
def test_load(self):
# test loading one of our registered types
config_string = """
- !downloader/http
k1: v1
k2: v2
"""
parsed = keepaneyeon.config.load(config_string)
self.assertEqual(len(parsed), 1)
self.assertIsInstance(parsed[0], HttpDownloader)
self.assertEqual(parsed[0].base['k1'], 'v1')
self.assertEqual(parsed[0].base['k2'], 'v2')
|
8182657154b86cf65c515af3537e369818051ff5
|
tests/test_config.py
|
tests/test_config.py
|
# -*- coding: utf-8 -*-
import unittest
from .utils import all_available_methods, get_config_path
from noterator import Noterator
from noterator.config import ConfigurationError
class TestConfigValidation(unittest.TestCase):
def test_valid_config(self):
noterator = Noterator(
method=all_available_methods(),
config_file=get_config_path('config-full.ini')
)
noterator._validate_config()
def test_invalid_config(self):
noterator = Noterator(
method=all_available_methods(),
config_file=get_config_path('config-bad.ini')
)
with self.assertRaises(ConfigurationError):
noterator._validate_config()
|
# -*- coding: utf-8 -*-
import unittest
from .utils import all_available_methods, get_config_path
from noterator import Noterator
from noterator.config import ConfigurationError
class TestConfigValidation(unittest.TestCase):
def test_valid_config(self):
noterator = Noterator(
method=all_available_methods(),
config_file=get_config_path('config-full.ini')
)
noterator._validate_config()
def test_invalid_config(self):
noterator = Noterator(
method=all_available_methods(),
config_file=get_config_path('config-bad.ini')
)
with self.assertRaises(ConfigurationError):
noterator._validate_config()
def test_bad_path(self):
noterator = Noterator(
config_file='nowhere-useful',
)
self.assertEqual(len(noterator.cfg.sections()), 0)
|
Make sure config is empty if a bad path is given
|
Make sure config is empty if a bad path is given
|
Python
|
mit
|
jimr/noterator
|
# -*- coding: utf-8 -*-
import unittest
from .utils import all_available_methods, get_config_path
from noterator import Noterator
from noterator.config import ConfigurationError
class TestConfigValidation(unittest.TestCase):
def test_valid_config(self):
noterator = Noterator(
method=all_available_methods(),
config_file=get_config_path('config-full.ini')
)
noterator._validate_config()
def test_invalid_config(self):
noterator = Noterator(
method=all_available_methods(),
config_file=get_config_path('config-bad.ini')
)
with self.assertRaises(ConfigurationError):
noterator._validate_config()
Make sure config is empty if a bad path is given
|
# -*- coding: utf-8 -*-
import unittest
from .utils import all_available_methods, get_config_path
from noterator import Noterator
from noterator.config import ConfigurationError
class TestConfigValidation(unittest.TestCase):
def test_valid_config(self):
noterator = Noterator(
method=all_available_methods(),
config_file=get_config_path('config-full.ini')
)
noterator._validate_config()
def test_invalid_config(self):
noterator = Noterator(
method=all_available_methods(),
config_file=get_config_path('config-bad.ini')
)
with self.assertRaises(ConfigurationError):
noterator._validate_config()
def test_bad_path(self):
noterator = Noterator(
config_file='nowhere-useful',
)
self.assertEqual(len(noterator.cfg.sections()), 0)
|
<commit_before># -*- coding: utf-8 -*-
import unittest
from .utils import all_available_methods, get_config_path
from noterator import Noterator
from noterator.config import ConfigurationError
class TestConfigValidation(unittest.TestCase):
def test_valid_config(self):
noterator = Noterator(
method=all_available_methods(),
config_file=get_config_path('config-full.ini')
)
noterator._validate_config()
def test_invalid_config(self):
noterator = Noterator(
method=all_available_methods(),
config_file=get_config_path('config-bad.ini')
)
with self.assertRaises(ConfigurationError):
noterator._validate_config()
<commit_msg>Make sure config is empty if a bad path is given<commit_after>
|
# -*- coding: utf-8 -*-
import unittest
from .utils import all_available_methods, get_config_path
from noterator import Noterator
from noterator.config import ConfigurationError
class TestConfigValidation(unittest.TestCase):
def test_valid_config(self):
noterator = Noterator(
method=all_available_methods(),
config_file=get_config_path('config-full.ini')
)
noterator._validate_config()
def test_invalid_config(self):
noterator = Noterator(
method=all_available_methods(),
config_file=get_config_path('config-bad.ini')
)
with self.assertRaises(ConfigurationError):
noterator._validate_config()
def test_bad_path(self):
noterator = Noterator(
config_file='nowhere-useful',
)
self.assertEqual(len(noterator.cfg.sections()), 0)
|
# -*- coding: utf-8 -*-
import unittest
from .utils import all_available_methods, get_config_path
from noterator import Noterator
from noterator.config import ConfigurationError
class TestConfigValidation(unittest.TestCase):
def test_valid_config(self):
noterator = Noterator(
method=all_available_methods(),
config_file=get_config_path('config-full.ini')
)
noterator._validate_config()
def test_invalid_config(self):
noterator = Noterator(
method=all_available_methods(),
config_file=get_config_path('config-bad.ini')
)
with self.assertRaises(ConfigurationError):
noterator._validate_config()
Make sure config is empty if a bad path is given# -*- coding: utf-8 -*-
import unittest
from .utils import all_available_methods, get_config_path
from noterator import Noterator
from noterator.config import ConfigurationError
class TestConfigValidation(unittest.TestCase):
def test_valid_config(self):
noterator = Noterator(
method=all_available_methods(),
config_file=get_config_path('config-full.ini')
)
noterator._validate_config()
def test_invalid_config(self):
noterator = Noterator(
method=all_available_methods(),
config_file=get_config_path('config-bad.ini')
)
with self.assertRaises(ConfigurationError):
noterator._validate_config()
def test_bad_path(self):
noterator = Noterator(
config_file='nowhere-useful',
)
self.assertEqual(len(noterator.cfg.sections()), 0)
|
<commit_before># -*- coding: utf-8 -*-
import unittest
from .utils import all_available_methods, get_config_path
from noterator import Noterator
from noterator.config import ConfigurationError
class TestConfigValidation(unittest.TestCase):
def test_valid_config(self):
noterator = Noterator(
method=all_available_methods(),
config_file=get_config_path('config-full.ini')
)
noterator._validate_config()
def test_invalid_config(self):
noterator = Noterator(
method=all_available_methods(),
config_file=get_config_path('config-bad.ini')
)
with self.assertRaises(ConfigurationError):
noterator._validate_config()
<commit_msg>Make sure config is empty if a bad path is given<commit_after># -*- coding: utf-8 -*-
import unittest
from .utils import all_available_methods, get_config_path
from noterator import Noterator
from noterator.config import ConfigurationError
class TestConfigValidation(unittest.TestCase):
def test_valid_config(self):
noterator = Noterator(
method=all_available_methods(),
config_file=get_config_path('config-full.ini')
)
noterator._validate_config()
def test_invalid_config(self):
noterator = Noterator(
method=all_available_methods(),
config_file=get_config_path('config-bad.ini')
)
with self.assertRaises(ConfigurationError):
noterator._validate_config()
def test_bad_path(self):
noterator = Noterator(
config_file='nowhere-useful',
)
self.assertEqual(len(noterator.cfg.sections()), 0)
|
d5217075d20c9b707dba191f4e7efdc9f66dcfaa
|
am_workout_assistant.py
|
am_workout_assistant.py
|
#!/usr/bin/env python
from telegram import Telegram
from message_checker import MessageHandler
from data_updater import DataUpdater
# init telegram bot
bot = Telegram()
ok = bot.init()
if not ok:
print("ERROR (bot init): {}".format(bot.get_messages()))
exit(1)
# init message checker
msg_checker = MessageHandler()
# init data updater
du = DataUpdater()
ok = du.init()
if not ok:
print("ERROR (data updater init): {}".format(du.get_error_message()))
exit(1)
for message in bot.get_messages():
print("Handling message '{}'...".format(message.get_text()))
msg_checker.set_message(message.get_text())
ok = msg_checker.check()
if not ok:
bot.send_reply(msg_checker.get_error_message())
continue
res = du.add_value(msg_checker.get_num_catch_ups(), message.date())
if res == False:
bot.send_reply(du.get_error_message())
continue
# success!
bot.send_reply("Successfully added {}!".format(msg_checker.get_num_catch_ups()))
|
#!/usr/bin/env python
from telegram import Telegram
from message_checker import MessageHandler
from data_updater import DataUpdater
# init telegram bot
bot = Telegram()
ok = bot.init()
if not ok:
print("ERROR (bot init): {}".format(bot.get_messages()))
exit(1)
# init message checker
msg_checker = MessageHandler()
# init data updater
du = DataUpdater()
ok = du.init()
if not ok:
print("ERROR (data updater init): {}".format(du.get_error_message()))
exit(1)
for message in bot.get_messages():
print("Handling message '{}'...".format(message.get_text()))
msg_checker.set_message(message.get_text())
ok = msg_checker.check()
if not ok:
bot.send_reply(msg_checker.get_error_message())
continue
res = du.add_value(msg_checker.get_num_catch_ups(), message.get_date())
if res == False:
bot.send_reply(du.get_error_message())
continue
# success!
bot.send_reply("Successfully added {}! Sum for the day is {}."
.format(msg_checker.get_num_catch_ups(), res))
|
Return summary for the day on success
|
Return summary for the day on success
This implements #2
|
Python
|
mit
|
amaslenn/AMWorkoutAssist
|
#!/usr/bin/env python
from telegram import Telegram
from message_checker import MessageHandler
from data_updater import DataUpdater
# init telegram bot
bot = Telegram()
ok = bot.init()
if not ok:
print("ERROR (bot init): {}".format(bot.get_messages()))
exit(1)
# init message checker
msg_checker = MessageHandler()
# init data updater
du = DataUpdater()
ok = du.init()
if not ok:
print("ERROR (data updater init): {}".format(du.get_error_message()))
exit(1)
for message in bot.get_messages():
print("Handling message '{}'...".format(message.get_text()))
msg_checker.set_message(message.get_text())
ok = msg_checker.check()
if not ok:
bot.send_reply(msg_checker.get_error_message())
continue
res = du.add_value(msg_checker.get_num_catch_ups(), message.date())
if res == False:
bot.send_reply(du.get_error_message())
continue
# success!
bot.send_reply("Successfully added {}!".format(msg_checker.get_num_catch_ups()))
Return summary for the day on success
This implements #2
|
#!/usr/bin/env python
from telegram import Telegram
from message_checker import MessageHandler
from data_updater import DataUpdater
# init telegram bot
bot = Telegram()
ok = bot.init()
if not ok:
print("ERROR (bot init): {}".format(bot.get_messages()))
exit(1)
# init message checker
msg_checker = MessageHandler()
# init data updater
du = DataUpdater()
ok = du.init()
if not ok:
print("ERROR (data updater init): {}".format(du.get_error_message()))
exit(1)
for message in bot.get_messages():
print("Handling message '{}'...".format(message.get_text()))
msg_checker.set_message(message.get_text())
ok = msg_checker.check()
if not ok:
bot.send_reply(msg_checker.get_error_message())
continue
res = du.add_value(msg_checker.get_num_catch_ups(), message.get_date())
if res == False:
bot.send_reply(du.get_error_message())
continue
# success!
bot.send_reply("Successfully added {}! Sum for the day is {}."
.format(msg_checker.get_num_catch_ups(), res))
|
<commit_before>#!/usr/bin/env python
from telegram import Telegram
from message_checker import MessageHandler
from data_updater import DataUpdater
# init telegram bot
bot = Telegram()
ok = bot.init()
if not ok:
print("ERROR (bot init): {}".format(bot.get_messages()))
exit(1)
# init message checker
msg_checker = MessageHandler()
# init data updater
du = DataUpdater()
ok = du.init()
if not ok:
print("ERROR (data updater init): {}".format(du.get_error_message()))
exit(1)
for message in bot.get_messages():
print("Handling message '{}'...".format(message.get_text()))
msg_checker.set_message(message.get_text())
ok = msg_checker.check()
if not ok:
bot.send_reply(msg_checker.get_error_message())
continue
res = du.add_value(msg_checker.get_num_catch_ups(), message.date())
if res == False:
bot.send_reply(du.get_error_message())
continue
# success!
bot.send_reply("Successfully added {}!".format(msg_checker.get_num_catch_ups()))
<commit_msg>Return summary for the day on success
This implements #2<commit_after>
|
#!/usr/bin/env python
from telegram import Telegram
from message_checker import MessageHandler
from data_updater import DataUpdater
# init telegram bot
bot = Telegram()
ok = bot.init()
if not ok:
print("ERROR (bot init): {}".format(bot.get_messages()))
exit(1)
# init message checker
msg_checker = MessageHandler()
# init data updater
du = DataUpdater()
ok = du.init()
if not ok:
print("ERROR (data updater init): {}".format(du.get_error_message()))
exit(1)
for message in bot.get_messages():
print("Handling message '{}'...".format(message.get_text()))
msg_checker.set_message(message.get_text())
ok = msg_checker.check()
if not ok:
bot.send_reply(msg_checker.get_error_message())
continue
res = du.add_value(msg_checker.get_num_catch_ups(), message.get_date())
if res == False:
bot.send_reply(du.get_error_message())
continue
# success!
bot.send_reply("Successfully added {}! Sum for the day is {}."
.format(msg_checker.get_num_catch_ups(), res))
|
#!/usr/bin/env python
from telegram import Telegram
from message_checker import MessageHandler
from data_updater import DataUpdater
# init telegram bot
bot = Telegram()
ok = bot.init()
if not ok:
print("ERROR (bot init): {}".format(bot.get_messages()))
exit(1)
# init message checker
msg_checker = MessageHandler()
# init data updater
du = DataUpdater()
ok = du.init()
if not ok:
print("ERROR (data updater init): {}".format(du.get_error_message()))
exit(1)
for message in bot.get_messages():
print("Handling message '{}'...".format(message.get_text()))
msg_checker.set_message(message.get_text())
ok = msg_checker.check()
if not ok:
bot.send_reply(msg_checker.get_error_message())
continue
res = du.add_value(msg_checker.get_num_catch_ups(), message.date())
if res == False:
bot.send_reply(du.get_error_message())
continue
# success!
bot.send_reply("Successfully added {}!".format(msg_checker.get_num_catch_ups()))
Return summary for the day on success
This implements #2#!/usr/bin/env python
from telegram import Telegram
from message_checker import MessageHandler
from data_updater import DataUpdater
# init telegram bot
bot = Telegram()
ok = bot.init()
if not ok:
print("ERROR (bot init): {}".format(bot.get_messages()))
exit(1)
# init message checker
msg_checker = MessageHandler()
# init data updater
du = DataUpdater()
ok = du.init()
if not ok:
print("ERROR (data updater init): {}".format(du.get_error_message()))
exit(1)
for message in bot.get_messages():
print("Handling message '{}'...".format(message.get_text()))
msg_checker.set_message(message.get_text())
ok = msg_checker.check()
if not ok:
bot.send_reply(msg_checker.get_error_message())
continue
res = du.add_value(msg_checker.get_num_catch_ups(), message.get_date())
if res == False:
bot.send_reply(du.get_error_message())
continue
# success!
bot.send_reply("Successfully added {}! Sum for the day is {}."
.format(msg_checker.get_num_catch_ups(), res))
|
<commit_before>#!/usr/bin/env python
from telegram import Telegram
from message_checker import MessageHandler
from data_updater import DataUpdater
# init telegram bot
bot = Telegram()
ok = bot.init()
if not ok:
print("ERROR (bot init): {}".format(bot.get_messages()))
exit(1)
# init message checker
msg_checker = MessageHandler()
# init data updater
du = DataUpdater()
ok = du.init()
if not ok:
print("ERROR (data updater init): {}".format(du.get_error_message()))
exit(1)
for message in bot.get_messages():
print("Handling message '{}'...".format(message.get_text()))
msg_checker.set_message(message.get_text())
ok = msg_checker.check()
if not ok:
bot.send_reply(msg_checker.get_error_message())
continue
res = du.add_value(msg_checker.get_num_catch_ups(), message.date())
if res == False:
bot.send_reply(du.get_error_message())
continue
# success!
bot.send_reply("Successfully added {}!".format(msg_checker.get_num_catch_ups()))
<commit_msg>Return summary for the day on success
This implements #2<commit_after>#!/usr/bin/env python
from telegram import Telegram
from message_checker import MessageHandler
from data_updater import DataUpdater
# init telegram bot
bot = Telegram()
ok = bot.init()
if not ok:
print("ERROR (bot init): {}".format(bot.get_messages()))
exit(1)
# init message checker
msg_checker = MessageHandler()
# init data updater
du = DataUpdater()
ok = du.init()
if not ok:
print("ERROR (data updater init): {}".format(du.get_error_message()))
exit(1)
for message in bot.get_messages():
print("Handling message '{}'...".format(message.get_text()))
msg_checker.set_message(message.get_text())
ok = msg_checker.check()
if not ok:
bot.send_reply(msg_checker.get_error_message())
continue
res = du.add_value(msg_checker.get_num_catch_ups(), message.get_date())
if res == False:
bot.send_reply(du.get_error_message())
continue
# success!
bot.send_reply("Successfully added {}! Sum for the day is {}."
.format(msg_checker.get_num_catch_ups(), res))
|
e9387e0f0bf7e0fc7e656ebc1a181a3667718a56
|
lc0118_pascal_triangle.py
|
lc0118_pascal_triangle.py
|
"""Leetcode 118. Pascal's Triangle
Easy
URL: https://leetcode.com/problems/pascals-triangle/
Given a non-negative integer numRows, generate the first numRows of
Pascal's triangle.
In Pascal's triangle, each number is the sum of the two numbers directly
above it.
Example:
Input: 5
Output:
[
[1],
[1,1],
[1,2,1],
[1,3,3,1],
[1,4,6,4,1]
]
"""
class Solution(object):
def generate(self, numRows):
"""
:type numRows: int
:rtype: List[List[int]]
Time complexity: O(n^2).
Space complexity: O(n^2).
"""
if numRows == 0:
return []
triangle = [[1] * (r + 1) for r in range(numRows)]
if numRows <= 2:
return triangle
for r in range(2, numRows):
last_row = triangle[r - 1]
current_row = triangle[r]
for i in range(1, r):
current_row[i] = last_row[i - 1] + last_row[i]
return triangle
def main():
numRows = 5
print('Pascal\'s triangle:\n{}'.format(
Solution().generate(numRows)))
if __name__ == '__main__':
main()
|
"""Leetcode 118. Pascal's Triangle
Easy
URL: https://leetcode.com/problems/pascals-triangle/
Given a non-negative integer numRows, generate the first numRows of
Pascal's triangle.
In Pascal's triangle, each number is the sum of the two numbers directly
above it.
Example:
Input: 5
Output:
[
[1],
[1,1],
[1,2,1],
[1,3,3,1],
[1,4,6,4,1]
]
"""
class Solution(object):
def generate(self, numRows):
"""
:type numRows: int
:rtype: List[List[int]]
Time complexity: O(n^2).
Space complexity: O(n).
"""
if numRows == 0:
return []
# Create base of Pascal triangle.
triangle = [[1] * (r + 1) for r in range(numRows)]
if numRows <= 2:
return triangle
for r in range(2, numRows):
last_row = triangle[r - 1]
current_row = triangle[r]
# In middle of current row, sum last row's two numbers.
for i in range(1, r):
current_row[i] = last_row[i - 1] + last_row[i]
return triangle
def main():
numRows = 5
print('Pascal\'s triangle:\n{}'.format(
Solution().generate(numRows)))
if __name__ == '__main__':
main()
|
Add comments & revise space complexity
|
Add comments & revise space complexity
|
Python
|
bsd-2-clause
|
bowen0701/algorithms_data_structures
|
"""Leetcode 118. Pascal's Triangle
Easy
URL: https://leetcode.com/problems/pascals-triangle/
Given a non-negative integer numRows, generate the first numRows of
Pascal's triangle.
In Pascal's triangle, each number is the sum of the two numbers directly
above it.
Example:
Input: 5
Output:
[
[1],
[1,1],
[1,2,1],
[1,3,3,1],
[1,4,6,4,1]
]
"""
class Solution(object):
def generate(self, numRows):
"""
:type numRows: int
:rtype: List[List[int]]
Time complexity: O(n^2).
Space complexity: O(n^2).
"""
if numRows == 0:
return []
triangle = [[1] * (r + 1) for r in range(numRows)]
if numRows <= 2:
return triangle
for r in range(2, numRows):
last_row = triangle[r - 1]
current_row = triangle[r]
for i in range(1, r):
current_row[i] = last_row[i - 1] + last_row[i]
return triangle
def main():
numRows = 5
print('Pascal\'s triangle:\n{}'.format(
Solution().generate(numRows)))
if __name__ == '__main__':
main()
Add comments & revise space complexity
|
"""Leetcode 118. Pascal's Triangle
Easy
URL: https://leetcode.com/problems/pascals-triangle/
Given a non-negative integer numRows, generate the first numRows of
Pascal's triangle.
In Pascal's triangle, each number is the sum of the two numbers directly
above it.
Example:
Input: 5
Output:
[
[1],
[1,1],
[1,2,1],
[1,3,3,1],
[1,4,6,4,1]
]
"""
class Solution(object):
def generate(self, numRows):
"""
:type numRows: int
:rtype: List[List[int]]
Time complexity: O(n^2).
Space complexity: O(n).
"""
if numRows == 0:
return []
# Create base of Pascal triangle.
triangle = [[1] * (r + 1) for r in range(numRows)]
if numRows <= 2:
return triangle
for r in range(2, numRows):
last_row = triangle[r - 1]
current_row = triangle[r]
# In middle of current row, sum last row's two numbers.
for i in range(1, r):
current_row[i] = last_row[i - 1] + last_row[i]
return triangle
def main():
numRows = 5
print('Pascal\'s triangle:\n{}'.format(
Solution().generate(numRows)))
if __name__ == '__main__':
main()
|
<commit_before>"""Leetcode 118. Pascal's Triangle
Easy
URL: https://leetcode.com/problems/pascals-triangle/
Given a non-negative integer numRows, generate the first numRows of
Pascal's triangle.
In Pascal's triangle, each number is the sum of the two numbers directly
above it.
Example:
Input: 5
Output:
[
[1],
[1,1],
[1,2,1],
[1,3,3,1],
[1,4,6,4,1]
]
"""
class Solution(object):
def generate(self, numRows):
"""
:type numRows: int
:rtype: List[List[int]]
Time complexity: O(n^2).
Space complexity: O(n^2).
"""
if numRows == 0:
return []
triangle = [[1] * (r + 1) for r in range(numRows)]
if numRows <= 2:
return triangle
for r in range(2, numRows):
last_row = triangle[r - 1]
current_row = triangle[r]
for i in range(1, r):
current_row[i] = last_row[i - 1] + last_row[i]
return triangle
def main():
numRows = 5
print('Pascal\'s triangle:\n{}'.format(
Solution().generate(numRows)))
if __name__ == '__main__':
main()
<commit_msg>Add comments & revise space complexity<commit_after>
|
"""Leetcode 118. Pascal's Triangle
Easy
URL: https://leetcode.com/problems/pascals-triangle/
Given a non-negative integer numRows, generate the first numRows of
Pascal's triangle.
In Pascal's triangle, each number is the sum of the two numbers directly
above it.
Example:
Input: 5
Output:
[
[1],
[1,1],
[1,2,1],
[1,3,3,1],
[1,4,6,4,1]
]
"""
class Solution(object):
def generate(self, numRows):
"""
:type numRows: int
:rtype: List[List[int]]
Time complexity: O(n^2).
Space complexity: O(n).
"""
if numRows == 0:
return []
# Create base of Pascal triangle.
triangle = [[1] * (r + 1) for r in range(numRows)]
if numRows <= 2:
return triangle
for r in range(2, numRows):
last_row = triangle[r - 1]
current_row = triangle[r]
# In middle of current row, sum last row's two numbers.
for i in range(1, r):
current_row[i] = last_row[i - 1] + last_row[i]
return triangle
def main():
numRows = 5
print('Pascal\'s triangle:\n{}'.format(
Solution().generate(numRows)))
if __name__ == '__main__':
main()
|
"""Leetcode 118. Pascal's Triangle
Easy
URL: https://leetcode.com/problems/pascals-triangle/
Given a non-negative integer numRows, generate the first numRows of
Pascal's triangle.
In Pascal's triangle, each number is the sum of the two numbers directly
above it.
Example:
Input: 5
Output:
[
[1],
[1,1],
[1,2,1],
[1,3,3,1],
[1,4,6,4,1]
]
"""
class Solution(object):
def generate(self, numRows):
"""
:type numRows: int
:rtype: List[List[int]]
Time complexity: O(n^2).
Space complexity: O(n^2).
"""
if numRows == 0:
return []
triangle = [[1] * (r + 1) for r in range(numRows)]
if numRows <= 2:
return triangle
for r in range(2, numRows):
last_row = triangle[r - 1]
current_row = triangle[r]
for i in range(1, r):
current_row[i] = last_row[i - 1] + last_row[i]
return triangle
def main():
numRows = 5
print('Pascal\'s triangle:\n{}'.format(
Solution().generate(numRows)))
if __name__ == '__main__':
main()
Add comments & revise space complexity"""Leetcode 118. Pascal's Triangle
Easy
URL: https://leetcode.com/problems/pascals-triangle/
Given a non-negative integer numRows, generate the first numRows of
Pascal's triangle.
In Pascal's triangle, each number is the sum of the two numbers directly
above it.
Example:
Input: 5
Output:
[
[1],
[1,1],
[1,2,1],
[1,3,3,1],
[1,4,6,4,1]
]
"""
class Solution(object):
def generate(self, numRows):
"""
:type numRows: int
:rtype: List[List[int]]
Time complexity: O(n^2).
Space complexity: O(n).
"""
if numRows == 0:
return []
# Create base of Pascal triangle.
triangle = [[1] * (r + 1) for r in range(numRows)]
if numRows <= 2:
return triangle
for r in range(2, numRows):
last_row = triangle[r - 1]
current_row = triangle[r]
# In middle of current row, sum last row's two numbers.
for i in range(1, r):
current_row[i] = last_row[i - 1] + last_row[i]
return triangle
def main():
numRows = 5
print('Pascal\'s triangle:\n{}'.format(
Solution().generate(numRows)))
if __name__ == '__main__':
main()
|
<commit_before>"""Leetcode 118. Pascal's Triangle
Easy
URL: https://leetcode.com/problems/pascals-triangle/
Given a non-negative integer numRows, generate the first numRows of
Pascal's triangle.
In Pascal's triangle, each number is the sum of the two numbers directly
above it.
Example:
Input: 5
Output:
[
[1],
[1,1],
[1,2,1],
[1,3,3,1],
[1,4,6,4,1]
]
"""
class Solution(object):
def generate(self, numRows):
"""
:type numRows: int
:rtype: List[List[int]]
Time complexity: O(n^2).
Space complexity: O(n^2).
"""
if numRows == 0:
return []
triangle = [[1] * (r + 1) for r in range(numRows)]
if numRows <= 2:
return triangle
for r in range(2, numRows):
last_row = triangle[r - 1]
current_row = triangle[r]
for i in range(1, r):
current_row[i] = last_row[i - 1] + last_row[i]
return triangle
def main():
numRows = 5
print('Pascal\'s triangle:\n{}'.format(
Solution().generate(numRows)))
if __name__ == '__main__':
main()
<commit_msg>Add comments & revise space complexity<commit_after>"""Leetcode 118. Pascal's Triangle
Easy
URL: https://leetcode.com/problems/pascals-triangle/
Given a non-negative integer numRows, generate the first numRows of
Pascal's triangle.
In Pascal's triangle, each number is the sum of the two numbers directly
above it.
Example:
Input: 5
Output:
[
[1],
[1,1],
[1,2,1],
[1,3,3,1],
[1,4,6,4,1]
]
"""
class Solution(object):
def generate(self, numRows):
"""
:type numRows: int
:rtype: List[List[int]]
Time complexity: O(n^2).
Space complexity: O(n).
"""
if numRows == 0:
return []
# Create base of Pascal triangle.
triangle = [[1] * (r + 1) for r in range(numRows)]
if numRows <= 2:
return triangle
for r in range(2, numRows):
last_row = triangle[r - 1]
current_row = triangle[r]
# In middle of current row, sum last row's two numbers.
for i in range(1, r):
current_row[i] = last_row[i - 1] + last_row[i]
return triangle
def main():
numRows = 5
print('Pascal\'s triangle:\n{}'.format(
Solution().generate(numRows)))
if __name__ == '__main__':
main()
|
4c7e4e629d154424acf5590a3c65c7e4d30c5aff
|
tests/test_person.py
|
tests/test_person.py
|
from unittest import TestCase
class PersonTestCase(TestCase):
def test_get_groups(self):
pass
|
from unittest import TestCase
from address_book import Person
class PersonTestCase(TestCase):
def test_get_groups(self):
pass
def test_add_address(self):
basic_address = ['Russian Federation, Kemerovo region, Kemerovo, Kirova street 23, apt. 42'],
person = Person(
'John',
'Doe',
basic_address,
['+79834772053'],
['john@gmail.com']
)
person.add_address('new address')
self.assertEqual(
person.addresses,
basic_address + ['new address']
)
def test_add_phone(self):
pass
def test_add_email(self):
pass
|
Test the ability to add some address to the person
|
Test the ability to add some address to the person
|
Python
|
mit
|
dizpers/python-address-book-assignment
|
from unittest import TestCase
class PersonTestCase(TestCase):
def test_get_groups(self):
passTest the ability to add some address to the person
|
from unittest import TestCase
from address_book import Person
class PersonTestCase(TestCase):
def test_get_groups(self):
pass
def test_add_address(self):
basic_address = ['Russian Federation, Kemerovo region, Kemerovo, Kirova street 23, apt. 42'],
person = Person(
'John',
'Doe',
basic_address,
['+79834772053'],
['john@gmail.com']
)
person.add_address('new address')
self.assertEqual(
person.addresses,
basic_address + ['new address']
)
def test_add_phone(self):
pass
def test_add_email(self):
pass
|
<commit_before>from unittest import TestCase
class PersonTestCase(TestCase):
def test_get_groups(self):
pass<commit_msg>Test the ability to add some address to the person<commit_after>
|
from unittest import TestCase
from address_book import Person
class PersonTestCase(TestCase):
def test_get_groups(self):
pass
def test_add_address(self):
basic_address = ['Russian Federation, Kemerovo region, Kemerovo, Kirova street 23, apt. 42'],
person = Person(
'John',
'Doe',
basic_address,
['+79834772053'],
['john@gmail.com']
)
person.add_address('new address')
self.assertEqual(
person.addresses,
basic_address + ['new address']
)
def test_add_phone(self):
pass
def test_add_email(self):
pass
|
from unittest import TestCase
class PersonTestCase(TestCase):
def test_get_groups(self):
passTest the ability to add some address to the personfrom unittest import TestCase
from address_book import Person
class PersonTestCase(TestCase):
def test_get_groups(self):
pass
def test_add_address(self):
basic_address = ['Russian Federation, Kemerovo region, Kemerovo, Kirova street 23, apt. 42'],
person = Person(
'John',
'Doe',
basic_address,
['+79834772053'],
['john@gmail.com']
)
person.add_address('new address')
self.assertEqual(
person.addresses,
basic_address + ['new address']
)
def test_add_phone(self):
pass
def test_add_email(self):
pass
|
<commit_before>from unittest import TestCase
class PersonTestCase(TestCase):
def test_get_groups(self):
pass<commit_msg>Test the ability to add some address to the person<commit_after>from unittest import TestCase
from address_book import Person
class PersonTestCase(TestCase):
def test_get_groups(self):
pass
def test_add_address(self):
basic_address = ['Russian Federation, Kemerovo region, Kemerovo, Kirova street 23, apt. 42'],
person = Person(
'John',
'Doe',
basic_address,
['+79834772053'],
['john@gmail.com']
)
person.add_address('new address')
self.assertEqual(
person.addresses,
basic_address + ['new address']
)
def test_add_phone(self):
pass
def test_add_email(self):
pass
|
3f06897115896c9aff2ee15d2cf6214809390199
|
moviealert/forms.py
|
moviealert/forms.py
|
from django import forms
from django.conf import settings
from moviealert.base.widgets import CalendarWidget
from .models import TaskList, RegionData
class MovieForm(forms.ModelForm):
def __init__(self, *args, **kwargs):
super(MovieForm, self).__init__(*args, **kwargs)
self.fields['movie_date'] = forms.DateField(
widget=CalendarWidget(attrs={"readonly": "readonly",
"style": "background:white;"}),
input_formats=settings.ALLOWED_DATE_FORMAT)
self.fields["city"] = forms.CharField(
widget=forms.TextInput(attrs={"id": "txtSearch"}))
self.fields["city"].label = "City Name"
def clean(self):
cleaned_data = super(MovieForm, self).clean()
cleaned_data['city'] = RegionData.objects.get(
bms_city=cleaned_data['city'])
class Meta:
model = TaskList
exclude = ("username", "task_completed", "notified", "movie_found",)
|
from django import forms
from django.conf import settings
from moviealert.base.widgets import CalendarWidget
from .models import TaskList, RegionData
class MovieForm(forms.ModelForm):
def __init__(self, *args, **kwargs):
super(MovieForm, self).__init__(*args, **kwargs)
self.fields['movie_date'] = forms.DateField(
widget=CalendarWidget(attrs={"readonly": "readonly",
"style": "background:white;"}),
input_formats=settings.ALLOWED_DATE_FORMAT)
self.fields["city"] = forms.CharField(
widget=forms.TextInput(attrs={"id": "txtSearch"}))
self.fields["city"].label = "City Name"
def clean(self):
cleaned_data = super(MovieForm, self).clean()
try:
cleaned_data['city'] = RegionData.objects.get(
bms_city=cleaned_data['city'])
except RegionData.DoesNotExist:
self.add_error("city",
"Select only values from autocomplete!")
class Meta:
model = TaskList
exclude = ("username", "task_completed", "notified", "movie_found",)
|
Disable entry of cities outside of database.
|
Disable entry of cities outside of database.
Add a try-except to prevent entry of city name which is not in the database.
|
Python
|
mit
|
iAmMrinal0/django_moviealert,iAmMrinal0/django_moviealert,iAmMrinal0/django_moviealert
|
from django import forms
from django.conf import settings
from moviealert.base.widgets import CalendarWidget
from .models import TaskList, RegionData
class MovieForm(forms.ModelForm):
def __init__(self, *args, **kwargs):
super(MovieForm, self).__init__(*args, **kwargs)
self.fields['movie_date'] = forms.DateField(
widget=CalendarWidget(attrs={"readonly": "readonly",
"style": "background:white;"}),
input_formats=settings.ALLOWED_DATE_FORMAT)
self.fields["city"] = forms.CharField(
widget=forms.TextInput(attrs={"id": "txtSearch"}))
self.fields["city"].label = "City Name"
def clean(self):
cleaned_data = super(MovieForm, self).clean()
cleaned_data['city'] = RegionData.objects.get(
bms_city=cleaned_data['city'])
class Meta:
model = TaskList
exclude = ("username", "task_completed", "notified", "movie_found",)
Disable entry of cities outside of database.
Add a try-except to prevent entry of city name which is not in the database.
|
from django import forms
from django.conf import settings
from moviealert.base.widgets import CalendarWidget
from .models import TaskList, RegionData
class MovieForm(forms.ModelForm):
def __init__(self, *args, **kwargs):
super(MovieForm, self).__init__(*args, **kwargs)
self.fields['movie_date'] = forms.DateField(
widget=CalendarWidget(attrs={"readonly": "readonly",
"style": "background:white;"}),
input_formats=settings.ALLOWED_DATE_FORMAT)
self.fields["city"] = forms.CharField(
widget=forms.TextInput(attrs={"id": "txtSearch"}))
self.fields["city"].label = "City Name"
def clean(self):
cleaned_data = super(MovieForm, self).clean()
try:
cleaned_data['city'] = RegionData.objects.get(
bms_city=cleaned_data['city'])
except RegionData.DoesNotExist:
self.add_error("city",
"Select only values from autocomplete!")
class Meta:
model = TaskList
exclude = ("username", "task_completed", "notified", "movie_found",)
|
<commit_before>from django import forms
from django.conf import settings
from moviealert.base.widgets import CalendarWidget
from .models import TaskList, RegionData
class MovieForm(forms.ModelForm):
def __init__(self, *args, **kwargs):
super(MovieForm, self).__init__(*args, **kwargs)
self.fields['movie_date'] = forms.DateField(
widget=CalendarWidget(attrs={"readonly": "readonly",
"style": "background:white;"}),
input_formats=settings.ALLOWED_DATE_FORMAT)
self.fields["city"] = forms.CharField(
widget=forms.TextInput(attrs={"id": "txtSearch"}))
self.fields["city"].label = "City Name"
def clean(self):
cleaned_data = super(MovieForm, self).clean()
cleaned_data['city'] = RegionData.objects.get(
bms_city=cleaned_data['city'])
class Meta:
model = TaskList
exclude = ("username", "task_completed", "notified", "movie_found",)
<commit_msg>Disable entry of cities outside of database.
Add a try-except to prevent entry of city name which is not in the database.<commit_after>
|
from django import forms
from django.conf import settings
from moviealert.base.widgets import CalendarWidget
from .models import TaskList, RegionData
class MovieForm(forms.ModelForm):
def __init__(self, *args, **kwargs):
super(MovieForm, self).__init__(*args, **kwargs)
self.fields['movie_date'] = forms.DateField(
widget=CalendarWidget(attrs={"readonly": "readonly",
"style": "background:white;"}),
input_formats=settings.ALLOWED_DATE_FORMAT)
self.fields["city"] = forms.CharField(
widget=forms.TextInput(attrs={"id": "txtSearch"}))
self.fields["city"].label = "City Name"
def clean(self):
cleaned_data = super(MovieForm, self).clean()
try:
cleaned_data['city'] = RegionData.objects.get(
bms_city=cleaned_data['city'])
except RegionData.DoesNotExist:
self.add_error("city",
"Select only values from autocomplete!")
class Meta:
model = TaskList
exclude = ("username", "task_completed", "notified", "movie_found",)
|
from django import forms
from django.conf import settings
from moviealert.base.widgets import CalendarWidget
from .models import TaskList, RegionData
class MovieForm(forms.ModelForm):
def __init__(self, *args, **kwargs):
super(MovieForm, self).__init__(*args, **kwargs)
self.fields['movie_date'] = forms.DateField(
widget=CalendarWidget(attrs={"readonly": "readonly",
"style": "background:white;"}),
input_formats=settings.ALLOWED_DATE_FORMAT)
self.fields["city"] = forms.CharField(
widget=forms.TextInput(attrs={"id": "txtSearch"}))
self.fields["city"].label = "City Name"
def clean(self):
cleaned_data = super(MovieForm, self).clean()
cleaned_data['city'] = RegionData.objects.get(
bms_city=cleaned_data['city'])
class Meta:
model = TaskList
exclude = ("username", "task_completed", "notified", "movie_found",)
Disable entry of cities outside of database.
Add a try-except to prevent entry of city name which is not in the database.from django import forms
from django.conf import settings
from moviealert.base.widgets import CalendarWidget
from .models import TaskList, RegionData
class MovieForm(forms.ModelForm):
def __init__(self, *args, **kwargs):
super(MovieForm, self).__init__(*args, **kwargs)
self.fields['movie_date'] = forms.DateField(
widget=CalendarWidget(attrs={"readonly": "readonly",
"style": "background:white;"}),
input_formats=settings.ALLOWED_DATE_FORMAT)
self.fields["city"] = forms.CharField(
widget=forms.TextInput(attrs={"id": "txtSearch"}))
self.fields["city"].label = "City Name"
def clean(self):
cleaned_data = super(MovieForm, self).clean()
try:
cleaned_data['city'] = RegionData.objects.get(
bms_city=cleaned_data['city'])
except RegionData.DoesNotExist:
self.add_error("city",
"Select only values from autocomplete!")
class Meta:
model = TaskList
exclude = ("username", "task_completed", "notified", "movie_found",)
|
<commit_before>from django import forms
from django.conf import settings
from moviealert.base.widgets import CalendarWidget
from .models import TaskList, RegionData
class MovieForm(forms.ModelForm):
def __init__(self, *args, **kwargs):
super(MovieForm, self).__init__(*args, **kwargs)
self.fields['movie_date'] = forms.DateField(
widget=CalendarWidget(attrs={"readonly": "readonly",
"style": "background:white;"}),
input_formats=settings.ALLOWED_DATE_FORMAT)
self.fields["city"] = forms.CharField(
widget=forms.TextInput(attrs={"id": "txtSearch"}))
self.fields["city"].label = "City Name"
def clean(self):
cleaned_data = super(MovieForm, self).clean()
cleaned_data['city'] = RegionData.objects.get(
bms_city=cleaned_data['city'])
class Meta:
model = TaskList
exclude = ("username", "task_completed", "notified", "movie_found",)
<commit_msg>Disable entry of cities outside of database.
Add a try-except to prevent entry of city name which is not in the database.<commit_after>from django import forms
from django.conf import settings
from moviealert.base.widgets import CalendarWidget
from .models import TaskList, RegionData
class MovieForm(forms.ModelForm):
def __init__(self, *args, **kwargs):
super(MovieForm, self).__init__(*args, **kwargs)
self.fields['movie_date'] = forms.DateField(
widget=CalendarWidget(attrs={"readonly": "readonly",
"style": "background:white;"}),
input_formats=settings.ALLOWED_DATE_FORMAT)
self.fields["city"] = forms.CharField(
widget=forms.TextInput(attrs={"id": "txtSearch"}))
self.fields["city"].label = "City Name"
def clean(self):
cleaned_data = super(MovieForm, self).clean()
try:
cleaned_data['city'] = RegionData.objects.get(
bms_city=cleaned_data['city'])
except RegionData.DoesNotExist:
self.add_error("city",
"Select only values from autocomplete!")
class Meta:
model = TaskList
exclude = ("username", "task_completed", "notified", "movie_found",)
|
802bc77aebd888aed033577847343259a1928cef
|
timeside/__init__.py
|
timeside/__init__.py
|
# -*- coding: utf-8 -*-
from __future__ import absolute_import
from . import api
from . import core
from . import decoder
from . import analyzer
from . import grapher
from . import encoder
__version__ = '0.5.5'
__all__ = ['api', 'core', 'decoder', 'analyzer', 'grapher', 'encoder']
def _discover_modules():
import sys
import pkgutil
import importlib
#pkg_path = os.path.abspath()
#__import__(pkg)
proc_modules = ['decoder', 'analyzer', 'encoder', 'grapher']
for module in proc_modules:
pkg = '.'.join([__name__, module])
importlib.import_module(pkg)
package = sys.modules[pkg]
prefix = pkg + "."
for importer, modname, ispkg in pkgutil.walk_packages(package.__path__,
prefix):
try:
importlib.import_module(modname)
#__import__(modname)
except ImportError as e:
if e.message.find('yaafelib'):
print 'No Yaafe'
elif e.message.find('aubio'):
print 'No aubio'
else:
raise e
_discover_modules()
|
# -*- coding: utf-8 -*-
from __future__ import absolute_import
from . import api
from . import core
from . import decoder
from . import analyzer
from . import grapher
from . import encoder
__version__ = '0.5.5'
__all__ = ['api', 'core', 'decoder', 'analyzer', 'grapher', 'encoder']
def _discover_modules():
import sys
import pkgutil
import importlib
#pkg_path = os.path.abspath()
#__import__(pkg)
proc_modules = ['decoder', 'analyzer', 'encoder', 'grapher']
for module in proc_modules:
pkg = '.'.join([__name__, module])
importlib.import_module(pkg)
package = sys.modules[pkg]
prefix = pkg + "."
for importer, modname, ispkg in pkgutil.walk_packages(package.__path__,
prefix):
try:
importlib.import_module(modname)
#__import__(modname)
except ImportError as e:
if e.message.count('yaafelib'):
print 'No Yaafe'
elif e.message.count('aubio'):
print 'No Aubio'
else:
raise e
_discover_modules()
|
Fix importError for Yaafe and Aubio
|
Fix importError for Yaafe and Aubio
|
Python
|
agpl-3.0
|
Parisson/TimeSide,Parisson/TimeSide,Parisson/TimeSide,Parisson/TimeSide,Parisson/TimeSide
|
# -*- coding: utf-8 -*-
from __future__ import absolute_import
from . import api
from . import core
from . import decoder
from . import analyzer
from . import grapher
from . import encoder
__version__ = '0.5.5'
__all__ = ['api', 'core', 'decoder', 'analyzer', 'grapher', 'encoder']
def _discover_modules():
import sys
import pkgutil
import importlib
#pkg_path = os.path.abspath()
#__import__(pkg)
proc_modules = ['decoder', 'analyzer', 'encoder', 'grapher']
for module in proc_modules:
pkg = '.'.join([__name__, module])
importlib.import_module(pkg)
package = sys.modules[pkg]
prefix = pkg + "."
for importer, modname, ispkg in pkgutil.walk_packages(package.__path__,
prefix):
try:
importlib.import_module(modname)
#__import__(modname)
except ImportError as e:
if e.message.find('yaafelib'):
print 'No Yaafe'
elif e.message.find('aubio'):
print 'No aubio'
else:
raise e
_discover_modules()
Fix importError for Yaafe and Aubio
|
# -*- coding: utf-8 -*-
from __future__ import absolute_import
from . import api
from . import core
from . import decoder
from . import analyzer
from . import grapher
from . import encoder
__version__ = '0.5.5'
__all__ = ['api', 'core', 'decoder', 'analyzer', 'grapher', 'encoder']
def _discover_modules():
import sys
import pkgutil
import importlib
#pkg_path = os.path.abspath()
#__import__(pkg)
proc_modules = ['decoder', 'analyzer', 'encoder', 'grapher']
for module in proc_modules:
pkg = '.'.join([__name__, module])
importlib.import_module(pkg)
package = sys.modules[pkg]
prefix = pkg + "."
for importer, modname, ispkg in pkgutil.walk_packages(package.__path__,
prefix):
try:
importlib.import_module(modname)
#__import__(modname)
except ImportError as e:
if e.message.count('yaafelib'):
print 'No Yaafe'
elif e.message.count('aubio'):
print 'No Aubio'
else:
raise e
_discover_modules()
|
<commit_before># -*- coding: utf-8 -*-
from __future__ import absolute_import
from . import api
from . import core
from . import decoder
from . import analyzer
from . import grapher
from . import encoder
__version__ = '0.5.5'
__all__ = ['api', 'core', 'decoder', 'analyzer', 'grapher', 'encoder']
def _discover_modules():
import sys
import pkgutil
import importlib
#pkg_path = os.path.abspath()
#__import__(pkg)
proc_modules = ['decoder', 'analyzer', 'encoder', 'grapher']
for module in proc_modules:
pkg = '.'.join([__name__, module])
importlib.import_module(pkg)
package = sys.modules[pkg]
prefix = pkg + "."
for importer, modname, ispkg in pkgutil.walk_packages(package.__path__,
prefix):
try:
importlib.import_module(modname)
#__import__(modname)
except ImportError as e:
if e.message.find('yaafelib'):
print 'No Yaafe'
elif e.message.find('aubio'):
print 'No aubio'
else:
raise e
_discover_modules()
<commit_msg>Fix importError for Yaafe and Aubio<commit_after>
|
# -*- coding: utf-8 -*-
from __future__ import absolute_import
from . import api
from . import core
from . import decoder
from . import analyzer
from . import grapher
from . import encoder
__version__ = '0.5.5'
__all__ = ['api', 'core', 'decoder', 'analyzer', 'grapher', 'encoder']
def _discover_modules():
import sys
import pkgutil
import importlib
#pkg_path = os.path.abspath()
#__import__(pkg)
proc_modules = ['decoder', 'analyzer', 'encoder', 'grapher']
for module in proc_modules:
pkg = '.'.join([__name__, module])
importlib.import_module(pkg)
package = sys.modules[pkg]
prefix = pkg + "."
for importer, modname, ispkg in pkgutil.walk_packages(package.__path__,
prefix):
try:
importlib.import_module(modname)
#__import__(modname)
except ImportError as e:
if e.message.count('yaafelib'):
print 'No Yaafe'
elif e.message.count('aubio'):
print 'No Aubio'
else:
raise e
_discover_modules()
|
# -*- coding: utf-8 -*-
from __future__ import absolute_import
from . import api
from . import core
from . import decoder
from . import analyzer
from . import grapher
from . import encoder
__version__ = '0.5.5'
__all__ = ['api', 'core', 'decoder', 'analyzer', 'grapher', 'encoder']
def _discover_modules():
import sys
import pkgutil
import importlib
#pkg_path = os.path.abspath()
#__import__(pkg)
proc_modules = ['decoder', 'analyzer', 'encoder', 'grapher']
for module in proc_modules:
pkg = '.'.join([__name__, module])
importlib.import_module(pkg)
package = sys.modules[pkg]
prefix = pkg + "."
for importer, modname, ispkg in pkgutil.walk_packages(package.__path__,
prefix):
try:
importlib.import_module(modname)
#__import__(modname)
except ImportError as e:
if e.message.find('yaafelib'):
print 'No Yaafe'
elif e.message.find('aubio'):
print 'No aubio'
else:
raise e
_discover_modules()
Fix importError for Yaafe and Aubio# -*- coding: utf-8 -*-
from __future__ import absolute_import
from . import api
from . import core
from . import decoder
from . import analyzer
from . import grapher
from . import encoder
__version__ = '0.5.5'
__all__ = ['api', 'core', 'decoder', 'analyzer', 'grapher', 'encoder']
def _discover_modules():
import sys
import pkgutil
import importlib
#pkg_path = os.path.abspath()
#__import__(pkg)
proc_modules = ['decoder', 'analyzer', 'encoder', 'grapher']
for module in proc_modules:
pkg = '.'.join([__name__, module])
importlib.import_module(pkg)
package = sys.modules[pkg]
prefix = pkg + "."
for importer, modname, ispkg in pkgutil.walk_packages(package.__path__,
prefix):
try:
importlib.import_module(modname)
#__import__(modname)
except ImportError as e:
if e.message.count('yaafelib'):
print 'No Yaafe'
elif e.message.count('aubio'):
print 'No Aubio'
else:
raise e
_discover_modules()
|
<commit_before># -*- coding: utf-8 -*-
from __future__ import absolute_import
from . import api
from . import core
from . import decoder
from . import analyzer
from . import grapher
from . import encoder
__version__ = '0.5.5'
__all__ = ['api', 'core', 'decoder', 'analyzer', 'grapher', 'encoder']
def _discover_modules():
import sys
import pkgutil
import importlib
#pkg_path = os.path.abspath()
#__import__(pkg)
proc_modules = ['decoder', 'analyzer', 'encoder', 'grapher']
for module in proc_modules:
pkg = '.'.join([__name__, module])
importlib.import_module(pkg)
package = sys.modules[pkg]
prefix = pkg + "."
for importer, modname, ispkg in pkgutil.walk_packages(package.__path__,
prefix):
try:
importlib.import_module(modname)
#__import__(modname)
except ImportError as e:
if e.message.find('yaafelib'):
print 'No Yaafe'
elif e.message.find('aubio'):
print 'No aubio'
else:
raise e
_discover_modules()
<commit_msg>Fix importError for Yaafe and Aubio<commit_after># -*- coding: utf-8 -*-
from __future__ import absolute_import
from . import api
from . import core
from . import decoder
from . import analyzer
from . import grapher
from . import encoder
__version__ = '0.5.5'
__all__ = ['api', 'core', 'decoder', 'analyzer', 'grapher', 'encoder']
def _discover_modules():
import sys
import pkgutil
import importlib
#pkg_path = os.path.abspath()
#__import__(pkg)
proc_modules = ['decoder', 'analyzer', 'encoder', 'grapher']
for module in proc_modules:
pkg = '.'.join([__name__, module])
importlib.import_module(pkg)
package = sys.modules[pkg]
prefix = pkg + "."
for importer, modname, ispkg in pkgutil.walk_packages(package.__path__,
prefix):
try:
importlib.import_module(modname)
#__import__(modname)
except ImportError as e:
if e.message.count('yaafelib'):
print 'No Yaafe'
elif e.message.count('aubio'):
print 'No Aubio'
else:
raise e
_discover_modules()
|
a5f4700349f19d50d0fbf25bab9c927f2e1b477a
|
examples/build.py
|
examples/build.py
|
#!/usr/bin/python
from fabricate import *
programs = ['create', 'read', 'update', 'delete', 'filter', 'nearest']
def build():
for program in programs:
sources = [program, 'clustergis']
compile(sources)
link(sources, program)
def compile(sources):
for source in sources:
run('mpicc -Wall -O3 `geos-config --cflags` -c ' + source + '.c')
def link(sources, program='a.out'):
objects = ' '.join(s + '.o' for s in sources)
run('mpicc -o ' + program + ' -Wall -O3 `geos-config --cflags` ' + objects + ' `geos-config --ldflags` -lgeos_c')
def clean():
autoclean()
main()
|
#!/usr/bin/python
from fabricate import *
programs = ['create', 'read', 'update', 'delete', 'filter', 'nearest']
def build():
for program in programs:
sources = [program, '../src/clustergis']
compile(sources)
link(sources, program)
def compile(sources):
for source in sources:
run('mpicc -Wall -O3 -I../src/ `geos-config --cflags` -c ' + source + '.c -o ' + source + '.o')
def link(sources, program='a.out'):
objects = ' '.join(s + '.o' for s in sources)
run('mpicc -o ' + program + ' -Wall -O3 `geos-config --cflags` ' + objects + ' `geos-config --ldflags` -lgeos_c')
def clean():
autoclean()
main()
|
Build script for examples now works
|
Build script for examples now works
|
Python
|
mit
|
nathankerr/clusterGIS,nathankerr/clusterGIS
|
#!/usr/bin/python
from fabricate import *
programs = ['create', 'read', 'update', 'delete', 'filter', 'nearest']
def build():
for program in programs:
sources = [program, 'clustergis']
compile(sources)
link(sources, program)
def compile(sources):
for source in sources:
run('mpicc -Wall -O3 `geos-config --cflags` -c ' + source + '.c')
def link(sources, program='a.out'):
objects = ' '.join(s + '.o' for s in sources)
run('mpicc -o ' + program + ' -Wall -O3 `geos-config --cflags` ' + objects + ' `geos-config --ldflags` -lgeos_c')
def clean():
autoclean()
main()
Build script for examples now works
|
#!/usr/bin/python
from fabricate import *
programs = ['create', 'read', 'update', 'delete', 'filter', 'nearest']
def build():
for program in programs:
sources = [program, '../src/clustergis']
compile(sources)
link(sources, program)
def compile(sources):
for source in sources:
run('mpicc -Wall -O3 -I../src/ `geos-config --cflags` -c ' + source + '.c -o ' + source + '.o')
def link(sources, program='a.out'):
objects = ' '.join(s + '.o' for s in sources)
run('mpicc -o ' + program + ' -Wall -O3 `geos-config --cflags` ' + objects + ' `geos-config --ldflags` -lgeos_c')
def clean():
autoclean()
main()
|
<commit_before>#!/usr/bin/python
from fabricate import *
programs = ['create', 'read', 'update', 'delete', 'filter', 'nearest']
def build():
for program in programs:
sources = [program, 'clustergis']
compile(sources)
link(sources, program)
def compile(sources):
for source in sources:
run('mpicc -Wall -O3 `geos-config --cflags` -c ' + source + '.c')
def link(sources, program='a.out'):
objects = ' '.join(s + '.o' for s in sources)
run('mpicc -o ' + program + ' -Wall -O3 `geos-config --cflags` ' + objects + ' `geos-config --ldflags` -lgeos_c')
def clean():
autoclean()
main()
<commit_msg>Build script for examples now works<commit_after>
|
#!/usr/bin/python
from fabricate import *
programs = ['create', 'read', 'update', 'delete', 'filter', 'nearest']
def build():
for program in programs:
sources = [program, '../src/clustergis']
compile(sources)
link(sources, program)
def compile(sources):
for source in sources:
run('mpicc -Wall -O3 -I../src/ `geos-config --cflags` -c ' + source + '.c -o ' + source + '.o')
def link(sources, program='a.out'):
objects = ' '.join(s + '.o' for s in sources)
run('mpicc -o ' + program + ' -Wall -O3 `geos-config --cflags` ' + objects + ' `geos-config --ldflags` -lgeos_c')
def clean():
autoclean()
main()
|
#!/usr/bin/python
from fabricate import *
programs = ['create', 'read', 'update', 'delete', 'filter', 'nearest']
def build():
for program in programs:
sources = [program, 'clustergis']
compile(sources)
link(sources, program)
def compile(sources):
for source in sources:
run('mpicc -Wall -O3 `geos-config --cflags` -c ' + source + '.c')
def link(sources, program='a.out'):
objects = ' '.join(s + '.o' for s in sources)
run('mpicc -o ' + program + ' -Wall -O3 `geos-config --cflags` ' + objects + ' `geos-config --ldflags` -lgeos_c')
def clean():
autoclean()
main()
Build script for examples now works#!/usr/bin/python
from fabricate import *
programs = ['create', 'read', 'update', 'delete', 'filter', 'nearest']
def build():
for program in programs:
sources = [program, '../src/clustergis']
compile(sources)
link(sources, program)
def compile(sources):
for source in sources:
run('mpicc -Wall -O3 -I../src/ `geos-config --cflags` -c ' + source + '.c -o ' + source + '.o')
def link(sources, program='a.out'):
objects = ' '.join(s + '.o' for s in sources)
run('mpicc -o ' + program + ' -Wall -O3 `geos-config --cflags` ' + objects + ' `geos-config --ldflags` -lgeos_c')
def clean():
autoclean()
main()
|
<commit_before>#!/usr/bin/python
from fabricate import *
programs = ['create', 'read', 'update', 'delete', 'filter', 'nearest']
def build():
for program in programs:
sources = [program, 'clustergis']
compile(sources)
link(sources, program)
def compile(sources):
for source in sources:
run('mpicc -Wall -O3 `geos-config --cflags` -c ' + source + '.c')
def link(sources, program='a.out'):
objects = ' '.join(s + '.o' for s in sources)
run('mpicc -o ' + program + ' -Wall -O3 `geos-config --cflags` ' + objects + ' `geos-config --ldflags` -lgeos_c')
def clean():
autoclean()
main()
<commit_msg>Build script for examples now works<commit_after>#!/usr/bin/python
from fabricate import *
programs = ['create', 'read', 'update', 'delete', 'filter', 'nearest']
def build():
for program in programs:
sources = [program, '../src/clustergis']
compile(sources)
link(sources, program)
def compile(sources):
for source in sources:
run('mpicc -Wall -O3 -I../src/ `geos-config --cflags` -c ' + source + '.c -o ' + source + '.o')
def link(sources, program='a.out'):
objects = ' '.join(s + '.o' for s in sources)
run('mpicc -o ' + program + ' -Wall -O3 `geos-config --cflags` ' + objects + ' `geos-config --ldflags` -lgeos_c')
def clean():
autoclean()
main()
|
bd2c87809d98fe89064bd7e8c7cc69c567095d00
|
taipan/objective/__init__.py
|
taipan/objective/__init__.py
|
"""
Object-oriented programming utilities.
"""
import inspect
from taipan._compat import IS_PY26, IS_PY3
from taipan.functional import ensure_callable
from taipan.strings import is_string
__all__ = ['is_internal', 'is_magic']
def is_internal(member):
"""Checks whether given class/instance member, or its name, is internal."""
name = _get_member_name(member)
return name.startswith('_') and not is_magic(name)
def is_magic(member):
"""Checks whether given class/instance member, or its name, is "magic".
Magic fields and methods have names that begin and end
with double underscores, such ``__hash__`` or ``__eq__``.
"""
name = _get_member_name(member)
return len(name) > 4 and name.startswith('__') and name.endswith('__')
# Utility functions
def _get_member_name(member):
if is_string(member):
return member
# Python has no "field declaration" objects, so the only valid
# class or instance member is actually a method
ensure_method(member)
return member.__name__
def _get_first_arg_name(function):
argnames, _, _, _ = inspect.getargspec(function)
return argnames[0] if argnames else None
from .base import *
from .methods import *
from .modifiers import *
|
"""
Object-oriented programming utilities.
"""
import inspect
from taipan.functional import ensure_callable
from taipan.strings import is_string
__all__ = ['is_internal', 'is_magic']
def is_internal(member):
"""Checks whether given class/instance member, or its name, is internal."""
name = _get_member_name(member)
return name.startswith('_') and not is_magic(name)
def is_magic(member):
"""Checks whether given class/instance member, or its name, is "magic".
Magic fields and methods have names that begin and end
with double underscores, such ``__hash__`` or ``__eq__``.
"""
name = _get_member_name(member)
return len(name) > 4 and name.startswith('__') and name.endswith('__')
# Utility functions
def _get_member_name(member):
if is_string(member):
return member
# Python has no "field declaration" objects, so the only valid
# class or instance member is actually a method
from taipan.objective.methods import ensure_method
ensure_method(member)
return member.__name__
def _get_first_arg_name(function):
argnames, _, _, _ = inspect.getargspec(function)
return argnames[0] if argnames else None
from .base import *
from .methods import *
from .modifiers import *
|
Fix a bug in .objective utility function
|
Fix a bug in .objective utility function
|
Python
|
bsd-2-clause
|
Xion/taipan
|
"""
Object-oriented programming utilities.
"""
import inspect
from taipan._compat import IS_PY26, IS_PY3
from taipan.functional import ensure_callable
from taipan.strings import is_string
__all__ = ['is_internal', 'is_magic']
def is_internal(member):
"""Checks whether given class/instance member, or its name, is internal."""
name = _get_member_name(member)
return name.startswith('_') and not is_magic(name)
def is_magic(member):
"""Checks whether given class/instance member, or its name, is "magic".
Magic fields and methods have names that begin and end
with double underscores, such ``__hash__`` or ``__eq__``.
"""
name = _get_member_name(member)
return len(name) > 4 and name.startswith('__') and name.endswith('__')
# Utility functions
def _get_member_name(member):
if is_string(member):
return member
# Python has no "field declaration" objects, so the only valid
# class or instance member is actually a method
ensure_method(member)
return member.__name__
def _get_first_arg_name(function):
argnames, _, _, _ = inspect.getargspec(function)
return argnames[0] if argnames else None
from .base import *
from .methods import *
from .modifiers import *
Fix a bug in .objective utility function
|
"""
Object-oriented programming utilities.
"""
import inspect
from taipan.functional import ensure_callable
from taipan.strings import is_string
__all__ = ['is_internal', 'is_magic']
def is_internal(member):
"""Checks whether given class/instance member, or its name, is internal."""
name = _get_member_name(member)
return name.startswith('_') and not is_magic(name)
def is_magic(member):
"""Checks whether given class/instance member, or its name, is "magic".
Magic fields and methods have names that begin and end
with double underscores, such ``__hash__`` or ``__eq__``.
"""
name = _get_member_name(member)
return len(name) > 4 and name.startswith('__') and name.endswith('__')
# Utility functions
def _get_member_name(member):
if is_string(member):
return member
# Python has no "field declaration" objects, so the only valid
# class or instance member is actually a method
from taipan.objective.methods import ensure_method
ensure_method(member)
return member.__name__
def _get_first_arg_name(function):
argnames, _, _, _ = inspect.getargspec(function)
return argnames[0] if argnames else None
from .base import *
from .methods import *
from .modifiers import *
|
<commit_before>"""
Object-oriented programming utilities.
"""
import inspect
from taipan._compat import IS_PY26, IS_PY3
from taipan.functional import ensure_callable
from taipan.strings import is_string
__all__ = ['is_internal', 'is_magic']
def is_internal(member):
"""Checks whether given class/instance member, or its name, is internal."""
name = _get_member_name(member)
return name.startswith('_') and not is_magic(name)
def is_magic(member):
"""Checks whether given class/instance member, or its name, is "magic".
Magic fields and methods have names that begin and end
with double underscores, such ``__hash__`` or ``__eq__``.
"""
name = _get_member_name(member)
return len(name) > 4 and name.startswith('__') and name.endswith('__')
# Utility functions
def _get_member_name(member):
if is_string(member):
return member
# Python has no "field declaration" objects, so the only valid
# class or instance member is actually a method
ensure_method(member)
return member.__name__
def _get_first_arg_name(function):
argnames, _, _, _ = inspect.getargspec(function)
return argnames[0] if argnames else None
from .base import *
from .methods import *
from .modifiers import *
<commit_msg>Fix a bug in .objective utility function<commit_after>
|
"""
Object-oriented programming utilities.
"""
import inspect
from taipan.functional import ensure_callable
from taipan.strings import is_string
__all__ = ['is_internal', 'is_magic']
def is_internal(member):
"""Checks whether given class/instance member, or its name, is internal."""
name = _get_member_name(member)
return name.startswith('_') and not is_magic(name)
def is_magic(member):
"""Checks whether given class/instance member, or its name, is "magic".
Magic fields and methods have names that begin and end
with double underscores, such ``__hash__`` or ``__eq__``.
"""
name = _get_member_name(member)
return len(name) > 4 and name.startswith('__') and name.endswith('__')
# Utility functions
def _get_member_name(member):
if is_string(member):
return member
# Python has no "field declaration" objects, so the only valid
# class or instance member is actually a method
from taipan.objective.methods import ensure_method
ensure_method(member)
return member.__name__
def _get_first_arg_name(function):
argnames, _, _, _ = inspect.getargspec(function)
return argnames[0] if argnames else None
from .base import *
from .methods import *
from .modifiers import *
|
"""
Object-oriented programming utilities.
"""
import inspect
from taipan._compat import IS_PY26, IS_PY3
from taipan.functional import ensure_callable
from taipan.strings import is_string
__all__ = ['is_internal', 'is_magic']
def is_internal(member):
"""Checks whether given class/instance member, or its name, is internal."""
name = _get_member_name(member)
return name.startswith('_') and not is_magic(name)
def is_magic(member):
"""Checks whether given class/instance member, or its name, is "magic".
Magic fields and methods have names that begin and end
with double underscores, such ``__hash__`` or ``__eq__``.
"""
name = _get_member_name(member)
return len(name) > 4 and name.startswith('__') and name.endswith('__')
# Utility functions
def _get_member_name(member):
if is_string(member):
return member
# Python has no "field declaration" objects, so the only valid
# class or instance member is actually a method
ensure_method(member)
return member.__name__
def _get_first_arg_name(function):
argnames, _, _, _ = inspect.getargspec(function)
return argnames[0] if argnames else None
from .base import *
from .methods import *
from .modifiers import *
Fix a bug in .objective utility function"""
Object-oriented programming utilities.
"""
import inspect
from taipan.functional import ensure_callable
from taipan.strings import is_string
__all__ = ['is_internal', 'is_magic']
def is_internal(member):
"""Checks whether given class/instance member, or its name, is internal."""
name = _get_member_name(member)
return name.startswith('_') and not is_magic(name)
def is_magic(member):
"""Checks whether given class/instance member, or its name, is "magic".
Magic fields and methods have names that begin and end
with double underscores, such ``__hash__`` or ``__eq__``.
"""
name = _get_member_name(member)
return len(name) > 4 and name.startswith('__') and name.endswith('__')
# Utility functions
def _get_member_name(member):
if is_string(member):
return member
# Python has no "field declaration" objects, so the only valid
# class or instance member is actually a method
from taipan.objective.methods import ensure_method
ensure_method(member)
return member.__name__
def _get_first_arg_name(function):
argnames, _, _, _ = inspect.getargspec(function)
return argnames[0] if argnames else None
from .base import *
from .methods import *
from .modifiers import *
|
<commit_before>"""
Object-oriented programming utilities.
"""
import inspect
from taipan._compat import IS_PY26, IS_PY3
from taipan.functional import ensure_callable
from taipan.strings import is_string
__all__ = ['is_internal', 'is_magic']
def is_internal(member):
"""Checks whether given class/instance member, or its name, is internal."""
name = _get_member_name(member)
return name.startswith('_') and not is_magic(name)
def is_magic(member):
"""Checks whether given class/instance member, or its name, is "magic".
Magic fields and methods have names that begin and end
with double underscores, such ``__hash__`` or ``__eq__``.
"""
name = _get_member_name(member)
return len(name) > 4 and name.startswith('__') and name.endswith('__')
# Utility functions
def _get_member_name(member):
if is_string(member):
return member
# Python has no "field declaration" objects, so the only valid
# class or instance member is actually a method
ensure_method(member)
return member.__name__
def _get_first_arg_name(function):
argnames, _, _, _ = inspect.getargspec(function)
return argnames[0] if argnames else None
from .base import *
from .methods import *
from .modifiers import *
<commit_msg>Fix a bug in .objective utility function<commit_after>"""
Object-oriented programming utilities.
"""
import inspect
from taipan.functional import ensure_callable
from taipan.strings import is_string
__all__ = ['is_internal', 'is_magic']
def is_internal(member):
"""Checks whether given class/instance member, or its name, is internal."""
name = _get_member_name(member)
return name.startswith('_') and not is_magic(name)
def is_magic(member):
"""Checks whether given class/instance member, or its name, is "magic".
Magic fields and methods have names that begin and end
with double underscores, such ``__hash__`` or ``__eq__``.
"""
name = _get_member_name(member)
return len(name) > 4 and name.startswith('__') and name.endswith('__')
# Utility functions
def _get_member_name(member):
if is_string(member):
return member
# Python has no "field declaration" objects, so the only valid
# class or instance member is actually a method
from taipan.objective.methods import ensure_method
ensure_method(member)
return member.__name__
def _get_first_arg_name(function):
argnames, _, _, _ = inspect.getargspec(function)
return argnames[0] if argnames else None
from .base import *
from .methods import *
from .modifiers import *
|
d74c82d31071d80c5433fce0ebc46a1145b00d7e
|
bin/burgers.py
|
bin/burgers.py
|
from wenohj.solver import Solver
import numpy as np
import matplotlib.pyplot as plt
def get_alpha(x, t, u, u_x_plus, u_x_minus):
max = np.zeros_like(x)
for i in range(len(x)):
if np.abs(u_x_plus[i] + 1.0) > np.abs(u_x_minus[i] + 1.0):
max[i] = np.abs(u_x_plus[i] + 1.0)
else:
max[i] = np.abs(u_x_minus[i] + 1.0)
return max
def flux(x, t, u, u_x):
return (u_x + 1)**2 / 2.0
lb = -1.0
rb = 1.0
ncells = 320
T = 3.5 / np.pi**2
s = Solver(lb, rb, ncells, flux, get_alpha, 'periodic', cfl=0.1)
x = s.get_x()
u0 = -np.cos(np.pi * x)
solution = s.solve(u0, T)
plt.plot(x, solution)
plt.show()
|
from wenohj.solver import Solver
import numpy as np
import matplotlib.pyplot as plt
def get_alpha(x, t, u, u_x_plus, u_x_minus):
f1 = np.abs(u_x_plus + 1.0)
f2 = np.abs(u_x_minus + 1.0)
return np.maximum(f1, f2)
def flux(x, t, u, u_x):
return (u_x + 1)**2 / 2.0
lb = -1.0
rb = 1.0
ncells = 320
T = 3.5 / np.pi**2
s = Solver(lb, rb, ncells, flux, get_alpha, 'periodic', cfl=0.1)
x = s.get_x()
u0 = -np.cos(np.pi * x)
solution = s.solve(u0, T)
plt.plot(x, solution)
plt.show()
|
Refactor get_alpha() to make it faster
|
Refactor get_alpha() to make it faster
Computations of alpha using for loop are very slow. I switch to usage
of element-wise numpy functions to make get_alpha() function faster.
|
Python
|
bsd-3-clause
|
kabanovdmitry/weno-hamilton-jacobi,dmitry-kabanov/weno-hamilton-jacobi
|
from wenohj.solver import Solver
import numpy as np
import matplotlib.pyplot as plt
def get_alpha(x, t, u, u_x_plus, u_x_minus):
max = np.zeros_like(x)
for i in range(len(x)):
if np.abs(u_x_plus[i] + 1.0) > np.abs(u_x_minus[i] + 1.0):
max[i] = np.abs(u_x_plus[i] + 1.0)
else:
max[i] = np.abs(u_x_minus[i] + 1.0)
return max
def flux(x, t, u, u_x):
return (u_x + 1)**2 / 2.0
lb = -1.0
rb = 1.0
ncells = 320
T = 3.5 / np.pi**2
s = Solver(lb, rb, ncells, flux, get_alpha, 'periodic', cfl=0.1)
x = s.get_x()
u0 = -np.cos(np.pi * x)
solution = s.solve(u0, T)
plt.plot(x, solution)
plt.show()
Refactor get_alpha() to make it faster
Computations of alpha using for loop are very slow. I switch to usage
of element-wise numpy functions to make get_alpha() function faster.
|
from wenohj.solver import Solver
import numpy as np
import matplotlib.pyplot as plt
def get_alpha(x, t, u, u_x_plus, u_x_minus):
f1 = np.abs(u_x_plus + 1.0)
f2 = np.abs(u_x_minus + 1.0)
return np.maximum(f1, f2)
def flux(x, t, u, u_x):
return (u_x + 1)**2 / 2.0
lb = -1.0
rb = 1.0
ncells = 320
T = 3.5 / np.pi**2
s = Solver(lb, rb, ncells, flux, get_alpha, 'periodic', cfl=0.1)
x = s.get_x()
u0 = -np.cos(np.pi * x)
solution = s.solve(u0, T)
plt.plot(x, solution)
plt.show()
|
<commit_before>from wenohj.solver import Solver
import numpy as np
import matplotlib.pyplot as plt
def get_alpha(x, t, u, u_x_plus, u_x_minus):
max = np.zeros_like(x)
for i in range(len(x)):
if np.abs(u_x_plus[i] + 1.0) > np.abs(u_x_minus[i] + 1.0):
max[i] = np.abs(u_x_plus[i] + 1.0)
else:
max[i] = np.abs(u_x_minus[i] + 1.0)
return max
def flux(x, t, u, u_x):
return (u_x + 1)**2 / 2.0
lb = -1.0
rb = 1.0
ncells = 320
T = 3.5 / np.pi**2
s = Solver(lb, rb, ncells, flux, get_alpha, 'periodic', cfl=0.1)
x = s.get_x()
u0 = -np.cos(np.pi * x)
solution = s.solve(u0, T)
plt.plot(x, solution)
plt.show()
<commit_msg>Refactor get_alpha() to make it faster
Computations of alpha using for loop are very slow. I switch to usage
of element-wise numpy functions to make get_alpha() function faster.<commit_after>
|
from wenohj.solver import Solver
import numpy as np
import matplotlib.pyplot as plt
def get_alpha(x, t, u, u_x_plus, u_x_minus):
f1 = np.abs(u_x_plus + 1.0)
f2 = np.abs(u_x_minus + 1.0)
return np.maximum(f1, f2)
def flux(x, t, u, u_x):
return (u_x + 1)**2 / 2.0
lb = -1.0
rb = 1.0
ncells = 320
T = 3.5 / np.pi**2
s = Solver(lb, rb, ncells, flux, get_alpha, 'periodic', cfl=0.1)
x = s.get_x()
u0 = -np.cos(np.pi * x)
solution = s.solve(u0, T)
plt.plot(x, solution)
plt.show()
|
from wenohj.solver import Solver
import numpy as np
import matplotlib.pyplot as plt
def get_alpha(x, t, u, u_x_plus, u_x_minus):
max = np.zeros_like(x)
for i in range(len(x)):
if np.abs(u_x_plus[i] + 1.0) > np.abs(u_x_minus[i] + 1.0):
max[i] = np.abs(u_x_plus[i] + 1.0)
else:
max[i] = np.abs(u_x_minus[i] + 1.0)
return max
def flux(x, t, u, u_x):
return (u_x + 1)**2 / 2.0
lb = -1.0
rb = 1.0
ncells = 320
T = 3.5 / np.pi**2
s = Solver(lb, rb, ncells, flux, get_alpha, 'periodic', cfl=0.1)
x = s.get_x()
u0 = -np.cos(np.pi * x)
solution = s.solve(u0, T)
plt.plot(x, solution)
plt.show()
Refactor get_alpha() to make it faster
Computations of alpha using for loop are very slow. I switch to usage
of element-wise numpy functions to make get_alpha() function faster.from wenohj.solver import Solver
import numpy as np
import matplotlib.pyplot as plt
def get_alpha(x, t, u, u_x_plus, u_x_minus):
f1 = np.abs(u_x_plus + 1.0)
f2 = np.abs(u_x_minus + 1.0)
return np.maximum(f1, f2)
def flux(x, t, u, u_x):
return (u_x + 1)**2 / 2.0
lb = -1.0
rb = 1.0
ncells = 320
T = 3.5 / np.pi**2
s = Solver(lb, rb, ncells, flux, get_alpha, 'periodic', cfl=0.1)
x = s.get_x()
u0 = -np.cos(np.pi * x)
solution = s.solve(u0, T)
plt.plot(x, solution)
plt.show()
|
<commit_before>from wenohj.solver import Solver
import numpy as np
import matplotlib.pyplot as plt
def get_alpha(x, t, u, u_x_plus, u_x_minus):
max = np.zeros_like(x)
for i in range(len(x)):
if np.abs(u_x_plus[i] + 1.0) > np.abs(u_x_minus[i] + 1.0):
max[i] = np.abs(u_x_plus[i] + 1.0)
else:
max[i] = np.abs(u_x_minus[i] + 1.0)
return max
def flux(x, t, u, u_x):
return (u_x + 1)**2 / 2.0
lb = -1.0
rb = 1.0
ncells = 320
T = 3.5 / np.pi**2
s = Solver(lb, rb, ncells, flux, get_alpha, 'periodic', cfl=0.1)
x = s.get_x()
u0 = -np.cos(np.pi * x)
solution = s.solve(u0, T)
plt.plot(x, solution)
plt.show()
<commit_msg>Refactor get_alpha() to make it faster
Computations of alpha using for loop are very slow. I switch to usage
of element-wise numpy functions to make get_alpha() function faster.<commit_after>from wenohj.solver import Solver
import numpy as np
import matplotlib.pyplot as plt
def get_alpha(x, t, u, u_x_plus, u_x_minus):
f1 = np.abs(u_x_plus + 1.0)
f2 = np.abs(u_x_minus + 1.0)
return np.maximum(f1, f2)
def flux(x, t, u, u_x):
return (u_x + 1)**2 / 2.0
lb = -1.0
rb = 1.0
ncells = 320
T = 3.5 / np.pi**2
s = Solver(lb, rb, ncells, flux, get_alpha, 'periodic', cfl=0.1)
x = s.get_x()
u0 = -np.cos(np.pi * x)
solution = s.solve(u0, T)
plt.plot(x, solution)
plt.show()
|
0e20a568ae10982f4886b546553c1caa41042faa
|
picoCTF-shell/shell_manager/problem_repo.py
|
picoCTF-shell/shell_manager/problem_repo.py
|
"""
Problem repository management for the shell manager.
"""
import spur, gzip
from shutil import copy2
from os.path import join
def local_update(repo_path, deb_paths=[]):
"""
Updates a local deb repository by copying debs and running scanpackages.
Args:
repo_path: the path to the local repository.
dep_paths: list of problem deb paths to copy.
"""
[copy2(deb_path, repo_path) for deb_path in deb_paths]
shell = spur.LocalShell()
result = shell.run(["dpkg-scanpackages", ".", "/dev/null"], cwd=repo_path)
packages_path = join(repo_path, "Packages.gz")
with gzip.open(packages_path, "wb") as packages:
packages.write(result.output)
print("Updated problem repository.")
|
"""
Problem repository management for the shell manager.
"""
import spur, gzip
from shutil import copy2
from os.path import join
def update_repo(args):
"""
Main entrypoint for repo update operations.
"""
if args.repo_type == "local":
local_update(args.repository, args.package_paths)
else:
remote_update(args.repository, args.package_paths)
def remote_update(repo_ui, deb_paths=[]):
"""
Pushes packages to a remote deb repository.
Args:
repo_uri: location of the repository.
deb_paths: list of problem deb paths to copy.
"""
pass
def local_update(repo_path, deb_paths=[]):
"""
Updates a local deb repository by copying debs and running scanpackages.
Args:
repo_path: the path to the local repository.
dep_paths: list of problem deb paths to copy.
"""
[copy2(deb_path, repo_path) for deb_path in deb_paths]
shell = spur.LocalShell()
result = shell.run(["dpkg-scanpackages", ".", "/dev/null"], cwd=repo_path)
packages_path = join(repo_path, "Packages.gz")
with gzip.open(packages_path, "wb") as packages:
packages.write(result.output)
print("Updated problem repository.")
|
Update repo entrypoint and remote_update stub.
|
Update repo entrypoint and remote_update stub.
|
Python
|
mit
|
royragsdale/picoCTF,picoCTF/picoCTF,royragsdale/picoCTF,royragsdale/picoCTF,picoCTF/picoCTF,royragsdale/picoCTF,royragsdale/picoCTF,picoCTF/picoCTF,royragsdale/picoCTF,picoCTF/picoCTF,royragsdale/picoCTF,picoCTF/picoCTF,picoCTF/picoCTF
|
"""
Problem repository management for the shell manager.
"""
import spur, gzip
from shutil import copy2
from os.path import join
def local_update(repo_path, deb_paths=[]):
"""
Updates a local deb repository by copying debs and running scanpackages.
Args:
repo_path: the path to the local repository.
dep_paths: list of problem deb paths to copy.
"""
[copy2(deb_path, repo_path) for deb_path in deb_paths]
shell = spur.LocalShell()
result = shell.run(["dpkg-scanpackages", ".", "/dev/null"], cwd=repo_path)
packages_path = join(repo_path, "Packages.gz")
with gzip.open(packages_path, "wb") as packages:
packages.write(result.output)
print("Updated problem repository.")
Update repo entrypoint and remote_update stub.
|
"""
Problem repository management for the shell manager.
"""
import spur, gzip
from shutil import copy2
from os.path import join
def update_repo(args):
"""
Main entrypoint for repo update operations.
"""
if args.repo_type == "local":
local_update(args.repository, args.package_paths)
else:
remote_update(args.repository, args.package_paths)
def remote_update(repo_ui, deb_paths=[]):
"""
Pushes packages to a remote deb repository.
Args:
repo_uri: location of the repository.
deb_paths: list of problem deb paths to copy.
"""
pass
def local_update(repo_path, deb_paths=[]):
"""
Updates a local deb repository by copying debs and running scanpackages.
Args:
repo_path: the path to the local repository.
dep_paths: list of problem deb paths to copy.
"""
[copy2(deb_path, repo_path) for deb_path in deb_paths]
shell = spur.LocalShell()
result = shell.run(["dpkg-scanpackages", ".", "/dev/null"], cwd=repo_path)
packages_path = join(repo_path, "Packages.gz")
with gzip.open(packages_path, "wb") as packages:
packages.write(result.output)
print("Updated problem repository.")
|
<commit_before>"""
Problem repository management for the shell manager.
"""
import spur, gzip
from shutil import copy2
from os.path import join
def local_update(repo_path, deb_paths=[]):
"""
Updates a local deb repository by copying debs and running scanpackages.
Args:
repo_path: the path to the local repository.
dep_paths: list of problem deb paths to copy.
"""
[copy2(deb_path, repo_path) for deb_path in deb_paths]
shell = spur.LocalShell()
result = shell.run(["dpkg-scanpackages", ".", "/dev/null"], cwd=repo_path)
packages_path = join(repo_path, "Packages.gz")
with gzip.open(packages_path, "wb") as packages:
packages.write(result.output)
print("Updated problem repository.")
<commit_msg>Update repo entrypoint and remote_update stub.<commit_after>
|
"""
Problem repository management for the shell manager.
"""
import spur, gzip
from shutil import copy2
from os.path import join
def update_repo(args):
"""
Main entrypoint for repo update operations.
"""
if args.repo_type == "local":
local_update(args.repository, args.package_paths)
else:
remote_update(args.repository, args.package_paths)
def remote_update(repo_ui, deb_paths=[]):
"""
Pushes packages to a remote deb repository.
Args:
repo_uri: location of the repository.
deb_paths: list of problem deb paths to copy.
"""
pass
def local_update(repo_path, deb_paths=[]):
"""
Updates a local deb repository by copying debs and running scanpackages.
Args:
repo_path: the path to the local repository.
dep_paths: list of problem deb paths to copy.
"""
[copy2(deb_path, repo_path) for deb_path in deb_paths]
shell = spur.LocalShell()
result = shell.run(["dpkg-scanpackages", ".", "/dev/null"], cwd=repo_path)
packages_path = join(repo_path, "Packages.gz")
with gzip.open(packages_path, "wb") as packages:
packages.write(result.output)
print("Updated problem repository.")
|
"""
Problem repository management for the shell manager.
"""
import spur, gzip
from shutil import copy2
from os.path import join
def local_update(repo_path, deb_paths=[]):
"""
Updates a local deb repository by copying debs and running scanpackages.
Args:
repo_path: the path to the local repository.
dep_paths: list of problem deb paths to copy.
"""
[copy2(deb_path, repo_path) for deb_path in deb_paths]
shell = spur.LocalShell()
result = shell.run(["dpkg-scanpackages", ".", "/dev/null"], cwd=repo_path)
packages_path = join(repo_path, "Packages.gz")
with gzip.open(packages_path, "wb") as packages:
packages.write(result.output)
print("Updated problem repository.")
Update repo entrypoint and remote_update stub."""
Problem repository management for the shell manager.
"""
import spur, gzip
from shutil import copy2
from os.path import join
def update_repo(args):
"""
Main entrypoint for repo update operations.
"""
if args.repo_type == "local":
local_update(args.repository, args.package_paths)
else:
remote_update(args.repository, args.package_paths)
def remote_update(repo_ui, deb_paths=[]):
"""
Pushes packages to a remote deb repository.
Args:
repo_uri: location of the repository.
deb_paths: list of problem deb paths to copy.
"""
pass
def local_update(repo_path, deb_paths=[]):
"""
Updates a local deb repository by copying debs and running scanpackages.
Args:
repo_path: the path to the local repository.
dep_paths: list of problem deb paths to copy.
"""
[copy2(deb_path, repo_path) for deb_path in deb_paths]
shell = spur.LocalShell()
result = shell.run(["dpkg-scanpackages", ".", "/dev/null"], cwd=repo_path)
packages_path = join(repo_path, "Packages.gz")
with gzip.open(packages_path, "wb") as packages:
packages.write(result.output)
print("Updated problem repository.")
|
<commit_before>"""
Problem repository management for the shell manager.
"""
import spur, gzip
from shutil import copy2
from os.path import join
def local_update(repo_path, deb_paths=[]):
"""
Updates a local deb repository by copying debs and running scanpackages.
Args:
repo_path: the path to the local repository.
dep_paths: list of problem deb paths to copy.
"""
[copy2(deb_path, repo_path) for deb_path in deb_paths]
shell = spur.LocalShell()
result = shell.run(["dpkg-scanpackages", ".", "/dev/null"], cwd=repo_path)
packages_path = join(repo_path, "Packages.gz")
with gzip.open(packages_path, "wb") as packages:
packages.write(result.output)
print("Updated problem repository.")
<commit_msg>Update repo entrypoint and remote_update stub.<commit_after>"""
Problem repository management for the shell manager.
"""
import spur, gzip
from shutil import copy2
from os.path import join
def update_repo(args):
"""
Main entrypoint for repo update operations.
"""
if args.repo_type == "local":
local_update(args.repository, args.package_paths)
else:
remote_update(args.repository, args.package_paths)
def remote_update(repo_ui, deb_paths=[]):
"""
Pushes packages to a remote deb repository.
Args:
repo_uri: location of the repository.
deb_paths: list of problem deb paths to copy.
"""
pass
def local_update(repo_path, deb_paths=[]):
"""
Updates a local deb repository by copying debs and running scanpackages.
Args:
repo_path: the path to the local repository.
dep_paths: list of problem deb paths to copy.
"""
[copy2(deb_path, repo_path) for deb_path in deb_paths]
shell = spur.LocalShell()
result = shell.run(["dpkg-scanpackages", ".", "/dev/null"], cwd=repo_path)
packages_path = join(repo_path, "Packages.gz")
with gzip.open(packages_path, "wb") as packages:
packages.write(result.output)
print("Updated problem repository.")
|
7daed119551dfc259a0eda0224ac2a6b701c5c14
|
app/main/services/process_request_json.py
|
app/main/services/process_request_json.py
|
import six
from .query_builder import FILTER_FIELDS, TEXT_FIELDS
from .conversions import strip_and_lowercase
def process_values_for_matching(request_json, key):
values = request_json[key]
if isinstance(values, list):
return [strip_and_lowercase(value) for value in values]
elif isinstance(values, six.string_types):
return strip_and_lowercase(values)
return values
def convert_request_json_into_index_json(request_json):
filter_fields = [field for field in request_json if field in FILTER_FIELDS]
for field in filter_fields:
request_json["filter_" + field] = \
process_values_for_matching(request_json, field)
if field not in TEXT_FIELDS:
del request_json[field]
return request_json
|
import six
from .query_builder import FILTER_FIELDS, TEXT_FIELDS
from .conversions import strip_and_lowercase
FILTER_FIELDS_SET = set(FILTER_FIELDS)
TEXT_FIELDS_SET = set(TEXT_FIELDS)
def process_values_for_matching(values):
if isinstance(values, list):
return [strip_and_lowercase(value) for value in values]
elif isinstance(values, six.string_types):
return strip_and_lowercase(values)
return values
def convert_request_json_into_index_json(request_json):
index_json = {}
for field in request_json:
if field in FILTER_FIELDS_SET:
index_json["filter_" + field] = process_values_for_matching(
request_json[field]
)
if field in TEXT_FIELDS_SET:
index_json[field] = request_json[field]
return index_json
|
Drop any unknown request fields when converting into index document
|
Drop any unknown request fields when converting into index document
Previously, convert_request_json_into_index_json relied on the request
being sent through the dmutils.apiclient, which dropped any fields that
aren't supposed to be indexed. This means that dmutils contains a copy
of the filter and text fields lists.
Instead, new converting functions only keeps text and filter fields from
the request, so it can accept any service document for indexing.
|
Python
|
mit
|
RichardKnop/digitalmarketplace-search-api,alphagov/digitalmarketplace-search-api,RichardKnop/digitalmarketplace-search-api,alphagov/digitalmarketplace-search-api,RichardKnop/digitalmarketplace-search-api,RichardKnop/digitalmarketplace-search-api
|
import six
from .query_builder import FILTER_FIELDS, TEXT_FIELDS
from .conversions import strip_and_lowercase
def process_values_for_matching(request_json, key):
values = request_json[key]
if isinstance(values, list):
return [strip_and_lowercase(value) for value in values]
elif isinstance(values, six.string_types):
return strip_and_lowercase(values)
return values
def convert_request_json_into_index_json(request_json):
filter_fields = [field for field in request_json if field in FILTER_FIELDS]
for field in filter_fields:
request_json["filter_" + field] = \
process_values_for_matching(request_json, field)
if field not in TEXT_FIELDS:
del request_json[field]
return request_json
Drop any unknown request fields when converting into index document
Previously, convert_request_json_into_index_json relied on the request
being sent through the dmutils.apiclient, which dropped any fields that
aren't supposed to be indexed. This means that dmutils contains a copy
of the filter and text fields lists.
Instead, new converting functions only keeps text and filter fields from
the request, so it can accept any service document for indexing.
|
import six
from .query_builder import FILTER_FIELDS, TEXT_FIELDS
from .conversions import strip_and_lowercase
FILTER_FIELDS_SET = set(FILTER_FIELDS)
TEXT_FIELDS_SET = set(TEXT_FIELDS)
def process_values_for_matching(values):
if isinstance(values, list):
return [strip_and_lowercase(value) for value in values]
elif isinstance(values, six.string_types):
return strip_and_lowercase(values)
return values
def convert_request_json_into_index_json(request_json):
index_json = {}
for field in request_json:
if field in FILTER_FIELDS_SET:
index_json["filter_" + field] = process_values_for_matching(
request_json[field]
)
if field in TEXT_FIELDS_SET:
index_json[field] = request_json[field]
return index_json
|
<commit_before>import six
from .query_builder import FILTER_FIELDS, TEXT_FIELDS
from .conversions import strip_and_lowercase
def process_values_for_matching(request_json, key):
values = request_json[key]
if isinstance(values, list):
return [strip_and_lowercase(value) for value in values]
elif isinstance(values, six.string_types):
return strip_and_lowercase(values)
return values
def convert_request_json_into_index_json(request_json):
filter_fields = [field for field in request_json if field in FILTER_FIELDS]
for field in filter_fields:
request_json["filter_" + field] = \
process_values_for_matching(request_json, field)
if field not in TEXT_FIELDS:
del request_json[field]
return request_json
<commit_msg>Drop any unknown request fields when converting into index document
Previously, convert_request_json_into_index_json relied on the request
being sent through the dmutils.apiclient, which dropped any fields that
aren't supposed to be indexed. This means that dmutils contains a copy
of the filter and text fields lists.
Instead, new converting functions only keeps text and filter fields from
the request, so it can accept any service document for indexing.<commit_after>
|
import six
from .query_builder import FILTER_FIELDS, TEXT_FIELDS
from .conversions import strip_and_lowercase
FILTER_FIELDS_SET = set(FILTER_FIELDS)
TEXT_FIELDS_SET = set(TEXT_FIELDS)
def process_values_for_matching(values):
if isinstance(values, list):
return [strip_and_lowercase(value) for value in values]
elif isinstance(values, six.string_types):
return strip_and_lowercase(values)
return values
def convert_request_json_into_index_json(request_json):
index_json = {}
for field in request_json:
if field in FILTER_FIELDS_SET:
index_json["filter_" + field] = process_values_for_matching(
request_json[field]
)
if field in TEXT_FIELDS_SET:
index_json[field] = request_json[field]
return index_json
|
import six
from .query_builder import FILTER_FIELDS, TEXT_FIELDS
from .conversions import strip_and_lowercase
def process_values_for_matching(request_json, key):
values = request_json[key]
if isinstance(values, list):
return [strip_and_lowercase(value) for value in values]
elif isinstance(values, six.string_types):
return strip_and_lowercase(values)
return values
def convert_request_json_into_index_json(request_json):
filter_fields = [field for field in request_json if field in FILTER_FIELDS]
for field in filter_fields:
request_json["filter_" + field] = \
process_values_for_matching(request_json, field)
if field not in TEXT_FIELDS:
del request_json[field]
return request_json
Drop any unknown request fields when converting into index document
Previously, convert_request_json_into_index_json relied on the request
being sent through the dmutils.apiclient, which dropped any fields that
aren't supposed to be indexed. This means that dmutils contains a copy
of the filter and text fields lists.
Instead, new converting functions only keeps text and filter fields from
the request, so it can accept any service document for indexing.import six
from .query_builder import FILTER_FIELDS, TEXT_FIELDS
from .conversions import strip_and_lowercase
FILTER_FIELDS_SET = set(FILTER_FIELDS)
TEXT_FIELDS_SET = set(TEXT_FIELDS)
def process_values_for_matching(values):
if isinstance(values, list):
return [strip_and_lowercase(value) for value in values]
elif isinstance(values, six.string_types):
return strip_and_lowercase(values)
return values
def convert_request_json_into_index_json(request_json):
index_json = {}
for field in request_json:
if field in FILTER_FIELDS_SET:
index_json["filter_" + field] = process_values_for_matching(
request_json[field]
)
if field in TEXT_FIELDS_SET:
index_json[field] = request_json[field]
return index_json
|
<commit_before>import six
from .query_builder import FILTER_FIELDS, TEXT_FIELDS
from .conversions import strip_and_lowercase
def process_values_for_matching(request_json, key):
values = request_json[key]
if isinstance(values, list):
return [strip_and_lowercase(value) for value in values]
elif isinstance(values, six.string_types):
return strip_and_lowercase(values)
return values
def convert_request_json_into_index_json(request_json):
filter_fields = [field for field in request_json if field in FILTER_FIELDS]
for field in filter_fields:
request_json["filter_" + field] = \
process_values_for_matching(request_json, field)
if field not in TEXT_FIELDS:
del request_json[field]
return request_json
<commit_msg>Drop any unknown request fields when converting into index document
Previously, convert_request_json_into_index_json relied on the request
being sent through the dmutils.apiclient, which dropped any fields that
aren't supposed to be indexed. This means that dmutils contains a copy
of the filter and text fields lists.
Instead, new converting functions only keeps text and filter fields from
the request, so it can accept any service document for indexing.<commit_after>import six
from .query_builder import FILTER_FIELDS, TEXT_FIELDS
from .conversions import strip_and_lowercase
FILTER_FIELDS_SET = set(FILTER_FIELDS)
TEXT_FIELDS_SET = set(TEXT_FIELDS)
def process_values_for_matching(values):
if isinstance(values, list):
return [strip_and_lowercase(value) for value in values]
elif isinstance(values, six.string_types):
return strip_and_lowercase(values)
return values
def convert_request_json_into_index_json(request_json):
index_json = {}
for field in request_json:
if field in FILTER_FIELDS_SET:
index_json["filter_" + field] = process_values_for_matching(
request_json[field]
)
if field in TEXT_FIELDS_SET:
index_json[field] = request_json[field]
return index_json
|
1f6bec9df04e2717a347796080ed6bfcc9638f25
|
qipipe/staging/sarcoma_config.py
|
qipipe/staging/sarcoma_config.py
|
import os
import ConfigParser
_CFG_FILE = os.path.join(os.path.dirname(__file__), '..', '..', 'conf', 'sarcoma.cfg')
_CONFIG = ConfigParser()
_CONFIG.read(_CFG_FILE)
def sarcoma_location(pt_id):
return _CONFIG.get('Tumor Location', pt_id)
|
import os
import io
from ConfigParser import ConfigParser as Config
_CFG_FILE = os.path.join(os.path.dirname(__file__), '..', '..', 'conf', 'sarcoma.cfg')
def sarcoma_location(pt_id):
return sarcoma_config().get('Tumor Location', pt_id)
def sarcoma_config():
if not hasattr(sarcoma_config, 'instance'):
sarcoma_config.instance = Config()
sarcoma_config.instance.read(_CFG_FILE)
return sarcoma_config.instance
|
Move the singleton to a method attribute.
|
Move the singleton to a method attribute.
|
Python
|
bsd-2-clause
|
ohsu-qin/qipipe
|
import os
import ConfigParser
_CFG_FILE = os.path.join(os.path.dirname(__file__), '..', '..', 'conf', 'sarcoma.cfg')
_CONFIG = ConfigParser()
_CONFIG.read(_CFG_FILE)
def sarcoma_location(pt_id):
return _CONFIG.get('Tumor Location', pt_id)
Move the singleton to a method attribute.
|
import os
import io
from ConfigParser import ConfigParser as Config
_CFG_FILE = os.path.join(os.path.dirname(__file__), '..', '..', 'conf', 'sarcoma.cfg')
def sarcoma_location(pt_id):
return sarcoma_config().get('Tumor Location', pt_id)
def sarcoma_config():
if not hasattr(sarcoma_config, 'instance'):
sarcoma_config.instance = Config()
sarcoma_config.instance.read(_CFG_FILE)
return sarcoma_config.instance
|
<commit_before>import os
import ConfigParser
_CFG_FILE = os.path.join(os.path.dirname(__file__), '..', '..', 'conf', 'sarcoma.cfg')
_CONFIG = ConfigParser()
_CONFIG.read(_CFG_FILE)
def sarcoma_location(pt_id):
return _CONFIG.get('Tumor Location', pt_id)
<commit_msg>Move the singleton to a method attribute.<commit_after>
|
import os
import io
from ConfigParser import ConfigParser as Config
_CFG_FILE = os.path.join(os.path.dirname(__file__), '..', '..', 'conf', 'sarcoma.cfg')
def sarcoma_location(pt_id):
return sarcoma_config().get('Tumor Location', pt_id)
def sarcoma_config():
if not hasattr(sarcoma_config, 'instance'):
sarcoma_config.instance = Config()
sarcoma_config.instance.read(_CFG_FILE)
return sarcoma_config.instance
|
import os
import ConfigParser
_CFG_FILE = os.path.join(os.path.dirname(__file__), '..', '..', 'conf', 'sarcoma.cfg')
_CONFIG = ConfigParser()
_CONFIG.read(_CFG_FILE)
def sarcoma_location(pt_id):
return _CONFIG.get('Tumor Location', pt_id)
Move the singleton to a method attribute.import os
import io
from ConfigParser import ConfigParser as Config
_CFG_FILE = os.path.join(os.path.dirname(__file__), '..', '..', 'conf', 'sarcoma.cfg')
def sarcoma_location(pt_id):
return sarcoma_config().get('Tumor Location', pt_id)
def sarcoma_config():
if not hasattr(sarcoma_config, 'instance'):
sarcoma_config.instance = Config()
sarcoma_config.instance.read(_CFG_FILE)
return sarcoma_config.instance
|
<commit_before>import os
import ConfigParser
_CFG_FILE = os.path.join(os.path.dirname(__file__), '..', '..', 'conf', 'sarcoma.cfg')
_CONFIG = ConfigParser()
_CONFIG.read(_CFG_FILE)
def sarcoma_location(pt_id):
return _CONFIG.get('Tumor Location', pt_id)
<commit_msg>Move the singleton to a method attribute.<commit_after>import os
import io
from ConfigParser import ConfigParser as Config
_CFG_FILE = os.path.join(os.path.dirname(__file__), '..', '..', 'conf', 'sarcoma.cfg')
def sarcoma_location(pt_id):
return sarcoma_config().get('Tumor Location', pt_id)
def sarcoma_config():
if not hasattr(sarcoma_config, 'instance'):
sarcoma_config.instance = Config()
sarcoma_config.instance.read(_CFG_FILE)
return sarcoma_config.instance
|
266aadbde72c6d9fa9f26a5060f9aa6e86184015
|
app/timetables/admin.py
|
app/timetables/admin.py
|
from django.contrib import admin
from .models import *
admin.site.register(Weekday)
admin.site.register(Meal)
admin.site.register(MealOption)
admin.site.register(Course)
admin.site.register(Timetable)
admin.site.register(Dish)
admin.site.register(Admin)
|
from django.contrib import admin
from . import models
admin.site.register(models.Weekday)
admin.site.register(models.Meal)
admin.site.register(models.MealOption)
admin.site.register(models.Course)
admin.site.register(models.Timetable)
admin.site.register(models.Dish)
admin.site.register(models.Admin)
|
Change module import to pass flake8 tests
|
Change module import to pass flake8 tests
|
Python
|
mit
|
teamtaverna/core
|
from django.contrib import admin
from .models import *
admin.site.register(Weekday)
admin.site.register(Meal)
admin.site.register(MealOption)
admin.site.register(Course)
admin.site.register(Timetable)
admin.site.register(Dish)
admin.site.register(Admin)
Change module import to pass flake8 tests
|
from django.contrib import admin
from . import models
admin.site.register(models.Weekday)
admin.site.register(models.Meal)
admin.site.register(models.MealOption)
admin.site.register(models.Course)
admin.site.register(models.Timetable)
admin.site.register(models.Dish)
admin.site.register(models.Admin)
|
<commit_before>from django.contrib import admin
from .models import *
admin.site.register(Weekday)
admin.site.register(Meal)
admin.site.register(MealOption)
admin.site.register(Course)
admin.site.register(Timetable)
admin.site.register(Dish)
admin.site.register(Admin)
<commit_msg>Change module import to pass flake8 tests<commit_after>
|
from django.contrib import admin
from . import models
admin.site.register(models.Weekday)
admin.site.register(models.Meal)
admin.site.register(models.MealOption)
admin.site.register(models.Course)
admin.site.register(models.Timetable)
admin.site.register(models.Dish)
admin.site.register(models.Admin)
|
from django.contrib import admin
from .models import *
admin.site.register(Weekday)
admin.site.register(Meal)
admin.site.register(MealOption)
admin.site.register(Course)
admin.site.register(Timetable)
admin.site.register(Dish)
admin.site.register(Admin)
Change module import to pass flake8 testsfrom django.contrib import admin
from . import models
admin.site.register(models.Weekday)
admin.site.register(models.Meal)
admin.site.register(models.MealOption)
admin.site.register(models.Course)
admin.site.register(models.Timetable)
admin.site.register(models.Dish)
admin.site.register(models.Admin)
|
<commit_before>from django.contrib import admin
from .models import *
admin.site.register(Weekday)
admin.site.register(Meal)
admin.site.register(MealOption)
admin.site.register(Course)
admin.site.register(Timetable)
admin.site.register(Dish)
admin.site.register(Admin)
<commit_msg>Change module import to pass flake8 tests<commit_after>from django.contrib import admin
from . import models
admin.site.register(models.Weekday)
admin.site.register(models.Meal)
admin.site.register(models.MealOption)
admin.site.register(models.Course)
admin.site.register(models.Timetable)
admin.site.register(models.Dish)
admin.site.register(models.Admin)
|
630c823706e28e66306828d6c3001b6e3773ce90
|
ui/players/models.py
|
ui/players/models.py
|
from django.db import models
from django.contrib.auth.models import User
class Player(models.Model):
user = models.OneToOneField(User)
class Avatar(models.Model):
player = models.ForeignKey(User)
code = models.TextField()
|
from django.db import models
from django.contrib.auth.models import User
class Player(models.Model):
user = models.OneToOneField(User)
code = models.TextField()
class Avatar(models.Model):
player = models.ForeignKey(User)
|
Move code into player (if only for now)
|
Move code into player (if only for now)
|
Python
|
agpl-3.0
|
Spycho/aimmo,Spycho/aimmo,Spycho/aimmo,Spycho/aimmo
|
from django.db import models
from django.contrib.auth.models import User
class Player(models.Model):
user = models.OneToOneField(User)
class Avatar(models.Model):
player = models.ForeignKey(User)
code = models.TextField()Move code into player (if only for now)
|
from django.db import models
from django.contrib.auth.models import User
class Player(models.Model):
user = models.OneToOneField(User)
code = models.TextField()
class Avatar(models.Model):
player = models.ForeignKey(User)
|
<commit_before>from django.db import models
from django.contrib.auth.models import User
class Player(models.Model):
user = models.OneToOneField(User)
class Avatar(models.Model):
player = models.ForeignKey(User)
code = models.TextField()<commit_msg>Move code into player (if only for now)<commit_after>
|
from django.db import models
from django.contrib.auth.models import User
class Player(models.Model):
user = models.OneToOneField(User)
code = models.TextField()
class Avatar(models.Model):
player = models.ForeignKey(User)
|
from django.db import models
from django.contrib.auth.models import User
class Player(models.Model):
user = models.OneToOneField(User)
class Avatar(models.Model):
player = models.ForeignKey(User)
code = models.TextField()Move code into player (if only for now)from django.db import models
from django.contrib.auth.models import User
class Player(models.Model):
user = models.OneToOneField(User)
code = models.TextField()
class Avatar(models.Model):
player = models.ForeignKey(User)
|
<commit_before>from django.db import models
from django.contrib.auth.models import User
class Player(models.Model):
user = models.OneToOneField(User)
class Avatar(models.Model):
player = models.ForeignKey(User)
code = models.TextField()<commit_msg>Move code into player (if only for now)<commit_after>from django.db import models
from django.contrib.auth.models import User
class Player(models.Model):
user = models.OneToOneField(User)
code = models.TextField()
class Avatar(models.Model):
player = models.ForeignKey(User)
|
ff75a1ad744d93052bd9b496ff0896fcbd76c75e
|
Doc/lib/email-mime.py
|
Doc/lib/email-mime.py
|
# Import smtplib for the actual sending function
import smtplib
# Here are the email pacakge modules we'll need
from email.MIMEImage import MIMEImage
from email.MIMEMultipart import MIMEMultipart
COMMASPACE = ', '
# Create the container (outer) email message.
msg = MIMEMultipart()
msg['Subject'] = 'Our family reunion'
# me == the sender's email address
# family = the list of all recipients' email addresses
msg['From'] = me
msg['To'] = COMMASPACE.join(family)
msg.preamble = 'Our family reunion'
# Guarantees the message ends in a newline
msg.epilogue = ''
# Assume we know that the image files are all in PNG format
for file in pngfiles:
# Open the files in binary mode. Let the MIMEImage class automatically
# guess the specific image type.
fp = open(file, 'rb')
img = MIMEImage(fp.read())
fp.close()
msg.attach(img)
# Send the email via our own SMTP server.
s = smtplib.SMTP()
s.connect()
s.sendmail(me, family, msg.as_string())
s.close()
|
# Import smtplib for the actual sending function
import smtplib
# Here are the email package modules we'll need
from email.MIMEImage import MIMEImage
from email.MIMEMultipart import MIMEMultipart
COMMASPACE = ', '
# Create the container (outer) email message.
msg = MIMEMultipart()
msg['Subject'] = 'Our family reunion'
# me == the sender's email address
# family = the list of all recipients' email addresses
msg['From'] = me
msg['To'] = COMMASPACE.join(family)
msg.preamble = 'Our family reunion'
# Guarantees the message ends in a newline
msg.epilogue = ''
# Assume we know that the image files are all in PNG format
for file in pngfiles:
# Open the files in binary mode. Let the MIMEImage class automatically
# guess the specific image type.
fp = open(file, 'rb')
img = MIMEImage(fp.read())
fp.close()
msg.attach(img)
# Send the email via our own SMTP server.
s = smtplib.SMTP()
s.connect()
s.sendmail(me, family, msg.as_string())
s.close()
|
Fix typo in comment (reported on the pydotorg mailing list).
|
Fix typo in comment
(reported on the pydotorg mailing list).
|
Python
|
mit
|
sk-/python2.7-type-annotator,sk-/python2.7-type-annotator,sk-/python2.7-type-annotator
|
# Import smtplib for the actual sending function
import smtplib
# Here are the email pacakge modules we'll need
from email.MIMEImage import MIMEImage
from email.MIMEMultipart import MIMEMultipart
COMMASPACE = ', '
# Create the container (outer) email message.
msg = MIMEMultipart()
msg['Subject'] = 'Our family reunion'
# me == the sender's email address
# family = the list of all recipients' email addresses
msg['From'] = me
msg['To'] = COMMASPACE.join(family)
msg.preamble = 'Our family reunion'
# Guarantees the message ends in a newline
msg.epilogue = ''
# Assume we know that the image files are all in PNG format
for file in pngfiles:
# Open the files in binary mode. Let the MIMEImage class automatically
# guess the specific image type.
fp = open(file, 'rb')
img = MIMEImage(fp.read())
fp.close()
msg.attach(img)
# Send the email via our own SMTP server.
s = smtplib.SMTP()
s.connect()
s.sendmail(me, family, msg.as_string())
s.close()
Fix typo in comment
(reported on the pydotorg mailing list).
|
# Import smtplib for the actual sending function
import smtplib
# Here are the email package modules we'll need
from email.MIMEImage import MIMEImage
from email.MIMEMultipart import MIMEMultipart
COMMASPACE = ', '
# Create the container (outer) email message.
msg = MIMEMultipart()
msg['Subject'] = 'Our family reunion'
# me == the sender's email address
# family = the list of all recipients' email addresses
msg['From'] = me
msg['To'] = COMMASPACE.join(family)
msg.preamble = 'Our family reunion'
# Guarantees the message ends in a newline
msg.epilogue = ''
# Assume we know that the image files are all in PNG format
for file in pngfiles:
# Open the files in binary mode. Let the MIMEImage class automatically
# guess the specific image type.
fp = open(file, 'rb')
img = MIMEImage(fp.read())
fp.close()
msg.attach(img)
# Send the email via our own SMTP server.
s = smtplib.SMTP()
s.connect()
s.sendmail(me, family, msg.as_string())
s.close()
|
<commit_before># Import smtplib for the actual sending function
import smtplib
# Here are the email pacakge modules we'll need
from email.MIMEImage import MIMEImage
from email.MIMEMultipart import MIMEMultipart
COMMASPACE = ', '
# Create the container (outer) email message.
msg = MIMEMultipart()
msg['Subject'] = 'Our family reunion'
# me == the sender's email address
# family = the list of all recipients' email addresses
msg['From'] = me
msg['To'] = COMMASPACE.join(family)
msg.preamble = 'Our family reunion'
# Guarantees the message ends in a newline
msg.epilogue = ''
# Assume we know that the image files are all in PNG format
for file in pngfiles:
# Open the files in binary mode. Let the MIMEImage class automatically
# guess the specific image type.
fp = open(file, 'rb')
img = MIMEImage(fp.read())
fp.close()
msg.attach(img)
# Send the email via our own SMTP server.
s = smtplib.SMTP()
s.connect()
s.sendmail(me, family, msg.as_string())
s.close()
<commit_msg>Fix typo in comment
(reported on the pydotorg mailing list).<commit_after>
|
# Import smtplib for the actual sending function
import smtplib
# Here are the email package modules we'll need
from email.MIMEImage import MIMEImage
from email.MIMEMultipart import MIMEMultipart
COMMASPACE = ', '
# Create the container (outer) email message.
msg = MIMEMultipart()
msg['Subject'] = 'Our family reunion'
# me == the sender's email address
# family = the list of all recipients' email addresses
msg['From'] = me
msg['To'] = COMMASPACE.join(family)
msg.preamble = 'Our family reunion'
# Guarantees the message ends in a newline
msg.epilogue = ''
# Assume we know that the image files are all in PNG format
for file in pngfiles:
# Open the files in binary mode. Let the MIMEImage class automatically
# guess the specific image type.
fp = open(file, 'rb')
img = MIMEImage(fp.read())
fp.close()
msg.attach(img)
# Send the email via our own SMTP server.
s = smtplib.SMTP()
s.connect()
s.sendmail(me, family, msg.as_string())
s.close()
|
# Import smtplib for the actual sending function
import smtplib
# Here are the email pacakge modules we'll need
from email.MIMEImage import MIMEImage
from email.MIMEMultipart import MIMEMultipart
COMMASPACE = ', '
# Create the container (outer) email message.
msg = MIMEMultipart()
msg['Subject'] = 'Our family reunion'
# me == the sender's email address
# family = the list of all recipients' email addresses
msg['From'] = me
msg['To'] = COMMASPACE.join(family)
msg.preamble = 'Our family reunion'
# Guarantees the message ends in a newline
msg.epilogue = ''
# Assume we know that the image files are all in PNG format
for file in pngfiles:
# Open the files in binary mode. Let the MIMEImage class automatically
# guess the specific image type.
fp = open(file, 'rb')
img = MIMEImage(fp.read())
fp.close()
msg.attach(img)
# Send the email via our own SMTP server.
s = smtplib.SMTP()
s.connect()
s.sendmail(me, family, msg.as_string())
s.close()
Fix typo in comment
(reported on the pydotorg mailing list).# Import smtplib for the actual sending function
import smtplib
# Here are the email package modules we'll need
from email.MIMEImage import MIMEImage
from email.MIMEMultipart import MIMEMultipart
COMMASPACE = ', '
# Create the container (outer) email message.
msg = MIMEMultipart()
msg['Subject'] = 'Our family reunion'
# me == the sender's email address
# family = the list of all recipients' email addresses
msg['From'] = me
msg['To'] = COMMASPACE.join(family)
msg.preamble = 'Our family reunion'
# Guarantees the message ends in a newline
msg.epilogue = ''
# Assume we know that the image files are all in PNG format
for file in pngfiles:
# Open the files in binary mode. Let the MIMEImage class automatically
# guess the specific image type.
fp = open(file, 'rb')
img = MIMEImage(fp.read())
fp.close()
msg.attach(img)
# Send the email via our own SMTP server.
s = smtplib.SMTP()
s.connect()
s.sendmail(me, family, msg.as_string())
s.close()
|
<commit_before># Import smtplib for the actual sending function
import smtplib
# Here are the email pacakge modules we'll need
from email.MIMEImage import MIMEImage
from email.MIMEMultipart import MIMEMultipart
COMMASPACE = ', '
# Create the container (outer) email message.
msg = MIMEMultipart()
msg['Subject'] = 'Our family reunion'
# me == the sender's email address
# family = the list of all recipients' email addresses
msg['From'] = me
msg['To'] = COMMASPACE.join(family)
msg.preamble = 'Our family reunion'
# Guarantees the message ends in a newline
msg.epilogue = ''
# Assume we know that the image files are all in PNG format
for file in pngfiles:
# Open the files in binary mode. Let the MIMEImage class automatically
# guess the specific image type.
fp = open(file, 'rb')
img = MIMEImage(fp.read())
fp.close()
msg.attach(img)
# Send the email via our own SMTP server.
s = smtplib.SMTP()
s.connect()
s.sendmail(me, family, msg.as_string())
s.close()
<commit_msg>Fix typo in comment
(reported on the pydotorg mailing list).<commit_after># Import smtplib for the actual sending function
import smtplib
# Here are the email package modules we'll need
from email.MIMEImage import MIMEImage
from email.MIMEMultipart import MIMEMultipart
COMMASPACE = ', '
# Create the container (outer) email message.
msg = MIMEMultipart()
msg['Subject'] = 'Our family reunion'
# me == the sender's email address
# family = the list of all recipients' email addresses
msg['From'] = me
msg['To'] = COMMASPACE.join(family)
msg.preamble = 'Our family reunion'
# Guarantees the message ends in a newline
msg.epilogue = ''
# Assume we know that the image files are all in PNG format
for file in pngfiles:
# Open the files in binary mode. Let the MIMEImage class automatically
# guess the specific image type.
fp = open(file, 'rb')
img = MIMEImage(fp.read())
fp.close()
msg.attach(img)
# Send the email via our own SMTP server.
s = smtplib.SMTP()
s.connect()
s.sendmail(me, family, msg.as_string())
s.close()
|
26dbfe6033eadfd3eb3df40387599e1a2c541296
|
board.py
|
board.py
|
import numpy
"""
Board represents a four in a row game board.
Author: Isaac Arvestad
"""
class Board:
"""
Initializes the game with a certain number of rows
and columns.
"""
def __init__(self, rows, columns):
self.rows = rows
self.columns = columns
self.boardMatrix = numpy.zeros((rows, columns))
"""
Attempts to add a piece to a certain column. If the column is
full the move is illegal and false is returned, otherwise true
is returned.
"""
def addPiece(self, column, value):
"Check if column is full."
if self.boardMatrix.item(0,column) != 0:
return False
"Place piece."
for y in range(self.rows):
if y == self.rows - 1: # Reached bottom
self.boardMatrix.itemset((y, column), value)
elif self.boardMatrix.item(y + 1, column) == 0: # Next row is also empty
continue
else: # Next row is not empty
self.boardMatrix.itemset((y, column), value)
return True
|
import numpy
"""
Board represents a four in a row game board.
Author: Isaac Arvestad
"""
class Board:
"""
Initializes the game with a certain number of rows
and columns.
"""
def __init__(self, rows, columns):
self.rows = rows
self.columns = columns
self.boardMatrix = numpy.zeros((rows, columns))
"""
Attempts to add a piece to a certain column. If the column is
full the move is illegal and false is returned, otherwise true
is returned.
"""
def addPiece(self, column, value):
"Check if column is full."
if self.boardMatrix.item(0,column) != 0:
return False
"Place piece."
for y in range(self.rows):
if y == self.rows - 1: # Reached bottom
self.boardMatrix.itemset((y, column), value)
break
elif self.boardMatrix.item(y + 1, column) == 0: # Next row is also empty
continue
else: # Next row is not empty
self.boardMatrix.itemset((y, column), value)
break
return True
|
Fix bug of not stopping algorithm in time.
|
Fix bug of not stopping algorithm in time.
|
Python
|
mit
|
isaacarvestad/four-in-a-row
|
import numpy
"""
Board represents a four in a row game board.
Author: Isaac Arvestad
"""
class Board:
"""
Initializes the game with a certain number of rows
and columns.
"""
def __init__(self, rows, columns):
self.rows = rows
self.columns = columns
self.boardMatrix = numpy.zeros((rows, columns))
"""
Attempts to add a piece to a certain column. If the column is
full the move is illegal and false is returned, otherwise true
is returned.
"""
def addPiece(self, column, value):
"Check if column is full."
if self.boardMatrix.item(0,column) != 0:
return False
"Place piece."
for y in range(self.rows):
if y == self.rows - 1: # Reached bottom
self.boardMatrix.itemset((y, column), value)
elif self.boardMatrix.item(y + 1, column) == 0: # Next row is also empty
continue
else: # Next row is not empty
self.boardMatrix.itemset((y, column), value)
return True
Fix bug of not stopping algorithm in time.
|
import numpy
"""
Board represents a four in a row game board.
Author: Isaac Arvestad
"""
class Board:
"""
Initializes the game with a certain number of rows
and columns.
"""
def __init__(self, rows, columns):
self.rows = rows
self.columns = columns
self.boardMatrix = numpy.zeros((rows, columns))
"""
Attempts to add a piece to a certain column. If the column is
full the move is illegal and false is returned, otherwise true
is returned.
"""
def addPiece(self, column, value):
"Check if column is full."
if self.boardMatrix.item(0,column) != 0:
return False
"Place piece."
for y in range(self.rows):
if y == self.rows - 1: # Reached bottom
self.boardMatrix.itemset((y, column), value)
break
elif self.boardMatrix.item(y + 1, column) == 0: # Next row is also empty
continue
else: # Next row is not empty
self.boardMatrix.itemset((y, column), value)
break
return True
|
<commit_before>import numpy
"""
Board represents a four in a row game board.
Author: Isaac Arvestad
"""
class Board:
"""
Initializes the game with a certain number of rows
and columns.
"""
def __init__(self, rows, columns):
self.rows = rows
self.columns = columns
self.boardMatrix = numpy.zeros((rows, columns))
"""
Attempts to add a piece to a certain column. If the column is
full the move is illegal and false is returned, otherwise true
is returned.
"""
def addPiece(self, column, value):
"Check if column is full."
if self.boardMatrix.item(0,column) != 0:
return False
"Place piece."
for y in range(self.rows):
if y == self.rows - 1: # Reached bottom
self.boardMatrix.itemset((y, column), value)
elif self.boardMatrix.item(y + 1, column) == 0: # Next row is also empty
continue
else: # Next row is not empty
self.boardMatrix.itemset((y, column), value)
return True
<commit_msg>Fix bug of not stopping algorithm in time.<commit_after>
|
import numpy
"""
Board represents a four in a row game board.
Author: Isaac Arvestad
"""
class Board:
"""
Initializes the game with a certain number of rows
and columns.
"""
def __init__(self, rows, columns):
self.rows = rows
self.columns = columns
self.boardMatrix = numpy.zeros((rows, columns))
"""
Attempts to add a piece to a certain column. If the column is
full the move is illegal and false is returned, otherwise true
is returned.
"""
def addPiece(self, column, value):
"Check if column is full."
if self.boardMatrix.item(0,column) != 0:
return False
"Place piece."
for y in range(self.rows):
if y == self.rows - 1: # Reached bottom
self.boardMatrix.itemset((y, column), value)
break
elif self.boardMatrix.item(y + 1, column) == 0: # Next row is also empty
continue
else: # Next row is not empty
self.boardMatrix.itemset((y, column), value)
break
return True
|
import numpy
"""
Board represents a four in a row game board.
Author: Isaac Arvestad
"""
class Board:
"""
Initializes the game with a certain number of rows
and columns.
"""
def __init__(self, rows, columns):
self.rows = rows
self.columns = columns
self.boardMatrix = numpy.zeros((rows, columns))
"""
Attempts to add a piece to a certain column. If the column is
full the move is illegal and false is returned, otherwise true
is returned.
"""
def addPiece(self, column, value):
"Check if column is full."
if self.boardMatrix.item(0,column) != 0:
return False
"Place piece."
for y in range(self.rows):
if y == self.rows - 1: # Reached bottom
self.boardMatrix.itemset((y, column), value)
elif self.boardMatrix.item(y + 1, column) == 0: # Next row is also empty
continue
else: # Next row is not empty
self.boardMatrix.itemset((y, column), value)
return True
Fix bug of not stopping algorithm in time.import numpy
"""
Board represents a four in a row game board.
Author: Isaac Arvestad
"""
class Board:
"""
Initializes the game with a certain number of rows
and columns.
"""
def __init__(self, rows, columns):
self.rows = rows
self.columns = columns
self.boardMatrix = numpy.zeros((rows, columns))
"""
Attempts to add a piece to a certain column. If the column is
full the move is illegal and false is returned, otherwise true
is returned.
"""
def addPiece(self, column, value):
"Check if column is full."
if self.boardMatrix.item(0,column) != 0:
return False
"Place piece."
for y in range(self.rows):
if y == self.rows - 1: # Reached bottom
self.boardMatrix.itemset((y, column), value)
break
elif self.boardMatrix.item(y + 1, column) == 0: # Next row is also empty
continue
else: # Next row is not empty
self.boardMatrix.itemset((y, column), value)
break
return True
|
<commit_before>import numpy
"""
Board represents a four in a row game board.
Author: Isaac Arvestad
"""
class Board:
"""
Initializes the game with a certain number of rows
and columns.
"""
def __init__(self, rows, columns):
self.rows = rows
self.columns = columns
self.boardMatrix = numpy.zeros((rows, columns))
"""
Attempts to add a piece to a certain column. If the column is
full the move is illegal and false is returned, otherwise true
is returned.
"""
def addPiece(self, column, value):
"Check if column is full."
if self.boardMatrix.item(0,column) != 0:
return False
"Place piece."
for y in range(self.rows):
if y == self.rows - 1: # Reached bottom
self.boardMatrix.itemset((y, column), value)
elif self.boardMatrix.item(y + 1, column) == 0: # Next row is also empty
continue
else: # Next row is not empty
self.boardMatrix.itemset((y, column), value)
return True
<commit_msg>Fix bug of not stopping algorithm in time.<commit_after>import numpy
"""
Board represents a four in a row game board.
Author: Isaac Arvestad
"""
class Board:
"""
Initializes the game with a certain number of rows
and columns.
"""
def __init__(self, rows, columns):
self.rows = rows
self.columns = columns
self.boardMatrix = numpy.zeros((rows, columns))
"""
Attempts to add a piece to a certain column. If the column is
full the move is illegal and false is returned, otherwise true
is returned.
"""
def addPiece(self, column, value):
"Check if column is full."
if self.boardMatrix.item(0,column) != 0:
return False
"Place piece."
for y in range(self.rows):
if y == self.rows - 1: # Reached bottom
self.boardMatrix.itemset((y, column), value)
break
elif self.boardMatrix.item(y + 1, column) == 0: # Next row is also empty
continue
else: # Next row is not empty
self.boardMatrix.itemset((y, column), value)
break
return True
|
ad19f6b0ccfbbc01023349d43ffd85be2b26e847
|
examples/prompts/multi-column-autocompletion.py
|
examples/prompts/multi-column-autocompletion.py
|
#!/usr/bin/env python
"""
Similar to the autocompletion example. But display all the completions in multiple columns.
"""
from __future__ import unicode_literals
from prompt_toolkit.contrib.completers import WordCompleter
from prompt_toolkit.shortcuts import prompt, CompleteStyle
animal_completer = WordCompleter([
'alligator',
'ant',
'ape',
'bat',
'bear',
'beaver',
'bee',
'bison',
'butterfly',
'cat',
'chicken',
'crocodile',
'dinosaur',
'dog',
'dolphine',
'dove',
'duck',
'eagle',
'elephant',
'fish',
'goat',
'gorilla',
'kangoroo',
'leopard',
'lion',
'mouse',
'rabbit',
'rat',
'snake',
'spider',
'turkey',
'turtle',
], ignore_case=True)
def main():
text = prompt('Give some animals: ', completer=animal_completer,
complete_style=CompleteStyle.MULTI_COLUMN)
print('You said: %s' % text)
if __name__ == '__main__':
main()
|
#!/usr/bin/env python
"""
Similar to the autocompletion example. But display all the completions in multiple columns.
"""
from __future__ import unicode_literals
from prompt_toolkit.contrib.completers import WordCompleter
from prompt_toolkit.shortcuts import prompt, CompleteStyle
animal_completer = WordCompleter([
'alligator',
'ant',
'ape',
'bat',
'bear',
'beaver',
'bee',
'bison',
'butterfly',
'cat',
'chicken',
'crocodile',
'dinosaur',
'dog',
'dolphin',
'dove',
'duck',
'eagle',
'elephant',
'fish',
'goat',
'gorilla',
'kangaroo',
'leopard',
'lion',
'mouse',
'rabbit',
'rat',
'snake',
'spider',
'turkey',
'turtle',
], ignore_case=True)
def main():
text = prompt('Give some animals: ', completer=animal_completer,
complete_style=CompleteStyle.MULTI_COLUMN)
print('You said: %s' % text)
if __name__ == '__main__':
main()
|
Fix typos: `dolphine` -> `dolphin`, `kangoroo` -> `kangaroo`
|
Fix typos: `dolphine` -> `dolphin`, `kangoroo` -> `kangaroo`
|
Python
|
bsd-3-clause
|
jonathanslenders/python-prompt-toolkit
|
#!/usr/bin/env python
"""
Similar to the autocompletion example. But display all the completions in multiple columns.
"""
from __future__ import unicode_literals
from prompt_toolkit.contrib.completers import WordCompleter
from prompt_toolkit.shortcuts import prompt, CompleteStyle
animal_completer = WordCompleter([
'alligator',
'ant',
'ape',
'bat',
'bear',
'beaver',
'bee',
'bison',
'butterfly',
'cat',
'chicken',
'crocodile',
'dinosaur',
'dog',
'dolphine',
'dove',
'duck',
'eagle',
'elephant',
'fish',
'goat',
'gorilla',
'kangoroo',
'leopard',
'lion',
'mouse',
'rabbit',
'rat',
'snake',
'spider',
'turkey',
'turtle',
], ignore_case=True)
def main():
text = prompt('Give some animals: ', completer=animal_completer,
complete_style=CompleteStyle.MULTI_COLUMN)
print('You said: %s' % text)
if __name__ == '__main__':
main()
Fix typos: `dolphine` -> `dolphin`, `kangoroo` -> `kangaroo`
|
#!/usr/bin/env python
"""
Similar to the autocompletion example. But display all the completions in multiple columns.
"""
from __future__ import unicode_literals
from prompt_toolkit.contrib.completers import WordCompleter
from prompt_toolkit.shortcuts import prompt, CompleteStyle
animal_completer = WordCompleter([
'alligator',
'ant',
'ape',
'bat',
'bear',
'beaver',
'bee',
'bison',
'butterfly',
'cat',
'chicken',
'crocodile',
'dinosaur',
'dog',
'dolphin',
'dove',
'duck',
'eagle',
'elephant',
'fish',
'goat',
'gorilla',
'kangaroo',
'leopard',
'lion',
'mouse',
'rabbit',
'rat',
'snake',
'spider',
'turkey',
'turtle',
], ignore_case=True)
def main():
text = prompt('Give some animals: ', completer=animal_completer,
complete_style=CompleteStyle.MULTI_COLUMN)
print('You said: %s' % text)
if __name__ == '__main__':
main()
|
<commit_before>#!/usr/bin/env python
"""
Similar to the autocompletion example. But display all the completions in multiple columns.
"""
from __future__ import unicode_literals
from prompt_toolkit.contrib.completers import WordCompleter
from prompt_toolkit.shortcuts import prompt, CompleteStyle
animal_completer = WordCompleter([
'alligator',
'ant',
'ape',
'bat',
'bear',
'beaver',
'bee',
'bison',
'butterfly',
'cat',
'chicken',
'crocodile',
'dinosaur',
'dog',
'dolphine',
'dove',
'duck',
'eagle',
'elephant',
'fish',
'goat',
'gorilla',
'kangoroo',
'leopard',
'lion',
'mouse',
'rabbit',
'rat',
'snake',
'spider',
'turkey',
'turtle',
], ignore_case=True)
def main():
text = prompt('Give some animals: ', completer=animal_completer,
complete_style=CompleteStyle.MULTI_COLUMN)
print('You said: %s' % text)
if __name__ == '__main__':
main()
<commit_msg>Fix typos: `dolphine` -> `dolphin`, `kangoroo` -> `kangaroo`<commit_after>
|
#!/usr/bin/env python
"""
Similar to the autocompletion example. But display all the completions in multiple columns.
"""
from __future__ import unicode_literals
from prompt_toolkit.contrib.completers import WordCompleter
from prompt_toolkit.shortcuts import prompt, CompleteStyle
animal_completer = WordCompleter([
'alligator',
'ant',
'ape',
'bat',
'bear',
'beaver',
'bee',
'bison',
'butterfly',
'cat',
'chicken',
'crocodile',
'dinosaur',
'dog',
'dolphin',
'dove',
'duck',
'eagle',
'elephant',
'fish',
'goat',
'gorilla',
'kangaroo',
'leopard',
'lion',
'mouse',
'rabbit',
'rat',
'snake',
'spider',
'turkey',
'turtle',
], ignore_case=True)
def main():
text = prompt('Give some animals: ', completer=animal_completer,
complete_style=CompleteStyle.MULTI_COLUMN)
print('You said: %s' % text)
if __name__ == '__main__':
main()
|
#!/usr/bin/env python
"""
Similar to the autocompletion example. But display all the completions in multiple columns.
"""
from __future__ import unicode_literals
from prompt_toolkit.contrib.completers import WordCompleter
from prompt_toolkit.shortcuts import prompt, CompleteStyle
animal_completer = WordCompleter([
'alligator',
'ant',
'ape',
'bat',
'bear',
'beaver',
'bee',
'bison',
'butterfly',
'cat',
'chicken',
'crocodile',
'dinosaur',
'dog',
'dolphine',
'dove',
'duck',
'eagle',
'elephant',
'fish',
'goat',
'gorilla',
'kangoroo',
'leopard',
'lion',
'mouse',
'rabbit',
'rat',
'snake',
'spider',
'turkey',
'turtle',
], ignore_case=True)
def main():
text = prompt('Give some animals: ', completer=animal_completer,
complete_style=CompleteStyle.MULTI_COLUMN)
print('You said: %s' % text)
if __name__ == '__main__':
main()
Fix typos: `dolphine` -> `dolphin`, `kangoroo` -> `kangaroo`#!/usr/bin/env python
"""
Similar to the autocompletion example. But display all the completions in multiple columns.
"""
from __future__ import unicode_literals
from prompt_toolkit.contrib.completers import WordCompleter
from prompt_toolkit.shortcuts import prompt, CompleteStyle
animal_completer = WordCompleter([
'alligator',
'ant',
'ape',
'bat',
'bear',
'beaver',
'bee',
'bison',
'butterfly',
'cat',
'chicken',
'crocodile',
'dinosaur',
'dog',
'dolphin',
'dove',
'duck',
'eagle',
'elephant',
'fish',
'goat',
'gorilla',
'kangaroo',
'leopard',
'lion',
'mouse',
'rabbit',
'rat',
'snake',
'spider',
'turkey',
'turtle',
], ignore_case=True)
def main():
text = prompt('Give some animals: ', completer=animal_completer,
complete_style=CompleteStyle.MULTI_COLUMN)
print('You said: %s' % text)
if __name__ == '__main__':
main()
|
<commit_before>#!/usr/bin/env python
"""
Similar to the autocompletion example. But display all the completions in multiple columns.
"""
from __future__ import unicode_literals
from prompt_toolkit.contrib.completers import WordCompleter
from prompt_toolkit.shortcuts import prompt, CompleteStyle
animal_completer = WordCompleter([
'alligator',
'ant',
'ape',
'bat',
'bear',
'beaver',
'bee',
'bison',
'butterfly',
'cat',
'chicken',
'crocodile',
'dinosaur',
'dog',
'dolphine',
'dove',
'duck',
'eagle',
'elephant',
'fish',
'goat',
'gorilla',
'kangoroo',
'leopard',
'lion',
'mouse',
'rabbit',
'rat',
'snake',
'spider',
'turkey',
'turtle',
], ignore_case=True)
def main():
text = prompt('Give some animals: ', completer=animal_completer,
complete_style=CompleteStyle.MULTI_COLUMN)
print('You said: %s' % text)
if __name__ == '__main__':
main()
<commit_msg>Fix typos: `dolphine` -> `dolphin`, `kangoroo` -> `kangaroo`<commit_after>#!/usr/bin/env python
"""
Similar to the autocompletion example. But display all the completions in multiple columns.
"""
from __future__ import unicode_literals
from prompt_toolkit.contrib.completers import WordCompleter
from prompt_toolkit.shortcuts import prompt, CompleteStyle
animal_completer = WordCompleter([
'alligator',
'ant',
'ape',
'bat',
'bear',
'beaver',
'bee',
'bison',
'butterfly',
'cat',
'chicken',
'crocodile',
'dinosaur',
'dog',
'dolphin',
'dove',
'duck',
'eagle',
'elephant',
'fish',
'goat',
'gorilla',
'kangaroo',
'leopard',
'lion',
'mouse',
'rabbit',
'rat',
'snake',
'spider',
'turkey',
'turtle',
], ignore_case=True)
def main():
text = prompt('Give some animals: ', completer=animal_completer,
complete_style=CompleteStyle.MULTI_COLUMN)
print('You said: %s' % text)
if __name__ == '__main__':
main()
|
fdcfe40cd388a6f53db22af44fcfa10d7901f490
|
reviewboard/attachments/admin.py
|
reviewboard/attachments/admin.py
|
from django.contrib import admin
from django.utils.translation import ugettext_lazy as _
from reviewboard.attachments.models import FileAttachment
from reviewboard.reviews.models import FileAttachmentComment
class FileAttachmentAdmin(admin.ModelAdmin):
list_display = ('file', 'caption', 'mimetype',
'review_request_id')
list_display_links = ('file_attachment', 'caption')
search_fields = ('caption', 'mimetype')
def review_request_id(self, obj):
return obj.review_request.get().id
review_request_id.short_description = _('Review request ID')
class FileAttachmentCommentAdmin(admin.ModelAdmin):
list_display = ('text', 'file_attachment', 'review_request_id', 'timestamp')
list_filter = ('timestamp',)
search_fields = ('caption', 'file_attachment')
raw_id_fields = ('file', 'reply_to')
def review_request_id(self, obj):
return obj.review.get().review_request.id
review_request_id.short_description = _('Review request ID')
admin.site.register(FileAttachment, FileAttachmentAdmin)
admin.site.register(FileAttachmentComment, FileAttachmentCommentAdmin)
|
from django.contrib import admin
from django.utils.translation import ugettext_lazy as _
from reviewboard.attachments.models import FileAttachment
from reviewboard.reviews.models import FileAttachmentComment
class FileAttachmentAdmin(admin.ModelAdmin):
list_display = ('file', 'caption', 'mimetype',
'review_request_id')
list_display_links = ('file_attachment', 'caption')
search_fields = ('caption', 'mimetype')
def review_request_id(self, obj):
return obj.review_request.get().id
review_request_id.short_description = _('Review request ID')
class FileAttachmentCommentAdmin(admin.ModelAdmin):
list_display = ('text', 'file_attachment', 'review_request_id', 'timestamp')
list_filter = ('timestamp',)
search_fields = ('caption', 'file_attachment')
raw_id_fields = ('file_attachment', 'reply_to')
def review_request_id(self, obj):
return obj.review.get().review_request.id
review_request_id.short_description = _('Review request ID')
admin.site.register(FileAttachment, FileAttachmentAdmin)
admin.site.register(FileAttachmentComment, FileAttachmentCommentAdmin)
|
Fix another broken file attachment field.
|
Fix another broken file attachment field.
There was one more admin field for file attachments that was using an old
name. Now fixed.
|
Python
|
mit
|
chazy/reviewboard,custode/reviewboard,sgallagher/reviewboard,beol/reviewboard,Khan/reviewboard,chipx86/reviewboard,1tush/reviewboard,sgallagher/reviewboard,brennie/reviewboard,davidt/reviewboard,Khan/reviewboard,atagar/ReviewBoard,Khan/reviewboard,reviewboard/reviewboard,chazy/reviewboard,1tush/reviewboard,custode/reviewboard,beol/reviewboard,chazy/reviewboard,custode/reviewboard,atagar/ReviewBoard,bkochendorfer/reviewboard,1tush/reviewboard,bkochendorfer/reviewboard,atagar/ReviewBoard,atagar/ReviewBoard,davidt/reviewboard,1tush/reviewboard,KnowNo/reviewboard,reviewboard/reviewboard,beol/reviewboard,sgallagher/reviewboard,chazy/reviewboard,Khan/reviewboard,1tush/reviewboard,brennie/reviewboard,chazy/reviewboard,1tush/reviewboard,KnowNo/reviewboard,brennie/reviewboard,atagar/ReviewBoard,reviewboard/reviewboard,davidt/reviewboard,Khan/reviewboard,sgallagher/reviewboard,brennie/reviewboard,atagar/ReviewBoard,atagar/ReviewBoard,davidt/reviewboard,chazy/reviewboard,KnowNo/reviewboard,1tush/reviewboard,reviewboard/reviewboard,bkochendorfer/reviewboard,custode/reviewboard,atagar/ReviewBoard,Khan/reviewboard,Khan/reviewboard,KnowNo/reviewboard,chazy/reviewboard,atagar/ReviewBoard,beol/reviewboard,1tush/reviewboard,chipx86/reviewboard,chipx86/reviewboard,chazy/reviewboard,Khan/reviewboard,Khan/reviewboard,chipx86/reviewboard,chazy/reviewboard,1tush/reviewboard,bkochendorfer/reviewboard
|
from django.contrib import admin
from django.utils.translation import ugettext_lazy as _
from reviewboard.attachments.models import FileAttachment
from reviewboard.reviews.models import FileAttachmentComment
class FileAttachmentAdmin(admin.ModelAdmin):
list_display = ('file', 'caption', 'mimetype',
'review_request_id')
list_display_links = ('file_attachment', 'caption')
search_fields = ('caption', 'mimetype')
def review_request_id(self, obj):
return obj.review_request.get().id
review_request_id.short_description = _('Review request ID')
class FileAttachmentCommentAdmin(admin.ModelAdmin):
list_display = ('text', 'file_attachment', 'review_request_id', 'timestamp')
list_filter = ('timestamp',)
search_fields = ('caption', 'file_attachment')
raw_id_fields = ('file', 'reply_to')
def review_request_id(self, obj):
return obj.review.get().review_request.id
review_request_id.short_description = _('Review request ID')
admin.site.register(FileAttachment, FileAttachmentAdmin)
admin.site.register(FileAttachmentComment, FileAttachmentCommentAdmin)
Fix another broken file attachment field.
There was one more admin field for file attachments that was using an old
name. Now fixed.
|
from django.contrib import admin
from django.utils.translation import ugettext_lazy as _
from reviewboard.attachments.models import FileAttachment
from reviewboard.reviews.models import FileAttachmentComment
class FileAttachmentAdmin(admin.ModelAdmin):
list_display = ('file', 'caption', 'mimetype',
'review_request_id')
list_display_links = ('file_attachment', 'caption')
search_fields = ('caption', 'mimetype')
def review_request_id(self, obj):
return obj.review_request.get().id
review_request_id.short_description = _('Review request ID')
class FileAttachmentCommentAdmin(admin.ModelAdmin):
list_display = ('text', 'file_attachment', 'review_request_id', 'timestamp')
list_filter = ('timestamp',)
search_fields = ('caption', 'file_attachment')
raw_id_fields = ('file_attachment', 'reply_to')
def review_request_id(self, obj):
return obj.review.get().review_request.id
review_request_id.short_description = _('Review request ID')
admin.site.register(FileAttachment, FileAttachmentAdmin)
admin.site.register(FileAttachmentComment, FileAttachmentCommentAdmin)
|
<commit_before>from django.contrib import admin
from django.utils.translation import ugettext_lazy as _
from reviewboard.attachments.models import FileAttachment
from reviewboard.reviews.models import FileAttachmentComment
class FileAttachmentAdmin(admin.ModelAdmin):
list_display = ('file', 'caption', 'mimetype',
'review_request_id')
list_display_links = ('file_attachment', 'caption')
search_fields = ('caption', 'mimetype')
def review_request_id(self, obj):
return obj.review_request.get().id
review_request_id.short_description = _('Review request ID')
class FileAttachmentCommentAdmin(admin.ModelAdmin):
list_display = ('text', 'file_attachment', 'review_request_id', 'timestamp')
list_filter = ('timestamp',)
search_fields = ('caption', 'file_attachment')
raw_id_fields = ('file', 'reply_to')
def review_request_id(self, obj):
return obj.review.get().review_request.id
review_request_id.short_description = _('Review request ID')
admin.site.register(FileAttachment, FileAttachmentAdmin)
admin.site.register(FileAttachmentComment, FileAttachmentCommentAdmin)
<commit_msg>Fix another broken file attachment field.
There was one more admin field for file attachments that was using an old
name. Now fixed.<commit_after>
|
from django.contrib import admin
from django.utils.translation import ugettext_lazy as _
from reviewboard.attachments.models import FileAttachment
from reviewboard.reviews.models import FileAttachmentComment
class FileAttachmentAdmin(admin.ModelAdmin):
list_display = ('file', 'caption', 'mimetype',
'review_request_id')
list_display_links = ('file_attachment', 'caption')
search_fields = ('caption', 'mimetype')
def review_request_id(self, obj):
return obj.review_request.get().id
review_request_id.short_description = _('Review request ID')
class FileAttachmentCommentAdmin(admin.ModelAdmin):
list_display = ('text', 'file_attachment', 'review_request_id', 'timestamp')
list_filter = ('timestamp',)
search_fields = ('caption', 'file_attachment')
raw_id_fields = ('file_attachment', 'reply_to')
def review_request_id(self, obj):
return obj.review.get().review_request.id
review_request_id.short_description = _('Review request ID')
admin.site.register(FileAttachment, FileAttachmentAdmin)
admin.site.register(FileAttachmentComment, FileAttachmentCommentAdmin)
|
from django.contrib import admin
from django.utils.translation import ugettext_lazy as _
from reviewboard.attachments.models import FileAttachment
from reviewboard.reviews.models import FileAttachmentComment
class FileAttachmentAdmin(admin.ModelAdmin):
list_display = ('file', 'caption', 'mimetype',
'review_request_id')
list_display_links = ('file_attachment', 'caption')
search_fields = ('caption', 'mimetype')
def review_request_id(self, obj):
return obj.review_request.get().id
review_request_id.short_description = _('Review request ID')
class FileAttachmentCommentAdmin(admin.ModelAdmin):
list_display = ('text', 'file_attachment', 'review_request_id', 'timestamp')
list_filter = ('timestamp',)
search_fields = ('caption', 'file_attachment')
raw_id_fields = ('file', 'reply_to')
def review_request_id(self, obj):
return obj.review.get().review_request.id
review_request_id.short_description = _('Review request ID')
admin.site.register(FileAttachment, FileAttachmentAdmin)
admin.site.register(FileAttachmentComment, FileAttachmentCommentAdmin)
Fix another broken file attachment field.
There was one more admin field for file attachments that was using an old
name. Now fixed.from django.contrib import admin
from django.utils.translation import ugettext_lazy as _
from reviewboard.attachments.models import FileAttachment
from reviewboard.reviews.models import FileAttachmentComment
class FileAttachmentAdmin(admin.ModelAdmin):
list_display = ('file', 'caption', 'mimetype',
'review_request_id')
list_display_links = ('file_attachment', 'caption')
search_fields = ('caption', 'mimetype')
def review_request_id(self, obj):
return obj.review_request.get().id
review_request_id.short_description = _('Review request ID')
class FileAttachmentCommentAdmin(admin.ModelAdmin):
list_display = ('text', 'file_attachment', 'review_request_id', 'timestamp')
list_filter = ('timestamp',)
search_fields = ('caption', 'file_attachment')
raw_id_fields = ('file_attachment', 'reply_to')
def review_request_id(self, obj):
return obj.review.get().review_request.id
review_request_id.short_description = _('Review request ID')
admin.site.register(FileAttachment, FileAttachmentAdmin)
admin.site.register(FileAttachmentComment, FileAttachmentCommentAdmin)
|
<commit_before>from django.contrib import admin
from django.utils.translation import ugettext_lazy as _
from reviewboard.attachments.models import FileAttachment
from reviewboard.reviews.models import FileAttachmentComment
class FileAttachmentAdmin(admin.ModelAdmin):
list_display = ('file', 'caption', 'mimetype',
'review_request_id')
list_display_links = ('file_attachment', 'caption')
search_fields = ('caption', 'mimetype')
def review_request_id(self, obj):
return obj.review_request.get().id
review_request_id.short_description = _('Review request ID')
class FileAttachmentCommentAdmin(admin.ModelAdmin):
list_display = ('text', 'file_attachment', 'review_request_id', 'timestamp')
list_filter = ('timestamp',)
search_fields = ('caption', 'file_attachment')
raw_id_fields = ('file', 'reply_to')
def review_request_id(self, obj):
return obj.review.get().review_request.id
review_request_id.short_description = _('Review request ID')
admin.site.register(FileAttachment, FileAttachmentAdmin)
admin.site.register(FileAttachmentComment, FileAttachmentCommentAdmin)
<commit_msg>Fix another broken file attachment field.
There was one more admin field for file attachments that was using an old
name. Now fixed.<commit_after>from django.contrib import admin
from django.utils.translation import ugettext_lazy as _
from reviewboard.attachments.models import FileAttachment
from reviewboard.reviews.models import FileAttachmentComment
class FileAttachmentAdmin(admin.ModelAdmin):
list_display = ('file', 'caption', 'mimetype',
'review_request_id')
list_display_links = ('file_attachment', 'caption')
search_fields = ('caption', 'mimetype')
def review_request_id(self, obj):
return obj.review_request.get().id
review_request_id.short_description = _('Review request ID')
class FileAttachmentCommentAdmin(admin.ModelAdmin):
list_display = ('text', 'file_attachment', 'review_request_id', 'timestamp')
list_filter = ('timestamp',)
search_fields = ('caption', 'file_attachment')
raw_id_fields = ('file_attachment', 'reply_to')
def review_request_id(self, obj):
return obj.review.get().review_request.id
review_request_id.short_description = _('Review request ID')
admin.site.register(FileAttachment, FileAttachmentAdmin)
admin.site.register(FileAttachmentComment, FileAttachmentCommentAdmin)
|
018a5151939a96aa8a9f82e3562dc8c2691d2672
|
src/app.py
|
src/app.py
|
'''
The main app
'''
from flask import Flask
app = Flask(__name__)
@app.route('/', methods=['GET', 'POST'])
def index():
return 'A work in progress, check back later'
@app.route('/add', methods=['POST'])
def add_reminder():
return 'Use this method to POST new reminders to the database'
@app.route('/show', methods=['GET'])
def show_reminders():
return 'Use this method to GET all the reminders in the database' \
'in a sticky format'
if __name__ == '__main__':
app.run()
|
'''
The main app
'''
from flask import Flask, render_template
app = Flask(__name__)
@app.route('/', methods=['GET', 'POST'])
def index():
return 'A work in progress, check back later'
@app.route('/add', methods=['POST'])
def add_reminder():
return render_template('input.html')
@app.route('/show', methods=['GET'])
def show_reminders():
return render_template('notes.html')
if __name__ == '__main__':
app.run()
|
Return HTML templates using render_template
|
Return HTML templates using render_template
|
Python
|
bsd-2-clause
|
ambidextrousTx/RPostIt
|
'''
The main app
'''
from flask import Flask
app = Flask(__name__)
@app.route('/', methods=['GET', 'POST'])
def index():
return 'A work in progress, check back later'
@app.route('/add', methods=['POST'])
def add_reminder():
return 'Use this method to POST new reminders to the database'
@app.route('/show', methods=['GET'])
def show_reminders():
return 'Use this method to GET all the reminders in the database' \
'in a sticky format'
if __name__ == '__main__':
app.run()
Return HTML templates using render_template
|
'''
The main app
'''
from flask import Flask, render_template
app = Flask(__name__)
@app.route('/', methods=['GET', 'POST'])
def index():
return 'A work in progress, check back later'
@app.route('/add', methods=['POST'])
def add_reminder():
return render_template('input.html')
@app.route('/show', methods=['GET'])
def show_reminders():
return render_template('notes.html')
if __name__ == '__main__':
app.run()
|
<commit_before>'''
The main app
'''
from flask import Flask
app = Flask(__name__)
@app.route('/', methods=['GET', 'POST'])
def index():
return 'A work in progress, check back later'
@app.route('/add', methods=['POST'])
def add_reminder():
return 'Use this method to POST new reminders to the database'
@app.route('/show', methods=['GET'])
def show_reminders():
return 'Use this method to GET all the reminders in the database' \
'in a sticky format'
if __name__ == '__main__':
app.run()
<commit_msg>Return HTML templates using render_template<commit_after>
|
'''
The main app
'''
from flask import Flask, render_template
app = Flask(__name__)
@app.route('/', methods=['GET', 'POST'])
def index():
return 'A work in progress, check back later'
@app.route('/add', methods=['POST'])
def add_reminder():
return render_template('input.html')
@app.route('/show', methods=['GET'])
def show_reminders():
return render_template('notes.html')
if __name__ == '__main__':
app.run()
|
'''
The main app
'''
from flask import Flask
app = Flask(__name__)
@app.route('/', methods=['GET', 'POST'])
def index():
return 'A work in progress, check back later'
@app.route('/add', methods=['POST'])
def add_reminder():
return 'Use this method to POST new reminders to the database'
@app.route('/show', methods=['GET'])
def show_reminders():
return 'Use this method to GET all the reminders in the database' \
'in a sticky format'
if __name__ == '__main__':
app.run()
Return HTML templates using render_template'''
The main app
'''
from flask import Flask, render_template
app = Flask(__name__)
@app.route('/', methods=['GET', 'POST'])
def index():
return 'A work in progress, check back later'
@app.route('/add', methods=['POST'])
def add_reminder():
return render_template('input.html')
@app.route('/show', methods=['GET'])
def show_reminders():
return render_template('notes.html')
if __name__ == '__main__':
app.run()
|
<commit_before>'''
The main app
'''
from flask import Flask
app = Flask(__name__)
@app.route('/', methods=['GET', 'POST'])
def index():
return 'A work in progress, check back later'
@app.route('/add', methods=['POST'])
def add_reminder():
return 'Use this method to POST new reminders to the database'
@app.route('/show', methods=['GET'])
def show_reminders():
return 'Use this method to GET all the reminders in the database' \
'in a sticky format'
if __name__ == '__main__':
app.run()
<commit_msg>Return HTML templates using render_template<commit_after>'''
The main app
'''
from flask import Flask, render_template
app = Flask(__name__)
@app.route('/', methods=['GET', 'POST'])
def index():
return 'A work in progress, check back later'
@app.route('/add', methods=['POST'])
def add_reminder():
return render_template('input.html')
@app.route('/show', methods=['GET'])
def show_reminders():
return render_template('notes.html')
if __name__ == '__main__':
app.run()
|
1ff3b037dfa3be17e52fc013f3e33adac5b29578
|
mriqc/__init__.py
|
mriqc/__init__.py
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
# vi: set ft=python sts=4 ts=4 sw=4 et:
"""
The mriqc package provides a series of :abbr:`NR (no-reference)`,
:abbr:`IQMs (image quality metrics)` to used in :abbr:`QAPs (quality
assessment protocols)` for :abbr:`MRI (magnetic resonance imaging)`.
"""
from __future__ import print_function, division, absolute_import, unicode_literals
import logging
from .__about__ import (
__version__,
__author__,
__email__,
__maintainer__,
__copyright__,
__credits__,
__license__,
__status__,
__description__,
__longdesc__,
__url__,
__download__,
)
LOG_FORMAT = '%(asctime)s %(name)s:%(levelname)s %(message)s'
logging.basicConfig(level=logging.DEBUG,
format=LOG_FORMAT)
MRIQC_LOG = logging.getLogger()
DEFAULTS = {
'ants_nthreads': 6,
'float32': False
}
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
# vi: set ft=python sts=4 ts=4 sw=4 et:
"""
The mriqc package provides a series of :abbr:`NR (no-reference)`,
:abbr:`IQMs (image quality metrics)` to used in :abbr:`QAPs (quality
assessment protocols)` for :abbr:`MRI (magnetic resonance imaging)`.
"""
from __future__ import print_function, division, absolute_import, unicode_literals
import sys
import logging
from .__about__ import (
__version__,
__author__,
__email__,
__maintainer__,
__copyright__,
__credits__,
__license__,
__status__,
__description__,
__longdesc__,
__url__,
__download__,
)
LOG_FORMAT = '%(asctime)s %(name)s:%(levelname)s %(message)s'
MRIQC_LOG = logging.getLogger()
logging.basicConfig(
stream=sys.stdout,
level=logging.DEBUG,
format=LOG_FORMAT,
)
DEFAULTS = {
'ants_nthreads': 6,
'float32': False
}
|
Send logging output to stdout
|
[FIX] Send logging output to stdout
Fixes #557
|
Python
|
apache-2.0
|
oesteban/mriqc,poldracklab/mriqc,oesteban/mriqc,poldracklab/mriqc,oesteban/mriqc,poldracklab/mriqc,oesteban/mriqc,poldracklab/mriqc
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
# vi: set ft=python sts=4 ts=4 sw=4 et:
"""
The mriqc package provides a series of :abbr:`NR (no-reference)`,
:abbr:`IQMs (image quality metrics)` to used in :abbr:`QAPs (quality
assessment protocols)` for :abbr:`MRI (magnetic resonance imaging)`.
"""
from __future__ import print_function, division, absolute_import, unicode_literals
import logging
from .__about__ import (
__version__,
__author__,
__email__,
__maintainer__,
__copyright__,
__credits__,
__license__,
__status__,
__description__,
__longdesc__,
__url__,
__download__,
)
LOG_FORMAT = '%(asctime)s %(name)s:%(levelname)s %(message)s'
logging.basicConfig(level=logging.DEBUG,
format=LOG_FORMAT)
MRIQC_LOG = logging.getLogger()
DEFAULTS = {
'ants_nthreads': 6,
'float32': False
}
[FIX] Send logging output to stdout
Fixes #557
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
# vi: set ft=python sts=4 ts=4 sw=4 et:
"""
The mriqc package provides a series of :abbr:`NR (no-reference)`,
:abbr:`IQMs (image quality metrics)` to used in :abbr:`QAPs (quality
assessment protocols)` for :abbr:`MRI (magnetic resonance imaging)`.
"""
from __future__ import print_function, division, absolute_import, unicode_literals
import sys
import logging
from .__about__ import (
__version__,
__author__,
__email__,
__maintainer__,
__copyright__,
__credits__,
__license__,
__status__,
__description__,
__longdesc__,
__url__,
__download__,
)
LOG_FORMAT = '%(asctime)s %(name)s:%(levelname)s %(message)s'
MRIQC_LOG = logging.getLogger()
logging.basicConfig(
stream=sys.stdout,
level=logging.DEBUG,
format=LOG_FORMAT,
)
DEFAULTS = {
'ants_nthreads': 6,
'float32': False
}
|
<commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
# vi: set ft=python sts=4 ts=4 sw=4 et:
"""
The mriqc package provides a series of :abbr:`NR (no-reference)`,
:abbr:`IQMs (image quality metrics)` to used in :abbr:`QAPs (quality
assessment protocols)` for :abbr:`MRI (magnetic resonance imaging)`.
"""
from __future__ import print_function, division, absolute_import, unicode_literals
import logging
from .__about__ import (
__version__,
__author__,
__email__,
__maintainer__,
__copyright__,
__credits__,
__license__,
__status__,
__description__,
__longdesc__,
__url__,
__download__,
)
LOG_FORMAT = '%(asctime)s %(name)s:%(levelname)s %(message)s'
logging.basicConfig(level=logging.DEBUG,
format=LOG_FORMAT)
MRIQC_LOG = logging.getLogger()
DEFAULTS = {
'ants_nthreads': 6,
'float32': False
}
<commit_msg>[FIX] Send logging output to stdout
Fixes #557<commit_after>
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
# vi: set ft=python sts=4 ts=4 sw=4 et:
"""
The mriqc package provides a series of :abbr:`NR (no-reference)`,
:abbr:`IQMs (image quality metrics)` to used in :abbr:`QAPs (quality
assessment protocols)` for :abbr:`MRI (magnetic resonance imaging)`.
"""
from __future__ import print_function, division, absolute_import, unicode_literals
import sys
import logging
from .__about__ import (
__version__,
__author__,
__email__,
__maintainer__,
__copyright__,
__credits__,
__license__,
__status__,
__description__,
__longdesc__,
__url__,
__download__,
)
LOG_FORMAT = '%(asctime)s %(name)s:%(levelname)s %(message)s'
MRIQC_LOG = logging.getLogger()
logging.basicConfig(
stream=sys.stdout,
level=logging.DEBUG,
format=LOG_FORMAT,
)
DEFAULTS = {
'ants_nthreads': 6,
'float32': False
}
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
# vi: set ft=python sts=4 ts=4 sw=4 et:
"""
The mriqc package provides a series of :abbr:`NR (no-reference)`,
:abbr:`IQMs (image quality metrics)` to used in :abbr:`QAPs (quality
assessment protocols)` for :abbr:`MRI (magnetic resonance imaging)`.
"""
from __future__ import print_function, division, absolute_import, unicode_literals
import logging
from .__about__ import (
__version__,
__author__,
__email__,
__maintainer__,
__copyright__,
__credits__,
__license__,
__status__,
__description__,
__longdesc__,
__url__,
__download__,
)
LOG_FORMAT = '%(asctime)s %(name)s:%(levelname)s %(message)s'
logging.basicConfig(level=logging.DEBUG,
format=LOG_FORMAT)
MRIQC_LOG = logging.getLogger()
DEFAULTS = {
'ants_nthreads': 6,
'float32': False
}
[FIX] Send logging output to stdout
Fixes #557#!/usr/bin/env python
# -*- coding: utf-8 -*-
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
# vi: set ft=python sts=4 ts=4 sw=4 et:
"""
The mriqc package provides a series of :abbr:`NR (no-reference)`,
:abbr:`IQMs (image quality metrics)` to used in :abbr:`QAPs (quality
assessment protocols)` for :abbr:`MRI (magnetic resonance imaging)`.
"""
from __future__ import print_function, division, absolute_import, unicode_literals
import sys
import logging
from .__about__ import (
__version__,
__author__,
__email__,
__maintainer__,
__copyright__,
__credits__,
__license__,
__status__,
__description__,
__longdesc__,
__url__,
__download__,
)
LOG_FORMAT = '%(asctime)s %(name)s:%(levelname)s %(message)s'
MRIQC_LOG = logging.getLogger()
logging.basicConfig(
stream=sys.stdout,
level=logging.DEBUG,
format=LOG_FORMAT,
)
DEFAULTS = {
'ants_nthreads': 6,
'float32': False
}
|
<commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
# vi: set ft=python sts=4 ts=4 sw=4 et:
"""
The mriqc package provides a series of :abbr:`NR (no-reference)`,
:abbr:`IQMs (image quality metrics)` to used in :abbr:`QAPs (quality
assessment protocols)` for :abbr:`MRI (magnetic resonance imaging)`.
"""
from __future__ import print_function, division, absolute_import, unicode_literals
import logging
from .__about__ import (
__version__,
__author__,
__email__,
__maintainer__,
__copyright__,
__credits__,
__license__,
__status__,
__description__,
__longdesc__,
__url__,
__download__,
)
LOG_FORMAT = '%(asctime)s %(name)s:%(levelname)s %(message)s'
logging.basicConfig(level=logging.DEBUG,
format=LOG_FORMAT)
MRIQC_LOG = logging.getLogger()
DEFAULTS = {
'ants_nthreads': 6,
'float32': False
}
<commit_msg>[FIX] Send logging output to stdout
Fixes #557<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
# vi: set ft=python sts=4 ts=4 sw=4 et:
"""
The mriqc package provides a series of :abbr:`NR (no-reference)`,
:abbr:`IQMs (image quality metrics)` to used in :abbr:`QAPs (quality
assessment protocols)` for :abbr:`MRI (magnetic resonance imaging)`.
"""
from __future__ import print_function, division, absolute_import, unicode_literals
import sys
import logging
from .__about__ import (
__version__,
__author__,
__email__,
__maintainer__,
__copyright__,
__credits__,
__license__,
__status__,
__description__,
__longdesc__,
__url__,
__download__,
)
LOG_FORMAT = '%(asctime)s %(name)s:%(levelname)s %(message)s'
MRIQC_LOG = logging.getLogger()
logging.basicConfig(
stream=sys.stdout,
level=logging.DEBUG,
format=LOG_FORMAT,
)
DEFAULTS = {
'ants_nthreads': 6,
'float32': False
}
|
aa86dfda0b92ac99c86053db7fb43bd8cecccc83
|
kpi/interfaces/sync_backend_media.py
|
kpi/interfaces/sync_backend_media.py
|
# coding: utf-8
class SyncBackendMediaInterface:
"""
This interface defines required properties and methods
of objects passed to deployment back-end class on media synchronization.
"""
@property
def backend_data_value(self):
raise NotImplementedError('This property should be implemented in '
'subclasses')
@property
def backend_uniqid(self):
raise NotImplementedError('This property should be implemented in '
'subclasses')
def delete(self, **kwargs):
raise NotImplementedError('This method should be implemented in '
'subclasses')
@property
def deleted_at(self):
raise NotImplementedError('This property should be implemented in '
'subclasses')
@property
def filename(self):
raise NotImplementedError('This property should be implemented in '
'subclasses')
@property
def hash(self):
raise NotImplementedError('This property should be implemented in '
'subclasses')
@property
def is_remote_url(self):
raise NotImplementedError('This property should be implemented in '
'subclasses')
@property
def mimetype(self):
raise NotImplementedError('This property should be implemented in '
'subclasses')
|
# coding: utf-8
from kpi.exceptions import AbstractMethodError, AbstractPropertyError
class SyncBackendMediaInterface:
"""
This interface defines required properties and methods
of objects passed to deployment back-end class on media synchronization.
"""
@property
def backend_data_value(self):
raise AbstractPropertyError
@property
def backend_uniqid(self):
raise AbstractPropertyError
def delete(self, **kwargs):
raise AbstractMethodError
@property
def deleted_at(self):
raise AbstractPropertyError
@property
def filename(self):
raise AbstractPropertyError
@property
def hash(self):
raise AbstractPropertyError
@property
def is_remote_url(self):
raise AbstractPropertyError
@property
def mimetype(self):
raise AbstractPropertyError
|
Use new exceptions: AbstractMethodError, AbstractPropertyError
|
Use new exceptions: AbstractMethodError, AbstractPropertyError
|
Python
|
agpl-3.0
|
kobotoolbox/kpi,kobotoolbox/kpi,kobotoolbox/kpi,kobotoolbox/kpi,kobotoolbox/kpi
|
# coding: utf-8
class SyncBackendMediaInterface:
"""
This interface defines required properties and methods
of objects passed to deployment back-end class on media synchronization.
"""
@property
def backend_data_value(self):
raise NotImplementedError('This property should be implemented in '
'subclasses')
@property
def backend_uniqid(self):
raise NotImplementedError('This property should be implemented in '
'subclasses')
def delete(self, **kwargs):
raise NotImplementedError('This method should be implemented in '
'subclasses')
@property
def deleted_at(self):
raise NotImplementedError('This property should be implemented in '
'subclasses')
@property
def filename(self):
raise NotImplementedError('This property should be implemented in '
'subclasses')
@property
def hash(self):
raise NotImplementedError('This property should be implemented in '
'subclasses')
@property
def is_remote_url(self):
raise NotImplementedError('This property should be implemented in '
'subclasses')
@property
def mimetype(self):
raise NotImplementedError('This property should be implemented in '
'subclasses')
Use new exceptions: AbstractMethodError, AbstractPropertyError
|
# coding: utf-8
from kpi.exceptions import AbstractMethodError, AbstractPropertyError
class SyncBackendMediaInterface:
"""
This interface defines required properties and methods
of objects passed to deployment back-end class on media synchronization.
"""
@property
def backend_data_value(self):
raise AbstractPropertyError
@property
def backend_uniqid(self):
raise AbstractPropertyError
def delete(self, **kwargs):
raise AbstractMethodError
@property
def deleted_at(self):
raise AbstractPropertyError
@property
def filename(self):
raise AbstractPropertyError
@property
def hash(self):
raise AbstractPropertyError
@property
def is_remote_url(self):
raise AbstractPropertyError
@property
def mimetype(self):
raise AbstractPropertyError
|
<commit_before># coding: utf-8
class SyncBackendMediaInterface:
"""
This interface defines required properties and methods
of objects passed to deployment back-end class on media synchronization.
"""
@property
def backend_data_value(self):
raise NotImplementedError('This property should be implemented in '
'subclasses')
@property
def backend_uniqid(self):
raise NotImplementedError('This property should be implemented in '
'subclasses')
def delete(self, **kwargs):
raise NotImplementedError('This method should be implemented in '
'subclasses')
@property
def deleted_at(self):
raise NotImplementedError('This property should be implemented in '
'subclasses')
@property
def filename(self):
raise NotImplementedError('This property should be implemented in '
'subclasses')
@property
def hash(self):
raise NotImplementedError('This property should be implemented in '
'subclasses')
@property
def is_remote_url(self):
raise NotImplementedError('This property should be implemented in '
'subclasses')
@property
def mimetype(self):
raise NotImplementedError('This property should be implemented in '
'subclasses')
<commit_msg>Use new exceptions: AbstractMethodError, AbstractPropertyError<commit_after>
|
# coding: utf-8
from kpi.exceptions import AbstractMethodError, AbstractPropertyError
class SyncBackendMediaInterface:
"""
This interface defines required properties and methods
of objects passed to deployment back-end class on media synchronization.
"""
@property
def backend_data_value(self):
raise AbstractPropertyError
@property
def backend_uniqid(self):
raise AbstractPropertyError
def delete(self, **kwargs):
raise AbstractMethodError
@property
def deleted_at(self):
raise AbstractPropertyError
@property
def filename(self):
raise AbstractPropertyError
@property
def hash(self):
raise AbstractPropertyError
@property
def is_remote_url(self):
raise AbstractPropertyError
@property
def mimetype(self):
raise AbstractPropertyError
|
# coding: utf-8
class SyncBackendMediaInterface:
"""
This interface defines required properties and methods
of objects passed to deployment back-end class on media synchronization.
"""
@property
def backend_data_value(self):
raise NotImplementedError('This property should be implemented in '
'subclasses')
@property
def backend_uniqid(self):
raise NotImplementedError('This property should be implemented in '
'subclasses')
def delete(self, **kwargs):
raise NotImplementedError('This method should be implemented in '
'subclasses')
@property
def deleted_at(self):
raise NotImplementedError('This property should be implemented in '
'subclasses')
@property
def filename(self):
raise NotImplementedError('This property should be implemented in '
'subclasses')
@property
def hash(self):
raise NotImplementedError('This property should be implemented in '
'subclasses')
@property
def is_remote_url(self):
raise NotImplementedError('This property should be implemented in '
'subclasses')
@property
def mimetype(self):
raise NotImplementedError('This property should be implemented in '
'subclasses')
Use new exceptions: AbstractMethodError, AbstractPropertyError# coding: utf-8
from kpi.exceptions import AbstractMethodError, AbstractPropertyError
class SyncBackendMediaInterface:
"""
This interface defines required properties and methods
of objects passed to deployment back-end class on media synchronization.
"""
@property
def backend_data_value(self):
raise AbstractPropertyError
@property
def backend_uniqid(self):
raise AbstractPropertyError
def delete(self, **kwargs):
raise AbstractMethodError
@property
def deleted_at(self):
raise AbstractPropertyError
@property
def filename(self):
raise AbstractPropertyError
@property
def hash(self):
raise AbstractPropertyError
@property
def is_remote_url(self):
raise AbstractPropertyError
@property
def mimetype(self):
raise AbstractPropertyError
|
<commit_before># coding: utf-8
class SyncBackendMediaInterface:
"""
This interface defines required properties and methods
of objects passed to deployment back-end class on media synchronization.
"""
@property
def backend_data_value(self):
raise NotImplementedError('This property should be implemented in '
'subclasses')
@property
def backend_uniqid(self):
raise NotImplementedError('This property should be implemented in '
'subclasses')
def delete(self, **kwargs):
raise NotImplementedError('This method should be implemented in '
'subclasses')
@property
def deleted_at(self):
raise NotImplementedError('This property should be implemented in '
'subclasses')
@property
def filename(self):
raise NotImplementedError('This property should be implemented in '
'subclasses')
@property
def hash(self):
raise NotImplementedError('This property should be implemented in '
'subclasses')
@property
def is_remote_url(self):
raise NotImplementedError('This property should be implemented in '
'subclasses')
@property
def mimetype(self):
raise NotImplementedError('This property should be implemented in '
'subclasses')
<commit_msg>Use new exceptions: AbstractMethodError, AbstractPropertyError<commit_after># coding: utf-8
from kpi.exceptions import AbstractMethodError, AbstractPropertyError
class SyncBackendMediaInterface:
"""
This interface defines required properties and methods
of objects passed to deployment back-end class on media synchronization.
"""
@property
def backend_data_value(self):
raise AbstractPropertyError
@property
def backend_uniqid(self):
raise AbstractPropertyError
def delete(self, **kwargs):
raise AbstractMethodError
@property
def deleted_at(self):
raise AbstractPropertyError
@property
def filename(self):
raise AbstractPropertyError
@property
def hash(self):
raise AbstractPropertyError
@property
def is_remote_url(self):
raise AbstractPropertyError
@property
def mimetype(self):
raise AbstractPropertyError
|
fbd168ae6a2b2733bec9ffa1eec4c56fbfdbc97b
|
modoboa/admin/migrations/0002_migrate_from_modoboa_admin.py
|
modoboa/admin/migrations/0002_migrate_from_modoboa_admin.py
|
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
def rename_and_clean(apps, schema_editor):
"""Rename old content types if necessary, remove permissions."""
ContentType = apps.get_model("contenttypes", "ContentType")
for ct in ContentType.objects.filter(app_label="admin"):
try:
old_ct = ContentType.objects.get(
app_label="modoboa_admin", model=ct.model)
except ContentType.DoesNotExist:
continue
old_ct.app_label = "admin"
ct.delete()
old_ct.save()
# Remove DomainAlias permissions from DomainAdmins group
Group = apps.get_model("auth", "Group")
Permission = apps.get_model("auth", "Permission")
group = Group.objects.get(name="DomainAdmins")
ct = ContentType.objects.get(app_label="admin", model="domainalias")
for permission in Permission.objects.filter(content_type=ct):
group.permissions.remove(permission)
class Migration(migrations.Migration):
dependencies = [
('admin', '0001_initial'),
]
operations = [
migrations.RunPython(rename_and_clean),
]
|
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
def rename_and_clean(apps, schema_editor):
"""Rename old content types if necessary, remove permissions."""
ContentType = apps.get_model("contenttypes", "ContentType")
for ct in ContentType.objects.filter(app_label="admin"):
try:
old_ct = ContentType.objects.get(
app_label="modoboa_admin", model=ct.model)
except ContentType.DoesNotExist:
continue
old_ct.app_label = "admin"
ct.delete()
old_ct.save()
# Remove DomainAlias permissions from DomainAdmins group
Group = apps.get_model("auth", "Group")
try:
group = Group.objects.get(name="DomainAdmins")
except Group.DoesNotExist:
return
Permission = apps.get_model("auth", "Permission")
ct = ContentType.objects.get(app_label="admin", model="domainalias")
for permission in Permission.objects.filter(content_type=ct):
group.permissions.remove(permission)
class Migration(migrations.Migration):
dependencies = [
('admin', '0001_initial'),
]
operations = [
migrations.RunPython(rename_and_clean),
]
|
Handle the fresh install case.
|
Handle the fresh install case.
|
Python
|
isc
|
modoboa/modoboa,bearstech/modoboa,carragom/modoboa,carragom/modoboa,tonioo/modoboa,bearstech/modoboa,bearstech/modoboa,bearstech/modoboa,tonioo/modoboa,carragom/modoboa,modoboa/modoboa,tonioo/modoboa,modoboa/modoboa,modoboa/modoboa
|
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
def rename_and_clean(apps, schema_editor):
"""Rename old content types if necessary, remove permissions."""
ContentType = apps.get_model("contenttypes", "ContentType")
for ct in ContentType.objects.filter(app_label="admin"):
try:
old_ct = ContentType.objects.get(
app_label="modoboa_admin", model=ct.model)
except ContentType.DoesNotExist:
continue
old_ct.app_label = "admin"
ct.delete()
old_ct.save()
# Remove DomainAlias permissions from DomainAdmins group
Group = apps.get_model("auth", "Group")
Permission = apps.get_model("auth", "Permission")
group = Group.objects.get(name="DomainAdmins")
ct = ContentType.objects.get(app_label="admin", model="domainalias")
for permission in Permission.objects.filter(content_type=ct):
group.permissions.remove(permission)
class Migration(migrations.Migration):
dependencies = [
('admin', '0001_initial'),
]
operations = [
migrations.RunPython(rename_and_clean),
]
Handle the fresh install case.
|
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
def rename_and_clean(apps, schema_editor):
"""Rename old content types if necessary, remove permissions."""
ContentType = apps.get_model("contenttypes", "ContentType")
for ct in ContentType.objects.filter(app_label="admin"):
try:
old_ct = ContentType.objects.get(
app_label="modoboa_admin", model=ct.model)
except ContentType.DoesNotExist:
continue
old_ct.app_label = "admin"
ct.delete()
old_ct.save()
# Remove DomainAlias permissions from DomainAdmins group
Group = apps.get_model("auth", "Group")
try:
group = Group.objects.get(name="DomainAdmins")
except Group.DoesNotExist:
return
Permission = apps.get_model("auth", "Permission")
ct = ContentType.objects.get(app_label="admin", model="domainalias")
for permission in Permission.objects.filter(content_type=ct):
group.permissions.remove(permission)
class Migration(migrations.Migration):
dependencies = [
('admin', '0001_initial'),
]
operations = [
migrations.RunPython(rename_and_clean),
]
|
<commit_before># -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
def rename_and_clean(apps, schema_editor):
"""Rename old content types if necessary, remove permissions."""
ContentType = apps.get_model("contenttypes", "ContentType")
for ct in ContentType.objects.filter(app_label="admin"):
try:
old_ct = ContentType.objects.get(
app_label="modoboa_admin", model=ct.model)
except ContentType.DoesNotExist:
continue
old_ct.app_label = "admin"
ct.delete()
old_ct.save()
# Remove DomainAlias permissions from DomainAdmins group
Group = apps.get_model("auth", "Group")
Permission = apps.get_model("auth", "Permission")
group = Group.objects.get(name="DomainAdmins")
ct = ContentType.objects.get(app_label="admin", model="domainalias")
for permission in Permission.objects.filter(content_type=ct):
group.permissions.remove(permission)
class Migration(migrations.Migration):
dependencies = [
('admin', '0001_initial'),
]
operations = [
migrations.RunPython(rename_and_clean),
]
<commit_msg>Handle the fresh install case.<commit_after>
|
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
def rename_and_clean(apps, schema_editor):
"""Rename old content types if necessary, remove permissions."""
ContentType = apps.get_model("contenttypes", "ContentType")
for ct in ContentType.objects.filter(app_label="admin"):
try:
old_ct = ContentType.objects.get(
app_label="modoboa_admin", model=ct.model)
except ContentType.DoesNotExist:
continue
old_ct.app_label = "admin"
ct.delete()
old_ct.save()
# Remove DomainAlias permissions from DomainAdmins group
Group = apps.get_model("auth", "Group")
try:
group = Group.objects.get(name="DomainAdmins")
except Group.DoesNotExist:
return
Permission = apps.get_model("auth", "Permission")
ct = ContentType.objects.get(app_label="admin", model="domainalias")
for permission in Permission.objects.filter(content_type=ct):
group.permissions.remove(permission)
class Migration(migrations.Migration):
dependencies = [
('admin', '0001_initial'),
]
operations = [
migrations.RunPython(rename_and_clean),
]
|
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
def rename_and_clean(apps, schema_editor):
"""Rename old content types if necessary, remove permissions."""
ContentType = apps.get_model("contenttypes", "ContentType")
for ct in ContentType.objects.filter(app_label="admin"):
try:
old_ct = ContentType.objects.get(
app_label="modoboa_admin", model=ct.model)
except ContentType.DoesNotExist:
continue
old_ct.app_label = "admin"
ct.delete()
old_ct.save()
# Remove DomainAlias permissions from DomainAdmins group
Group = apps.get_model("auth", "Group")
Permission = apps.get_model("auth", "Permission")
group = Group.objects.get(name="DomainAdmins")
ct = ContentType.objects.get(app_label="admin", model="domainalias")
for permission in Permission.objects.filter(content_type=ct):
group.permissions.remove(permission)
class Migration(migrations.Migration):
dependencies = [
('admin', '0001_initial'),
]
operations = [
migrations.RunPython(rename_and_clean),
]
Handle the fresh install case.# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
def rename_and_clean(apps, schema_editor):
"""Rename old content types if necessary, remove permissions."""
ContentType = apps.get_model("contenttypes", "ContentType")
for ct in ContentType.objects.filter(app_label="admin"):
try:
old_ct = ContentType.objects.get(
app_label="modoboa_admin", model=ct.model)
except ContentType.DoesNotExist:
continue
old_ct.app_label = "admin"
ct.delete()
old_ct.save()
# Remove DomainAlias permissions from DomainAdmins group
Group = apps.get_model("auth", "Group")
try:
group = Group.objects.get(name="DomainAdmins")
except Group.DoesNotExist:
return
Permission = apps.get_model("auth", "Permission")
ct = ContentType.objects.get(app_label="admin", model="domainalias")
for permission in Permission.objects.filter(content_type=ct):
group.permissions.remove(permission)
class Migration(migrations.Migration):
dependencies = [
('admin', '0001_initial'),
]
operations = [
migrations.RunPython(rename_and_clean),
]
|
<commit_before># -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
def rename_and_clean(apps, schema_editor):
"""Rename old content types if necessary, remove permissions."""
ContentType = apps.get_model("contenttypes", "ContentType")
for ct in ContentType.objects.filter(app_label="admin"):
try:
old_ct = ContentType.objects.get(
app_label="modoboa_admin", model=ct.model)
except ContentType.DoesNotExist:
continue
old_ct.app_label = "admin"
ct.delete()
old_ct.save()
# Remove DomainAlias permissions from DomainAdmins group
Group = apps.get_model("auth", "Group")
Permission = apps.get_model("auth", "Permission")
group = Group.objects.get(name="DomainAdmins")
ct = ContentType.objects.get(app_label="admin", model="domainalias")
for permission in Permission.objects.filter(content_type=ct):
group.permissions.remove(permission)
class Migration(migrations.Migration):
dependencies = [
('admin', '0001_initial'),
]
operations = [
migrations.RunPython(rename_and_clean),
]
<commit_msg>Handle the fresh install case.<commit_after># -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
def rename_and_clean(apps, schema_editor):
"""Rename old content types if necessary, remove permissions."""
ContentType = apps.get_model("contenttypes", "ContentType")
for ct in ContentType.objects.filter(app_label="admin"):
try:
old_ct = ContentType.objects.get(
app_label="modoboa_admin", model=ct.model)
except ContentType.DoesNotExist:
continue
old_ct.app_label = "admin"
ct.delete()
old_ct.save()
# Remove DomainAlias permissions from DomainAdmins group
Group = apps.get_model("auth", "Group")
try:
group = Group.objects.get(name="DomainAdmins")
except Group.DoesNotExist:
return
Permission = apps.get_model("auth", "Permission")
ct = ContentType.objects.get(app_label="admin", model="domainalias")
for permission in Permission.objects.filter(content_type=ct):
group.permissions.remove(permission)
class Migration(migrations.Migration):
dependencies = [
('admin', '0001_initial'),
]
operations = [
migrations.RunPython(rename_and_clean),
]
|
a9711705a8c122bf7e7f1edbf9b640c3be5f8510
|
integration-test/552-water-boundary-sort-key.py
|
integration-test/552-water-boundary-sort-key.py
|
# from https://github.com/mapzen/vector-datasource/issues/552
assert_has_feature(
19, 83900, 202617, "water",
{"kind": "ocean", "boundary": True, "sort_rank": 205})
|
# from https://github.com/mapzen/vector-datasource/issues/552
assert_has_feature(
16, 10487, 25327, "water",
{"kind": "ocean", "boundary": True, "sort_rank": 205})
|
Update water boundary sort key test zooms
|
Update water boundary sort key test zooms
|
Python
|
mit
|
mapzen/vector-datasource,mapzen/vector-datasource,mapzen/vector-datasource
|
# from https://github.com/mapzen/vector-datasource/issues/552
assert_has_feature(
19, 83900, 202617, "water",
{"kind": "ocean", "boundary": True, "sort_rank": 205})
Update water boundary sort key test zooms
|
# from https://github.com/mapzen/vector-datasource/issues/552
assert_has_feature(
16, 10487, 25327, "water",
{"kind": "ocean", "boundary": True, "sort_rank": 205})
|
<commit_before># from https://github.com/mapzen/vector-datasource/issues/552
assert_has_feature(
19, 83900, 202617, "water",
{"kind": "ocean", "boundary": True, "sort_rank": 205})
<commit_msg>Update water boundary sort key test zooms<commit_after>
|
# from https://github.com/mapzen/vector-datasource/issues/552
assert_has_feature(
16, 10487, 25327, "water",
{"kind": "ocean", "boundary": True, "sort_rank": 205})
|
# from https://github.com/mapzen/vector-datasource/issues/552
assert_has_feature(
19, 83900, 202617, "water",
{"kind": "ocean", "boundary": True, "sort_rank": 205})
Update water boundary sort key test zooms# from https://github.com/mapzen/vector-datasource/issues/552
assert_has_feature(
16, 10487, 25327, "water",
{"kind": "ocean", "boundary": True, "sort_rank": 205})
|
<commit_before># from https://github.com/mapzen/vector-datasource/issues/552
assert_has_feature(
19, 83900, 202617, "water",
{"kind": "ocean", "boundary": True, "sort_rank": 205})
<commit_msg>Update water boundary sort key test zooms<commit_after># from https://github.com/mapzen/vector-datasource/issues/552
assert_has_feature(
16, 10487, 25327, "water",
{"kind": "ocean", "boundary": True, "sort_rank": 205})
|
c04a0bbe56e97a96df28f8505f6601df0c638f71
|
src/blackred/__init__.py
|
src/blackred/__init__.py
|
"""
Copyright 2015 Juergen Edelbluth
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
from .blackred import BlackRed
|
"""
Copyright 2015 Juergen Edelbluth
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
# flake8: noqa
from .blackred import BlackRed
|
Make the flake8 test pass
|
Make the flake8 test pass
The import in the `__init__.py` should not be reported by flake8. The warning itself is OK, but not for this file.
|
Python
|
apache-2.0
|
edelbluth/blackred,edelbluth/blackred
|
"""
Copyright 2015 Juergen Edelbluth
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
from .blackred import BlackRed
Make the flake8 test pass
The import in the `__init__.py` should not be reported by flake8. The warning itself is OK, but not for this file.
|
"""
Copyright 2015 Juergen Edelbluth
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
# flake8: noqa
from .blackred import BlackRed
|
<commit_before>"""
Copyright 2015 Juergen Edelbluth
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
from .blackred import BlackRed
<commit_msg>Make the flake8 test pass
The import in the `__init__.py` should not be reported by flake8. The warning itself is OK, but not for this file.<commit_after>
|
"""
Copyright 2015 Juergen Edelbluth
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
# flake8: noqa
from .blackred import BlackRed
|
"""
Copyright 2015 Juergen Edelbluth
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
from .blackred import BlackRed
Make the flake8 test pass
The import in the `__init__.py` should not be reported by flake8. The warning itself is OK, but not for this file."""
Copyright 2015 Juergen Edelbluth
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
# flake8: noqa
from .blackred import BlackRed
|
<commit_before>"""
Copyright 2015 Juergen Edelbluth
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
from .blackred import BlackRed
<commit_msg>Make the flake8 test pass
The import in the `__init__.py` should not be reported by flake8. The warning itself is OK, but not for this file.<commit_after>"""
Copyright 2015 Juergen Edelbluth
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
# flake8: noqa
from .blackred import BlackRed
|
89f9b30bf3539d947fc066e5ab2845cf78e45ab5
|
test/test_07_user_thermal.py
|
test/test_07_user_thermal.py
|
class TestUserThermal:
def test_can_download_audio(self, helper):
device = helper.given_new_device(self, 'cacophonator')
recording = device.has_recording()
print("\nA user should be able to download the recording")
helper.admin_user().can_download_correct_recording(recording)
def test_can_delete_recording(self, helper):
device = helper.given_new_device(self, 'cacophonator')
recording = device.has_recording()
print("\nA user should be able to see the recording")
user = helper.admin_user()
user.can_see_recordings(recording)
print("And when they delete it ... ", end='')
user.delete_recording(recording)
print("they can no longer see it.")
user.cannot_see_recordings(recording)
|
class TestUserThermal:
def test_can_download_recording(self, helper):
device = helper.given_new_device(self, 'cacophonator-download')
recording = device.has_recording()
print("\nA user should be able to download the recording")
helper.admin_user().can_download_correct_recording(recording)
def test_can_delete_recording(self, helper):
device = helper.given_new_device(self, 'cacophonator-delete')
recording = device.has_recording()
print("\nA user should be able to see the recording")
user = helper.admin_user()
user.can_see_recordings(recording)
print("And when they delete it ... ", end='')
user.delete_recording(recording)
print("they can no longer see it.")
user.cannot_see_recordings(recording)
|
Use unique device names in tests & correct a test name
|
Use unique device names in tests & correct a test name
|
Python
|
agpl-3.0
|
TheCacophonyProject/Full_Noise
|
class TestUserThermal:
def test_can_download_audio(self, helper):
device = helper.given_new_device(self, 'cacophonator')
recording = device.has_recording()
print("\nA user should be able to download the recording")
helper.admin_user().can_download_correct_recording(recording)
def test_can_delete_recording(self, helper):
device = helper.given_new_device(self, 'cacophonator')
recording = device.has_recording()
print("\nA user should be able to see the recording")
user = helper.admin_user()
user.can_see_recordings(recording)
print("And when they delete it ... ", end='')
user.delete_recording(recording)
print("they can no longer see it.")
user.cannot_see_recordings(recording)
Use unique device names in tests & correct a test name
|
class TestUserThermal:
def test_can_download_recording(self, helper):
device = helper.given_new_device(self, 'cacophonator-download')
recording = device.has_recording()
print("\nA user should be able to download the recording")
helper.admin_user().can_download_correct_recording(recording)
def test_can_delete_recording(self, helper):
device = helper.given_new_device(self, 'cacophonator-delete')
recording = device.has_recording()
print("\nA user should be able to see the recording")
user = helper.admin_user()
user.can_see_recordings(recording)
print("And when they delete it ... ", end='')
user.delete_recording(recording)
print("they can no longer see it.")
user.cannot_see_recordings(recording)
|
<commit_before>class TestUserThermal:
def test_can_download_audio(self, helper):
device = helper.given_new_device(self, 'cacophonator')
recording = device.has_recording()
print("\nA user should be able to download the recording")
helper.admin_user().can_download_correct_recording(recording)
def test_can_delete_recording(self, helper):
device = helper.given_new_device(self, 'cacophonator')
recording = device.has_recording()
print("\nA user should be able to see the recording")
user = helper.admin_user()
user.can_see_recordings(recording)
print("And when they delete it ... ", end='')
user.delete_recording(recording)
print("they can no longer see it.")
user.cannot_see_recordings(recording)
<commit_msg>Use unique device names in tests & correct a test name<commit_after>
|
class TestUserThermal:
def test_can_download_recording(self, helper):
device = helper.given_new_device(self, 'cacophonator-download')
recording = device.has_recording()
print("\nA user should be able to download the recording")
helper.admin_user().can_download_correct_recording(recording)
def test_can_delete_recording(self, helper):
device = helper.given_new_device(self, 'cacophonator-delete')
recording = device.has_recording()
print("\nA user should be able to see the recording")
user = helper.admin_user()
user.can_see_recordings(recording)
print("And when they delete it ... ", end='')
user.delete_recording(recording)
print("they can no longer see it.")
user.cannot_see_recordings(recording)
|
class TestUserThermal:
def test_can_download_audio(self, helper):
device = helper.given_new_device(self, 'cacophonator')
recording = device.has_recording()
print("\nA user should be able to download the recording")
helper.admin_user().can_download_correct_recording(recording)
def test_can_delete_recording(self, helper):
device = helper.given_new_device(self, 'cacophonator')
recording = device.has_recording()
print("\nA user should be able to see the recording")
user = helper.admin_user()
user.can_see_recordings(recording)
print("And when they delete it ... ", end='')
user.delete_recording(recording)
print("they can no longer see it.")
user.cannot_see_recordings(recording)
Use unique device names in tests & correct a test nameclass TestUserThermal:
def test_can_download_recording(self, helper):
device = helper.given_new_device(self, 'cacophonator-download')
recording = device.has_recording()
print("\nA user should be able to download the recording")
helper.admin_user().can_download_correct_recording(recording)
def test_can_delete_recording(self, helper):
device = helper.given_new_device(self, 'cacophonator-delete')
recording = device.has_recording()
print("\nA user should be able to see the recording")
user = helper.admin_user()
user.can_see_recordings(recording)
print("And when they delete it ... ", end='')
user.delete_recording(recording)
print("they can no longer see it.")
user.cannot_see_recordings(recording)
|
<commit_before>class TestUserThermal:
def test_can_download_audio(self, helper):
device = helper.given_new_device(self, 'cacophonator')
recording = device.has_recording()
print("\nA user should be able to download the recording")
helper.admin_user().can_download_correct_recording(recording)
def test_can_delete_recording(self, helper):
device = helper.given_new_device(self, 'cacophonator')
recording = device.has_recording()
print("\nA user should be able to see the recording")
user = helper.admin_user()
user.can_see_recordings(recording)
print("And when they delete it ... ", end='')
user.delete_recording(recording)
print("they can no longer see it.")
user.cannot_see_recordings(recording)
<commit_msg>Use unique device names in tests & correct a test name<commit_after>class TestUserThermal:
def test_can_download_recording(self, helper):
device = helper.given_new_device(self, 'cacophonator-download')
recording = device.has_recording()
print("\nA user should be able to download the recording")
helper.admin_user().can_download_correct_recording(recording)
def test_can_delete_recording(self, helper):
device = helper.given_new_device(self, 'cacophonator-delete')
recording = device.has_recording()
print("\nA user should be able to see the recording")
user = helper.admin_user()
user.can_see_recordings(recording)
print("And when they delete it ... ", end='')
user.delete_recording(recording)
print("they can no longer see it.")
user.cannot_see_recordings(recording)
|
cd44bcde10332d2e8fa092a1df1c4383b5718660
|
imager/imagerprofile/handlers.py
|
imager/imagerprofile/handlers.py
|
from django.db.models.signals import post_save
from django.dispatch import receiver
from django.contrib.auth.models import User
from imagerprofile.models import ImagerProfile
@receiver(post_save, sender=User)
def add_profile(sender, instance, **kwargs):
if kwargs['created']:
new_profile = ImagerProfile(user=instance)
new_profile.save()
|
from django.db.models.signals import post_save
from django.dispatch import receiver
from django.contrib.auth.models import User
from imagerprofile.models import ImagerProfile
@receiver(post_save, sender=User)
def add_profile(sender, **kwargs):
if kwargs['created']:
obj = kwargs.get('instance')
new_profile = ImagerProfile(user=obj)
new_profile.save()
|
Fix instance handling in profile handler
|
Fix instance handling in profile handler
|
Python
|
mit
|
nbeck90/django-imager,nbeck90/django-imager
|
from django.db.models.signals import post_save
from django.dispatch import receiver
from django.contrib.auth.models import User
from imagerprofile.models import ImagerProfile
@receiver(post_save, sender=User)
def add_profile(sender, instance, **kwargs):
if kwargs['created']:
new_profile = ImagerProfile(user=instance)
new_profile.save()
Fix instance handling in profile handler
|
from django.db.models.signals import post_save
from django.dispatch import receiver
from django.contrib.auth.models import User
from imagerprofile.models import ImagerProfile
@receiver(post_save, sender=User)
def add_profile(sender, **kwargs):
if kwargs['created']:
obj = kwargs.get('instance')
new_profile = ImagerProfile(user=obj)
new_profile.save()
|
<commit_before>from django.db.models.signals import post_save
from django.dispatch import receiver
from django.contrib.auth.models import User
from imagerprofile.models import ImagerProfile
@receiver(post_save, sender=User)
def add_profile(sender, instance, **kwargs):
if kwargs['created']:
new_profile = ImagerProfile(user=instance)
new_profile.save()
<commit_msg>Fix instance handling in profile handler<commit_after>
|
from django.db.models.signals import post_save
from django.dispatch import receiver
from django.contrib.auth.models import User
from imagerprofile.models import ImagerProfile
@receiver(post_save, sender=User)
def add_profile(sender, **kwargs):
if kwargs['created']:
obj = kwargs.get('instance')
new_profile = ImagerProfile(user=obj)
new_profile.save()
|
from django.db.models.signals import post_save
from django.dispatch import receiver
from django.contrib.auth.models import User
from imagerprofile.models import ImagerProfile
@receiver(post_save, sender=User)
def add_profile(sender, instance, **kwargs):
if kwargs['created']:
new_profile = ImagerProfile(user=instance)
new_profile.save()
Fix instance handling in profile handlerfrom django.db.models.signals import post_save
from django.dispatch import receiver
from django.contrib.auth.models import User
from imagerprofile.models import ImagerProfile
@receiver(post_save, sender=User)
def add_profile(sender, **kwargs):
if kwargs['created']:
obj = kwargs.get('instance')
new_profile = ImagerProfile(user=obj)
new_profile.save()
|
<commit_before>from django.db.models.signals import post_save
from django.dispatch import receiver
from django.contrib.auth.models import User
from imagerprofile.models import ImagerProfile
@receiver(post_save, sender=User)
def add_profile(sender, instance, **kwargs):
if kwargs['created']:
new_profile = ImagerProfile(user=instance)
new_profile.save()
<commit_msg>Fix instance handling in profile handler<commit_after>from django.db.models.signals import post_save
from django.dispatch import receiver
from django.contrib.auth.models import User
from imagerprofile.models import ImagerProfile
@receiver(post_save, sender=User)
def add_profile(sender, **kwargs):
if kwargs['created']:
obj = kwargs.get('instance')
new_profile = ImagerProfile(user=obj)
new_profile.save()
|
5f2252bc81aa647e938660cdd0834435538c2ea0
|
django_todo/apps/core/views.py
|
django_todo/apps/core/views.py
|
import json
from django.http import HttpResponse
from django.template import RequestContext, loader
from django_todo.apps.core.models import Task
def current_tasks(request):
tasks = Task.objects.filter(is_checked=False)
template = loader.get_template('core/current_tasks.html')
context = RequestContext(request, {
'tasks': tasks,
})
return HttpResponse(template.render(context))
|
import json
from django.shortcuts import render_to_response
from django_todo.apps.core.models import Task
def current_tasks(request):
tasks = Task.objects.filter(is_checked=False)
return render_to_response('core/current_tasks.html', {'tasks': tasks, })
|
Refactor view to use django shortcuts
|
Refactor view to use django shortcuts
|
Python
|
mit
|
maxicecilia/django_todo
|
import json
from django.http import HttpResponse
from django.template import RequestContext, loader
from django_todo.apps.core.models import Task
def current_tasks(request):
tasks = Task.objects.filter(is_checked=False)
template = loader.get_template('core/current_tasks.html')
context = RequestContext(request, {
'tasks': tasks,
})
return HttpResponse(template.render(context))
Refactor view to use django shortcuts
|
import json
from django.shortcuts import render_to_response
from django_todo.apps.core.models import Task
def current_tasks(request):
tasks = Task.objects.filter(is_checked=False)
return render_to_response('core/current_tasks.html', {'tasks': tasks, })
|
<commit_before>import json
from django.http import HttpResponse
from django.template import RequestContext, loader
from django_todo.apps.core.models import Task
def current_tasks(request):
tasks = Task.objects.filter(is_checked=False)
template = loader.get_template('core/current_tasks.html')
context = RequestContext(request, {
'tasks': tasks,
})
return HttpResponse(template.render(context))
<commit_msg>Refactor view to use django shortcuts<commit_after>
|
import json
from django.shortcuts import render_to_response
from django_todo.apps.core.models import Task
def current_tasks(request):
tasks = Task.objects.filter(is_checked=False)
return render_to_response('core/current_tasks.html', {'tasks': tasks, })
|
import json
from django.http import HttpResponse
from django.template import RequestContext, loader
from django_todo.apps.core.models import Task
def current_tasks(request):
tasks = Task.objects.filter(is_checked=False)
template = loader.get_template('core/current_tasks.html')
context = RequestContext(request, {
'tasks': tasks,
})
return HttpResponse(template.render(context))
Refactor view to use django shortcutsimport json
from django.shortcuts import render_to_response
from django_todo.apps.core.models import Task
def current_tasks(request):
tasks = Task.objects.filter(is_checked=False)
return render_to_response('core/current_tasks.html', {'tasks': tasks, })
|
<commit_before>import json
from django.http import HttpResponse
from django.template import RequestContext, loader
from django_todo.apps.core.models import Task
def current_tasks(request):
tasks = Task.objects.filter(is_checked=False)
template = loader.get_template('core/current_tasks.html')
context = RequestContext(request, {
'tasks': tasks,
})
return HttpResponse(template.render(context))
<commit_msg>Refactor view to use django shortcuts<commit_after>import json
from django.shortcuts import render_to_response
from django_todo.apps.core.models import Task
def current_tasks(request):
tasks = Task.objects.filter(is_checked=False)
return render_to_response('core/current_tasks.html', {'tasks': tasks, })
|
2512ff39651d55c2c17ad1b4e05a0fc5d0bee415
|
indra/tests/test_chebi_client.py
|
indra/tests/test_chebi_client.py
|
from __future__ import absolute_import, print_function, unicode_literals
from builtins import dict, str
from indra.databases import chebi_client
from indra.util import unicode_strs
from nose.plugins.attrib import attr
def test_read_chebi_to_pubchem():
(ctop, ptoc) = chebi_client._read_chebi_to_pubchem()
assert ctop['85673'] == '252150010'
assert ptoc['252150010'] == '85673'
assert unicode_strs((ctop, ptoc))
def test_read_chebi_to_chembl():
ctoc = chebi_client._read_chebi_to_chembl()
assert ctoc['50729'] == 'CHEMBL58'
assert unicode_strs(ctoc)
def test_cas_to_chebi():
assert chebi_client.get_chebi_id_from_cas('23261-20-3') == '18035'
assert chebi_client.get_chebi_id_from_cas('100-51-6') == '17987'
assert chebi_client.get_chebi_id_from_cas('-1') is None
|
from __future__ import absolute_import, print_function, unicode_literals
from builtins import dict, str
from indra.databases import chebi_client
from indra.util import unicode_strs
from nose.plugins.attrib import attr
def test_read_chebi_to_pubchem():
(ctop, ptoc) = chebi_client._read_chebi_to_pubchem()
assert ctop['85673'] == '91481662'
assert ptoc['91481662'] == '85673'
assert unicode_strs((ctop, ptoc))
def test_read_chebi_to_chembl():
ctoc = chebi_client._read_chebi_to_chembl()
assert ctoc['50729'] == 'CHEMBL58'
assert unicode_strs(ctoc)
def test_cas_to_chebi():
assert chebi_client.get_chebi_id_from_cas('23261-20-3') == '18035'
assert chebi_client.get_chebi_id_from_cas('100-51-6') == '17987'
assert chebi_client.get_chebi_id_from_cas('-1') is None
|
Fix ChEBI to Pubchem mapping test
|
Fix ChEBI to Pubchem mapping test
|
Python
|
bsd-2-clause
|
johnbachman/indra,johnbachman/belpy,sorgerlab/indra,bgyori/indra,johnbachman/belpy,sorgerlab/indra,pvtodorov/indra,sorgerlab/belpy,bgyori/indra,johnbachman/indra,sorgerlab/belpy,johnbachman/belpy,pvtodorov/indra,sorgerlab/belpy,bgyori/indra,pvtodorov/indra,johnbachman/indra,pvtodorov/indra,sorgerlab/indra
|
from __future__ import absolute_import, print_function, unicode_literals
from builtins import dict, str
from indra.databases import chebi_client
from indra.util import unicode_strs
from nose.plugins.attrib import attr
def test_read_chebi_to_pubchem():
(ctop, ptoc) = chebi_client._read_chebi_to_pubchem()
assert ctop['85673'] == '252150010'
assert ptoc['252150010'] == '85673'
assert unicode_strs((ctop, ptoc))
def test_read_chebi_to_chembl():
ctoc = chebi_client._read_chebi_to_chembl()
assert ctoc['50729'] == 'CHEMBL58'
assert unicode_strs(ctoc)
def test_cas_to_chebi():
assert chebi_client.get_chebi_id_from_cas('23261-20-3') == '18035'
assert chebi_client.get_chebi_id_from_cas('100-51-6') == '17987'
assert chebi_client.get_chebi_id_from_cas('-1') is None
Fix ChEBI to Pubchem mapping test
|
from __future__ import absolute_import, print_function, unicode_literals
from builtins import dict, str
from indra.databases import chebi_client
from indra.util import unicode_strs
from nose.plugins.attrib import attr
def test_read_chebi_to_pubchem():
(ctop, ptoc) = chebi_client._read_chebi_to_pubchem()
assert ctop['85673'] == '91481662'
assert ptoc['91481662'] == '85673'
assert unicode_strs((ctop, ptoc))
def test_read_chebi_to_chembl():
ctoc = chebi_client._read_chebi_to_chembl()
assert ctoc['50729'] == 'CHEMBL58'
assert unicode_strs(ctoc)
def test_cas_to_chebi():
assert chebi_client.get_chebi_id_from_cas('23261-20-3') == '18035'
assert chebi_client.get_chebi_id_from_cas('100-51-6') == '17987'
assert chebi_client.get_chebi_id_from_cas('-1') is None
|
<commit_before>from __future__ import absolute_import, print_function, unicode_literals
from builtins import dict, str
from indra.databases import chebi_client
from indra.util import unicode_strs
from nose.plugins.attrib import attr
def test_read_chebi_to_pubchem():
(ctop, ptoc) = chebi_client._read_chebi_to_pubchem()
assert ctop['85673'] == '252150010'
assert ptoc['252150010'] == '85673'
assert unicode_strs((ctop, ptoc))
def test_read_chebi_to_chembl():
ctoc = chebi_client._read_chebi_to_chembl()
assert ctoc['50729'] == 'CHEMBL58'
assert unicode_strs(ctoc)
def test_cas_to_chebi():
assert chebi_client.get_chebi_id_from_cas('23261-20-3') == '18035'
assert chebi_client.get_chebi_id_from_cas('100-51-6') == '17987'
assert chebi_client.get_chebi_id_from_cas('-1') is None
<commit_msg>Fix ChEBI to Pubchem mapping test<commit_after>
|
from __future__ import absolute_import, print_function, unicode_literals
from builtins import dict, str
from indra.databases import chebi_client
from indra.util import unicode_strs
from nose.plugins.attrib import attr
def test_read_chebi_to_pubchem():
(ctop, ptoc) = chebi_client._read_chebi_to_pubchem()
assert ctop['85673'] == '91481662'
assert ptoc['91481662'] == '85673'
assert unicode_strs((ctop, ptoc))
def test_read_chebi_to_chembl():
ctoc = chebi_client._read_chebi_to_chembl()
assert ctoc['50729'] == 'CHEMBL58'
assert unicode_strs(ctoc)
def test_cas_to_chebi():
assert chebi_client.get_chebi_id_from_cas('23261-20-3') == '18035'
assert chebi_client.get_chebi_id_from_cas('100-51-6') == '17987'
assert chebi_client.get_chebi_id_from_cas('-1') is None
|
from __future__ import absolute_import, print_function, unicode_literals
from builtins import dict, str
from indra.databases import chebi_client
from indra.util import unicode_strs
from nose.plugins.attrib import attr
def test_read_chebi_to_pubchem():
(ctop, ptoc) = chebi_client._read_chebi_to_pubchem()
assert ctop['85673'] == '252150010'
assert ptoc['252150010'] == '85673'
assert unicode_strs((ctop, ptoc))
def test_read_chebi_to_chembl():
ctoc = chebi_client._read_chebi_to_chembl()
assert ctoc['50729'] == 'CHEMBL58'
assert unicode_strs(ctoc)
def test_cas_to_chebi():
assert chebi_client.get_chebi_id_from_cas('23261-20-3') == '18035'
assert chebi_client.get_chebi_id_from_cas('100-51-6') == '17987'
assert chebi_client.get_chebi_id_from_cas('-1') is None
Fix ChEBI to Pubchem mapping testfrom __future__ import absolute_import, print_function, unicode_literals
from builtins import dict, str
from indra.databases import chebi_client
from indra.util import unicode_strs
from nose.plugins.attrib import attr
def test_read_chebi_to_pubchem():
(ctop, ptoc) = chebi_client._read_chebi_to_pubchem()
assert ctop['85673'] == '91481662'
assert ptoc['91481662'] == '85673'
assert unicode_strs((ctop, ptoc))
def test_read_chebi_to_chembl():
ctoc = chebi_client._read_chebi_to_chembl()
assert ctoc['50729'] == 'CHEMBL58'
assert unicode_strs(ctoc)
def test_cas_to_chebi():
assert chebi_client.get_chebi_id_from_cas('23261-20-3') == '18035'
assert chebi_client.get_chebi_id_from_cas('100-51-6') == '17987'
assert chebi_client.get_chebi_id_from_cas('-1') is None
|
<commit_before>from __future__ import absolute_import, print_function, unicode_literals
from builtins import dict, str
from indra.databases import chebi_client
from indra.util import unicode_strs
from nose.plugins.attrib import attr
def test_read_chebi_to_pubchem():
(ctop, ptoc) = chebi_client._read_chebi_to_pubchem()
assert ctop['85673'] == '252150010'
assert ptoc['252150010'] == '85673'
assert unicode_strs((ctop, ptoc))
def test_read_chebi_to_chembl():
ctoc = chebi_client._read_chebi_to_chembl()
assert ctoc['50729'] == 'CHEMBL58'
assert unicode_strs(ctoc)
def test_cas_to_chebi():
assert chebi_client.get_chebi_id_from_cas('23261-20-3') == '18035'
assert chebi_client.get_chebi_id_from_cas('100-51-6') == '17987'
assert chebi_client.get_chebi_id_from_cas('-1') is None
<commit_msg>Fix ChEBI to Pubchem mapping test<commit_after>from __future__ import absolute_import, print_function, unicode_literals
from builtins import dict, str
from indra.databases import chebi_client
from indra.util import unicode_strs
from nose.plugins.attrib import attr
def test_read_chebi_to_pubchem():
(ctop, ptoc) = chebi_client._read_chebi_to_pubchem()
assert ctop['85673'] == '91481662'
assert ptoc['91481662'] == '85673'
assert unicode_strs((ctop, ptoc))
def test_read_chebi_to_chembl():
ctoc = chebi_client._read_chebi_to_chembl()
assert ctoc['50729'] == 'CHEMBL58'
assert unicode_strs(ctoc)
def test_cas_to_chebi():
assert chebi_client.get_chebi_id_from_cas('23261-20-3') == '18035'
assert chebi_client.get_chebi_id_from_cas('100-51-6') == '17987'
assert chebi_client.get_chebi_id_from_cas('-1') is None
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.