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
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
351815d8da1dc1b2227e8fd832e690f8aee47747
|
setup.py
|
setup.py
|
import codecs
from setuptools import setup
lines = codecs.open('README', 'r', 'utf-8').readlines()[3:]
lines.extend(codecs.open('CHANGES', 'r', 'utf-8').readlines()[1:])
desc = ''.join(lines).lstrip()
import translitcodec
version = translitcodec.__version__
setup(name='translitcodec',
version=version,
description='Unicode to 8-bit charset transliteration codec',
long_description=desc,
author='Jason Kirtland',
author_email='jek@discorporate.us',
url='https://github.com/claudep/translitcodec',
packages=['translitcodec'],
license='MIT License',
python_requires='>=3',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: Implementation :: CPython',
'Topic :: Software Development :: Libraries',
'Topic :: Utilities',
],
)
|
import codecs
from setuptools import setup
lines = codecs.open('README', 'r', 'utf-8').readlines()[3:]
lines.append('\n')
lines.extend(codecs.open('CHANGES', 'r', 'utf-8').readlines()[1:])
desc = ''.join(lines).lstrip()
import translitcodec
version = translitcodec.__version__
setup(name='translitcodec',
version=version,
description='Unicode to 8-bit charset transliteration codec',
long_description=desc,
long_description_content_type='text/x-rst',
author='Jason Kirtland',
author_email='jek@discorporate.us',
url='https://github.com/claudep/translitcodec',
packages=['translitcodec'],
license='MIT License',
python_requires='>=3',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: Implementation :: CPython',
'Topic :: Software Development :: Libraries',
'Topic :: Utilities',
],
)
|
Add blank line between README and CHANGES in long_description
|
Add blank line between README and CHANGES in long_description
|
Python
|
mit
|
claudep/translitcodec,claudep/translitcodec
|
import codecs
from setuptools import setup
lines = codecs.open('README', 'r', 'utf-8').readlines()[3:]
lines.extend(codecs.open('CHANGES', 'r', 'utf-8').readlines()[1:])
desc = ''.join(lines).lstrip()
import translitcodec
version = translitcodec.__version__
setup(name='translitcodec',
version=version,
description='Unicode to 8-bit charset transliteration codec',
long_description=desc,
author='Jason Kirtland',
author_email='jek@discorporate.us',
url='https://github.com/claudep/translitcodec',
packages=['translitcodec'],
license='MIT License',
python_requires='>=3',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: Implementation :: CPython',
'Topic :: Software Development :: Libraries',
'Topic :: Utilities',
],
)
Add blank line between README and CHANGES in long_description
|
import codecs
from setuptools import setup
lines = codecs.open('README', 'r', 'utf-8').readlines()[3:]
lines.append('\n')
lines.extend(codecs.open('CHANGES', 'r', 'utf-8').readlines()[1:])
desc = ''.join(lines).lstrip()
import translitcodec
version = translitcodec.__version__
setup(name='translitcodec',
version=version,
description='Unicode to 8-bit charset transliteration codec',
long_description=desc,
long_description_content_type='text/x-rst',
author='Jason Kirtland',
author_email='jek@discorporate.us',
url='https://github.com/claudep/translitcodec',
packages=['translitcodec'],
license='MIT License',
python_requires='>=3',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: Implementation :: CPython',
'Topic :: Software Development :: Libraries',
'Topic :: Utilities',
],
)
|
<commit_before>import codecs
from setuptools import setup
lines = codecs.open('README', 'r', 'utf-8').readlines()[3:]
lines.extend(codecs.open('CHANGES', 'r', 'utf-8').readlines()[1:])
desc = ''.join(lines).lstrip()
import translitcodec
version = translitcodec.__version__
setup(name='translitcodec',
version=version,
description='Unicode to 8-bit charset transliteration codec',
long_description=desc,
author='Jason Kirtland',
author_email='jek@discorporate.us',
url='https://github.com/claudep/translitcodec',
packages=['translitcodec'],
license='MIT License',
python_requires='>=3',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: Implementation :: CPython',
'Topic :: Software Development :: Libraries',
'Topic :: Utilities',
],
)
<commit_msg>Add blank line between README and CHANGES in long_description<commit_after>
|
import codecs
from setuptools import setup
lines = codecs.open('README', 'r', 'utf-8').readlines()[3:]
lines.append('\n')
lines.extend(codecs.open('CHANGES', 'r', 'utf-8').readlines()[1:])
desc = ''.join(lines).lstrip()
import translitcodec
version = translitcodec.__version__
setup(name='translitcodec',
version=version,
description='Unicode to 8-bit charset transliteration codec',
long_description=desc,
long_description_content_type='text/x-rst',
author='Jason Kirtland',
author_email='jek@discorporate.us',
url='https://github.com/claudep/translitcodec',
packages=['translitcodec'],
license='MIT License',
python_requires='>=3',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: Implementation :: CPython',
'Topic :: Software Development :: Libraries',
'Topic :: Utilities',
],
)
|
import codecs
from setuptools import setup
lines = codecs.open('README', 'r', 'utf-8').readlines()[3:]
lines.extend(codecs.open('CHANGES', 'r', 'utf-8').readlines()[1:])
desc = ''.join(lines).lstrip()
import translitcodec
version = translitcodec.__version__
setup(name='translitcodec',
version=version,
description='Unicode to 8-bit charset transliteration codec',
long_description=desc,
author='Jason Kirtland',
author_email='jek@discorporate.us',
url='https://github.com/claudep/translitcodec',
packages=['translitcodec'],
license='MIT License',
python_requires='>=3',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: Implementation :: CPython',
'Topic :: Software Development :: Libraries',
'Topic :: Utilities',
],
)
Add blank line between README and CHANGES in long_descriptionimport codecs
from setuptools import setup
lines = codecs.open('README', 'r', 'utf-8').readlines()[3:]
lines.append('\n')
lines.extend(codecs.open('CHANGES', 'r', 'utf-8').readlines()[1:])
desc = ''.join(lines).lstrip()
import translitcodec
version = translitcodec.__version__
setup(name='translitcodec',
version=version,
description='Unicode to 8-bit charset transliteration codec',
long_description=desc,
long_description_content_type='text/x-rst',
author='Jason Kirtland',
author_email='jek@discorporate.us',
url='https://github.com/claudep/translitcodec',
packages=['translitcodec'],
license='MIT License',
python_requires='>=3',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: Implementation :: CPython',
'Topic :: Software Development :: Libraries',
'Topic :: Utilities',
],
)
|
<commit_before>import codecs
from setuptools import setup
lines = codecs.open('README', 'r', 'utf-8').readlines()[3:]
lines.extend(codecs.open('CHANGES', 'r', 'utf-8').readlines()[1:])
desc = ''.join(lines).lstrip()
import translitcodec
version = translitcodec.__version__
setup(name='translitcodec',
version=version,
description='Unicode to 8-bit charset transliteration codec',
long_description=desc,
author='Jason Kirtland',
author_email='jek@discorporate.us',
url='https://github.com/claudep/translitcodec',
packages=['translitcodec'],
license='MIT License',
python_requires='>=3',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: Implementation :: CPython',
'Topic :: Software Development :: Libraries',
'Topic :: Utilities',
],
)
<commit_msg>Add blank line between README and CHANGES in long_description<commit_after>import codecs
from setuptools import setup
lines = codecs.open('README', 'r', 'utf-8').readlines()[3:]
lines.append('\n')
lines.extend(codecs.open('CHANGES', 'r', 'utf-8').readlines()[1:])
desc = ''.join(lines).lstrip()
import translitcodec
version = translitcodec.__version__
setup(name='translitcodec',
version=version,
description='Unicode to 8-bit charset transliteration codec',
long_description=desc,
long_description_content_type='text/x-rst',
author='Jason Kirtland',
author_email='jek@discorporate.us',
url='https://github.com/claudep/translitcodec',
packages=['translitcodec'],
license='MIT License',
python_requires='>=3',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: Implementation :: CPython',
'Topic :: Software Development :: Libraries',
'Topic :: Utilities',
],
)
|
748f6f932be1feda15fc27eed7cbe1cff934fb35
|
setup.py
|
setup.py
|
#!/usr/bin/env python3.6
# Copyright (C) 2018 Andrew Hamilton. All rights reserved.
# Licensed under the Artistic License 2.0.
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(name="vigil",
version="17.06",
description=("Vigil maintains an up-to-date set of reports for every"
" file in a codebase."),
url="https://github.com/ahamilton/vigil",
author="Andrew Hamilton",
license="Artistic 2.0",
packages=["vigil", "vigil.urwid"],
package_data={"vigil": ["LS_COLORS.sh"]},
entry_points={"console_scripts":
["vigil=vigil.__main__:entry_point",
"vigil-worker=vigil.worker:main"]})
|
#!/usr/bin/env python3.6
# Copyright (C) 2018 Andrew Hamilton. All rights reserved.
# Licensed under the Artistic License 2.0.
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(name="vigil",
version="17.06",
description=("Vigil maintains an up-to-date set of reports for every"
" file in a codebase."),
url="https://github.com/ahamilton/vigil",
author="Andrew Hamilton",
license="Artistic 2.0",
packages=["vigil", "vigil.urwid"],
package_data={"vigil": ["LS_COLORS.sh", "tools.yaml"]},
entry_points={"console_scripts":
["vigil=vigil.__main__:entry_point",
"vigil-worker=vigil.worker:main"]})
|
Fix vigil only working in dev mode.
|
Fix vigil only working in dev mode.
- Be careful in future with pip dev mode. Unfortunately its
possible for code to work in dev mode but not when deployed.
For example in this case, when files aren't listed in setup.py
package_data.
|
Python
|
artistic-2.0
|
ahamilton/vigil,ahamilton/vigil,ahamilton/vigil,ahamilton/vigil,ahamilton/vigil,ahamilton/vigil,ahamilton/vigil,ahamilton/vigil,ahamilton/vigil
|
#!/usr/bin/env python3.6
# Copyright (C) 2018 Andrew Hamilton. All rights reserved.
# Licensed under the Artistic License 2.0.
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(name="vigil",
version="17.06",
description=("Vigil maintains an up-to-date set of reports for every"
" file in a codebase."),
url="https://github.com/ahamilton/vigil",
author="Andrew Hamilton",
license="Artistic 2.0",
packages=["vigil", "vigil.urwid"],
package_data={"vigil": ["LS_COLORS.sh"]},
entry_points={"console_scripts":
["vigil=vigil.__main__:entry_point",
"vigil-worker=vigil.worker:main"]})
Fix vigil only working in dev mode.
- Be careful in future with pip dev mode. Unfortunately its
possible for code to work in dev mode but not when deployed.
For example in this case, when files aren't listed in setup.py
package_data.
|
#!/usr/bin/env python3.6
# Copyright (C) 2018 Andrew Hamilton. All rights reserved.
# Licensed under the Artistic License 2.0.
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(name="vigil",
version="17.06",
description=("Vigil maintains an up-to-date set of reports for every"
" file in a codebase."),
url="https://github.com/ahamilton/vigil",
author="Andrew Hamilton",
license="Artistic 2.0",
packages=["vigil", "vigil.urwid"],
package_data={"vigil": ["LS_COLORS.sh", "tools.yaml"]},
entry_points={"console_scripts":
["vigil=vigil.__main__:entry_point",
"vigil-worker=vigil.worker:main"]})
|
<commit_before>#!/usr/bin/env python3.6
# Copyright (C) 2018 Andrew Hamilton. All rights reserved.
# Licensed under the Artistic License 2.0.
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(name="vigil",
version="17.06",
description=("Vigil maintains an up-to-date set of reports for every"
" file in a codebase."),
url="https://github.com/ahamilton/vigil",
author="Andrew Hamilton",
license="Artistic 2.0",
packages=["vigil", "vigil.urwid"],
package_data={"vigil": ["LS_COLORS.sh"]},
entry_points={"console_scripts":
["vigil=vigil.__main__:entry_point",
"vigil-worker=vigil.worker:main"]})
<commit_msg>Fix vigil only working in dev mode.
- Be careful in future with pip dev mode. Unfortunately its
possible for code to work in dev mode but not when deployed.
For example in this case, when files aren't listed in setup.py
package_data.<commit_after>
|
#!/usr/bin/env python3.6
# Copyright (C) 2018 Andrew Hamilton. All rights reserved.
# Licensed under the Artistic License 2.0.
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(name="vigil",
version="17.06",
description=("Vigil maintains an up-to-date set of reports for every"
" file in a codebase."),
url="https://github.com/ahamilton/vigil",
author="Andrew Hamilton",
license="Artistic 2.0",
packages=["vigil", "vigil.urwid"],
package_data={"vigil": ["LS_COLORS.sh", "tools.yaml"]},
entry_points={"console_scripts":
["vigil=vigil.__main__:entry_point",
"vigil-worker=vigil.worker:main"]})
|
#!/usr/bin/env python3.6
# Copyright (C) 2018 Andrew Hamilton. All rights reserved.
# Licensed under the Artistic License 2.0.
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(name="vigil",
version="17.06",
description=("Vigil maintains an up-to-date set of reports for every"
" file in a codebase."),
url="https://github.com/ahamilton/vigil",
author="Andrew Hamilton",
license="Artistic 2.0",
packages=["vigil", "vigil.urwid"],
package_data={"vigil": ["LS_COLORS.sh"]},
entry_points={"console_scripts":
["vigil=vigil.__main__:entry_point",
"vigil-worker=vigil.worker:main"]})
Fix vigil only working in dev mode.
- Be careful in future with pip dev mode. Unfortunately its
possible for code to work in dev mode but not when deployed.
For example in this case, when files aren't listed in setup.py
package_data.#!/usr/bin/env python3.6
# Copyright (C) 2018 Andrew Hamilton. All rights reserved.
# Licensed under the Artistic License 2.0.
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(name="vigil",
version="17.06",
description=("Vigil maintains an up-to-date set of reports for every"
" file in a codebase."),
url="https://github.com/ahamilton/vigil",
author="Andrew Hamilton",
license="Artistic 2.0",
packages=["vigil", "vigil.urwid"],
package_data={"vigil": ["LS_COLORS.sh", "tools.yaml"]},
entry_points={"console_scripts":
["vigil=vigil.__main__:entry_point",
"vigil-worker=vigil.worker:main"]})
|
<commit_before>#!/usr/bin/env python3.6
# Copyright (C) 2018 Andrew Hamilton. All rights reserved.
# Licensed under the Artistic License 2.0.
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(name="vigil",
version="17.06",
description=("Vigil maintains an up-to-date set of reports for every"
" file in a codebase."),
url="https://github.com/ahamilton/vigil",
author="Andrew Hamilton",
license="Artistic 2.0",
packages=["vigil", "vigil.urwid"],
package_data={"vigil": ["LS_COLORS.sh"]},
entry_points={"console_scripts":
["vigil=vigil.__main__:entry_point",
"vigil-worker=vigil.worker:main"]})
<commit_msg>Fix vigil only working in dev mode.
- Be careful in future with pip dev mode. Unfortunately its
possible for code to work in dev mode but not when deployed.
For example in this case, when files aren't listed in setup.py
package_data.<commit_after>#!/usr/bin/env python3.6
# Copyright (C) 2018 Andrew Hamilton. All rights reserved.
# Licensed under the Artistic License 2.0.
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(name="vigil",
version="17.06",
description=("Vigil maintains an up-to-date set of reports for every"
" file in a codebase."),
url="https://github.com/ahamilton/vigil",
author="Andrew Hamilton",
license="Artistic 2.0",
packages=["vigil", "vigil.urwid"],
package_data={"vigil": ["LS_COLORS.sh", "tools.yaml"]},
entry_points={"console_scripts":
["vigil=vigil.__main__:entry_point",
"vigil-worker=vigil.worker:main"]})
|
17ed284dd2c084d95fdbae221cbf9e701827f16d
|
setup.py
|
setup.py
|
# -*- coding: UTF-8 -*-
from distutils.core import setup
from setuptools import find_packages
from dodgy import __pkginfo__
_packages = find_packages(exclude=["*.tests", "*.tests.*", "tests.*", "tests"])
_short_description = "Dodgy: Searches for dodgy looking lines in Python code"
_install_requires = []
_classifiers = (
'Development Status :: 7 - Inactive',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: Unix',
'Topic :: Software Development :: Quality Assurance',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
)
setup(
name='dodgy',
url='https://github.com/landscapeio/dodgy',
author='landscape.io',
author_email='code@landscape.io',
description=_short_description,
install_requires=_install_requires,
entry_points={
'console_scripts': [
'dodgy = dodgy.run:main',
],
},
version=__pkginfo__.get_version(),
packages=_packages,
license='MIT',
keywords='check for suspicious code',
classifiers=_classifiers
)
|
# -*- coding: UTF-8 -*-
from distutils.core import setup
from setuptools import find_packages
from dodgy import __pkginfo__
_packages = find_packages(exclude=["*.tests", "*.tests.*", "tests.*", "tests"])
_short_description = "Searches for dodgy looking lines in Python code"
_install_requires = []
_classifiers = (
'Development Status :: 7 - Inactive',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: Unix',
'Topic :: Software Development :: Quality Assurance',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
)
setup(
name='dodgy',
url='https://github.com/landscapeio/dodgy',
author='landscape.io',
author_email='code@landscape.io',
description=_short_description,
install_requires=_install_requires,
entry_points={
'console_scripts': [
'dodgy = dodgy.run:main',
],
},
version=__pkginfo__.get_version(),
packages=_packages,
license='MIT',
keywords='check for suspicious code',
classifiers=_classifiers
)
|
Remove dodgy mention from _short_description
|
Remove dodgy mention from _short_description
The package name shouldn't be in the description.
|
Python
|
mit
|
landscapeio/dodgy
|
# -*- coding: UTF-8 -*-
from distutils.core import setup
from setuptools import find_packages
from dodgy import __pkginfo__
_packages = find_packages(exclude=["*.tests", "*.tests.*", "tests.*", "tests"])
_short_description = "Dodgy: Searches for dodgy looking lines in Python code"
_install_requires = []
_classifiers = (
'Development Status :: 7 - Inactive',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: Unix',
'Topic :: Software Development :: Quality Assurance',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
)
setup(
name='dodgy',
url='https://github.com/landscapeio/dodgy',
author='landscape.io',
author_email='code@landscape.io',
description=_short_description,
install_requires=_install_requires,
entry_points={
'console_scripts': [
'dodgy = dodgy.run:main',
],
},
version=__pkginfo__.get_version(),
packages=_packages,
license='MIT',
keywords='check for suspicious code',
classifiers=_classifiers
)
Remove dodgy mention from _short_description
The package name shouldn't be in the description.
|
# -*- coding: UTF-8 -*-
from distutils.core import setup
from setuptools import find_packages
from dodgy import __pkginfo__
_packages = find_packages(exclude=["*.tests", "*.tests.*", "tests.*", "tests"])
_short_description = "Searches for dodgy looking lines in Python code"
_install_requires = []
_classifiers = (
'Development Status :: 7 - Inactive',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: Unix',
'Topic :: Software Development :: Quality Assurance',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
)
setup(
name='dodgy',
url='https://github.com/landscapeio/dodgy',
author='landscape.io',
author_email='code@landscape.io',
description=_short_description,
install_requires=_install_requires,
entry_points={
'console_scripts': [
'dodgy = dodgy.run:main',
],
},
version=__pkginfo__.get_version(),
packages=_packages,
license='MIT',
keywords='check for suspicious code',
classifiers=_classifiers
)
|
<commit_before># -*- coding: UTF-8 -*-
from distutils.core import setup
from setuptools import find_packages
from dodgy import __pkginfo__
_packages = find_packages(exclude=["*.tests", "*.tests.*", "tests.*", "tests"])
_short_description = "Dodgy: Searches for dodgy looking lines in Python code"
_install_requires = []
_classifiers = (
'Development Status :: 7 - Inactive',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: Unix',
'Topic :: Software Development :: Quality Assurance',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
)
setup(
name='dodgy',
url='https://github.com/landscapeio/dodgy',
author='landscape.io',
author_email='code@landscape.io',
description=_short_description,
install_requires=_install_requires,
entry_points={
'console_scripts': [
'dodgy = dodgy.run:main',
],
},
version=__pkginfo__.get_version(),
packages=_packages,
license='MIT',
keywords='check for suspicious code',
classifiers=_classifiers
)
<commit_msg>Remove dodgy mention from _short_description
The package name shouldn't be in the description.<commit_after>
|
# -*- coding: UTF-8 -*-
from distutils.core import setup
from setuptools import find_packages
from dodgy import __pkginfo__
_packages = find_packages(exclude=["*.tests", "*.tests.*", "tests.*", "tests"])
_short_description = "Searches for dodgy looking lines in Python code"
_install_requires = []
_classifiers = (
'Development Status :: 7 - Inactive',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: Unix',
'Topic :: Software Development :: Quality Assurance',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
)
setup(
name='dodgy',
url='https://github.com/landscapeio/dodgy',
author='landscape.io',
author_email='code@landscape.io',
description=_short_description,
install_requires=_install_requires,
entry_points={
'console_scripts': [
'dodgy = dodgy.run:main',
],
},
version=__pkginfo__.get_version(),
packages=_packages,
license='MIT',
keywords='check for suspicious code',
classifiers=_classifiers
)
|
# -*- coding: UTF-8 -*-
from distutils.core import setup
from setuptools import find_packages
from dodgy import __pkginfo__
_packages = find_packages(exclude=["*.tests", "*.tests.*", "tests.*", "tests"])
_short_description = "Dodgy: Searches for dodgy looking lines in Python code"
_install_requires = []
_classifiers = (
'Development Status :: 7 - Inactive',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: Unix',
'Topic :: Software Development :: Quality Assurance',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
)
setup(
name='dodgy',
url='https://github.com/landscapeio/dodgy',
author='landscape.io',
author_email='code@landscape.io',
description=_short_description,
install_requires=_install_requires,
entry_points={
'console_scripts': [
'dodgy = dodgy.run:main',
],
},
version=__pkginfo__.get_version(),
packages=_packages,
license='MIT',
keywords='check for suspicious code',
classifiers=_classifiers
)
Remove dodgy mention from _short_description
The package name shouldn't be in the description.# -*- coding: UTF-8 -*-
from distutils.core import setup
from setuptools import find_packages
from dodgy import __pkginfo__
_packages = find_packages(exclude=["*.tests", "*.tests.*", "tests.*", "tests"])
_short_description = "Searches for dodgy looking lines in Python code"
_install_requires = []
_classifiers = (
'Development Status :: 7 - Inactive',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: Unix',
'Topic :: Software Development :: Quality Assurance',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
)
setup(
name='dodgy',
url='https://github.com/landscapeio/dodgy',
author='landscape.io',
author_email='code@landscape.io',
description=_short_description,
install_requires=_install_requires,
entry_points={
'console_scripts': [
'dodgy = dodgy.run:main',
],
},
version=__pkginfo__.get_version(),
packages=_packages,
license='MIT',
keywords='check for suspicious code',
classifiers=_classifiers
)
|
<commit_before># -*- coding: UTF-8 -*-
from distutils.core import setup
from setuptools import find_packages
from dodgy import __pkginfo__
_packages = find_packages(exclude=["*.tests", "*.tests.*", "tests.*", "tests"])
_short_description = "Dodgy: Searches for dodgy looking lines in Python code"
_install_requires = []
_classifiers = (
'Development Status :: 7 - Inactive',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: Unix',
'Topic :: Software Development :: Quality Assurance',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
)
setup(
name='dodgy',
url='https://github.com/landscapeio/dodgy',
author='landscape.io',
author_email='code@landscape.io',
description=_short_description,
install_requires=_install_requires,
entry_points={
'console_scripts': [
'dodgy = dodgy.run:main',
],
},
version=__pkginfo__.get_version(),
packages=_packages,
license='MIT',
keywords='check for suspicious code',
classifiers=_classifiers
)
<commit_msg>Remove dodgy mention from _short_description
The package name shouldn't be in the description.<commit_after># -*- coding: UTF-8 -*-
from distutils.core import setup
from setuptools import find_packages
from dodgy import __pkginfo__
_packages = find_packages(exclude=["*.tests", "*.tests.*", "tests.*", "tests"])
_short_description = "Searches for dodgy looking lines in Python code"
_install_requires = []
_classifiers = (
'Development Status :: 7 - Inactive',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: Unix',
'Topic :: Software Development :: Quality Assurance',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
)
setup(
name='dodgy',
url='https://github.com/landscapeio/dodgy',
author='landscape.io',
author_email='code@landscape.io',
description=_short_description,
install_requires=_install_requires,
entry_points={
'console_scripts': [
'dodgy = dodgy.run:main',
],
},
version=__pkginfo__.get_version(),
packages=_packages,
license='MIT',
keywords='check for suspicious code',
classifiers=_classifiers
)
|
bec0984d0fe1cd6820f9e10dbc97b5c872c41a87
|
setup.py
|
setup.py
|
#!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name="txyam",
version="0.4+weasyl.1",
description="Yet Another Memcached (YAM) client for Twisted.",
author="Brian Muller",
author_email="bamuller@gmail.com",
license="MIT",
url="http://github.com/bmuller/txyam",
packages=find_packages(),
install_requires=[
'twisted>=12.0',
'consistent_hash',
],
extras_require={
'sync': [
'crochet>=1.2.0',
],
},
)
|
#!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name="txyam2",
version="0.5.1+weasyl.1",
description="Yet Another Memcached (YAM) client for Twisted.",
author="Brian Muller",
author_email="bamuller@gmail.com",
license="MIT",
url="http://github.com/bmuller/txyam",
packages=find_packages(),
install_requires=[
'twisted>=12.0',
'consistent_hash',
],
extras_require={
'sync': [
'crochet>=1.2.0',
],
},
)
|
Update local version identifier. Name txyam2 per dev discussion.
|
Update local version identifier. Name txyam2 per dev discussion.
|
Python
|
mit
|
Weasyl/txyam2
|
#!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name="txyam",
version="0.4+weasyl.1",
description="Yet Another Memcached (YAM) client for Twisted.",
author="Brian Muller",
author_email="bamuller@gmail.com",
license="MIT",
url="http://github.com/bmuller/txyam",
packages=find_packages(),
install_requires=[
'twisted>=12.0',
'consistent_hash',
],
extras_require={
'sync': [
'crochet>=1.2.0',
],
},
)
Update local version identifier. Name txyam2 per dev discussion.
|
#!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name="txyam2",
version="0.5.1+weasyl.1",
description="Yet Another Memcached (YAM) client for Twisted.",
author="Brian Muller",
author_email="bamuller@gmail.com",
license="MIT",
url="http://github.com/bmuller/txyam",
packages=find_packages(),
install_requires=[
'twisted>=12.0',
'consistent_hash',
],
extras_require={
'sync': [
'crochet>=1.2.0',
],
},
)
|
<commit_before>#!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name="txyam",
version="0.4+weasyl.1",
description="Yet Another Memcached (YAM) client for Twisted.",
author="Brian Muller",
author_email="bamuller@gmail.com",
license="MIT",
url="http://github.com/bmuller/txyam",
packages=find_packages(),
install_requires=[
'twisted>=12.0',
'consistent_hash',
],
extras_require={
'sync': [
'crochet>=1.2.0',
],
},
)
<commit_msg>Update local version identifier. Name txyam2 per dev discussion.<commit_after>
|
#!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name="txyam2",
version="0.5.1+weasyl.1",
description="Yet Another Memcached (YAM) client for Twisted.",
author="Brian Muller",
author_email="bamuller@gmail.com",
license="MIT",
url="http://github.com/bmuller/txyam",
packages=find_packages(),
install_requires=[
'twisted>=12.0',
'consistent_hash',
],
extras_require={
'sync': [
'crochet>=1.2.0',
],
},
)
|
#!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name="txyam",
version="0.4+weasyl.1",
description="Yet Another Memcached (YAM) client for Twisted.",
author="Brian Muller",
author_email="bamuller@gmail.com",
license="MIT",
url="http://github.com/bmuller/txyam",
packages=find_packages(),
install_requires=[
'twisted>=12.0',
'consistent_hash',
],
extras_require={
'sync': [
'crochet>=1.2.0',
],
},
)
Update local version identifier. Name txyam2 per dev discussion.#!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name="txyam2",
version="0.5.1+weasyl.1",
description="Yet Another Memcached (YAM) client for Twisted.",
author="Brian Muller",
author_email="bamuller@gmail.com",
license="MIT",
url="http://github.com/bmuller/txyam",
packages=find_packages(),
install_requires=[
'twisted>=12.0',
'consistent_hash',
],
extras_require={
'sync': [
'crochet>=1.2.0',
],
},
)
|
<commit_before>#!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name="txyam",
version="0.4+weasyl.1",
description="Yet Another Memcached (YAM) client for Twisted.",
author="Brian Muller",
author_email="bamuller@gmail.com",
license="MIT",
url="http://github.com/bmuller/txyam",
packages=find_packages(),
install_requires=[
'twisted>=12.0',
'consistent_hash',
],
extras_require={
'sync': [
'crochet>=1.2.0',
],
},
)
<commit_msg>Update local version identifier. Name txyam2 per dev discussion.<commit_after>#!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name="txyam2",
version="0.5.1+weasyl.1",
description="Yet Another Memcached (YAM) client for Twisted.",
author="Brian Muller",
author_email="bamuller@gmail.com",
license="MIT",
url="http://github.com/bmuller/txyam",
packages=find_packages(),
install_requires=[
'twisted>=12.0',
'consistent_hash',
],
extras_require={
'sync': [
'crochet>=1.2.0',
],
},
)
|
51356be94e251b75b8262170ac2f8c2c3a2c5ba6
|
setup.py
|
setup.py
|
#!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name = 'spotter',
version = '1.7',
url = "http://github.com/borntyping/spotter",
author = "Sam Clements",
author_email = "sam@borntyping.co.uk",
description = "A command line tool for watching files and running shell commands when they change.",
long_description = open('README.rst').read(),
license = 'MIT',
classifiers = [
'Development Status :: 4 - Beta',
'Environment :: Console',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Operating System :: Unix',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
'Topic :: Software Development :: Testing',
'Topic :: System :: Monitoring',
'Topic :: Utilities',
],
packages = find_packages(),
entry_points = {
'console_scripts': [
'spotter = spotter:main',
]
},
install_requires = [
'pyinotify==0.9.4',
],
)
|
#!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name = 'spotter',
version = '1.7',
url = "http://github.com/borntyping/spotter",
author = "Sam Clements",
author_email = "sam@borntyping.co.uk",
description = "A command line tool for watching files and running shell commands when they change.",
long_description = open('README.rst').read(),
license = 'MIT',
classifiers = [
'Development Status :: 4 - Beta',
'Environment :: Console',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Operating System :: Unix',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
'Topic :: Software Development :: Testing',
'Topic :: System :: Monitoring',
'Topic :: Utilities',
],
packages = find_packages(),
entry_points = {
'console_scripts': [
'spotter = spotter:main',
]
},
install_requires = [
'pyinotify>=0.9.4',
],
)
|
Allow newer versions of pyinotify
|
Allow newer versions of pyinotify
|
Python
|
mit
|
borntyping/spotter
|
#!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name = 'spotter',
version = '1.7',
url = "http://github.com/borntyping/spotter",
author = "Sam Clements",
author_email = "sam@borntyping.co.uk",
description = "A command line tool for watching files and running shell commands when they change.",
long_description = open('README.rst').read(),
license = 'MIT',
classifiers = [
'Development Status :: 4 - Beta',
'Environment :: Console',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Operating System :: Unix',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
'Topic :: Software Development :: Testing',
'Topic :: System :: Monitoring',
'Topic :: Utilities',
],
packages = find_packages(),
entry_points = {
'console_scripts': [
'spotter = spotter:main',
]
},
install_requires = [
'pyinotify==0.9.4',
],
)
Allow newer versions of pyinotify
|
#!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name = 'spotter',
version = '1.7',
url = "http://github.com/borntyping/spotter",
author = "Sam Clements",
author_email = "sam@borntyping.co.uk",
description = "A command line tool for watching files and running shell commands when they change.",
long_description = open('README.rst').read(),
license = 'MIT',
classifiers = [
'Development Status :: 4 - Beta',
'Environment :: Console',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Operating System :: Unix',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
'Topic :: Software Development :: Testing',
'Topic :: System :: Monitoring',
'Topic :: Utilities',
],
packages = find_packages(),
entry_points = {
'console_scripts': [
'spotter = spotter:main',
]
},
install_requires = [
'pyinotify>=0.9.4',
],
)
|
<commit_before>#!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name = 'spotter',
version = '1.7',
url = "http://github.com/borntyping/spotter",
author = "Sam Clements",
author_email = "sam@borntyping.co.uk",
description = "A command line tool for watching files and running shell commands when they change.",
long_description = open('README.rst').read(),
license = 'MIT',
classifiers = [
'Development Status :: 4 - Beta',
'Environment :: Console',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Operating System :: Unix',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
'Topic :: Software Development :: Testing',
'Topic :: System :: Monitoring',
'Topic :: Utilities',
],
packages = find_packages(),
entry_points = {
'console_scripts': [
'spotter = spotter:main',
]
},
install_requires = [
'pyinotify==0.9.4',
],
)
<commit_msg>Allow newer versions of pyinotify<commit_after>
|
#!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name = 'spotter',
version = '1.7',
url = "http://github.com/borntyping/spotter",
author = "Sam Clements",
author_email = "sam@borntyping.co.uk",
description = "A command line tool for watching files and running shell commands when they change.",
long_description = open('README.rst').read(),
license = 'MIT',
classifiers = [
'Development Status :: 4 - Beta',
'Environment :: Console',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Operating System :: Unix',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
'Topic :: Software Development :: Testing',
'Topic :: System :: Monitoring',
'Topic :: Utilities',
],
packages = find_packages(),
entry_points = {
'console_scripts': [
'spotter = spotter:main',
]
},
install_requires = [
'pyinotify>=0.9.4',
],
)
|
#!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name = 'spotter',
version = '1.7',
url = "http://github.com/borntyping/spotter",
author = "Sam Clements",
author_email = "sam@borntyping.co.uk",
description = "A command line tool for watching files and running shell commands when they change.",
long_description = open('README.rst').read(),
license = 'MIT',
classifiers = [
'Development Status :: 4 - Beta',
'Environment :: Console',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Operating System :: Unix',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
'Topic :: Software Development :: Testing',
'Topic :: System :: Monitoring',
'Topic :: Utilities',
],
packages = find_packages(),
entry_points = {
'console_scripts': [
'spotter = spotter:main',
]
},
install_requires = [
'pyinotify==0.9.4',
],
)
Allow newer versions of pyinotify#!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name = 'spotter',
version = '1.7',
url = "http://github.com/borntyping/spotter",
author = "Sam Clements",
author_email = "sam@borntyping.co.uk",
description = "A command line tool for watching files and running shell commands when they change.",
long_description = open('README.rst').read(),
license = 'MIT',
classifiers = [
'Development Status :: 4 - Beta',
'Environment :: Console',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Operating System :: Unix',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
'Topic :: Software Development :: Testing',
'Topic :: System :: Monitoring',
'Topic :: Utilities',
],
packages = find_packages(),
entry_points = {
'console_scripts': [
'spotter = spotter:main',
]
},
install_requires = [
'pyinotify>=0.9.4',
],
)
|
<commit_before>#!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name = 'spotter',
version = '1.7',
url = "http://github.com/borntyping/spotter",
author = "Sam Clements",
author_email = "sam@borntyping.co.uk",
description = "A command line tool for watching files and running shell commands when they change.",
long_description = open('README.rst').read(),
license = 'MIT',
classifiers = [
'Development Status :: 4 - Beta',
'Environment :: Console',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Operating System :: Unix',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
'Topic :: Software Development :: Testing',
'Topic :: System :: Monitoring',
'Topic :: Utilities',
],
packages = find_packages(),
entry_points = {
'console_scripts': [
'spotter = spotter:main',
]
},
install_requires = [
'pyinotify==0.9.4',
],
)
<commit_msg>Allow newer versions of pyinotify<commit_after>#!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name = 'spotter',
version = '1.7',
url = "http://github.com/borntyping/spotter",
author = "Sam Clements",
author_email = "sam@borntyping.co.uk",
description = "A command line tool for watching files and running shell commands when they change.",
long_description = open('README.rst').read(),
license = 'MIT',
classifiers = [
'Development Status :: 4 - Beta',
'Environment :: Console',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Operating System :: Unix',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
'Topic :: Software Development :: Testing',
'Topic :: System :: Monitoring',
'Topic :: Utilities',
],
packages = find_packages(),
entry_points = {
'console_scripts': [
'spotter = spotter:main',
]
},
install_requires = [
'pyinotify>=0.9.4',
],
)
|
54af02729b1bbac17e5c65337635a46493bd2177
|
setup.py
|
setup.py
|
from setuptools import find_packages, setup
setup(
name='eDisGo',
version='0.0.1',
packages=find_packages(),
url='https://github.com/openego/eDisGo',
license='GNU Affero General Public License v3.0',
author='gplssm, nesnoj',
author_email='',
description='A python package for distribution grid analysis and optimization',
install_requires = [
'dingo>=0.1.0',
'networkx >=1.11',
'shapely >= 1.5.12, <= 1.5.12',
'pandas >=0.19.2, <=0.20.1'
]
)
|
from setuptools import find_packages, setup
from setuptools.command.install import install
import os
BASEPATH='.eDisGo'
class InstallSetup(install):
def run(self):
self.create_edisgo_path()
install.run(self)
@staticmethod
def create_edisgo_path():
edisgo_path = os.path.join(os.path.expanduser('~'), BASEPATH)
data_path = os.path.join(edisgo_path, 'data')
if not os.path.isdir(edisgo_path):
os.mkdir(edisgo_path)
if not os.path.isdir(data_path):
os.mkdir(data_path)
setup(
name='eDisGo',
version='0.0.1',
packages=find_packages(),
url='https://github.com/openego/eDisGo',
license='GNU Affero General Public License v3.0',
author='gplssm, nesnoj',
author_email='',
description='A python package for distribution grid analysis and optimization',
install_requires = [
# 'dingo>=0.1.0',
'networkx >=1.11',
'shapely >= 1.5.12, <= 1.5.12',
'pandas >=0.19.2, <=0.20.1'
],
cmdclass={
'install': InstallSetup}
)
|
Create path ~/.eDisGo on install
|
Create path ~/.eDisGo on install
For all of those already installed eDisGo run
pip3 install -U .
again.
|
Python
|
agpl-3.0
|
openego/eDisGo,openego/eDisGo
|
from setuptools import find_packages, setup
setup(
name='eDisGo',
version='0.0.1',
packages=find_packages(),
url='https://github.com/openego/eDisGo',
license='GNU Affero General Public License v3.0',
author='gplssm, nesnoj',
author_email='',
description='A python package for distribution grid analysis and optimization',
install_requires = [
'dingo>=0.1.0',
'networkx >=1.11',
'shapely >= 1.5.12, <= 1.5.12',
'pandas >=0.19.2, <=0.20.1'
]
)
Create path ~/.eDisGo on install
For all of those already installed eDisGo run
pip3 install -U .
again.
|
from setuptools import find_packages, setup
from setuptools.command.install import install
import os
BASEPATH='.eDisGo'
class InstallSetup(install):
def run(self):
self.create_edisgo_path()
install.run(self)
@staticmethod
def create_edisgo_path():
edisgo_path = os.path.join(os.path.expanduser('~'), BASEPATH)
data_path = os.path.join(edisgo_path, 'data')
if not os.path.isdir(edisgo_path):
os.mkdir(edisgo_path)
if not os.path.isdir(data_path):
os.mkdir(data_path)
setup(
name='eDisGo',
version='0.0.1',
packages=find_packages(),
url='https://github.com/openego/eDisGo',
license='GNU Affero General Public License v3.0',
author='gplssm, nesnoj',
author_email='',
description='A python package for distribution grid analysis and optimization',
install_requires = [
# 'dingo>=0.1.0',
'networkx >=1.11',
'shapely >= 1.5.12, <= 1.5.12',
'pandas >=0.19.2, <=0.20.1'
],
cmdclass={
'install': InstallSetup}
)
|
<commit_before>from setuptools import find_packages, setup
setup(
name='eDisGo',
version='0.0.1',
packages=find_packages(),
url='https://github.com/openego/eDisGo',
license='GNU Affero General Public License v3.0',
author='gplssm, nesnoj',
author_email='',
description='A python package for distribution grid analysis and optimization',
install_requires = [
'dingo>=0.1.0',
'networkx >=1.11',
'shapely >= 1.5.12, <= 1.5.12',
'pandas >=0.19.2, <=0.20.1'
]
)
<commit_msg>Create path ~/.eDisGo on install
For all of those already installed eDisGo run
pip3 install -U .
again.<commit_after>
|
from setuptools import find_packages, setup
from setuptools.command.install import install
import os
BASEPATH='.eDisGo'
class InstallSetup(install):
def run(self):
self.create_edisgo_path()
install.run(self)
@staticmethod
def create_edisgo_path():
edisgo_path = os.path.join(os.path.expanduser('~'), BASEPATH)
data_path = os.path.join(edisgo_path, 'data')
if not os.path.isdir(edisgo_path):
os.mkdir(edisgo_path)
if not os.path.isdir(data_path):
os.mkdir(data_path)
setup(
name='eDisGo',
version='0.0.1',
packages=find_packages(),
url='https://github.com/openego/eDisGo',
license='GNU Affero General Public License v3.0',
author='gplssm, nesnoj',
author_email='',
description='A python package for distribution grid analysis and optimization',
install_requires = [
# 'dingo>=0.1.0',
'networkx >=1.11',
'shapely >= 1.5.12, <= 1.5.12',
'pandas >=0.19.2, <=0.20.1'
],
cmdclass={
'install': InstallSetup}
)
|
from setuptools import find_packages, setup
setup(
name='eDisGo',
version='0.0.1',
packages=find_packages(),
url='https://github.com/openego/eDisGo',
license='GNU Affero General Public License v3.0',
author='gplssm, nesnoj',
author_email='',
description='A python package for distribution grid analysis and optimization',
install_requires = [
'dingo>=0.1.0',
'networkx >=1.11',
'shapely >= 1.5.12, <= 1.5.12',
'pandas >=0.19.2, <=0.20.1'
]
)
Create path ~/.eDisGo on install
For all of those already installed eDisGo run
pip3 install -U .
again.from setuptools import find_packages, setup
from setuptools.command.install import install
import os
BASEPATH='.eDisGo'
class InstallSetup(install):
def run(self):
self.create_edisgo_path()
install.run(self)
@staticmethod
def create_edisgo_path():
edisgo_path = os.path.join(os.path.expanduser('~'), BASEPATH)
data_path = os.path.join(edisgo_path, 'data')
if not os.path.isdir(edisgo_path):
os.mkdir(edisgo_path)
if not os.path.isdir(data_path):
os.mkdir(data_path)
setup(
name='eDisGo',
version='0.0.1',
packages=find_packages(),
url='https://github.com/openego/eDisGo',
license='GNU Affero General Public License v3.0',
author='gplssm, nesnoj',
author_email='',
description='A python package for distribution grid analysis and optimization',
install_requires = [
# 'dingo>=0.1.0',
'networkx >=1.11',
'shapely >= 1.5.12, <= 1.5.12',
'pandas >=0.19.2, <=0.20.1'
],
cmdclass={
'install': InstallSetup}
)
|
<commit_before>from setuptools import find_packages, setup
setup(
name='eDisGo',
version='0.0.1',
packages=find_packages(),
url='https://github.com/openego/eDisGo',
license='GNU Affero General Public License v3.0',
author='gplssm, nesnoj',
author_email='',
description='A python package for distribution grid analysis and optimization',
install_requires = [
'dingo>=0.1.0',
'networkx >=1.11',
'shapely >= 1.5.12, <= 1.5.12',
'pandas >=0.19.2, <=0.20.1'
]
)
<commit_msg>Create path ~/.eDisGo on install
For all of those already installed eDisGo run
pip3 install -U .
again.<commit_after>from setuptools import find_packages, setup
from setuptools.command.install import install
import os
BASEPATH='.eDisGo'
class InstallSetup(install):
def run(self):
self.create_edisgo_path()
install.run(self)
@staticmethod
def create_edisgo_path():
edisgo_path = os.path.join(os.path.expanduser('~'), BASEPATH)
data_path = os.path.join(edisgo_path, 'data')
if not os.path.isdir(edisgo_path):
os.mkdir(edisgo_path)
if not os.path.isdir(data_path):
os.mkdir(data_path)
setup(
name='eDisGo',
version='0.0.1',
packages=find_packages(),
url='https://github.com/openego/eDisGo',
license='GNU Affero General Public License v3.0',
author='gplssm, nesnoj',
author_email='',
description='A python package for distribution grid analysis and optimization',
install_requires = [
# 'dingo>=0.1.0',
'networkx >=1.11',
'shapely >= 1.5.12, <= 1.5.12',
'pandas >=0.19.2, <=0.20.1'
],
cmdclass={
'install': InstallSetup}
)
|
9674f2d1f459db6e231d81fa979db07d4805ca29
|
shuup/admin/modules/shops/views/list.py
|
shuup/admin/modules/shops/views/list.py
|
# -*- coding: utf-8 -*-
# This file is part of Shuup.
#
# Copyright (c) 2012-2016, Shoop Ltd. All rights reserved.
#
# This source code is licensed under the AGPLv3 license found in the
# LICENSE file in the root directory of this source tree.
from __future__ import unicode_literals
from django.conf import settings
from django.utils.translation import ugettext_lazy as _
from shuup.admin.toolbar import Toolbar
from shuup.admin.utils.picotable import ChoicesFilter, Column, TextFilter
from shuup.admin.utils.views import PicotableListView
from shuup.core.models import Shop, ShopStatus
class ShopListView(PicotableListView):
model = Shop
columns = [
Column("name", _(u"Name"), sort_field="translations__name", display="name", filter_config=TextFilter(
filter_field="translations__name",
placeholder=_("Filter by name...")
)),
Column("domain", _(u"Domain")),
Column("identifier", _(u"Identifier")),
Column("status", _(u"Status"), filter_config=ChoicesFilter(choices=ShopStatus.choices)),
]
def get_toolbar(self):
if settings.SHUUP_ENABLE_MULTIPLE_SHOPS:
return super(ShopListView, self).get_toolbar()
else:
return Toolbar([])
|
# -*- coding: utf-8 -*-
# This file is part of Shuup.
#
# Copyright (c) 2012-2016, Shoop Ltd. All rights reserved.
#
# This source code is licensed under the AGPLv3 license found in the
# LICENSE file in the root directory of this source tree.
from __future__ import unicode_literals
from django.conf import settings
from django.utils.translation import ugettext_lazy as _
from shuup.admin.toolbar import Toolbar
from shuup.admin.utils.picotable import ChoicesFilter, Column, TextFilter
from shuup.admin.utils.views import PicotableListView
from shuup.core.models import Shop, ShopStatus
class ShopListView(PicotableListView):
model = Shop
default_columns = [
Column("name", _(u"Name"), sort_field="translations__name", display="name", filter_config=TextFilter(
filter_field="translations__name",
placeholder=_("Filter by name...")
)),
Column("domain", _(u"Domain")),
Column("identifier", _(u"Identifier")),
Column("status", _(u"Status"), filter_config=ChoicesFilter(choices=ShopStatus.choices)),
]
def get_toolbar(self):
if settings.SHUUP_ENABLE_MULTIPLE_SHOPS:
return super(ShopListView, self).get_toolbar()
else:
return Toolbar([])
|
Modify shops for dynamic columns
|
Modify shops for dynamic columns
Refs SH-64
|
Python
|
agpl-3.0
|
shoopio/shoop,suutari/shoop,suutari-ai/shoop,shawnadelic/shuup,suutari/shoop,shawnadelic/shuup,shoopio/shoop,suutari/shoop,suutari-ai/shoop,shawnadelic/shuup,shoopio/shoop,suutari-ai/shoop
|
# -*- coding: utf-8 -*-
# This file is part of Shuup.
#
# Copyright (c) 2012-2016, Shoop Ltd. All rights reserved.
#
# This source code is licensed under the AGPLv3 license found in the
# LICENSE file in the root directory of this source tree.
from __future__ import unicode_literals
from django.conf import settings
from django.utils.translation import ugettext_lazy as _
from shuup.admin.toolbar import Toolbar
from shuup.admin.utils.picotable import ChoicesFilter, Column, TextFilter
from shuup.admin.utils.views import PicotableListView
from shuup.core.models import Shop, ShopStatus
class ShopListView(PicotableListView):
model = Shop
columns = [
Column("name", _(u"Name"), sort_field="translations__name", display="name", filter_config=TextFilter(
filter_field="translations__name",
placeholder=_("Filter by name...")
)),
Column("domain", _(u"Domain")),
Column("identifier", _(u"Identifier")),
Column("status", _(u"Status"), filter_config=ChoicesFilter(choices=ShopStatus.choices)),
]
def get_toolbar(self):
if settings.SHUUP_ENABLE_MULTIPLE_SHOPS:
return super(ShopListView, self).get_toolbar()
else:
return Toolbar([])
Modify shops for dynamic columns
Refs SH-64
|
# -*- coding: utf-8 -*-
# This file is part of Shuup.
#
# Copyright (c) 2012-2016, Shoop Ltd. All rights reserved.
#
# This source code is licensed under the AGPLv3 license found in the
# LICENSE file in the root directory of this source tree.
from __future__ import unicode_literals
from django.conf import settings
from django.utils.translation import ugettext_lazy as _
from shuup.admin.toolbar import Toolbar
from shuup.admin.utils.picotable import ChoicesFilter, Column, TextFilter
from shuup.admin.utils.views import PicotableListView
from shuup.core.models import Shop, ShopStatus
class ShopListView(PicotableListView):
model = Shop
default_columns = [
Column("name", _(u"Name"), sort_field="translations__name", display="name", filter_config=TextFilter(
filter_field="translations__name",
placeholder=_("Filter by name...")
)),
Column("domain", _(u"Domain")),
Column("identifier", _(u"Identifier")),
Column("status", _(u"Status"), filter_config=ChoicesFilter(choices=ShopStatus.choices)),
]
def get_toolbar(self):
if settings.SHUUP_ENABLE_MULTIPLE_SHOPS:
return super(ShopListView, self).get_toolbar()
else:
return Toolbar([])
|
<commit_before># -*- coding: utf-8 -*-
# This file is part of Shuup.
#
# Copyright (c) 2012-2016, Shoop Ltd. All rights reserved.
#
# This source code is licensed under the AGPLv3 license found in the
# LICENSE file in the root directory of this source tree.
from __future__ import unicode_literals
from django.conf import settings
from django.utils.translation import ugettext_lazy as _
from shuup.admin.toolbar import Toolbar
from shuup.admin.utils.picotable import ChoicesFilter, Column, TextFilter
from shuup.admin.utils.views import PicotableListView
from shuup.core.models import Shop, ShopStatus
class ShopListView(PicotableListView):
model = Shop
columns = [
Column("name", _(u"Name"), sort_field="translations__name", display="name", filter_config=TextFilter(
filter_field="translations__name",
placeholder=_("Filter by name...")
)),
Column("domain", _(u"Domain")),
Column("identifier", _(u"Identifier")),
Column("status", _(u"Status"), filter_config=ChoicesFilter(choices=ShopStatus.choices)),
]
def get_toolbar(self):
if settings.SHUUP_ENABLE_MULTIPLE_SHOPS:
return super(ShopListView, self).get_toolbar()
else:
return Toolbar([])
<commit_msg>Modify shops for dynamic columns
Refs SH-64<commit_after>
|
# -*- coding: utf-8 -*-
# This file is part of Shuup.
#
# Copyright (c) 2012-2016, Shoop Ltd. All rights reserved.
#
# This source code is licensed under the AGPLv3 license found in the
# LICENSE file in the root directory of this source tree.
from __future__ import unicode_literals
from django.conf import settings
from django.utils.translation import ugettext_lazy as _
from shuup.admin.toolbar import Toolbar
from shuup.admin.utils.picotable import ChoicesFilter, Column, TextFilter
from shuup.admin.utils.views import PicotableListView
from shuup.core.models import Shop, ShopStatus
class ShopListView(PicotableListView):
model = Shop
default_columns = [
Column("name", _(u"Name"), sort_field="translations__name", display="name", filter_config=TextFilter(
filter_field="translations__name",
placeholder=_("Filter by name...")
)),
Column("domain", _(u"Domain")),
Column("identifier", _(u"Identifier")),
Column("status", _(u"Status"), filter_config=ChoicesFilter(choices=ShopStatus.choices)),
]
def get_toolbar(self):
if settings.SHUUP_ENABLE_MULTIPLE_SHOPS:
return super(ShopListView, self).get_toolbar()
else:
return Toolbar([])
|
# -*- coding: utf-8 -*-
# This file is part of Shuup.
#
# Copyright (c) 2012-2016, Shoop Ltd. All rights reserved.
#
# This source code is licensed under the AGPLv3 license found in the
# LICENSE file in the root directory of this source tree.
from __future__ import unicode_literals
from django.conf import settings
from django.utils.translation import ugettext_lazy as _
from shuup.admin.toolbar import Toolbar
from shuup.admin.utils.picotable import ChoicesFilter, Column, TextFilter
from shuup.admin.utils.views import PicotableListView
from shuup.core.models import Shop, ShopStatus
class ShopListView(PicotableListView):
model = Shop
columns = [
Column("name", _(u"Name"), sort_field="translations__name", display="name", filter_config=TextFilter(
filter_field="translations__name",
placeholder=_("Filter by name...")
)),
Column("domain", _(u"Domain")),
Column("identifier", _(u"Identifier")),
Column("status", _(u"Status"), filter_config=ChoicesFilter(choices=ShopStatus.choices)),
]
def get_toolbar(self):
if settings.SHUUP_ENABLE_MULTIPLE_SHOPS:
return super(ShopListView, self).get_toolbar()
else:
return Toolbar([])
Modify shops for dynamic columns
Refs SH-64# -*- coding: utf-8 -*-
# This file is part of Shuup.
#
# Copyright (c) 2012-2016, Shoop Ltd. All rights reserved.
#
# This source code is licensed under the AGPLv3 license found in the
# LICENSE file in the root directory of this source tree.
from __future__ import unicode_literals
from django.conf import settings
from django.utils.translation import ugettext_lazy as _
from shuup.admin.toolbar import Toolbar
from shuup.admin.utils.picotable import ChoicesFilter, Column, TextFilter
from shuup.admin.utils.views import PicotableListView
from shuup.core.models import Shop, ShopStatus
class ShopListView(PicotableListView):
model = Shop
default_columns = [
Column("name", _(u"Name"), sort_field="translations__name", display="name", filter_config=TextFilter(
filter_field="translations__name",
placeholder=_("Filter by name...")
)),
Column("domain", _(u"Domain")),
Column("identifier", _(u"Identifier")),
Column("status", _(u"Status"), filter_config=ChoicesFilter(choices=ShopStatus.choices)),
]
def get_toolbar(self):
if settings.SHUUP_ENABLE_MULTIPLE_SHOPS:
return super(ShopListView, self).get_toolbar()
else:
return Toolbar([])
|
<commit_before># -*- coding: utf-8 -*-
# This file is part of Shuup.
#
# Copyright (c) 2012-2016, Shoop Ltd. All rights reserved.
#
# This source code is licensed under the AGPLv3 license found in the
# LICENSE file in the root directory of this source tree.
from __future__ import unicode_literals
from django.conf import settings
from django.utils.translation import ugettext_lazy as _
from shuup.admin.toolbar import Toolbar
from shuup.admin.utils.picotable import ChoicesFilter, Column, TextFilter
from shuup.admin.utils.views import PicotableListView
from shuup.core.models import Shop, ShopStatus
class ShopListView(PicotableListView):
model = Shop
columns = [
Column("name", _(u"Name"), sort_field="translations__name", display="name", filter_config=TextFilter(
filter_field="translations__name",
placeholder=_("Filter by name...")
)),
Column("domain", _(u"Domain")),
Column("identifier", _(u"Identifier")),
Column("status", _(u"Status"), filter_config=ChoicesFilter(choices=ShopStatus.choices)),
]
def get_toolbar(self):
if settings.SHUUP_ENABLE_MULTIPLE_SHOPS:
return super(ShopListView, self).get_toolbar()
else:
return Toolbar([])
<commit_msg>Modify shops for dynamic columns
Refs SH-64<commit_after># -*- coding: utf-8 -*-
# This file is part of Shuup.
#
# Copyright (c) 2012-2016, Shoop Ltd. All rights reserved.
#
# This source code is licensed under the AGPLv3 license found in the
# LICENSE file in the root directory of this source tree.
from __future__ import unicode_literals
from django.conf import settings
from django.utils.translation import ugettext_lazy as _
from shuup.admin.toolbar import Toolbar
from shuup.admin.utils.picotable import ChoicesFilter, Column, TextFilter
from shuup.admin.utils.views import PicotableListView
from shuup.core.models import Shop, ShopStatus
class ShopListView(PicotableListView):
model = Shop
default_columns = [
Column("name", _(u"Name"), sort_field="translations__name", display="name", filter_config=TextFilter(
filter_field="translations__name",
placeholder=_("Filter by name...")
)),
Column("domain", _(u"Domain")),
Column("identifier", _(u"Identifier")),
Column("status", _(u"Status"), filter_config=ChoicesFilter(choices=ShopStatus.choices)),
]
def get_toolbar(self):
if settings.SHUUP_ENABLE_MULTIPLE_SHOPS:
return super(ShopListView, self).get_toolbar()
else:
return Toolbar([])
|
a7b47737be5e0ad674025348ce938a81058c85f6
|
viewer/viewer.py
|
viewer/viewer.py
|
# Run with `python viewer.py PATH_TO_RECORD_JSON.
import json
import sys
from flask import Flask, jsonify
from flask.templating import render_template
app = Flask(__name__, template_folder='.')
# app.debug = True
# `main` inits these.
# File containing `record` output.
record_path = None
# 0: source, 1: state
record_data = []
@app.route("/")
def hello():
return render_template('index.html')
@app.route("/source.json")
def source():
return jsonify(record_data[0])
@app.route("/state.json")
def state():
return jsonify(record_data[1])
def main():
record_path = sys.argv[1]
with open(record_path) as f:
record_data.append(json.loads(f.readline()))
record_data.append(json.loads(f.readline()))
app.run()
if __name__ == "__main__":
main()
|
# Run with `python viewer.py PATH_TO_RECORD_JSON.
import json
import sys
from flask import Flask, jsonify
from flask.helpers import send_from_directory
app = Flask(__name__)
# `main` inits these.
# File containing `record` output.
record_path = None
# 0: source, 1: state
record_data = []
@app.route("/")
def hello():
return send_from_directory('.', 'index.html')
@app.route("/source.json")
def source():
return jsonify(record_data[0])
@app.route("/state.json")
def state():
return jsonify(record_data[1])
def main():
record_path = sys.argv[1]
with open(record_path) as f:
record_data.append(json.loads(f.readline()))
record_data.append(json.loads(f.readline()))
app.run()
if __name__ == "__main__":
main()
|
Use send so no templates are evald by python.
|
Use send so no templates are evald by python.
|
Python
|
mit
|
mihneadb/python-execution-trace,mihneadb/python-execution-trace,mihneadb/python-execution-trace
|
# Run with `python viewer.py PATH_TO_RECORD_JSON.
import json
import sys
from flask import Flask, jsonify
from flask.templating import render_template
app = Flask(__name__, template_folder='.')
# app.debug = True
# `main` inits these.
# File containing `record` output.
record_path = None
# 0: source, 1: state
record_data = []
@app.route("/")
def hello():
return render_template('index.html')
@app.route("/source.json")
def source():
return jsonify(record_data[0])
@app.route("/state.json")
def state():
return jsonify(record_data[1])
def main():
record_path = sys.argv[1]
with open(record_path) as f:
record_data.append(json.loads(f.readline()))
record_data.append(json.loads(f.readline()))
app.run()
if __name__ == "__main__":
main()
Use send so no templates are evald by python.
|
# Run with `python viewer.py PATH_TO_RECORD_JSON.
import json
import sys
from flask import Flask, jsonify
from flask.helpers import send_from_directory
app = Flask(__name__)
# `main` inits these.
# File containing `record` output.
record_path = None
# 0: source, 1: state
record_data = []
@app.route("/")
def hello():
return send_from_directory('.', 'index.html')
@app.route("/source.json")
def source():
return jsonify(record_data[0])
@app.route("/state.json")
def state():
return jsonify(record_data[1])
def main():
record_path = sys.argv[1]
with open(record_path) as f:
record_data.append(json.loads(f.readline()))
record_data.append(json.loads(f.readline()))
app.run()
if __name__ == "__main__":
main()
|
<commit_before># Run with `python viewer.py PATH_TO_RECORD_JSON.
import json
import sys
from flask import Flask, jsonify
from flask.templating import render_template
app = Flask(__name__, template_folder='.')
# app.debug = True
# `main` inits these.
# File containing `record` output.
record_path = None
# 0: source, 1: state
record_data = []
@app.route("/")
def hello():
return render_template('index.html')
@app.route("/source.json")
def source():
return jsonify(record_data[0])
@app.route("/state.json")
def state():
return jsonify(record_data[1])
def main():
record_path = sys.argv[1]
with open(record_path) as f:
record_data.append(json.loads(f.readline()))
record_data.append(json.loads(f.readline()))
app.run()
if __name__ == "__main__":
main()
<commit_msg>Use send so no templates are evald by python.<commit_after>
|
# Run with `python viewer.py PATH_TO_RECORD_JSON.
import json
import sys
from flask import Flask, jsonify
from flask.helpers import send_from_directory
app = Flask(__name__)
# `main` inits these.
# File containing `record` output.
record_path = None
# 0: source, 1: state
record_data = []
@app.route("/")
def hello():
return send_from_directory('.', 'index.html')
@app.route("/source.json")
def source():
return jsonify(record_data[0])
@app.route("/state.json")
def state():
return jsonify(record_data[1])
def main():
record_path = sys.argv[1]
with open(record_path) as f:
record_data.append(json.loads(f.readline()))
record_data.append(json.loads(f.readline()))
app.run()
if __name__ == "__main__":
main()
|
# Run with `python viewer.py PATH_TO_RECORD_JSON.
import json
import sys
from flask import Flask, jsonify
from flask.templating import render_template
app = Flask(__name__, template_folder='.')
# app.debug = True
# `main` inits these.
# File containing `record` output.
record_path = None
# 0: source, 1: state
record_data = []
@app.route("/")
def hello():
return render_template('index.html')
@app.route("/source.json")
def source():
return jsonify(record_data[0])
@app.route("/state.json")
def state():
return jsonify(record_data[1])
def main():
record_path = sys.argv[1]
with open(record_path) as f:
record_data.append(json.loads(f.readline()))
record_data.append(json.loads(f.readline()))
app.run()
if __name__ == "__main__":
main()
Use send so no templates are evald by python.# Run with `python viewer.py PATH_TO_RECORD_JSON.
import json
import sys
from flask import Flask, jsonify
from flask.helpers import send_from_directory
app = Flask(__name__)
# `main` inits these.
# File containing `record` output.
record_path = None
# 0: source, 1: state
record_data = []
@app.route("/")
def hello():
return send_from_directory('.', 'index.html')
@app.route("/source.json")
def source():
return jsonify(record_data[0])
@app.route("/state.json")
def state():
return jsonify(record_data[1])
def main():
record_path = sys.argv[1]
with open(record_path) as f:
record_data.append(json.loads(f.readline()))
record_data.append(json.loads(f.readline()))
app.run()
if __name__ == "__main__":
main()
|
<commit_before># Run with `python viewer.py PATH_TO_RECORD_JSON.
import json
import sys
from flask import Flask, jsonify
from flask.templating import render_template
app = Flask(__name__, template_folder='.')
# app.debug = True
# `main` inits these.
# File containing `record` output.
record_path = None
# 0: source, 1: state
record_data = []
@app.route("/")
def hello():
return render_template('index.html')
@app.route("/source.json")
def source():
return jsonify(record_data[0])
@app.route("/state.json")
def state():
return jsonify(record_data[1])
def main():
record_path = sys.argv[1]
with open(record_path) as f:
record_data.append(json.loads(f.readline()))
record_data.append(json.loads(f.readline()))
app.run()
if __name__ == "__main__":
main()
<commit_msg>Use send so no templates are evald by python.<commit_after># Run with `python viewer.py PATH_TO_RECORD_JSON.
import json
import sys
from flask import Flask, jsonify
from flask.helpers import send_from_directory
app = Flask(__name__)
# `main` inits these.
# File containing `record` output.
record_path = None
# 0: source, 1: state
record_data = []
@app.route("/")
def hello():
return send_from_directory('.', 'index.html')
@app.route("/source.json")
def source():
return jsonify(record_data[0])
@app.route("/state.json")
def state():
return jsonify(record_data[1])
def main():
record_path = sys.argv[1]
with open(record_path) as f:
record_data.append(json.loads(f.readline()))
record_data.append(json.loads(f.readline()))
app.run()
if __name__ == "__main__":
main()
|
7b30846c322f7f81566f0b2a454e61ad271eee65
|
cegui/src/ScriptingModules/PythonScriptModule/bindings/distutils/PyCEGUI/__init__.py
|
cegui/src/ScriptingModules/PythonScriptModule/bindings/distutils/PyCEGUI/__init__.py
|
import os
import os.path
# atrocious and unholy!
def get_my_path():
import fake
return os.path.dirname(str(fake).split()[3][1:])
libpath = os.path.abspath(get_my_path())
#print "libpath =", libpath
os.environ['PATH'] = libpath + ";" + os.environ['PATH']
from PyCEGUI import *
|
import os
import os.path
# atrocious and unholy!
def get_my_path():
import fake
return os.path.dirname(os.path.abspath(fake.__file__))
libpath = get_my_path()
#print "libpath =", libpath
os.environ['PATH'] = libpath + ";" + os.environ['PATH']
from PyCEGUI import *
|
Use a less pathetic method to retrieve the PyCEGUI dirname
|
MOD: Use a less pathetic method to retrieve the PyCEGUI dirname
|
Python
|
mit
|
arkana-fts/cegui,arkana-fts/cegui,cbeck88/cegui-mirror,cbeck88/cegui-mirror,RealityFactory/CEGUI,arkana-fts/cegui,cbeck88/cegui-mirror,RealityFactory/CEGUI,arkana-fts/cegui,RealityFactory/CEGUI,cbeck88/cegui-mirror,RealityFactory/CEGUI,arkana-fts/cegui,RealityFactory/CEGUI,cbeck88/cegui-mirror
|
import os
import os.path
# atrocious and unholy!
def get_my_path():
import fake
return os.path.dirname(str(fake).split()[3][1:])
libpath = os.path.abspath(get_my_path())
#print "libpath =", libpath
os.environ['PATH'] = libpath + ";" + os.environ['PATH']
from PyCEGUI import *
MOD: Use a less pathetic method to retrieve the PyCEGUI dirname
|
import os
import os.path
# atrocious and unholy!
def get_my_path():
import fake
return os.path.dirname(os.path.abspath(fake.__file__))
libpath = get_my_path()
#print "libpath =", libpath
os.environ['PATH'] = libpath + ";" + os.environ['PATH']
from PyCEGUI import *
|
<commit_before>import os
import os.path
# atrocious and unholy!
def get_my_path():
import fake
return os.path.dirname(str(fake).split()[3][1:])
libpath = os.path.abspath(get_my_path())
#print "libpath =", libpath
os.environ['PATH'] = libpath + ";" + os.environ['PATH']
from PyCEGUI import *
<commit_msg>MOD: Use a less pathetic method to retrieve the PyCEGUI dirname<commit_after>
|
import os
import os.path
# atrocious and unholy!
def get_my_path():
import fake
return os.path.dirname(os.path.abspath(fake.__file__))
libpath = get_my_path()
#print "libpath =", libpath
os.environ['PATH'] = libpath + ";" + os.environ['PATH']
from PyCEGUI import *
|
import os
import os.path
# atrocious and unholy!
def get_my_path():
import fake
return os.path.dirname(str(fake).split()[3][1:])
libpath = os.path.abspath(get_my_path())
#print "libpath =", libpath
os.environ['PATH'] = libpath + ";" + os.environ['PATH']
from PyCEGUI import *
MOD: Use a less pathetic method to retrieve the PyCEGUI dirnameimport os
import os.path
# atrocious and unholy!
def get_my_path():
import fake
return os.path.dirname(os.path.abspath(fake.__file__))
libpath = get_my_path()
#print "libpath =", libpath
os.environ['PATH'] = libpath + ";" + os.environ['PATH']
from PyCEGUI import *
|
<commit_before>import os
import os.path
# atrocious and unholy!
def get_my_path():
import fake
return os.path.dirname(str(fake).split()[3][1:])
libpath = os.path.abspath(get_my_path())
#print "libpath =", libpath
os.environ['PATH'] = libpath + ";" + os.environ['PATH']
from PyCEGUI import *
<commit_msg>MOD: Use a less pathetic method to retrieve the PyCEGUI dirname<commit_after>import os
import os.path
# atrocious and unholy!
def get_my_path():
import fake
return os.path.dirname(os.path.abspath(fake.__file__))
libpath = get_my_path()
#print "libpath =", libpath
os.environ['PATH'] = libpath + ";" + os.environ['PATH']
from PyCEGUI import *
|
212bf2f97a82ebe28431ff3d8f64affaf45fd55e
|
pyforge/celeryconfig.py
|
pyforge/celeryconfig.py
|
# -*- coding: utf-8 -*-
CELERY_BACKEND = "mongodb"
AMQP_SERVER = "localhost"
AMQP_PORT = 5672
AMQP_VHOST = "celeryvhost"
AMQP_USER = "celeryuser"
AMQP_PASSWORD = "celerypw"
CELERYD_LOG_FILE = "celeryd.log"
CELERYD_PID_FILE = "celeryd.pid"
CELERYD_DAEMON_LOG_LEVEL = "INFO"
CELERY_MONGODB_BACKEND_SETTINGS = {
"host":"localhost",
"port":27017,
"database":"celery"
}
CELERY_AMQP_EXCHANGE = "tasks"
CELERY_AMQP_PUBLISHER_ROUTING_KEY = "task.regular"
CELERY_AMQP_EXCHANGE_TYPE = "topic"
CELERY_AMQP_CONSUMER_QUEUE = "forge_tasks"
CELERY_AMQP_CONSUMER_ROUTING_KEY = "forge.#"
CELERY_IMPORTS = ("pyforge.tasks.MailTask")
|
# -*- coding: utf-8 -*-
CELERY_BACKEND = "mongodb"
# We shouldn't need to supply these because we're using Mongo,
# but Celery gives us errors if we don't.
DATABASE_ENGINE = "sqlite3"
DATABASE_NAME = "celery.db"
AMQP_SERVER = "localhost"
AMQP_PORT = 5672
AMQP_VHOST = "celeryvhost"
AMQP_USER = "celeryuser"
AMQP_PASSWORD = "celerypw"
CELERYD_LOG_FILE = "celeryd.log"
CELERYD_PID_FILE = "celeryd.pid"
CELERYD_DAEMON_LOG_LEVEL = "INFO"
CELERY_MONGODB_BACKEND_SETTINGS = {
"host":"localhost",
"port":27017,
"database":"celery"
}
CELERY_AMQP_EXCHANGE = "tasks"
CELERY_AMQP_PUBLISHER_ROUTING_KEY = "task.regular"
CELERY_AMQP_EXCHANGE_TYPE = "topic"
CELERY_AMQP_CONSUMER_QUEUE = "forge_tasks"
CELERY_AMQP_CONSUMER_ROUTING_KEY = "forge.#"
CELERY_IMPORTS = ("pyforge.tasks.MailTask")
|
Add unused DATABASE_ENGINE, DATABASE_NAME to pacify celeryinit
|
Add unused DATABASE_ENGINE, DATABASE_NAME to pacify celeryinit
|
Python
|
apache-2.0
|
Bitergia/allura,apache/incubator-allura,apache/allura,apache/incubator-allura,lym/allura-git,lym/allura-git,apache/incubator-allura,leotrubach/sourceforge-allura,lym/allura-git,heiths/allura,apache/allura,heiths/allura,apache/allura,heiths/allura,Bitergia/allura,apache/incubator-allura,leotrubach/sourceforge-allura,lym/allura-git,Bitergia/allura,Bitergia/allura,heiths/allura,leotrubach/sourceforge-allura,leotrubach/sourceforge-allura,Bitergia/allura,heiths/allura,apache/allura,lym/allura-git,apache/allura
|
# -*- coding: utf-8 -*-
CELERY_BACKEND = "mongodb"
AMQP_SERVER = "localhost"
AMQP_PORT = 5672
AMQP_VHOST = "celeryvhost"
AMQP_USER = "celeryuser"
AMQP_PASSWORD = "celerypw"
CELERYD_LOG_FILE = "celeryd.log"
CELERYD_PID_FILE = "celeryd.pid"
CELERYD_DAEMON_LOG_LEVEL = "INFO"
CELERY_MONGODB_BACKEND_SETTINGS = {
"host":"localhost",
"port":27017,
"database":"celery"
}
CELERY_AMQP_EXCHANGE = "tasks"
CELERY_AMQP_PUBLISHER_ROUTING_KEY = "task.regular"
CELERY_AMQP_EXCHANGE_TYPE = "topic"
CELERY_AMQP_CONSUMER_QUEUE = "forge_tasks"
CELERY_AMQP_CONSUMER_ROUTING_KEY = "forge.#"
CELERY_IMPORTS = ("pyforge.tasks.MailTask")
Add unused DATABASE_ENGINE, DATABASE_NAME to pacify celeryinit
|
# -*- coding: utf-8 -*-
CELERY_BACKEND = "mongodb"
# We shouldn't need to supply these because we're using Mongo,
# but Celery gives us errors if we don't.
DATABASE_ENGINE = "sqlite3"
DATABASE_NAME = "celery.db"
AMQP_SERVER = "localhost"
AMQP_PORT = 5672
AMQP_VHOST = "celeryvhost"
AMQP_USER = "celeryuser"
AMQP_PASSWORD = "celerypw"
CELERYD_LOG_FILE = "celeryd.log"
CELERYD_PID_FILE = "celeryd.pid"
CELERYD_DAEMON_LOG_LEVEL = "INFO"
CELERY_MONGODB_BACKEND_SETTINGS = {
"host":"localhost",
"port":27017,
"database":"celery"
}
CELERY_AMQP_EXCHANGE = "tasks"
CELERY_AMQP_PUBLISHER_ROUTING_KEY = "task.regular"
CELERY_AMQP_EXCHANGE_TYPE = "topic"
CELERY_AMQP_CONSUMER_QUEUE = "forge_tasks"
CELERY_AMQP_CONSUMER_ROUTING_KEY = "forge.#"
CELERY_IMPORTS = ("pyforge.tasks.MailTask")
|
<commit_before># -*- coding: utf-8 -*-
CELERY_BACKEND = "mongodb"
AMQP_SERVER = "localhost"
AMQP_PORT = 5672
AMQP_VHOST = "celeryvhost"
AMQP_USER = "celeryuser"
AMQP_PASSWORD = "celerypw"
CELERYD_LOG_FILE = "celeryd.log"
CELERYD_PID_FILE = "celeryd.pid"
CELERYD_DAEMON_LOG_LEVEL = "INFO"
CELERY_MONGODB_BACKEND_SETTINGS = {
"host":"localhost",
"port":27017,
"database":"celery"
}
CELERY_AMQP_EXCHANGE = "tasks"
CELERY_AMQP_PUBLISHER_ROUTING_KEY = "task.regular"
CELERY_AMQP_EXCHANGE_TYPE = "topic"
CELERY_AMQP_CONSUMER_QUEUE = "forge_tasks"
CELERY_AMQP_CONSUMER_ROUTING_KEY = "forge.#"
CELERY_IMPORTS = ("pyforge.tasks.MailTask")
<commit_msg>Add unused DATABASE_ENGINE, DATABASE_NAME to pacify celeryinit<commit_after>
|
# -*- coding: utf-8 -*-
CELERY_BACKEND = "mongodb"
# We shouldn't need to supply these because we're using Mongo,
# but Celery gives us errors if we don't.
DATABASE_ENGINE = "sqlite3"
DATABASE_NAME = "celery.db"
AMQP_SERVER = "localhost"
AMQP_PORT = 5672
AMQP_VHOST = "celeryvhost"
AMQP_USER = "celeryuser"
AMQP_PASSWORD = "celerypw"
CELERYD_LOG_FILE = "celeryd.log"
CELERYD_PID_FILE = "celeryd.pid"
CELERYD_DAEMON_LOG_LEVEL = "INFO"
CELERY_MONGODB_BACKEND_SETTINGS = {
"host":"localhost",
"port":27017,
"database":"celery"
}
CELERY_AMQP_EXCHANGE = "tasks"
CELERY_AMQP_PUBLISHER_ROUTING_KEY = "task.regular"
CELERY_AMQP_EXCHANGE_TYPE = "topic"
CELERY_AMQP_CONSUMER_QUEUE = "forge_tasks"
CELERY_AMQP_CONSUMER_ROUTING_KEY = "forge.#"
CELERY_IMPORTS = ("pyforge.tasks.MailTask")
|
# -*- coding: utf-8 -*-
CELERY_BACKEND = "mongodb"
AMQP_SERVER = "localhost"
AMQP_PORT = 5672
AMQP_VHOST = "celeryvhost"
AMQP_USER = "celeryuser"
AMQP_PASSWORD = "celerypw"
CELERYD_LOG_FILE = "celeryd.log"
CELERYD_PID_FILE = "celeryd.pid"
CELERYD_DAEMON_LOG_LEVEL = "INFO"
CELERY_MONGODB_BACKEND_SETTINGS = {
"host":"localhost",
"port":27017,
"database":"celery"
}
CELERY_AMQP_EXCHANGE = "tasks"
CELERY_AMQP_PUBLISHER_ROUTING_KEY = "task.regular"
CELERY_AMQP_EXCHANGE_TYPE = "topic"
CELERY_AMQP_CONSUMER_QUEUE = "forge_tasks"
CELERY_AMQP_CONSUMER_ROUTING_KEY = "forge.#"
CELERY_IMPORTS = ("pyforge.tasks.MailTask")
Add unused DATABASE_ENGINE, DATABASE_NAME to pacify celeryinit# -*- coding: utf-8 -*-
CELERY_BACKEND = "mongodb"
# We shouldn't need to supply these because we're using Mongo,
# but Celery gives us errors if we don't.
DATABASE_ENGINE = "sqlite3"
DATABASE_NAME = "celery.db"
AMQP_SERVER = "localhost"
AMQP_PORT = 5672
AMQP_VHOST = "celeryvhost"
AMQP_USER = "celeryuser"
AMQP_PASSWORD = "celerypw"
CELERYD_LOG_FILE = "celeryd.log"
CELERYD_PID_FILE = "celeryd.pid"
CELERYD_DAEMON_LOG_LEVEL = "INFO"
CELERY_MONGODB_BACKEND_SETTINGS = {
"host":"localhost",
"port":27017,
"database":"celery"
}
CELERY_AMQP_EXCHANGE = "tasks"
CELERY_AMQP_PUBLISHER_ROUTING_KEY = "task.regular"
CELERY_AMQP_EXCHANGE_TYPE = "topic"
CELERY_AMQP_CONSUMER_QUEUE = "forge_tasks"
CELERY_AMQP_CONSUMER_ROUTING_KEY = "forge.#"
CELERY_IMPORTS = ("pyforge.tasks.MailTask")
|
<commit_before># -*- coding: utf-8 -*-
CELERY_BACKEND = "mongodb"
AMQP_SERVER = "localhost"
AMQP_PORT = 5672
AMQP_VHOST = "celeryvhost"
AMQP_USER = "celeryuser"
AMQP_PASSWORD = "celerypw"
CELERYD_LOG_FILE = "celeryd.log"
CELERYD_PID_FILE = "celeryd.pid"
CELERYD_DAEMON_LOG_LEVEL = "INFO"
CELERY_MONGODB_BACKEND_SETTINGS = {
"host":"localhost",
"port":27017,
"database":"celery"
}
CELERY_AMQP_EXCHANGE = "tasks"
CELERY_AMQP_PUBLISHER_ROUTING_KEY = "task.regular"
CELERY_AMQP_EXCHANGE_TYPE = "topic"
CELERY_AMQP_CONSUMER_QUEUE = "forge_tasks"
CELERY_AMQP_CONSUMER_ROUTING_KEY = "forge.#"
CELERY_IMPORTS = ("pyforge.tasks.MailTask")
<commit_msg>Add unused DATABASE_ENGINE, DATABASE_NAME to pacify celeryinit<commit_after># -*- coding: utf-8 -*-
CELERY_BACKEND = "mongodb"
# We shouldn't need to supply these because we're using Mongo,
# but Celery gives us errors if we don't.
DATABASE_ENGINE = "sqlite3"
DATABASE_NAME = "celery.db"
AMQP_SERVER = "localhost"
AMQP_PORT = 5672
AMQP_VHOST = "celeryvhost"
AMQP_USER = "celeryuser"
AMQP_PASSWORD = "celerypw"
CELERYD_LOG_FILE = "celeryd.log"
CELERYD_PID_FILE = "celeryd.pid"
CELERYD_DAEMON_LOG_LEVEL = "INFO"
CELERY_MONGODB_BACKEND_SETTINGS = {
"host":"localhost",
"port":27017,
"database":"celery"
}
CELERY_AMQP_EXCHANGE = "tasks"
CELERY_AMQP_PUBLISHER_ROUTING_KEY = "task.regular"
CELERY_AMQP_EXCHANGE_TYPE = "topic"
CELERY_AMQP_CONSUMER_QUEUE = "forge_tasks"
CELERY_AMQP_CONSUMER_ROUTING_KEY = "forge.#"
CELERY_IMPORTS = ("pyforge.tasks.MailTask")
|
d8588d31f23377f27b81e62f5471997271ae0ca2
|
tasks.py
|
tasks.py
|
import os
import sys
from invoke import task, util
in_ci = os.environ.get("CI", "false") == "true"
if in_ci:
pty = False
else:
pty = util.isatty(sys.stdout) and util.isatty(sys.stderr)
@task
def reformat(c):
c.run("isort mopidy_webhooks tests setup.py tasks.py", pty=pty)
c.run("black mopidy_webhooks tests setup.py tasks.py", pty=pty)
@task
def lint(c):
c.run(
"flake8 --show-source --statistics --max-line-length 100 mopidy_webhooks tests",
pty=pty,
)
c.run("check-manifest", pty=pty)
@task
def test(c, onefile=""):
pytest_args = [
"pytest",
"--strict-config",
"--cov=mopidy_webhooks",
"--cov-report=term-missing",
]
if in_ci:
pytest_args.extend(("--cov-report=xml", "--strict-markers"))
else:
pytest_args.append("--cov-report=html")
if onefile:
pytest_args.append(onefile)
c.run(" ".join(pytest_args), pty=pty)
@task
def type_check(c):
c.run("mypy mopidy_webhooks tests", pty=pty)
|
import os
import sys
from invoke import task, util
in_ci = os.environ.get("CI", "false") == "true"
if in_ci:
pty = False
else:
pty = util.isatty(sys.stdout) and util.isatty(sys.stderr)
@task
def reformat(c):
c.run("isort mopidy_webhooks tests setup.py tasks.py", pty=pty)
c.run("black mopidy_webhooks tests setup.py tasks.py", pty=pty)
@task
def lint(c):
c.run(
"flake8 --show-source --statistics mopidy_webhooks tests",
pty=pty,
)
c.run("check-manifest", pty=pty)
@task
def test(c, onefile=""):
pytest_args = [
"pytest",
"--strict-config",
"--cov=mopidy_webhooks",
"--cov-report=term-missing",
]
if in_ci:
pytest_args.extend(("--cov-report=xml", "--strict-markers"))
else:
pytest_args.append("--cov-report=html")
if onefile:
pytest_args.append(onefile)
c.run(" ".join(pytest_args), pty=pty)
@task
def type_check(c):
c.run("mypy mopidy_webhooks tests", pty=pty)
|
Remove redundant flag from flake8 task
|
Remove redundant flag from flake8 task
The max line length is already specified in Flake8's configuration.
|
Python
|
apache-2.0
|
paddycarey/mopidy-webhooks
|
import os
import sys
from invoke import task, util
in_ci = os.environ.get("CI", "false") == "true"
if in_ci:
pty = False
else:
pty = util.isatty(sys.stdout) and util.isatty(sys.stderr)
@task
def reformat(c):
c.run("isort mopidy_webhooks tests setup.py tasks.py", pty=pty)
c.run("black mopidy_webhooks tests setup.py tasks.py", pty=pty)
@task
def lint(c):
c.run(
"flake8 --show-source --statistics --max-line-length 100 mopidy_webhooks tests",
pty=pty,
)
c.run("check-manifest", pty=pty)
@task
def test(c, onefile=""):
pytest_args = [
"pytest",
"--strict-config",
"--cov=mopidy_webhooks",
"--cov-report=term-missing",
]
if in_ci:
pytest_args.extend(("--cov-report=xml", "--strict-markers"))
else:
pytest_args.append("--cov-report=html")
if onefile:
pytest_args.append(onefile)
c.run(" ".join(pytest_args), pty=pty)
@task
def type_check(c):
c.run("mypy mopidy_webhooks tests", pty=pty)
Remove redundant flag from flake8 task
The max line length is already specified in Flake8's configuration.
|
import os
import sys
from invoke import task, util
in_ci = os.environ.get("CI", "false") == "true"
if in_ci:
pty = False
else:
pty = util.isatty(sys.stdout) and util.isatty(sys.stderr)
@task
def reformat(c):
c.run("isort mopidy_webhooks tests setup.py tasks.py", pty=pty)
c.run("black mopidy_webhooks tests setup.py tasks.py", pty=pty)
@task
def lint(c):
c.run(
"flake8 --show-source --statistics mopidy_webhooks tests",
pty=pty,
)
c.run("check-manifest", pty=pty)
@task
def test(c, onefile=""):
pytest_args = [
"pytest",
"--strict-config",
"--cov=mopidy_webhooks",
"--cov-report=term-missing",
]
if in_ci:
pytest_args.extend(("--cov-report=xml", "--strict-markers"))
else:
pytest_args.append("--cov-report=html")
if onefile:
pytest_args.append(onefile)
c.run(" ".join(pytest_args), pty=pty)
@task
def type_check(c):
c.run("mypy mopidy_webhooks tests", pty=pty)
|
<commit_before>import os
import sys
from invoke import task, util
in_ci = os.environ.get("CI", "false") == "true"
if in_ci:
pty = False
else:
pty = util.isatty(sys.stdout) and util.isatty(sys.stderr)
@task
def reformat(c):
c.run("isort mopidy_webhooks tests setup.py tasks.py", pty=pty)
c.run("black mopidy_webhooks tests setup.py tasks.py", pty=pty)
@task
def lint(c):
c.run(
"flake8 --show-source --statistics --max-line-length 100 mopidy_webhooks tests",
pty=pty,
)
c.run("check-manifest", pty=pty)
@task
def test(c, onefile=""):
pytest_args = [
"pytest",
"--strict-config",
"--cov=mopidy_webhooks",
"--cov-report=term-missing",
]
if in_ci:
pytest_args.extend(("--cov-report=xml", "--strict-markers"))
else:
pytest_args.append("--cov-report=html")
if onefile:
pytest_args.append(onefile)
c.run(" ".join(pytest_args), pty=pty)
@task
def type_check(c):
c.run("mypy mopidy_webhooks tests", pty=pty)
<commit_msg>Remove redundant flag from flake8 task
The max line length is already specified in Flake8's configuration.<commit_after>
|
import os
import sys
from invoke import task, util
in_ci = os.environ.get("CI", "false") == "true"
if in_ci:
pty = False
else:
pty = util.isatty(sys.stdout) and util.isatty(sys.stderr)
@task
def reformat(c):
c.run("isort mopidy_webhooks tests setup.py tasks.py", pty=pty)
c.run("black mopidy_webhooks tests setup.py tasks.py", pty=pty)
@task
def lint(c):
c.run(
"flake8 --show-source --statistics mopidy_webhooks tests",
pty=pty,
)
c.run("check-manifest", pty=pty)
@task
def test(c, onefile=""):
pytest_args = [
"pytest",
"--strict-config",
"--cov=mopidy_webhooks",
"--cov-report=term-missing",
]
if in_ci:
pytest_args.extend(("--cov-report=xml", "--strict-markers"))
else:
pytest_args.append("--cov-report=html")
if onefile:
pytest_args.append(onefile)
c.run(" ".join(pytest_args), pty=pty)
@task
def type_check(c):
c.run("mypy mopidy_webhooks tests", pty=pty)
|
import os
import sys
from invoke import task, util
in_ci = os.environ.get("CI", "false") == "true"
if in_ci:
pty = False
else:
pty = util.isatty(sys.stdout) and util.isatty(sys.stderr)
@task
def reformat(c):
c.run("isort mopidy_webhooks tests setup.py tasks.py", pty=pty)
c.run("black mopidy_webhooks tests setup.py tasks.py", pty=pty)
@task
def lint(c):
c.run(
"flake8 --show-source --statistics --max-line-length 100 mopidy_webhooks tests",
pty=pty,
)
c.run("check-manifest", pty=pty)
@task
def test(c, onefile=""):
pytest_args = [
"pytest",
"--strict-config",
"--cov=mopidy_webhooks",
"--cov-report=term-missing",
]
if in_ci:
pytest_args.extend(("--cov-report=xml", "--strict-markers"))
else:
pytest_args.append("--cov-report=html")
if onefile:
pytest_args.append(onefile)
c.run(" ".join(pytest_args), pty=pty)
@task
def type_check(c):
c.run("mypy mopidy_webhooks tests", pty=pty)
Remove redundant flag from flake8 task
The max line length is already specified in Flake8's configuration.import os
import sys
from invoke import task, util
in_ci = os.environ.get("CI", "false") == "true"
if in_ci:
pty = False
else:
pty = util.isatty(sys.stdout) and util.isatty(sys.stderr)
@task
def reformat(c):
c.run("isort mopidy_webhooks tests setup.py tasks.py", pty=pty)
c.run("black mopidy_webhooks tests setup.py tasks.py", pty=pty)
@task
def lint(c):
c.run(
"flake8 --show-source --statistics mopidy_webhooks tests",
pty=pty,
)
c.run("check-manifest", pty=pty)
@task
def test(c, onefile=""):
pytest_args = [
"pytest",
"--strict-config",
"--cov=mopidy_webhooks",
"--cov-report=term-missing",
]
if in_ci:
pytest_args.extend(("--cov-report=xml", "--strict-markers"))
else:
pytest_args.append("--cov-report=html")
if onefile:
pytest_args.append(onefile)
c.run(" ".join(pytest_args), pty=pty)
@task
def type_check(c):
c.run("mypy mopidy_webhooks tests", pty=pty)
|
<commit_before>import os
import sys
from invoke import task, util
in_ci = os.environ.get("CI", "false") == "true"
if in_ci:
pty = False
else:
pty = util.isatty(sys.stdout) and util.isatty(sys.stderr)
@task
def reformat(c):
c.run("isort mopidy_webhooks tests setup.py tasks.py", pty=pty)
c.run("black mopidy_webhooks tests setup.py tasks.py", pty=pty)
@task
def lint(c):
c.run(
"flake8 --show-source --statistics --max-line-length 100 mopidy_webhooks tests",
pty=pty,
)
c.run("check-manifest", pty=pty)
@task
def test(c, onefile=""):
pytest_args = [
"pytest",
"--strict-config",
"--cov=mopidy_webhooks",
"--cov-report=term-missing",
]
if in_ci:
pytest_args.extend(("--cov-report=xml", "--strict-markers"))
else:
pytest_args.append("--cov-report=html")
if onefile:
pytest_args.append(onefile)
c.run(" ".join(pytest_args), pty=pty)
@task
def type_check(c):
c.run("mypy mopidy_webhooks tests", pty=pty)
<commit_msg>Remove redundant flag from flake8 task
The max line length is already specified in Flake8's configuration.<commit_after>import os
import sys
from invoke import task, util
in_ci = os.environ.get("CI", "false") == "true"
if in_ci:
pty = False
else:
pty = util.isatty(sys.stdout) and util.isatty(sys.stderr)
@task
def reformat(c):
c.run("isort mopidy_webhooks tests setup.py tasks.py", pty=pty)
c.run("black mopidy_webhooks tests setup.py tasks.py", pty=pty)
@task
def lint(c):
c.run(
"flake8 --show-source --statistics mopidy_webhooks tests",
pty=pty,
)
c.run("check-manifest", pty=pty)
@task
def test(c, onefile=""):
pytest_args = [
"pytest",
"--strict-config",
"--cov=mopidy_webhooks",
"--cov-report=term-missing",
]
if in_ci:
pytest_args.extend(("--cov-report=xml", "--strict-markers"))
else:
pytest_args.append("--cov-report=html")
if onefile:
pytest_args.append(onefile)
c.run(" ".join(pytest_args), pty=pty)
@task
def type_check(c):
c.run("mypy mopidy_webhooks tests", pty=pty)
|
d3ef281b8e64ede5076aa58e47016b3252c2c181
|
polling_stations/apps/data_importers/management/commands/import_barrow_in_furness.py
|
polling_stations/apps/data_importers/management/commands/import_barrow_in_furness.py
|
from data_importers.management.commands import BaseDemocracyCountsCsvImporter
class Command(BaseDemocracyCountsCsvImporter):
council_id = "BAR"
addresses_name = "2021-03-08T19:54:15.110811/Barrow in Furness Democracy Club - Polling Districts (2).csv"
stations_name = "2021-03-08T19:54:15.110811/Barrow in Furness Democracy Club - Polling Stations (2).csv"
elections = ["2021-05-06"]
allow_station_point_from_postcode = False
def address_record_to_dict(self, record):
if record.postcode in ["LA13 9SF", "LA13 0NF"]:
return None
return super().address_record_to_dict(record)
def station_record_to_dict(self, record):
# ASKAM COMMUNITY CENTRE
if record.stationcode in ["LC/1", "LC/2"]:
record = record._replace(xordinate="321436")
record = record._replace(yordinate="477564")
# VICKERSTOWN METHODIST CHURCH
if record.stationcode == "AA/1":
record = record._replace(xordinate="318608")
record = record._replace(yordinate="468975")
return super().station_record_to_dict(record)
|
from data_importers.management.commands import BaseDemocracyCountsCsvImporter
class Command(BaseDemocracyCountsCsvImporter):
council_id = "BAR"
addresses_name = "2021-03-08T19:54:15.110811/Barrow in Furness Democracy Club - Polling Districts (2).csv"
stations_name = "2021-03-08T19:54:15.110811/Barrow in Furness Democracy Club - Polling Stations (2).csv"
elections = ["2021-05-06"]
allow_station_point_from_postcode = False
def address_record_to_dict(self, record):
if record.postcode in ["LA13 9SF", "LA13 0NF"]:
return None
return super().address_record_to_dict(record)
def station_record_to_dict(self, record):
# ASKAM COMMUNITY CENTRE
if record.stationcode in ["LC/1", "LC/2"]:
record = record._replace(xordinate="321435")
record = record._replace(yordinate="477563")
# VICKERSTOWN METHODIST CHURCH
if record.stationcode == "AA/1":
record = record._replace(xordinate="318614")
record = record._replace(yordinate="468960")
return super().station_record_to_dict(record)
|
Update barrow in furness coords from council
|
Update barrow in furness coords from council
|
Python
|
bsd-3-clause
|
DemocracyClub/UK-Polling-Stations,DemocracyClub/UK-Polling-Stations,DemocracyClub/UK-Polling-Stations
|
from data_importers.management.commands import BaseDemocracyCountsCsvImporter
class Command(BaseDemocracyCountsCsvImporter):
council_id = "BAR"
addresses_name = "2021-03-08T19:54:15.110811/Barrow in Furness Democracy Club - Polling Districts (2).csv"
stations_name = "2021-03-08T19:54:15.110811/Barrow in Furness Democracy Club - Polling Stations (2).csv"
elections = ["2021-05-06"]
allow_station_point_from_postcode = False
def address_record_to_dict(self, record):
if record.postcode in ["LA13 9SF", "LA13 0NF"]:
return None
return super().address_record_to_dict(record)
def station_record_to_dict(self, record):
# ASKAM COMMUNITY CENTRE
if record.stationcode in ["LC/1", "LC/2"]:
record = record._replace(xordinate="321436")
record = record._replace(yordinate="477564")
# VICKERSTOWN METHODIST CHURCH
if record.stationcode == "AA/1":
record = record._replace(xordinate="318608")
record = record._replace(yordinate="468975")
return super().station_record_to_dict(record)
Update barrow in furness coords from council
|
from data_importers.management.commands import BaseDemocracyCountsCsvImporter
class Command(BaseDemocracyCountsCsvImporter):
council_id = "BAR"
addresses_name = "2021-03-08T19:54:15.110811/Barrow in Furness Democracy Club - Polling Districts (2).csv"
stations_name = "2021-03-08T19:54:15.110811/Barrow in Furness Democracy Club - Polling Stations (2).csv"
elections = ["2021-05-06"]
allow_station_point_from_postcode = False
def address_record_to_dict(self, record):
if record.postcode in ["LA13 9SF", "LA13 0NF"]:
return None
return super().address_record_to_dict(record)
def station_record_to_dict(self, record):
# ASKAM COMMUNITY CENTRE
if record.stationcode in ["LC/1", "LC/2"]:
record = record._replace(xordinate="321435")
record = record._replace(yordinate="477563")
# VICKERSTOWN METHODIST CHURCH
if record.stationcode == "AA/1":
record = record._replace(xordinate="318614")
record = record._replace(yordinate="468960")
return super().station_record_to_dict(record)
|
<commit_before>from data_importers.management.commands import BaseDemocracyCountsCsvImporter
class Command(BaseDemocracyCountsCsvImporter):
council_id = "BAR"
addresses_name = "2021-03-08T19:54:15.110811/Barrow in Furness Democracy Club - Polling Districts (2).csv"
stations_name = "2021-03-08T19:54:15.110811/Barrow in Furness Democracy Club - Polling Stations (2).csv"
elections = ["2021-05-06"]
allow_station_point_from_postcode = False
def address_record_to_dict(self, record):
if record.postcode in ["LA13 9SF", "LA13 0NF"]:
return None
return super().address_record_to_dict(record)
def station_record_to_dict(self, record):
# ASKAM COMMUNITY CENTRE
if record.stationcode in ["LC/1", "LC/2"]:
record = record._replace(xordinate="321436")
record = record._replace(yordinate="477564")
# VICKERSTOWN METHODIST CHURCH
if record.stationcode == "AA/1":
record = record._replace(xordinate="318608")
record = record._replace(yordinate="468975")
return super().station_record_to_dict(record)
<commit_msg>Update barrow in furness coords from council<commit_after>
|
from data_importers.management.commands import BaseDemocracyCountsCsvImporter
class Command(BaseDemocracyCountsCsvImporter):
council_id = "BAR"
addresses_name = "2021-03-08T19:54:15.110811/Barrow in Furness Democracy Club - Polling Districts (2).csv"
stations_name = "2021-03-08T19:54:15.110811/Barrow in Furness Democracy Club - Polling Stations (2).csv"
elections = ["2021-05-06"]
allow_station_point_from_postcode = False
def address_record_to_dict(self, record):
if record.postcode in ["LA13 9SF", "LA13 0NF"]:
return None
return super().address_record_to_dict(record)
def station_record_to_dict(self, record):
# ASKAM COMMUNITY CENTRE
if record.stationcode in ["LC/1", "LC/2"]:
record = record._replace(xordinate="321435")
record = record._replace(yordinate="477563")
# VICKERSTOWN METHODIST CHURCH
if record.stationcode == "AA/1":
record = record._replace(xordinate="318614")
record = record._replace(yordinate="468960")
return super().station_record_to_dict(record)
|
from data_importers.management.commands import BaseDemocracyCountsCsvImporter
class Command(BaseDemocracyCountsCsvImporter):
council_id = "BAR"
addresses_name = "2021-03-08T19:54:15.110811/Barrow in Furness Democracy Club - Polling Districts (2).csv"
stations_name = "2021-03-08T19:54:15.110811/Barrow in Furness Democracy Club - Polling Stations (2).csv"
elections = ["2021-05-06"]
allow_station_point_from_postcode = False
def address_record_to_dict(self, record):
if record.postcode in ["LA13 9SF", "LA13 0NF"]:
return None
return super().address_record_to_dict(record)
def station_record_to_dict(self, record):
# ASKAM COMMUNITY CENTRE
if record.stationcode in ["LC/1", "LC/2"]:
record = record._replace(xordinate="321436")
record = record._replace(yordinate="477564")
# VICKERSTOWN METHODIST CHURCH
if record.stationcode == "AA/1":
record = record._replace(xordinate="318608")
record = record._replace(yordinate="468975")
return super().station_record_to_dict(record)
Update barrow in furness coords from councilfrom data_importers.management.commands import BaseDemocracyCountsCsvImporter
class Command(BaseDemocracyCountsCsvImporter):
council_id = "BAR"
addresses_name = "2021-03-08T19:54:15.110811/Barrow in Furness Democracy Club - Polling Districts (2).csv"
stations_name = "2021-03-08T19:54:15.110811/Barrow in Furness Democracy Club - Polling Stations (2).csv"
elections = ["2021-05-06"]
allow_station_point_from_postcode = False
def address_record_to_dict(self, record):
if record.postcode in ["LA13 9SF", "LA13 0NF"]:
return None
return super().address_record_to_dict(record)
def station_record_to_dict(self, record):
# ASKAM COMMUNITY CENTRE
if record.stationcode in ["LC/1", "LC/2"]:
record = record._replace(xordinate="321435")
record = record._replace(yordinate="477563")
# VICKERSTOWN METHODIST CHURCH
if record.stationcode == "AA/1":
record = record._replace(xordinate="318614")
record = record._replace(yordinate="468960")
return super().station_record_to_dict(record)
|
<commit_before>from data_importers.management.commands import BaseDemocracyCountsCsvImporter
class Command(BaseDemocracyCountsCsvImporter):
council_id = "BAR"
addresses_name = "2021-03-08T19:54:15.110811/Barrow in Furness Democracy Club - Polling Districts (2).csv"
stations_name = "2021-03-08T19:54:15.110811/Barrow in Furness Democracy Club - Polling Stations (2).csv"
elections = ["2021-05-06"]
allow_station_point_from_postcode = False
def address_record_to_dict(self, record):
if record.postcode in ["LA13 9SF", "LA13 0NF"]:
return None
return super().address_record_to_dict(record)
def station_record_to_dict(self, record):
# ASKAM COMMUNITY CENTRE
if record.stationcode in ["LC/1", "LC/2"]:
record = record._replace(xordinate="321436")
record = record._replace(yordinate="477564")
# VICKERSTOWN METHODIST CHURCH
if record.stationcode == "AA/1":
record = record._replace(xordinate="318608")
record = record._replace(yordinate="468975")
return super().station_record_to_dict(record)
<commit_msg>Update barrow in furness coords from council<commit_after>from data_importers.management.commands import BaseDemocracyCountsCsvImporter
class Command(BaseDemocracyCountsCsvImporter):
council_id = "BAR"
addresses_name = "2021-03-08T19:54:15.110811/Barrow in Furness Democracy Club - Polling Districts (2).csv"
stations_name = "2021-03-08T19:54:15.110811/Barrow in Furness Democracy Club - Polling Stations (2).csv"
elections = ["2021-05-06"]
allow_station_point_from_postcode = False
def address_record_to_dict(self, record):
if record.postcode in ["LA13 9SF", "LA13 0NF"]:
return None
return super().address_record_to_dict(record)
def station_record_to_dict(self, record):
# ASKAM COMMUNITY CENTRE
if record.stationcode in ["LC/1", "LC/2"]:
record = record._replace(xordinate="321435")
record = record._replace(yordinate="477563")
# VICKERSTOWN METHODIST CHURCH
if record.stationcode == "AA/1":
record = record._replace(xordinate="318614")
record = record._replace(yordinate="468960")
return super().station_record_to_dict(record)
|
63f8f15d359fd12827ef41def4faf72a5e998640
|
cactus/listener/__init__.py
|
cactus/listener/__init__.py
|
import logging
from cactus.listener.polling import PollingListener
logger = logging.getLogger(__name__)
try:
from cactus.listener.mac import FSEventsListener as Listener
except (ImportError, OSError):
logger.warning("Failed to load FSEventsListener", exc_info=True)
Listener = PollingListener
|
import logging
from cactus.listener.polling import PollingListener
logger = logging.getLogger(__name__)
try:
from cactus.listener.mac import FSEventsListener as Listener
except (ImportError, OSError):
logger.debug("Failed to load FSEventsListener, falling back to PollingListener", exc_info=True)
Listener = PollingListener
|
Make FSEventsListener a debug-only thing
|
Make FSEventsListener a debug-only thing
|
Python
|
bsd-3-clause
|
chaudum/Cactus,Knownly/Cactus,Knownly/Cactus,koenbok/Cactus,koenbok/Cactus,chaudum/Cactus,chaudum/Cactus,koenbok/Cactus,eudicots/Cactus,ibarria0/Cactus,Knownly/Cactus,eudicots/Cactus,ibarria0/Cactus,eudicots/Cactus,ibarria0/Cactus
|
import logging
from cactus.listener.polling import PollingListener
logger = logging.getLogger(__name__)
try:
from cactus.listener.mac import FSEventsListener as Listener
except (ImportError, OSError):
logger.warning("Failed to load FSEventsListener", exc_info=True)
Listener = PollingListener
Make FSEventsListener a debug-only thing
|
import logging
from cactus.listener.polling import PollingListener
logger = logging.getLogger(__name__)
try:
from cactus.listener.mac import FSEventsListener as Listener
except (ImportError, OSError):
logger.debug("Failed to load FSEventsListener, falling back to PollingListener", exc_info=True)
Listener = PollingListener
|
<commit_before>import logging
from cactus.listener.polling import PollingListener
logger = logging.getLogger(__name__)
try:
from cactus.listener.mac import FSEventsListener as Listener
except (ImportError, OSError):
logger.warning("Failed to load FSEventsListener", exc_info=True)
Listener = PollingListener
<commit_msg>Make FSEventsListener a debug-only thing<commit_after>
|
import logging
from cactus.listener.polling import PollingListener
logger = logging.getLogger(__name__)
try:
from cactus.listener.mac import FSEventsListener as Listener
except (ImportError, OSError):
logger.debug("Failed to load FSEventsListener, falling back to PollingListener", exc_info=True)
Listener = PollingListener
|
import logging
from cactus.listener.polling import PollingListener
logger = logging.getLogger(__name__)
try:
from cactus.listener.mac import FSEventsListener as Listener
except (ImportError, OSError):
logger.warning("Failed to load FSEventsListener", exc_info=True)
Listener = PollingListener
Make FSEventsListener a debug-only thingimport logging
from cactus.listener.polling import PollingListener
logger = logging.getLogger(__name__)
try:
from cactus.listener.mac import FSEventsListener as Listener
except (ImportError, OSError):
logger.debug("Failed to load FSEventsListener, falling back to PollingListener", exc_info=True)
Listener = PollingListener
|
<commit_before>import logging
from cactus.listener.polling import PollingListener
logger = logging.getLogger(__name__)
try:
from cactus.listener.mac import FSEventsListener as Listener
except (ImportError, OSError):
logger.warning("Failed to load FSEventsListener", exc_info=True)
Listener = PollingListener
<commit_msg>Make FSEventsListener a debug-only thing<commit_after>import logging
from cactus.listener.polling import PollingListener
logger = logging.getLogger(__name__)
try:
from cactus.listener.mac import FSEventsListener as Listener
except (ImportError, OSError):
logger.debug("Failed to load FSEventsListener, falling back to PollingListener", exc_info=True)
Listener = PollingListener
|
86dca4a7d3c1574af9da85e5a2f10b84d18d28c0
|
blueprints/aws_backup_plans/delete.py
|
blueprints/aws_backup_plans/delete.py
|
from common.methods import set_progress
from azure.common.credentials import ServicePrincipalCredentials
from botocore.exceptions import ClientError
from resourcehandlers.aws.models import AWSHandler
import boto3
def run(job, **kwargs):
resource = kwargs.pop('resources').first()
backup_plan_id = resource.attributes.get(field__name='backup_plan_id').value
rh_id = resource.attributes.get(field__name='aws_rh_id').value
region = resource.attributes.get(field__name='aws_region').value
rh = AWSHandler.objects.get(id=rh_id)
backup_plan_name=resource.name
backup_vault_name=backup_plan_name+'backup-vault'
set_progress("Connecting to aws backups...")
client = boto3.client('backup',
region_name=region,
aws_access_key_id=rh.serviceaccount,
aws_secret_access_key=rh.servicepasswd
)
try:
set_progress("Deleting the backup plan vault...")
client.delete_backup_vault(
BackupVaultName=backup_vault_name)
set_progress("Deleting the backup plan...")
client.delete_backup_plan(BackupPlanId=backup_plan_id)
except Exception as e:
return "FAILURE", "Backup plan could not be deleted", e
return "SUCCESS", "The network security group has been succesfully deleted", ""
|
from common.methods import set_progress
from azure.common.credentials import ServicePrincipalCredentials
from botocore.exceptions import ClientError
from resourcehandlers.aws.models import AWSHandler
import boto3
def run(job, **kwargs):
resource = kwargs.pop('resources').first()
backup_plan_id = resource.attributes.get(field__name='backup_plan_id').value
rh_id = resource.attributes.get(field__name='aws_rh_id').value
region = resource.attributes.get(field__name='aws_region').value
rh = AWSHandler.objects.get(id=rh_id)
set_progress("Connecting to aws backups...")
client = boto3.client('backup',
region_name=region,
aws_access_key_id=rh.serviceaccount,
aws_secret_access_key=rh.servicepasswd
)
set_progress("Deleting the backup plan...")
try:
client.delete_backup_plan(BackupPlanId=backup_plan_id)
except Exception as e:
return "FAILURE", "Backup plan could not be deleted", e
return "SUCCESS", "The network security group has been succesfully deleted", ""
|
Revert "[Dev-20546] AwSBackPlan-Blueprint is broken-Teardown is not working"
|
Revert "[Dev-20546] AwSBackPlan-Blueprint is broken-Teardown is not working"
|
Python
|
apache-2.0
|
CloudBoltSoftware/cloudbolt-forge,CloudBoltSoftware/cloudbolt-forge,CloudBoltSoftware/cloudbolt-forge,CloudBoltSoftware/cloudbolt-forge
|
from common.methods import set_progress
from azure.common.credentials import ServicePrincipalCredentials
from botocore.exceptions import ClientError
from resourcehandlers.aws.models import AWSHandler
import boto3
def run(job, **kwargs):
resource = kwargs.pop('resources').first()
backup_plan_id = resource.attributes.get(field__name='backup_plan_id').value
rh_id = resource.attributes.get(field__name='aws_rh_id').value
region = resource.attributes.get(field__name='aws_region').value
rh = AWSHandler.objects.get(id=rh_id)
backup_plan_name=resource.name
backup_vault_name=backup_plan_name+'backup-vault'
set_progress("Connecting to aws backups...")
client = boto3.client('backup',
region_name=region,
aws_access_key_id=rh.serviceaccount,
aws_secret_access_key=rh.servicepasswd
)
try:
set_progress("Deleting the backup plan vault...")
client.delete_backup_vault(
BackupVaultName=backup_vault_name)
set_progress("Deleting the backup plan...")
client.delete_backup_plan(BackupPlanId=backup_plan_id)
except Exception as e:
return "FAILURE", "Backup plan could not be deleted", e
return "SUCCESS", "The network security group has been succesfully deleted", ""
Revert "[Dev-20546] AwSBackPlan-Blueprint is broken-Teardown is not working"
|
from common.methods import set_progress
from azure.common.credentials import ServicePrincipalCredentials
from botocore.exceptions import ClientError
from resourcehandlers.aws.models import AWSHandler
import boto3
def run(job, **kwargs):
resource = kwargs.pop('resources').first()
backup_plan_id = resource.attributes.get(field__name='backup_plan_id').value
rh_id = resource.attributes.get(field__name='aws_rh_id').value
region = resource.attributes.get(field__name='aws_region').value
rh = AWSHandler.objects.get(id=rh_id)
set_progress("Connecting to aws backups...")
client = boto3.client('backup',
region_name=region,
aws_access_key_id=rh.serviceaccount,
aws_secret_access_key=rh.servicepasswd
)
set_progress("Deleting the backup plan...")
try:
client.delete_backup_plan(BackupPlanId=backup_plan_id)
except Exception as e:
return "FAILURE", "Backup plan could not be deleted", e
return "SUCCESS", "The network security group has been succesfully deleted", ""
|
<commit_before>from common.methods import set_progress
from azure.common.credentials import ServicePrincipalCredentials
from botocore.exceptions import ClientError
from resourcehandlers.aws.models import AWSHandler
import boto3
def run(job, **kwargs):
resource = kwargs.pop('resources').first()
backup_plan_id = resource.attributes.get(field__name='backup_plan_id').value
rh_id = resource.attributes.get(field__name='aws_rh_id').value
region = resource.attributes.get(field__name='aws_region').value
rh = AWSHandler.objects.get(id=rh_id)
backup_plan_name=resource.name
backup_vault_name=backup_plan_name+'backup-vault'
set_progress("Connecting to aws backups...")
client = boto3.client('backup',
region_name=region,
aws_access_key_id=rh.serviceaccount,
aws_secret_access_key=rh.servicepasswd
)
try:
set_progress("Deleting the backup plan vault...")
client.delete_backup_vault(
BackupVaultName=backup_vault_name)
set_progress("Deleting the backup plan...")
client.delete_backup_plan(BackupPlanId=backup_plan_id)
except Exception as e:
return "FAILURE", "Backup plan could not be deleted", e
return "SUCCESS", "The network security group has been succesfully deleted", ""
<commit_msg>Revert "[Dev-20546] AwSBackPlan-Blueprint is broken-Teardown is not working"<commit_after>
|
from common.methods import set_progress
from azure.common.credentials import ServicePrincipalCredentials
from botocore.exceptions import ClientError
from resourcehandlers.aws.models import AWSHandler
import boto3
def run(job, **kwargs):
resource = kwargs.pop('resources').first()
backup_plan_id = resource.attributes.get(field__name='backup_plan_id').value
rh_id = resource.attributes.get(field__name='aws_rh_id').value
region = resource.attributes.get(field__name='aws_region').value
rh = AWSHandler.objects.get(id=rh_id)
set_progress("Connecting to aws backups...")
client = boto3.client('backup',
region_name=region,
aws_access_key_id=rh.serviceaccount,
aws_secret_access_key=rh.servicepasswd
)
set_progress("Deleting the backup plan...")
try:
client.delete_backup_plan(BackupPlanId=backup_plan_id)
except Exception as e:
return "FAILURE", "Backup plan could not be deleted", e
return "SUCCESS", "The network security group has been succesfully deleted", ""
|
from common.methods import set_progress
from azure.common.credentials import ServicePrincipalCredentials
from botocore.exceptions import ClientError
from resourcehandlers.aws.models import AWSHandler
import boto3
def run(job, **kwargs):
resource = kwargs.pop('resources').first()
backup_plan_id = resource.attributes.get(field__name='backup_plan_id').value
rh_id = resource.attributes.get(field__name='aws_rh_id').value
region = resource.attributes.get(field__name='aws_region').value
rh = AWSHandler.objects.get(id=rh_id)
backup_plan_name=resource.name
backup_vault_name=backup_plan_name+'backup-vault'
set_progress("Connecting to aws backups...")
client = boto3.client('backup',
region_name=region,
aws_access_key_id=rh.serviceaccount,
aws_secret_access_key=rh.servicepasswd
)
try:
set_progress("Deleting the backup plan vault...")
client.delete_backup_vault(
BackupVaultName=backup_vault_name)
set_progress("Deleting the backup plan...")
client.delete_backup_plan(BackupPlanId=backup_plan_id)
except Exception as e:
return "FAILURE", "Backup plan could not be deleted", e
return "SUCCESS", "The network security group has been succesfully deleted", ""
Revert "[Dev-20546] AwSBackPlan-Blueprint is broken-Teardown is not working"from common.methods import set_progress
from azure.common.credentials import ServicePrincipalCredentials
from botocore.exceptions import ClientError
from resourcehandlers.aws.models import AWSHandler
import boto3
def run(job, **kwargs):
resource = kwargs.pop('resources').first()
backup_plan_id = resource.attributes.get(field__name='backup_plan_id').value
rh_id = resource.attributes.get(field__name='aws_rh_id').value
region = resource.attributes.get(field__name='aws_region').value
rh = AWSHandler.objects.get(id=rh_id)
set_progress("Connecting to aws backups...")
client = boto3.client('backup',
region_name=region,
aws_access_key_id=rh.serviceaccount,
aws_secret_access_key=rh.servicepasswd
)
set_progress("Deleting the backup plan...")
try:
client.delete_backup_plan(BackupPlanId=backup_plan_id)
except Exception as e:
return "FAILURE", "Backup plan could not be deleted", e
return "SUCCESS", "The network security group has been succesfully deleted", ""
|
<commit_before>from common.methods import set_progress
from azure.common.credentials import ServicePrincipalCredentials
from botocore.exceptions import ClientError
from resourcehandlers.aws.models import AWSHandler
import boto3
def run(job, **kwargs):
resource = kwargs.pop('resources').first()
backup_plan_id = resource.attributes.get(field__name='backup_plan_id').value
rh_id = resource.attributes.get(field__name='aws_rh_id').value
region = resource.attributes.get(field__name='aws_region').value
rh = AWSHandler.objects.get(id=rh_id)
backup_plan_name=resource.name
backup_vault_name=backup_plan_name+'backup-vault'
set_progress("Connecting to aws backups...")
client = boto3.client('backup',
region_name=region,
aws_access_key_id=rh.serviceaccount,
aws_secret_access_key=rh.servicepasswd
)
try:
set_progress("Deleting the backup plan vault...")
client.delete_backup_vault(
BackupVaultName=backup_vault_name)
set_progress("Deleting the backup plan...")
client.delete_backup_plan(BackupPlanId=backup_plan_id)
except Exception as e:
return "FAILURE", "Backup plan could not be deleted", e
return "SUCCESS", "The network security group has been succesfully deleted", ""
<commit_msg>Revert "[Dev-20546] AwSBackPlan-Blueprint is broken-Teardown is not working"<commit_after>from common.methods import set_progress
from azure.common.credentials import ServicePrincipalCredentials
from botocore.exceptions import ClientError
from resourcehandlers.aws.models import AWSHandler
import boto3
def run(job, **kwargs):
resource = kwargs.pop('resources').first()
backup_plan_id = resource.attributes.get(field__name='backup_plan_id').value
rh_id = resource.attributes.get(field__name='aws_rh_id').value
region = resource.attributes.get(field__name='aws_region').value
rh = AWSHandler.objects.get(id=rh_id)
set_progress("Connecting to aws backups...")
client = boto3.client('backup',
region_name=region,
aws_access_key_id=rh.serviceaccount,
aws_secret_access_key=rh.servicepasswd
)
set_progress("Deleting the backup plan...")
try:
client.delete_backup_plan(BackupPlanId=backup_plan_id)
except Exception as e:
return "FAILURE", "Backup plan could not be deleted", e
return "SUCCESS", "The network security group has been succesfully deleted", ""
|
e6a3e0c77ada592c06394af2e235b3528a61202a
|
armstrong/dev/tasks/__init__.py
|
armstrong/dev/tasks/__init__.py
|
import pkg_resources
pkg_resources.declare_namespace(__name__)
|
import pkg_resources
pkg_resources.declare_namespace(__name__)
from contextlib import contextmanager
try:
import coverage
except ImportError:
coverage = False
import os
from os.path import basename, dirname
import sys
from fabric.api import *
from fabric.decorators import task
if not "fabfile" in sys.modules:
sys.stderr.write("This expects to have a 'fabfile' module\n")
sys.stderr.write(-1)
fabfile = sys.modules["fabfile"]
try:
from d51.django.virtualenv.test_runner import run_tests
except ImportError, e:
sys.stderr.write(
"This project requires d51.django.virtualenv.test_runner\n")
sys.exit(-1)
FABRIC_TASK_MODULE = True
__all__ = ["clean", "command", "create_migration", "pep8", "test", "runserver",
"shell", "syncdb", ]
@contextmanager
def html_coverage_report(directory="./coverage"):
# This relies on this being run from within a directory named the same as
# the repository on GitHub. It's fragile, but for our purposes, it works.
if coverage:
base_path = os.path.join(dirname(dirname(__file__)), "armstrong")
files_to_cover = []
for (dir, dirs, files) in os.walk(base_path):
if not dir.find("tests") is -1:
continue
valid = lambda a: a[0] != "." and a[-3:] == ".py"
files_to_cover += ["%s/%s" % (dir, file) for file in files if valid(file)]
cov = coverage.coverage(branch=True, include=files_to_cover)
cov.start()
yield
if coverage:
cov.stop()
cov.html_report(directory=directory)
else:
print "Install coverage.py to measure test coverage"
@task
def clean():
local('find . -name "*.py[co]" -exec rm {} \;')
@task
def create_migration(name):
command((("schemamigration", fabfile.main_app, name), {"initial": True}))
@task
def command(*cmds):
from d51.django.virtualenv.base import VirtualEnvironment
runner = VirtualEnvironment()
runner.run(fabfile.settings)
for cmd in cmds:
if type(cmd) is tuple:
args, kwargs = cmd
else:
args = (cmd, )
kwargs = {}
runner.call_command(*args, **kwargs)
@task
def pep8():
local('find ./armstrong -name "*.py" | xargs pep8', capture=False)
@task
def test():
with html_coverage_report():
run_tests(fabfile.settings, *fabfile.tested_apps)
@task
def runserver():
command("runserver")
@task
def shell():
command("shell")
@task
def syncdb():
command("syncdb", "migrate")
|
Create all of the tasks needed for developing in Armstrong
|
Create all of the tasks needed for developing in Armstrong
|
Python
|
apache-2.0
|
armstrong/armstrong.dev
|
import pkg_resources
pkg_resources.declare_namespace(__name__)
Create all of the tasks needed for developing in Armstrong
|
import pkg_resources
pkg_resources.declare_namespace(__name__)
from contextlib import contextmanager
try:
import coverage
except ImportError:
coverage = False
import os
from os.path import basename, dirname
import sys
from fabric.api import *
from fabric.decorators import task
if not "fabfile" in sys.modules:
sys.stderr.write("This expects to have a 'fabfile' module\n")
sys.stderr.write(-1)
fabfile = sys.modules["fabfile"]
try:
from d51.django.virtualenv.test_runner import run_tests
except ImportError, e:
sys.stderr.write(
"This project requires d51.django.virtualenv.test_runner\n")
sys.exit(-1)
FABRIC_TASK_MODULE = True
__all__ = ["clean", "command", "create_migration", "pep8", "test", "runserver",
"shell", "syncdb", ]
@contextmanager
def html_coverage_report(directory="./coverage"):
# This relies on this being run from within a directory named the same as
# the repository on GitHub. It's fragile, but for our purposes, it works.
if coverage:
base_path = os.path.join(dirname(dirname(__file__)), "armstrong")
files_to_cover = []
for (dir, dirs, files) in os.walk(base_path):
if not dir.find("tests") is -1:
continue
valid = lambda a: a[0] != "." and a[-3:] == ".py"
files_to_cover += ["%s/%s" % (dir, file) for file in files if valid(file)]
cov = coverage.coverage(branch=True, include=files_to_cover)
cov.start()
yield
if coverage:
cov.stop()
cov.html_report(directory=directory)
else:
print "Install coverage.py to measure test coverage"
@task
def clean():
local('find . -name "*.py[co]" -exec rm {} \;')
@task
def create_migration(name):
command((("schemamigration", fabfile.main_app, name), {"initial": True}))
@task
def command(*cmds):
from d51.django.virtualenv.base import VirtualEnvironment
runner = VirtualEnvironment()
runner.run(fabfile.settings)
for cmd in cmds:
if type(cmd) is tuple:
args, kwargs = cmd
else:
args = (cmd, )
kwargs = {}
runner.call_command(*args, **kwargs)
@task
def pep8():
local('find ./armstrong -name "*.py" | xargs pep8', capture=False)
@task
def test():
with html_coverage_report():
run_tests(fabfile.settings, *fabfile.tested_apps)
@task
def runserver():
command("runserver")
@task
def shell():
command("shell")
@task
def syncdb():
command("syncdb", "migrate")
|
<commit_before>import pkg_resources
pkg_resources.declare_namespace(__name__)
<commit_msg>Create all of the tasks needed for developing in Armstrong<commit_after>
|
import pkg_resources
pkg_resources.declare_namespace(__name__)
from contextlib import contextmanager
try:
import coverage
except ImportError:
coverage = False
import os
from os.path import basename, dirname
import sys
from fabric.api import *
from fabric.decorators import task
if not "fabfile" in sys.modules:
sys.stderr.write("This expects to have a 'fabfile' module\n")
sys.stderr.write(-1)
fabfile = sys.modules["fabfile"]
try:
from d51.django.virtualenv.test_runner import run_tests
except ImportError, e:
sys.stderr.write(
"This project requires d51.django.virtualenv.test_runner\n")
sys.exit(-1)
FABRIC_TASK_MODULE = True
__all__ = ["clean", "command", "create_migration", "pep8", "test", "runserver",
"shell", "syncdb", ]
@contextmanager
def html_coverage_report(directory="./coverage"):
# This relies on this being run from within a directory named the same as
# the repository on GitHub. It's fragile, but for our purposes, it works.
if coverage:
base_path = os.path.join(dirname(dirname(__file__)), "armstrong")
files_to_cover = []
for (dir, dirs, files) in os.walk(base_path):
if not dir.find("tests") is -1:
continue
valid = lambda a: a[0] != "." and a[-3:] == ".py"
files_to_cover += ["%s/%s" % (dir, file) for file in files if valid(file)]
cov = coverage.coverage(branch=True, include=files_to_cover)
cov.start()
yield
if coverage:
cov.stop()
cov.html_report(directory=directory)
else:
print "Install coverage.py to measure test coverage"
@task
def clean():
local('find . -name "*.py[co]" -exec rm {} \;')
@task
def create_migration(name):
command((("schemamigration", fabfile.main_app, name), {"initial": True}))
@task
def command(*cmds):
from d51.django.virtualenv.base import VirtualEnvironment
runner = VirtualEnvironment()
runner.run(fabfile.settings)
for cmd in cmds:
if type(cmd) is tuple:
args, kwargs = cmd
else:
args = (cmd, )
kwargs = {}
runner.call_command(*args, **kwargs)
@task
def pep8():
local('find ./armstrong -name "*.py" | xargs pep8', capture=False)
@task
def test():
with html_coverage_report():
run_tests(fabfile.settings, *fabfile.tested_apps)
@task
def runserver():
command("runserver")
@task
def shell():
command("shell")
@task
def syncdb():
command("syncdb", "migrate")
|
import pkg_resources
pkg_resources.declare_namespace(__name__)
Create all of the tasks needed for developing in Armstrongimport pkg_resources
pkg_resources.declare_namespace(__name__)
from contextlib import contextmanager
try:
import coverage
except ImportError:
coverage = False
import os
from os.path import basename, dirname
import sys
from fabric.api import *
from fabric.decorators import task
if not "fabfile" in sys.modules:
sys.stderr.write("This expects to have a 'fabfile' module\n")
sys.stderr.write(-1)
fabfile = sys.modules["fabfile"]
try:
from d51.django.virtualenv.test_runner import run_tests
except ImportError, e:
sys.stderr.write(
"This project requires d51.django.virtualenv.test_runner\n")
sys.exit(-1)
FABRIC_TASK_MODULE = True
__all__ = ["clean", "command", "create_migration", "pep8", "test", "runserver",
"shell", "syncdb", ]
@contextmanager
def html_coverage_report(directory="./coverage"):
# This relies on this being run from within a directory named the same as
# the repository on GitHub. It's fragile, but for our purposes, it works.
if coverage:
base_path = os.path.join(dirname(dirname(__file__)), "armstrong")
files_to_cover = []
for (dir, dirs, files) in os.walk(base_path):
if not dir.find("tests") is -1:
continue
valid = lambda a: a[0] != "." and a[-3:] == ".py"
files_to_cover += ["%s/%s" % (dir, file) for file in files if valid(file)]
cov = coverage.coverage(branch=True, include=files_to_cover)
cov.start()
yield
if coverage:
cov.stop()
cov.html_report(directory=directory)
else:
print "Install coverage.py to measure test coverage"
@task
def clean():
local('find . -name "*.py[co]" -exec rm {} \;')
@task
def create_migration(name):
command((("schemamigration", fabfile.main_app, name), {"initial": True}))
@task
def command(*cmds):
from d51.django.virtualenv.base import VirtualEnvironment
runner = VirtualEnvironment()
runner.run(fabfile.settings)
for cmd in cmds:
if type(cmd) is tuple:
args, kwargs = cmd
else:
args = (cmd, )
kwargs = {}
runner.call_command(*args, **kwargs)
@task
def pep8():
local('find ./armstrong -name "*.py" | xargs pep8', capture=False)
@task
def test():
with html_coverage_report():
run_tests(fabfile.settings, *fabfile.tested_apps)
@task
def runserver():
command("runserver")
@task
def shell():
command("shell")
@task
def syncdb():
command("syncdb", "migrate")
|
<commit_before>import pkg_resources
pkg_resources.declare_namespace(__name__)
<commit_msg>Create all of the tasks needed for developing in Armstrong<commit_after>import pkg_resources
pkg_resources.declare_namespace(__name__)
from contextlib import contextmanager
try:
import coverage
except ImportError:
coverage = False
import os
from os.path import basename, dirname
import sys
from fabric.api import *
from fabric.decorators import task
if not "fabfile" in sys.modules:
sys.stderr.write("This expects to have a 'fabfile' module\n")
sys.stderr.write(-1)
fabfile = sys.modules["fabfile"]
try:
from d51.django.virtualenv.test_runner import run_tests
except ImportError, e:
sys.stderr.write(
"This project requires d51.django.virtualenv.test_runner\n")
sys.exit(-1)
FABRIC_TASK_MODULE = True
__all__ = ["clean", "command", "create_migration", "pep8", "test", "runserver",
"shell", "syncdb", ]
@contextmanager
def html_coverage_report(directory="./coverage"):
# This relies on this being run from within a directory named the same as
# the repository on GitHub. It's fragile, but for our purposes, it works.
if coverage:
base_path = os.path.join(dirname(dirname(__file__)), "armstrong")
files_to_cover = []
for (dir, dirs, files) in os.walk(base_path):
if not dir.find("tests") is -1:
continue
valid = lambda a: a[0] != "." and a[-3:] == ".py"
files_to_cover += ["%s/%s" % (dir, file) for file in files if valid(file)]
cov = coverage.coverage(branch=True, include=files_to_cover)
cov.start()
yield
if coverage:
cov.stop()
cov.html_report(directory=directory)
else:
print "Install coverage.py to measure test coverage"
@task
def clean():
local('find . -name "*.py[co]" -exec rm {} \;')
@task
def create_migration(name):
command((("schemamigration", fabfile.main_app, name), {"initial": True}))
@task
def command(*cmds):
from d51.django.virtualenv.base import VirtualEnvironment
runner = VirtualEnvironment()
runner.run(fabfile.settings)
for cmd in cmds:
if type(cmd) is tuple:
args, kwargs = cmd
else:
args = (cmd, )
kwargs = {}
runner.call_command(*args, **kwargs)
@task
def pep8():
local('find ./armstrong -name "*.py" | xargs pep8', capture=False)
@task
def test():
with html_coverage_report():
run_tests(fabfile.settings, *fabfile.tested_apps)
@task
def runserver():
command("runserver")
@task
def shell():
command("shell")
@task
def syncdb():
command("syncdb", "migrate")
|
a37db382c69293953c709365cd2c64c4a99f419e
|
rest_framework/authtoken/migrations/0001_initial.py
|
rest_framework/authtoken/migrations/0001_initial.py
|
# encoding: utf8
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operations = [
migrations.CreateModel(
name='Token',
fields=[
('key', models.CharField(max_length=40, serialize=False, primary_key=True)),
('user', models.OneToOneField(to=settings.AUTH_USER_MODEL, to_field='id')),
('created', models.DateTimeField(auto_now_add=True)),
],
options={
'abstract': False,
},
bases=(models.Model,),
),
]
|
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operations = [
migrations.CreateModel(
name='Token',
fields=[
('key', models.CharField(max_length=40, serialize=False, primary_key=True)),
('created', models.DateTimeField(auto_now_add=True)),
('user', models.OneToOneField(related_name=b'auth_token', to=settings.AUTH_USER_MODEL)),
],
options={
},
bases=(models.Model,),
),
]
|
Update authtoken latest Django 1.7 migration
|
Update authtoken latest Django 1.7 migration
|
Python
|
bsd-2-clause
|
James1345/django-rest-framework,wzbozon/django-rest-framework,rhblind/django-rest-framework,ajaali/django-rest-framework,tcroiset/django-rest-framework,hunter007/django-rest-framework,hunter007/django-rest-framework,wwj718/django-rest-framework,kennydude/django-rest-framework,jpadilla/django-rest-framework,kezabelle/django-rest-framework,lubomir/django-rest-framework,adambain-vokal/django-rest-framework,wedaly/django-rest-framework,ashishfinoit/django-rest-framework,wwj718/django-rest-framework,potpath/django-rest-framework,callorico/django-rest-framework,rafaelang/django-rest-framework,leeahoward/django-rest-framework,ambivalentno/django-rest-framework,waytai/django-rest-framework,dmwyatt/django-rest-framework,tcroiset/django-rest-framework,akalipetis/django-rest-framework,andriy-s/django-rest-framework,arpheno/django-rest-framework,uruz/django-rest-framework,rafaelang/django-rest-framework,qsorix/django-rest-framework,iheitlager/django-rest-framework,justanr/django-rest-framework,atombrella/django-rest-framework,leeahoward/django-rest-framework,buptlsl/django-rest-framework,sheppard/django-rest-framework,leeahoward/django-rest-framework,ebsaral/django-rest-framework,HireAnEsquire/django-rest-framework,ticosax/django-rest-framework,brandoncazander/django-rest-framework,cyberj/django-rest-framework,James1345/django-rest-framework,fishky/django-rest-framework,jtiai/django-rest-framework,sbellem/django-rest-framework,justanr/django-rest-framework,hnakamur/django-rest-framework,jtiai/django-rest-framework,potpath/django-rest-framework,zeldalink0515/django-rest-framework,agconti/django-rest-framework,wwj718/django-rest-framework,canassa/django-rest-framework,elim/django-rest-framework,douwevandermeij/django-rest-framework,ezheidtmann/django-rest-framework,tigeraniya/django-rest-framework,abdulhaq-e/django-rest-framework,mgaitan/django-rest-framework,ambivalentno/django-rest-framework,andriy-s/django-rest-framework,aericson/django-rest-framework,raphaelmerx/django-rest-framework,VishvajitP/django-rest-framework,xiaotangyuan/django-rest-framework,canassa/django-rest-framework,jpadilla/django-rest-framework,cheif/django-rest-framework,ajaali/django-rest-framework,rhblind/django-rest-framework,antonyc/django-rest-framework,bluedazzle/django-rest-framework,douwevandermeij/django-rest-framework,rubendura/django-rest-framework,delinhabit/django-rest-framework,hnarayanan/django-rest-framework,rafaelang/django-rest-framework,d0ugal/django-rest-framework,jtiai/django-rest-framework,tcroiset/django-rest-framework,rubendura/django-rest-framework,wzbozon/django-rest-framework,damycra/django-rest-framework,krinart/django-rest-framework,wzbozon/django-rest-framework,kezabelle/django-rest-framework,wangpanjun/django-rest-framework,nryoung/django-rest-framework,nhorelik/django-rest-framework,cheif/django-rest-framework,jpulec/django-rest-framework,elim/django-rest-framework,agconti/django-rest-framework,kgeorgy/django-rest-framework,YBJAY00000/django-rest-framework,alacritythief/django-rest-framework,johnraz/django-rest-framework,arpheno/django-rest-framework,edx/django-rest-framework,damycra/django-rest-framework,gregmuellegger/django-rest-framework,zeldalink0515/django-rest-framework,jness/django-rest-framework,buptlsl/django-rest-framework,jness/django-rest-framework,thedrow/django-rest-framework-1,adambain-vokal/django-rest-framework,gregmuellegger/django-rest-framework,mgaitan/django-rest-framework,kennydude/django-rest-framework,vstoykov/django-rest-framework,wedaly/django-rest-framework,douwevandermeij/django-rest-framework,aericson/django-rest-framework,uruz/django-rest-framework,potpath/django-rest-framework,paolopaolopaolo/django-rest-framework,rubendura/django-rest-framework,HireAnEsquire/django-rest-framework,lubomir/django-rest-framework,aericson/django-rest-framework,nhorelik/django-rest-framework,uruz/django-rest-framework,thedrow/django-rest-framework-1,tomchristie/django-rest-framework,johnraz/django-rest-framework,davesque/django-rest-framework,agconti/django-rest-framework,jpadilla/django-rest-framework,kgeorgy/django-rest-framework,abdulhaq-e/django-rest-framework,delinhabit/django-rest-framework,lubomir/django-rest-framework,ossanna16/django-rest-framework,MJafarMashhadi/django-rest-framework,kylefox/django-rest-framework,davesque/django-rest-framework,johnraz/django-rest-framework,rafaelcaricio/django-rest-framework,pombredanne/django-rest-framework,davesque/django-rest-framework,callorico/django-rest-framework,sheppard/django-rest-framework,kgeorgy/django-rest-framework,alacritythief/django-rest-framework,ambivalentno/django-rest-framework,bluedazzle/django-rest-framework,andriy-s/django-rest-framework,krinart/django-rest-framework,alacritythief/django-rest-framework,delinhabit/django-rest-framework,maryokhin/django-rest-framework,YBJAY00000/django-rest-framework,iheitlager/django-rest-framework,raphaelmerx/django-rest-framework,nhorelik/django-rest-framework,akalipetis/django-rest-framework,tigeraniya/django-rest-framework,waytai/django-rest-framework,damycra/django-rest-framework,qsorix/django-rest-framework,fishky/django-rest-framework,yiyocx/django-rest-framework,ticosax/django-rest-framework,jpulec/django-rest-framework,ezheidtmann/django-rest-framework,cyberj/django-rest-framework,hunter007/django-rest-framework,sbellem/django-rest-framework,d0ugal/django-rest-framework,krinart/django-rest-framework,fishky/django-rest-framework,paolopaolopaolo/django-rest-framework,dmwyatt/django-rest-framework,vstoykov/django-rest-framework,callorico/django-rest-framework,atombrella/django-rest-framework,ticosax/django-rest-framework,ossanna16/django-rest-framework,werthen/django-rest-framework,uploadcare/django-rest-framework,cyberj/django-rest-framework,sbellem/django-rest-framework,maryokhin/django-rest-framework,tigeraniya/django-rest-framework,vstoykov/django-rest-framework,ezheidtmann/django-rest-framework,xiaotangyuan/django-rest-framework,hnarayanan/django-rest-framework,xiaotangyuan/django-rest-framework,brandoncazander/django-rest-framework,simudream/django-rest-framework,ebsaral/django-rest-framework,uploadcare/django-rest-framework,gregmuellegger/django-rest-framework,paolopaolopaolo/django-rest-framework,arpheno/django-rest-framework,YBJAY00000/django-rest-framework,nryoung/django-rest-framework,jness/django-rest-framework,waytai/django-rest-framework,VishvajitP/django-rest-framework,justanr/django-rest-framework,sheppard/django-rest-framework,thedrow/django-rest-framework-1,bluedazzle/django-rest-framework,hnarayanan/django-rest-framework,AlexandreProenca/django-rest-framework,pombredanne/django-rest-framework,kezabelle/django-rest-framework,sehmaschine/django-rest-framework,ashishfinoit/django-rest-framework,sehmaschine/django-rest-framework,James1345/django-rest-framework,ebsaral/django-rest-framework,MJafarMashhadi/django-rest-framework,canassa/django-rest-framework,ajaali/django-rest-framework,antonyc/django-rest-framework,wedaly/django-rest-framework,hnakamur/django-rest-framework,atombrella/django-rest-framework,kylefox/django-rest-framework,kennydude/django-rest-framework,edx/django-rest-framework,jerryhebert/django-rest-framework,maryokhin/django-rest-framework,werthen/django-rest-framework,ashishfinoit/django-rest-framework,elim/django-rest-framework,AlexandreProenca/django-rest-framework,tomchristie/django-rest-framework,pombredanne/django-rest-framework,d0ugal/django-rest-framework,wangpanjun/django-rest-framework,mgaitan/django-rest-framework,qsorix/django-rest-framework,HireAnEsquire/django-rest-framework,MJafarMashhadi/django-rest-framework,simudream/django-rest-framework,jpulec/django-rest-framework,uploadcare/django-rest-framework,linovia/django-rest-framework,buptlsl/django-rest-framework,rafaelcaricio/django-rest-framework,rhblind/django-rest-framework,yiyocx/django-rest-framework,linovia/django-rest-framework,abdulhaq-e/django-rest-framework,jerryhebert/django-rest-framework,jerryhebert/django-rest-framework,wangpanjun/django-rest-framework,tomchristie/django-rest-framework,rafaelcaricio/django-rest-framework,linovia/django-rest-framework,AlexandreProenca/django-rest-framework,cheif/django-rest-framework,brandoncazander/django-rest-framework,kylefox/django-rest-framework,zeldalink0515/django-rest-framework,edx/django-rest-framework,akalipetis/django-rest-framework,iheitlager/django-rest-framework,raphaelmerx/django-rest-framework,yiyocx/django-rest-framework,antonyc/django-rest-framework,dmwyatt/django-rest-framework,VishvajitP/django-rest-framework,werthen/django-rest-framework,ossanna16/django-rest-framework,adambain-vokal/django-rest-framework,nryoung/django-rest-framework,sehmaschine/django-rest-framework,simudream/django-rest-framework,hnakamur/django-rest-framework
|
# encoding: utf8
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operations = [
migrations.CreateModel(
name='Token',
fields=[
('key', models.CharField(max_length=40, serialize=False, primary_key=True)),
('user', models.OneToOneField(to=settings.AUTH_USER_MODEL, to_field='id')),
('created', models.DateTimeField(auto_now_add=True)),
],
options={
'abstract': False,
},
bases=(models.Model,),
),
]
Update authtoken latest Django 1.7 migration
|
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operations = [
migrations.CreateModel(
name='Token',
fields=[
('key', models.CharField(max_length=40, serialize=False, primary_key=True)),
('created', models.DateTimeField(auto_now_add=True)),
('user', models.OneToOneField(related_name=b'auth_token', to=settings.AUTH_USER_MODEL)),
],
options={
},
bases=(models.Model,),
),
]
|
<commit_before># encoding: utf8
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operations = [
migrations.CreateModel(
name='Token',
fields=[
('key', models.CharField(max_length=40, serialize=False, primary_key=True)),
('user', models.OneToOneField(to=settings.AUTH_USER_MODEL, to_field='id')),
('created', models.DateTimeField(auto_now_add=True)),
],
options={
'abstract': False,
},
bases=(models.Model,),
),
]
<commit_msg>Update authtoken latest Django 1.7 migration<commit_after>
|
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operations = [
migrations.CreateModel(
name='Token',
fields=[
('key', models.CharField(max_length=40, serialize=False, primary_key=True)),
('created', models.DateTimeField(auto_now_add=True)),
('user', models.OneToOneField(related_name=b'auth_token', to=settings.AUTH_USER_MODEL)),
],
options={
},
bases=(models.Model,),
),
]
|
# encoding: utf8
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operations = [
migrations.CreateModel(
name='Token',
fields=[
('key', models.CharField(max_length=40, serialize=False, primary_key=True)),
('user', models.OneToOneField(to=settings.AUTH_USER_MODEL, to_field='id')),
('created', models.DateTimeField(auto_now_add=True)),
],
options={
'abstract': False,
},
bases=(models.Model,),
),
]
Update authtoken latest Django 1.7 migration
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operations = [
migrations.CreateModel(
name='Token',
fields=[
('key', models.CharField(max_length=40, serialize=False, primary_key=True)),
('created', models.DateTimeField(auto_now_add=True)),
('user', models.OneToOneField(related_name=b'auth_token', to=settings.AUTH_USER_MODEL)),
],
options={
},
bases=(models.Model,),
),
]
|
<commit_before># encoding: utf8
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operations = [
migrations.CreateModel(
name='Token',
fields=[
('key', models.CharField(max_length=40, serialize=False, primary_key=True)),
('user', models.OneToOneField(to=settings.AUTH_USER_MODEL, to_field='id')),
('created', models.DateTimeField(auto_now_add=True)),
],
options={
'abstract': False,
},
bases=(models.Model,),
),
]
<commit_msg>Update authtoken latest Django 1.7 migration<commit_after>
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operations = [
migrations.CreateModel(
name='Token',
fields=[
('key', models.CharField(max_length=40, serialize=False, primary_key=True)),
('created', models.DateTimeField(auto_now_add=True)),
('user', models.OneToOneField(related_name=b'auth_token', to=settings.AUTH_USER_MODEL)),
],
options={
},
bases=(models.Model,),
),
]
|
04557bbff362ae3b89e7dd98a1fb11e0aaeba50e
|
common/djangoapps/student/migrations/0010_auto_20170207_0458.py
|
common/djangoapps/student/migrations/0010_auto_20170207_0458.py
|
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('student', '0009_auto_20170111_0422'),
]
# This migration was to add a constraint that we lost in the Django
# 1.4->1.8 upgrade. But since the constraint used to be created, production
# would already have the constraint even before running the migration, and
# running the migration would fail. We needed to make the migration
# idempotent. Instead of reverting this migration while we did that, we
# edited it to be a SQL no-op, so that people who had already applied it
# wouldn't end up with a ghost migration.
# It had been:
#
# migrations.RunSQL(
# "create unique index email on auth_user (email);",
# "drop index email on auth_user;"
# )
operations = [
migrations.RunSQL(
# Do nothing:
"select 1",
"select 1"
)
]
|
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('student', '0009_auto_20170111_0422'),
]
# This migration was to add a constraint that we lost in the Django
# 1.4->1.8 upgrade. But since the constraint used to be created, production
# would already have the constraint even before running the migration, and
# running the migration would fail. We needed to make the migration
# idempotent. Instead of reverting this migration while we did that, we
# edited it to be a SQL no-op, so that people who had already applied it
# wouldn't end up with a ghost migration.
# It had been:
#
# migrations.RunSQL(
# "create unique index email on auth_user (email);",
# "drop index email on auth_user;"
# )
operations = [
# Nothing to do.
]
|
Make this no-op migration be a true no-op.
|
Make this no-op migration be a true no-op.
|
Python
|
agpl-3.0
|
philanthropy-u/edx-platform,lduarte1991/edx-platform,eduNEXT/edx-platform,msegado/edx-platform,cpennington/edx-platform,hastexo/edx-platform,a-parhom/edx-platform,ESOedX/edx-platform,angelapper/edx-platform,gymnasium/edx-platform,eduNEXT/edunext-platform,pepeportela/edx-platform,ESOedX/edx-platform,pepeportela/edx-platform,miptliot/edx-platform,BehavioralInsightsTeam/edx-platform,appsembler/edx-platform,msegado/edx-platform,appsembler/edx-platform,eduNEXT/edx-platform,TeachAtTUM/edx-platform,gymnasium/edx-platform,Lektorium-LLC/edx-platform,miptliot/edx-platform,edx/edx-platform,procangroup/edx-platform,mitocw/edx-platform,romain-li/edx-platform,miptliot/edx-platform,CredoReference/edx-platform,Lektorium-LLC/edx-platform,cpennington/edx-platform,proversity-org/edx-platform,fintech-circle/edx-platform,jolyonb/edx-platform,ahmedaljazzar/edx-platform,Stanford-Online/edx-platform,Stanford-Online/edx-platform,stvstnfrd/edx-platform,BehavioralInsightsTeam/edx-platform,gsehub/edx-platform,edx-solutions/edx-platform,teltek/edx-platform,cpennington/edx-platform,pepeportela/edx-platform,BehavioralInsightsTeam/edx-platform,arbrandes/edx-platform,raccoongang/edx-platform,stvstnfrd/edx-platform,ahmedaljazzar/edx-platform,hastexo/edx-platform,arbrandes/edx-platform,ESOedX/edx-platform,CredoReference/edx-platform,eduNEXT/edunext-platform,mitocw/edx-platform,stvstnfrd/edx-platform,fintech-circle/edx-platform,mitocw/edx-platform,pabloborrego93/edx-platform,gsehub/edx-platform,kmoocdev2/edx-platform,angelapper/edx-platform,jolyonb/edx-platform,gymnasium/edx-platform,eduNEXT/edx-platform,gsehub/edx-platform,msegado/edx-platform,teltek/edx-platform,TeachAtTUM/edx-platform,appsembler/edx-platform,pepeportela/edx-platform,Edraak/edraak-platform,pabloborrego93/edx-platform,a-parhom/edx-platform,fintech-circle/edx-platform,pabloborrego93/edx-platform,appsembler/edx-platform,lduarte1991/edx-platform,jolyonb/edx-platform,eduNEXT/edunext-platform,edx-solutions/edx-platform,teltek/edx-platform,proversity-org/edx-platform,proversity-org/edx-platform,edx-solutions/edx-platform,eduNEXT/edx-platform,Lektorium-LLC/edx-platform,edx/edx-platform,kmoocdev2/edx-platform,gsehub/edx-platform,lduarte1991/edx-platform,miptliot/edx-platform,procangroup/edx-platform,CredoReference/edx-platform,teltek/edx-platform,procangroup/edx-platform,philanthropy-u/edx-platform,arbrandes/edx-platform,EDUlib/edx-platform,Edraak/edraak-platform,Edraak/edraak-platform,jolyonb/edx-platform,raccoongang/edx-platform,gymnasium/edx-platform,fintech-circle/edx-platform,raccoongang/edx-platform,pabloborrego93/edx-platform,Stanford-Online/edx-platform,stvstnfrd/edx-platform,edx/edx-platform,kmoocdev2/edx-platform,proversity-org/edx-platform,CredoReference/edx-platform,ahmedaljazzar/edx-platform,lduarte1991/edx-platform,romain-li/edx-platform,philanthropy-u/edx-platform,ahmedaljazzar/edx-platform,kmoocdev2/edx-platform,romain-li/edx-platform,Edraak/edraak-platform,EDUlib/edx-platform,romain-li/edx-platform,cpennington/edx-platform,eduNEXT/edunext-platform,ESOedX/edx-platform,edx/edx-platform,Stanford-Online/edx-platform,romain-li/edx-platform,philanthropy-u/edx-platform,angelapper/edx-platform,edx-solutions/edx-platform,Lektorium-LLC/edx-platform,hastexo/edx-platform,hastexo/edx-platform,a-parhom/edx-platform,procangroup/edx-platform,BehavioralInsightsTeam/edx-platform,mitocw/edx-platform,kmoocdev2/edx-platform,msegado/edx-platform,EDUlib/edx-platform,arbrandes/edx-platform,TeachAtTUM/edx-platform,msegado/edx-platform,TeachAtTUM/edx-platform,angelapper/edx-platform,EDUlib/edx-platform,raccoongang/edx-platform,a-parhom/edx-platform
|
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('student', '0009_auto_20170111_0422'),
]
# This migration was to add a constraint that we lost in the Django
# 1.4->1.8 upgrade. But since the constraint used to be created, production
# would already have the constraint even before running the migration, and
# running the migration would fail. We needed to make the migration
# idempotent. Instead of reverting this migration while we did that, we
# edited it to be a SQL no-op, so that people who had already applied it
# wouldn't end up with a ghost migration.
# It had been:
#
# migrations.RunSQL(
# "create unique index email on auth_user (email);",
# "drop index email on auth_user;"
# )
operations = [
migrations.RunSQL(
# Do nothing:
"select 1",
"select 1"
)
]
Make this no-op migration be a true no-op.
|
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('student', '0009_auto_20170111_0422'),
]
# This migration was to add a constraint that we lost in the Django
# 1.4->1.8 upgrade. But since the constraint used to be created, production
# would already have the constraint even before running the migration, and
# running the migration would fail. We needed to make the migration
# idempotent. Instead of reverting this migration while we did that, we
# edited it to be a SQL no-op, so that people who had already applied it
# wouldn't end up with a ghost migration.
# It had been:
#
# migrations.RunSQL(
# "create unique index email on auth_user (email);",
# "drop index email on auth_user;"
# )
operations = [
# Nothing to do.
]
|
<commit_before># -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('student', '0009_auto_20170111_0422'),
]
# This migration was to add a constraint that we lost in the Django
# 1.4->1.8 upgrade. But since the constraint used to be created, production
# would already have the constraint even before running the migration, and
# running the migration would fail. We needed to make the migration
# idempotent. Instead of reverting this migration while we did that, we
# edited it to be a SQL no-op, so that people who had already applied it
# wouldn't end up with a ghost migration.
# It had been:
#
# migrations.RunSQL(
# "create unique index email on auth_user (email);",
# "drop index email on auth_user;"
# )
operations = [
migrations.RunSQL(
# Do nothing:
"select 1",
"select 1"
)
]
<commit_msg>Make this no-op migration be a true no-op.<commit_after>
|
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('student', '0009_auto_20170111_0422'),
]
# This migration was to add a constraint that we lost in the Django
# 1.4->1.8 upgrade. But since the constraint used to be created, production
# would already have the constraint even before running the migration, and
# running the migration would fail. We needed to make the migration
# idempotent. Instead of reverting this migration while we did that, we
# edited it to be a SQL no-op, so that people who had already applied it
# wouldn't end up with a ghost migration.
# It had been:
#
# migrations.RunSQL(
# "create unique index email on auth_user (email);",
# "drop index email on auth_user;"
# )
operations = [
# Nothing to do.
]
|
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('student', '0009_auto_20170111_0422'),
]
# This migration was to add a constraint that we lost in the Django
# 1.4->1.8 upgrade. But since the constraint used to be created, production
# would already have the constraint even before running the migration, and
# running the migration would fail. We needed to make the migration
# idempotent. Instead of reverting this migration while we did that, we
# edited it to be a SQL no-op, so that people who had already applied it
# wouldn't end up with a ghost migration.
# It had been:
#
# migrations.RunSQL(
# "create unique index email on auth_user (email);",
# "drop index email on auth_user;"
# )
operations = [
migrations.RunSQL(
# Do nothing:
"select 1",
"select 1"
)
]
Make this no-op migration be a true no-op.# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('student', '0009_auto_20170111_0422'),
]
# This migration was to add a constraint that we lost in the Django
# 1.4->1.8 upgrade. But since the constraint used to be created, production
# would already have the constraint even before running the migration, and
# running the migration would fail. We needed to make the migration
# idempotent. Instead of reverting this migration while we did that, we
# edited it to be a SQL no-op, so that people who had already applied it
# wouldn't end up with a ghost migration.
# It had been:
#
# migrations.RunSQL(
# "create unique index email on auth_user (email);",
# "drop index email on auth_user;"
# )
operations = [
# Nothing to do.
]
|
<commit_before># -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('student', '0009_auto_20170111_0422'),
]
# This migration was to add a constraint that we lost in the Django
# 1.4->1.8 upgrade. But since the constraint used to be created, production
# would already have the constraint even before running the migration, and
# running the migration would fail. We needed to make the migration
# idempotent. Instead of reverting this migration while we did that, we
# edited it to be a SQL no-op, so that people who had already applied it
# wouldn't end up with a ghost migration.
# It had been:
#
# migrations.RunSQL(
# "create unique index email on auth_user (email);",
# "drop index email on auth_user;"
# )
operations = [
migrations.RunSQL(
# Do nothing:
"select 1",
"select 1"
)
]
<commit_msg>Make this no-op migration be a true no-op.<commit_after># -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('student', '0009_auto_20170111_0422'),
]
# This migration was to add a constraint that we lost in the Django
# 1.4->1.8 upgrade. But since the constraint used to be created, production
# would already have the constraint even before running the migration, and
# running the migration would fail. We needed to make the migration
# idempotent. Instead of reverting this migration while we did that, we
# edited it to be a SQL no-op, so that people who had already applied it
# wouldn't end up with a ghost migration.
# It had been:
#
# migrations.RunSQL(
# "create unique index email on auth_user (email);",
# "drop index email on auth_user;"
# )
operations = [
# Nothing to do.
]
|
7f796b74b8996bda7d31184e6c580d2a3e4f7e18
|
os.py
|
os.py
|
import os
def sorted_walk(rootpath):
# report this
dirpath, dirs, files = next(os.walk(rootpath))
yield (dirpath, dirs, files)
for ndir in sorted(dirs):
ndirpath = os.path.join(rootpath, ndir)
for _, ndirs, nfiles in sorted_walk(ndirpath):
yield (ndirpath, ndirs, nfiles)
|
import os
def sorted_walk(rootpath):
# report this
dirpath, dirs, files = next(os.walk(rootpath))
yield (dirpath, dirs, files)
for ndir in sorted(dirs):
ndirpath = os.path.join(rootpath, ndir)
for _, ndirs, nfiles in sorted_walk(ndirpath):
yield (ndirpath, ndirs, nfiles)
if __name__ == '__main__':
for dirpath, dirs, files in sorted_walk('..'):
print dirpath
print dirs
print files
|
Add example code for sorted_walk
|
Add example code for sorted_walk
|
Python
|
mit
|
inker610566/python-improve-libs
|
import os
def sorted_walk(rootpath):
# report this
dirpath, dirs, files = next(os.walk(rootpath))
yield (dirpath, dirs, files)
for ndir in sorted(dirs):
ndirpath = os.path.join(rootpath, ndir)
for _, ndirs, nfiles in sorted_walk(ndirpath):
yield (ndirpath, ndirs, nfiles)
Add example code for sorted_walk
|
import os
def sorted_walk(rootpath):
# report this
dirpath, dirs, files = next(os.walk(rootpath))
yield (dirpath, dirs, files)
for ndir in sorted(dirs):
ndirpath = os.path.join(rootpath, ndir)
for _, ndirs, nfiles in sorted_walk(ndirpath):
yield (ndirpath, ndirs, nfiles)
if __name__ == '__main__':
for dirpath, dirs, files in sorted_walk('..'):
print dirpath
print dirs
print files
|
<commit_before>import os
def sorted_walk(rootpath):
# report this
dirpath, dirs, files = next(os.walk(rootpath))
yield (dirpath, dirs, files)
for ndir in sorted(dirs):
ndirpath = os.path.join(rootpath, ndir)
for _, ndirs, nfiles in sorted_walk(ndirpath):
yield (ndirpath, ndirs, nfiles)
<commit_msg>Add example code for sorted_walk<commit_after>
|
import os
def sorted_walk(rootpath):
# report this
dirpath, dirs, files = next(os.walk(rootpath))
yield (dirpath, dirs, files)
for ndir in sorted(dirs):
ndirpath = os.path.join(rootpath, ndir)
for _, ndirs, nfiles in sorted_walk(ndirpath):
yield (ndirpath, ndirs, nfiles)
if __name__ == '__main__':
for dirpath, dirs, files in sorted_walk('..'):
print dirpath
print dirs
print files
|
import os
def sorted_walk(rootpath):
# report this
dirpath, dirs, files = next(os.walk(rootpath))
yield (dirpath, dirs, files)
for ndir in sorted(dirs):
ndirpath = os.path.join(rootpath, ndir)
for _, ndirs, nfiles in sorted_walk(ndirpath):
yield (ndirpath, ndirs, nfiles)
Add example code for sorted_walkimport os
def sorted_walk(rootpath):
# report this
dirpath, dirs, files = next(os.walk(rootpath))
yield (dirpath, dirs, files)
for ndir in sorted(dirs):
ndirpath = os.path.join(rootpath, ndir)
for _, ndirs, nfiles in sorted_walk(ndirpath):
yield (ndirpath, ndirs, nfiles)
if __name__ == '__main__':
for dirpath, dirs, files in sorted_walk('..'):
print dirpath
print dirs
print files
|
<commit_before>import os
def sorted_walk(rootpath):
# report this
dirpath, dirs, files = next(os.walk(rootpath))
yield (dirpath, dirs, files)
for ndir in sorted(dirs):
ndirpath = os.path.join(rootpath, ndir)
for _, ndirs, nfiles in sorted_walk(ndirpath):
yield (ndirpath, ndirs, nfiles)
<commit_msg>Add example code for sorted_walk<commit_after>import os
def sorted_walk(rootpath):
# report this
dirpath, dirs, files = next(os.walk(rootpath))
yield (dirpath, dirs, files)
for ndir in sorted(dirs):
ndirpath = os.path.join(rootpath, ndir)
for _, ndirs, nfiles in sorted_walk(ndirpath):
yield (ndirpath, ndirs, nfiles)
if __name__ == '__main__':
for dirpath, dirs, files in sorted_walk('..'):
print dirpath
print dirs
print files
|
6f5c1aa40181d5f9cc34bf85fd03e8e5758a9183
|
libs/utils.py
|
libs/utils.py
|
from django.core.cache import cache
#get the cache key for storage
def cache_get_key(*args, **kwargs):
import hashlib
serialise = []
for arg in args:
serialise.append(str(arg))
for key,arg in kwargs.items():
serialise.append(str(key))
serialise.append(str(arg))
key = hashlib.md5("".join(serialise)).hexdigest()
return key
#decorator for caching functions
def cache_for(time):
def decorator(fn):
def wrapper(*args, **kwargs):
key = cache_get_key(fn.__name__, *args, **kwargs)
result = cache.get(key)
if not result or "clear_cache" in kwargs and kwargs["clear_cache"]:
result = fn(*args, **kwargs)
cache.set(key, result, time)
return result
return wrapper
return decorator
|
from django.core.cache import cache
#get the cache key for storage
def cache_get_key(*args, **kwargs):
import hashlib
serialise = []
for arg in args:
serialise.append(str(arg))
for key,arg in kwargs.items():
if key == "clear_cache":
continue
serialise.append(str(key))
serialise.append(str(arg))
key = hashlib.md5("".join(serialise)).hexdigest()
return key
#decorator for caching functions
def cache_for(time):
def decorator(fn):
def wrapper(*args, **kwargs):
key = cache_get_key(fn.__name__, *args, **kwargs)
result = cache.get(key)
if not result or "clear_cache" in kwargs and kwargs["clear_cache"]:
result = fn(*args, **kwargs)
cache.set(key, result, time)
return result
return wrapper
return decorator
|
Exclude clear_cache from cache key
|
Exclude clear_cache from cache key
|
Python
|
mit
|
daigotanaka/kawaraban,daigotanaka/kawaraban,daigotanaka/kawaraban,daigotanaka/kawaraban
|
from django.core.cache import cache
#get the cache key for storage
def cache_get_key(*args, **kwargs):
import hashlib
serialise = []
for arg in args:
serialise.append(str(arg))
for key,arg in kwargs.items():
serialise.append(str(key))
serialise.append(str(arg))
key = hashlib.md5("".join(serialise)).hexdigest()
return key
#decorator for caching functions
def cache_for(time):
def decorator(fn):
def wrapper(*args, **kwargs):
key = cache_get_key(fn.__name__, *args, **kwargs)
result = cache.get(key)
if not result or "clear_cache" in kwargs and kwargs["clear_cache"]:
result = fn(*args, **kwargs)
cache.set(key, result, time)
return result
return wrapper
return decorator
Exclude clear_cache from cache key
|
from django.core.cache import cache
#get the cache key for storage
def cache_get_key(*args, **kwargs):
import hashlib
serialise = []
for arg in args:
serialise.append(str(arg))
for key,arg in kwargs.items():
if key == "clear_cache":
continue
serialise.append(str(key))
serialise.append(str(arg))
key = hashlib.md5("".join(serialise)).hexdigest()
return key
#decorator for caching functions
def cache_for(time):
def decorator(fn):
def wrapper(*args, **kwargs):
key = cache_get_key(fn.__name__, *args, **kwargs)
result = cache.get(key)
if not result or "clear_cache" in kwargs and kwargs["clear_cache"]:
result = fn(*args, **kwargs)
cache.set(key, result, time)
return result
return wrapper
return decorator
|
<commit_before>from django.core.cache import cache
#get the cache key for storage
def cache_get_key(*args, **kwargs):
import hashlib
serialise = []
for arg in args:
serialise.append(str(arg))
for key,arg in kwargs.items():
serialise.append(str(key))
serialise.append(str(arg))
key = hashlib.md5("".join(serialise)).hexdigest()
return key
#decorator for caching functions
def cache_for(time):
def decorator(fn):
def wrapper(*args, **kwargs):
key = cache_get_key(fn.__name__, *args, **kwargs)
result = cache.get(key)
if not result or "clear_cache" in kwargs and kwargs["clear_cache"]:
result = fn(*args, **kwargs)
cache.set(key, result, time)
return result
return wrapper
return decorator
<commit_msg>Exclude clear_cache from cache key<commit_after>
|
from django.core.cache import cache
#get the cache key for storage
def cache_get_key(*args, **kwargs):
import hashlib
serialise = []
for arg in args:
serialise.append(str(arg))
for key,arg in kwargs.items():
if key == "clear_cache":
continue
serialise.append(str(key))
serialise.append(str(arg))
key = hashlib.md5("".join(serialise)).hexdigest()
return key
#decorator for caching functions
def cache_for(time):
def decorator(fn):
def wrapper(*args, **kwargs):
key = cache_get_key(fn.__name__, *args, **kwargs)
result = cache.get(key)
if not result or "clear_cache" in kwargs and kwargs["clear_cache"]:
result = fn(*args, **kwargs)
cache.set(key, result, time)
return result
return wrapper
return decorator
|
from django.core.cache import cache
#get the cache key for storage
def cache_get_key(*args, **kwargs):
import hashlib
serialise = []
for arg in args:
serialise.append(str(arg))
for key,arg in kwargs.items():
serialise.append(str(key))
serialise.append(str(arg))
key = hashlib.md5("".join(serialise)).hexdigest()
return key
#decorator for caching functions
def cache_for(time):
def decorator(fn):
def wrapper(*args, **kwargs):
key = cache_get_key(fn.__name__, *args, **kwargs)
result = cache.get(key)
if not result or "clear_cache" in kwargs and kwargs["clear_cache"]:
result = fn(*args, **kwargs)
cache.set(key, result, time)
return result
return wrapper
return decorator
Exclude clear_cache from cache keyfrom django.core.cache import cache
#get the cache key for storage
def cache_get_key(*args, **kwargs):
import hashlib
serialise = []
for arg in args:
serialise.append(str(arg))
for key,arg in kwargs.items():
if key == "clear_cache":
continue
serialise.append(str(key))
serialise.append(str(arg))
key = hashlib.md5("".join(serialise)).hexdigest()
return key
#decorator for caching functions
def cache_for(time):
def decorator(fn):
def wrapper(*args, **kwargs):
key = cache_get_key(fn.__name__, *args, **kwargs)
result = cache.get(key)
if not result or "clear_cache" in kwargs and kwargs["clear_cache"]:
result = fn(*args, **kwargs)
cache.set(key, result, time)
return result
return wrapper
return decorator
|
<commit_before>from django.core.cache import cache
#get the cache key for storage
def cache_get_key(*args, **kwargs):
import hashlib
serialise = []
for arg in args:
serialise.append(str(arg))
for key,arg in kwargs.items():
serialise.append(str(key))
serialise.append(str(arg))
key = hashlib.md5("".join(serialise)).hexdigest()
return key
#decorator for caching functions
def cache_for(time):
def decorator(fn):
def wrapper(*args, **kwargs):
key = cache_get_key(fn.__name__, *args, **kwargs)
result = cache.get(key)
if not result or "clear_cache" in kwargs and kwargs["clear_cache"]:
result = fn(*args, **kwargs)
cache.set(key, result, time)
return result
return wrapper
return decorator
<commit_msg>Exclude clear_cache from cache key<commit_after>from django.core.cache import cache
#get the cache key for storage
def cache_get_key(*args, **kwargs):
import hashlib
serialise = []
for arg in args:
serialise.append(str(arg))
for key,arg in kwargs.items():
if key == "clear_cache":
continue
serialise.append(str(key))
serialise.append(str(arg))
key = hashlib.md5("".join(serialise)).hexdigest()
return key
#decorator for caching functions
def cache_for(time):
def decorator(fn):
def wrapper(*args, **kwargs):
key = cache_get_key(fn.__name__, *args, **kwargs)
result = cache.get(key)
if not result or "clear_cache" in kwargs and kwargs["clear_cache"]:
result = fn(*args, **kwargs)
cache.set(key, result, time)
return result
return wrapper
return decorator
|
e7278521d8ee387acc5bc94c39f041c7e08c6cc6
|
lab_members/views.py
|
lab_members/views.py
|
from django.views.generic import DetailView, ListView
from lab_members.models import Scientist
class ScientistListView(ListView):
model = Scientist
queryset = Scientist.objects.all()
class ScientistDetailView(DetailView):
model = Scientist
|
from django.views.generic import DetailView, ListView
from lab_members.models import Scientist
class ScientistListView(ListView):
model = Scientist
def get_context_data(self, **kwargs):
context = super(ScientistListView, self).get_context_data(**kwargs)
context['scientist_list'] = Scientist.objects.filter(current=True)
context['alumni_list'] = Scientist.objects.filter(current=False)
return context
class ScientistDetailView(DetailView):
model = Scientist
|
Return both scientist_list and alumni_list for ScientistListView
|
Return both scientist_list and alumni_list for ScientistListView
|
Python
|
bsd-3-clause
|
mfcovington/django-lab-members,mfcovington/django-lab-members,mfcovington/django-lab-members
|
from django.views.generic import DetailView, ListView
from lab_members.models import Scientist
class ScientistListView(ListView):
model = Scientist
queryset = Scientist.objects.all()
class ScientistDetailView(DetailView):
model = Scientist
Return both scientist_list and alumni_list for ScientistListView
|
from django.views.generic import DetailView, ListView
from lab_members.models import Scientist
class ScientistListView(ListView):
model = Scientist
def get_context_data(self, **kwargs):
context = super(ScientistListView, self).get_context_data(**kwargs)
context['scientist_list'] = Scientist.objects.filter(current=True)
context['alumni_list'] = Scientist.objects.filter(current=False)
return context
class ScientistDetailView(DetailView):
model = Scientist
|
<commit_before>from django.views.generic import DetailView, ListView
from lab_members.models import Scientist
class ScientistListView(ListView):
model = Scientist
queryset = Scientist.objects.all()
class ScientistDetailView(DetailView):
model = Scientist
<commit_msg>Return both scientist_list and alumni_list for ScientistListView<commit_after>
|
from django.views.generic import DetailView, ListView
from lab_members.models import Scientist
class ScientistListView(ListView):
model = Scientist
def get_context_data(self, **kwargs):
context = super(ScientistListView, self).get_context_data(**kwargs)
context['scientist_list'] = Scientist.objects.filter(current=True)
context['alumni_list'] = Scientist.objects.filter(current=False)
return context
class ScientistDetailView(DetailView):
model = Scientist
|
from django.views.generic import DetailView, ListView
from lab_members.models import Scientist
class ScientistListView(ListView):
model = Scientist
queryset = Scientist.objects.all()
class ScientistDetailView(DetailView):
model = Scientist
Return both scientist_list and alumni_list for ScientistListViewfrom django.views.generic import DetailView, ListView
from lab_members.models import Scientist
class ScientistListView(ListView):
model = Scientist
def get_context_data(self, **kwargs):
context = super(ScientistListView, self).get_context_data(**kwargs)
context['scientist_list'] = Scientist.objects.filter(current=True)
context['alumni_list'] = Scientist.objects.filter(current=False)
return context
class ScientistDetailView(DetailView):
model = Scientist
|
<commit_before>from django.views.generic import DetailView, ListView
from lab_members.models import Scientist
class ScientistListView(ListView):
model = Scientist
queryset = Scientist.objects.all()
class ScientistDetailView(DetailView):
model = Scientist
<commit_msg>Return both scientist_list and alumni_list for ScientistListView<commit_after>from django.views.generic import DetailView, ListView
from lab_members.models import Scientist
class ScientistListView(ListView):
model = Scientist
def get_context_data(self, **kwargs):
context = super(ScientistListView, self).get_context_data(**kwargs)
context['scientist_list'] = Scientist.objects.filter(current=True)
context['alumni_list'] = Scientist.objects.filter(current=False)
return context
class ScientistDetailView(DetailView):
model = Scientist
|
d4171faa21324cc8d23b5e0352932e3d1769f58a
|
bluesky/tests/test_callbacks.py
|
bluesky/tests/test_callbacks.py
|
from nose.tools import assert_in, assert_equal
from bluesky.run_engine import RunEngine
from bluesky.examples import *
RE = None
def setup():
global RE
RE = RunEngine()
def test_main_thread_callback_exceptions():
def callbacker(doc):
raise Exception("Hey look it's an exception that better not kill the "
"scan!!")
RE(stepscan(motor, det), subs={'start': callbacker,
'stop': callbacker,
'event': callbacker,
'descriptor': callbacker,
'all': callbacker},
beamline_id='testing', owner='tester')
def test_all():
c = CallbackCounter()
RE(stepscan(motor, det), subs={'all': c})
assert_equal(c.value, 10 + 1 + 2) # events, descriptor, start and stop
c = CallbackCounter()
token = RE.subscribe('all', c)
RE(stepscan(motor, det))
RE.unsubscribe(token)
assert_equal(c.value, 10 + 1 + 2)
if __name__ == '__main__':
import nose
nose.runmodule(argv=['-s', '--with-doctest'], exit=False)
|
from nose.tools import assert_in, assert_equal
from bluesky.run_engine import RunEngine
from bluesky.examples import *
from nose.tools import raises
RE = None
def setup():
global RE
RE = RunEngine()
def exception_raiser(doc):
raise Exception("Hey look it's an exception that better not kill the "
"scan!!")
def test_main_thread_callback_exceptions():
RE(stepscan(motor, det), subs={'start': exception_raiser,
'stop': exception_raiser,
'event': exception_raiser,
'descriptor': exception_raiser,
'all': exception_raiser},
beamline_id='testing', owner='tester')
def test_all():
c = CallbackCounter()
RE(stepscan(motor, det), subs={'all': c})
assert_equal(c.value, 10 + 1 + 2) # events, descriptor, start and stop
c = CallbackCounter()
token = RE.subscribe('all', c)
RE(stepscan(motor, det))
RE.unsubscribe(token)
assert_equal(c.value, 10 + 1 + 2)
@raises(Exception)
def _raising_callbacks_helper(stream_name, callback):
RE(stepscan(motor, det), subs={stream_name: callback},
beamline_id='testing', owner='tester')
def test_callback_execution():
# make main thread exceptions end the scan
RE.dispatcher.cb_registry.halt_on_exception = True
cb = exception_raiser
for stream in ['all', 'start', 'event', 'stop', 'descriptor']:
yield _raising_callbacks_helper, stream, cb
if __name__ == '__main__':
import nose
nose.runmodule(argv=['-s', '--with-doctest'], exit=False)
|
Add test that fails *if* 'all' is not working
|
ENH: Add test that fails *if* 'all' is not working
|
Python
|
bsd-3-clause
|
klauer/bluesky,ericdill/bluesky,sameera2004/bluesky,klauer/bluesky,dchabot/bluesky,ericdill/bluesky,dchabot/bluesky,sameera2004/bluesky
|
from nose.tools import assert_in, assert_equal
from bluesky.run_engine import RunEngine
from bluesky.examples import *
RE = None
def setup():
global RE
RE = RunEngine()
def test_main_thread_callback_exceptions():
def callbacker(doc):
raise Exception("Hey look it's an exception that better not kill the "
"scan!!")
RE(stepscan(motor, det), subs={'start': callbacker,
'stop': callbacker,
'event': callbacker,
'descriptor': callbacker,
'all': callbacker},
beamline_id='testing', owner='tester')
def test_all():
c = CallbackCounter()
RE(stepscan(motor, det), subs={'all': c})
assert_equal(c.value, 10 + 1 + 2) # events, descriptor, start and stop
c = CallbackCounter()
token = RE.subscribe('all', c)
RE(stepscan(motor, det))
RE.unsubscribe(token)
assert_equal(c.value, 10 + 1 + 2)
if __name__ == '__main__':
import nose
nose.runmodule(argv=['-s', '--with-doctest'], exit=False)
ENH: Add test that fails *if* 'all' is not working
|
from nose.tools import assert_in, assert_equal
from bluesky.run_engine import RunEngine
from bluesky.examples import *
from nose.tools import raises
RE = None
def setup():
global RE
RE = RunEngine()
def exception_raiser(doc):
raise Exception("Hey look it's an exception that better not kill the "
"scan!!")
def test_main_thread_callback_exceptions():
RE(stepscan(motor, det), subs={'start': exception_raiser,
'stop': exception_raiser,
'event': exception_raiser,
'descriptor': exception_raiser,
'all': exception_raiser},
beamline_id='testing', owner='tester')
def test_all():
c = CallbackCounter()
RE(stepscan(motor, det), subs={'all': c})
assert_equal(c.value, 10 + 1 + 2) # events, descriptor, start and stop
c = CallbackCounter()
token = RE.subscribe('all', c)
RE(stepscan(motor, det))
RE.unsubscribe(token)
assert_equal(c.value, 10 + 1 + 2)
@raises(Exception)
def _raising_callbacks_helper(stream_name, callback):
RE(stepscan(motor, det), subs={stream_name: callback},
beamline_id='testing', owner='tester')
def test_callback_execution():
# make main thread exceptions end the scan
RE.dispatcher.cb_registry.halt_on_exception = True
cb = exception_raiser
for stream in ['all', 'start', 'event', 'stop', 'descriptor']:
yield _raising_callbacks_helper, stream, cb
if __name__ == '__main__':
import nose
nose.runmodule(argv=['-s', '--with-doctest'], exit=False)
|
<commit_before>from nose.tools import assert_in, assert_equal
from bluesky.run_engine import RunEngine
from bluesky.examples import *
RE = None
def setup():
global RE
RE = RunEngine()
def test_main_thread_callback_exceptions():
def callbacker(doc):
raise Exception("Hey look it's an exception that better not kill the "
"scan!!")
RE(stepscan(motor, det), subs={'start': callbacker,
'stop': callbacker,
'event': callbacker,
'descriptor': callbacker,
'all': callbacker},
beamline_id='testing', owner='tester')
def test_all():
c = CallbackCounter()
RE(stepscan(motor, det), subs={'all': c})
assert_equal(c.value, 10 + 1 + 2) # events, descriptor, start and stop
c = CallbackCounter()
token = RE.subscribe('all', c)
RE(stepscan(motor, det))
RE.unsubscribe(token)
assert_equal(c.value, 10 + 1 + 2)
if __name__ == '__main__':
import nose
nose.runmodule(argv=['-s', '--with-doctest'], exit=False)
<commit_msg>ENH: Add test that fails *if* 'all' is not working<commit_after>
|
from nose.tools import assert_in, assert_equal
from bluesky.run_engine import RunEngine
from bluesky.examples import *
from nose.tools import raises
RE = None
def setup():
global RE
RE = RunEngine()
def exception_raiser(doc):
raise Exception("Hey look it's an exception that better not kill the "
"scan!!")
def test_main_thread_callback_exceptions():
RE(stepscan(motor, det), subs={'start': exception_raiser,
'stop': exception_raiser,
'event': exception_raiser,
'descriptor': exception_raiser,
'all': exception_raiser},
beamline_id='testing', owner='tester')
def test_all():
c = CallbackCounter()
RE(stepscan(motor, det), subs={'all': c})
assert_equal(c.value, 10 + 1 + 2) # events, descriptor, start and stop
c = CallbackCounter()
token = RE.subscribe('all', c)
RE(stepscan(motor, det))
RE.unsubscribe(token)
assert_equal(c.value, 10 + 1 + 2)
@raises(Exception)
def _raising_callbacks_helper(stream_name, callback):
RE(stepscan(motor, det), subs={stream_name: callback},
beamline_id='testing', owner='tester')
def test_callback_execution():
# make main thread exceptions end the scan
RE.dispatcher.cb_registry.halt_on_exception = True
cb = exception_raiser
for stream in ['all', 'start', 'event', 'stop', 'descriptor']:
yield _raising_callbacks_helper, stream, cb
if __name__ == '__main__':
import nose
nose.runmodule(argv=['-s', '--with-doctest'], exit=False)
|
from nose.tools import assert_in, assert_equal
from bluesky.run_engine import RunEngine
from bluesky.examples import *
RE = None
def setup():
global RE
RE = RunEngine()
def test_main_thread_callback_exceptions():
def callbacker(doc):
raise Exception("Hey look it's an exception that better not kill the "
"scan!!")
RE(stepscan(motor, det), subs={'start': callbacker,
'stop': callbacker,
'event': callbacker,
'descriptor': callbacker,
'all': callbacker},
beamline_id='testing', owner='tester')
def test_all():
c = CallbackCounter()
RE(stepscan(motor, det), subs={'all': c})
assert_equal(c.value, 10 + 1 + 2) # events, descriptor, start and stop
c = CallbackCounter()
token = RE.subscribe('all', c)
RE(stepscan(motor, det))
RE.unsubscribe(token)
assert_equal(c.value, 10 + 1 + 2)
if __name__ == '__main__':
import nose
nose.runmodule(argv=['-s', '--with-doctest'], exit=False)
ENH: Add test that fails *if* 'all' is not workingfrom nose.tools import assert_in, assert_equal
from bluesky.run_engine import RunEngine
from bluesky.examples import *
from nose.tools import raises
RE = None
def setup():
global RE
RE = RunEngine()
def exception_raiser(doc):
raise Exception("Hey look it's an exception that better not kill the "
"scan!!")
def test_main_thread_callback_exceptions():
RE(stepscan(motor, det), subs={'start': exception_raiser,
'stop': exception_raiser,
'event': exception_raiser,
'descriptor': exception_raiser,
'all': exception_raiser},
beamline_id='testing', owner='tester')
def test_all():
c = CallbackCounter()
RE(stepscan(motor, det), subs={'all': c})
assert_equal(c.value, 10 + 1 + 2) # events, descriptor, start and stop
c = CallbackCounter()
token = RE.subscribe('all', c)
RE(stepscan(motor, det))
RE.unsubscribe(token)
assert_equal(c.value, 10 + 1 + 2)
@raises(Exception)
def _raising_callbacks_helper(stream_name, callback):
RE(stepscan(motor, det), subs={stream_name: callback},
beamline_id='testing', owner='tester')
def test_callback_execution():
# make main thread exceptions end the scan
RE.dispatcher.cb_registry.halt_on_exception = True
cb = exception_raiser
for stream in ['all', 'start', 'event', 'stop', 'descriptor']:
yield _raising_callbacks_helper, stream, cb
if __name__ == '__main__':
import nose
nose.runmodule(argv=['-s', '--with-doctest'], exit=False)
|
<commit_before>from nose.tools import assert_in, assert_equal
from bluesky.run_engine import RunEngine
from bluesky.examples import *
RE = None
def setup():
global RE
RE = RunEngine()
def test_main_thread_callback_exceptions():
def callbacker(doc):
raise Exception("Hey look it's an exception that better not kill the "
"scan!!")
RE(stepscan(motor, det), subs={'start': callbacker,
'stop': callbacker,
'event': callbacker,
'descriptor': callbacker,
'all': callbacker},
beamline_id='testing', owner='tester')
def test_all():
c = CallbackCounter()
RE(stepscan(motor, det), subs={'all': c})
assert_equal(c.value, 10 + 1 + 2) # events, descriptor, start and stop
c = CallbackCounter()
token = RE.subscribe('all', c)
RE(stepscan(motor, det))
RE.unsubscribe(token)
assert_equal(c.value, 10 + 1 + 2)
if __name__ == '__main__':
import nose
nose.runmodule(argv=['-s', '--with-doctest'], exit=False)
<commit_msg>ENH: Add test that fails *if* 'all' is not working<commit_after>from nose.tools import assert_in, assert_equal
from bluesky.run_engine import RunEngine
from bluesky.examples import *
from nose.tools import raises
RE = None
def setup():
global RE
RE = RunEngine()
def exception_raiser(doc):
raise Exception("Hey look it's an exception that better not kill the "
"scan!!")
def test_main_thread_callback_exceptions():
RE(stepscan(motor, det), subs={'start': exception_raiser,
'stop': exception_raiser,
'event': exception_raiser,
'descriptor': exception_raiser,
'all': exception_raiser},
beamline_id='testing', owner='tester')
def test_all():
c = CallbackCounter()
RE(stepscan(motor, det), subs={'all': c})
assert_equal(c.value, 10 + 1 + 2) # events, descriptor, start and stop
c = CallbackCounter()
token = RE.subscribe('all', c)
RE(stepscan(motor, det))
RE.unsubscribe(token)
assert_equal(c.value, 10 + 1 + 2)
@raises(Exception)
def _raising_callbacks_helper(stream_name, callback):
RE(stepscan(motor, det), subs={stream_name: callback},
beamline_id='testing', owner='tester')
def test_callback_execution():
# make main thread exceptions end the scan
RE.dispatcher.cb_registry.halt_on_exception = True
cb = exception_raiser
for stream in ['all', 'start', 'event', 'stop', 'descriptor']:
yield _raising_callbacks_helper, stream, cb
if __name__ == '__main__':
import nose
nose.runmodule(argv=['-s', '--with-doctest'], exit=False)
|
77c6fd50fdc2bd7e716ecfba30e8e18e27b3c0eb
|
oslo/__init__.py
|
oslo/__init__.py
|
# vim: tabstop=4 shiftwidth=4 softtabstop=4
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable 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.
__import__('pkg_resources').declare_namespace(__name__)
|
# 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.
__import__('pkg_resources').declare_namespace(__name__)
|
Remove extraneous vim editor configuration comments
|
Remove extraneous vim editor configuration comments
Change-Id: I0a48345e7fd2703b6651531087097f096264dc7d
Partial-Bug: #1229324
|
Python
|
apache-2.0
|
openstack/oslo.concurrency,varunarya10/oslo.concurrency,JioCloud/oslo.concurrency
|
# vim: tabstop=4 shiftwidth=4 softtabstop=4
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable 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.
__import__('pkg_resources').declare_namespace(__name__)
Remove extraneous vim editor configuration comments
Change-Id: I0a48345e7fd2703b6651531087097f096264dc7d
Partial-Bug: #1229324
|
# 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.
__import__('pkg_resources').declare_namespace(__name__)
|
<commit_before># vim: tabstop=4 shiftwidth=4 softtabstop=4
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable 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.
__import__('pkg_resources').declare_namespace(__name__)
<commit_msg>Remove extraneous vim editor configuration comments
Change-Id: I0a48345e7fd2703b6651531087097f096264dc7d
Partial-Bug: #1229324<commit_after>
|
# 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.
__import__('pkg_resources').declare_namespace(__name__)
|
# vim: tabstop=4 shiftwidth=4 softtabstop=4
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable 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.
__import__('pkg_resources').declare_namespace(__name__)
Remove extraneous vim editor configuration comments
Change-Id: I0a48345e7fd2703b6651531087097f096264dc7d
Partial-Bug: #1229324# 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.
__import__('pkg_resources').declare_namespace(__name__)
|
<commit_before># vim: tabstop=4 shiftwidth=4 softtabstop=4
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable 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.
__import__('pkg_resources').declare_namespace(__name__)
<commit_msg>Remove extraneous vim editor configuration comments
Change-Id: I0a48345e7fd2703b6651531087097f096264dc7d
Partial-Bug: #1229324<commit_after># 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.
__import__('pkg_resources').declare_namespace(__name__)
|
c974c7a73e8ef48ea4fb1436b397f2973d8048c7
|
{{cookiecutter.project_name}}/{{cookiecutter.project_name}}/apps/users/adapter.py
|
{{cookiecutter.project_name}}/{{cookiecutter.project_name}}/apps/users/adapter.py
|
# -*- coding: utf-8 -*-
from django.conf import settings
from allauth.account.adapter import DefaultAccountAdapter
from allauth.socialaccount.adapter import DefaultSocialAccountAdapter
class AccountAdapter(DefaultAccountAdapter):
def is_open_for_signup(self, request):
return getattr(settings, 'ACCOUNT_ALLOW_REGISTRATION', True)
class SocialAccountAdapter(DefaultSocialAccountAdapter):
def is_open_for_signup(self, request):
return getattr(settings, 'ACCOUNT_ALLOW_REGISTRATION', True)
|
# -*- coding: utf-8 -*-
from django.conf import settings
from allauth.account.adapter import DefaultAccountAdapter
from allauth.socialaccount.adapter import DefaultSocialAccountAdapter
class AccountAdapter(DefaultAccountAdapter):
def is_open_for_signup(self, request):
return getattr(settings, 'ACCOUNT_ALLOW_REGISTRATION', True)
class SocialAccountAdapter(DefaultSocialAccountAdapter):
def is_open_for_signup(self, request, sociallogin):
return getattr(settings, 'ACCOUNT_ALLOW_REGISTRATION', True)
|
Modify is_open_for_signup to receive 3 arguments
|
Modify is_open_for_signup to receive 3 arguments
SocialAccountAdapter expects a sociallogin argument.
|
Python
|
mit
|
LucianU/bud,LucianU/bud,LucianU/bud
|
# -*- coding: utf-8 -*-
from django.conf import settings
from allauth.account.adapter import DefaultAccountAdapter
from allauth.socialaccount.adapter import DefaultSocialAccountAdapter
class AccountAdapter(DefaultAccountAdapter):
def is_open_for_signup(self, request):
return getattr(settings, 'ACCOUNT_ALLOW_REGISTRATION', True)
class SocialAccountAdapter(DefaultSocialAccountAdapter):
def is_open_for_signup(self, request):
return getattr(settings, 'ACCOUNT_ALLOW_REGISTRATION', True)
Modify is_open_for_signup to receive 3 arguments
SocialAccountAdapter expects a sociallogin argument.
|
# -*- coding: utf-8 -*-
from django.conf import settings
from allauth.account.adapter import DefaultAccountAdapter
from allauth.socialaccount.adapter import DefaultSocialAccountAdapter
class AccountAdapter(DefaultAccountAdapter):
def is_open_for_signup(self, request):
return getattr(settings, 'ACCOUNT_ALLOW_REGISTRATION', True)
class SocialAccountAdapter(DefaultSocialAccountAdapter):
def is_open_for_signup(self, request, sociallogin):
return getattr(settings, 'ACCOUNT_ALLOW_REGISTRATION', True)
|
<commit_before># -*- coding: utf-8 -*-
from django.conf import settings
from allauth.account.adapter import DefaultAccountAdapter
from allauth.socialaccount.adapter import DefaultSocialAccountAdapter
class AccountAdapter(DefaultAccountAdapter):
def is_open_for_signup(self, request):
return getattr(settings, 'ACCOUNT_ALLOW_REGISTRATION', True)
class SocialAccountAdapter(DefaultSocialAccountAdapter):
def is_open_for_signup(self, request):
return getattr(settings, 'ACCOUNT_ALLOW_REGISTRATION', True)
<commit_msg>Modify is_open_for_signup to receive 3 arguments
SocialAccountAdapter expects a sociallogin argument.<commit_after>
|
# -*- coding: utf-8 -*-
from django.conf import settings
from allauth.account.adapter import DefaultAccountAdapter
from allauth.socialaccount.adapter import DefaultSocialAccountAdapter
class AccountAdapter(DefaultAccountAdapter):
def is_open_for_signup(self, request):
return getattr(settings, 'ACCOUNT_ALLOW_REGISTRATION', True)
class SocialAccountAdapter(DefaultSocialAccountAdapter):
def is_open_for_signup(self, request, sociallogin):
return getattr(settings, 'ACCOUNT_ALLOW_REGISTRATION', True)
|
# -*- coding: utf-8 -*-
from django.conf import settings
from allauth.account.adapter import DefaultAccountAdapter
from allauth.socialaccount.adapter import DefaultSocialAccountAdapter
class AccountAdapter(DefaultAccountAdapter):
def is_open_for_signup(self, request):
return getattr(settings, 'ACCOUNT_ALLOW_REGISTRATION', True)
class SocialAccountAdapter(DefaultSocialAccountAdapter):
def is_open_for_signup(self, request):
return getattr(settings, 'ACCOUNT_ALLOW_REGISTRATION', True)
Modify is_open_for_signup to receive 3 arguments
SocialAccountAdapter expects a sociallogin argument.# -*- coding: utf-8 -*-
from django.conf import settings
from allauth.account.adapter import DefaultAccountAdapter
from allauth.socialaccount.adapter import DefaultSocialAccountAdapter
class AccountAdapter(DefaultAccountAdapter):
def is_open_for_signup(self, request):
return getattr(settings, 'ACCOUNT_ALLOW_REGISTRATION', True)
class SocialAccountAdapter(DefaultSocialAccountAdapter):
def is_open_for_signup(self, request, sociallogin):
return getattr(settings, 'ACCOUNT_ALLOW_REGISTRATION', True)
|
<commit_before># -*- coding: utf-8 -*-
from django.conf import settings
from allauth.account.adapter import DefaultAccountAdapter
from allauth.socialaccount.adapter import DefaultSocialAccountAdapter
class AccountAdapter(DefaultAccountAdapter):
def is_open_for_signup(self, request):
return getattr(settings, 'ACCOUNT_ALLOW_REGISTRATION', True)
class SocialAccountAdapter(DefaultSocialAccountAdapter):
def is_open_for_signup(self, request):
return getattr(settings, 'ACCOUNT_ALLOW_REGISTRATION', True)
<commit_msg>Modify is_open_for_signup to receive 3 arguments
SocialAccountAdapter expects a sociallogin argument.<commit_after># -*- coding: utf-8 -*-
from django.conf import settings
from allauth.account.adapter import DefaultAccountAdapter
from allauth.socialaccount.adapter import DefaultSocialAccountAdapter
class AccountAdapter(DefaultAccountAdapter):
def is_open_for_signup(self, request):
return getattr(settings, 'ACCOUNT_ALLOW_REGISTRATION', True)
class SocialAccountAdapter(DefaultSocialAccountAdapter):
def is_open_for_signup(self, request, sociallogin):
return getattr(settings, 'ACCOUNT_ALLOW_REGISTRATION', True)
|
4adb9f2f526970ee40ee26c5969fc58db1a6b04e
|
setup.py
|
setup.py
|
try:
from setuptools.core import setup
except ImportError:
from distutils.core import setup
import sys
svem_flag = '--single-version-externally-managed'
if svem_flag in sys.argv:
# Die, setuptools, die.
sys.argv.remove(svem_flag)
with open('jupyter_kernel/__init__.py', 'rb') as fid:
for line in fid:
line = line.decode('utf-8')
if line.startswith('__version__'):
version = line.strip().split()[-1][1:-1]
break
setup(name='jupyter_kernel',
version=version,
description='Jupyter Kernel Tools',
long_description="Jupyter Kernel Tools using kernel wrappers",
author='Steven Silvester',
author_email='steven.silvester@ieee.org',
url="https://github.com/blink1073/jupyter_kernel",
install_requires=['IPython'],
packages=['jupyter_kernel', 'jupyter_kernel.magics',
'jupyter_kernel.tests'],
classifiers=[
'Framework :: IPython',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 2',
'Programming Language :: Scheme',
'Topic :: System :: Shells',
]
)
|
try:
from setuptools.core import setup
except ImportError:
from distutils.core import setup
import sys
svem_flag = '--single-version-externally-managed'
if svem_flag in sys.argv:
# Die, setuptools, die.
sys.argv.remove(svem_flag)
with open('jupyter_kernel/__init__.py', 'rb') as fid:
for line in fid:
line = line.decode('utf-8')
if line.startswith('__version__'):
version = line.strip().split()[-1][1:-1]
break
setup(name='jupyter_kernel',
version=version,
description='Jupyter Kernel Tools',
long_description=open('README.rst', 'rb').read().decode('utf-8'),
author='Steven Silvester',
author_email='steven.silvester@ieee.org',
url="https://github.com/blink1073/jupyter_kernel",
install_requires=['IPython'],
packages=['jupyter_kernel', 'jupyter_kernel.magics',
'jupyter_kernel.tests'],
classifiers=[
'Framework :: IPython',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 2',
'Programming Language :: Scheme',
'Topic :: System :: Shells',
]
)
|
Use the readme as the long description
|
Use the readme as the long description
|
Python
|
bsd-3-clause
|
Calysto/metakernel
|
try:
from setuptools.core import setup
except ImportError:
from distutils.core import setup
import sys
svem_flag = '--single-version-externally-managed'
if svem_flag in sys.argv:
# Die, setuptools, die.
sys.argv.remove(svem_flag)
with open('jupyter_kernel/__init__.py', 'rb') as fid:
for line in fid:
line = line.decode('utf-8')
if line.startswith('__version__'):
version = line.strip().split()[-1][1:-1]
break
setup(name='jupyter_kernel',
version=version,
description='Jupyter Kernel Tools',
long_description="Jupyter Kernel Tools using kernel wrappers",
author='Steven Silvester',
author_email='steven.silvester@ieee.org',
url="https://github.com/blink1073/jupyter_kernel",
install_requires=['IPython'],
packages=['jupyter_kernel', 'jupyter_kernel.magics',
'jupyter_kernel.tests'],
classifiers=[
'Framework :: IPython',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 2',
'Programming Language :: Scheme',
'Topic :: System :: Shells',
]
)
Use the readme as the long description
|
try:
from setuptools.core import setup
except ImportError:
from distutils.core import setup
import sys
svem_flag = '--single-version-externally-managed'
if svem_flag in sys.argv:
# Die, setuptools, die.
sys.argv.remove(svem_flag)
with open('jupyter_kernel/__init__.py', 'rb') as fid:
for line in fid:
line = line.decode('utf-8')
if line.startswith('__version__'):
version = line.strip().split()[-1][1:-1]
break
setup(name='jupyter_kernel',
version=version,
description='Jupyter Kernel Tools',
long_description=open('README.rst', 'rb').read().decode('utf-8'),
author='Steven Silvester',
author_email='steven.silvester@ieee.org',
url="https://github.com/blink1073/jupyter_kernel",
install_requires=['IPython'],
packages=['jupyter_kernel', 'jupyter_kernel.magics',
'jupyter_kernel.tests'],
classifiers=[
'Framework :: IPython',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 2',
'Programming Language :: Scheme',
'Topic :: System :: Shells',
]
)
|
<commit_before>try:
from setuptools.core import setup
except ImportError:
from distutils.core import setup
import sys
svem_flag = '--single-version-externally-managed'
if svem_flag in sys.argv:
# Die, setuptools, die.
sys.argv.remove(svem_flag)
with open('jupyter_kernel/__init__.py', 'rb') as fid:
for line in fid:
line = line.decode('utf-8')
if line.startswith('__version__'):
version = line.strip().split()[-1][1:-1]
break
setup(name='jupyter_kernel',
version=version,
description='Jupyter Kernel Tools',
long_description="Jupyter Kernel Tools using kernel wrappers",
author='Steven Silvester',
author_email='steven.silvester@ieee.org',
url="https://github.com/blink1073/jupyter_kernel",
install_requires=['IPython'],
packages=['jupyter_kernel', 'jupyter_kernel.magics',
'jupyter_kernel.tests'],
classifiers=[
'Framework :: IPython',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 2',
'Programming Language :: Scheme',
'Topic :: System :: Shells',
]
)
<commit_msg>Use the readme as the long description<commit_after>
|
try:
from setuptools.core import setup
except ImportError:
from distutils.core import setup
import sys
svem_flag = '--single-version-externally-managed'
if svem_flag in sys.argv:
# Die, setuptools, die.
sys.argv.remove(svem_flag)
with open('jupyter_kernel/__init__.py', 'rb') as fid:
for line in fid:
line = line.decode('utf-8')
if line.startswith('__version__'):
version = line.strip().split()[-1][1:-1]
break
setup(name='jupyter_kernel',
version=version,
description='Jupyter Kernel Tools',
long_description=open('README.rst', 'rb').read().decode('utf-8'),
author='Steven Silvester',
author_email='steven.silvester@ieee.org',
url="https://github.com/blink1073/jupyter_kernel",
install_requires=['IPython'],
packages=['jupyter_kernel', 'jupyter_kernel.magics',
'jupyter_kernel.tests'],
classifiers=[
'Framework :: IPython',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 2',
'Programming Language :: Scheme',
'Topic :: System :: Shells',
]
)
|
try:
from setuptools.core import setup
except ImportError:
from distutils.core import setup
import sys
svem_flag = '--single-version-externally-managed'
if svem_flag in sys.argv:
# Die, setuptools, die.
sys.argv.remove(svem_flag)
with open('jupyter_kernel/__init__.py', 'rb') as fid:
for line in fid:
line = line.decode('utf-8')
if line.startswith('__version__'):
version = line.strip().split()[-1][1:-1]
break
setup(name='jupyter_kernel',
version=version,
description='Jupyter Kernel Tools',
long_description="Jupyter Kernel Tools using kernel wrappers",
author='Steven Silvester',
author_email='steven.silvester@ieee.org',
url="https://github.com/blink1073/jupyter_kernel",
install_requires=['IPython'],
packages=['jupyter_kernel', 'jupyter_kernel.magics',
'jupyter_kernel.tests'],
classifiers=[
'Framework :: IPython',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 2',
'Programming Language :: Scheme',
'Topic :: System :: Shells',
]
)
Use the readme as the long descriptiontry:
from setuptools.core import setup
except ImportError:
from distutils.core import setup
import sys
svem_flag = '--single-version-externally-managed'
if svem_flag in sys.argv:
# Die, setuptools, die.
sys.argv.remove(svem_flag)
with open('jupyter_kernel/__init__.py', 'rb') as fid:
for line in fid:
line = line.decode('utf-8')
if line.startswith('__version__'):
version = line.strip().split()[-1][1:-1]
break
setup(name='jupyter_kernel',
version=version,
description='Jupyter Kernel Tools',
long_description=open('README.rst', 'rb').read().decode('utf-8'),
author='Steven Silvester',
author_email='steven.silvester@ieee.org',
url="https://github.com/blink1073/jupyter_kernel",
install_requires=['IPython'],
packages=['jupyter_kernel', 'jupyter_kernel.magics',
'jupyter_kernel.tests'],
classifiers=[
'Framework :: IPython',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 2',
'Programming Language :: Scheme',
'Topic :: System :: Shells',
]
)
|
<commit_before>try:
from setuptools.core import setup
except ImportError:
from distutils.core import setup
import sys
svem_flag = '--single-version-externally-managed'
if svem_flag in sys.argv:
# Die, setuptools, die.
sys.argv.remove(svem_flag)
with open('jupyter_kernel/__init__.py', 'rb') as fid:
for line in fid:
line = line.decode('utf-8')
if line.startswith('__version__'):
version = line.strip().split()[-1][1:-1]
break
setup(name='jupyter_kernel',
version=version,
description='Jupyter Kernel Tools',
long_description="Jupyter Kernel Tools using kernel wrappers",
author='Steven Silvester',
author_email='steven.silvester@ieee.org',
url="https://github.com/blink1073/jupyter_kernel",
install_requires=['IPython'],
packages=['jupyter_kernel', 'jupyter_kernel.magics',
'jupyter_kernel.tests'],
classifiers=[
'Framework :: IPython',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 2',
'Programming Language :: Scheme',
'Topic :: System :: Shells',
]
)
<commit_msg>Use the readme as the long description<commit_after>try:
from setuptools.core import setup
except ImportError:
from distutils.core import setup
import sys
svem_flag = '--single-version-externally-managed'
if svem_flag in sys.argv:
# Die, setuptools, die.
sys.argv.remove(svem_flag)
with open('jupyter_kernel/__init__.py', 'rb') as fid:
for line in fid:
line = line.decode('utf-8')
if line.startswith('__version__'):
version = line.strip().split()[-1][1:-1]
break
setup(name='jupyter_kernel',
version=version,
description='Jupyter Kernel Tools',
long_description=open('README.rst', 'rb').read().decode('utf-8'),
author='Steven Silvester',
author_email='steven.silvester@ieee.org',
url="https://github.com/blink1073/jupyter_kernel",
install_requires=['IPython'],
packages=['jupyter_kernel', 'jupyter_kernel.magics',
'jupyter_kernel.tests'],
classifiers=[
'Framework :: IPython',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 2',
'Programming Language :: Scheme',
'Topic :: System :: Shells',
]
)
|
cdf98c02f8c7590931e732226a65f2e15daa7500
|
setup.py
|
setup.py
|
#!/usr/bin/env python
from setuptools import setup, find_packages
from pydy_code_gen import __version__
setup(
name='pydy-code-gen',
version=__version__,
author='Jason K. Moore',
author_email='moorepants@gmail.com',
url="https://github.com/PythonDynamics/pydy-code-gen/",
description='Code generation for multibody dynamic systems.',
long_description=open('README.rst').read(),
keywords="dynamics multibody simulation code generation",
license='UNLICENSE',
packages=find_packages(),
install_requires=['sympy>=0.7.3',
'numpy>=1.6.1',
],
extras_require={'doc': ['sphinx', 'numpydoc'],
'theano': ['Theano>=0.6.0'],
'cython': ['Cython>=0.15.1'],
'examples': ['scipy>=0.9', 'matplotlib>=0.99'],
},
tests_require=['nose>=1.3.0'],
test_suite='nose.collector',
scripts=['bin/benchmark_pydy_code_gen.py'],
include_package_data=True,
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Science/Research',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.7',
'Topic :: Scientific/Engineering :: Physics',
],
)
|
#!/usr/bin/env python
from setuptools import setup, find_packages
from pydy_code_gen import __version__
setup(
name='pydy-code-gen',
version=__version__,
author='Jason K. Moore',
author_email='moorepants@gmail.com',
url="https://github.com/PythonDynamics/pydy-code-gen/",
description='Code generation for multibody dynamic systems.',
long_description=open('README.rst').read(),
keywords="dynamics multibody simulation code generation",
license='UNLICENSE',
packages=find_packages(),
install_requires=['sympy>=0.7.4.1',
'numpy>=1.6.1',
],
extras_require={'doc': ['sphinx', 'numpydoc'],
'theano': ['Theano>=0.6.0'],
'cython': ['Cython>=0.15.1'],
'examples': ['scipy>=0.9', 'matplotlib>=0.99'],
},
tests_require=['nose>=1.3.0'],
test_suite='nose.collector',
scripts=['bin/benchmark_pydy_code_gen.py'],
include_package_data=True,
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Science/Research',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.7',
'Topic :: Scientific/Engineering :: Physics',
],
)
|
Set SymPy version req to 0.7.4.1 (required only for Theano).
|
Set SymPy version req to 0.7.4.1 (required only for Theano).
|
Python
|
bsd-3-clause
|
Shekharrajak/pydy,skidzo/pydy,oliverlee/pydy,jcrist/pydy,skidzo/pydy,jcrist/pydy,pydy/pydy-code-gen,Shekharrajak/pydy,pydy/pydy-code-gen,skidzo/pydy,jcrist/pydy,jcrist/pydy,skidzo/pydy,jcrist/pydy,Shekharrajak/pydy,Shekharrajak/pydy,jcrist/pydy,oliverlee/pydy,jcrist/pydy,oliverlee/pydy
|
#!/usr/bin/env python
from setuptools import setup, find_packages
from pydy_code_gen import __version__
setup(
name='pydy-code-gen',
version=__version__,
author='Jason K. Moore',
author_email='moorepants@gmail.com',
url="https://github.com/PythonDynamics/pydy-code-gen/",
description='Code generation for multibody dynamic systems.',
long_description=open('README.rst').read(),
keywords="dynamics multibody simulation code generation",
license='UNLICENSE',
packages=find_packages(),
install_requires=['sympy>=0.7.3',
'numpy>=1.6.1',
],
extras_require={'doc': ['sphinx', 'numpydoc'],
'theano': ['Theano>=0.6.0'],
'cython': ['Cython>=0.15.1'],
'examples': ['scipy>=0.9', 'matplotlib>=0.99'],
},
tests_require=['nose>=1.3.0'],
test_suite='nose.collector',
scripts=['bin/benchmark_pydy_code_gen.py'],
include_package_data=True,
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Science/Research',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.7',
'Topic :: Scientific/Engineering :: Physics',
],
)
Set SymPy version req to 0.7.4.1 (required only for Theano).
|
#!/usr/bin/env python
from setuptools import setup, find_packages
from pydy_code_gen import __version__
setup(
name='pydy-code-gen',
version=__version__,
author='Jason K. Moore',
author_email='moorepants@gmail.com',
url="https://github.com/PythonDynamics/pydy-code-gen/",
description='Code generation for multibody dynamic systems.',
long_description=open('README.rst').read(),
keywords="dynamics multibody simulation code generation",
license='UNLICENSE',
packages=find_packages(),
install_requires=['sympy>=0.7.4.1',
'numpy>=1.6.1',
],
extras_require={'doc': ['sphinx', 'numpydoc'],
'theano': ['Theano>=0.6.0'],
'cython': ['Cython>=0.15.1'],
'examples': ['scipy>=0.9', 'matplotlib>=0.99'],
},
tests_require=['nose>=1.3.0'],
test_suite='nose.collector',
scripts=['bin/benchmark_pydy_code_gen.py'],
include_package_data=True,
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Science/Research',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.7',
'Topic :: Scientific/Engineering :: Physics',
],
)
|
<commit_before>#!/usr/bin/env python
from setuptools import setup, find_packages
from pydy_code_gen import __version__
setup(
name='pydy-code-gen',
version=__version__,
author='Jason K. Moore',
author_email='moorepants@gmail.com',
url="https://github.com/PythonDynamics/pydy-code-gen/",
description='Code generation for multibody dynamic systems.',
long_description=open('README.rst').read(),
keywords="dynamics multibody simulation code generation",
license='UNLICENSE',
packages=find_packages(),
install_requires=['sympy>=0.7.3',
'numpy>=1.6.1',
],
extras_require={'doc': ['sphinx', 'numpydoc'],
'theano': ['Theano>=0.6.0'],
'cython': ['Cython>=0.15.1'],
'examples': ['scipy>=0.9', 'matplotlib>=0.99'],
},
tests_require=['nose>=1.3.0'],
test_suite='nose.collector',
scripts=['bin/benchmark_pydy_code_gen.py'],
include_package_data=True,
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Science/Research',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.7',
'Topic :: Scientific/Engineering :: Physics',
],
)
<commit_msg>Set SymPy version req to 0.7.4.1 (required only for Theano).<commit_after>
|
#!/usr/bin/env python
from setuptools import setup, find_packages
from pydy_code_gen import __version__
setup(
name='pydy-code-gen',
version=__version__,
author='Jason K. Moore',
author_email='moorepants@gmail.com',
url="https://github.com/PythonDynamics/pydy-code-gen/",
description='Code generation for multibody dynamic systems.',
long_description=open('README.rst').read(),
keywords="dynamics multibody simulation code generation",
license='UNLICENSE',
packages=find_packages(),
install_requires=['sympy>=0.7.4.1',
'numpy>=1.6.1',
],
extras_require={'doc': ['sphinx', 'numpydoc'],
'theano': ['Theano>=0.6.0'],
'cython': ['Cython>=0.15.1'],
'examples': ['scipy>=0.9', 'matplotlib>=0.99'],
},
tests_require=['nose>=1.3.0'],
test_suite='nose.collector',
scripts=['bin/benchmark_pydy_code_gen.py'],
include_package_data=True,
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Science/Research',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.7',
'Topic :: Scientific/Engineering :: Physics',
],
)
|
#!/usr/bin/env python
from setuptools import setup, find_packages
from pydy_code_gen import __version__
setup(
name='pydy-code-gen',
version=__version__,
author='Jason K. Moore',
author_email='moorepants@gmail.com',
url="https://github.com/PythonDynamics/pydy-code-gen/",
description='Code generation for multibody dynamic systems.',
long_description=open('README.rst').read(),
keywords="dynamics multibody simulation code generation",
license='UNLICENSE',
packages=find_packages(),
install_requires=['sympy>=0.7.3',
'numpy>=1.6.1',
],
extras_require={'doc': ['sphinx', 'numpydoc'],
'theano': ['Theano>=0.6.0'],
'cython': ['Cython>=0.15.1'],
'examples': ['scipy>=0.9', 'matplotlib>=0.99'],
},
tests_require=['nose>=1.3.0'],
test_suite='nose.collector',
scripts=['bin/benchmark_pydy_code_gen.py'],
include_package_data=True,
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Science/Research',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.7',
'Topic :: Scientific/Engineering :: Physics',
],
)
Set SymPy version req to 0.7.4.1 (required only for Theano).#!/usr/bin/env python
from setuptools import setup, find_packages
from pydy_code_gen import __version__
setup(
name='pydy-code-gen',
version=__version__,
author='Jason K. Moore',
author_email='moorepants@gmail.com',
url="https://github.com/PythonDynamics/pydy-code-gen/",
description='Code generation for multibody dynamic systems.',
long_description=open('README.rst').read(),
keywords="dynamics multibody simulation code generation",
license='UNLICENSE',
packages=find_packages(),
install_requires=['sympy>=0.7.4.1',
'numpy>=1.6.1',
],
extras_require={'doc': ['sphinx', 'numpydoc'],
'theano': ['Theano>=0.6.0'],
'cython': ['Cython>=0.15.1'],
'examples': ['scipy>=0.9', 'matplotlib>=0.99'],
},
tests_require=['nose>=1.3.0'],
test_suite='nose.collector',
scripts=['bin/benchmark_pydy_code_gen.py'],
include_package_data=True,
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Science/Research',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.7',
'Topic :: Scientific/Engineering :: Physics',
],
)
|
<commit_before>#!/usr/bin/env python
from setuptools import setup, find_packages
from pydy_code_gen import __version__
setup(
name='pydy-code-gen',
version=__version__,
author='Jason K. Moore',
author_email='moorepants@gmail.com',
url="https://github.com/PythonDynamics/pydy-code-gen/",
description='Code generation for multibody dynamic systems.',
long_description=open('README.rst').read(),
keywords="dynamics multibody simulation code generation",
license='UNLICENSE',
packages=find_packages(),
install_requires=['sympy>=0.7.3',
'numpy>=1.6.1',
],
extras_require={'doc': ['sphinx', 'numpydoc'],
'theano': ['Theano>=0.6.0'],
'cython': ['Cython>=0.15.1'],
'examples': ['scipy>=0.9', 'matplotlib>=0.99'],
},
tests_require=['nose>=1.3.0'],
test_suite='nose.collector',
scripts=['bin/benchmark_pydy_code_gen.py'],
include_package_data=True,
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Science/Research',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.7',
'Topic :: Scientific/Engineering :: Physics',
],
)
<commit_msg>Set SymPy version req to 0.7.4.1 (required only for Theano).<commit_after>#!/usr/bin/env python
from setuptools import setup, find_packages
from pydy_code_gen import __version__
setup(
name='pydy-code-gen',
version=__version__,
author='Jason K. Moore',
author_email='moorepants@gmail.com',
url="https://github.com/PythonDynamics/pydy-code-gen/",
description='Code generation for multibody dynamic systems.',
long_description=open('README.rst').read(),
keywords="dynamics multibody simulation code generation",
license='UNLICENSE',
packages=find_packages(),
install_requires=['sympy>=0.7.4.1',
'numpy>=1.6.1',
],
extras_require={'doc': ['sphinx', 'numpydoc'],
'theano': ['Theano>=0.6.0'],
'cython': ['Cython>=0.15.1'],
'examples': ['scipy>=0.9', 'matplotlib>=0.99'],
},
tests_require=['nose>=1.3.0'],
test_suite='nose.collector',
scripts=['bin/benchmark_pydy_code_gen.py'],
include_package_data=True,
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Science/Research',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.7',
'Topic :: Scientific/Engineering :: Physics',
],
)
|
a95f74e926a9381e16688fbebd017f676d19b7a5
|
setup.py
|
setup.py
|
from setuptools import setup
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
#import here, cause outside the eggs aren't loaded
import pytest
pytest.main(self.test_args)
setup(
name='Flask-Pushrod',
version='0.1-dev',
url='http://github.com/dontcare4free/flask-pushrod',
license='MIT',
author='Nullable',
author_email='teo@nullable.se',
description='An API microframework based on the idea of that the UI is just yet another endpoint',
packages=['flask_pushrod', 'flask_pushrod.renderers'],
zip_safe=False,
platforms='any',
install_requires=[
'Werkzeug>=0.7',
'Flask>=0.9',
],
tests_require=[
'pytest>=2.2.4',
],
cmdclass={'test': PyTest},
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules',
],
)
|
from setuptools import setup
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
#import here, cause outside the eggs aren't loaded
import pytest
raise SystemExit(pytest.main(self.test_args))
setup(
name='Flask-Pushrod',
version='0.1-dev',
url='http://github.com/dontcare4free/flask-pushrod',
license='MIT',
author='Nullable',
author_email='teo@nullable.se',
description='An API microframework based on the idea of that the UI is just yet another endpoint',
packages=['flask_pushrod', 'flask_pushrod.renderers'],
zip_safe=False,
platforms='any',
install_requires=[
'Werkzeug>=0.7',
'Flask>=0.9',
],
tests_require=[
'pytest>=2.2.4',
],
cmdclass={'test': PyTest},
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules',
],
)
|
Make sure that the error code is returned properly
|
Make sure that the error code is returned properly
|
Python
|
mit
|
teozkr/Flask-Pushrod,UYSio/Flask-Pushrod,teozkr/Flask-Pushrod
|
from setuptools import setup
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
#import here, cause outside the eggs aren't loaded
import pytest
pytest.main(self.test_args)
setup(
name='Flask-Pushrod',
version='0.1-dev',
url='http://github.com/dontcare4free/flask-pushrod',
license='MIT',
author='Nullable',
author_email='teo@nullable.se',
description='An API microframework based on the idea of that the UI is just yet another endpoint',
packages=['flask_pushrod', 'flask_pushrod.renderers'],
zip_safe=False,
platforms='any',
install_requires=[
'Werkzeug>=0.7',
'Flask>=0.9',
],
tests_require=[
'pytest>=2.2.4',
],
cmdclass={'test': PyTest},
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules',
],
)
Make sure that the error code is returned properly
|
from setuptools import setup
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
#import here, cause outside the eggs aren't loaded
import pytest
raise SystemExit(pytest.main(self.test_args))
setup(
name='Flask-Pushrod',
version='0.1-dev',
url='http://github.com/dontcare4free/flask-pushrod',
license='MIT',
author='Nullable',
author_email='teo@nullable.se',
description='An API microframework based on the idea of that the UI is just yet another endpoint',
packages=['flask_pushrod', 'flask_pushrod.renderers'],
zip_safe=False,
platforms='any',
install_requires=[
'Werkzeug>=0.7',
'Flask>=0.9',
],
tests_require=[
'pytest>=2.2.4',
],
cmdclass={'test': PyTest},
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules',
],
)
|
<commit_before>from setuptools import setup
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
#import here, cause outside the eggs aren't loaded
import pytest
pytest.main(self.test_args)
setup(
name='Flask-Pushrod',
version='0.1-dev',
url='http://github.com/dontcare4free/flask-pushrod',
license='MIT',
author='Nullable',
author_email='teo@nullable.se',
description='An API microframework based on the idea of that the UI is just yet another endpoint',
packages=['flask_pushrod', 'flask_pushrod.renderers'],
zip_safe=False,
platforms='any',
install_requires=[
'Werkzeug>=0.7',
'Flask>=0.9',
],
tests_require=[
'pytest>=2.2.4',
],
cmdclass={'test': PyTest},
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules',
],
)
<commit_msg>Make sure that the error code is returned properly<commit_after>
|
from setuptools import setup
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
#import here, cause outside the eggs aren't loaded
import pytest
raise SystemExit(pytest.main(self.test_args))
setup(
name='Flask-Pushrod',
version='0.1-dev',
url='http://github.com/dontcare4free/flask-pushrod',
license='MIT',
author='Nullable',
author_email='teo@nullable.se',
description='An API microframework based on the idea of that the UI is just yet another endpoint',
packages=['flask_pushrod', 'flask_pushrod.renderers'],
zip_safe=False,
platforms='any',
install_requires=[
'Werkzeug>=0.7',
'Flask>=0.9',
],
tests_require=[
'pytest>=2.2.4',
],
cmdclass={'test': PyTest},
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules',
],
)
|
from setuptools import setup
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
#import here, cause outside the eggs aren't loaded
import pytest
pytest.main(self.test_args)
setup(
name='Flask-Pushrod',
version='0.1-dev',
url='http://github.com/dontcare4free/flask-pushrod',
license='MIT',
author='Nullable',
author_email='teo@nullable.se',
description='An API microframework based on the idea of that the UI is just yet another endpoint',
packages=['flask_pushrod', 'flask_pushrod.renderers'],
zip_safe=False,
platforms='any',
install_requires=[
'Werkzeug>=0.7',
'Flask>=0.9',
],
tests_require=[
'pytest>=2.2.4',
],
cmdclass={'test': PyTest},
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules',
],
)
Make sure that the error code is returned properlyfrom setuptools import setup
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
#import here, cause outside the eggs aren't loaded
import pytest
raise SystemExit(pytest.main(self.test_args))
setup(
name='Flask-Pushrod',
version='0.1-dev',
url='http://github.com/dontcare4free/flask-pushrod',
license='MIT',
author='Nullable',
author_email='teo@nullable.se',
description='An API microframework based on the idea of that the UI is just yet another endpoint',
packages=['flask_pushrod', 'flask_pushrod.renderers'],
zip_safe=False,
platforms='any',
install_requires=[
'Werkzeug>=0.7',
'Flask>=0.9',
],
tests_require=[
'pytest>=2.2.4',
],
cmdclass={'test': PyTest},
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules',
],
)
|
<commit_before>from setuptools import setup
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
#import here, cause outside the eggs aren't loaded
import pytest
pytest.main(self.test_args)
setup(
name='Flask-Pushrod',
version='0.1-dev',
url='http://github.com/dontcare4free/flask-pushrod',
license='MIT',
author='Nullable',
author_email='teo@nullable.se',
description='An API microframework based on the idea of that the UI is just yet another endpoint',
packages=['flask_pushrod', 'flask_pushrod.renderers'],
zip_safe=False,
platforms='any',
install_requires=[
'Werkzeug>=0.7',
'Flask>=0.9',
],
tests_require=[
'pytest>=2.2.4',
],
cmdclass={'test': PyTest},
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules',
],
)
<commit_msg>Make sure that the error code is returned properly<commit_after>from setuptools import setup
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
#import here, cause outside the eggs aren't loaded
import pytest
raise SystemExit(pytest.main(self.test_args))
setup(
name='Flask-Pushrod',
version='0.1-dev',
url='http://github.com/dontcare4free/flask-pushrod',
license='MIT',
author='Nullable',
author_email='teo@nullable.se',
description='An API microframework based on the idea of that the UI is just yet another endpoint',
packages=['flask_pushrod', 'flask_pushrod.renderers'],
zip_safe=False,
platforms='any',
install_requires=[
'Werkzeug>=0.7',
'Flask>=0.9',
],
tests_require=[
'pytest>=2.2.4',
],
cmdclass={'test': PyTest},
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules',
],
)
|
681326cb6b070c84f5d84064f3d8925dd2762065
|
setup.py
|
setup.py
|
from distutils.core import setup
import re
versionPattern = re.compile(r"""^__version__ = ['"](.*?)['"]$""", re.M)
with open("axiom/_version.py", "rt") as f:
version = versionPattern.search(f.read()).group(1)
setup(
name="Axiom",
version=version,
description="An in-process object-relational database",
url="http://divmod.org/trac/wiki/DivmodAxiom",
maintainer="Divmod, Inc.",
maintainer_email="support@divmod.org",
install_requires=["twisted", "epsilon"],
packages=[
'axiom',
'axiom.scripts',
'axiom.test',
'axiom.test.upgrade_fixtures',
'axiom.test.historic',
'axiom.plugins',
'twisted.plugins'
],
scripts=['bin/axiomatic'],
license="MIT",
platforms=["any"],
classifiers=[
"Development Status :: 5 - Production/Stable",
"Framework :: Twisted",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Topic :: Database"])
|
from distutils.core import setup
import re
versionPattern = re.compile(r"""^__version__ = ['"](.*?)['"]$""", re.M)
with open("axiom/_version.py", "rt") as f:
version = versionPattern.search(f.read()).group(1)
setup(
name="Axiom",
version=version,
description="An in-process object-relational database",
url="http://divmod.org/trac/wiki/DivmodAxiom",
maintainer="Divmod, Inc.",
maintainer_email="support@divmod.org",
install_requires=["twisted", "epsilon"],
packages=[
'axiom',
'axiom.scripts',
'axiom.test',
'axiom.test.upgrade_fixtures',
'axiom.test.historic',
'axiom.plugins',
'twisted.plugins'
],
scripts=['bin/axiomatic'],
license="MIT",
platforms=["any"],
classifiers=[
"Development Status :: 5 - Production/Stable",
"Framework :: Twisted",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 2 :: Only",
"Topic :: Database"])
|
Add trove classifiers for supported Python versions
|
Add trove classifiers for supported Python versions
|
Python
|
mit
|
twisted/axiom,hawkowl/axiom
|
from distutils.core import setup
import re
versionPattern = re.compile(r"""^__version__ = ['"](.*?)['"]$""", re.M)
with open("axiom/_version.py", "rt") as f:
version = versionPattern.search(f.read()).group(1)
setup(
name="Axiom",
version=version,
description="An in-process object-relational database",
url="http://divmod.org/trac/wiki/DivmodAxiom",
maintainer="Divmod, Inc.",
maintainer_email="support@divmod.org",
install_requires=["twisted", "epsilon"],
packages=[
'axiom',
'axiom.scripts',
'axiom.test',
'axiom.test.upgrade_fixtures',
'axiom.test.historic',
'axiom.plugins',
'twisted.plugins'
],
scripts=['bin/axiomatic'],
license="MIT",
platforms=["any"],
classifiers=[
"Development Status :: 5 - Production/Stable",
"Framework :: Twisted",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Topic :: Database"])
Add trove classifiers for supported Python versions
|
from distutils.core import setup
import re
versionPattern = re.compile(r"""^__version__ = ['"](.*?)['"]$""", re.M)
with open("axiom/_version.py", "rt") as f:
version = versionPattern.search(f.read()).group(1)
setup(
name="Axiom",
version=version,
description="An in-process object-relational database",
url="http://divmod.org/trac/wiki/DivmodAxiom",
maintainer="Divmod, Inc.",
maintainer_email="support@divmod.org",
install_requires=["twisted", "epsilon"],
packages=[
'axiom',
'axiom.scripts',
'axiom.test',
'axiom.test.upgrade_fixtures',
'axiom.test.historic',
'axiom.plugins',
'twisted.plugins'
],
scripts=['bin/axiomatic'],
license="MIT",
platforms=["any"],
classifiers=[
"Development Status :: 5 - Production/Stable",
"Framework :: Twisted",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 2 :: Only",
"Topic :: Database"])
|
<commit_before>from distutils.core import setup
import re
versionPattern = re.compile(r"""^__version__ = ['"](.*?)['"]$""", re.M)
with open("axiom/_version.py", "rt") as f:
version = versionPattern.search(f.read()).group(1)
setup(
name="Axiom",
version=version,
description="An in-process object-relational database",
url="http://divmod.org/trac/wiki/DivmodAxiom",
maintainer="Divmod, Inc.",
maintainer_email="support@divmod.org",
install_requires=["twisted", "epsilon"],
packages=[
'axiom',
'axiom.scripts',
'axiom.test',
'axiom.test.upgrade_fixtures',
'axiom.test.historic',
'axiom.plugins',
'twisted.plugins'
],
scripts=['bin/axiomatic'],
license="MIT",
platforms=["any"],
classifiers=[
"Development Status :: 5 - Production/Stable",
"Framework :: Twisted",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Topic :: Database"])
<commit_msg>Add trove classifiers for supported Python versions<commit_after>
|
from distutils.core import setup
import re
versionPattern = re.compile(r"""^__version__ = ['"](.*?)['"]$""", re.M)
with open("axiom/_version.py", "rt") as f:
version = versionPattern.search(f.read()).group(1)
setup(
name="Axiom",
version=version,
description="An in-process object-relational database",
url="http://divmod.org/trac/wiki/DivmodAxiom",
maintainer="Divmod, Inc.",
maintainer_email="support@divmod.org",
install_requires=["twisted", "epsilon"],
packages=[
'axiom',
'axiom.scripts',
'axiom.test',
'axiom.test.upgrade_fixtures',
'axiom.test.historic',
'axiom.plugins',
'twisted.plugins'
],
scripts=['bin/axiomatic'],
license="MIT",
platforms=["any"],
classifiers=[
"Development Status :: 5 - Production/Stable",
"Framework :: Twisted",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 2 :: Only",
"Topic :: Database"])
|
from distutils.core import setup
import re
versionPattern = re.compile(r"""^__version__ = ['"](.*?)['"]$""", re.M)
with open("axiom/_version.py", "rt") as f:
version = versionPattern.search(f.read()).group(1)
setup(
name="Axiom",
version=version,
description="An in-process object-relational database",
url="http://divmod.org/trac/wiki/DivmodAxiom",
maintainer="Divmod, Inc.",
maintainer_email="support@divmod.org",
install_requires=["twisted", "epsilon"],
packages=[
'axiom',
'axiom.scripts',
'axiom.test',
'axiom.test.upgrade_fixtures',
'axiom.test.historic',
'axiom.plugins',
'twisted.plugins'
],
scripts=['bin/axiomatic'],
license="MIT",
platforms=["any"],
classifiers=[
"Development Status :: 5 - Production/Stable",
"Framework :: Twisted",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Topic :: Database"])
Add trove classifiers for supported Python versionsfrom distutils.core import setup
import re
versionPattern = re.compile(r"""^__version__ = ['"](.*?)['"]$""", re.M)
with open("axiom/_version.py", "rt") as f:
version = versionPattern.search(f.read()).group(1)
setup(
name="Axiom",
version=version,
description="An in-process object-relational database",
url="http://divmod.org/trac/wiki/DivmodAxiom",
maintainer="Divmod, Inc.",
maintainer_email="support@divmod.org",
install_requires=["twisted", "epsilon"],
packages=[
'axiom',
'axiom.scripts',
'axiom.test',
'axiom.test.upgrade_fixtures',
'axiom.test.historic',
'axiom.plugins',
'twisted.plugins'
],
scripts=['bin/axiomatic'],
license="MIT",
platforms=["any"],
classifiers=[
"Development Status :: 5 - Production/Stable",
"Framework :: Twisted",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 2 :: Only",
"Topic :: Database"])
|
<commit_before>from distutils.core import setup
import re
versionPattern = re.compile(r"""^__version__ = ['"](.*?)['"]$""", re.M)
with open("axiom/_version.py", "rt") as f:
version = versionPattern.search(f.read()).group(1)
setup(
name="Axiom",
version=version,
description="An in-process object-relational database",
url="http://divmod.org/trac/wiki/DivmodAxiom",
maintainer="Divmod, Inc.",
maintainer_email="support@divmod.org",
install_requires=["twisted", "epsilon"],
packages=[
'axiom',
'axiom.scripts',
'axiom.test',
'axiom.test.upgrade_fixtures',
'axiom.test.historic',
'axiom.plugins',
'twisted.plugins'
],
scripts=['bin/axiomatic'],
license="MIT",
platforms=["any"],
classifiers=[
"Development Status :: 5 - Production/Stable",
"Framework :: Twisted",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Topic :: Database"])
<commit_msg>Add trove classifiers for supported Python versions<commit_after>from distutils.core import setup
import re
versionPattern = re.compile(r"""^__version__ = ['"](.*?)['"]$""", re.M)
with open("axiom/_version.py", "rt") as f:
version = versionPattern.search(f.read()).group(1)
setup(
name="Axiom",
version=version,
description="An in-process object-relational database",
url="http://divmod.org/trac/wiki/DivmodAxiom",
maintainer="Divmod, Inc.",
maintainer_email="support@divmod.org",
install_requires=["twisted", "epsilon"],
packages=[
'axiom',
'axiom.scripts',
'axiom.test',
'axiom.test.upgrade_fixtures',
'axiom.test.historic',
'axiom.plugins',
'twisted.plugins'
],
scripts=['bin/axiomatic'],
license="MIT",
platforms=["any"],
classifiers=[
"Development Status :: 5 - Production/Stable",
"Framework :: Twisted",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 2 :: Only",
"Topic :: Database"])
|
fc8b5e8744ba8fe26d12788829eac90dcb6ea87e
|
setup.py
|
setup.py
|
from numpy.distutils.core import setup, Extension
import os
if os.name == 'nt':
# If OS is Windows, don't compile Fortran code
ext = []
else:
# If OS is OS X or Linux, assume Fortran compilers are available
ext = [
Extension(name='smt.IDWlib', extra_compile_args=['-fbounds-check'],
sources=['src_f/idw.f95']),
Extension(name='smt.RMTSlib', extra_compile_args=['-fbounds-check'],
sources=['src_f/rmts.f95', 'src_f/utils.f95']),
Extension(name='smt.RMTBlib', extra_compile_args=['-fbounds-check'],
sources=['src_f/rmtb.f95', 'src_f/utils.f95']),
]
setup(name='smt',
version='0.1',
description='The Surrogate Model Toolbox (SMT)',
author='Mohamed Amine Bouhlel',
author_email='mbouhlel@umich.edu',
license='BSD-3',
packages=[
'smt',
'smt/problems',
'smt/sampling',
'smt/utils',
],
install_requires=[
'scikit-learn',
'pyDOE',
'pyamg',
],
zip_safe=False,
ext_modules=ext,
)
|
from numpy.distutils.core import setup, Extension
import os
if os.name == 'nt' and 0:
# If OS is Windows, don't compile Fortran code
ext = []
else:
# If OS is OS X or Linux, assume Fortran compilers are available
ext = [
Extension(name='smt.IDWlib', extra_compile_args=['-fbounds-check'],
sources=['src_f/idw.f95']),
Extension(name='smt.RMTSlib', extra_compile_args=['-fbounds-check'],
sources=['src_f/rmts.f95', 'src_f/utils.f95']),
Extension(name='smt.RMTBlib', extra_compile_args=['-fbounds-check'],
sources=['src_f/rmtb.f95', 'src_f/utils.f95']),
]
setup(name='smt',
version='0.1',
description='The Surrogate Model Toolbox (SMT)',
author='Mohamed Amine Bouhlel',
author_email='mbouhlel@umich.edu',
license='BSD-3',
packages=[
'smt',
'smt/problems',
'smt/sampling',
'smt/utils',
],
install_requires=[
'scikit-learn',
'pyDOE',
'pyamg',
],
zip_safe=False,
ext_modules=ext,
)
|
Test Fortran compiler on windows
|
Test Fortran compiler on windows
|
Python
|
bsd-3-clause
|
SMTorg/smt,bouhlelma/smt,bouhlelma/smt,hwangjt/SMT,SMTorg/smt,relf/smt,hwangjt/SMT,relf/smt
|
from numpy.distutils.core import setup, Extension
import os
if os.name == 'nt':
# If OS is Windows, don't compile Fortran code
ext = []
else:
# If OS is OS X or Linux, assume Fortran compilers are available
ext = [
Extension(name='smt.IDWlib', extra_compile_args=['-fbounds-check'],
sources=['src_f/idw.f95']),
Extension(name='smt.RMTSlib', extra_compile_args=['-fbounds-check'],
sources=['src_f/rmts.f95', 'src_f/utils.f95']),
Extension(name='smt.RMTBlib', extra_compile_args=['-fbounds-check'],
sources=['src_f/rmtb.f95', 'src_f/utils.f95']),
]
setup(name='smt',
version='0.1',
description='The Surrogate Model Toolbox (SMT)',
author='Mohamed Amine Bouhlel',
author_email='mbouhlel@umich.edu',
license='BSD-3',
packages=[
'smt',
'smt/problems',
'smt/sampling',
'smt/utils',
],
install_requires=[
'scikit-learn',
'pyDOE',
'pyamg',
],
zip_safe=False,
ext_modules=ext,
)
Test Fortran compiler on windows
|
from numpy.distutils.core import setup, Extension
import os
if os.name == 'nt' and 0:
# If OS is Windows, don't compile Fortran code
ext = []
else:
# If OS is OS X or Linux, assume Fortran compilers are available
ext = [
Extension(name='smt.IDWlib', extra_compile_args=['-fbounds-check'],
sources=['src_f/idw.f95']),
Extension(name='smt.RMTSlib', extra_compile_args=['-fbounds-check'],
sources=['src_f/rmts.f95', 'src_f/utils.f95']),
Extension(name='smt.RMTBlib', extra_compile_args=['-fbounds-check'],
sources=['src_f/rmtb.f95', 'src_f/utils.f95']),
]
setup(name='smt',
version='0.1',
description='The Surrogate Model Toolbox (SMT)',
author='Mohamed Amine Bouhlel',
author_email='mbouhlel@umich.edu',
license='BSD-3',
packages=[
'smt',
'smt/problems',
'smt/sampling',
'smt/utils',
],
install_requires=[
'scikit-learn',
'pyDOE',
'pyamg',
],
zip_safe=False,
ext_modules=ext,
)
|
<commit_before>from numpy.distutils.core import setup, Extension
import os
if os.name == 'nt':
# If OS is Windows, don't compile Fortran code
ext = []
else:
# If OS is OS X or Linux, assume Fortran compilers are available
ext = [
Extension(name='smt.IDWlib', extra_compile_args=['-fbounds-check'],
sources=['src_f/idw.f95']),
Extension(name='smt.RMTSlib', extra_compile_args=['-fbounds-check'],
sources=['src_f/rmts.f95', 'src_f/utils.f95']),
Extension(name='smt.RMTBlib', extra_compile_args=['-fbounds-check'],
sources=['src_f/rmtb.f95', 'src_f/utils.f95']),
]
setup(name='smt',
version='0.1',
description='The Surrogate Model Toolbox (SMT)',
author='Mohamed Amine Bouhlel',
author_email='mbouhlel@umich.edu',
license='BSD-3',
packages=[
'smt',
'smt/problems',
'smt/sampling',
'smt/utils',
],
install_requires=[
'scikit-learn',
'pyDOE',
'pyamg',
],
zip_safe=False,
ext_modules=ext,
)
<commit_msg>Test Fortran compiler on windows<commit_after>
|
from numpy.distutils.core import setup, Extension
import os
if os.name == 'nt' and 0:
# If OS is Windows, don't compile Fortran code
ext = []
else:
# If OS is OS X or Linux, assume Fortran compilers are available
ext = [
Extension(name='smt.IDWlib', extra_compile_args=['-fbounds-check'],
sources=['src_f/idw.f95']),
Extension(name='smt.RMTSlib', extra_compile_args=['-fbounds-check'],
sources=['src_f/rmts.f95', 'src_f/utils.f95']),
Extension(name='smt.RMTBlib', extra_compile_args=['-fbounds-check'],
sources=['src_f/rmtb.f95', 'src_f/utils.f95']),
]
setup(name='smt',
version='0.1',
description='The Surrogate Model Toolbox (SMT)',
author='Mohamed Amine Bouhlel',
author_email='mbouhlel@umich.edu',
license='BSD-3',
packages=[
'smt',
'smt/problems',
'smt/sampling',
'smt/utils',
],
install_requires=[
'scikit-learn',
'pyDOE',
'pyamg',
],
zip_safe=False,
ext_modules=ext,
)
|
from numpy.distutils.core import setup, Extension
import os
if os.name == 'nt':
# If OS is Windows, don't compile Fortran code
ext = []
else:
# If OS is OS X or Linux, assume Fortran compilers are available
ext = [
Extension(name='smt.IDWlib', extra_compile_args=['-fbounds-check'],
sources=['src_f/idw.f95']),
Extension(name='smt.RMTSlib', extra_compile_args=['-fbounds-check'],
sources=['src_f/rmts.f95', 'src_f/utils.f95']),
Extension(name='smt.RMTBlib', extra_compile_args=['-fbounds-check'],
sources=['src_f/rmtb.f95', 'src_f/utils.f95']),
]
setup(name='smt',
version='0.1',
description='The Surrogate Model Toolbox (SMT)',
author='Mohamed Amine Bouhlel',
author_email='mbouhlel@umich.edu',
license='BSD-3',
packages=[
'smt',
'smt/problems',
'smt/sampling',
'smt/utils',
],
install_requires=[
'scikit-learn',
'pyDOE',
'pyamg',
],
zip_safe=False,
ext_modules=ext,
)
Test Fortran compiler on windowsfrom numpy.distutils.core import setup, Extension
import os
if os.name == 'nt' and 0:
# If OS is Windows, don't compile Fortran code
ext = []
else:
# If OS is OS X or Linux, assume Fortran compilers are available
ext = [
Extension(name='smt.IDWlib', extra_compile_args=['-fbounds-check'],
sources=['src_f/idw.f95']),
Extension(name='smt.RMTSlib', extra_compile_args=['-fbounds-check'],
sources=['src_f/rmts.f95', 'src_f/utils.f95']),
Extension(name='smt.RMTBlib', extra_compile_args=['-fbounds-check'],
sources=['src_f/rmtb.f95', 'src_f/utils.f95']),
]
setup(name='smt',
version='0.1',
description='The Surrogate Model Toolbox (SMT)',
author='Mohamed Amine Bouhlel',
author_email='mbouhlel@umich.edu',
license='BSD-3',
packages=[
'smt',
'smt/problems',
'smt/sampling',
'smt/utils',
],
install_requires=[
'scikit-learn',
'pyDOE',
'pyamg',
],
zip_safe=False,
ext_modules=ext,
)
|
<commit_before>from numpy.distutils.core import setup, Extension
import os
if os.name == 'nt':
# If OS is Windows, don't compile Fortran code
ext = []
else:
# If OS is OS X or Linux, assume Fortran compilers are available
ext = [
Extension(name='smt.IDWlib', extra_compile_args=['-fbounds-check'],
sources=['src_f/idw.f95']),
Extension(name='smt.RMTSlib', extra_compile_args=['-fbounds-check'],
sources=['src_f/rmts.f95', 'src_f/utils.f95']),
Extension(name='smt.RMTBlib', extra_compile_args=['-fbounds-check'],
sources=['src_f/rmtb.f95', 'src_f/utils.f95']),
]
setup(name='smt',
version='0.1',
description='The Surrogate Model Toolbox (SMT)',
author='Mohamed Amine Bouhlel',
author_email='mbouhlel@umich.edu',
license='BSD-3',
packages=[
'smt',
'smt/problems',
'smt/sampling',
'smt/utils',
],
install_requires=[
'scikit-learn',
'pyDOE',
'pyamg',
],
zip_safe=False,
ext_modules=ext,
)
<commit_msg>Test Fortran compiler on windows<commit_after>from numpy.distutils.core import setup, Extension
import os
if os.name == 'nt' and 0:
# If OS is Windows, don't compile Fortran code
ext = []
else:
# If OS is OS X or Linux, assume Fortran compilers are available
ext = [
Extension(name='smt.IDWlib', extra_compile_args=['-fbounds-check'],
sources=['src_f/idw.f95']),
Extension(name='smt.RMTSlib', extra_compile_args=['-fbounds-check'],
sources=['src_f/rmts.f95', 'src_f/utils.f95']),
Extension(name='smt.RMTBlib', extra_compile_args=['-fbounds-check'],
sources=['src_f/rmtb.f95', 'src_f/utils.f95']),
]
setup(name='smt',
version='0.1',
description='The Surrogate Model Toolbox (SMT)',
author='Mohamed Amine Bouhlel',
author_email='mbouhlel@umich.edu',
license='BSD-3',
packages=[
'smt',
'smt/problems',
'smt/sampling',
'smt/utils',
],
install_requires=[
'scikit-learn',
'pyDOE',
'pyamg',
],
zip_safe=False,
ext_modules=ext,
)
|
119478a8531bc7b58257801c4cf18628ce006d7e
|
setup.py
|
setup.py
|
#!/usr/bin/python
from distutils.core import setup
from glob import glob
# Scripts whose names end in a-z or 1-9 (avoids emacs backup files)
scripts = glob('scripts/*[a-z,1-9]')
setup(name='vasputil',
version='5.1',
description='VASP utilities',
author='Janne Blomqvist',
author_email='Janne.Blomqvist@tkk.fi',
url='http://tfy.tkk.fi/~job/',
packages=['vasputil', 'vasputil.tests'],
scripts = scripts)
|
#!/usr/bin/python
from distutils.core import setup
from glob import glob
# Scripts whose names end in a-z or 1-9 (avoids emacs backup files)
scripts = glob('scripts/*[a-z,1-9]')
setup(name='vasputil',
version='5.1',
description='VASP utilities',
author='Janne Blomqvist',
author_email='Janne.Blomqvist@tkk.fi',
url='http://tfy.tkk.fi/~job/vasputil',
packages=['vasputil', 'vasputil.tests'],
scripts = scripts)
|
Fix url, correct url this time?
|
Fix url, correct url this time?
|
Python
|
lgpl-2.1
|
jabl/vasputil,jabl/vasputil,oren88/vasputil,oren88/vasputil
|
#!/usr/bin/python
from distutils.core import setup
from glob import glob
# Scripts whose names end in a-z or 1-9 (avoids emacs backup files)
scripts = glob('scripts/*[a-z,1-9]')
setup(name='vasputil',
version='5.1',
description='VASP utilities',
author='Janne Blomqvist',
author_email='Janne.Blomqvist@tkk.fi',
url='http://tfy.tkk.fi/~job/',
packages=['vasputil', 'vasputil.tests'],
scripts = scripts)
Fix url, correct url this time?
|
#!/usr/bin/python
from distutils.core import setup
from glob import glob
# Scripts whose names end in a-z or 1-9 (avoids emacs backup files)
scripts = glob('scripts/*[a-z,1-9]')
setup(name='vasputil',
version='5.1',
description='VASP utilities',
author='Janne Blomqvist',
author_email='Janne.Blomqvist@tkk.fi',
url='http://tfy.tkk.fi/~job/vasputil',
packages=['vasputil', 'vasputil.tests'],
scripts = scripts)
|
<commit_before>#!/usr/bin/python
from distutils.core import setup
from glob import glob
# Scripts whose names end in a-z or 1-9 (avoids emacs backup files)
scripts = glob('scripts/*[a-z,1-9]')
setup(name='vasputil',
version='5.1',
description='VASP utilities',
author='Janne Blomqvist',
author_email='Janne.Blomqvist@tkk.fi',
url='http://tfy.tkk.fi/~job/',
packages=['vasputil', 'vasputil.tests'],
scripts = scripts)
<commit_msg>Fix url, correct url this time?<commit_after>
|
#!/usr/bin/python
from distutils.core import setup
from glob import glob
# Scripts whose names end in a-z or 1-9 (avoids emacs backup files)
scripts = glob('scripts/*[a-z,1-9]')
setup(name='vasputil',
version='5.1',
description='VASP utilities',
author='Janne Blomqvist',
author_email='Janne.Blomqvist@tkk.fi',
url='http://tfy.tkk.fi/~job/vasputil',
packages=['vasputil', 'vasputil.tests'],
scripts = scripts)
|
#!/usr/bin/python
from distutils.core import setup
from glob import glob
# Scripts whose names end in a-z or 1-9 (avoids emacs backup files)
scripts = glob('scripts/*[a-z,1-9]')
setup(name='vasputil',
version='5.1',
description='VASP utilities',
author='Janne Blomqvist',
author_email='Janne.Blomqvist@tkk.fi',
url='http://tfy.tkk.fi/~job/',
packages=['vasputil', 'vasputil.tests'],
scripts = scripts)
Fix url, correct url this time?#!/usr/bin/python
from distutils.core import setup
from glob import glob
# Scripts whose names end in a-z or 1-9 (avoids emacs backup files)
scripts = glob('scripts/*[a-z,1-9]')
setup(name='vasputil',
version='5.1',
description='VASP utilities',
author='Janne Blomqvist',
author_email='Janne.Blomqvist@tkk.fi',
url='http://tfy.tkk.fi/~job/vasputil',
packages=['vasputil', 'vasputil.tests'],
scripts = scripts)
|
<commit_before>#!/usr/bin/python
from distutils.core import setup
from glob import glob
# Scripts whose names end in a-z or 1-9 (avoids emacs backup files)
scripts = glob('scripts/*[a-z,1-9]')
setup(name='vasputil',
version='5.1',
description='VASP utilities',
author='Janne Blomqvist',
author_email='Janne.Blomqvist@tkk.fi',
url='http://tfy.tkk.fi/~job/',
packages=['vasputil', 'vasputil.tests'],
scripts = scripts)
<commit_msg>Fix url, correct url this time?<commit_after>#!/usr/bin/python
from distutils.core import setup
from glob import glob
# Scripts whose names end in a-z or 1-9 (avoids emacs backup files)
scripts = glob('scripts/*[a-z,1-9]')
setup(name='vasputil',
version='5.1',
description='VASP utilities',
author='Janne Blomqvist',
author_email='Janne.Blomqvist@tkk.fi',
url='http://tfy.tkk.fi/~job/vasputil',
packages=['vasputil', 'vasputil.tests'],
scripts = scripts)
|
05139a0944d227064458d06c06ae5088784b4298
|
hoodcms/models.py
|
hoodcms/models.py
|
import os
import time
from django.contrib.staticfiles import finders
from django.templatetags.static import StaticNode
def get_media(path):
result = finders.find(path, all=True)
return [os.path.realpath(path) for path in result]
def new_url(self, context):
"""Add a query string to invalidate cached files when needed"""
path = self.path.resolve(context)
mtime = os.path.getmtime(get_media(path)[0])
mkey = hex(int(str(mtime).split('.')[0][-3::-1]))[2:]
return self.handle_simple(path + '?' + mkey)
StaticNode.url = new_url
|
Add a query string static patch
|
Add a query string static patch
|
Python
|
agpl-3.0
|
Ashmont-Valley/ashmont-valley-website,Ashmont-Valley/ashmont-valley-website,Ashmont-Valley/ashmont-valley-website,Ashmont-Valley/ashmont-valley-website
|
Add a query string static patch
|
import os
import time
from django.contrib.staticfiles import finders
from django.templatetags.static import StaticNode
def get_media(path):
result = finders.find(path, all=True)
return [os.path.realpath(path) for path in result]
def new_url(self, context):
"""Add a query string to invalidate cached files when needed"""
path = self.path.resolve(context)
mtime = os.path.getmtime(get_media(path)[0])
mkey = hex(int(str(mtime).split('.')[0][-3::-1]))[2:]
return self.handle_simple(path + '?' + mkey)
StaticNode.url = new_url
|
<commit_before><commit_msg>Add a query string static patch<commit_after>
|
import os
import time
from django.contrib.staticfiles import finders
from django.templatetags.static import StaticNode
def get_media(path):
result = finders.find(path, all=True)
return [os.path.realpath(path) for path in result]
def new_url(self, context):
"""Add a query string to invalidate cached files when needed"""
path = self.path.resolve(context)
mtime = os.path.getmtime(get_media(path)[0])
mkey = hex(int(str(mtime).split('.')[0][-3::-1]))[2:]
return self.handle_simple(path + '?' + mkey)
StaticNode.url = new_url
|
Add a query string static patch
import os
import time
from django.contrib.staticfiles import finders
from django.templatetags.static import StaticNode
def get_media(path):
result = finders.find(path, all=True)
return [os.path.realpath(path) for path in result]
def new_url(self, context):
"""Add a query string to invalidate cached files when needed"""
path = self.path.resolve(context)
mtime = os.path.getmtime(get_media(path)[0])
mkey = hex(int(str(mtime).split('.')[0][-3::-1]))[2:]
return self.handle_simple(path + '?' + mkey)
StaticNode.url = new_url
|
<commit_before><commit_msg>Add a query string static patch<commit_after>
import os
import time
from django.contrib.staticfiles import finders
from django.templatetags.static import StaticNode
def get_media(path):
result = finders.find(path, all=True)
return [os.path.realpath(path) for path in result]
def new_url(self, context):
"""Add a query string to invalidate cached files when needed"""
path = self.path.resolve(context)
mtime = os.path.getmtime(get_media(path)[0])
mkey = hex(int(str(mtime).split('.')[0][-3::-1]))[2:]
return self.handle_simple(path + '?' + mkey)
StaticNode.url = new_url
|
|
0ef82c3b6b98da84f423a61482969cb1cdb64681
|
setup.py
|
setup.py
|
import os
import re
from setuptools import setup, find_packages
with open(os.path.join(os.path.dirname(__file__), 'jsondiff', '__init__.py')) as f:
version = re.compile(r".*__version__ = '(.*?)'", re.S).match(f.read()).group(1)
setup(
name='jsondiff',
packages=find_packages(exclude=['tests']),
version=version,
description='Diff JSON and JSON-like structures in Python',
author='Zoomer Analytics LLC',
author_email='eric.reynolds@zoomeranalytics.com',
url='https://github.com/ZoomerAnalytics/jsondiff',
keywords=['json', 'diff', 'diffing', 'difference', 'patch', 'delta', 'dict', 'LCS'],
classifiers=[
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
],
entry_points={
'console_scripts': [
'jsondiff=jsondiff.cli:main_deprecated',
'jdiff=jsondiff.cli:main'
]
}
)
|
import os
import re
from setuptools import setup, find_packages
with open(os.path.join(os.path.dirname(__file__), 'jsondiff', '__init__.py')) as f:
version = re.compile(r".*__version__ = '(.*?)'", re.S).match(f.read()).group(1)
setup(
name='jsondiff',
packages=find_packages(exclude=['tests']),
version=version,
description='Diff JSON and JSON-like structures in Python',
author='Zoomer Analytics LLC',
author_email='eric.reynolds@zoomeranalytics.com',
url='https://github.com/ZoomerAnalytics/jsondiff',
keywords=['json', 'diff', 'diffing', 'difference', 'patch', 'delta', 'dict', 'LCS'],
classifiers=[
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
],
entry_points={
'console_scripts': [
'jdiff=jsondiff.cli:main'
]
}
)
|
Remove deprecated jsondiff entry point.
|
Remove deprecated jsondiff entry point.
|
Python
|
mit
|
ZoomerAnalytics/jsondiff
|
import os
import re
from setuptools import setup, find_packages
with open(os.path.join(os.path.dirname(__file__), 'jsondiff', '__init__.py')) as f:
version = re.compile(r".*__version__ = '(.*?)'", re.S).match(f.read()).group(1)
setup(
name='jsondiff',
packages=find_packages(exclude=['tests']),
version=version,
description='Diff JSON and JSON-like structures in Python',
author='Zoomer Analytics LLC',
author_email='eric.reynolds@zoomeranalytics.com',
url='https://github.com/ZoomerAnalytics/jsondiff',
keywords=['json', 'diff', 'diffing', 'difference', 'patch', 'delta', 'dict', 'LCS'],
classifiers=[
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
],
entry_points={
'console_scripts': [
'jsondiff=jsondiff.cli:main_deprecated',
'jdiff=jsondiff.cli:main'
]
}
)
Remove deprecated jsondiff entry point.
|
import os
import re
from setuptools import setup, find_packages
with open(os.path.join(os.path.dirname(__file__), 'jsondiff', '__init__.py')) as f:
version = re.compile(r".*__version__ = '(.*?)'", re.S).match(f.read()).group(1)
setup(
name='jsondiff',
packages=find_packages(exclude=['tests']),
version=version,
description='Diff JSON and JSON-like structures in Python',
author='Zoomer Analytics LLC',
author_email='eric.reynolds@zoomeranalytics.com',
url='https://github.com/ZoomerAnalytics/jsondiff',
keywords=['json', 'diff', 'diffing', 'difference', 'patch', 'delta', 'dict', 'LCS'],
classifiers=[
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
],
entry_points={
'console_scripts': [
'jdiff=jsondiff.cli:main'
]
}
)
|
<commit_before>import os
import re
from setuptools import setup, find_packages
with open(os.path.join(os.path.dirname(__file__), 'jsondiff', '__init__.py')) as f:
version = re.compile(r".*__version__ = '(.*?)'", re.S).match(f.read()).group(1)
setup(
name='jsondiff',
packages=find_packages(exclude=['tests']),
version=version,
description='Diff JSON and JSON-like structures in Python',
author='Zoomer Analytics LLC',
author_email='eric.reynolds@zoomeranalytics.com',
url='https://github.com/ZoomerAnalytics/jsondiff',
keywords=['json', 'diff', 'diffing', 'difference', 'patch', 'delta', 'dict', 'LCS'],
classifiers=[
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
],
entry_points={
'console_scripts': [
'jsondiff=jsondiff.cli:main_deprecated',
'jdiff=jsondiff.cli:main'
]
}
)
<commit_msg>Remove deprecated jsondiff entry point.<commit_after>
|
import os
import re
from setuptools import setup, find_packages
with open(os.path.join(os.path.dirname(__file__), 'jsondiff', '__init__.py')) as f:
version = re.compile(r".*__version__ = '(.*?)'", re.S).match(f.read()).group(1)
setup(
name='jsondiff',
packages=find_packages(exclude=['tests']),
version=version,
description='Diff JSON and JSON-like structures in Python',
author='Zoomer Analytics LLC',
author_email='eric.reynolds@zoomeranalytics.com',
url='https://github.com/ZoomerAnalytics/jsondiff',
keywords=['json', 'diff', 'diffing', 'difference', 'patch', 'delta', 'dict', 'LCS'],
classifiers=[
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
],
entry_points={
'console_scripts': [
'jdiff=jsondiff.cli:main'
]
}
)
|
import os
import re
from setuptools import setup, find_packages
with open(os.path.join(os.path.dirname(__file__), 'jsondiff', '__init__.py')) as f:
version = re.compile(r".*__version__ = '(.*?)'", re.S).match(f.read()).group(1)
setup(
name='jsondiff',
packages=find_packages(exclude=['tests']),
version=version,
description='Diff JSON and JSON-like structures in Python',
author='Zoomer Analytics LLC',
author_email='eric.reynolds@zoomeranalytics.com',
url='https://github.com/ZoomerAnalytics/jsondiff',
keywords=['json', 'diff', 'diffing', 'difference', 'patch', 'delta', 'dict', 'LCS'],
classifiers=[
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
],
entry_points={
'console_scripts': [
'jsondiff=jsondiff.cli:main_deprecated',
'jdiff=jsondiff.cli:main'
]
}
)
Remove deprecated jsondiff entry point.import os
import re
from setuptools import setup, find_packages
with open(os.path.join(os.path.dirname(__file__), 'jsondiff', '__init__.py')) as f:
version = re.compile(r".*__version__ = '(.*?)'", re.S).match(f.read()).group(1)
setup(
name='jsondiff',
packages=find_packages(exclude=['tests']),
version=version,
description='Diff JSON and JSON-like structures in Python',
author='Zoomer Analytics LLC',
author_email='eric.reynolds@zoomeranalytics.com',
url='https://github.com/ZoomerAnalytics/jsondiff',
keywords=['json', 'diff', 'diffing', 'difference', 'patch', 'delta', 'dict', 'LCS'],
classifiers=[
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
],
entry_points={
'console_scripts': [
'jdiff=jsondiff.cli:main'
]
}
)
|
<commit_before>import os
import re
from setuptools import setup, find_packages
with open(os.path.join(os.path.dirname(__file__), 'jsondiff', '__init__.py')) as f:
version = re.compile(r".*__version__ = '(.*?)'", re.S).match(f.read()).group(1)
setup(
name='jsondiff',
packages=find_packages(exclude=['tests']),
version=version,
description='Diff JSON and JSON-like structures in Python',
author='Zoomer Analytics LLC',
author_email='eric.reynolds@zoomeranalytics.com',
url='https://github.com/ZoomerAnalytics/jsondiff',
keywords=['json', 'diff', 'diffing', 'difference', 'patch', 'delta', 'dict', 'LCS'],
classifiers=[
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
],
entry_points={
'console_scripts': [
'jsondiff=jsondiff.cli:main_deprecated',
'jdiff=jsondiff.cli:main'
]
}
)
<commit_msg>Remove deprecated jsondiff entry point.<commit_after>import os
import re
from setuptools import setup, find_packages
with open(os.path.join(os.path.dirname(__file__), 'jsondiff', '__init__.py')) as f:
version = re.compile(r".*__version__ = '(.*?)'", re.S).match(f.read()).group(1)
setup(
name='jsondiff',
packages=find_packages(exclude=['tests']),
version=version,
description='Diff JSON and JSON-like structures in Python',
author='Zoomer Analytics LLC',
author_email='eric.reynolds@zoomeranalytics.com',
url='https://github.com/ZoomerAnalytics/jsondiff',
keywords=['json', 'diff', 'diffing', 'difference', 'patch', 'delta', 'dict', 'LCS'],
classifiers=[
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
],
entry_points={
'console_scripts': [
'jdiff=jsondiff.cli:main'
]
}
)
|
7a4f8b1456183d48f508086887d7bb79a1f24dff
|
setup.py
|
setup.py
|
import os
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(name='windpowerlib',
version='0.1.2dev',
description='Creating time series of wind power plants.',
url='http://github.com/wind-python/windpowerlib',
author='oemof developer group',
author_email='windpowerlib@rl-institut.de',
license=None,
packages=['windpowerlib'],
package_data={
'windpowerlib': [os.path.join('data', '*.csv')]},
long_description=read('README.rst'),
zip_safe=False,
install_requires=['numpy <= 1.15.4', # remove after PyTables release 3.4.5
'pandas >= 0.19.1',
'requests',
'tables']) # PyTables needed for pandas.HDFStore
|
import os
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(name='windpowerlib',
version='0.1.2dev',
description='Creating time series of wind power plants.',
url='http://github.com/wind-python/windpowerlib',
author='oemof developer group',
author_email='windpowerlib@rl-institut.de',
license=None,
packages=['windpowerlib'],
package_data={
'windpowerlib': [os.path.join('data', '*.csv')]},
long_description=read('README.rst'),
zip_safe=False,
install_requires=['pandas >= 0.19.1',
'requests'])
|
Remove packages. tables not needed anymore, numpy installed with pandas
|
Remove packages. tables not needed anymore, numpy installed with pandas
|
Python
|
mit
|
wind-python/windpowerlib
|
import os
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(name='windpowerlib',
version='0.1.2dev',
description='Creating time series of wind power plants.',
url='http://github.com/wind-python/windpowerlib',
author='oemof developer group',
author_email='windpowerlib@rl-institut.de',
license=None,
packages=['windpowerlib'],
package_data={
'windpowerlib': [os.path.join('data', '*.csv')]},
long_description=read('README.rst'),
zip_safe=False,
install_requires=['numpy <= 1.15.4', # remove after PyTables release 3.4.5
'pandas >= 0.19.1',
'requests',
'tables']) # PyTables needed for pandas.HDFStore
Remove packages. tables not needed anymore, numpy installed with pandas
|
import os
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(name='windpowerlib',
version='0.1.2dev',
description='Creating time series of wind power plants.',
url='http://github.com/wind-python/windpowerlib',
author='oemof developer group',
author_email='windpowerlib@rl-institut.de',
license=None,
packages=['windpowerlib'],
package_data={
'windpowerlib': [os.path.join('data', '*.csv')]},
long_description=read('README.rst'),
zip_safe=False,
install_requires=['pandas >= 0.19.1',
'requests'])
|
<commit_before>import os
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(name='windpowerlib',
version='0.1.2dev',
description='Creating time series of wind power plants.',
url='http://github.com/wind-python/windpowerlib',
author='oemof developer group',
author_email='windpowerlib@rl-institut.de',
license=None,
packages=['windpowerlib'],
package_data={
'windpowerlib': [os.path.join('data', '*.csv')]},
long_description=read('README.rst'),
zip_safe=False,
install_requires=['numpy <= 1.15.4', # remove after PyTables release 3.4.5
'pandas >= 0.19.1',
'requests',
'tables']) # PyTables needed for pandas.HDFStore
<commit_msg>Remove packages. tables not needed anymore, numpy installed with pandas<commit_after>
|
import os
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(name='windpowerlib',
version='0.1.2dev',
description='Creating time series of wind power plants.',
url='http://github.com/wind-python/windpowerlib',
author='oemof developer group',
author_email='windpowerlib@rl-institut.de',
license=None,
packages=['windpowerlib'],
package_data={
'windpowerlib': [os.path.join('data', '*.csv')]},
long_description=read('README.rst'),
zip_safe=False,
install_requires=['pandas >= 0.19.1',
'requests'])
|
import os
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(name='windpowerlib',
version='0.1.2dev',
description='Creating time series of wind power plants.',
url='http://github.com/wind-python/windpowerlib',
author='oemof developer group',
author_email='windpowerlib@rl-institut.de',
license=None,
packages=['windpowerlib'],
package_data={
'windpowerlib': [os.path.join('data', '*.csv')]},
long_description=read('README.rst'),
zip_safe=False,
install_requires=['numpy <= 1.15.4', # remove after PyTables release 3.4.5
'pandas >= 0.19.1',
'requests',
'tables']) # PyTables needed for pandas.HDFStore
Remove packages. tables not needed anymore, numpy installed with pandasimport os
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(name='windpowerlib',
version='0.1.2dev',
description='Creating time series of wind power plants.',
url='http://github.com/wind-python/windpowerlib',
author='oemof developer group',
author_email='windpowerlib@rl-institut.de',
license=None,
packages=['windpowerlib'],
package_data={
'windpowerlib': [os.path.join('data', '*.csv')]},
long_description=read('README.rst'),
zip_safe=False,
install_requires=['pandas >= 0.19.1',
'requests'])
|
<commit_before>import os
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(name='windpowerlib',
version='0.1.2dev',
description='Creating time series of wind power plants.',
url='http://github.com/wind-python/windpowerlib',
author='oemof developer group',
author_email='windpowerlib@rl-institut.de',
license=None,
packages=['windpowerlib'],
package_data={
'windpowerlib': [os.path.join('data', '*.csv')]},
long_description=read('README.rst'),
zip_safe=False,
install_requires=['numpy <= 1.15.4', # remove after PyTables release 3.4.5
'pandas >= 0.19.1',
'requests',
'tables']) # PyTables needed for pandas.HDFStore
<commit_msg>Remove packages. tables not needed anymore, numpy installed with pandas<commit_after>import os
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(name='windpowerlib',
version='0.1.2dev',
description='Creating time series of wind power plants.',
url='http://github.com/wind-python/windpowerlib',
author='oemof developer group',
author_email='windpowerlib@rl-institut.de',
license=None,
packages=['windpowerlib'],
package_data={
'windpowerlib': [os.path.join('data', '*.csv')]},
long_description=read('README.rst'),
zip_safe=False,
install_requires=['pandas >= 0.19.1',
'requests'])
|
1f484b5001e53955a85bed2a8ea5da3ed3fde139
|
setup.py
|
setup.py
|
import setuptools
setuptools.setup(name='pytest-cov',
version='1.7.0',
description='py.test plugin for coverage reporting with '
'support for both centralised and distributed testing, '
'including subprocesses and multiprocessing',
long_description=open('README.rst').read().strip(),
author='Marc Schlaich',
author_email='marc.schlaich@gmail.com',
url='https://github.com/schlamar/pytest-cov',
py_modules=['pytest_cov'],
install_requires=['pytest>=2.5.2',
'cov-core>=1.12'],
entry_points={'pytest11': ['pytest_cov = pytest_cov']},
license='MIT License',
zip_safe=False,
keywords='py.test pytest cover coverage distributed parallel',
classifiers=['Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.4',
'Programming Language :: Python :: 2.5',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.0',
'Programming Language :: Python :: 3.1',
'Topic :: Software Development :: Testing'])
|
import setuptools
setuptools.setup(name='pytest-cov',
version='1.7.0',
description='py.test plugin for coverage reporting with '
'support for both centralised and distributed testing, '
'including subprocesses and multiprocessing',
long_description=open('README.rst').read().strip(),
author='Marc Schlaich',
author_email='marc.schlaich@gmail.com',
url='https://github.com/schlamar/pytest-cov',
py_modules=['pytest_cov'],
install_requires=['pytest>=2.5.2',
'cov-core>=1.13.0'],
entry_points={'pytest11': ['pytest_cov = pytest_cov']},
license='MIT License',
zip_safe=False,
keywords='py.test pytest cover coverage distributed parallel',
classifiers=['Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.4',
'Programming Language :: Python :: 2.5',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.0',
'Programming Language :: Python :: 3.1',
'Topic :: Software Development :: Testing'])
|
Set cov-core dependency to 1.13.0
|
Set cov-core dependency to 1.13.0
|
Python
|
mit
|
ionelmc/pytest-cover,pytest-dev/pytest-cov,opoplawski/pytest-cov,schlamar/pytest-cov,moreati/pytest-cov
|
import setuptools
setuptools.setup(name='pytest-cov',
version='1.7.0',
description='py.test plugin for coverage reporting with '
'support for both centralised and distributed testing, '
'including subprocesses and multiprocessing',
long_description=open('README.rst').read().strip(),
author='Marc Schlaich',
author_email='marc.schlaich@gmail.com',
url='https://github.com/schlamar/pytest-cov',
py_modules=['pytest_cov'],
install_requires=['pytest>=2.5.2',
'cov-core>=1.12'],
entry_points={'pytest11': ['pytest_cov = pytest_cov']},
license='MIT License',
zip_safe=False,
keywords='py.test pytest cover coverage distributed parallel',
classifiers=['Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.4',
'Programming Language :: Python :: 2.5',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.0',
'Programming Language :: Python :: 3.1',
'Topic :: Software Development :: Testing'])
Set cov-core dependency to 1.13.0
|
import setuptools
setuptools.setup(name='pytest-cov',
version='1.7.0',
description='py.test plugin for coverage reporting with '
'support for both centralised and distributed testing, '
'including subprocesses and multiprocessing',
long_description=open('README.rst').read().strip(),
author='Marc Schlaich',
author_email='marc.schlaich@gmail.com',
url='https://github.com/schlamar/pytest-cov',
py_modules=['pytest_cov'],
install_requires=['pytest>=2.5.2',
'cov-core>=1.13.0'],
entry_points={'pytest11': ['pytest_cov = pytest_cov']},
license='MIT License',
zip_safe=False,
keywords='py.test pytest cover coverage distributed parallel',
classifiers=['Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.4',
'Programming Language :: Python :: 2.5',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.0',
'Programming Language :: Python :: 3.1',
'Topic :: Software Development :: Testing'])
|
<commit_before>import setuptools
setuptools.setup(name='pytest-cov',
version='1.7.0',
description='py.test plugin for coverage reporting with '
'support for both centralised and distributed testing, '
'including subprocesses and multiprocessing',
long_description=open('README.rst').read().strip(),
author='Marc Schlaich',
author_email='marc.schlaich@gmail.com',
url='https://github.com/schlamar/pytest-cov',
py_modules=['pytest_cov'],
install_requires=['pytest>=2.5.2',
'cov-core>=1.12'],
entry_points={'pytest11': ['pytest_cov = pytest_cov']},
license='MIT License',
zip_safe=False,
keywords='py.test pytest cover coverage distributed parallel',
classifiers=['Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.4',
'Programming Language :: Python :: 2.5',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.0',
'Programming Language :: Python :: 3.1',
'Topic :: Software Development :: Testing'])
<commit_msg>Set cov-core dependency to 1.13.0<commit_after>
|
import setuptools
setuptools.setup(name='pytest-cov',
version='1.7.0',
description='py.test plugin for coverage reporting with '
'support for both centralised and distributed testing, '
'including subprocesses and multiprocessing',
long_description=open('README.rst').read().strip(),
author='Marc Schlaich',
author_email='marc.schlaich@gmail.com',
url='https://github.com/schlamar/pytest-cov',
py_modules=['pytest_cov'],
install_requires=['pytest>=2.5.2',
'cov-core>=1.13.0'],
entry_points={'pytest11': ['pytest_cov = pytest_cov']},
license='MIT License',
zip_safe=False,
keywords='py.test pytest cover coverage distributed parallel',
classifiers=['Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.4',
'Programming Language :: Python :: 2.5',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.0',
'Programming Language :: Python :: 3.1',
'Topic :: Software Development :: Testing'])
|
import setuptools
setuptools.setup(name='pytest-cov',
version='1.7.0',
description='py.test plugin for coverage reporting with '
'support for both centralised and distributed testing, '
'including subprocesses and multiprocessing',
long_description=open('README.rst').read().strip(),
author='Marc Schlaich',
author_email='marc.schlaich@gmail.com',
url='https://github.com/schlamar/pytest-cov',
py_modules=['pytest_cov'],
install_requires=['pytest>=2.5.2',
'cov-core>=1.12'],
entry_points={'pytest11': ['pytest_cov = pytest_cov']},
license='MIT License',
zip_safe=False,
keywords='py.test pytest cover coverage distributed parallel',
classifiers=['Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.4',
'Programming Language :: Python :: 2.5',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.0',
'Programming Language :: Python :: 3.1',
'Topic :: Software Development :: Testing'])
Set cov-core dependency to 1.13.0import setuptools
setuptools.setup(name='pytest-cov',
version='1.7.0',
description='py.test plugin for coverage reporting with '
'support for both centralised and distributed testing, '
'including subprocesses and multiprocessing',
long_description=open('README.rst').read().strip(),
author='Marc Schlaich',
author_email='marc.schlaich@gmail.com',
url='https://github.com/schlamar/pytest-cov',
py_modules=['pytest_cov'],
install_requires=['pytest>=2.5.2',
'cov-core>=1.13.0'],
entry_points={'pytest11': ['pytest_cov = pytest_cov']},
license='MIT License',
zip_safe=False,
keywords='py.test pytest cover coverage distributed parallel',
classifiers=['Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.4',
'Programming Language :: Python :: 2.5',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.0',
'Programming Language :: Python :: 3.1',
'Topic :: Software Development :: Testing'])
|
<commit_before>import setuptools
setuptools.setup(name='pytest-cov',
version='1.7.0',
description='py.test plugin for coverage reporting with '
'support for both centralised and distributed testing, '
'including subprocesses and multiprocessing',
long_description=open('README.rst').read().strip(),
author='Marc Schlaich',
author_email='marc.schlaich@gmail.com',
url='https://github.com/schlamar/pytest-cov',
py_modules=['pytest_cov'],
install_requires=['pytest>=2.5.2',
'cov-core>=1.12'],
entry_points={'pytest11': ['pytest_cov = pytest_cov']},
license='MIT License',
zip_safe=False,
keywords='py.test pytest cover coverage distributed parallel',
classifiers=['Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.4',
'Programming Language :: Python :: 2.5',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.0',
'Programming Language :: Python :: 3.1',
'Topic :: Software Development :: Testing'])
<commit_msg>Set cov-core dependency to 1.13.0<commit_after>import setuptools
setuptools.setup(name='pytest-cov',
version='1.7.0',
description='py.test plugin for coverage reporting with '
'support for both centralised and distributed testing, '
'including subprocesses and multiprocessing',
long_description=open('README.rst').read().strip(),
author='Marc Schlaich',
author_email='marc.schlaich@gmail.com',
url='https://github.com/schlamar/pytest-cov',
py_modules=['pytest_cov'],
install_requires=['pytest>=2.5.2',
'cov-core>=1.13.0'],
entry_points={'pytest11': ['pytest_cov = pytest_cov']},
license='MIT License',
zip_safe=False,
keywords='py.test pytest cover coverage distributed parallel',
classifiers=['Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.4',
'Programming Language :: Python :: 2.5',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.0',
'Programming Language :: Python :: 3.1',
'Topic :: Software Development :: Testing'])
|
5d9032fc79466880c28b4472f152d517c027ab40
|
setup.py
|
setup.py
|
#!/usr/bin/env python
from distutils.core import setup
import fedex
LONG_DESCRIPTION = open('README.rst').read()
CLASSIFIERS = [
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules'
]
KEYWORDS = 'fedex soap suds wrapper rate location ship service'
setup(name='fedex',
version=fedex.VERSION,
description='Fedex Web Services API wrapper.',
long_description=LONG_DESCRIPTION,
author='Greg Taylor',
author_email='gtaylor@gc-taylor.com',
maintainer='Python Fedex Developers',
url='https://github.com/python-fedex-devs/python-fedex',
download_url='http://pypi.python.org/pypi/fedex/',
packages=['fedex', 'fedex.services', 'fedex.printers'],
package_dir={'fedex': 'fedex'},
package_data={'fedex': ['wsdl/*.wsdl', 'wsdl/test_server_wsdl/*.wsdl']},
platforms=['Platform Independent'],
license='BSD',
classifiers=CLASSIFIERS,
keywords=KEYWORDS,
requires=['suds'],
install_requires=['suds-jurko'],
)
|
#!/usr/bin/env python
from distutils.core import setup
import fedex
LONG_DESCRIPTION = open('README.rst').read()
CLASSIFIERS = [
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules'
]
KEYWORDS = 'fedex soap suds wrapper rate location ship service'
setup(name='fedex',
version=fedex.VERSION,
description='Fedex Web Services API wrapper.',
long_description=LONG_DESCRIPTION,
author='Greg Taylor',
author_email='gtaylor@gc-taylor.com',
maintainer='Python Fedex Developers',
url='https://github.com/python-fedex-devs/python-fedex',
download_url='http://pypi.python.org/pypi/fedex/',
packages=['fedex', 'fedex.services', 'fedex.printers'],
package_dir={'fedex': 'fedex'},
package_data={'fedex': ['wsdl/*.wsdl', 'wsdl/test_server_wsdl/*.wsdl', 'tools/*.py']},
platforms=['Platform Independent'],
license='BSD',
classifiers=CLASSIFIERS,
keywords=KEYWORDS,
requires=['suds'],
install_requires=['suds-jurko'],
)
|
Add tools to package data
|
Add tools to package data
|
Python
|
bsd-3-clause
|
gtaylor/python-fedex,python-fedex-devs/python-fedex,gtaylor/python-fedex,python-fedex-devs/python-fedex,python-fedex-devs/python-fedex,gtaylor/python-fedex,python-fedex-devs/python-fedex,gtaylor/python-fedex
|
#!/usr/bin/env python
from distutils.core import setup
import fedex
LONG_DESCRIPTION = open('README.rst').read()
CLASSIFIERS = [
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules'
]
KEYWORDS = 'fedex soap suds wrapper rate location ship service'
setup(name='fedex',
version=fedex.VERSION,
description='Fedex Web Services API wrapper.',
long_description=LONG_DESCRIPTION,
author='Greg Taylor',
author_email='gtaylor@gc-taylor.com',
maintainer='Python Fedex Developers',
url='https://github.com/python-fedex-devs/python-fedex',
download_url='http://pypi.python.org/pypi/fedex/',
packages=['fedex', 'fedex.services', 'fedex.printers'],
package_dir={'fedex': 'fedex'},
package_data={'fedex': ['wsdl/*.wsdl', 'wsdl/test_server_wsdl/*.wsdl']},
platforms=['Platform Independent'],
license='BSD',
classifiers=CLASSIFIERS,
keywords=KEYWORDS,
requires=['suds'],
install_requires=['suds-jurko'],
)
Add tools to package data
|
#!/usr/bin/env python
from distutils.core import setup
import fedex
LONG_DESCRIPTION = open('README.rst').read()
CLASSIFIERS = [
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules'
]
KEYWORDS = 'fedex soap suds wrapper rate location ship service'
setup(name='fedex',
version=fedex.VERSION,
description='Fedex Web Services API wrapper.',
long_description=LONG_DESCRIPTION,
author='Greg Taylor',
author_email='gtaylor@gc-taylor.com',
maintainer='Python Fedex Developers',
url='https://github.com/python-fedex-devs/python-fedex',
download_url='http://pypi.python.org/pypi/fedex/',
packages=['fedex', 'fedex.services', 'fedex.printers'],
package_dir={'fedex': 'fedex'},
package_data={'fedex': ['wsdl/*.wsdl', 'wsdl/test_server_wsdl/*.wsdl', 'tools/*.py']},
platforms=['Platform Independent'],
license='BSD',
classifiers=CLASSIFIERS,
keywords=KEYWORDS,
requires=['suds'],
install_requires=['suds-jurko'],
)
|
<commit_before>#!/usr/bin/env python
from distutils.core import setup
import fedex
LONG_DESCRIPTION = open('README.rst').read()
CLASSIFIERS = [
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules'
]
KEYWORDS = 'fedex soap suds wrapper rate location ship service'
setup(name='fedex',
version=fedex.VERSION,
description='Fedex Web Services API wrapper.',
long_description=LONG_DESCRIPTION,
author='Greg Taylor',
author_email='gtaylor@gc-taylor.com',
maintainer='Python Fedex Developers',
url='https://github.com/python-fedex-devs/python-fedex',
download_url='http://pypi.python.org/pypi/fedex/',
packages=['fedex', 'fedex.services', 'fedex.printers'],
package_dir={'fedex': 'fedex'},
package_data={'fedex': ['wsdl/*.wsdl', 'wsdl/test_server_wsdl/*.wsdl']},
platforms=['Platform Independent'],
license='BSD',
classifiers=CLASSIFIERS,
keywords=KEYWORDS,
requires=['suds'],
install_requires=['suds-jurko'],
)
<commit_msg>Add tools to package data<commit_after>
|
#!/usr/bin/env python
from distutils.core import setup
import fedex
LONG_DESCRIPTION = open('README.rst').read()
CLASSIFIERS = [
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules'
]
KEYWORDS = 'fedex soap suds wrapper rate location ship service'
setup(name='fedex',
version=fedex.VERSION,
description='Fedex Web Services API wrapper.',
long_description=LONG_DESCRIPTION,
author='Greg Taylor',
author_email='gtaylor@gc-taylor.com',
maintainer='Python Fedex Developers',
url='https://github.com/python-fedex-devs/python-fedex',
download_url='http://pypi.python.org/pypi/fedex/',
packages=['fedex', 'fedex.services', 'fedex.printers'],
package_dir={'fedex': 'fedex'},
package_data={'fedex': ['wsdl/*.wsdl', 'wsdl/test_server_wsdl/*.wsdl', 'tools/*.py']},
platforms=['Platform Independent'],
license='BSD',
classifiers=CLASSIFIERS,
keywords=KEYWORDS,
requires=['suds'],
install_requires=['suds-jurko'],
)
|
#!/usr/bin/env python
from distutils.core import setup
import fedex
LONG_DESCRIPTION = open('README.rst').read()
CLASSIFIERS = [
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules'
]
KEYWORDS = 'fedex soap suds wrapper rate location ship service'
setup(name='fedex',
version=fedex.VERSION,
description='Fedex Web Services API wrapper.',
long_description=LONG_DESCRIPTION,
author='Greg Taylor',
author_email='gtaylor@gc-taylor.com',
maintainer='Python Fedex Developers',
url='https://github.com/python-fedex-devs/python-fedex',
download_url='http://pypi.python.org/pypi/fedex/',
packages=['fedex', 'fedex.services', 'fedex.printers'],
package_dir={'fedex': 'fedex'},
package_data={'fedex': ['wsdl/*.wsdl', 'wsdl/test_server_wsdl/*.wsdl']},
platforms=['Platform Independent'],
license='BSD',
classifiers=CLASSIFIERS,
keywords=KEYWORDS,
requires=['suds'],
install_requires=['suds-jurko'],
)
Add tools to package data#!/usr/bin/env python
from distutils.core import setup
import fedex
LONG_DESCRIPTION = open('README.rst').read()
CLASSIFIERS = [
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules'
]
KEYWORDS = 'fedex soap suds wrapper rate location ship service'
setup(name='fedex',
version=fedex.VERSION,
description='Fedex Web Services API wrapper.',
long_description=LONG_DESCRIPTION,
author='Greg Taylor',
author_email='gtaylor@gc-taylor.com',
maintainer='Python Fedex Developers',
url='https://github.com/python-fedex-devs/python-fedex',
download_url='http://pypi.python.org/pypi/fedex/',
packages=['fedex', 'fedex.services', 'fedex.printers'],
package_dir={'fedex': 'fedex'},
package_data={'fedex': ['wsdl/*.wsdl', 'wsdl/test_server_wsdl/*.wsdl', 'tools/*.py']},
platforms=['Platform Independent'],
license='BSD',
classifiers=CLASSIFIERS,
keywords=KEYWORDS,
requires=['suds'],
install_requires=['suds-jurko'],
)
|
<commit_before>#!/usr/bin/env python
from distutils.core import setup
import fedex
LONG_DESCRIPTION = open('README.rst').read()
CLASSIFIERS = [
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules'
]
KEYWORDS = 'fedex soap suds wrapper rate location ship service'
setup(name='fedex',
version=fedex.VERSION,
description='Fedex Web Services API wrapper.',
long_description=LONG_DESCRIPTION,
author='Greg Taylor',
author_email='gtaylor@gc-taylor.com',
maintainer='Python Fedex Developers',
url='https://github.com/python-fedex-devs/python-fedex',
download_url='http://pypi.python.org/pypi/fedex/',
packages=['fedex', 'fedex.services', 'fedex.printers'],
package_dir={'fedex': 'fedex'},
package_data={'fedex': ['wsdl/*.wsdl', 'wsdl/test_server_wsdl/*.wsdl']},
platforms=['Platform Independent'],
license='BSD',
classifiers=CLASSIFIERS,
keywords=KEYWORDS,
requires=['suds'],
install_requires=['suds-jurko'],
)
<commit_msg>Add tools to package data<commit_after>#!/usr/bin/env python
from distutils.core import setup
import fedex
LONG_DESCRIPTION = open('README.rst').read()
CLASSIFIERS = [
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules'
]
KEYWORDS = 'fedex soap suds wrapper rate location ship service'
setup(name='fedex',
version=fedex.VERSION,
description='Fedex Web Services API wrapper.',
long_description=LONG_DESCRIPTION,
author='Greg Taylor',
author_email='gtaylor@gc-taylor.com',
maintainer='Python Fedex Developers',
url='https://github.com/python-fedex-devs/python-fedex',
download_url='http://pypi.python.org/pypi/fedex/',
packages=['fedex', 'fedex.services', 'fedex.printers'],
package_dir={'fedex': 'fedex'},
package_data={'fedex': ['wsdl/*.wsdl', 'wsdl/test_server_wsdl/*.wsdl', 'tools/*.py']},
platforms=['Platform Independent'],
license='BSD',
classifiers=CLASSIFIERS,
keywords=KEYWORDS,
requires=['suds'],
install_requires=['suds-jurko'],
)
|
5af8feb0372ef6bb33b4fd686a30da95cabb6840
|
setup.py
|
setup.py
|
#! /usr/bin/env python
import sys
from setuptools import setup
if 'upload' in sys.argv:
if '--sign' not in sys.argv and sys.argv[1:] != ['upload', '--help']:
raise SystemExit('Refusing to upload unsigned packages.')
PACKAGENAME = 'preconditions'
setup(
name=PACKAGENAME,
description='Flexible, concise preconditions.',
url='https://github.com/nejucomo/{0}'.format(PACKAGENAME),
license='MIT',
version='0.1.dev0',
author='Nathan Wilcox',
author_email='nejucomo@gmail.com',
py_modules=[PACKAGENAME],
test_suite='tests',
)
|
#! /usr/bin/env python
import sys
from setuptools import setup
if 'upload' in sys.argv:
if '--sign' not in sys.argv and sys.argv[1:] != ['upload', '--help']:
raise SystemExit('Refusing to upload unsigned packages.')
PACKAGENAME = 'preconditions'
setup(
name=PACKAGENAME,
description='Flexible, concise preconditions.',
url='https://github.com/nejucomo/{0}'.format(PACKAGENAME),
license='MIT',
version='0.1',
author='Nathan Wilcox',
author_email='nejucomo@gmail.com',
py_modules=[PACKAGENAME],
test_suite='tests',
)
|
Bump the version to 0.1.
|
Bump the version to 0.1.
|
Python
|
mit
|
nejucomo/preconditions
|
#! /usr/bin/env python
import sys
from setuptools import setup
if 'upload' in sys.argv:
if '--sign' not in sys.argv and sys.argv[1:] != ['upload', '--help']:
raise SystemExit('Refusing to upload unsigned packages.')
PACKAGENAME = 'preconditions'
setup(
name=PACKAGENAME,
description='Flexible, concise preconditions.',
url='https://github.com/nejucomo/{0}'.format(PACKAGENAME),
license='MIT',
version='0.1.dev0',
author='Nathan Wilcox',
author_email='nejucomo@gmail.com',
py_modules=[PACKAGENAME],
test_suite='tests',
)
Bump the version to 0.1.
|
#! /usr/bin/env python
import sys
from setuptools import setup
if 'upload' in sys.argv:
if '--sign' not in sys.argv and sys.argv[1:] != ['upload', '--help']:
raise SystemExit('Refusing to upload unsigned packages.')
PACKAGENAME = 'preconditions'
setup(
name=PACKAGENAME,
description='Flexible, concise preconditions.',
url='https://github.com/nejucomo/{0}'.format(PACKAGENAME),
license='MIT',
version='0.1',
author='Nathan Wilcox',
author_email='nejucomo@gmail.com',
py_modules=[PACKAGENAME],
test_suite='tests',
)
|
<commit_before>#! /usr/bin/env python
import sys
from setuptools import setup
if 'upload' in sys.argv:
if '--sign' not in sys.argv and sys.argv[1:] != ['upload', '--help']:
raise SystemExit('Refusing to upload unsigned packages.')
PACKAGENAME = 'preconditions'
setup(
name=PACKAGENAME,
description='Flexible, concise preconditions.',
url='https://github.com/nejucomo/{0}'.format(PACKAGENAME),
license='MIT',
version='0.1.dev0',
author='Nathan Wilcox',
author_email='nejucomo@gmail.com',
py_modules=[PACKAGENAME],
test_suite='tests',
)
<commit_msg>Bump the version to 0.1.<commit_after>
|
#! /usr/bin/env python
import sys
from setuptools import setup
if 'upload' in sys.argv:
if '--sign' not in sys.argv and sys.argv[1:] != ['upload', '--help']:
raise SystemExit('Refusing to upload unsigned packages.')
PACKAGENAME = 'preconditions'
setup(
name=PACKAGENAME,
description='Flexible, concise preconditions.',
url='https://github.com/nejucomo/{0}'.format(PACKAGENAME),
license='MIT',
version='0.1',
author='Nathan Wilcox',
author_email='nejucomo@gmail.com',
py_modules=[PACKAGENAME],
test_suite='tests',
)
|
#! /usr/bin/env python
import sys
from setuptools import setup
if 'upload' in sys.argv:
if '--sign' not in sys.argv and sys.argv[1:] != ['upload', '--help']:
raise SystemExit('Refusing to upload unsigned packages.')
PACKAGENAME = 'preconditions'
setup(
name=PACKAGENAME,
description='Flexible, concise preconditions.',
url='https://github.com/nejucomo/{0}'.format(PACKAGENAME),
license='MIT',
version='0.1.dev0',
author='Nathan Wilcox',
author_email='nejucomo@gmail.com',
py_modules=[PACKAGENAME],
test_suite='tests',
)
Bump the version to 0.1.#! /usr/bin/env python
import sys
from setuptools import setup
if 'upload' in sys.argv:
if '--sign' not in sys.argv and sys.argv[1:] != ['upload', '--help']:
raise SystemExit('Refusing to upload unsigned packages.')
PACKAGENAME = 'preconditions'
setup(
name=PACKAGENAME,
description='Flexible, concise preconditions.',
url='https://github.com/nejucomo/{0}'.format(PACKAGENAME),
license='MIT',
version='0.1',
author='Nathan Wilcox',
author_email='nejucomo@gmail.com',
py_modules=[PACKAGENAME],
test_suite='tests',
)
|
<commit_before>#! /usr/bin/env python
import sys
from setuptools import setup
if 'upload' in sys.argv:
if '--sign' not in sys.argv and sys.argv[1:] != ['upload', '--help']:
raise SystemExit('Refusing to upload unsigned packages.')
PACKAGENAME = 'preconditions'
setup(
name=PACKAGENAME,
description='Flexible, concise preconditions.',
url='https://github.com/nejucomo/{0}'.format(PACKAGENAME),
license='MIT',
version='0.1.dev0',
author='Nathan Wilcox',
author_email='nejucomo@gmail.com',
py_modules=[PACKAGENAME],
test_suite='tests',
)
<commit_msg>Bump the version to 0.1.<commit_after>#! /usr/bin/env python
import sys
from setuptools import setup
if 'upload' in sys.argv:
if '--sign' not in sys.argv and sys.argv[1:] != ['upload', '--help']:
raise SystemExit('Refusing to upload unsigned packages.')
PACKAGENAME = 'preconditions'
setup(
name=PACKAGENAME,
description='Flexible, concise preconditions.',
url='https://github.com/nejucomo/{0}'.format(PACKAGENAME),
license='MIT',
version='0.1',
author='Nathan Wilcox',
author_email='nejucomo@gmail.com',
py_modules=[PACKAGENAME],
test_suite='tests',
)
|
95e0b154f8b612cdab3e255ee8450f7308800c3f
|
setup.py
|
setup.py
|
#! /usr/bin/env python
# coding: utf-8
from setuptools import find_packages, setup
setup(name='egoio',
author='NEXT ENERGY, Reiner Lemoine Institut gGmbH, ZNES',
author_email='ulf.p.mueller@hs-flensburg.de',
description='ego input/output repository',
version='0.4.5',
url='https://github.com/openego/ego.io',
packages=find_packages(),
license='GNU Affero General Public License v3.0',
install_requires=[
'geoalchemy2 >= 0.3.0, <= 0.4.1',
'sqlalchemy >= 1.0.11, <= 1.2.0',
'keyring >= 4.0',
'keyrings.alt',
'psycopg2'],
extras_require={
"sqlalchemy": 'postgresql'},
package_data={'tools': 'sqlacodegen_oedb.sh'}
)
|
#! /usr/bin/env python
# coding: utf-8
from setuptools import find_packages, setup
setup(name='egoio',
author='NEXT ENERGY, Reiner Lemoine Institut gGmbH, ZNES',
author_email='ulf.p.mueller@hs-flensburg.de',
description='ego input/output repository',
version='0.4.5',
url='https://github.com/openego/ego.io',
packages=find_packages(),
license='GNU Affero General Public License v3.0',
install_requires=[
'geoalchemy2 >= 0.3.0, <= 0.4.1',
'sqlalchemy >= 1.0.11, <= 1.2.0',
'keyring >= 4.0',
'keyrings.alt',
'psycopg2',
'oedialect @ https://github.com/OpenEnergyPlatform/oedialect/archive/master.zip'],
extras_require={
"sqlalchemy": 'postgresql'},
package_data={'tools': 'sqlacodegen_oedb.sh'}
)
|
Install latest oedialect version from GitHub instead from PyPi
|
Install latest oedialect version from GitHub instead from PyPi
|
Python
|
agpl-3.0
|
openego/ego.io,openego/ego.io
|
#! /usr/bin/env python
# coding: utf-8
from setuptools import find_packages, setup
setup(name='egoio',
author='NEXT ENERGY, Reiner Lemoine Institut gGmbH, ZNES',
author_email='ulf.p.mueller@hs-flensburg.de',
description='ego input/output repository',
version='0.4.5',
url='https://github.com/openego/ego.io',
packages=find_packages(),
license='GNU Affero General Public License v3.0',
install_requires=[
'geoalchemy2 >= 0.3.0, <= 0.4.1',
'sqlalchemy >= 1.0.11, <= 1.2.0',
'keyring >= 4.0',
'keyrings.alt',
'psycopg2'],
extras_require={
"sqlalchemy": 'postgresql'},
package_data={'tools': 'sqlacodegen_oedb.sh'}
)
Install latest oedialect version from GitHub instead from PyPi
|
#! /usr/bin/env python
# coding: utf-8
from setuptools import find_packages, setup
setup(name='egoio',
author='NEXT ENERGY, Reiner Lemoine Institut gGmbH, ZNES',
author_email='ulf.p.mueller@hs-flensburg.de',
description='ego input/output repository',
version='0.4.5',
url='https://github.com/openego/ego.io',
packages=find_packages(),
license='GNU Affero General Public License v3.0',
install_requires=[
'geoalchemy2 >= 0.3.0, <= 0.4.1',
'sqlalchemy >= 1.0.11, <= 1.2.0',
'keyring >= 4.0',
'keyrings.alt',
'psycopg2',
'oedialect @ https://github.com/OpenEnergyPlatform/oedialect/archive/master.zip'],
extras_require={
"sqlalchemy": 'postgresql'},
package_data={'tools': 'sqlacodegen_oedb.sh'}
)
|
<commit_before>#! /usr/bin/env python
# coding: utf-8
from setuptools import find_packages, setup
setup(name='egoio',
author='NEXT ENERGY, Reiner Lemoine Institut gGmbH, ZNES',
author_email='ulf.p.mueller@hs-flensburg.de',
description='ego input/output repository',
version='0.4.5',
url='https://github.com/openego/ego.io',
packages=find_packages(),
license='GNU Affero General Public License v3.0',
install_requires=[
'geoalchemy2 >= 0.3.0, <= 0.4.1',
'sqlalchemy >= 1.0.11, <= 1.2.0',
'keyring >= 4.0',
'keyrings.alt',
'psycopg2'],
extras_require={
"sqlalchemy": 'postgresql'},
package_data={'tools': 'sqlacodegen_oedb.sh'}
)
<commit_msg>Install latest oedialect version from GitHub instead from PyPi<commit_after>
|
#! /usr/bin/env python
# coding: utf-8
from setuptools import find_packages, setup
setup(name='egoio',
author='NEXT ENERGY, Reiner Lemoine Institut gGmbH, ZNES',
author_email='ulf.p.mueller@hs-flensburg.de',
description='ego input/output repository',
version='0.4.5',
url='https://github.com/openego/ego.io',
packages=find_packages(),
license='GNU Affero General Public License v3.0',
install_requires=[
'geoalchemy2 >= 0.3.0, <= 0.4.1',
'sqlalchemy >= 1.0.11, <= 1.2.0',
'keyring >= 4.0',
'keyrings.alt',
'psycopg2',
'oedialect @ https://github.com/OpenEnergyPlatform/oedialect/archive/master.zip'],
extras_require={
"sqlalchemy": 'postgresql'},
package_data={'tools': 'sqlacodegen_oedb.sh'}
)
|
#! /usr/bin/env python
# coding: utf-8
from setuptools import find_packages, setup
setup(name='egoio',
author='NEXT ENERGY, Reiner Lemoine Institut gGmbH, ZNES',
author_email='ulf.p.mueller@hs-flensburg.de',
description='ego input/output repository',
version='0.4.5',
url='https://github.com/openego/ego.io',
packages=find_packages(),
license='GNU Affero General Public License v3.0',
install_requires=[
'geoalchemy2 >= 0.3.0, <= 0.4.1',
'sqlalchemy >= 1.0.11, <= 1.2.0',
'keyring >= 4.0',
'keyrings.alt',
'psycopg2'],
extras_require={
"sqlalchemy": 'postgresql'},
package_data={'tools': 'sqlacodegen_oedb.sh'}
)
Install latest oedialect version from GitHub instead from PyPi#! /usr/bin/env python
# coding: utf-8
from setuptools import find_packages, setup
setup(name='egoio',
author='NEXT ENERGY, Reiner Lemoine Institut gGmbH, ZNES',
author_email='ulf.p.mueller@hs-flensburg.de',
description='ego input/output repository',
version='0.4.5',
url='https://github.com/openego/ego.io',
packages=find_packages(),
license='GNU Affero General Public License v3.0',
install_requires=[
'geoalchemy2 >= 0.3.0, <= 0.4.1',
'sqlalchemy >= 1.0.11, <= 1.2.0',
'keyring >= 4.0',
'keyrings.alt',
'psycopg2',
'oedialect @ https://github.com/OpenEnergyPlatform/oedialect/archive/master.zip'],
extras_require={
"sqlalchemy": 'postgresql'},
package_data={'tools': 'sqlacodegen_oedb.sh'}
)
|
<commit_before>#! /usr/bin/env python
# coding: utf-8
from setuptools import find_packages, setup
setup(name='egoio',
author='NEXT ENERGY, Reiner Lemoine Institut gGmbH, ZNES',
author_email='ulf.p.mueller@hs-flensburg.de',
description='ego input/output repository',
version='0.4.5',
url='https://github.com/openego/ego.io',
packages=find_packages(),
license='GNU Affero General Public License v3.0',
install_requires=[
'geoalchemy2 >= 0.3.0, <= 0.4.1',
'sqlalchemy >= 1.0.11, <= 1.2.0',
'keyring >= 4.0',
'keyrings.alt',
'psycopg2'],
extras_require={
"sqlalchemy": 'postgresql'},
package_data={'tools': 'sqlacodegen_oedb.sh'}
)
<commit_msg>Install latest oedialect version from GitHub instead from PyPi<commit_after>#! /usr/bin/env python
# coding: utf-8
from setuptools import find_packages, setup
setup(name='egoio',
author='NEXT ENERGY, Reiner Lemoine Institut gGmbH, ZNES',
author_email='ulf.p.mueller@hs-flensburg.de',
description='ego input/output repository',
version='0.4.5',
url='https://github.com/openego/ego.io',
packages=find_packages(),
license='GNU Affero General Public License v3.0',
install_requires=[
'geoalchemy2 >= 0.3.0, <= 0.4.1',
'sqlalchemy >= 1.0.11, <= 1.2.0',
'keyring >= 4.0',
'keyrings.alt',
'psycopg2',
'oedialect @ https://github.com/OpenEnergyPlatform/oedialect/archive/master.zip'],
extras_require={
"sqlalchemy": 'postgresql'},
package_data={'tools': 'sqlacodegen_oedb.sh'}
)
|
5b862e4c7ae236eb8fb476bb10eef2985c9e3bac
|
setup.py
|
setup.py
|
from setuptools import setup, find_packages
classifiers = [
'License :: OSI Approved :: BSD License',
'Intended Audience :: Developers',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Environment :: Web Environment',
'Development Status :: 4 - Beta',
]
extras_require = {'sa': ['sqlalchemy>=0.9']}
extras_require['postgres'] = ['aiopg', *extras_require['sa']]
extras_require['mysql'] = ['aiomysql', *extras_require['sa']]
setup(name='aio_manager',
use_scm_version=True,
description='Script manager for aiohttp.',
long_description=('Script manager for aiohttp.\n'
'Inspired by Flask-script. Allows to write external scripts. '),
classifiers=classifiers,
platforms=['POSIX'],
author='Roman Rader',
author_email='antigluk@gmail.com',
url='https://github.com/rrader/aio_manager',
license='BSD',
packages=find_packages(),
install_requires=['aiohttp', 'colorama'],
extras_require=extras_require,
setup_requires=['setuptools_scm'],
provides=['aio_manager'],
include_package_data=True,
test_suite='tests.test_manager')
|
from setuptools import setup, find_packages
classifiers = [
'License :: OSI Approved :: BSD License',
'Intended Audience :: Developers',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Environment :: Web Environment',
'Development Status :: 4 - Beta',
]
extras_require = {'sa': ['sqlalchemy>=0.9']}
extras_require['postgres'] = ['psycopg2>=2.5.2', *extras_require['sa']]
extras_require['mysql'] = ['PyMySQL>=0.7.5', *extras_require['sa']]
setup(name='aio_manager',
use_scm_version=True,
description='Script manager for aiohttp.',
long_description=('Script manager for aiohttp.\n'
'Inspired by Flask-script. Allows to write external scripts. '),
classifiers=classifiers,
platforms=['POSIX'],
author='Roman Rader',
author_email='antigluk@gmail.com',
url='https://github.com/rrader/aio_manager',
license='BSD',
packages=find_packages(),
install_requires=['aiohttp', 'colorama'],
extras_require=extras_require,
setup_requires=['setuptools_scm'],
provides=['aio_manager'],
include_package_data=True,
test_suite='tests.test_manager')
|
Replace extra deps with sync packages
|
Replace extra deps with sync packages
|
Python
|
bsd-3-clause
|
rrader/aio_manager
|
from setuptools import setup, find_packages
classifiers = [
'License :: OSI Approved :: BSD License',
'Intended Audience :: Developers',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Environment :: Web Environment',
'Development Status :: 4 - Beta',
]
extras_require = {'sa': ['sqlalchemy>=0.9']}
extras_require['postgres'] = ['aiopg', *extras_require['sa']]
extras_require['mysql'] = ['aiomysql', *extras_require['sa']]
setup(name='aio_manager',
use_scm_version=True,
description='Script manager for aiohttp.',
long_description=('Script manager for aiohttp.\n'
'Inspired by Flask-script. Allows to write external scripts. '),
classifiers=classifiers,
platforms=['POSIX'],
author='Roman Rader',
author_email='antigluk@gmail.com',
url='https://github.com/rrader/aio_manager',
license='BSD',
packages=find_packages(),
install_requires=['aiohttp', 'colorama'],
extras_require=extras_require,
setup_requires=['setuptools_scm'],
provides=['aio_manager'],
include_package_data=True,
test_suite='tests.test_manager')
Replace extra deps with sync packages
|
from setuptools import setup, find_packages
classifiers = [
'License :: OSI Approved :: BSD License',
'Intended Audience :: Developers',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Environment :: Web Environment',
'Development Status :: 4 - Beta',
]
extras_require = {'sa': ['sqlalchemy>=0.9']}
extras_require['postgres'] = ['psycopg2>=2.5.2', *extras_require['sa']]
extras_require['mysql'] = ['PyMySQL>=0.7.5', *extras_require['sa']]
setup(name='aio_manager',
use_scm_version=True,
description='Script manager for aiohttp.',
long_description=('Script manager for aiohttp.\n'
'Inspired by Flask-script. Allows to write external scripts. '),
classifiers=classifiers,
platforms=['POSIX'],
author='Roman Rader',
author_email='antigluk@gmail.com',
url='https://github.com/rrader/aio_manager',
license='BSD',
packages=find_packages(),
install_requires=['aiohttp', 'colorama'],
extras_require=extras_require,
setup_requires=['setuptools_scm'],
provides=['aio_manager'],
include_package_data=True,
test_suite='tests.test_manager')
|
<commit_before>from setuptools import setup, find_packages
classifiers = [
'License :: OSI Approved :: BSD License',
'Intended Audience :: Developers',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Environment :: Web Environment',
'Development Status :: 4 - Beta',
]
extras_require = {'sa': ['sqlalchemy>=0.9']}
extras_require['postgres'] = ['aiopg', *extras_require['sa']]
extras_require['mysql'] = ['aiomysql', *extras_require['sa']]
setup(name='aio_manager',
use_scm_version=True,
description='Script manager for aiohttp.',
long_description=('Script manager for aiohttp.\n'
'Inspired by Flask-script. Allows to write external scripts. '),
classifiers=classifiers,
platforms=['POSIX'],
author='Roman Rader',
author_email='antigluk@gmail.com',
url='https://github.com/rrader/aio_manager',
license='BSD',
packages=find_packages(),
install_requires=['aiohttp', 'colorama'],
extras_require=extras_require,
setup_requires=['setuptools_scm'],
provides=['aio_manager'],
include_package_data=True,
test_suite='tests.test_manager')
<commit_msg>Replace extra deps with sync packages<commit_after>
|
from setuptools import setup, find_packages
classifiers = [
'License :: OSI Approved :: BSD License',
'Intended Audience :: Developers',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Environment :: Web Environment',
'Development Status :: 4 - Beta',
]
extras_require = {'sa': ['sqlalchemy>=0.9']}
extras_require['postgres'] = ['psycopg2>=2.5.2', *extras_require['sa']]
extras_require['mysql'] = ['PyMySQL>=0.7.5', *extras_require['sa']]
setup(name='aio_manager',
use_scm_version=True,
description='Script manager for aiohttp.',
long_description=('Script manager for aiohttp.\n'
'Inspired by Flask-script. Allows to write external scripts. '),
classifiers=classifiers,
platforms=['POSIX'],
author='Roman Rader',
author_email='antigluk@gmail.com',
url='https://github.com/rrader/aio_manager',
license='BSD',
packages=find_packages(),
install_requires=['aiohttp', 'colorama'],
extras_require=extras_require,
setup_requires=['setuptools_scm'],
provides=['aio_manager'],
include_package_data=True,
test_suite='tests.test_manager')
|
from setuptools import setup, find_packages
classifiers = [
'License :: OSI Approved :: BSD License',
'Intended Audience :: Developers',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Environment :: Web Environment',
'Development Status :: 4 - Beta',
]
extras_require = {'sa': ['sqlalchemy>=0.9']}
extras_require['postgres'] = ['aiopg', *extras_require['sa']]
extras_require['mysql'] = ['aiomysql', *extras_require['sa']]
setup(name='aio_manager',
use_scm_version=True,
description='Script manager for aiohttp.',
long_description=('Script manager for aiohttp.\n'
'Inspired by Flask-script. Allows to write external scripts. '),
classifiers=classifiers,
platforms=['POSIX'],
author='Roman Rader',
author_email='antigluk@gmail.com',
url='https://github.com/rrader/aio_manager',
license='BSD',
packages=find_packages(),
install_requires=['aiohttp', 'colorama'],
extras_require=extras_require,
setup_requires=['setuptools_scm'],
provides=['aio_manager'],
include_package_data=True,
test_suite='tests.test_manager')
Replace extra deps with sync packagesfrom setuptools import setup, find_packages
classifiers = [
'License :: OSI Approved :: BSD License',
'Intended Audience :: Developers',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Environment :: Web Environment',
'Development Status :: 4 - Beta',
]
extras_require = {'sa': ['sqlalchemy>=0.9']}
extras_require['postgres'] = ['psycopg2>=2.5.2', *extras_require['sa']]
extras_require['mysql'] = ['PyMySQL>=0.7.5', *extras_require['sa']]
setup(name='aio_manager',
use_scm_version=True,
description='Script manager for aiohttp.',
long_description=('Script manager for aiohttp.\n'
'Inspired by Flask-script. Allows to write external scripts. '),
classifiers=classifiers,
platforms=['POSIX'],
author='Roman Rader',
author_email='antigluk@gmail.com',
url='https://github.com/rrader/aio_manager',
license='BSD',
packages=find_packages(),
install_requires=['aiohttp', 'colorama'],
extras_require=extras_require,
setup_requires=['setuptools_scm'],
provides=['aio_manager'],
include_package_data=True,
test_suite='tests.test_manager')
|
<commit_before>from setuptools import setup, find_packages
classifiers = [
'License :: OSI Approved :: BSD License',
'Intended Audience :: Developers',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Environment :: Web Environment',
'Development Status :: 4 - Beta',
]
extras_require = {'sa': ['sqlalchemy>=0.9']}
extras_require['postgres'] = ['aiopg', *extras_require['sa']]
extras_require['mysql'] = ['aiomysql', *extras_require['sa']]
setup(name='aio_manager',
use_scm_version=True,
description='Script manager for aiohttp.',
long_description=('Script manager for aiohttp.\n'
'Inspired by Flask-script. Allows to write external scripts. '),
classifiers=classifiers,
platforms=['POSIX'],
author='Roman Rader',
author_email='antigluk@gmail.com',
url='https://github.com/rrader/aio_manager',
license='BSD',
packages=find_packages(),
install_requires=['aiohttp', 'colorama'],
extras_require=extras_require,
setup_requires=['setuptools_scm'],
provides=['aio_manager'],
include_package_data=True,
test_suite='tests.test_manager')
<commit_msg>Replace extra deps with sync packages<commit_after>from setuptools import setup, find_packages
classifiers = [
'License :: OSI Approved :: BSD License',
'Intended Audience :: Developers',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Environment :: Web Environment',
'Development Status :: 4 - Beta',
]
extras_require = {'sa': ['sqlalchemy>=0.9']}
extras_require['postgres'] = ['psycopg2>=2.5.2', *extras_require['sa']]
extras_require['mysql'] = ['PyMySQL>=0.7.5', *extras_require['sa']]
setup(name='aio_manager',
use_scm_version=True,
description='Script manager for aiohttp.',
long_description=('Script manager for aiohttp.\n'
'Inspired by Flask-script. Allows to write external scripts. '),
classifiers=classifiers,
platforms=['POSIX'],
author='Roman Rader',
author_email='antigluk@gmail.com',
url='https://github.com/rrader/aio_manager',
license='BSD',
packages=find_packages(),
install_requires=['aiohttp', 'colorama'],
extras_require=extras_require,
setup_requires=['setuptools_scm'],
provides=['aio_manager'],
include_package_data=True,
test_suite='tests.test_manager')
|
4a5496fc655818cfe87934c91c9be206957d221e
|
setup.py
|
setup.py
|
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
import re
version = re.search(
r'__version__\s*=\s*[\'"]([^\'"]+)[\'"]',
open('wdmapper/version.py').read()
).group(1)
setup(
name='wdmapper',
version=version,
description='Wikidata authority file mapping tool',
author='Jakob Voß',
author_email='jakob.voss@gbv.de',
license='MIT',
url='http://github.com/gbv/wdmapper',
packages=find_packages(),
install_requires=['pywikibot'],
setup_requires=['pytest-runner'],
tests_require=['pytest', 'pytest-pep8', 'pytest-cov'],
download_url = 'https://github.com/gbv/wdmapper/tarball/' + version,
keywords = ['wikidata', 'beacon', 'identifier'],
entry_points={
'console_scripts': [
'wdmapper=wdmapper.cli:main'
]
}
)
|
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
import re
version = re.search(
r'__version__\s*=\s*[\'"]([^\'"]+)[\'"]',
open('wdmapper/version.py').read()
).group(1)
setup(
name='wdmapper',
version=version,
description='Wikidata authority file mapping tool',
author='Jakob Voß',
author_email='jakob.voss@gbv.de',
license='MIT',
url='http://github.com/gbv/wdmapper',
packages=find_packages(),
install_requires=['pywikibot'],
setup_requires=['pytest-runner'],
tests_require=['pytest', 'pytest-pep8', 'pytest-cov'],
download_url='https://github.com/gbv/wdmapper/tarball/' + version,
keywords=['wikidata', 'beacon', 'identifier'],
entry_points={
'console_scripts': [
'wdmapper=wdmapper.cli:main'
]
}
)
|
Fix code style to fix travis build
|
Fix code style to fix travis build
|
Python
|
mit
|
gbv/wdmapper
|
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
import re
version = re.search(
r'__version__\s*=\s*[\'"]([^\'"]+)[\'"]',
open('wdmapper/version.py').read()
).group(1)
setup(
name='wdmapper',
version=version,
description='Wikidata authority file mapping tool',
author='Jakob Voß',
author_email='jakob.voss@gbv.de',
license='MIT',
url='http://github.com/gbv/wdmapper',
packages=find_packages(),
install_requires=['pywikibot'],
setup_requires=['pytest-runner'],
tests_require=['pytest', 'pytest-pep8', 'pytest-cov'],
download_url = 'https://github.com/gbv/wdmapper/tarball/' + version,
keywords = ['wikidata', 'beacon', 'identifier'],
entry_points={
'console_scripts': [
'wdmapper=wdmapper.cli:main'
]
}
)
Fix code style to fix travis build
|
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
import re
version = re.search(
r'__version__\s*=\s*[\'"]([^\'"]+)[\'"]',
open('wdmapper/version.py').read()
).group(1)
setup(
name='wdmapper',
version=version,
description='Wikidata authority file mapping tool',
author='Jakob Voß',
author_email='jakob.voss@gbv.de',
license='MIT',
url='http://github.com/gbv/wdmapper',
packages=find_packages(),
install_requires=['pywikibot'],
setup_requires=['pytest-runner'],
tests_require=['pytest', 'pytest-pep8', 'pytest-cov'],
download_url='https://github.com/gbv/wdmapper/tarball/' + version,
keywords=['wikidata', 'beacon', 'identifier'],
entry_points={
'console_scripts': [
'wdmapper=wdmapper.cli:main'
]
}
)
|
<commit_before># -*- coding: utf-8 -*-
from setuptools import setup, find_packages
import re
version = re.search(
r'__version__\s*=\s*[\'"]([^\'"]+)[\'"]',
open('wdmapper/version.py').read()
).group(1)
setup(
name='wdmapper',
version=version,
description='Wikidata authority file mapping tool',
author='Jakob Voß',
author_email='jakob.voss@gbv.de',
license='MIT',
url='http://github.com/gbv/wdmapper',
packages=find_packages(),
install_requires=['pywikibot'],
setup_requires=['pytest-runner'],
tests_require=['pytest', 'pytest-pep8', 'pytest-cov'],
download_url = 'https://github.com/gbv/wdmapper/tarball/' + version,
keywords = ['wikidata', 'beacon', 'identifier'],
entry_points={
'console_scripts': [
'wdmapper=wdmapper.cli:main'
]
}
)
<commit_msg>Fix code style to fix travis build<commit_after>
|
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
import re
version = re.search(
r'__version__\s*=\s*[\'"]([^\'"]+)[\'"]',
open('wdmapper/version.py').read()
).group(1)
setup(
name='wdmapper',
version=version,
description='Wikidata authority file mapping tool',
author='Jakob Voß',
author_email='jakob.voss@gbv.de',
license='MIT',
url='http://github.com/gbv/wdmapper',
packages=find_packages(),
install_requires=['pywikibot'],
setup_requires=['pytest-runner'],
tests_require=['pytest', 'pytest-pep8', 'pytest-cov'],
download_url='https://github.com/gbv/wdmapper/tarball/' + version,
keywords=['wikidata', 'beacon', 'identifier'],
entry_points={
'console_scripts': [
'wdmapper=wdmapper.cli:main'
]
}
)
|
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
import re
version = re.search(
r'__version__\s*=\s*[\'"]([^\'"]+)[\'"]',
open('wdmapper/version.py').read()
).group(1)
setup(
name='wdmapper',
version=version,
description='Wikidata authority file mapping tool',
author='Jakob Voß',
author_email='jakob.voss@gbv.de',
license='MIT',
url='http://github.com/gbv/wdmapper',
packages=find_packages(),
install_requires=['pywikibot'],
setup_requires=['pytest-runner'],
tests_require=['pytest', 'pytest-pep8', 'pytest-cov'],
download_url = 'https://github.com/gbv/wdmapper/tarball/' + version,
keywords = ['wikidata', 'beacon', 'identifier'],
entry_points={
'console_scripts': [
'wdmapper=wdmapper.cli:main'
]
}
)
Fix code style to fix travis build# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
import re
version = re.search(
r'__version__\s*=\s*[\'"]([^\'"]+)[\'"]',
open('wdmapper/version.py').read()
).group(1)
setup(
name='wdmapper',
version=version,
description='Wikidata authority file mapping tool',
author='Jakob Voß',
author_email='jakob.voss@gbv.de',
license='MIT',
url='http://github.com/gbv/wdmapper',
packages=find_packages(),
install_requires=['pywikibot'],
setup_requires=['pytest-runner'],
tests_require=['pytest', 'pytest-pep8', 'pytest-cov'],
download_url='https://github.com/gbv/wdmapper/tarball/' + version,
keywords=['wikidata', 'beacon', 'identifier'],
entry_points={
'console_scripts': [
'wdmapper=wdmapper.cli:main'
]
}
)
|
<commit_before># -*- coding: utf-8 -*-
from setuptools import setup, find_packages
import re
version = re.search(
r'__version__\s*=\s*[\'"]([^\'"]+)[\'"]',
open('wdmapper/version.py').read()
).group(1)
setup(
name='wdmapper',
version=version,
description='Wikidata authority file mapping tool',
author='Jakob Voß',
author_email='jakob.voss@gbv.de',
license='MIT',
url='http://github.com/gbv/wdmapper',
packages=find_packages(),
install_requires=['pywikibot'],
setup_requires=['pytest-runner'],
tests_require=['pytest', 'pytest-pep8', 'pytest-cov'],
download_url = 'https://github.com/gbv/wdmapper/tarball/' + version,
keywords = ['wikidata', 'beacon', 'identifier'],
entry_points={
'console_scripts': [
'wdmapper=wdmapper.cli:main'
]
}
)
<commit_msg>Fix code style to fix travis build<commit_after># -*- coding: utf-8 -*-
from setuptools import setup, find_packages
import re
version = re.search(
r'__version__\s*=\s*[\'"]([^\'"]+)[\'"]',
open('wdmapper/version.py').read()
).group(1)
setup(
name='wdmapper',
version=version,
description='Wikidata authority file mapping tool',
author='Jakob Voß',
author_email='jakob.voss@gbv.de',
license='MIT',
url='http://github.com/gbv/wdmapper',
packages=find_packages(),
install_requires=['pywikibot'],
setup_requires=['pytest-runner'],
tests_require=['pytest', 'pytest-pep8', 'pytest-cov'],
download_url='https://github.com/gbv/wdmapper/tarball/' + version,
keywords=['wikidata', 'beacon', 'identifier'],
entry_points={
'console_scripts': [
'wdmapper=wdmapper.cli:main'
]
}
)
|
242c302f110fef9f2016d76c5e5b05a0c929497e
|
setup.py
|
setup.py
|
# -*- coding: utf-8 -*-
# Copyright (c) 2010-2014, MIT Probabilistic Computing Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/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.
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(
name='bdbcontrib',
version='0.1.dev',
description='Hodgepodge library of extras for bayeslite',
url='http://probcomp.csail.mit.edu/bayesdb',
author='MIT Probabilistic Computing Project',
author_email='bayesdb@mit.edu',
license='Apache License, Version 2.0',
install_requires=[
'markdown2',
'matplotlib',
'numpy',
'numpydoc',
'pandas',
'seaborn==0.5.1',
'sphinx',
],
packages=[
'bdbcontrib',
],
package_dir={
'bdbcontrib': 'src',
},
)
|
# -*- coding: utf-8 -*-
# Copyright (c) 2010-2014, MIT Probabilistic Computing Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/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.
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(
name='bdbcontrib',
version='0.1a20150917',
description='Hodgepodge library of extras for bayeslite',
url='http://probcomp.csail.mit.edu/bayesdb',
author='MIT Probabilistic Computing Project',
author_email='bayesdb@mit.edu',
license='Apache License, Version 2.0',
install_requires=[
'markdown2',
'matplotlib',
'numpy',
'numpydoc',
'pandas',
'seaborn==0.5.1',
'sphinx',
],
packages=[
'bdbcontrib',
],
package_dir={
'bdbcontrib': 'src',
},
)
|
Switch to new version scheme, alpha timestamped today.
|
Switch to new version scheme, alpha timestamped today.
|
Python
|
apache-2.0
|
probcomp/bdbcontrib,probcomp/bdbcontrib
|
# -*- coding: utf-8 -*-
# Copyright (c) 2010-2014, MIT Probabilistic Computing Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/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.
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(
name='bdbcontrib',
version='0.1.dev',
description='Hodgepodge library of extras for bayeslite',
url='http://probcomp.csail.mit.edu/bayesdb',
author='MIT Probabilistic Computing Project',
author_email='bayesdb@mit.edu',
license='Apache License, Version 2.0',
install_requires=[
'markdown2',
'matplotlib',
'numpy',
'numpydoc',
'pandas',
'seaborn==0.5.1',
'sphinx',
],
packages=[
'bdbcontrib',
],
package_dir={
'bdbcontrib': 'src',
},
)
Switch to new version scheme, alpha timestamped today.
|
# -*- coding: utf-8 -*-
# Copyright (c) 2010-2014, MIT Probabilistic Computing Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/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.
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(
name='bdbcontrib',
version='0.1a20150917',
description='Hodgepodge library of extras for bayeslite',
url='http://probcomp.csail.mit.edu/bayesdb',
author='MIT Probabilistic Computing Project',
author_email='bayesdb@mit.edu',
license='Apache License, Version 2.0',
install_requires=[
'markdown2',
'matplotlib',
'numpy',
'numpydoc',
'pandas',
'seaborn==0.5.1',
'sphinx',
],
packages=[
'bdbcontrib',
],
package_dir={
'bdbcontrib': 'src',
},
)
|
<commit_before># -*- coding: utf-8 -*-
# Copyright (c) 2010-2014, MIT Probabilistic Computing Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/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.
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(
name='bdbcontrib',
version='0.1.dev',
description='Hodgepodge library of extras for bayeslite',
url='http://probcomp.csail.mit.edu/bayesdb',
author='MIT Probabilistic Computing Project',
author_email='bayesdb@mit.edu',
license='Apache License, Version 2.0',
install_requires=[
'markdown2',
'matplotlib',
'numpy',
'numpydoc',
'pandas',
'seaborn==0.5.1',
'sphinx',
],
packages=[
'bdbcontrib',
],
package_dir={
'bdbcontrib': 'src',
},
)
<commit_msg>Switch to new version scheme, alpha timestamped today.<commit_after>
|
# -*- coding: utf-8 -*-
# Copyright (c) 2010-2014, MIT Probabilistic Computing Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/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.
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(
name='bdbcontrib',
version='0.1a20150917',
description='Hodgepodge library of extras for bayeslite',
url='http://probcomp.csail.mit.edu/bayesdb',
author='MIT Probabilistic Computing Project',
author_email='bayesdb@mit.edu',
license='Apache License, Version 2.0',
install_requires=[
'markdown2',
'matplotlib',
'numpy',
'numpydoc',
'pandas',
'seaborn==0.5.1',
'sphinx',
],
packages=[
'bdbcontrib',
],
package_dir={
'bdbcontrib': 'src',
},
)
|
# -*- coding: utf-8 -*-
# Copyright (c) 2010-2014, MIT Probabilistic Computing Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/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.
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(
name='bdbcontrib',
version='0.1.dev',
description='Hodgepodge library of extras for bayeslite',
url='http://probcomp.csail.mit.edu/bayesdb',
author='MIT Probabilistic Computing Project',
author_email='bayesdb@mit.edu',
license='Apache License, Version 2.0',
install_requires=[
'markdown2',
'matplotlib',
'numpy',
'numpydoc',
'pandas',
'seaborn==0.5.1',
'sphinx',
],
packages=[
'bdbcontrib',
],
package_dir={
'bdbcontrib': 'src',
},
)
Switch to new version scheme, alpha timestamped today.# -*- coding: utf-8 -*-
# Copyright (c) 2010-2014, MIT Probabilistic Computing Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/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.
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(
name='bdbcontrib',
version='0.1a20150917',
description='Hodgepodge library of extras for bayeslite',
url='http://probcomp.csail.mit.edu/bayesdb',
author='MIT Probabilistic Computing Project',
author_email='bayesdb@mit.edu',
license='Apache License, Version 2.0',
install_requires=[
'markdown2',
'matplotlib',
'numpy',
'numpydoc',
'pandas',
'seaborn==0.5.1',
'sphinx',
],
packages=[
'bdbcontrib',
],
package_dir={
'bdbcontrib': 'src',
},
)
|
<commit_before># -*- coding: utf-8 -*-
# Copyright (c) 2010-2014, MIT Probabilistic Computing Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/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.
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(
name='bdbcontrib',
version='0.1.dev',
description='Hodgepodge library of extras for bayeslite',
url='http://probcomp.csail.mit.edu/bayesdb',
author='MIT Probabilistic Computing Project',
author_email='bayesdb@mit.edu',
license='Apache License, Version 2.0',
install_requires=[
'markdown2',
'matplotlib',
'numpy',
'numpydoc',
'pandas',
'seaborn==0.5.1',
'sphinx',
],
packages=[
'bdbcontrib',
],
package_dir={
'bdbcontrib': 'src',
},
)
<commit_msg>Switch to new version scheme, alpha timestamped today.<commit_after># -*- coding: utf-8 -*-
# Copyright (c) 2010-2014, MIT Probabilistic Computing Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/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.
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(
name='bdbcontrib',
version='0.1a20150917',
description='Hodgepodge library of extras for bayeslite',
url='http://probcomp.csail.mit.edu/bayesdb',
author='MIT Probabilistic Computing Project',
author_email='bayesdb@mit.edu',
license='Apache License, Version 2.0',
install_requires=[
'markdown2',
'matplotlib',
'numpy',
'numpydoc',
'pandas',
'seaborn==0.5.1',
'sphinx',
],
packages=[
'bdbcontrib',
],
package_dir={
'bdbcontrib': 'src',
},
)
|
1c7cac04f9398abb824a7591caa381bcc495dcfe
|
setup.py
|
setup.py
|
# https://jeffknupp.com/blog/2013/08/16/open-sourcing-a-python-project-the-right-way/
# http://peterdowns.com/posts/first-time-with-pypi.html
# Upload to PyPI Live
# python setup.py sdist upload -r pypi
from setuptools import setup
setup(
name='axis',
packages=['axis'],
version='11',
description='A python library for communicating with devices from Axis Communications',
author='Robert Svensson',
author_email='Kane610@users.noreply.github.com',
license='MIT',
url='https://github.com/Kane610/axis',
download_url='https://github.com/Kane610/axis/archive/v11.tar.gz',
install_requires=['packaging', 'requests'],
keywords=['axis', 'vapix', 'onvif', 'event stream', 'homeassistant'],
classifiers=[],
)
|
# https://jeffknupp.com/blog/2013/08/16/open-sourcing-a-python-project-the-right-way/
# http://peterdowns.com/posts/first-time-with-pypi.html
# Upload to PyPI Live
# python setup.py sdist upload -r pypi
from setuptools import setup
setup(
name='axis',
packages=['axis'],
version='12',
description='A python library for communicating with devices from Axis Communications',
author='Robert Svensson',
author_email='Kane610@users.noreply.github.com',
license='MIT',
url='https://github.com/Kane610/axis',
download_url='https://github.com/Kane610/axis/archive/v12.tar.gz',
install_requires=['packaging', 'requests'],
keywords=['axis', 'vapix', 'onvif', 'event stream', 'homeassistant'],
classifiers=[],
)
|
Increase version to 12 (it goes past 11!!!)
|
Increase version to 12 (it goes past 11!!!)
|
Python
|
mit
|
Kane610/axis
|
# https://jeffknupp.com/blog/2013/08/16/open-sourcing-a-python-project-the-right-way/
# http://peterdowns.com/posts/first-time-with-pypi.html
# Upload to PyPI Live
# python setup.py sdist upload -r pypi
from setuptools import setup
setup(
name='axis',
packages=['axis'],
version='11',
description='A python library for communicating with devices from Axis Communications',
author='Robert Svensson',
author_email='Kane610@users.noreply.github.com',
license='MIT',
url='https://github.com/Kane610/axis',
download_url='https://github.com/Kane610/axis/archive/v11.tar.gz',
install_requires=['packaging', 'requests'],
keywords=['axis', 'vapix', 'onvif', 'event stream', 'homeassistant'],
classifiers=[],
)
Increase version to 12 (it goes past 11!!!)
|
# https://jeffknupp.com/blog/2013/08/16/open-sourcing-a-python-project-the-right-way/
# http://peterdowns.com/posts/first-time-with-pypi.html
# Upload to PyPI Live
# python setup.py sdist upload -r pypi
from setuptools import setup
setup(
name='axis',
packages=['axis'],
version='12',
description='A python library for communicating with devices from Axis Communications',
author='Robert Svensson',
author_email='Kane610@users.noreply.github.com',
license='MIT',
url='https://github.com/Kane610/axis',
download_url='https://github.com/Kane610/axis/archive/v12.tar.gz',
install_requires=['packaging', 'requests'],
keywords=['axis', 'vapix', 'onvif', 'event stream', 'homeassistant'],
classifiers=[],
)
|
<commit_before># https://jeffknupp.com/blog/2013/08/16/open-sourcing-a-python-project-the-right-way/
# http://peterdowns.com/posts/first-time-with-pypi.html
# Upload to PyPI Live
# python setup.py sdist upload -r pypi
from setuptools import setup
setup(
name='axis',
packages=['axis'],
version='11',
description='A python library for communicating with devices from Axis Communications',
author='Robert Svensson',
author_email='Kane610@users.noreply.github.com',
license='MIT',
url='https://github.com/Kane610/axis',
download_url='https://github.com/Kane610/axis/archive/v11.tar.gz',
install_requires=['packaging', 'requests'],
keywords=['axis', 'vapix', 'onvif', 'event stream', 'homeassistant'],
classifiers=[],
)
<commit_msg>Increase version to 12 (it goes past 11!!!)<commit_after>
|
# https://jeffknupp.com/blog/2013/08/16/open-sourcing-a-python-project-the-right-way/
# http://peterdowns.com/posts/first-time-with-pypi.html
# Upload to PyPI Live
# python setup.py sdist upload -r pypi
from setuptools import setup
setup(
name='axis',
packages=['axis'],
version='12',
description='A python library for communicating with devices from Axis Communications',
author='Robert Svensson',
author_email='Kane610@users.noreply.github.com',
license='MIT',
url='https://github.com/Kane610/axis',
download_url='https://github.com/Kane610/axis/archive/v12.tar.gz',
install_requires=['packaging', 'requests'],
keywords=['axis', 'vapix', 'onvif', 'event stream', 'homeassistant'],
classifiers=[],
)
|
# https://jeffknupp.com/blog/2013/08/16/open-sourcing-a-python-project-the-right-way/
# http://peterdowns.com/posts/first-time-with-pypi.html
# Upload to PyPI Live
# python setup.py sdist upload -r pypi
from setuptools import setup
setup(
name='axis',
packages=['axis'],
version='11',
description='A python library for communicating with devices from Axis Communications',
author='Robert Svensson',
author_email='Kane610@users.noreply.github.com',
license='MIT',
url='https://github.com/Kane610/axis',
download_url='https://github.com/Kane610/axis/archive/v11.tar.gz',
install_requires=['packaging', 'requests'],
keywords=['axis', 'vapix', 'onvif', 'event stream', 'homeassistant'],
classifiers=[],
)
Increase version to 12 (it goes past 11!!!)# https://jeffknupp.com/blog/2013/08/16/open-sourcing-a-python-project-the-right-way/
# http://peterdowns.com/posts/first-time-with-pypi.html
# Upload to PyPI Live
# python setup.py sdist upload -r pypi
from setuptools import setup
setup(
name='axis',
packages=['axis'],
version='12',
description='A python library for communicating with devices from Axis Communications',
author='Robert Svensson',
author_email='Kane610@users.noreply.github.com',
license='MIT',
url='https://github.com/Kane610/axis',
download_url='https://github.com/Kane610/axis/archive/v12.tar.gz',
install_requires=['packaging', 'requests'],
keywords=['axis', 'vapix', 'onvif', 'event stream', 'homeassistant'],
classifiers=[],
)
|
<commit_before># https://jeffknupp.com/blog/2013/08/16/open-sourcing-a-python-project-the-right-way/
# http://peterdowns.com/posts/first-time-with-pypi.html
# Upload to PyPI Live
# python setup.py sdist upload -r pypi
from setuptools import setup
setup(
name='axis',
packages=['axis'],
version='11',
description='A python library for communicating with devices from Axis Communications',
author='Robert Svensson',
author_email='Kane610@users.noreply.github.com',
license='MIT',
url='https://github.com/Kane610/axis',
download_url='https://github.com/Kane610/axis/archive/v11.tar.gz',
install_requires=['packaging', 'requests'],
keywords=['axis', 'vapix', 'onvif', 'event stream', 'homeassistant'],
classifiers=[],
)
<commit_msg>Increase version to 12 (it goes past 11!!!)<commit_after># https://jeffknupp.com/blog/2013/08/16/open-sourcing-a-python-project-the-right-way/
# http://peterdowns.com/posts/first-time-with-pypi.html
# Upload to PyPI Live
# python setup.py sdist upload -r pypi
from setuptools import setup
setup(
name='axis',
packages=['axis'],
version='12',
description='A python library for communicating with devices from Axis Communications',
author='Robert Svensson',
author_email='Kane610@users.noreply.github.com',
license='MIT',
url='https://github.com/Kane610/axis',
download_url='https://github.com/Kane610/axis/archive/v12.tar.gz',
install_requires=['packaging', 'requests'],
keywords=['axis', 'vapix', 'onvif', 'event stream', 'homeassistant'],
classifiers=[],
)
|
5194e3d8c433bcd427b04eb3611834aa36e3d0ac
|
setup.py
|
setup.py
|
import subprocess
from codecs import open
from setuptools import setup, find_packages
from setuptools.command import develop, build_py
def readme():
with open("README.md", "r", "utf-8") as f:
return f.read()
class CustomDevelop(develop.develop, object):
"""
Class needed for "pip install -e ."
"""
def run(self):
subprocess.check_call("make", shell=True)
super(CustomDevelop, self).run()
class CustomBuildPy(build_py.build_py, object):
"""
Class needed for "pip install s2p"
"""
def run(self):
super(CustomBuildPy, self).run()
subprocess.check_call("make", shell=True)
subprocess.check_call("cp -r bin lib build/lib/", shell=True)
requirements = ['numpy',
'scipy',
'rasterio[s3,test]',
'utm',
'pyproj',
'bs4',
'requests']
setup(name="s2p",
version="1.0b6",
description="Satellite Stereo Pipeline.",
long_description=readme(),
long_description_content_type='text/markdown',
url='https://github.com/miss3d/s2p',
packages=['s2p'],
install_requires=requirements,
cmdclass={'develop': CustomDevelop,
'build_py': CustomBuildPy},
entry_points="""
[console_scripts]
s2p=s2p.cli:main
""")
|
import subprocess
from codecs import open
from setuptools import setup, find_packages
from setuptools.command import develop, build_py
def readme():
with open("README.md", "r", "utf-8") as f:
return f.read()
class CustomDevelop(develop.develop, object):
"""
Class needed for "pip install -e ."
"""
def run(self):
subprocess.check_call("make", shell=True)
super(CustomDevelop, self).run()
class CustomBuildPy(build_py.build_py, object):
"""
Class needed for "pip install s2p"
"""
def run(self):
super(CustomBuildPy, self).run()
subprocess.check_call("make", shell=True)
subprocess.check_call("cp -r bin lib build/lib/", shell=True)
requirements = ['numpy',
'scipy',
'rasterio[s3,test]',
'utm',
'pyproj',
'beautifulsoup4[lxml]',
'requests']
setup(name="s2p",
version="1.0b6",
description="Satellite Stereo Pipeline.",
long_description=readme(),
long_description_content_type='text/markdown',
url='https://github.com/miss3d/s2p',
packages=['s2p'],
install_requires=requirements,
cmdclass={'develop': CustomDevelop,
'build_py': CustomBuildPy},
entry_points="""
[console_scripts]
s2p=s2p.cli:main
""")
|
Install beautifulsoup4 with lxml parser
|
Install beautifulsoup4 with lxml parser
|
Python
|
agpl-3.0
|
carlodef/s2p,MISS3D/s2p,MISS3D/s2p,MISS3D/s2p,MISS3D/s2p,carlodef/s2p,mnhrdt/s2p,mnhrdt/s2p
|
import subprocess
from codecs import open
from setuptools import setup, find_packages
from setuptools.command import develop, build_py
def readme():
with open("README.md", "r", "utf-8") as f:
return f.read()
class CustomDevelop(develop.develop, object):
"""
Class needed for "pip install -e ."
"""
def run(self):
subprocess.check_call("make", shell=True)
super(CustomDevelop, self).run()
class CustomBuildPy(build_py.build_py, object):
"""
Class needed for "pip install s2p"
"""
def run(self):
super(CustomBuildPy, self).run()
subprocess.check_call("make", shell=True)
subprocess.check_call("cp -r bin lib build/lib/", shell=True)
requirements = ['numpy',
'scipy',
'rasterio[s3,test]',
'utm',
'pyproj',
'bs4',
'requests']
setup(name="s2p",
version="1.0b6",
description="Satellite Stereo Pipeline.",
long_description=readme(),
long_description_content_type='text/markdown',
url='https://github.com/miss3d/s2p',
packages=['s2p'],
install_requires=requirements,
cmdclass={'develop': CustomDevelop,
'build_py': CustomBuildPy},
entry_points="""
[console_scripts]
s2p=s2p.cli:main
""")
Install beautifulsoup4 with lxml parser
|
import subprocess
from codecs import open
from setuptools import setup, find_packages
from setuptools.command import develop, build_py
def readme():
with open("README.md", "r", "utf-8") as f:
return f.read()
class CustomDevelop(develop.develop, object):
"""
Class needed for "pip install -e ."
"""
def run(self):
subprocess.check_call("make", shell=True)
super(CustomDevelop, self).run()
class CustomBuildPy(build_py.build_py, object):
"""
Class needed for "pip install s2p"
"""
def run(self):
super(CustomBuildPy, self).run()
subprocess.check_call("make", shell=True)
subprocess.check_call("cp -r bin lib build/lib/", shell=True)
requirements = ['numpy',
'scipy',
'rasterio[s3,test]',
'utm',
'pyproj',
'beautifulsoup4[lxml]',
'requests']
setup(name="s2p",
version="1.0b6",
description="Satellite Stereo Pipeline.",
long_description=readme(),
long_description_content_type='text/markdown',
url='https://github.com/miss3d/s2p',
packages=['s2p'],
install_requires=requirements,
cmdclass={'develop': CustomDevelop,
'build_py': CustomBuildPy},
entry_points="""
[console_scripts]
s2p=s2p.cli:main
""")
|
<commit_before>import subprocess
from codecs import open
from setuptools import setup, find_packages
from setuptools.command import develop, build_py
def readme():
with open("README.md", "r", "utf-8") as f:
return f.read()
class CustomDevelop(develop.develop, object):
"""
Class needed for "pip install -e ."
"""
def run(self):
subprocess.check_call("make", shell=True)
super(CustomDevelop, self).run()
class CustomBuildPy(build_py.build_py, object):
"""
Class needed for "pip install s2p"
"""
def run(self):
super(CustomBuildPy, self).run()
subprocess.check_call("make", shell=True)
subprocess.check_call("cp -r bin lib build/lib/", shell=True)
requirements = ['numpy',
'scipy',
'rasterio[s3,test]',
'utm',
'pyproj',
'bs4',
'requests']
setup(name="s2p",
version="1.0b6",
description="Satellite Stereo Pipeline.",
long_description=readme(),
long_description_content_type='text/markdown',
url='https://github.com/miss3d/s2p',
packages=['s2p'],
install_requires=requirements,
cmdclass={'develop': CustomDevelop,
'build_py': CustomBuildPy},
entry_points="""
[console_scripts]
s2p=s2p.cli:main
""")
<commit_msg>Install beautifulsoup4 with lxml parser<commit_after>
|
import subprocess
from codecs import open
from setuptools import setup, find_packages
from setuptools.command import develop, build_py
def readme():
with open("README.md", "r", "utf-8") as f:
return f.read()
class CustomDevelop(develop.develop, object):
"""
Class needed for "pip install -e ."
"""
def run(self):
subprocess.check_call("make", shell=True)
super(CustomDevelop, self).run()
class CustomBuildPy(build_py.build_py, object):
"""
Class needed for "pip install s2p"
"""
def run(self):
super(CustomBuildPy, self).run()
subprocess.check_call("make", shell=True)
subprocess.check_call("cp -r bin lib build/lib/", shell=True)
requirements = ['numpy',
'scipy',
'rasterio[s3,test]',
'utm',
'pyproj',
'beautifulsoup4[lxml]',
'requests']
setup(name="s2p",
version="1.0b6",
description="Satellite Stereo Pipeline.",
long_description=readme(),
long_description_content_type='text/markdown',
url='https://github.com/miss3d/s2p',
packages=['s2p'],
install_requires=requirements,
cmdclass={'develop': CustomDevelop,
'build_py': CustomBuildPy},
entry_points="""
[console_scripts]
s2p=s2p.cli:main
""")
|
import subprocess
from codecs import open
from setuptools import setup, find_packages
from setuptools.command import develop, build_py
def readme():
with open("README.md", "r", "utf-8") as f:
return f.read()
class CustomDevelop(develop.develop, object):
"""
Class needed for "pip install -e ."
"""
def run(self):
subprocess.check_call("make", shell=True)
super(CustomDevelop, self).run()
class CustomBuildPy(build_py.build_py, object):
"""
Class needed for "pip install s2p"
"""
def run(self):
super(CustomBuildPy, self).run()
subprocess.check_call("make", shell=True)
subprocess.check_call("cp -r bin lib build/lib/", shell=True)
requirements = ['numpy',
'scipy',
'rasterio[s3,test]',
'utm',
'pyproj',
'bs4',
'requests']
setup(name="s2p",
version="1.0b6",
description="Satellite Stereo Pipeline.",
long_description=readme(),
long_description_content_type='text/markdown',
url='https://github.com/miss3d/s2p',
packages=['s2p'],
install_requires=requirements,
cmdclass={'develop': CustomDevelop,
'build_py': CustomBuildPy},
entry_points="""
[console_scripts]
s2p=s2p.cli:main
""")
Install beautifulsoup4 with lxml parserimport subprocess
from codecs import open
from setuptools import setup, find_packages
from setuptools.command import develop, build_py
def readme():
with open("README.md", "r", "utf-8") as f:
return f.read()
class CustomDevelop(develop.develop, object):
"""
Class needed for "pip install -e ."
"""
def run(self):
subprocess.check_call("make", shell=True)
super(CustomDevelop, self).run()
class CustomBuildPy(build_py.build_py, object):
"""
Class needed for "pip install s2p"
"""
def run(self):
super(CustomBuildPy, self).run()
subprocess.check_call("make", shell=True)
subprocess.check_call("cp -r bin lib build/lib/", shell=True)
requirements = ['numpy',
'scipy',
'rasterio[s3,test]',
'utm',
'pyproj',
'beautifulsoup4[lxml]',
'requests']
setup(name="s2p",
version="1.0b6",
description="Satellite Stereo Pipeline.",
long_description=readme(),
long_description_content_type='text/markdown',
url='https://github.com/miss3d/s2p',
packages=['s2p'],
install_requires=requirements,
cmdclass={'develop': CustomDevelop,
'build_py': CustomBuildPy},
entry_points="""
[console_scripts]
s2p=s2p.cli:main
""")
|
<commit_before>import subprocess
from codecs import open
from setuptools import setup, find_packages
from setuptools.command import develop, build_py
def readme():
with open("README.md", "r", "utf-8") as f:
return f.read()
class CustomDevelop(develop.develop, object):
"""
Class needed for "pip install -e ."
"""
def run(self):
subprocess.check_call("make", shell=True)
super(CustomDevelop, self).run()
class CustomBuildPy(build_py.build_py, object):
"""
Class needed for "pip install s2p"
"""
def run(self):
super(CustomBuildPy, self).run()
subprocess.check_call("make", shell=True)
subprocess.check_call("cp -r bin lib build/lib/", shell=True)
requirements = ['numpy',
'scipy',
'rasterio[s3,test]',
'utm',
'pyproj',
'bs4',
'requests']
setup(name="s2p",
version="1.0b6",
description="Satellite Stereo Pipeline.",
long_description=readme(),
long_description_content_type='text/markdown',
url='https://github.com/miss3d/s2p',
packages=['s2p'],
install_requires=requirements,
cmdclass={'develop': CustomDevelop,
'build_py': CustomBuildPy},
entry_points="""
[console_scripts]
s2p=s2p.cli:main
""")
<commit_msg>Install beautifulsoup4 with lxml parser<commit_after>import subprocess
from codecs import open
from setuptools import setup, find_packages
from setuptools.command import develop, build_py
def readme():
with open("README.md", "r", "utf-8") as f:
return f.read()
class CustomDevelop(develop.develop, object):
"""
Class needed for "pip install -e ."
"""
def run(self):
subprocess.check_call("make", shell=True)
super(CustomDevelop, self).run()
class CustomBuildPy(build_py.build_py, object):
"""
Class needed for "pip install s2p"
"""
def run(self):
super(CustomBuildPy, self).run()
subprocess.check_call("make", shell=True)
subprocess.check_call("cp -r bin lib build/lib/", shell=True)
requirements = ['numpy',
'scipy',
'rasterio[s3,test]',
'utm',
'pyproj',
'beautifulsoup4[lxml]',
'requests']
setup(name="s2p",
version="1.0b6",
description="Satellite Stereo Pipeline.",
long_description=readme(),
long_description_content_type='text/markdown',
url='https://github.com/miss3d/s2p',
packages=['s2p'],
install_requires=requirements,
cmdclass={'develop': CustomDevelop,
'build_py': CustomBuildPy},
entry_points="""
[console_scripts]
s2p=s2p.cli:main
""")
|
4f672bd867e1e94b8b78f0f50d3da1be93af84d2
|
setup.py
|
setup.py
|
#!/usr/bin/env python
import os
from setuptools import setup
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
execfile('kronos/version.py')
readme = open('README.rst').read()
history = open('HISTORY.rst').read()
setup(
name='django-kronos',
version=__version__,
description='Kronos is a Django application that makes it easy to define and schedule tasks with cron.',
long_description=readme + '\n\n' + history,
author='Johannes Gorset',
author_email='jgorset@gmail.com ',
url='http://github.com/jgorset/kronos',
packages=['kronos'],
include_package_data=True,
zip_safe=False,
)
|
#!/usr/bin/env python
import os
from setuptools import setup
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
exec(compile(open('kronos/version.py').read(), 'kronos/version.py', 'exec'))
readme = open('README.rst').read()
history = open('HISTORY.rst').read()
setup(
name='django-kronos',
version=__version__,
description='Kronos is a Django application that makes it easy to define and schedule tasks with cron.',
long_description=readme + '\n\n' + history,
author='Johannes Gorset',
author_email='jgorset@gmail.com ',
url='http://github.com/jgorset/kronos',
packages=['kronos'],
include_package_data=True,
zip_safe=False,
)
|
Change execfile to exec() for python 3
|
Change execfile to exec() for python 3
|
Python
|
mit
|
joshblum/django-kronos,jgorset/django-kronos,jgorset/django-kronos,joshblum/django-kronos,jeanbaptistelab/django-kronos,jeanbaptistelab/django-kronos
|
#!/usr/bin/env python
import os
from setuptools import setup
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
execfile('kronos/version.py')
readme = open('README.rst').read()
history = open('HISTORY.rst').read()
setup(
name='django-kronos',
version=__version__,
description='Kronos is a Django application that makes it easy to define and schedule tasks with cron.',
long_description=readme + '\n\n' + history,
author='Johannes Gorset',
author_email='jgorset@gmail.com ',
url='http://github.com/jgorset/kronos',
packages=['kronos'],
include_package_data=True,
zip_safe=False,
)
Change execfile to exec() for python 3
|
#!/usr/bin/env python
import os
from setuptools import setup
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
exec(compile(open('kronos/version.py').read(), 'kronos/version.py', 'exec'))
readme = open('README.rst').read()
history = open('HISTORY.rst').read()
setup(
name='django-kronos',
version=__version__,
description='Kronos is a Django application that makes it easy to define and schedule tasks with cron.',
long_description=readme + '\n\n' + history,
author='Johannes Gorset',
author_email='jgorset@gmail.com ',
url='http://github.com/jgorset/kronos',
packages=['kronos'],
include_package_data=True,
zip_safe=False,
)
|
<commit_before>#!/usr/bin/env python
import os
from setuptools import setup
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
execfile('kronos/version.py')
readme = open('README.rst').read()
history = open('HISTORY.rst').read()
setup(
name='django-kronos',
version=__version__,
description='Kronos is a Django application that makes it easy to define and schedule tasks with cron.',
long_description=readme + '\n\n' + history,
author='Johannes Gorset',
author_email='jgorset@gmail.com ',
url='http://github.com/jgorset/kronos',
packages=['kronos'],
include_package_data=True,
zip_safe=False,
)
<commit_msg>Change execfile to exec() for python 3<commit_after>
|
#!/usr/bin/env python
import os
from setuptools import setup
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
exec(compile(open('kronos/version.py').read(), 'kronos/version.py', 'exec'))
readme = open('README.rst').read()
history = open('HISTORY.rst').read()
setup(
name='django-kronos',
version=__version__,
description='Kronos is a Django application that makes it easy to define and schedule tasks with cron.',
long_description=readme + '\n\n' + history,
author='Johannes Gorset',
author_email='jgorset@gmail.com ',
url='http://github.com/jgorset/kronos',
packages=['kronos'],
include_package_data=True,
zip_safe=False,
)
|
#!/usr/bin/env python
import os
from setuptools import setup
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
execfile('kronos/version.py')
readme = open('README.rst').read()
history = open('HISTORY.rst').read()
setup(
name='django-kronos',
version=__version__,
description='Kronos is a Django application that makes it easy to define and schedule tasks with cron.',
long_description=readme + '\n\n' + history,
author='Johannes Gorset',
author_email='jgorset@gmail.com ',
url='http://github.com/jgorset/kronos',
packages=['kronos'],
include_package_data=True,
zip_safe=False,
)
Change execfile to exec() for python 3#!/usr/bin/env python
import os
from setuptools import setup
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
exec(compile(open('kronos/version.py').read(), 'kronos/version.py', 'exec'))
readme = open('README.rst').read()
history = open('HISTORY.rst').read()
setup(
name='django-kronos',
version=__version__,
description='Kronos is a Django application that makes it easy to define and schedule tasks with cron.',
long_description=readme + '\n\n' + history,
author='Johannes Gorset',
author_email='jgorset@gmail.com ',
url='http://github.com/jgorset/kronos',
packages=['kronos'],
include_package_data=True,
zip_safe=False,
)
|
<commit_before>#!/usr/bin/env python
import os
from setuptools import setup
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
execfile('kronos/version.py')
readme = open('README.rst').read()
history = open('HISTORY.rst').read()
setup(
name='django-kronos',
version=__version__,
description='Kronos is a Django application that makes it easy to define and schedule tasks with cron.',
long_description=readme + '\n\n' + history,
author='Johannes Gorset',
author_email='jgorset@gmail.com ',
url='http://github.com/jgorset/kronos',
packages=['kronos'],
include_package_data=True,
zip_safe=False,
)
<commit_msg>Change execfile to exec() for python 3<commit_after>#!/usr/bin/env python
import os
from setuptools import setup
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
exec(compile(open('kronos/version.py').read(), 'kronos/version.py', 'exec'))
readme = open('README.rst').read()
history = open('HISTORY.rst').read()
setup(
name='django-kronos',
version=__version__,
description='Kronos is a Django application that makes it easy to define and schedule tasks with cron.',
long_description=readme + '\n\n' + history,
author='Johannes Gorset',
author_email='jgorset@gmail.com ',
url='http://github.com/jgorset/kronos',
packages=['kronos'],
include_package_data=True,
zip_safe=False,
)
|
57ed6bb3994342fce594c9cbbb0ecde4ee8c117c
|
setup.py
|
setup.py
|
from setuptools import setup
setup(
name="Flask-Redistore",
version="1.0",
url="",
license="BSD",
author="Donald Stufft",
author_email="donald.stufft@gmail.com",
description="Adds Redis support to your Flask applications",
long_description=open("README.rst").read(),
py_modules=["flask_redistore"],
zip_safe=False,
include_package_data=True,
platforms="any",
install_requires=[
"Flask",
"redis",
],
classifiers=[
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules'
]
)
|
import sys
from setuptools import setup
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
#import here, cause outside the eggs aren't loaded
import pytest
sys.exit(pytest.main(self.test_args))
setup(
name="Flask-Redistore",
version="1.0",
url="",
license="BSD",
author="Donald Stufft",
author_email="donald.stufft@gmail.com",
description="Adds Redis support to your Flask applications",
long_description=open("README.rst").read(),
py_modules=["flask_redistore"],
zip_safe=False,
include_package_data=True,
platforms="any",
install_requires=[
"Flask",
"redis",
],
extras_require={"tests": ["pytest"]},
tests_require=["pytest"],
classifiers=[
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules'
],
cmdclass={"test": PyTest},
)
|
Enable running tests with py.test
|
Enable running tests with py.test
|
Python
|
bsd-2-clause
|
dstufft/Flask-Redistore
|
from setuptools import setup
setup(
name="Flask-Redistore",
version="1.0",
url="",
license="BSD",
author="Donald Stufft",
author_email="donald.stufft@gmail.com",
description="Adds Redis support to your Flask applications",
long_description=open("README.rst").read(),
py_modules=["flask_redistore"],
zip_safe=False,
include_package_data=True,
platforms="any",
install_requires=[
"Flask",
"redis",
],
classifiers=[
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules'
]
)
Enable running tests with py.test
|
import sys
from setuptools import setup
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
#import here, cause outside the eggs aren't loaded
import pytest
sys.exit(pytest.main(self.test_args))
setup(
name="Flask-Redistore",
version="1.0",
url="",
license="BSD",
author="Donald Stufft",
author_email="donald.stufft@gmail.com",
description="Adds Redis support to your Flask applications",
long_description=open("README.rst").read(),
py_modules=["flask_redistore"],
zip_safe=False,
include_package_data=True,
platforms="any",
install_requires=[
"Flask",
"redis",
],
extras_require={"tests": ["pytest"]},
tests_require=["pytest"],
classifiers=[
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules'
],
cmdclass={"test": PyTest},
)
|
<commit_before>from setuptools import setup
setup(
name="Flask-Redistore",
version="1.0",
url="",
license="BSD",
author="Donald Stufft",
author_email="donald.stufft@gmail.com",
description="Adds Redis support to your Flask applications",
long_description=open("README.rst").read(),
py_modules=["flask_redistore"],
zip_safe=False,
include_package_data=True,
platforms="any",
install_requires=[
"Flask",
"redis",
],
classifiers=[
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules'
]
)
<commit_msg>Enable running tests with py.test<commit_after>
|
import sys
from setuptools import setup
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
#import here, cause outside the eggs aren't loaded
import pytest
sys.exit(pytest.main(self.test_args))
setup(
name="Flask-Redistore",
version="1.0",
url="",
license="BSD",
author="Donald Stufft",
author_email="donald.stufft@gmail.com",
description="Adds Redis support to your Flask applications",
long_description=open("README.rst").read(),
py_modules=["flask_redistore"],
zip_safe=False,
include_package_data=True,
platforms="any",
install_requires=[
"Flask",
"redis",
],
extras_require={"tests": ["pytest"]},
tests_require=["pytest"],
classifiers=[
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules'
],
cmdclass={"test": PyTest},
)
|
from setuptools import setup
setup(
name="Flask-Redistore",
version="1.0",
url="",
license="BSD",
author="Donald Stufft",
author_email="donald.stufft@gmail.com",
description="Adds Redis support to your Flask applications",
long_description=open("README.rst").read(),
py_modules=["flask_redistore"],
zip_safe=False,
include_package_data=True,
platforms="any",
install_requires=[
"Flask",
"redis",
],
classifiers=[
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules'
]
)
Enable running tests with py.testimport sys
from setuptools import setup
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
#import here, cause outside the eggs aren't loaded
import pytest
sys.exit(pytest.main(self.test_args))
setup(
name="Flask-Redistore",
version="1.0",
url="",
license="BSD",
author="Donald Stufft",
author_email="donald.stufft@gmail.com",
description="Adds Redis support to your Flask applications",
long_description=open("README.rst").read(),
py_modules=["flask_redistore"],
zip_safe=False,
include_package_data=True,
platforms="any",
install_requires=[
"Flask",
"redis",
],
extras_require={"tests": ["pytest"]},
tests_require=["pytest"],
classifiers=[
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules'
],
cmdclass={"test": PyTest},
)
|
<commit_before>from setuptools import setup
setup(
name="Flask-Redistore",
version="1.0",
url="",
license="BSD",
author="Donald Stufft",
author_email="donald.stufft@gmail.com",
description="Adds Redis support to your Flask applications",
long_description=open("README.rst").read(),
py_modules=["flask_redistore"],
zip_safe=False,
include_package_data=True,
platforms="any",
install_requires=[
"Flask",
"redis",
],
classifiers=[
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules'
]
)
<commit_msg>Enable running tests with py.test<commit_after>import sys
from setuptools import setup
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
#import here, cause outside the eggs aren't loaded
import pytest
sys.exit(pytest.main(self.test_args))
setup(
name="Flask-Redistore",
version="1.0",
url="",
license="BSD",
author="Donald Stufft",
author_email="donald.stufft@gmail.com",
description="Adds Redis support to your Flask applications",
long_description=open("README.rst").read(),
py_modules=["flask_redistore"],
zip_safe=False,
include_package_data=True,
platforms="any",
install_requires=[
"Flask",
"redis",
],
extras_require={"tests": ["pytest"]},
tests_require=["pytest"],
classifiers=[
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules'
],
cmdclass={"test": PyTest},
)
|
d6dcc2162ad24cd46b1b2661f996e6a90f77da94
|
setup.py
|
setup.py
|
#!/usr/bin/env python
from distutils.core import setup
try:
import robofab
except:
print "*** Warning: defcon requires RoboFab, see:"
print " robofab.com"
setup(name="fontMath",
version="0.2",
description="A set of objects for performing math operations on font data.",
author="Tal Leming",
author_email="tal@typesupply.com",
url="http://code.typesupply.com",
license="MIT",
packages=["fontMath"],
package_dir={"":"Lib"}
)
|
#!/usr/bin/env python
from distutils.core import setup
try:
import robofab
except:
print "*** Warning: fontMath requires RoboFab, see:"
print " robofab.com"
setup(name="fontMath",
version="0.2",
description="A set of objects for performing math operations on font data.",
author="Tal Leming",
author_email="tal@typesupply.com",
url="http://code.typesupply.com",
license="MIT",
packages=["fontMath"],
package_dir={"":"Lib"}
)
|
Correct name of package in warning message
|
Correct name of package in warning message
|
Python
|
mit
|
typesupply/fontMath,anthrotype/fontMath,moyogo/fontMath
|
#!/usr/bin/env python
from distutils.core import setup
try:
import robofab
except:
print "*** Warning: defcon requires RoboFab, see:"
print " robofab.com"
setup(name="fontMath",
version="0.2",
description="A set of objects for performing math operations on font data.",
author="Tal Leming",
author_email="tal@typesupply.com",
url="http://code.typesupply.com",
license="MIT",
packages=["fontMath"],
package_dir={"":"Lib"}
)Correct name of package in warning message
|
#!/usr/bin/env python
from distutils.core import setup
try:
import robofab
except:
print "*** Warning: fontMath requires RoboFab, see:"
print " robofab.com"
setup(name="fontMath",
version="0.2",
description="A set of objects for performing math operations on font data.",
author="Tal Leming",
author_email="tal@typesupply.com",
url="http://code.typesupply.com",
license="MIT",
packages=["fontMath"],
package_dir={"":"Lib"}
)
|
<commit_before>#!/usr/bin/env python
from distutils.core import setup
try:
import robofab
except:
print "*** Warning: defcon requires RoboFab, see:"
print " robofab.com"
setup(name="fontMath",
version="0.2",
description="A set of objects for performing math operations on font data.",
author="Tal Leming",
author_email="tal@typesupply.com",
url="http://code.typesupply.com",
license="MIT",
packages=["fontMath"],
package_dir={"":"Lib"}
)<commit_msg>Correct name of package in warning message<commit_after>
|
#!/usr/bin/env python
from distutils.core import setup
try:
import robofab
except:
print "*** Warning: fontMath requires RoboFab, see:"
print " robofab.com"
setup(name="fontMath",
version="0.2",
description="A set of objects for performing math operations on font data.",
author="Tal Leming",
author_email="tal@typesupply.com",
url="http://code.typesupply.com",
license="MIT",
packages=["fontMath"],
package_dir={"":"Lib"}
)
|
#!/usr/bin/env python
from distutils.core import setup
try:
import robofab
except:
print "*** Warning: defcon requires RoboFab, see:"
print " robofab.com"
setup(name="fontMath",
version="0.2",
description="A set of objects for performing math operations on font data.",
author="Tal Leming",
author_email="tal@typesupply.com",
url="http://code.typesupply.com",
license="MIT",
packages=["fontMath"],
package_dir={"":"Lib"}
)Correct name of package in warning message#!/usr/bin/env python
from distutils.core import setup
try:
import robofab
except:
print "*** Warning: fontMath requires RoboFab, see:"
print " robofab.com"
setup(name="fontMath",
version="0.2",
description="A set of objects for performing math operations on font data.",
author="Tal Leming",
author_email="tal@typesupply.com",
url="http://code.typesupply.com",
license="MIT",
packages=["fontMath"],
package_dir={"":"Lib"}
)
|
<commit_before>#!/usr/bin/env python
from distutils.core import setup
try:
import robofab
except:
print "*** Warning: defcon requires RoboFab, see:"
print " robofab.com"
setup(name="fontMath",
version="0.2",
description="A set of objects for performing math operations on font data.",
author="Tal Leming",
author_email="tal@typesupply.com",
url="http://code.typesupply.com",
license="MIT",
packages=["fontMath"],
package_dir={"":"Lib"}
)<commit_msg>Correct name of package in warning message<commit_after>#!/usr/bin/env python
from distutils.core import setup
try:
import robofab
except:
print "*** Warning: fontMath requires RoboFab, see:"
print " robofab.com"
setup(name="fontMath",
version="0.2",
description="A set of objects for performing math operations on font data.",
author="Tal Leming",
author_email="tal@typesupply.com",
url="http://code.typesupply.com",
license="MIT",
packages=["fontMath"],
package_dir={"":"Lib"}
)
|
370aa8094a9a2cc67acc414ceb7f24dd33fd7e68
|
setup.py
|
setup.py
|
from distutils.core import setup
LONG_DESC = """
Unicode URLS in django."""
setup(
name='unicode_urls',
packages=['unicode_urls', 'unicode_urls.django', 'unicode_urls.cms'],
version='0.0.1',
long_description=LONG_DESC,
description='Unicode urls.',
author='Alex Gavrisco',
author_email='alexandr@gavrisco.com',
url='',
download_url='',
keywords=['django', 'urls', 'unicode', 'cms', 'djangocms', 'django-cms'],
license='MIT',
classifiers=[
'Programming Language :: Python',
'Operating System :: OS Independent',
'Natural Language :: English',
'Development Status :: Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
],
install_requires=[
'django>=1.7',
]
)
|
from distutils.core import setup
LONG_DESC = """
Unicode URLS in django."""
setup(
name='unicode_urls',
packages=['unicode_urls', 'unicode_urls.django', 'unicode_urls.cms'],
version='0.2.1',
long_description=LONG_DESC,
description='Unicode urls.',
author='Alex Gavrisco',
author_email='alexandr@gavrisco.com',
url='',
download_url='',
keywords=['django', 'urls', 'unicode', 'cms', 'djangocms', 'django-cms'],
license='MIT',
classifiers=[
'Programming Language :: Python',
'Operating System :: OS Independent',
'Natural Language :: English',
'Development Status :: Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
]
)
|
Fix package version and remove django from list of required packages.
|
Fix package version and remove django from list of required packages.
|
Python
|
mit
|
Alexx-G/django-unicode-urls
|
from distutils.core import setup
LONG_DESC = """
Unicode URLS in django."""
setup(
name='unicode_urls',
packages=['unicode_urls', 'unicode_urls.django', 'unicode_urls.cms'],
version='0.0.1',
long_description=LONG_DESC,
description='Unicode urls.',
author='Alex Gavrisco',
author_email='alexandr@gavrisco.com',
url='',
download_url='',
keywords=['django', 'urls', 'unicode', 'cms', 'djangocms', 'django-cms'],
license='MIT',
classifiers=[
'Programming Language :: Python',
'Operating System :: OS Independent',
'Natural Language :: English',
'Development Status :: Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
],
install_requires=[
'django>=1.7',
]
)
Fix package version and remove django from list of required packages.
|
from distutils.core import setup
LONG_DESC = """
Unicode URLS in django."""
setup(
name='unicode_urls',
packages=['unicode_urls', 'unicode_urls.django', 'unicode_urls.cms'],
version='0.2.1',
long_description=LONG_DESC,
description='Unicode urls.',
author='Alex Gavrisco',
author_email='alexandr@gavrisco.com',
url='',
download_url='',
keywords=['django', 'urls', 'unicode', 'cms', 'djangocms', 'django-cms'],
license='MIT',
classifiers=[
'Programming Language :: Python',
'Operating System :: OS Independent',
'Natural Language :: English',
'Development Status :: Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
]
)
|
<commit_before>from distutils.core import setup
LONG_DESC = """
Unicode URLS in django."""
setup(
name='unicode_urls',
packages=['unicode_urls', 'unicode_urls.django', 'unicode_urls.cms'],
version='0.0.1',
long_description=LONG_DESC,
description='Unicode urls.',
author='Alex Gavrisco',
author_email='alexandr@gavrisco.com',
url='',
download_url='',
keywords=['django', 'urls', 'unicode', 'cms', 'djangocms', 'django-cms'],
license='MIT',
classifiers=[
'Programming Language :: Python',
'Operating System :: OS Independent',
'Natural Language :: English',
'Development Status :: Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
],
install_requires=[
'django>=1.7',
]
)
<commit_msg>Fix package version and remove django from list of required packages.<commit_after>
|
from distutils.core import setup
LONG_DESC = """
Unicode URLS in django."""
setup(
name='unicode_urls',
packages=['unicode_urls', 'unicode_urls.django', 'unicode_urls.cms'],
version='0.2.1',
long_description=LONG_DESC,
description='Unicode urls.',
author='Alex Gavrisco',
author_email='alexandr@gavrisco.com',
url='',
download_url='',
keywords=['django', 'urls', 'unicode', 'cms', 'djangocms', 'django-cms'],
license='MIT',
classifiers=[
'Programming Language :: Python',
'Operating System :: OS Independent',
'Natural Language :: English',
'Development Status :: Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
]
)
|
from distutils.core import setup
LONG_DESC = """
Unicode URLS in django."""
setup(
name='unicode_urls',
packages=['unicode_urls', 'unicode_urls.django', 'unicode_urls.cms'],
version='0.0.1',
long_description=LONG_DESC,
description='Unicode urls.',
author='Alex Gavrisco',
author_email='alexandr@gavrisco.com',
url='',
download_url='',
keywords=['django', 'urls', 'unicode', 'cms', 'djangocms', 'django-cms'],
license='MIT',
classifiers=[
'Programming Language :: Python',
'Operating System :: OS Independent',
'Natural Language :: English',
'Development Status :: Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
],
install_requires=[
'django>=1.7',
]
)
Fix package version and remove django from list of required packages.from distutils.core import setup
LONG_DESC = """
Unicode URLS in django."""
setup(
name='unicode_urls',
packages=['unicode_urls', 'unicode_urls.django', 'unicode_urls.cms'],
version='0.2.1',
long_description=LONG_DESC,
description='Unicode urls.',
author='Alex Gavrisco',
author_email='alexandr@gavrisco.com',
url='',
download_url='',
keywords=['django', 'urls', 'unicode', 'cms', 'djangocms', 'django-cms'],
license='MIT',
classifiers=[
'Programming Language :: Python',
'Operating System :: OS Independent',
'Natural Language :: English',
'Development Status :: Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
]
)
|
<commit_before>from distutils.core import setup
LONG_DESC = """
Unicode URLS in django."""
setup(
name='unicode_urls',
packages=['unicode_urls', 'unicode_urls.django', 'unicode_urls.cms'],
version='0.0.1',
long_description=LONG_DESC,
description='Unicode urls.',
author='Alex Gavrisco',
author_email='alexandr@gavrisco.com',
url='',
download_url='',
keywords=['django', 'urls', 'unicode', 'cms', 'djangocms', 'django-cms'],
license='MIT',
classifiers=[
'Programming Language :: Python',
'Operating System :: OS Independent',
'Natural Language :: English',
'Development Status :: Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
],
install_requires=[
'django>=1.7',
]
)
<commit_msg>Fix package version and remove django from list of required packages.<commit_after>from distutils.core import setup
LONG_DESC = """
Unicode URLS in django."""
setup(
name='unicode_urls',
packages=['unicode_urls', 'unicode_urls.django', 'unicode_urls.cms'],
version='0.2.1',
long_description=LONG_DESC,
description='Unicode urls.',
author='Alex Gavrisco',
author_email='alexandr@gavrisco.com',
url='',
download_url='',
keywords=['django', 'urls', 'unicode', 'cms', 'djangocms', 'django-cms'],
license='MIT',
classifiers=[
'Programming Language :: Python',
'Operating System :: OS Independent',
'Natural Language :: English',
'Development Status :: Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
]
)
|
a0a0a92e6cf1e2f0f288c46d75c66ec74e0b08be
|
setup.py
|
setup.py
|
from setuptools import setup, find_packages
setup(
name="voltron",
version="0.1",
author="snare",
author_email="snare@ho.ax",
description=("A UI for GDB & LLDB"),
license="Buy snare a beer",
keywords="voltron gdb lldb",
url="https://github.com/snarez/voltron",
packages=find_packages(),
install_requires=['scruffington', 'flask', 'blessed', 'pygments', 'requests_unixsocket'],
data_files=['dbgentry.py'],
package_data={'voltron': ['config/*']},
install_package_data=True,
entry_points={
'console_scripts': ['voltron=voltron:main']
},
zip_safe=False
)
|
from setuptools import setup, find_packages
setup(
name="voltron",
version="0.1",
author="snare",
author_email="snare@ho.ax",
description=("A UI for GDB & LLDB"),
license="Buy snare a beer",
keywords="voltron gdb lldb",
url="https://github.com/snarez/voltron",
packages=['voltron'],
install_requires=['scruffington', 'flask', 'blessed', 'pygments', 'requests_unixsocket'],
data_files=['dbgentry.py'],
package_data={'voltron': ['config/*']},
install_package_data=True,
entry_points={
'console_scripts': ['voltron=voltron:main']
},
zip_safe=False
)
|
Fix install per \@8BitAce's PR
|
Fix install per \@8BitAce's PR
|
Python
|
mit
|
snare/voltron,snare/voltron,snare/voltron,snare/voltron
|
from setuptools import setup, find_packages
setup(
name="voltron",
version="0.1",
author="snare",
author_email="snare@ho.ax",
description=("A UI for GDB & LLDB"),
license="Buy snare a beer",
keywords="voltron gdb lldb",
url="https://github.com/snarez/voltron",
packages=find_packages(),
install_requires=['scruffington', 'flask', 'blessed', 'pygments', 'requests_unixsocket'],
data_files=['dbgentry.py'],
package_data={'voltron': ['config/*']},
install_package_data=True,
entry_points={
'console_scripts': ['voltron=voltron:main']
},
zip_safe=False
)
Fix install per \@8BitAce's PR
|
from setuptools import setup, find_packages
setup(
name="voltron",
version="0.1",
author="snare",
author_email="snare@ho.ax",
description=("A UI for GDB & LLDB"),
license="Buy snare a beer",
keywords="voltron gdb lldb",
url="https://github.com/snarez/voltron",
packages=['voltron'],
install_requires=['scruffington', 'flask', 'blessed', 'pygments', 'requests_unixsocket'],
data_files=['dbgentry.py'],
package_data={'voltron': ['config/*']},
install_package_data=True,
entry_points={
'console_scripts': ['voltron=voltron:main']
},
zip_safe=False
)
|
<commit_before>from setuptools import setup, find_packages
setup(
name="voltron",
version="0.1",
author="snare",
author_email="snare@ho.ax",
description=("A UI for GDB & LLDB"),
license="Buy snare a beer",
keywords="voltron gdb lldb",
url="https://github.com/snarez/voltron",
packages=find_packages(),
install_requires=['scruffington', 'flask', 'blessed', 'pygments', 'requests_unixsocket'],
data_files=['dbgentry.py'],
package_data={'voltron': ['config/*']},
install_package_data=True,
entry_points={
'console_scripts': ['voltron=voltron:main']
},
zip_safe=False
)
<commit_msg>Fix install per \@8BitAce's PR<commit_after>
|
from setuptools import setup, find_packages
setup(
name="voltron",
version="0.1",
author="snare",
author_email="snare@ho.ax",
description=("A UI for GDB & LLDB"),
license="Buy snare a beer",
keywords="voltron gdb lldb",
url="https://github.com/snarez/voltron",
packages=['voltron'],
install_requires=['scruffington', 'flask', 'blessed', 'pygments', 'requests_unixsocket'],
data_files=['dbgentry.py'],
package_data={'voltron': ['config/*']},
install_package_data=True,
entry_points={
'console_scripts': ['voltron=voltron:main']
},
zip_safe=False
)
|
from setuptools import setup, find_packages
setup(
name="voltron",
version="0.1",
author="snare",
author_email="snare@ho.ax",
description=("A UI for GDB & LLDB"),
license="Buy snare a beer",
keywords="voltron gdb lldb",
url="https://github.com/snarez/voltron",
packages=find_packages(),
install_requires=['scruffington', 'flask', 'blessed', 'pygments', 'requests_unixsocket'],
data_files=['dbgentry.py'],
package_data={'voltron': ['config/*']},
install_package_data=True,
entry_points={
'console_scripts': ['voltron=voltron:main']
},
zip_safe=False
)
Fix install per \@8BitAce's PRfrom setuptools import setup, find_packages
setup(
name="voltron",
version="0.1",
author="snare",
author_email="snare@ho.ax",
description=("A UI for GDB & LLDB"),
license="Buy snare a beer",
keywords="voltron gdb lldb",
url="https://github.com/snarez/voltron",
packages=['voltron'],
install_requires=['scruffington', 'flask', 'blessed', 'pygments', 'requests_unixsocket'],
data_files=['dbgentry.py'],
package_data={'voltron': ['config/*']},
install_package_data=True,
entry_points={
'console_scripts': ['voltron=voltron:main']
},
zip_safe=False
)
|
<commit_before>from setuptools import setup, find_packages
setup(
name="voltron",
version="0.1",
author="snare",
author_email="snare@ho.ax",
description=("A UI for GDB & LLDB"),
license="Buy snare a beer",
keywords="voltron gdb lldb",
url="https://github.com/snarez/voltron",
packages=find_packages(),
install_requires=['scruffington', 'flask', 'blessed', 'pygments', 'requests_unixsocket'],
data_files=['dbgentry.py'],
package_data={'voltron': ['config/*']},
install_package_data=True,
entry_points={
'console_scripts': ['voltron=voltron:main']
},
zip_safe=False
)
<commit_msg>Fix install per \@8BitAce's PR<commit_after>from setuptools import setup, find_packages
setup(
name="voltron",
version="0.1",
author="snare",
author_email="snare@ho.ax",
description=("A UI for GDB & LLDB"),
license="Buy snare a beer",
keywords="voltron gdb lldb",
url="https://github.com/snarez/voltron",
packages=['voltron'],
install_requires=['scruffington', 'flask', 'blessed', 'pygments', 'requests_unixsocket'],
data_files=['dbgentry.py'],
package_data={'voltron': ['config/*']},
install_package_data=True,
entry_points={
'console_scripts': ['voltron=voltron:main']
},
zip_safe=False
)
|
c62a0ceecd9067dad757d3def34ce747557b2509
|
setup.py
|
setup.py
|
#!/usr/bin/env python
# coding: utf-8
from setuptools import setup, find_packages
setup(
name="bentoo",
description="Benchmarking tools",
version="0.15",
packages=find_packages(),
scripts=["scripts/bentoo-generator.py", "scripts/bentoo-runner.py",
"scripts/bentoo-collector.py", "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.16.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.15",
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.16.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.15",
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.16.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.15",
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.16.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.15",
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.16.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")
|
372b39cb1e4537b2f3221e71e310a4c928a81468
|
tests/func/import/imported_actions/by_decorator_action_name/base_actions.py
|
tests/func/import/imported_actions/by_decorator_action_name/base_actions.py
|
from parglare.actions import get_action_decorator
action = get_action_decorator()
@action('number')
def NUMERIC(_, value):
return float(value)
|
from __future__ import unicode_literals
from parglare.actions import get_action_decorator
action = get_action_decorator()
@action('number')
def NUMERIC(_, value):
return float(value)
|
Test fix for Python 2.
|
Test fix for Python 2.
|
Python
|
mit
|
igordejanovic/parglare,igordejanovic/parglare
|
from parglare.actions import get_action_decorator
action = get_action_decorator()
@action('number')
def NUMERIC(_, value):
return float(value)
Test fix for Python 2.
|
from __future__ import unicode_literals
from parglare.actions import get_action_decorator
action = get_action_decorator()
@action('number')
def NUMERIC(_, value):
return float(value)
|
<commit_before>from parglare.actions import get_action_decorator
action = get_action_decorator()
@action('number')
def NUMERIC(_, value):
return float(value)
<commit_msg>Test fix for Python 2.<commit_after>
|
from __future__ import unicode_literals
from parglare.actions import get_action_decorator
action = get_action_decorator()
@action('number')
def NUMERIC(_, value):
return float(value)
|
from parglare.actions import get_action_decorator
action = get_action_decorator()
@action('number')
def NUMERIC(_, value):
return float(value)
Test fix for Python 2.from __future__ import unicode_literals
from parglare.actions import get_action_decorator
action = get_action_decorator()
@action('number')
def NUMERIC(_, value):
return float(value)
|
<commit_before>from parglare.actions import get_action_decorator
action = get_action_decorator()
@action('number')
def NUMERIC(_, value):
return float(value)
<commit_msg>Test fix for Python 2.<commit_after>from __future__ import unicode_literals
from parglare.actions import get_action_decorator
action = get_action_decorator()
@action('number')
def NUMERIC(_, value):
return float(value)
|
551b96a3a2f354b6aa281546a32a08f70c31c03f
|
mysite/views/testmode_switch.py
|
mysite/views/testmode_switch.py
|
from flask import redirect
from mysite.viewcore import viewcore
from mysite.test.FileSystemStub import FileSystemStub
from mysite.core import FileSystem
from mysite.viewcore import configuration_provider
def leave_debug(request):
viewcore.switch_database_instance(request.GET['database'])
return redirect('/dashboard/', code=301)
def enter_testmode(request):
FileSystem.INSTANCE = FileSystemStub()
viewcore.DATABASE_INSTANCE = None
viewcore.DATABASES = ['test']
viewcore.CONTEXT = {}
configuration_provider.LOADED_CONFIG = None
configuration_provider.set_configuration('PARTNERNAME', 'Maureen')
print('WARNUNG: ENTERING TESTMODE')
return redirect('/', code=301)
|
from flask import redirect
from mysite.viewcore import viewcore
from mysite.test.FileSystemStub import FileSystemStub
from mysite.core import FileSystem
from mysite.viewcore import configuration_provider
def leave_debug(request):
viewcore.switch_database_instance(request.args['database'])
return redirect('/', code=301)
def enter_testmode(request):
FileSystem.INSTANCE = FileSystemStub()
viewcore.DATABASE_INSTANCE = None
viewcore.DATABASES = ['test']
viewcore.CONTEXT = {}
configuration_provider.LOADED_CONFIG = None
configuration_provider.set_configuration('PARTNERNAME', 'Maureen')
print('WARNUNG: ENTERING TESTMODE')
return redirect('/', code=301)
|
Fix a redirect error and adjust request object method call.
|
Fix a redirect error and adjust request object method call.
|
Python
|
agpl-3.0
|
RosesTheN00b/BudgetButlerWeb,RosesTheN00b/BudgetButlerWeb,RosesTheN00b/BudgetButlerWeb,RosesTheN00b/BudgetButlerWeb,RosesTheN00b/BudgetButlerWeb,RosesTheN00b/BudgetButlerWeb
|
from flask import redirect
from mysite.viewcore import viewcore
from mysite.test.FileSystemStub import FileSystemStub
from mysite.core import FileSystem
from mysite.viewcore import configuration_provider
def leave_debug(request):
viewcore.switch_database_instance(request.GET['database'])
return redirect('/dashboard/', code=301)
def enter_testmode(request):
FileSystem.INSTANCE = FileSystemStub()
viewcore.DATABASE_INSTANCE = None
viewcore.DATABASES = ['test']
viewcore.CONTEXT = {}
configuration_provider.LOADED_CONFIG = None
configuration_provider.set_configuration('PARTNERNAME', 'Maureen')
print('WARNUNG: ENTERING TESTMODE')
return redirect('/', code=301)
Fix a redirect error and adjust request object method call.
|
from flask import redirect
from mysite.viewcore import viewcore
from mysite.test.FileSystemStub import FileSystemStub
from mysite.core import FileSystem
from mysite.viewcore import configuration_provider
def leave_debug(request):
viewcore.switch_database_instance(request.args['database'])
return redirect('/', code=301)
def enter_testmode(request):
FileSystem.INSTANCE = FileSystemStub()
viewcore.DATABASE_INSTANCE = None
viewcore.DATABASES = ['test']
viewcore.CONTEXT = {}
configuration_provider.LOADED_CONFIG = None
configuration_provider.set_configuration('PARTNERNAME', 'Maureen')
print('WARNUNG: ENTERING TESTMODE')
return redirect('/', code=301)
|
<commit_before>from flask import redirect
from mysite.viewcore import viewcore
from mysite.test.FileSystemStub import FileSystemStub
from mysite.core import FileSystem
from mysite.viewcore import configuration_provider
def leave_debug(request):
viewcore.switch_database_instance(request.GET['database'])
return redirect('/dashboard/', code=301)
def enter_testmode(request):
FileSystem.INSTANCE = FileSystemStub()
viewcore.DATABASE_INSTANCE = None
viewcore.DATABASES = ['test']
viewcore.CONTEXT = {}
configuration_provider.LOADED_CONFIG = None
configuration_provider.set_configuration('PARTNERNAME', 'Maureen')
print('WARNUNG: ENTERING TESTMODE')
return redirect('/', code=301)
<commit_msg>Fix a redirect error and adjust request object method call.<commit_after>
|
from flask import redirect
from mysite.viewcore import viewcore
from mysite.test.FileSystemStub import FileSystemStub
from mysite.core import FileSystem
from mysite.viewcore import configuration_provider
def leave_debug(request):
viewcore.switch_database_instance(request.args['database'])
return redirect('/', code=301)
def enter_testmode(request):
FileSystem.INSTANCE = FileSystemStub()
viewcore.DATABASE_INSTANCE = None
viewcore.DATABASES = ['test']
viewcore.CONTEXT = {}
configuration_provider.LOADED_CONFIG = None
configuration_provider.set_configuration('PARTNERNAME', 'Maureen')
print('WARNUNG: ENTERING TESTMODE')
return redirect('/', code=301)
|
from flask import redirect
from mysite.viewcore import viewcore
from mysite.test.FileSystemStub import FileSystemStub
from mysite.core import FileSystem
from mysite.viewcore import configuration_provider
def leave_debug(request):
viewcore.switch_database_instance(request.GET['database'])
return redirect('/dashboard/', code=301)
def enter_testmode(request):
FileSystem.INSTANCE = FileSystemStub()
viewcore.DATABASE_INSTANCE = None
viewcore.DATABASES = ['test']
viewcore.CONTEXT = {}
configuration_provider.LOADED_CONFIG = None
configuration_provider.set_configuration('PARTNERNAME', 'Maureen')
print('WARNUNG: ENTERING TESTMODE')
return redirect('/', code=301)
Fix a redirect error and adjust request object method call.from flask import redirect
from mysite.viewcore import viewcore
from mysite.test.FileSystemStub import FileSystemStub
from mysite.core import FileSystem
from mysite.viewcore import configuration_provider
def leave_debug(request):
viewcore.switch_database_instance(request.args['database'])
return redirect('/', code=301)
def enter_testmode(request):
FileSystem.INSTANCE = FileSystemStub()
viewcore.DATABASE_INSTANCE = None
viewcore.DATABASES = ['test']
viewcore.CONTEXT = {}
configuration_provider.LOADED_CONFIG = None
configuration_provider.set_configuration('PARTNERNAME', 'Maureen')
print('WARNUNG: ENTERING TESTMODE')
return redirect('/', code=301)
|
<commit_before>from flask import redirect
from mysite.viewcore import viewcore
from mysite.test.FileSystemStub import FileSystemStub
from mysite.core import FileSystem
from mysite.viewcore import configuration_provider
def leave_debug(request):
viewcore.switch_database_instance(request.GET['database'])
return redirect('/dashboard/', code=301)
def enter_testmode(request):
FileSystem.INSTANCE = FileSystemStub()
viewcore.DATABASE_INSTANCE = None
viewcore.DATABASES = ['test']
viewcore.CONTEXT = {}
configuration_provider.LOADED_CONFIG = None
configuration_provider.set_configuration('PARTNERNAME', 'Maureen')
print('WARNUNG: ENTERING TESTMODE')
return redirect('/', code=301)
<commit_msg>Fix a redirect error and adjust request object method call.<commit_after>from flask import redirect
from mysite.viewcore import viewcore
from mysite.test.FileSystemStub import FileSystemStub
from mysite.core import FileSystem
from mysite.viewcore import configuration_provider
def leave_debug(request):
viewcore.switch_database_instance(request.args['database'])
return redirect('/', code=301)
def enter_testmode(request):
FileSystem.INSTANCE = FileSystemStub()
viewcore.DATABASE_INSTANCE = None
viewcore.DATABASES = ['test']
viewcore.CONTEXT = {}
configuration_provider.LOADED_CONFIG = None
configuration_provider.set_configuration('PARTNERNAME', 'Maureen')
print('WARNUNG: ENTERING TESTMODE')
return redirect('/', code=301)
|
b540d5c3943f6a21232428ecf717667c6beb48d5
|
dmp/__init__.py
|
dmp/__init__.py
|
"""
.. Copyright 2016 EMBL-European Bioinformatics Institute
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by 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.
"""
import dmp
import rest
__author__ = 'Mark McDowall'
__version__ = 'v0.0'
__license__ = 'Apache 2.0'
|
"""
.. Copyright 2016 EMBL-European Bioinformatics Institute
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by 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.
"""
import dmp.dmp
import rest.rest
__author__ = 'Mark McDowall'
__version__ = '0.0'
__license__ = 'Apache 2.0'
|
Change to try and improve importability
|
Change to try and improve importability
|
Python
|
apache-2.0
|
Multiscale-Genomics/mg-dm-api,Multiscale-Genomics/mg-dm-api
|
"""
.. Copyright 2016 EMBL-European Bioinformatics Institute
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by 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.
"""
import dmp
import rest
__author__ = 'Mark McDowall'
__version__ = 'v0.0'
__license__ = 'Apache 2.0'
Change to try and improve importability
|
"""
.. Copyright 2016 EMBL-European Bioinformatics Institute
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by 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.
"""
import dmp.dmp
import rest.rest
__author__ = 'Mark McDowall'
__version__ = '0.0'
__license__ = 'Apache 2.0'
|
<commit_before>"""
.. Copyright 2016 EMBL-European Bioinformatics Institute
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by 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.
"""
import dmp
import rest
__author__ = 'Mark McDowall'
__version__ = 'v0.0'
__license__ = 'Apache 2.0'
<commit_msg>Change to try and improve importability<commit_after>
|
"""
.. Copyright 2016 EMBL-European Bioinformatics Institute
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by 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.
"""
import dmp.dmp
import rest.rest
__author__ = 'Mark McDowall'
__version__ = '0.0'
__license__ = 'Apache 2.0'
|
"""
.. Copyright 2016 EMBL-European Bioinformatics Institute
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by 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.
"""
import dmp
import rest
__author__ = 'Mark McDowall'
__version__ = 'v0.0'
__license__ = 'Apache 2.0'
Change to try and improve importability"""
.. Copyright 2016 EMBL-European Bioinformatics Institute
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by 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.
"""
import dmp.dmp
import rest.rest
__author__ = 'Mark McDowall'
__version__ = '0.0'
__license__ = 'Apache 2.0'
|
<commit_before>"""
.. Copyright 2016 EMBL-European Bioinformatics Institute
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by 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.
"""
import dmp
import rest
__author__ = 'Mark McDowall'
__version__ = 'v0.0'
__license__ = 'Apache 2.0'
<commit_msg>Change to try and improve importability<commit_after>"""
.. Copyright 2016 EMBL-European Bioinformatics Institute
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by 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.
"""
import dmp.dmp
import rest.rest
__author__ = 'Mark McDowall'
__version__ = '0.0'
__license__ = 'Apache 2.0'
|
6c6e8d17bce3976a2ef766139f3692a78df2d0c4
|
tests/unit/cloud/clouds/test_saltify.py
|
tests/unit/cloud/clouds/test_saltify.py
|
# -*- coding: utf-8 -*-
'''
:codeauthor: :email:`Alexander Schwartz <alexander.schwartz@gmx.net>`
'''
# Import Python libs
from __future__ import absolute_import
# Import Salt Testing Libs
from tests.support.unit import TestCase
from tests.support.mock import MagicMock
# Import Salt Libs
from salt.cloud.clouds import saltify
# Globals
saltify.__opts__ = {}
saltify.__opts__['providers'] = {}
saltify.__utils__ = {}
saltify.__utils__['cloud.bootstrap'] = MagicMock()
class SaltifyTestCase(TestCase):
'''
Test cases for salt.cloud.clouds.saltify
'''
# 'create' function tests: 1
def test_create_no_deploy(self):
'''
Test if deployment fails. This is the most basic test as saltify doesn't contain much logic
'''
vm = {'deploy': False,
'provider': 'saltify',
'name': 'dummy'
}
self.assertTrue(saltify.create(vm)['Error']['No Deploy'])
|
# -*- coding: utf-8 -*-
'''
:codeauthor: :email:`Alexander Schwartz <alexander.schwartz@gmx.net>`
'''
# Import Python libs
from __future__ import absolute_import
# Import Salt Testing Libs
from tests.support.unit import TestCase
from tests.support.mock import (
MagicMock,
patch
)
# Import Salt Libs
from salt.cloud.clouds import saltify
# Globals
saltify.__opts__ = {}
saltify.__opts__['providers'] = {}
saltify.__utils__ = {}
saltify.__utils__['cloud.bootstrap'] = MagicMock()
class SaltifyTestCase(TestCase):
'''
Test cases for salt.cloud.clouds.saltify
'''
# 'create' function tests: 1
@patch('salt.cloud.clouds.saltify._verify', MagicMock(return_value=True))
def test_create_no_deploy(self):
'''
Test if deployment fails. This is the most basic test as saltify doesn't contain much logic
'''
vm = {'deploy': False,
'driver': 'saltify',
'name': 'dummy'
}
self.assertTrue(saltify.create(vm))
|
Update unit test for Saltify with credential verification
|
Update unit test for Saltify with credential verification
|
Python
|
apache-2.0
|
saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt
|
# -*- coding: utf-8 -*-
'''
:codeauthor: :email:`Alexander Schwartz <alexander.schwartz@gmx.net>`
'''
# Import Python libs
from __future__ import absolute_import
# Import Salt Testing Libs
from tests.support.unit import TestCase
from tests.support.mock import MagicMock
# Import Salt Libs
from salt.cloud.clouds import saltify
# Globals
saltify.__opts__ = {}
saltify.__opts__['providers'] = {}
saltify.__utils__ = {}
saltify.__utils__['cloud.bootstrap'] = MagicMock()
class SaltifyTestCase(TestCase):
'''
Test cases for salt.cloud.clouds.saltify
'''
# 'create' function tests: 1
def test_create_no_deploy(self):
'''
Test if deployment fails. This is the most basic test as saltify doesn't contain much logic
'''
vm = {'deploy': False,
'provider': 'saltify',
'name': 'dummy'
}
self.assertTrue(saltify.create(vm)['Error']['No Deploy'])
Update unit test for Saltify with credential verification
|
# -*- coding: utf-8 -*-
'''
:codeauthor: :email:`Alexander Schwartz <alexander.schwartz@gmx.net>`
'''
# Import Python libs
from __future__ import absolute_import
# Import Salt Testing Libs
from tests.support.unit import TestCase
from tests.support.mock import (
MagicMock,
patch
)
# Import Salt Libs
from salt.cloud.clouds import saltify
# Globals
saltify.__opts__ = {}
saltify.__opts__['providers'] = {}
saltify.__utils__ = {}
saltify.__utils__['cloud.bootstrap'] = MagicMock()
class SaltifyTestCase(TestCase):
'''
Test cases for salt.cloud.clouds.saltify
'''
# 'create' function tests: 1
@patch('salt.cloud.clouds.saltify._verify', MagicMock(return_value=True))
def test_create_no_deploy(self):
'''
Test if deployment fails. This is the most basic test as saltify doesn't contain much logic
'''
vm = {'deploy': False,
'driver': 'saltify',
'name': 'dummy'
}
self.assertTrue(saltify.create(vm))
|
<commit_before># -*- coding: utf-8 -*-
'''
:codeauthor: :email:`Alexander Schwartz <alexander.schwartz@gmx.net>`
'''
# Import Python libs
from __future__ import absolute_import
# Import Salt Testing Libs
from tests.support.unit import TestCase
from tests.support.mock import MagicMock
# Import Salt Libs
from salt.cloud.clouds import saltify
# Globals
saltify.__opts__ = {}
saltify.__opts__['providers'] = {}
saltify.__utils__ = {}
saltify.__utils__['cloud.bootstrap'] = MagicMock()
class SaltifyTestCase(TestCase):
'''
Test cases for salt.cloud.clouds.saltify
'''
# 'create' function tests: 1
def test_create_no_deploy(self):
'''
Test if deployment fails. This is the most basic test as saltify doesn't contain much logic
'''
vm = {'deploy': False,
'provider': 'saltify',
'name': 'dummy'
}
self.assertTrue(saltify.create(vm)['Error']['No Deploy'])
<commit_msg>Update unit test for Saltify with credential verification<commit_after>
|
# -*- coding: utf-8 -*-
'''
:codeauthor: :email:`Alexander Schwartz <alexander.schwartz@gmx.net>`
'''
# Import Python libs
from __future__ import absolute_import
# Import Salt Testing Libs
from tests.support.unit import TestCase
from tests.support.mock import (
MagicMock,
patch
)
# Import Salt Libs
from salt.cloud.clouds import saltify
# Globals
saltify.__opts__ = {}
saltify.__opts__['providers'] = {}
saltify.__utils__ = {}
saltify.__utils__['cloud.bootstrap'] = MagicMock()
class SaltifyTestCase(TestCase):
'''
Test cases for salt.cloud.clouds.saltify
'''
# 'create' function tests: 1
@patch('salt.cloud.clouds.saltify._verify', MagicMock(return_value=True))
def test_create_no_deploy(self):
'''
Test if deployment fails. This is the most basic test as saltify doesn't contain much logic
'''
vm = {'deploy': False,
'driver': 'saltify',
'name': 'dummy'
}
self.assertTrue(saltify.create(vm))
|
# -*- coding: utf-8 -*-
'''
:codeauthor: :email:`Alexander Schwartz <alexander.schwartz@gmx.net>`
'''
# Import Python libs
from __future__ import absolute_import
# Import Salt Testing Libs
from tests.support.unit import TestCase
from tests.support.mock import MagicMock
# Import Salt Libs
from salt.cloud.clouds import saltify
# Globals
saltify.__opts__ = {}
saltify.__opts__['providers'] = {}
saltify.__utils__ = {}
saltify.__utils__['cloud.bootstrap'] = MagicMock()
class SaltifyTestCase(TestCase):
'''
Test cases for salt.cloud.clouds.saltify
'''
# 'create' function tests: 1
def test_create_no_deploy(self):
'''
Test if deployment fails. This is the most basic test as saltify doesn't contain much logic
'''
vm = {'deploy': False,
'provider': 'saltify',
'name': 'dummy'
}
self.assertTrue(saltify.create(vm)['Error']['No Deploy'])
Update unit test for Saltify with credential verification# -*- coding: utf-8 -*-
'''
:codeauthor: :email:`Alexander Schwartz <alexander.schwartz@gmx.net>`
'''
# Import Python libs
from __future__ import absolute_import
# Import Salt Testing Libs
from tests.support.unit import TestCase
from tests.support.mock import (
MagicMock,
patch
)
# Import Salt Libs
from salt.cloud.clouds import saltify
# Globals
saltify.__opts__ = {}
saltify.__opts__['providers'] = {}
saltify.__utils__ = {}
saltify.__utils__['cloud.bootstrap'] = MagicMock()
class SaltifyTestCase(TestCase):
'''
Test cases for salt.cloud.clouds.saltify
'''
# 'create' function tests: 1
@patch('salt.cloud.clouds.saltify._verify', MagicMock(return_value=True))
def test_create_no_deploy(self):
'''
Test if deployment fails. This is the most basic test as saltify doesn't contain much logic
'''
vm = {'deploy': False,
'driver': 'saltify',
'name': 'dummy'
}
self.assertTrue(saltify.create(vm))
|
<commit_before># -*- coding: utf-8 -*-
'''
:codeauthor: :email:`Alexander Schwartz <alexander.schwartz@gmx.net>`
'''
# Import Python libs
from __future__ import absolute_import
# Import Salt Testing Libs
from tests.support.unit import TestCase
from tests.support.mock import MagicMock
# Import Salt Libs
from salt.cloud.clouds import saltify
# Globals
saltify.__opts__ = {}
saltify.__opts__['providers'] = {}
saltify.__utils__ = {}
saltify.__utils__['cloud.bootstrap'] = MagicMock()
class SaltifyTestCase(TestCase):
'''
Test cases for salt.cloud.clouds.saltify
'''
# 'create' function tests: 1
def test_create_no_deploy(self):
'''
Test if deployment fails. This is the most basic test as saltify doesn't contain much logic
'''
vm = {'deploy': False,
'provider': 'saltify',
'name': 'dummy'
}
self.assertTrue(saltify.create(vm)['Error']['No Deploy'])
<commit_msg>Update unit test for Saltify with credential verification<commit_after># -*- coding: utf-8 -*-
'''
:codeauthor: :email:`Alexander Schwartz <alexander.schwartz@gmx.net>`
'''
# Import Python libs
from __future__ import absolute_import
# Import Salt Testing Libs
from tests.support.unit import TestCase
from tests.support.mock import (
MagicMock,
patch
)
# Import Salt Libs
from salt.cloud.clouds import saltify
# Globals
saltify.__opts__ = {}
saltify.__opts__['providers'] = {}
saltify.__utils__ = {}
saltify.__utils__['cloud.bootstrap'] = MagicMock()
class SaltifyTestCase(TestCase):
'''
Test cases for salt.cloud.clouds.saltify
'''
# 'create' function tests: 1
@patch('salt.cloud.clouds.saltify._verify', MagicMock(return_value=True))
def test_create_no_deploy(self):
'''
Test if deployment fails. This is the most basic test as saltify doesn't contain much logic
'''
vm = {'deploy': False,
'driver': 'saltify',
'name': 'dummy'
}
self.assertTrue(saltify.create(vm))
|
f9fa16fb2bc04d6bdddf19a939291e39b0fa1741
|
ores/wsgi/routes/v3/precache.py
|
ores/wsgi/routes/v3/precache.py
|
import json
import logging
from urllib.parse import unquote
from flask import request
from . import scores
from ... import preprocessors, responses, util
logger = logging.getLogger(__name__)
def configure(config, bp, scoring_system):
precache_map = util.build_precache_map(config)
@bp.route("/v3/precache/", methods=["POST"])
@preprocessors.nocache
@preprocessors.minifiable
def precache_v3():
if 'event' not in request.form:
return responses.bad_request(
"Must provide an 'event' parameter")
try:
event = json.loads(unquote(request.form['event']).strip())
except json.JSONDecodeError:
return responses.bad_request(
"Can not parse event argument as JSON blob")
score_request = util.build_score_request_from_event(precache_map, event)
if not score_request:
return responses.no_content()
else:
return scores.process_score_request(score_request)
return bp
|
import logging
from flask import request
from . import scores
from ... import preprocessors, responses, util
logger = logging.getLogger(__name__)
def configure(config, bp, scoring_system):
precache_map = util.build_precache_map(config)
@bp.route("/v3/precache/", methods=["POST"])
@preprocessors.nocache
@preprocessors.minifiable
def precache_v3():
event = request.get_json()
if event is None:
return responses.bad_request(
"Must provide a POST'ed json as an event")
try:
score_request = util.build_score_request_from_event(
precache_map, event)
except KeyError as e:
return responses.bad_request(
"Must provide the '{key}' parameter".format(key=e.args[0]))
if not score_request:
return responses.no_content()
else:
return scores.process_score_request(score_request)
return bp
|
Use the whole body of POST request as the json event in precaching
|
Use the whole body of POST request as the json event in precaching
|
Python
|
mit
|
he7d3r/ores,wiki-ai/ores,wiki-ai/ores,wiki-ai/ores,he7d3r/ores,he7d3r/ores
|
import json
import logging
from urllib.parse import unquote
from flask import request
from . import scores
from ... import preprocessors, responses, util
logger = logging.getLogger(__name__)
def configure(config, bp, scoring_system):
precache_map = util.build_precache_map(config)
@bp.route("/v3/precache/", methods=["POST"])
@preprocessors.nocache
@preprocessors.minifiable
def precache_v3():
if 'event' not in request.form:
return responses.bad_request(
"Must provide an 'event' parameter")
try:
event = json.loads(unquote(request.form['event']).strip())
except json.JSONDecodeError:
return responses.bad_request(
"Can not parse event argument as JSON blob")
score_request = util.build_score_request_from_event(precache_map, event)
if not score_request:
return responses.no_content()
else:
return scores.process_score_request(score_request)
return bp
Use the whole body of POST request as the json event in precaching
|
import logging
from flask import request
from . import scores
from ... import preprocessors, responses, util
logger = logging.getLogger(__name__)
def configure(config, bp, scoring_system):
precache_map = util.build_precache_map(config)
@bp.route("/v3/precache/", methods=["POST"])
@preprocessors.nocache
@preprocessors.minifiable
def precache_v3():
event = request.get_json()
if event is None:
return responses.bad_request(
"Must provide a POST'ed json as an event")
try:
score_request = util.build_score_request_from_event(
precache_map, event)
except KeyError as e:
return responses.bad_request(
"Must provide the '{key}' parameter".format(key=e.args[0]))
if not score_request:
return responses.no_content()
else:
return scores.process_score_request(score_request)
return bp
|
<commit_before>import json
import logging
from urllib.parse import unquote
from flask import request
from . import scores
from ... import preprocessors, responses, util
logger = logging.getLogger(__name__)
def configure(config, bp, scoring_system):
precache_map = util.build_precache_map(config)
@bp.route("/v3/precache/", methods=["POST"])
@preprocessors.nocache
@preprocessors.minifiable
def precache_v3():
if 'event' not in request.form:
return responses.bad_request(
"Must provide an 'event' parameter")
try:
event = json.loads(unquote(request.form['event']).strip())
except json.JSONDecodeError:
return responses.bad_request(
"Can not parse event argument as JSON blob")
score_request = util.build_score_request_from_event(precache_map, event)
if not score_request:
return responses.no_content()
else:
return scores.process_score_request(score_request)
return bp
<commit_msg>Use the whole body of POST request as the json event in precaching<commit_after>
|
import logging
from flask import request
from . import scores
from ... import preprocessors, responses, util
logger = logging.getLogger(__name__)
def configure(config, bp, scoring_system):
precache_map = util.build_precache_map(config)
@bp.route("/v3/precache/", methods=["POST"])
@preprocessors.nocache
@preprocessors.minifiable
def precache_v3():
event = request.get_json()
if event is None:
return responses.bad_request(
"Must provide a POST'ed json as an event")
try:
score_request = util.build_score_request_from_event(
precache_map, event)
except KeyError as e:
return responses.bad_request(
"Must provide the '{key}' parameter".format(key=e.args[0]))
if not score_request:
return responses.no_content()
else:
return scores.process_score_request(score_request)
return bp
|
import json
import logging
from urllib.parse import unquote
from flask import request
from . import scores
from ... import preprocessors, responses, util
logger = logging.getLogger(__name__)
def configure(config, bp, scoring_system):
precache_map = util.build_precache_map(config)
@bp.route("/v3/precache/", methods=["POST"])
@preprocessors.nocache
@preprocessors.minifiable
def precache_v3():
if 'event' not in request.form:
return responses.bad_request(
"Must provide an 'event' parameter")
try:
event = json.loads(unquote(request.form['event']).strip())
except json.JSONDecodeError:
return responses.bad_request(
"Can not parse event argument as JSON blob")
score_request = util.build_score_request_from_event(precache_map, event)
if not score_request:
return responses.no_content()
else:
return scores.process_score_request(score_request)
return bp
Use the whole body of POST request as the json event in precachingimport logging
from flask import request
from . import scores
from ... import preprocessors, responses, util
logger = logging.getLogger(__name__)
def configure(config, bp, scoring_system):
precache_map = util.build_precache_map(config)
@bp.route("/v3/precache/", methods=["POST"])
@preprocessors.nocache
@preprocessors.minifiable
def precache_v3():
event = request.get_json()
if event is None:
return responses.bad_request(
"Must provide a POST'ed json as an event")
try:
score_request = util.build_score_request_from_event(
precache_map, event)
except KeyError as e:
return responses.bad_request(
"Must provide the '{key}' parameter".format(key=e.args[0]))
if not score_request:
return responses.no_content()
else:
return scores.process_score_request(score_request)
return bp
|
<commit_before>import json
import logging
from urllib.parse import unquote
from flask import request
from . import scores
from ... import preprocessors, responses, util
logger = logging.getLogger(__name__)
def configure(config, bp, scoring_system):
precache_map = util.build_precache_map(config)
@bp.route("/v3/precache/", methods=["POST"])
@preprocessors.nocache
@preprocessors.minifiable
def precache_v3():
if 'event' not in request.form:
return responses.bad_request(
"Must provide an 'event' parameter")
try:
event = json.loads(unquote(request.form['event']).strip())
except json.JSONDecodeError:
return responses.bad_request(
"Can not parse event argument as JSON blob")
score_request = util.build_score_request_from_event(precache_map, event)
if not score_request:
return responses.no_content()
else:
return scores.process_score_request(score_request)
return bp
<commit_msg>Use the whole body of POST request as the json event in precaching<commit_after>import logging
from flask import request
from . import scores
from ... import preprocessors, responses, util
logger = logging.getLogger(__name__)
def configure(config, bp, scoring_system):
precache_map = util.build_precache_map(config)
@bp.route("/v3/precache/", methods=["POST"])
@preprocessors.nocache
@preprocessors.minifiable
def precache_v3():
event = request.get_json()
if event is None:
return responses.bad_request(
"Must provide a POST'ed json as an event")
try:
score_request = util.build_score_request_from_event(
precache_map, event)
except KeyError as e:
return responses.bad_request(
"Must provide the '{key}' parameter".format(key=e.args[0]))
if not score_request:
return responses.no_content()
else:
return scores.process_score_request(score_request)
return bp
|
4612d1ab6b3694e5926f54a55fefa305cac4e8bf
|
myhronet/utils.py
|
myhronet/utils.py
|
# -*- coding: utf-8 -*-
def get_client_ip(request):
ip = request.META.get('HTTP_X_FORWARDED_FOR')
if ip:
return ip.split(', ')[0]
else:
return request.META['REMOTE_ADDR']
|
# -*- coding: utf-8 -*-
def get_client_ip(request):
ip = request.META.get('HTTP_X_FORWARDED_FOR')
if ip:
return ip.split(', ')[-1]
else:
return request.META['REMOTE_ADDR']
|
Fix client IP detection behind reverse proxy
|
Fix client IP detection behind reverse proxy
The `X-Forwarded-For` header can be easily spoofed by a client. When
forwarding a connection, nginx appends the real detected IP to the the
list. So, what we need is actually the last one on this list, not the
first one.
|
Python
|
mit
|
myhro/myhronet,myhro/myhronet
|
# -*- coding: utf-8 -*-
def get_client_ip(request):
ip = request.META.get('HTTP_X_FORWARDED_FOR')
if ip:
return ip.split(', ')[0]
else:
return request.META['REMOTE_ADDR']
Fix client IP detection behind reverse proxy
The `X-Forwarded-For` header can be easily spoofed by a client. When
forwarding a connection, nginx appends the real detected IP to the the
list. So, what we need is actually the last one on this list, not the
first one.
|
# -*- coding: utf-8 -*-
def get_client_ip(request):
ip = request.META.get('HTTP_X_FORWARDED_FOR')
if ip:
return ip.split(', ')[-1]
else:
return request.META['REMOTE_ADDR']
|
<commit_before># -*- coding: utf-8 -*-
def get_client_ip(request):
ip = request.META.get('HTTP_X_FORWARDED_FOR')
if ip:
return ip.split(', ')[0]
else:
return request.META['REMOTE_ADDR']
<commit_msg>Fix client IP detection behind reverse proxy
The `X-Forwarded-For` header can be easily spoofed by a client. When
forwarding a connection, nginx appends the real detected IP to the the
list. So, what we need is actually the last one on this list, not the
first one.<commit_after>
|
# -*- coding: utf-8 -*-
def get_client_ip(request):
ip = request.META.get('HTTP_X_FORWARDED_FOR')
if ip:
return ip.split(', ')[-1]
else:
return request.META['REMOTE_ADDR']
|
# -*- coding: utf-8 -*-
def get_client_ip(request):
ip = request.META.get('HTTP_X_FORWARDED_FOR')
if ip:
return ip.split(', ')[0]
else:
return request.META['REMOTE_ADDR']
Fix client IP detection behind reverse proxy
The `X-Forwarded-For` header can be easily spoofed by a client. When
forwarding a connection, nginx appends the real detected IP to the the
list. So, what we need is actually the last one on this list, not the
first one.# -*- coding: utf-8 -*-
def get_client_ip(request):
ip = request.META.get('HTTP_X_FORWARDED_FOR')
if ip:
return ip.split(', ')[-1]
else:
return request.META['REMOTE_ADDR']
|
<commit_before># -*- coding: utf-8 -*-
def get_client_ip(request):
ip = request.META.get('HTTP_X_FORWARDED_FOR')
if ip:
return ip.split(', ')[0]
else:
return request.META['REMOTE_ADDR']
<commit_msg>Fix client IP detection behind reverse proxy
The `X-Forwarded-For` header can be easily spoofed by a client. When
forwarding a connection, nginx appends the real detected IP to the the
list. So, what we need is actually the last one on this list, not the
first one.<commit_after># -*- coding: utf-8 -*-
def get_client_ip(request):
ip = request.META.get('HTTP_X_FORWARDED_FOR')
if ip:
return ip.split(', ')[-1]
else:
return request.META['REMOTE_ADDR']
|
7494c5506cbfed0a641003f38085bd74f35d38b4
|
cryptchat/test/test_networkhandler.py
|
cryptchat/test/test_networkhandler.py
|
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Run from Cryptchat
# python3 -m unittest discover
import unittest
from ..network.networkhandler import NetworkHandler
from ..crypto.aes import AESCipher
from ..crypto.diffiehellman import DiffieHellman
class testNetworkHandler(unittest.TestCase):
@classmethod
def setUpClass(self):
alice = DiffieHellman()
bob = DiffieHellman()
a = alice.gensessionkey(bob.publickey)
b = bob.gensessionkey(alice.publickey)
aes1 = AESCipher(a)
aes2 = AESCipher(b)
self.server = NetworkHandler("localhost", 8090, True, alice, aes1)
self.client = NetworkHandler("localhost", 8090, False, bob, aes2)
def test_sendmessage(self):
self.server.start()
self.client.start()
m = "This is secret please do not read. And some chars to get unicode-testing out of the way åäö"
self.client.send(m)
m2 = self.server.getinmessage()
self.assertEqual(m, m2)
def main():
unittest.main()
if __name__ == '__main__':
main()
|
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Run from Cryptchat
# python3 -m unittest discover
import unittest
from ..network.networkhandler import NetworkHandler
from ..crypto.diffiehellman import DiffieHellman
class testNetworkHandler(unittest.TestCase):
@classmethod
def setUpClass(cls):
alice = DiffieHellman()
bob = DiffieHellman()
a = alice.gensessionkey(bob.publickey)
b = bob.gensessionkey(alice.publickey)
cls.server = NetworkHandler("localhost", 8090, True, alice)
cls.client = NetworkHandler("localhost", 8090, False, bob)
cls.server.start()
cls.client.start()
while not cls.server.exchangedkeys: # Now this is some good code. It works though....
pass
def test_sendmessage(self):
m = "This is secret please do not read. And some chars to get unicode-testing out of the way åäö"
self.client.send(m)
m2 = self.server.receive()
self.assertEqual(m, m2)
def main():
unittest.main()
if __name__ == '__main__':
main()
|
Update test to run on new code
|
Update test to run on new code
|
Python
|
mit
|
djohsson/Cryptchat
|
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Run from Cryptchat
# python3 -m unittest discover
import unittest
from ..network.networkhandler import NetworkHandler
from ..crypto.aes import AESCipher
from ..crypto.diffiehellman import DiffieHellman
class testNetworkHandler(unittest.TestCase):
@classmethod
def setUpClass(self):
alice = DiffieHellman()
bob = DiffieHellman()
a = alice.gensessionkey(bob.publickey)
b = bob.gensessionkey(alice.publickey)
aes1 = AESCipher(a)
aes2 = AESCipher(b)
self.server = NetworkHandler("localhost", 8090, True, alice, aes1)
self.client = NetworkHandler("localhost", 8090, False, bob, aes2)
def test_sendmessage(self):
self.server.start()
self.client.start()
m = "This is secret please do not read. And some chars to get unicode-testing out of the way åäö"
self.client.send(m)
m2 = self.server.getinmessage()
self.assertEqual(m, m2)
def main():
unittest.main()
if __name__ == '__main__':
main()
Update test to run on new code
|
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Run from Cryptchat
# python3 -m unittest discover
import unittest
from ..network.networkhandler import NetworkHandler
from ..crypto.diffiehellman import DiffieHellman
class testNetworkHandler(unittest.TestCase):
@classmethod
def setUpClass(cls):
alice = DiffieHellman()
bob = DiffieHellman()
a = alice.gensessionkey(bob.publickey)
b = bob.gensessionkey(alice.publickey)
cls.server = NetworkHandler("localhost", 8090, True, alice)
cls.client = NetworkHandler("localhost", 8090, False, bob)
cls.server.start()
cls.client.start()
while not cls.server.exchangedkeys: # Now this is some good code. It works though....
pass
def test_sendmessage(self):
m = "This is secret please do not read. And some chars to get unicode-testing out of the way åäö"
self.client.send(m)
m2 = self.server.receive()
self.assertEqual(m, m2)
def main():
unittest.main()
if __name__ == '__main__':
main()
|
<commit_before>#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Run from Cryptchat
# python3 -m unittest discover
import unittest
from ..network.networkhandler import NetworkHandler
from ..crypto.aes import AESCipher
from ..crypto.diffiehellman import DiffieHellman
class testNetworkHandler(unittest.TestCase):
@classmethod
def setUpClass(self):
alice = DiffieHellman()
bob = DiffieHellman()
a = alice.gensessionkey(bob.publickey)
b = bob.gensessionkey(alice.publickey)
aes1 = AESCipher(a)
aes2 = AESCipher(b)
self.server = NetworkHandler("localhost", 8090, True, alice, aes1)
self.client = NetworkHandler("localhost", 8090, False, bob, aes2)
def test_sendmessage(self):
self.server.start()
self.client.start()
m = "This is secret please do not read. And some chars to get unicode-testing out of the way åäö"
self.client.send(m)
m2 = self.server.getinmessage()
self.assertEqual(m, m2)
def main():
unittest.main()
if __name__ == '__main__':
main()
<commit_msg>Update test to run on new code<commit_after>
|
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Run from Cryptchat
# python3 -m unittest discover
import unittest
from ..network.networkhandler import NetworkHandler
from ..crypto.diffiehellman import DiffieHellman
class testNetworkHandler(unittest.TestCase):
@classmethod
def setUpClass(cls):
alice = DiffieHellman()
bob = DiffieHellman()
a = alice.gensessionkey(bob.publickey)
b = bob.gensessionkey(alice.publickey)
cls.server = NetworkHandler("localhost", 8090, True, alice)
cls.client = NetworkHandler("localhost", 8090, False, bob)
cls.server.start()
cls.client.start()
while not cls.server.exchangedkeys: # Now this is some good code. It works though....
pass
def test_sendmessage(self):
m = "This is secret please do not read. And some chars to get unicode-testing out of the way åäö"
self.client.send(m)
m2 = self.server.receive()
self.assertEqual(m, m2)
def main():
unittest.main()
if __name__ == '__main__':
main()
|
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Run from Cryptchat
# python3 -m unittest discover
import unittest
from ..network.networkhandler import NetworkHandler
from ..crypto.aes import AESCipher
from ..crypto.diffiehellman import DiffieHellman
class testNetworkHandler(unittest.TestCase):
@classmethod
def setUpClass(self):
alice = DiffieHellman()
bob = DiffieHellman()
a = alice.gensessionkey(bob.publickey)
b = bob.gensessionkey(alice.publickey)
aes1 = AESCipher(a)
aes2 = AESCipher(b)
self.server = NetworkHandler("localhost", 8090, True, alice, aes1)
self.client = NetworkHandler("localhost", 8090, False, bob, aes2)
def test_sendmessage(self):
self.server.start()
self.client.start()
m = "This is secret please do not read. And some chars to get unicode-testing out of the way åäö"
self.client.send(m)
m2 = self.server.getinmessage()
self.assertEqual(m, m2)
def main():
unittest.main()
if __name__ == '__main__':
main()
Update test to run on new code#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Run from Cryptchat
# python3 -m unittest discover
import unittest
from ..network.networkhandler import NetworkHandler
from ..crypto.diffiehellman import DiffieHellman
class testNetworkHandler(unittest.TestCase):
@classmethod
def setUpClass(cls):
alice = DiffieHellman()
bob = DiffieHellman()
a = alice.gensessionkey(bob.publickey)
b = bob.gensessionkey(alice.publickey)
cls.server = NetworkHandler("localhost", 8090, True, alice)
cls.client = NetworkHandler("localhost", 8090, False, bob)
cls.server.start()
cls.client.start()
while not cls.server.exchangedkeys: # Now this is some good code. It works though....
pass
def test_sendmessage(self):
m = "This is secret please do not read. And some chars to get unicode-testing out of the way åäö"
self.client.send(m)
m2 = self.server.receive()
self.assertEqual(m, m2)
def main():
unittest.main()
if __name__ == '__main__':
main()
|
<commit_before>#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Run from Cryptchat
# python3 -m unittest discover
import unittest
from ..network.networkhandler import NetworkHandler
from ..crypto.aes import AESCipher
from ..crypto.diffiehellman import DiffieHellman
class testNetworkHandler(unittest.TestCase):
@classmethod
def setUpClass(self):
alice = DiffieHellman()
bob = DiffieHellman()
a = alice.gensessionkey(bob.publickey)
b = bob.gensessionkey(alice.publickey)
aes1 = AESCipher(a)
aes2 = AESCipher(b)
self.server = NetworkHandler("localhost", 8090, True, alice, aes1)
self.client = NetworkHandler("localhost", 8090, False, bob, aes2)
def test_sendmessage(self):
self.server.start()
self.client.start()
m = "This is secret please do not read. And some chars to get unicode-testing out of the way åäö"
self.client.send(m)
m2 = self.server.getinmessage()
self.assertEqual(m, m2)
def main():
unittest.main()
if __name__ == '__main__':
main()
<commit_msg>Update test to run on new code<commit_after>#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Run from Cryptchat
# python3 -m unittest discover
import unittest
from ..network.networkhandler import NetworkHandler
from ..crypto.diffiehellman import DiffieHellman
class testNetworkHandler(unittest.TestCase):
@classmethod
def setUpClass(cls):
alice = DiffieHellman()
bob = DiffieHellman()
a = alice.gensessionkey(bob.publickey)
b = bob.gensessionkey(alice.publickey)
cls.server = NetworkHandler("localhost", 8090, True, alice)
cls.client = NetworkHandler("localhost", 8090, False, bob)
cls.server.start()
cls.client.start()
while not cls.server.exchangedkeys: # Now this is some good code. It works though....
pass
def test_sendmessage(self):
m = "This is secret please do not read. And some chars to get unicode-testing out of the way åäö"
self.client.send(m)
m2 = self.server.receive()
self.assertEqual(m, m2)
def main():
unittest.main()
if __name__ == '__main__':
main()
|
c717ca0f2f85923dcf6ed3fd7a347f44f48f7941
|
ocradmin/plugins/numpy_nodes.py
|
ocradmin/plugins/numpy_nodes.py
|
import node
import manager
import stages
import numpy
class Rotate90Node(node.Node):
"""
Rotate a Numpy image by num*90 degrees.
"""
arity = 1
stage = stages.FILTER_BINARY
name = "Numpy::Rotate90"
def validate(self):
super(RotateNode, self).validate()
if not self._params.get("num"):
raise node.UnsetParameterError("num")
try:
num = int(self._params.get("num"))
except TypeError:
raise node.InvalidParameterError("'num' must be an integer")
def _eval(self):
image = self.eval_input(0)
return numpy.rot90(image, int(self._params.get("num", 1)))
class Manager(manager.StandardManager):
"""
Handle Tesseract nodes.
"""
@classmethod
def get_nodes(cls, *oftypes):
return super(Manager, cls).get_nodes(
*oftypes, globals=globals())
if __name__ == "__main__":
for n in Manager.get_nodes():
print n
|
import node
import manager
import stages
import numpy
class Rotate90Node(node.Node):
"""
Rotate a Numpy image by num*90 degrees.
"""
arity = 1
stage = stages.FILTER_BINARY
name = "Numpy::Rotate90"
_parameters = [{
"name": "num",
"value": 1,
}]
def validate(self):
super(Rotate90Node, self).validate()
if not self._params.get("num"):
raise node.UnsetParameterError("num")
try:
num = int(self._params.get("num"))
except TypeError:
raise node.InvalidParameterError("'num' must be an integer")
def _eval(self):
image = self.eval_input(0)
return numpy.rot90(image, int(self._params.get("num", 1)))
class Manager(manager.StandardManager):
"""
Handle Tesseract nodes.
"""
@classmethod
def get_node(self, name, **kwargs):
if name.find("::") != -1:
name = name.split("::")[-1]
if name == "Rotate90":
return Rotate90Node(**kwargs)
@classmethod
def get_nodes(cls, *oftypes):
return super(Manager, cls).get_nodes(
*oftypes, globals=globals())
if __name__ == "__main__":
for n in Manager.get_nodes():
print n
|
Add copy/pasted get_node function (TODO: Fix that), added parameters, fixed type
|
Add copy/pasted get_node function (TODO: Fix that), added parameters, fixed type
|
Python
|
apache-2.0
|
vitorio/ocropodium,vitorio/ocropodium,vitorio/ocropodium,vitorio/ocropodium
|
import node
import manager
import stages
import numpy
class Rotate90Node(node.Node):
"""
Rotate a Numpy image by num*90 degrees.
"""
arity = 1
stage = stages.FILTER_BINARY
name = "Numpy::Rotate90"
def validate(self):
super(RotateNode, self).validate()
if not self._params.get("num"):
raise node.UnsetParameterError("num")
try:
num = int(self._params.get("num"))
except TypeError:
raise node.InvalidParameterError("'num' must be an integer")
def _eval(self):
image = self.eval_input(0)
return numpy.rot90(image, int(self._params.get("num", 1)))
class Manager(manager.StandardManager):
"""
Handle Tesseract nodes.
"""
@classmethod
def get_nodes(cls, *oftypes):
return super(Manager, cls).get_nodes(
*oftypes, globals=globals())
if __name__ == "__main__":
for n in Manager.get_nodes():
print n
Add copy/pasted get_node function (TODO: Fix that), added parameters, fixed type
|
import node
import manager
import stages
import numpy
class Rotate90Node(node.Node):
"""
Rotate a Numpy image by num*90 degrees.
"""
arity = 1
stage = stages.FILTER_BINARY
name = "Numpy::Rotate90"
_parameters = [{
"name": "num",
"value": 1,
}]
def validate(self):
super(Rotate90Node, self).validate()
if not self._params.get("num"):
raise node.UnsetParameterError("num")
try:
num = int(self._params.get("num"))
except TypeError:
raise node.InvalidParameterError("'num' must be an integer")
def _eval(self):
image = self.eval_input(0)
return numpy.rot90(image, int(self._params.get("num", 1)))
class Manager(manager.StandardManager):
"""
Handle Tesseract nodes.
"""
@classmethod
def get_node(self, name, **kwargs):
if name.find("::") != -1:
name = name.split("::")[-1]
if name == "Rotate90":
return Rotate90Node(**kwargs)
@classmethod
def get_nodes(cls, *oftypes):
return super(Manager, cls).get_nodes(
*oftypes, globals=globals())
if __name__ == "__main__":
for n in Manager.get_nodes():
print n
|
<commit_before>
import node
import manager
import stages
import numpy
class Rotate90Node(node.Node):
"""
Rotate a Numpy image by num*90 degrees.
"""
arity = 1
stage = stages.FILTER_BINARY
name = "Numpy::Rotate90"
def validate(self):
super(RotateNode, self).validate()
if not self._params.get("num"):
raise node.UnsetParameterError("num")
try:
num = int(self._params.get("num"))
except TypeError:
raise node.InvalidParameterError("'num' must be an integer")
def _eval(self):
image = self.eval_input(0)
return numpy.rot90(image, int(self._params.get("num", 1)))
class Manager(manager.StandardManager):
"""
Handle Tesseract nodes.
"""
@classmethod
def get_nodes(cls, *oftypes):
return super(Manager, cls).get_nodes(
*oftypes, globals=globals())
if __name__ == "__main__":
for n in Manager.get_nodes():
print n
<commit_msg>Add copy/pasted get_node function (TODO: Fix that), added parameters, fixed type<commit_after>
|
import node
import manager
import stages
import numpy
class Rotate90Node(node.Node):
"""
Rotate a Numpy image by num*90 degrees.
"""
arity = 1
stage = stages.FILTER_BINARY
name = "Numpy::Rotate90"
_parameters = [{
"name": "num",
"value": 1,
}]
def validate(self):
super(Rotate90Node, self).validate()
if not self._params.get("num"):
raise node.UnsetParameterError("num")
try:
num = int(self._params.get("num"))
except TypeError:
raise node.InvalidParameterError("'num' must be an integer")
def _eval(self):
image = self.eval_input(0)
return numpy.rot90(image, int(self._params.get("num", 1)))
class Manager(manager.StandardManager):
"""
Handle Tesseract nodes.
"""
@classmethod
def get_node(self, name, **kwargs):
if name.find("::") != -1:
name = name.split("::")[-1]
if name == "Rotate90":
return Rotate90Node(**kwargs)
@classmethod
def get_nodes(cls, *oftypes):
return super(Manager, cls).get_nodes(
*oftypes, globals=globals())
if __name__ == "__main__":
for n in Manager.get_nodes():
print n
|
import node
import manager
import stages
import numpy
class Rotate90Node(node.Node):
"""
Rotate a Numpy image by num*90 degrees.
"""
arity = 1
stage = stages.FILTER_BINARY
name = "Numpy::Rotate90"
def validate(self):
super(RotateNode, self).validate()
if not self._params.get("num"):
raise node.UnsetParameterError("num")
try:
num = int(self._params.get("num"))
except TypeError:
raise node.InvalidParameterError("'num' must be an integer")
def _eval(self):
image = self.eval_input(0)
return numpy.rot90(image, int(self._params.get("num", 1)))
class Manager(manager.StandardManager):
"""
Handle Tesseract nodes.
"""
@classmethod
def get_nodes(cls, *oftypes):
return super(Manager, cls).get_nodes(
*oftypes, globals=globals())
if __name__ == "__main__":
for n in Manager.get_nodes():
print n
Add copy/pasted get_node function (TODO: Fix that), added parameters, fixed type
import node
import manager
import stages
import numpy
class Rotate90Node(node.Node):
"""
Rotate a Numpy image by num*90 degrees.
"""
arity = 1
stage = stages.FILTER_BINARY
name = "Numpy::Rotate90"
_parameters = [{
"name": "num",
"value": 1,
}]
def validate(self):
super(Rotate90Node, self).validate()
if not self._params.get("num"):
raise node.UnsetParameterError("num")
try:
num = int(self._params.get("num"))
except TypeError:
raise node.InvalidParameterError("'num' must be an integer")
def _eval(self):
image = self.eval_input(0)
return numpy.rot90(image, int(self._params.get("num", 1)))
class Manager(manager.StandardManager):
"""
Handle Tesseract nodes.
"""
@classmethod
def get_node(self, name, **kwargs):
if name.find("::") != -1:
name = name.split("::")[-1]
if name == "Rotate90":
return Rotate90Node(**kwargs)
@classmethod
def get_nodes(cls, *oftypes):
return super(Manager, cls).get_nodes(
*oftypes, globals=globals())
if __name__ == "__main__":
for n in Manager.get_nodes():
print n
|
<commit_before>
import node
import manager
import stages
import numpy
class Rotate90Node(node.Node):
"""
Rotate a Numpy image by num*90 degrees.
"""
arity = 1
stage = stages.FILTER_BINARY
name = "Numpy::Rotate90"
def validate(self):
super(RotateNode, self).validate()
if not self._params.get("num"):
raise node.UnsetParameterError("num")
try:
num = int(self._params.get("num"))
except TypeError:
raise node.InvalidParameterError("'num' must be an integer")
def _eval(self):
image = self.eval_input(0)
return numpy.rot90(image, int(self._params.get("num", 1)))
class Manager(manager.StandardManager):
"""
Handle Tesseract nodes.
"""
@classmethod
def get_nodes(cls, *oftypes):
return super(Manager, cls).get_nodes(
*oftypes, globals=globals())
if __name__ == "__main__":
for n in Manager.get_nodes():
print n
<commit_msg>Add copy/pasted get_node function (TODO: Fix that), added parameters, fixed type<commit_after>
import node
import manager
import stages
import numpy
class Rotate90Node(node.Node):
"""
Rotate a Numpy image by num*90 degrees.
"""
arity = 1
stage = stages.FILTER_BINARY
name = "Numpy::Rotate90"
_parameters = [{
"name": "num",
"value": 1,
}]
def validate(self):
super(Rotate90Node, self).validate()
if not self._params.get("num"):
raise node.UnsetParameterError("num")
try:
num = int(self._params.get("num"))
except TypeError:
raise node.InvalidParameterError("'num' must be an integer")
def _eval(self):
image = self.eval_input(0)
return numpy.rot90(image, int(self._params.get("num", 1)))
class Manager(manager.StandardManager):
"""
Handle Tesseract nodes.
"""
@classmethod
def get_node(self, name, **kwargs):
if name.find("::") != -1:
name = name.split("::")[-1]
if name == "Rotate90":
return Rotate90Node(**kwargs)
@classmethod
def get_nodes(cls, *oftypes):
return super(Manager, cls).get_nodes(
*oftypes, globals=globals())
if __name__ == "__main__":
for n in Manager.get_nodes():
print n
|
bece8b815ea3359433df708272ec3065d2c2a231
|
examples/basic_siggen.py
|
examples/basic_siggen.py
|
from pymoku import Moku, ValueOutOfRangeException
from pymoku.instruments import *
import time, logging
import matplotlib
import matplotlib.pyplot as plt
logging.basicConfig(format='%(asctime)s:%(name)s:%(levelname)s::%(message)s')
logging.getLogger('pymoku').setLevel(logging.DEBUG)
# Use Moku.get_by_serial() or get_by_name() if you don't know the IP
m = Moku.get_by_name("example")
i = m.discover_instrument()
if i is None or i.type != 'signal_generator':
print("No or wrong instrument deployed")
i = SignalGenerator()
m.attach_instrument(i)
else:
print("Attached to existing Signal Generator")
m.take_ownership()
try:
i.synth_sinewave(1, 1.0, 1000000)
i.synth_squarewave(2, 1.0, 2000000, risetime=0.1, falltime=0.1, duty=0.3)
i.synth_modulate(1, SG_MOD_AMPL, SG_MODSOURCE_INT, 1, 10)
i.commit()
finally:
m.close()
|
from pymoku import Moku, ValueOutOfRangeException
from pymoku.instruments import *
import time
# Use Moku.get_by_serial() or get_by_name() if you don't know the IP
m = Moku.get_by_name("example")
i = SignalGenerator()
m.attach_instrument(i)
try:
i.synth_sinewave(1, 1.0, 1000000)
i.synth_squarewave(2, 1.0, 2000000, risetime=0.1, falltime=0.1, duty=0.3)
# Amplitude modulate the CH1 sinewave with another internally-generated sinewave.
# 100% modulation depth at 10Hz.
i.synth_modulate(1, SG_MOD_AMPL, SG_MODSOURCE_INT, 1, 10)
i.commit()
finally:
m.close()
|
Simplify and clean the siggen example
|
PM-133: Simplify and clean the siggen example
|
Python
|
mit
|
liquidinstruments/pymoku
|
from pymoku import Moku, ValueOutOfRangeException
from pymoku.instruments import *
import time, logging
import matplotlib
import matplotlib.pyplot as plt
logging.basicConfig(format='%(asctime)s:%(name)s:%(levelname)s::%(message)s')
logging.getLogger('pymoku').setLevel(logging.DEBUG)
# Use Moku.get_by_serial() or get_by_name() if you don't know the IP
m = Moku.get_by_name("example")
i = m.discover_instrument()
if i is None or i.type != 'signal_generator':
print("No or wrong instrument deployed")
i = SignalGenerator()
m.attach_instrument(i)
else:
print("Attached to existing Signal Generator")
m.take_ownership()
try:
i.synth_sinewave(1, 1.0, 1000000)
i.synth_squarewave(2, 1.0, 2000000, risetime=0.1, falltime=0.1, duty=0.3)
i.synth_modulate(1, SG_MOD_AMPL, SG_MODSOURCE_INT, 1, 10)
i.commit()
finally:
m.close()
PM-133: Simplify and clean the siggen example
|
from pymoku import Moku, ValueOutOfRangeException
from pymoku.instruments import *
import time
# Use Moku.get_by_serial() or get_by_name() if you don't know the IP
m = Moku.get_by_name("example")
i = SignalGenerator()
m.attach_instrument(i)
try:
i.synth_sinewave(1, 1.0, 1000000)
i.synth_squarewave(2, 1.0, 2000000, risetime=0.1, falltime=0.1, duty=0.3)
# Amplitude modulate the CH1 sinewave with another internally-generated sinewave.
# 100% modulation depth at 10Hz.
i.synth_modulate(1, SG_MOD_AMPL, SG_MODSOURCE_INT, 1, 10)
i.commit()
finally:
m.close()
|
<commit_before>from pymoku import Moku, ValueOutOfRangeException
from pymoku.instruments import *
import time, logging
import matplotlib
import matplotlib.pyplot as plt
logging.basicConfig(format='%(asctime)s:%(name)s:%(levelname)s::%(message)s')
logging.getLogger('pymoku').setLevel(logging.DEBUG)
# Use Moku.get_by_serial() or get_by_name() if you don't know the IP
m = Moku.get_by_name("example")
i = m.discover_instrument()
if i is None or i.type != 'signal_generator':
print("No or wrong instrument deployed")
i = SignalGenerator()
m.attach_instrument(i)
else:
print("Attached to existing Signal Generator")
m.take_ownership()
try:
i.synth_sinewave(1, 1.0, 1000000)
i.synth_squarewave(2, 1.0, 2000000, risetime=0.1, falltime=0.1, duty=0.3)
i.synth_modulate(1, SG_MOD_AMPL, SG_MODSOURCE_INT, 1, 10)
i.commit()
finally:
m.close()
<commit_msg>PM-133: Simplify and clean the siggen example<commit_after>
|
from pymoku import Moku, ValueOutOfRangeException
from pymoku.instruments import *
import time
# Use Moku.get_by_serial() or get_by_name() if you don't know the IP
m = Moku.get_by_name("example")
i = SignalGenerator()
m.attach_instrument(i)
try:
i.synth_sinewave(1, 1.0, 1000000)
i.synth_squarewave(2, 1.0, 2000000, risetime=0.1, falltime=0.1, duty=0.3)
# Amplitude modulate the CH1 sinewave with another internally-generated sinewave.
# 100% modulation depth at 10Hz.
i.synth_modulate(1, SG_MOD_AMPL, SG_MODSOURCE_INT, 1, 10)
i.commit()
finally:
m.close()
|
from pymoku import Moku, ValueOutOfRangeException
from pymoku.instruments import *
import time, logging
import matplotlib
import matplotlib.pyplot as plt
logging.basicConfig(format='%(asctime)s:%(name)s:%(levelname)s::%(message)s')
logging.getLogger('pymoku').setLevel(logging.DEBUG)
# Use Moku.get_by_serial() or get_by_name() if you don't know the IP
m = Moku.get_by_name("example")
i = m.discover_instrument()
if i is None or i.type != 'signal_generator':
print("No or wrong instrument deployed")
i = SignalGenerator()
m.attach_instrument(i)
else:
print("Attached to existing Signal Generator")
m.take_ownership()
try:
i.synth_sinewave(1, 1.0, 1000000)
i.synth_squarewave(2, 1.0, 2000000, risetime=0.1, falltime=0.1, duty=0.3)
i.synth_modulate(1, SG_MOD_AMPL, SG_MODSOURCE_INT, 1, 10)
i.commit()
finally:
m.close()
PM-133: Simplify and clean the siggen examplefrom pymoku import Moku, ValueOutOfRangeException
from pymoku.instruments import *
import time
# Use Moku.get_by_serial() or get_by_name() if you don't know the IP
m = Moku.get_by_name("example")
i = SignalGenerator()
m.attach_instrument(i)
try:
i.synth_sinewave(1, 1.0, 1000000)
i.synth_squarewave(2, 1.0, 2000000, risetime=0.1, falltime=0.1, duty=0.3)
# Amplitude modulate the CH1 sinewave with another internally-generated sinewave.
# 100% modulation depth at 10Hz.
i.synth_modulate(1, SG_MOD_AMPL, SG_MODSOURCE_INT, 1, 10)
i.commit()
finally:
m.close()
|
<commit_before>from pymoku import Moku, ValueOutOfRangeException
from pymoku.instruments import *
import time, logging
import matplotlib
import matplotlib.pyplot as plt
logging.basicConfig(format='%(asctime)s:%(name)s:%(levelname)s::%(message)s')
logging.getLogger('pymoku').setLevel(logging.DEBUG)
# Use Moku.get_by_serial() or get_by_name() if you don't know the IP
m = Moku.get_by_name("example")
i = m.discover_instrument()
if i is None or i.type != 'signal_generator':
print("No or wrong instrument deployed")
i = SignalGenerator()
m.attach_instrument(i)
else:
print("Attached to existing Signal Generator")
m.take_ownership()
try:
i.synth_sinewave(1, 1.0, 1000000)
i.synth_squarewave(2, 1.0, 2000000, risetime=0.1, falltime=0.1, duty=0.3)
i.synth_modulate(1, SG_MOD_AMPL, SG_MODSOURCE_INT, 1, 10)
i.commit()
finally:
m.close()
<commit_msg>PM-133: Simplify and clean the siggen example<commit_after>from pymoku import Moku, ValueOutOfRangeException
from pymoku.instruments import *
import time
# Use Moku.get_by_serial() or get_by_name() if you don't know the IP
m = Moku.get_by_name("example")
i = SignalGenerator()
m.attach_instrument(i)
try:
i.synth_sinewave(1, 1.0, 1000000)
i.synth_squarewave(2, 1.0, 2000000, risetime=0.1, falltime=0.1, duty=0.3)
# Amplitude modulate the CH1 sinewave with another internally-generated sinewave.
# 100% modulation depth at 10Hz.
i.synth_modulate(1, SG_MOD_AMPL, SG_MODSOURCE_INT, 1, 10)
i.commit()
finally:
m.close()
|
5f416dadecf21accbaccd69740c5398967ec4a7c
|
doubles/nose.py
|
doubles/nose.py
|
from __future__ import absolute_import
import sys
from nose.plugins.base import Plugin
from doubles.lifecycle import setup, verify, teardown, current_space
from doubles.exceptions import MockExpectationError
class NoseIntegration(Plugin):
name = 'doubles'
def beforeTest(self, test):
setup()
def afterTest(self, test):
if current_space():
teardown()
def prepareTestCase(self, test):
def wrapped(result):
test.test.run()
if result.failures or result.errors:
return
try:
if current_space():
verify()
except MockExpectationError:
result.addFailure(test.test, sys.exc_info())
return wrapped
|
from __future__ import absolute_import
import sys
from nose.plugins.base import Plugin
from doubles.lifecycle import setup, verify, teardown, current_space
from doubles.exceptions import MockExpectationError
class NoseIntegration(Plugin):
name = 'doubles'
def beforeTest(self, test):
setup()
def afterTest(self, test):
if current_space():
teardown()
def prepareTestCase(self, test):
def wrapped(result):
test.test.run()
try:
if current_space():
verify()
except MockExpectationError:
result.addFailure(test.test, sys.exc_info())
return wrapped
|
Remove verification skipping in Nose plugin for now.
|
Remove verification skipping in Nose plugin for now.
|
Python
|
mit
|
uber/doubles
|
from __future__ import absolute_import
import sys
from nose.plugins.base import Plugin
from doubles.lifecycle import setup, verify, teardown, current_space
from doubles.exceptions import MockExpectationError
class NoseIntegration(Plugin):
name = 'doubles'
def beforeTest(self, test):
setup()
def afterTest(self, test):
if current_space():
teardown()
def prepareTestCase(self, test):
def wrapped(result):
test.test.run()
if result.failures or result.errors:
return
try:
if current_space():
verify()
except MockExpectationError:
result.addFailure(test.test, sys.exc_info())
return wrapped
Remove verification skipping in Nose plugin for now.
|
from __future__ import absolute_import
import sys
from nose.plugins.base import Plugin
from doubles.lifecycle import setup, verify, teardown, current_space
from doubles.exceptions import MockExpectationError
class NoseIntegration(Plugin):
name = 'doubles'
def beforeTest(self, test):
setup()
def afterTest(self, test):
if current_space():
teardown()
def prepareTestCase(self, test):
def wrapped(result):
test.test.run()
try:
if current_space():
verify()
except MockExpectationError:
result.addFailure(test.test, sys.exc_info())
return wrapped
|
<commit_before>from __future__ import absolute_import
import sys
from nose.plugins.base import Plugin
from doubles.lifecycle import setup, verify, teardown, current_space
from doubles.exceptions import MockExpectationError
class NoseIntegration(Plugin):
name = 'doubles'
def beforeTest(self, test):
setup()
def afterTest(self, test):
if current_space():
teardown()
def prepareTestCase(self, test):
def wrapped(result):
test.test.run()
if result.failures or result.errors:
return
try:
if current_space():
verify()
except MockExpectationError:
result.addFailure(test.test, sys.exc_info())
return wrapped
<commit_msg>Remove verification skipping in Nose plugin for now.<commit_after>
|
from __future__ import absolute_import
import sys
from nose.plugins.base import Plugin
from doubles.lifecycle import setup, verify, teardown, current_space
from doubles.exceptions import MockExpectationError
class NoseIntegration(Plugin):
name = 'doubles'
def beforeTest(self, test):
setup()
def afterTest(self, test):
if current_space():
teardown()
def prepareTestCase(self, test):
def wrapped(result):
test.test.run()
try:
if current_space():
verify()
except MockExpectationError:
result.addFailure(test.test, sys.exc_info())
return wrapped
|
from __future__ import absolute_import
import sys
from nose.plugins.base import Plugin
from doubles.lifecycle import setup, verify, teardown, current_space
from doubles.exceptions import MockExpectationError
class NoseIntegration(Plugin):
name = 'doubles'
def beforeTest(self, test):
setup()
def afterTest(self, test):
if current_space():
teardown()
def prepareTestCase(self, test):
def wrapped(result):
test.test.run()
if result.failures or result.errors:
return
try:
if current_space():
verify()
except MockExpectationError:
result.addFailure(test.test, sys.exc_info())
return wrapped
Remove verification skipping in Nose plugin for now.from __future__ import absolute_import
import sys
from nose.plugins.base import Plugin
from doubles.lifecycle import setup, verify, teardown, current_space
from doubles.exceptions import MockExpectationError
class NoseIntegration(Plugin):
name = 'doubles'
def beforeTest(self, test):
setup()
def afterTest(self, test):
if current_space():
teardown()
def prepareTestCase(self, test):
def wrapped(result):
test.test.run()
try:
if current_space():
verify()
except MockExpectationError:
result.addFailure(test.test, sys.exc_info())
return wrapped
|
<commit_before>from __future__ import absolute_import
import sys
from nose.plugins.base import Plugin
from doubles.lifecycle import setup, verify, teardown, current_space
from doubles.exceptions import MockExpectationError
class NoseIntegration(Plugin):
name = 'doubles'
def beforeTest(self, test):
setup()
def afterTest(self, test):
if current_space():
teardown()
def prepareTestCase(self, test):
def wrapped(result):
test.test.run()
if result.failures or result.errors:
return
try:
if current_space():
verify()
except MockExpectationError:
result.addFailure(test.test, sys.exc_info())
return wrapped
<commit_msg>Remove verification skipping in Nose plugin for now.<commit_after>from __future__ import absolute_import
import sys
from nose.plugins.base import Plugin
from doubles.lifecycle import setup, verify, teardown, current_space
from doubles.exceptions import MockExpectationError
class NoseIntegration(Plugin):
name = 'doubles'
def beforeTest(self, test):
setup()
def afterTest(self, test):
if current_space():
teardown()
def prepareTestCase(self, test):
def wrapped(result):
test.test.run()
try:
if current_space():
verify()
except MockExpectationError:
result.addFailure(test.test, sys.exc_info())
return wrapped
|
852ce5cee8171fdf4a33f3267de34042cb066bf3
|
tests/routine/test_config.py
|
tests/routine/test_config.py
|
import unittest
from performance.routine import Config
from performance.web import Request
class ConfigTestCase(unittest.TestCase):
def setUp(self):
self.host = 'http://www.google.com'
def test_init(self):
config = Config(host=self.host)
self.assertEqual(self.host, config.host)
self.assertEqual([], config.requests)
def test_add_request(self):
config = Config(host=self.host)
requestA = Request(url='/', type=Request.GET)
requestB = Request(url='/about', type=Request.POST)
config.add_request(requestA)
config.add_request(requestB)
self.assertEqual([requestA, requestB], config.requests)
with self.assertRaises(TypeError) as error:
config.add_request('no_request_type')
self.assertEqual('No performance.web.Request object', error.exception.__str__())
|
import unittest
from performance.routine import Config
from performance.web import Request
class ConfigTestCase(unittest.TestCase):
def setUp(self):
self.host = 'http://www.google.com'
def test_init(self):
config = Config(host=self.host)
self.assertEqual(self.host, config.host)
self.assertListEqual([], config.requests)
self.assertEqual(10, config.do_requests_count)
self.assertEqual(1, config.clients_count)
def test_add_request(self):
config = Config(host='config_host')
request_a = Request(url='/', type=Request.GET)
request_b = Request(url='/about', type=Request.POST)
config.add_request(request_a)
config.add_request(request_b)
self.assertListEqual([request_a, request_b], config.requests)
with self.assertRaises(TypeError) as error:
config.add_request('no_request_type')
self.assertEqual('No performance.web.Request object', error.exception.__str__())
|
Update test to for Config.add_request and config-counts
|
Update test to for Config.add_request and config-counts
|
Python
|
mit
|
BakeCode/performance-testing,BakeCode/performance-testing
|
import unittest
from performance.routine import Config
from performance.web import Request
class ConfigTestCase(unittest.TestCase):
def setUp(self):
self.host = 'http://www.google.com'
def test_init(self):
config = Config(host=self.host)
self.assertEqual(self.host, config.host)
self.assertEqual([], config.requests)
def test_add_request(self):
config = Config(host=self.host)
requestA = Request(url='/', type=Request.GET)
requestB = Request(url='/about', type=Request.POST)
config.add_request(requestA)
config.add_request(requestB)
self.assertEqual([requestA, requestB], config.requests)
with self.assertRaises(TypeError) as error:
config.add_request('no_request_type')
self.assertEqual('No performance.web.Request object', error.exception.__str__())
Update test to for Config.add_request and config-counts
|
import unittest
from performance.routine import Config
from performance.web import Request
class ConfigTestCase(unittest.TestCase):
def setUp(self):
self.host = 'http://www.google.com'
def test_init(self):
config = Config(host=self.host)
self.assertEqual(self.host, config.host)
self.assertListEqual([], config.requests)
self.assertEqual(10, config.do_requests_count)
self.assertEqual(1, config.clients_count)
def test_add_request(self):
config = Config(host='config_host')
request_a = Request(url='/', type=Request.GET)
request_b = Request(url='/about', type=Request.POST)
config.add_request(request_a)
config.add_request(request_b)
self.assertListEqual([request_a, request_b], config.requests)
with self.assertRaises(TypeError) as error:
config.add_request('no_request_type')
self.assertEqual('No performance.web.Request object', error.exception.__str__())
|
<commit_before>import unittest
from performance.routine import Config
from performance.web import Request
class ConfigTestCase(unittest.TestCase):
def setUp(self):
self.host = 'http://www.google.com'
def test_init(self):
config = Config(host=self.host)
self.assertEqual(self.host, config.host)
self.assertEqual([], config.requests)
def test_add_request(self):
config = Config(host=self.host)
requestA = Request(url='/', type=Request.GET)
requestB = Request(url='/about', type=Request.POST)
config.add_request(requestA)
config.add_request(requestB)
self.assertEqual([requestA, requestB], config.requests)
with self.assertRaises(TypeError) as error:
config.add_request('no_request_type')
self.assertEqual('No performance.web.Request object', error.exception.__str__())
<commit_msg>Update test to for Config.add_request and config-counts<commit_after>
|
import unittest
from performance.routine import Config
from performance.web import Request
class ConfigTestCase(unittest.TestCase):
def setUp(self):
self.host = 'http://www.google.com'
def test_init(self):
config = Config(host=self.host)
self.assertEqual(self.host, config.host)
self.assertListEqual([], config.requests)
self.assertEqual(10, config.do_requests_count)
self.assertEqual(1, config.clients_count)
def test_add_request(self):
config = Config(host='config_host')
request_a = Request(url='/', type=Request.GET)
request_b = Request(url='/about', type=Request.POST)
config.add_request(request_a)
config.add_request(request_b)
self.assertListEqual([request_a, request_b], config.requests)
with self.assertRaises(TypeError) as error:
config.add_request('no_request_type')
self.assertEqual('No performance.web.Request object', error.exception.__str__())
|
import unittest
from performance.routine import Config
from performance.web import Request
class ConfigTestCase(unittest.TestCase):
def setUp(self):
self.host = 'http://www.google.com'
def test_init(self):
config = Config(host=self.host)
self.assertEqual(self.host, config.host)
self.assertEqual([], config.requests)
def test_add_request(self):
config = Config(host=self.host)
requestA = Request(url='/', type=Request.GET)
requestB = Request(url='/about', type=Request.POST)
config.add_request(requestA)
config.add_request(requestB)
self.assertEqual([requestA, requestB], config.requests)
with self.assertRaises(TypeError) as error:
config.add_request('no_request_type')
self.assertEqual('No performance.web.Request object', error.exception.__str__())
Update test to for Config.add_request and config-countsimport unittest
from performance.routine import Config
from performance.web import Request
class ConfigTestCase(unittest.TestCase):
def setUp(self):
self.host = 'http://www.google.com'
def test_init(self):
config = Config(host=self.host)
self.assertEqual(self.host, config.host)
self.assertListEqual([], config.requests)
self.assertEqual(10, config.do_requests_count)
self.assertEqual(1, config.clients_count)
def test_add_request(self):
config = Config(host='config_host')
request_a = Request(url='/', type=Request.GET)
request_b = Request(url='/about', type=Request.POST)
config.add_request(request_a)
config.add_request(request_b)
self.assertListEqual([request_a, request_b], config.requests)
with self.assertRaises(TypeError) as error:
config.add_request('no_request_type')
self.assertEqual('No performance.web.Request object', error.exception.__str__())
|
<commit_before>import unittest
from performance.routine import Config
from performance.web import Request
class ConfigTestCase(unittest.TestCase):
def setUp(self):
self.host = 'http://www.google.com'
def test_init(self):
config = Config(host=self.host)
self.assertEqual(self.host, config.host)
self.assertEqual([], config.requests)
def test_add_request(self):
config = Config(host=self.host)
requestA = Request(url='/', type=Request.GET)
requestB = Request(url='/about', type=Request.POST)
config.add_request(requestA)
config.add_request(requestB)
self.assertEqual([requestA, requestB], config.requests)
with self.assertRaises(TypeError) as error:
config.add_request('no_request_type')
self.assertEqual('No performance.web.Request object', error.exception.__str__())
<commit_msg>Update test to for Config.add_request and config-counts<commit_after>import unittest
from performance.routine import Config
from performance.web import Request
class ConfigTestCase(unittest.TestCase):
def setUp(self):
self.host = 'http://www.google.com'
def test_init(self):
config = Config(host=self.host)
self.assertEqual(self.host, config.host)
self.assertListEqual([], config.requests)
self.assertEqual(10, config.do_requests_count)
self.assertEqual(1, config.clients_count)
def test_add_request(self):
config = Config(host='config_host')
request_a = Request(url='/', type=Request.GET)
request_b = Request(url='/about', type=Request.POST)
config.add_request(request_a)
config.add_request(request_b)
self.assertListEqual([request_a, request_b], config.requests)
with self.assertRaises(TypeError) as error:
config.add_request('no_request_type')
self.assertEqual('No performance.web.Request object', error.exception.__str__())
|
9622a7dbac8fdaa97121b638aa72d43c446cb71c
|
astroquery/ogle/__init__.py
|
astroquery/ogle/__init__.py
|
# Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
OGLE Query Tool
---------------
:Author: Brian Svoboda (svobodb@email.arizona.edu)
This package is for querying interstellar extinction toward the Galactic bulge
from OGLE-III data hosted at: http://ogle.astrouw.edu.pl/cgi-ogle/getext.py.
Note:
If you use the data from OGLE please refer to the publication by Nataf et al.
(2012).
"""
from .core import *
|
# Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
OGLE Query Tool
---------------
:Author: Brian Svoboda (svobodb@email.arizona.edu)
This package is for querying interstellar extinction toward the Galactic bulge
from OGLE-III data
`hosted at. <http://ogle.astrouw.edu.pl/cgi-ogle/getext.py>`_
Note:
If you use the data from OGLE please refer to the publication by Nataf et al.
(2012).
"""
from .core import *
|
Add reST link for sphinx
|
Add reST link for sphinx
|
Python
|
bsd-3-clause
|
imbasimba/astroquery,ceb8/astroquery,imbasimba/astroquery,ceb8/astroquery
|
# Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
OGLE Query Tool
---------------
:Author: Brian Svoboda (svobodb@email.arizona.edu)
This package is for querying interstellar extinction toward the Galactic bulge
from OGLE-III data hosted at: http://ogle.astrouw.edu.pl/cgi-ogle/getext.py.
Note:
If you use the data from OGLE please refer to the publication by Nataf et al.
(2012).
"""
from .core import *
Add reST link for sphinx
|
# Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
OGLE Query Tool
---------------
:Author: Brian Svoboda (svobodb@email.arizona.edu)
This package is for querying interstellar extinction toward the Galactic bulge
from OGLE-III data
`hosted at. <http://ogle.astrouw.edu.pl/cgi-ogle/getext.py>`_
Note:
If you use the data from OGLE please refer to the publication by Nataf et al.
(2012).
"""
from .core import *
|
<commit_before># Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
OGLE Query Tool
---------------
:Author: Brian Svoboda (svobodb@email.arizona.edu)
This package is for querying interstellar extinction toward the Galactic bulge
from OGLE-III data hosted at: http://ogle.astrouw.edu.pl/cgi-ogle/getext.py.
Note:
If you use the data from OGLE please refer to the publication by Nataf et al.
(2012).
"""
from .core import *
<commit_msg>Add reST link for sphinx<commit_after>
|
# Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
OGLE Query Tool
---------------
:Author: Brian Svoboda (svobodb@email.arizona.edu)
This package is for querying interstellar extinction toward the Galactic bulge
from OGLE-III data
`hosted at. <http://ogle.astrouw.edu.pl/cgi-ogle/getext.py>`_
Note:
If you use the data from OGLE please refer to the publication by Nataf et al.
(2012).
"""
from .core import *
|
# Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
OGLE Query Tool
---------------
:Author: Brian Svoboda (svobodb@email.arizona.edu)
This package is for querying interstellar extinction toward the Galactic bulge
from OGLE-III data hosted at: http://ogle.astrouw.edu.pl/cgi-ogle/getext.py.
Note:
If you use the data from OGLE please refer to the publication by Nataf et al.
(2012).
"""
from .core import *
Add reST link for sphinx# Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
OGLE Query Tool
---------------
:Author: Brian Svoboda (svobodb@email.arizona.edu)
This package is for querying interstellar extinction toward the Galactic bulge
from OGLE-III data
`hosted at. <http://ogle.astrouw.edu.pl/cgi-ogle/getext.py>`_
Note:
If you use the data from OGLE please refer to the publication by Nataf et al.
(2012).
"""
from .core import *
|
<commit_before># Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
OGLE Query Tool
---------------
:Author: Brian Svoboda (svobodb@email.arizona.edu)
This package is for querying interstellar extinction toward the Galactic bulge
from OGLE-III data hosted at: http://ogle.astrouw.edu.pl/cgi-ogle/getext.py.
Note:
If you use the data from OGLE please refer to the publication by Nataf et al.
(2012).
"""
from .core import *
<commit_msg>Add reST link for sphinx<commit_after># Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
OGLE Query Tool
---------------
:Author: Brian Svoboda (svobodb@email.arizona.edu)
This package is for querying interstellar extinction toward the Galactic bulge
from OGLE-III data
`hosted at. <http://ogle.astrouw.edu.pl/cgi-ogle/getext.py>`_
Note:
If you use the data from OGLE please refer to the publication by Nataf et al.
(2012).
"""
from .core import *
|
1f9edc409029556bb943655de311f47dfd4c2237
|
src/hijri_converter/__init__.py
|
src/hijri_converter/__init__.py
|
__version__ = "2.1.2"
|
"""Accurate Hijri-Gregorian date converter based on the Umm al-Qura calendar"""
__version__ = "2.1.2"
|
Add summary to package init
|
Add summary to package init
|
Python
|
mit
|
dralshehri/hijri-converter
|
__version__ = "2.1.2"
Add summary to package init
|
"""Accurate Hijri-Gregorian date converter based on the Umm al-Qura calendar"""
__version__ = "2.1.2"
|
<commit_before>__version__ = "2.1.2"
<commit_msg>Add summary to package init<commit_after>
|
"""Accurate Hijri-Gregorian date converter based on the Umm al-Qura calendar"""
__version__ = "2.1.2"
|
__version__ = "2.1.2"
Add summary to package init"""Accurate Hijri-Gregorian date converter based on the Umm al-Qura calendar"""
__version__ = "2.1.2"
|
<commit_before>__version__ = "2.1.2"
<commit_msg>Add summary to package init<commit_after>"""Accurate Hijri-Gregorian date converter based on the Umm al-Qura calendar"""
__version__ = "2.1.2"
|
562cad4342f9daff31ae383d96b2d86cabdca8fd
|
setup.py
|
setup.py
|
from distutils.core import setup, Extension
data_files = ["inpout32.dll"]
setup(name='PortFunctions', version='1.1',
description = 'A Windows port reader for Python, built in C',
author = 'Bradley Poulette',
author_email = 'bpoulett@ualberta.ca',
data_files = data_files,
ext_modules=[Extension('readPort', ['PortFunctions.c'])])
|
from distutils.core import setup, Extension
data_files = [("DLLs", ["inpout32.dll"])]
setup(name='PortFunctions', version='1.1',
description = 'A Windows port reader for Python, built in C',
author = 'Bradley Poulette',
author_email = 'bpoulett@ualberta.ca',
data_files = data_files,
ext_modules=[Extension('readPort', ['PortFunctions.c'])])
|
Revert "Moved inpout32.dll from DLLs to Python27"
|
Revert "Moved inpout32.dll from DLLs to Python27"
This reverts commit 9274a30ba7c3ee82e4f5a94c276f26fa03d5fe89.
|
Python
|
apache-2.0
|
chickendiver/PortFunctions,chickendiver/PortFunctions
|
from distutils.core import setup, Extension
data_files = ["inpout32.dll"]
setup(name='PortFunctions', version='1.1',
description = 'A Windows port reader for Python, built in C',
author = 'Bradley Poulette',
author_email = 'bpoulett@ualberta.ca',
data_files = data_files,
ext_modules=[Extension('readPort', ['PortFunctions.c'])])
Revert "Moved inpout32.dll from DLLs to Python27"
This reverts commit 9274a30ba7c3ee82e4f5a94c276f26fa03d5fe89.
|
from distutils.core import setup, Extension
data_files = [("DLLs", ["inpout32.dll"])]
setup(name='PortFunctions', version='1.1',
description = 'A Windows port reader for Python, built in C',
author = 'Bradley Poulette',
author_email = 'bpoulett@ualberta.ca',
data_files = data_files,
ext_modules=[Extension('readPort', ['PortFunctions.c'])])
|
<commit_before>from distutils.core import setup, Extension
data_files = ["inpout32.dll"]
setup(name='PortFunctions', version='1.1',
description = 'A Windows port reader for Python, built in C',
author = 'Bradley Poulette',
author_email = 'bpoulett@ualberta.ca',
data_files = data_files,
ext_modules=[Extension('readPort', ['PortFunctions.c'])])
<commit_msg>Revert "Moved inpout32.dll from DLLs to Python27"
This reverts commit 9274a30ba7c3ee82e4f5a94c276f26fa03d5fe89.<commit_after>
|
from distutils.core import setup, Extension
data_files = [("DLLs", ["inpout32.dll"])]
setup(name='PortFunctions', version='1.1',
description = 'A Windows port reader for Python, built in C',
author = 'Bradley Poulette',
author_email = 'bpoulett@ualberta.ca',
data_files = data_files,
ext_modules=[Extension('readPort', ['PortFunctions.c'])])
|
from distutils.core import setup, Extension
data_files = ["inpout32.dll"]
setup(name='PortFunctions', version='1.1',
description = 'A Windows port reader for Python, built in C',
author = 'Bradley Poulette',
author_email = 'bpoulett@ualberta.ca',
data_files = data_files,
ext_modules=[Extension('readPort', ['PortFunctions.c'])])
Revert "Moved inpout32.dll from DLLs to Python27"
This reverts commit 9274a30ba7c3ee82e4f5a94c276f26fa03d5fe89.from distutils.core import setup, Extension
data_files = [("DLLs", ["inpout32.dll"])]
setup(name='PortFunctions', version='1.1',
description = 'A Windows port reader for Python, built in C',
author = 'Bradley Poulette',
author_email = 'bpoulett@ualberta.ca',
data_files = data_files,
ext_modules=[Extension('readPort', ['PortFunctions.c'])])
|
<commit_before>from distutils.core import setup, Extension
data_files = ["inpout32.dll"]
setup(name='PortFunctions', version='1.1',
description = 'A Windows port reader for Python, built in C',
author = 'Bradley Poulette',
author_email = 'bpoulett@ualberta.ca',
data_files = data_files,
ext_modules=[Extension('readPort', ['PortFunctions.c'])])
<commit_msg>Revert "Moved inpout32.dll from DLLs to Python27"
This reverts commit 9274a30ba7c3ee82e4f5a94c276f26fa03d5fe89.<commit_after>from distutils.core import setup, Extension
data_files = [("DLLs", ["inpout32.dll"])]
setup(name='PortFunctions', version='1.1',
description = 'A Windows port reader for Python, built in C',
author = 'Bradley Poulette',
author_email = 'bpoulett@ualberta.ca',
data_files = data_files,
ext_modules=[Extension('readPort', ['PortFunctions.c'])])
|
0cb6291d4134f527cc1bb905af836918c6994b13
|
setup.py
|
setup.py
|
#!/usr/bin/env python3
from setuptools import find_packages, setup
dependency_links = [
'https://github.com/m157q/robobrowser/tarball/babf6dd#egg=robobrowser-0.5.3'
]
install_requires = [
'beautifulsoup4==4.4.1',
'dryscrape==1.0',
'requests==2.10.0',
'robobrowser==0.5.3',
]
setup(
packages=find_packages(exclude=['gettitle.bin']),
scripts=['gettitle/bin/gettitle'],
dependency_links=dependency_links,
install_requires=install_requires,
name='gettitle',
version='0.1.1',
author='Shun-Yi Jheng',
author_email='M157q.tw@gmail.com',
url="https://github.com/M157q/gettitle",
keywords="cli, webpage, title",
description="Get webpage title by url from terminal.",
platforms=['Linux'],
license='MIT',
classifiers=[
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Intended Audience :: End Users/Desktop",
"License :: OSI Approved :: MIT License",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Utilities",
],
)
|
#!/usr/bin/env python3
from setuptools import find_packages, setup
dependency_links = [
'https://github.com/m157q/robobrowser/tarball/babf6dd#egg=robobrowser-0.5.3'
]
install_requires = [
'beautifulsoup4==4.4.1',
'dryscrape==1.0',
'requests==2.10.0',
'robobrowser==0.5.3',
]
setup(
packages=find_packages(exclude=['gettitle.bin']),
scripts=['gettitle/bin/gettitle'],
dependency_links=dependency_links,
install_requires=install_requires,
name='gettitle',
version='0.1.2',
author='Shun-Yi Jheng',
author_email='M157q.tw@gmail.com',
url="https://github.com/M157q/gettitle",
keywords="cli, webpage, title",
description="Get webpage title by url from terminal.",
platforms=['Linux'],
license='MIT',
classifiers=[
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Intended Audience :: End Users/Desktop",
"License :: OSI Approved :: MIT License",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Utilities",
],
)
|
Fix for error when no X window detected.
|
[v0.1.2] Fix for error when no X window detected.
|
Python
|
mit
|
M157q/gettitle
|
#!/usr/bin/env python3
from setuptools import find_packages, setup
dependency_links = [
'https://github.com/m157q/robobrowser/tarball/babf6dd#egg=robobrowser-0.5.3'
]
install_requires = [
'beautifulsoup4==4.4.1',
'dryscrape==1.0',
'requests==2.10.0',
'robobrowser==0.5.3',
]
setup(
packages=find_packages(exclude=['gettitle.bin']),
scripts=['gettitle/bin/gettitle'],
dependency_links=dependency_links,
install_requires=install_requires,
name='gettitle',
version='0.1.1',
author='Shun-Yi Jheng',
author_email='M157q.tw@gmail.com',
url="https://github.com/M157q/gettitle",
keywords="cli, webpage, title",
description="Get webpage title by url from terminal.",
platforms=['Linux'],
license='MIT',
classifiers=[
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Intended Audience :: End Users/Desktop",
"License :: OSI Approved :: MIT License",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Utilities",
],
)
[v0.1.2] Fix for error when no X window detected.
|
#!/usr/bin/env python3
from setuptools import find_packages, setup
dependency_links = [
'https://github.com/m157q/robobrowser/tarball/babf6dd#egg=robobrowser-0.5.3'
]
install_requires = [
'beautifulsoup4==4.4.1',
'dryscrape==1.0',
'requests==2.10.0',
'robobrowser==0.5.3',
]
setup(
packages=find_packages(exclude=['gettitle.bin']),
scripts=['gettitle/bin/gettitle'],
dependency_links=dependency_links,
install_requires=install_requires,
name='gettitle',
version='0.1.2',
author='Shun-Yi Jheng',
author_email='M157q.tw@gmail.com',
url="https://github.com/M157q/gettitle",
keywords="cli, webpage, title",
description="Get webpage title by url from terminal.",
platforms=['Linux'],
license='MIT',
classifiers=[
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Intended Audience :: End Users/Desktop",
"License :: OSI Approved :: MIT License",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Utilities",
],
)
|
<commit_before>#!/usr/bin/env python3
from setuptools import find_packages, setup
dependency_links = [
'https://github.com/m157q/robobrowser/tarball/babf6dd#egg=robobrowser-0.5.3'
]
install_requires = [
'beautifulsoup4==4.4.1',
'dryscrape==1.0',
'requests==2.10.0',
'robobrowser==0.5.3',
]
setup(
packages=find_packages(exclude=['gettitle.bin']),
scripts=['gettitle/bin/gettitle'],
dependency_links=dependency_links,
install_requires=install_requires,
name='gettitle',
version='0.1.1',
author='Shun-Yi Jheng',
author_email='M157q.tw@gmail.com',
url="https://github.com/M157q/gettitle",
keywords="cli, webpage, title",
description="Get webpage title by url from terminal.",
platforms=['Linux'],
license='MIT',
classifiers=[
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Intended Audience :: End Users/Desktop",
"License :: OSI Approved :: MIT License",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Utilities",
],
)
<commit_msg>[v0.1.2] Fix for error when no X window detected.<commit_after>
|
#!/usr/bin/env python3
from setuptools import find_packages, setup
dependency_links = [
'https://github.com/m157q/robobrowser/tarball/babf6dd#egg=robobrowser-0.5.3'
]
install_requires = [
'beautifulsoup4==4.4.1',
'dryscrape==1.0',
'requests==2.10.0',
'robobrowser==0.5.3',
]
setup(
packages=find_packages(exclude=['gettitle.bin']),
scripts=['gettitle/bin/gettitle'],
dependency_links=dependency_links,
install_requires=install_requires,
name='gettitle',
version='0.1.2',
author='Shun-Yi Jheng',
author_email='M157q.tw@gmail.com',
url="https://github.com/M157q/gettitle",
keywords="cli, webpage, title",
description="Get webpage title by url from terminal.",
platforms=['Linux'],
license='MIT',
classifiers=[
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Intended Audience :: End Users/Desktop",
"License :: OSI Approved :: MIT License",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Utilities",
],
)
|
#!/usr/bin/env python3
from setuptools import find_packages, setup
dependency_links = [
'https://github.com/m157q/robobrowser/tarball/babf6dd#egg=robobrowser-0.5.3'
]
install_requires = [
'beautifulsoup4==4.4.1',
'dryscrape==1.0',
'requests==2.10.0',
'robobrowser==0.5.3',
]
setup(
packages=find_packages(exclude=['gettitle.bin']),
scripts=['gettitle/bin/gettitle'],
dependency_links=dependency_links,
install_requires=install_requires,
name='gettitle',
version='0.1.1',
author='Shun-Yi Jheng',
author_email='M157q.tw@gmail.com',
url="https://github.com/M157q/gettitle",
keywords="cli, webpage, title",
description="Get webpage title by url from terminal.",
platforms=['Linux'],
license='MIT',
classifiers=[
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Intended Audience :: End Users/Desktop",
"License :: OSI Approved :: MIT License",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Utilities",
],
)
[v0.1.2] Fix for error when no X window detected.#!/usr/bin/env python3
from setuptools import find_packages, setup
dependency_links = [
'https://github.com/m157q/robobrowser/tarball/babf6dd#egg=robobrowser-0.5.3'
]
install_requires = [
'beautifulsoup4==4.4.1',
'dryscrape==1.0',
'requests==2.10.0',
'robobrowser==0.5.3',
]
setup(
packages=find_packages(exclude=['gettitle.bin']),
scripts=['gettitle/bin/gettitle'],
dependency_links=dependency_links,
install_requires=install_requires,
name='gettitle',
version='0.1.2',
author='Shun-Yi Jheng',
author_email='M157q.tw@gmail.com',
url="https://github.com/M157q/gettitle",
keywords="cli, webpage, title",
description="Get webpage title by url from terminal.",
platforms=['Linux'],
license='MIT',
classifiers=[
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Intended Audience :: End Users/Desktop",
"License :: OSI Approved :: MIT License",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Utilities",
],
)
|
<commit_before>#!/usr/bin/env python3
from setuptools import find_packages, setup
dependency_links = [
'https://github.com/m157q/robobrowser/tarball/babf6dd#egg=robobrowser-0.5.3'
]
install_requires = [
'beautifulsoup4==4.4.1',
'dryscrape==1.0',
'requests==2.10.0',
'robobrowser==0.5.3',
]
setup(
packages=find_packages(exclude=['gettitle.bin']),
scripts=['gettitle/bin/gettitle'],
dependency_links=dependency_links,
install_requires=install_requires,
name='gettitle',
version='0.1.1',
author='Shun-Yi Jheng',
author_email='M157q.tw@gmail.com',
url="https://github.com/M157q/gettitle",
keywords="cli, webpage, title",
description="Get webpage title by url from terminal.",
platforms=['Linux'],
license='MIT',
classifiers=[
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Intended Audience :: End Users/Desktop",
"License :: OSI Approved :: MIT License",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Utilities",
],
)
<commit_msg>[v0.1.2] Fix for error when no X window detected.<commit_after>#!/usr/bin/env python3
from setuptools import find_packages, setup
dependency_links = [
'https://github.com/m157q/robobrowser/tarball/babf6dd#egg=robobrowser-0.5.3'
]
install_requires = [
'beautifulsoup4==4.4.1',
'dryscrape==1.0',
'requests==2.10.0',
'robobrowser==0.5.3',
]
setup(
packages=find_packages(exclude=['gettitle.bin']),
scripts=['gettitle/bin/gettitle'],
dependency_links=dependency_links,
install_requires=install_requires,
name='gettitle',
version='0.1.2',
author='Shun-Yi Jheng',
author_email='M157q.tw@gmail.com',
url="https://github.com/M157q/gettitle",
keywords="cli, webpage, title",
description="Get webpage title by url from terminal.",
platforms=['Linux'],
license='MIT',
classifiers=[
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Intended Audience :: End Users/Desktop",
"License :: OSI Approved :: MIT License",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Utilities",
],
)
|
1ed2f877556fb4a99f9e71177c1ada7585ed9a30
|
setup.py
|
setup.py
|
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
setup(
name='urbansim',
version='0.2dev',
description='Tool for modeling metropolitan real estate markets',
author='Synthicity',
author_email='ffoti@berkeley.edu',
license='AGPL',
url='https://github.com/synthicity/urbansim',
classifiers=[
'Development Status :: 4 - Beta',
'Programming Language :: Python :: 2.7',
'License :: OSI Approved :: GNU Affero General Public License v3'
],
packages=find_packages(exclude=['urbansimd', '*.tests']),
package_data={'synthicity.urbansim': ['templates/*.template']},
install_requires=[
'Django>=1.6.2',
'jinja2>=2.7.2',
'numpy>=1.8.0',
'pandas>=0.13.1',
'patsy>=0.2.1',
'scipy>=0.13.3',
'shapely>=1.3.0',
'simplejson>=3.3.3',
'statsmodels>=0.5.0',
'tables>=3.1.0'
],
entry_points={
'console_scripts': [
'usimcompile = synthicity.urbansim.compilecli:main'
]
}
)
|
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
setup(
name='urbansim',
version='0.2dev',
description='Tool for modeling metropolitan real estate markets',
author='Synthicity',
author_email='ffoti@berkeley.edu',
license='AGPL',
url='https://github.com/synthicity/urbansim',
classifiers=[
'Development Status :: 4 - Beta',
'Programming Language :: Python :: 2.7',
'License :: OSI Approved :: GNU Affero General Public License v3'
],
packages=find_packages(exclude=['urbansimd', '*.tests']),
package_data={'synthicity.urbansim': ['templates/*.template']},
install_requires=[
'Django>=1.6.2',
'jinja2>=2.7.2',
'numpy>=1.8.0',
'pandas>=0.13.1',
'patsy>=0.2.1',
'scipy>=0.13.3',
'shapely>=1.3.0',
'simplejson>=3.3.3',
'statsmodels>=0.5.0',
'tables>=3.1.0'
],
entry_points={
'console_scripts': [
'urbansim_compile = synthicity.urbansim.compilecli:main'
]
}
)
|
Change compile CLI entry point name to urbansim_compile.
|
Change compile CLI entry point name to urbansim_compile.
|
Python
|
bsd-3-clause
|
synthicity/urbansim,UDST/urbansim,UDST/urbansim,bricegnichols/urbansim,apdjustino/urbansim,synthicity/urbansim,AZMAG/urbansim,bricegnichols/urbansim,ual/urbansim,apdjustino/urbansim,VladimirTyrin/urbansim,ual/urbansim,UDST/urbansim,AZMAG/urbansim,waddell/urbansim,VladimirTyrin/urbansim,waddell/urbansim,waddell/urbansim,bricegnichols/urbansim,AZMAG/urbansim,AZMAG/urbansim,bricegnichols/urbansim,waddell/urbansim,SANDAG/urbansim,ual/urbansim,UDST/urbansim,apdjustino/urbansim,VladimirTyrin/urbansim,synthicity/urbansim,ual/urbansim,VladimirTyrin/urbansim,SANDAG/urbansim,SANDAG/urbansim,SANDAG/urbansim,synthicity/urbansim,apdjustino/urbansim
|
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
setup(
name='urbansim',
version='0.2dev',
description='Tool for modeling metropolitan real estate markets',
author='Synthicity',
author_email='ffoti@berkeley.edu',
license='AGPL',
url='https://github.com/synthicity/urbansim',
classifiers=[
'Development Status :: 4 - Beta',
'Programming Language :: Python :: 2.7',
'License :: OSI Approved :: GNU Affero General Public License v3'
],
packages=find_packages(exclude=['urbansimd', '*.tests']),
package_data={'synthicity.urbansim': ['templates/*.template']},
install_requires=[
'Django>=1.6.2',
'jinja2>=2.7.2',
'numpy>=1.8.0',
'pandas>=0.13.1',
'patsy>=0.2.1',
'scipy>=0.13.3',
'shapely>=1.3.0',
'simplejson>=3.3.3',
'statsmodels>=0.5.0',
'tables>=3.1.0'
],
entry_points={
'console_scripts': [
'usimcompile = synthicity.urbansim.compilecli:main'
]
}
)
Change compile CLI entry point name to urbansim_compile.
|
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
setup(
name='urbansim',
version='0.2dev',
description='Tool for modeling metropolitan real estate markets',
author='Synthicity',
author_email='ffoti@berkeley.edu',
license='AGPL',
url='https://github.com/synthicity/urbansim',
classifiers=[
'Development Status :: 4 - Beta',
'Programming Language :: Python :: 2.7',
'License :: OSI Approved :: GNU Affero General Public License v3'
],
packages=find_packages(exclude=['urbansimd', '*.tests']),
package_data={'synthicity.urbansim': ['templates/*.template']},
install_requires=[
'Django>=1.6.2',
'jinja2>=2.7.2',
'numpy>=1.8.0',
'pandas>=0.13.1',
'patsy>=0.2.1',
'scipy>=0.13.3',
'shapely>=1.3.0',
'simplejson>=3.3.3',
'statsmodels>=0.5.0',
'tables>=3.1.0'
],
entry_points={
'console_scripts': [
'urbansim_compile = synthicity.urbansim.compilecli:main'
]
}
)
|
<commit_before>from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
setup(
name='urbansim',
version='0.2dev',
description='Tool for modeling metropolitan real estate markets',
author='Synthicity',
author_email='ffoti@berkeley.edu',
license='AGPL',
url='https://github.com/synthicity/urbansim',
classifiers=[
'Development Status :: 4 - Beta',
'Programming Language :: Python :: 2.7',
'License :: OSI Approved :: GNU Affero General Public License v3'
],
packages=find_packages(exclude=['urbansimd', '*.tests']),
package_data={'synthicity.urbansim': ['templates/*.template']},
install_requires=[
'Django>=1.6.2',
'jinja2>=2.7.2',
'numpy>=1.8.0',
'pandas>=0.13.1',
'patsy>=0.2.1',
'scipy>=0.13.3',
'shapely>=1.3.0',
'simplejson>=3.3.3',
'statsmodels>=0.5.0',
'tables>=3.1.0'
],
entry_points={
'console_scripts': [
'usimcompile = synthicity.urbansim.compilecli:main'
]
}
)
<commit_msg>Change compile CLI entry point name to urbansim_compile.<commit_after>
|
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
setup(
name='urbansim',
version='0.2dev',
description='Tool for modeling metropolitan real estate markets',
author='Synthicity',
author_email='ffoti@berkeley.edu',
license='AGPL',
url='https://github.com/synthicity/urbansim',
classifiers=[
'Development Status :: 4 - Beta',
'Programming Language :: Python :: 2.7',
'License :: OSI Approved :: GNU Affero General Public License v3'
],
packages=find_packages(exclude=['urbansimd', '*.tests']),
package_data={'synthicity.urbansim': ['templates/*.template']},
install_requires=[
'Django>=1.6.2',
'jinja2>=2.7.2',
'numpy>=1.8.0',
'pandas>=0.13.1',
'patsy>=0.2.1',
'scipy>=0.13.3',
'shapely>=1.3.0',
'simplejson>=3.3.3',
'statsmodels>=0.5.0',
'tables>=3.1.0'
],
entry_points={
'console_scripts': [
'urbansim_compile = synthicity.urbansim.compilecli:main'
]
}
)
|
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
setup(
name='urbansim',
version='0.2dev',
description='Tool for modeling metropolitan real estate markets',
author='Synthicity',
author_email='ffoti@berkeley.edu',
license='AGPL',
url='https://github.com/synthicity/urbansim',
classifiers=[
'Development Status :: 4 - Beta',
'Programming Language :: Python :: 2.7',
'License :: OSI Approved :: GNU Affero General Public License v3'
],
packages=find_packages(exclude=['urbansimd', '*.tests']),
package_data={'synthicity.urbansim': ['templates/*.template']},
install_requires=[
'Django>=1.6.2',
'jinja2>=2.7.2',
'numpy>=1.8.0',
'pandas>=0.13.1',
'patsy>=0.2.1',
'scipy>=0.13.3',
'shapely>=1.3.0',
'simplejson>=3.3.3',
'statsmodels>=0.5.0',
'tables>=3.1.0'
],
entry_points={
'console_scripts': [
'usimcompile = synthicity.urbansim.compilecli:main'
]
}
)
Change compile CLI entry point name to urbansim_compile.from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
setup(
name='urbansim',
version='0.2dev',
description='Tool for modeling metropolitan real estate markets',
author='Synthicity',
author_email='ffoti@berkeley.edu',
license='AGPL',
url='https://github.com/synthicity/urbansim',
classifiers=[
'Development Status :: 4 - Beta',
'Programming Language :: Python :: 2.7',
'License :: OSI Approved :: GNU Affero General Public License v3'
],
packages=find_packages(exclude=['urbansimd', '*.tests']),
package_data={'synthicity.urbansim': ['templates/*.template']},
install_requires=[
'Django>=1.6.2',
'jinja2>=2.7.2',
'numpy>=1.8.0',
'pandas>=0.13.1',
'patsy>=0.2.1',
'scipy>=0.13.3',
'shapely>=1.3.0',
'simplejson>=3.3.3',
'statsmodels>=0.5.0',
'tables>=3.1.0'
],
entry_points={
'console_scripts': [
'urbansim_compile = synthicity.urbansim.compilecli:main'
]
}
)
|
<commit_before>from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
setup(
name='urbansim',
version='0.2dev',
description='Tool for modeling metropolitan real estate markets',
author='Synthicity',
author_email='ffoti@berkeley.edu',
license='AGPL',
url='https://github.com/synthicity/urbansim',
classifiers=[
'Development Status :: 4 - Beta',
'Programming Language :: Python :: 2.7',
'License :: OSI Approved :: GNU Affero General Public License v3'
],
packages=find_packages(exclude=['urbansimd', '*.tests']),
package_data={'synthicity.urbansim': ['templates/*.template']},
install_requires=[
'Django>=1.6.2',
'jinja2>=2.7.2',
'numpy>=1.8.0',
'pandas>=0.13.1',
'patsy>=0.2.1',
'scipy>=0.13.3',
'shapely>=1.3.0',
'simplejson>=3.3.3',
'statsmodels>=0.5.0',
'tables>=3.1.0'
],
entry_points={
'console_scripts': [
'usimcompile = synthicity.urbansim.compilecli:main'
]
}
)
<commit_msg>Change compile CLI entry point name to urbansim_compile.<commit_after>from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
setup(
name='urbansim',
version='0.2dev',
description='Tool for modeling metropolitan real estate markets',
author='Synthicity',
author_email='ffoti@berkeley.edu',
license='AGPL',
url='https://github.com/synthicity/urbansim',
classifiers=[
'Development Status :: 4 - Beta',
'Programming Language :: Python :: 2.7',
'License :: OSI Approved :: GNU Affero General Public License v3'
],
packages=find_packages(exclude=['urbansimd', '*.tests']),
package_data={'synthicity.urbansim': ['templates/*.template']},
install_requires=[
'Django>=1.6.2',
'jinja2>=2.7.2',
'numpy>=1.8.0',
'pandas>=0.13.1',
'patsy>=0.2.1',
'scipy>=0.13.3',
'shapely>=1.3.0',
'simplejson>=3.3.3',
'statsmodels>=0.5.0',
'tables>=3.1.0'
],
entry_points={
'console_scripts': [
'urbansim_compile = synthicity.urbansim.compilecli:main'
]
}
)
|
9c4fb8e031b2856c0cb425d64b0e7d032a4b5a19
|
setup.py
|
setup.py
|
#!/usr/bin/env python
import os
try:
import setuptools
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup
NAME = 'chash'
VERSION = '0.1.0'
AUTHOR = 'Lev Givon'
AUTHOR_EMAIL = 'lev@columbia.edu'
URL = 'https://github.com/lebedov/chash'
MAINTAINER = AUTHOR
MAINTAINER_EMAIL = AUTHOR_EMAIL
DESCRIPTION = 'Content-based hash'
LONG_DESCRIPTION = DESCRIPTION
DOWNLOAD_URL = URL
LICENSE = 'BSD'
CLASSIFIERS = [
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Scientific/Engineering',
'Topic :: Software Development']
if __name__ == '__main__':
if os.path.exists('MANIFEST'):
os.remove('MANIFEST')
setup(name=NAME,
version=VERSION,
author=AUTHOR,
author_email = AUTHOR_EMAIL,
url = URL,
maintainer = MAINTAINER,
maintainer_email = MAINTAINER_EMAIL,
description = DESCRIPTION,
license = LICENSE,
classifiers = CLASSIFIERS,
packages = ['chash'],
test_suite = 'tests',
install_requires = [
'numpy',
'pandas',
'xxh'])
|
#!/usr/bin/env python
import os
try:
import setuptools
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup
NAME = 'chash'
VERSION = '0.1.0'
AUTHOR = 'Lev Givon'
AUTHOR_EMAIL = 'lev@columbia.edu'
URL = 'https://github.com/lebedov/chash'
MAINTAINER = AUTHOR
MAINTAINER_EMAIL = AUTHOR_EMAIL
DESCRIPTION = 'Content-based hash'
LONG_DESCRIPTION = DESCRIPTION
DOWNLOAD_URL = URL
LICENSE = 'BSD'
CLASSIFIERS = [
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Scientific/Engineering',
'Topic :: Software Development']
if __name__ == '__main__':
if os.path.exists('MANIFEST'):
os.remove('MANIFEST')
setup(name=NAME,
version=VERSION,
author=AUTHOR,
author_email = AUTHOR_EMAIL,
url = URL,
maintainer = MAINTAINER,
maintainer_email = MAINTAINER_EMAIL,
description = DESCRIPTION,
license = LICENSE,
classifiers = CLASSIFIERS,
packages = ['chash'],
test_suite = 'tests',
install_requires = [
'cachetools',
'numpy',
'pandas',
'xxh'])
|
Add cachetools to install reqs.
|
Add cachetools to install reqs.
|
Python
|
bsd-3-clause
|
lebedov/chash
|
#!/usr/bin/env python
import os
try:
import setuptools
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup
NAME = 'chash'
VERSION = '0.1.0'
AUTHOR = 'Lev Givon'
AUTHOR_EMAIL = 'lev@columbia.edu'
URL = 'https://github.com/lebedov/chash'
MAINTAINER = AUTHOR
MAINTAINER_EMAIL = AUTHOR_EMAIL
DESCRIPTION = 'Content-based hash'
LONG_DESCRIPTION = DESCRIPTION
DOWNLOAD_URL = URL
LICENSE = 'BSD'
CLASSIFIERS = [
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Scientific/Engineering',
'Topic :: Software Development']
if __name__ == '__main__':
if os.path.exists('MANIFEST'):
os.remove('MANIFEST')
setup(name=NAME,
version=VERSION,
author=AUTHOR,
author_email = AUTHOR_EMAIL,
url = URL,
maintainer = MAINTAINER,
maintainer_email = MAINTAINER_EMAIL,
description = DESCRIPTION,
license = LICENSE,
classifiers = CLASSIFIERS,
packages = ['chash'],
test_suite = 'tests',
install_requires = [
'numpy',
'pandas',
'xxh'])
Add cachetools to install reqs.
|
#!/usr/bin/env python
import os
try:
import setuptools
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup
NAME = 'chash'
VERSION = '0.1.0'
AUTHOR = 'Lev Givon'
AUTHOR_EMAIL = 'lev@columbia.edu'
URL = 'https://github.com/lebedov/chash'
MAINTAINER = AUTHOR
MAINTAINER_EMAIL = AUTHOR_EMAIL
DESCRIPTION = 'Content-based hash'
LONG_DESCRIPTION = DESCRIPTION
DOWNLOAD_URL = URL
LICENSE = 'BSD'
CLASSIFIERS = [
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Scientific/Engineering',
'Topic :: Software Development']
if __name__ == '__main__':
if os.path.exists('MANIFEST'):
os.remove('MANIFEST')
setup(name=NAME,
version=VERSION,
author=AUTHOR,
author_email = AUTHOR_EMAIL,
url = URL,
maintainer = MAINTAINER,
maintainer_email = MAINTAINER_EMAIL,
description = DESCRIPTION,
license = LICENSE,
classifiers = CLASSIFIERS,
packages = ['chash'],
test_suite = 'tests',
install_requires = [
'cachetools',
'numpy',
'pandas',
'xxh'])
|
<commit_before>#!/usr/bin/env python
import os
try:
import setuptools
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup
NAME = 'chash'
VERSION = '0.1.0'
AUTHOR = 'Lev Givon'
AUTHOR_EMAIL = 'lev@columbia.edu'
URL = 'https://github.com/lebedov/chash'
MAINTAINER = AUTHOR
MAINTAINER_EMAIL = AUTHOR_EMAIL
DESCRIPTION = 'Content-based hash'
LONG_DESCRIPTION = DESCRIPTION
DOWNLOAD_URL = URL
LICENSE = 'BSD'
CLASSIFIERS = [
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Scientific/Engineering',
'Topic :: Software Development']
if __name__ == '__main__':
if os.path.exists('MANIFEST'):
os.remove('MANIFEST')
setup(name=NAME,
version=VERSION,
author=AUTHOR,
author_email = AUTHOR_EMAIL,
url = URL,
maintainer = MAINTAINER,
maintainer_email = MAINTAINER_EMAIL,
description = DESCRIPTION,
license = LICENSE,
classifiers = CLASSIFIERS,
packages = ['chash'],
test_suite = 'tests',
install_requires = [
'numpy',
'pandas',
'xxh'])
<commit_msg>Add cachetools to install reqs.<commit_after>
|
#!/usr/bin/env python
import os
try:
import setuptools
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup
NAME = 'chash'
VERSION = '0.1.0'
AUTHOR = 'Lev Givon'
AUTHOR_EMAIL = 'lev@columbia.edu'
URL = 'https://github.com/lebedov/chash'
MAINTAINER = AUTHOR
MAINTAINER_EMAIL = AUTHOR_EMAIL
DESCRIPTION = 'Content-based hash'
LONG_DESCRIPTION = DESCRIPTION
DOWNLOAD_URL = URL
LICENSE = 'BSD'
CLASSIFIERS = [
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Scientific/Engineering',
'Topic :: Software Development']
if __name__ == '__main__':
if os.path.exists('MANIFEST'):
os.remove('MANIFEST')
setup(name=NAME,
version=VERSION,
author=AUTHOR,
author_email = AUTHOR_EMAIL,
url = URL,
maintainer = MAINTAINER,
maintainer_email = MAINTAINER_EMAIL,
description = DESCRIPTION,
license = LICENSE,
classifiers = CLASSIFIERS,
packages = ['chash'],
test_suite = 'tests',
install_requires = [
'cachetools',
'numpy',
'pandas',
'xxh'])
|
#!/usr/bin/env python
import os
try:
import setuptools
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup
NAME = 'chash'
VERSION = '0.1.0'
AUTHOR = 'Lev Givon'
AUTHOR_EMAIL = 'lev@columbia.edu'
URL = 'https://github.com/lebedov/chash'
MAINTAINER = AUTHOR
MAINTAINER_EMAIL = AUTHOR_EMAIL
DESCRIPTION = 'Content-based hash'
LONG_DESCRIPTION = DESCRIPTION
DOWNLOAD_URL = URL
LICENSE = 'BSD'
CLASSIFIERS = [
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Scientific/Engineering',
'Topic :: Software Development']
if __name__ == '__main__':
if os.path.exists('MANIFEST'):
os.remove('MANIFEST')
setup(name=NAME,
version=VERSION,
author=AUTHOR,
author_email = AUTHOR_EMAIL,
url = URL,
maintainer = MAINTAINER,
maintainer_email = MAINTAINER_EMAIL,
description = DESCRIPTION,
license = LICENSE,
classifiers = CLASSIFIERS,
packages = ['chash'],
test_suite = 'tests',
install_requires = [
'numpy',
'pandas',
'xxh'])
Add cachetools to install reqs.#!/usr/bin/env python
import os
try:
import setuptools
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup
NAME = 'chash'
VERSION = '0.1.0'
AUTHOR = 'Lev Givon'
AUTHOR_EMAIL = 'lev@columbia.edu'
URL = 'https://github.com/lebedov/chash'
MAINTAINER = AUTHOR
MAINTAINER_EMAIL = AUTHOR_EMAIL
DESCRIPTION = 'Content-based hash'
LONG_DESCRIPTION = DESCRIPTION
DOWNLOAD_URL = URL
LICENSE = 'BSD'
CLASSIFIERS = [
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Scientific/Engineering',
'Topic :: Software Development']
if __name__ == '__main__':
if os.path.exists('MANIFEST'):
os.remove('MANIFEST')
setup(name=NAME,
version=VERSION,
author=AUTHOR,
author_email = AUTHOR_EMAIL,
url = URL,
maintainer = MAINTAINER,
maintainer_email = MAINTAINER_EMAIL,
description = DESCRIPTION,
license = LICENSE,
classifiers = CLASSIFIERS,
packages = ['chash'],
test_suite = 'tests',
install_requires = [
'cachetools',
'numpy',
'pandas',
'xxh'])
|
<commit_before>#!/usr/bin/env python
import os
try:
import setuptools
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup
NAME = 'chash'
VERSION = '0.1.0'
AUTHOR = 'Lev Givon'
AUTHOR_EMAIL = 'lev@columbia.edu'
URL = 'https://github.com/lebedov/chash'
MAINTAINER = AUTHOR
MAINTAINER_EMAIL = AUTHOR_EMAIL
DESCRIPTION = 'Content-based hash'
LONG_DESCRIPTION = DESCRIPTION
DOWNLOAD_URL = URL
LICENSE = 'BSD'
CLASSIFIERS = [
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Scientific/Engineering',
'Topic :: Software Development']
if __name__ == '__main__':
if os.path.exists('MANIFEST'):
os.remove('MANIFEST')
setup(name=NAME,
version=VERSION,
author=AUTHOR,
author_email = AUTHOR_EMAIL,
url = URL,
maintainer = MAINTAINER,
maintainer_email = MAINTAINER_EMAIL,
description = DESCRIPTION,
license = LICENSE,
classifiers = CLASSIFIERS,
packages = ['chash'],
test_suite = 'tests',
install_requires = [
'numpy',
'pandas',
'xxh'])
<commit_msg>Add cachetools to install reqs.<commit_after>#!/usr/bin/env python
import os
try:
import setuptools
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup
NAME = 'chash'
VERSION = '0.1.0'
AUTHOR = 'Lev Givon'
AUTHOR_EMAIL = 'lev@columbia.edu'
URL = 'https://github.com/lebedov/chash'
MAINTAINER = AUTHOR
MAINTAINER_EMAIL = AUTHOR_EMAIL
DESCRIPTION = 'Content-based hash'
LONG_DESCRIPTION = DESCRIPTION
DOWNLOAD_URL = URL
LICENSE = 'BSD'
CLASSIFIERS = [
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Scientific/Engineering',
'Topic :: Software Development']
if __name__ == '__main__':
if os.path.exists('MANIFEST'):
os.remove('MANIFEST')
setup(name=NAME,
version=VERSION,
author=AUTHOR,
author_email = AUTHOR_EMAIL,
url = URL,
maintainer = MAINTAINER,
maintainer_email = MAINTAINER_EMAIL,
description = DESCRIPTION,
license = LICENSE,
classifiers = CLASSIFIERS,
packages = ['chash'],
test_suite = 'tests',
install_requires = [
'cachetools',
'numpy',
'pandas',
'xxh'])
|
a85dda3ae44782e897384e046b37b7de5811cef2
|
setup.py
|
setup.py
|
from setuptools import find_packages, setup
setup(
name='satnogsclient',
version='0.2.5',
url='https://github.com/satnogs/satnogs-client/',
author='SatNOGS team',
author_email='client-dev@satnogs.org',
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Telecommunications Industry',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: GNU Affero General Public License v3',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python :: 2.7',
'Topic :: Communications :: Ham Radio',
],
license='AGPLv3',
description='SatNOGS Client',
zip_safe=False,
install_requires=[
'APScheduler',
'SQLAlchemy',
'requests',
'validators',
'python-dateutil',
'ephem',
'pytz',
'flask',
'pyopenssl',
'pyserial',
'flask-socketio',
'redis',
],
extras_require={
'develop': 'flake8',
},
entry_points={
'console_scripts': ['satnogs-client=satnogsclient.main:main'],
},
include_package_data=True,
packages=find_packages(),
)
|
from setuptools import find_packages, setup
setup(
name='satnogsclient',
version='0.2.5',
url='https://github.com/satnogs/satnogs-client/',
author='SatNOGS project',
author_email='dev@satnogs.org',
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Telecommunications Industry',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: GNU Affero General Public License v3',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python :: 2.7',
'Topic :: Communications :: Ham Radio',
],
license='AGPLv3',
description='SatNOGS Client',
zip_safe=False,
install_requires=[
'APScheduler',
'SQLAlchemy',
'requests',
'validators',
'python-dateutil',
'ephem',
'pytz',
'flask',
'pyopenssl',
'pyserial',
'flask-socketio',
'redis',
],
extras_require={
'develop': 'flake8',
},
entry_points={
'console_scripts': ['satnogs-client=satnogsclient.main:main'],
},
include_package_data=True,
packages=find_packages(),
)
|
Fix author name and email
|
Fix author name and email
|
Python
|
agpl-3.0
|
adamkalis/satnogs-client,adamkalis/satnogs-client
|
from setuptools import find_packages, setup
setup(
name='satnogsclient',
version='0.2.5',
url='https://github.com/satnogs/satnogs-client/',
author='SatNOGS team',
author_email='client-dev@satnogs.org',
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Telecommunications Industry',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: GNU Affero General Public License v3',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python :: 2.7',
'Topic :: Communications :: Ham Radio',
],
license='AGPLv3',
description='SatNOGS Client',
zip_safe=False,
install_requires=[
'APScheduler',
'SQLAlchemy',
'requests',
'validators',
'python-dateutil',
'ephem',
'pytz',
'flask',
'pyopenssl',
'pyserial',
'flask-socketio',
'redis',
],
extras_require={
'develop': 'flake8',
},
entry_points={
'console_scripts': ['satnogs-client=satnogsclient.main:main'],
},
include_package_data=True,
packages=find_packages(),
)
Fix author name and email
|
from setuptools import find_packages, setup
setup(
name='satnogsclient',
version='0.2.5',
url='https://github.com/satnogs/satnogs-client/',
author='SatNOGS project',
author_email='dev@satnogs.org',
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Telecommunications Industry',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: GNU Affero General Public License v3',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python :: 2.7',
'Topic :: Communications :: Ham Radio',
],
license='AGPLv3',
description='SatNOGS Client',
zip_safe=False,
install_requires=[
'APScheduler',
'SQLAlchemy',
'requests',
'validators',
'python-dateutil',
'ephem',
'pytz',
'flask',
'pyopenssl',
'pyserial',
'flask-socketio',
'redis',
],
extras_require={
'develop': 'flake8',
},
entry_points={
'console_scripts': ['satnogs-client=satnogsclient.main:main'],
},
include_package_data=True,
packages=find_packages(),
)
|
<commit_before>from setuptools import find_packages, setup
setup(
name='satnogsclient',
version='0.2.5',
url='https://github.com/satnogs/satnogs-client/',
author='SatNOGS team',
author_email='client-dev@satnogs.org',
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Telecommunications Industry',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: GNU Affero General Public License v3',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python :: 2.7',
'Topic :: Communications :: Ham Radio',
],
license='AGPLv3',
description='SatNOGS Client',
zip_safe=False,
install_requires=[
'APScheduler',
'SQLAlchemy',
'requests',
'validators',
'python-dateutil',
'ephem',
'pytz',
'flask',
'pyopenssl',
'pyserial',
'flask-socketio',
'redis',
],
extras_require={
'develop': 'flake8',
},
entry_points={
'console_scripts': ['satnogs-client=satnogsclient.main:main'],
},
include_package_data=True,
packages=find_packages(),
)
<commit_msg>Fix author name and email<commit_after>
|
from setuptools import find_packages, setup
setup(
name='satnogsclient',
version='0.2.5',
url='https://github.com/satnogs/satnogs-client/',
author='SatNOGS project',
author_email='dev@satnogs.org',
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Telecommunications Industry',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: GNU Affero General Public License v3',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python :: 2.7',
'Topic :: Communications :: Ham Radio',
],
license='AGPLv3',
description='SatNOGS Client',
zip_safe=False,
install_requires=[
'APScheduler',
'SQLAlchemy',
'requests',
'validators',
'python-dateutil',
'ephem',
'pytz',
'flask',
'pyopenssl',
'pyserial',
'flask-socketio',
'redis',
],
extras_require={
'develop': 'flake8',
},
entry_points={
'console_scripts': ['satnogs-client=satnogsclient.main:main'],
},
include_package_data=True,
packages=find_packages(),
)
|
from setuptools import find_packages, setup
setup(
name='satnogsclient',
version='0.2.5',
url='https://github.com/satnogs/satnogs-client/',
author='SatNOGS team',
author_email='client-dev@satnogs.org',
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Telecommunications Industry',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: GNU Affero General Public License v3',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python :: 2.7',
'Topic :: Communications :: Ham Radio',
],
license='AGPLv3',
description='SatNOGS Client',
zip_safe=False,
install_requires=[
'APScheduler',
'SQLAlchemy',
'requests',
'validators',
'python-dateutil',
'ephem',
'pytz',
'flask',
'pyopenssl',
'pyserial',
'flask-socketio',
'redis',
],
extras_require={
'develop': 'flake8',
},
entry_points={
'console_scripts': ['satnogs-client=satnogsclient.main:main'],
},
include_package_data=True,
packages=find_packages(),
)
Fix author name and emailfrom setuptools import find_packages, setup
setup(
name='satnogsclient',
version='0.2.5',
url='https://github.com/satnogs/satnogs-client/',
author='SatNOGS project',
author_email='dev@satnogs.org',
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Telecommunications Industry',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: GNU Affero General Public License v3',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python :: 2.7',
'Topic :: Communications :: Ham Radio',
],
license='AGPLv3',
description='SatNOGS Client',
zip_safe=False,
install_requires=[
'APScheduler',
'SQLAlchemy',
'requests',
'validators',
'python-dateutil',
'ephem',
'pytz',
'flask',
'pyopenssl',
'pyserial',
'flask-socketio',
'redis',
],
extras_require={
'develop': 'flake8',
},
entry_points={
'console_scripts': ['satnogs-client=satnogsclient.main:main'],
},
include_package_data=True,
packages=find_packages(),
)
|
<commit_before>from setuptools import find_packages, setup
setup(
name='satnogsclient',
version='0.2.5',
url='https://github.com/satnogs/satnogs-client/',
author='SatNOGS team',
author_email='client-dev@satnogs.org',
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Telecommunications Industry',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: GNU Affero General Public License v3',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python :: 2.7',
'Topic :: Communications :: Ham Radio',
],
license='AGPLv3',
description='SatNOGS Client',
zip_safe=False,
install_requires=[
'APScheduler',
'SQLAlchemy',
'requests',
'validators',
'python-dateutil',
'ephem',
'pytz',
'flask',
'pyopenssl',
'pyserial',
'flask-socketio',
'redis',
],
extras_require={
'develop': 'flake8',
},
entry_points={
'console_scripts': ['satnogs-client=satnogsclient.main:main'],
},
include_package_data=True,
packages=find_packages(),
)
<commit_msg>Fix author name and email<commit_after>from setuptools import find_packages, setup
setup(
name='satnogsclient',
version='0.2.5',
url='https://github.com/satnogs/satnogs-client/',
author='SatNOGS project',
author_email='dev@satnogs.org',
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Telecommunications Industry',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: GNU Affero General Public License v3',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python :: 2.7',
'Topic :: Communications :: Ham Radio',
],
license='AGPLv3',
description='SatNOGS Client',
zip_safe=False,
install_requires=[
'APScheduler',
'SQLAlchemy',
'requests',
'validators',
'python-dateutil',
'ephem',
'pytz',
'flask',
'pyopenssl',
'pyserial',
'flask-socketio',
'redis',
],
extras_require={
'develop': 'flake8',
},
entry_points={
'console_scripts': ['satnogs-client=satnogsclient.main:main'],
},
include_package_data=True,
packages=find_packages(),
)
|
e9a445a4c12986680654e1ccb2feb3917ccbd263
|
setup.py
|
setup.py
|
from setuptools import setup, find_packages
setup(name='addressable',
description='Use lists like you would dictionaries.',
long_description=open('README.rst').read(),
author='Stijn Debrouwere',
author_email='stijn@stdout.be',
url='http://stdbrouw.github.com/python-addressable/',
download_url='http://www.github.com/stdbrouw/python-addressable/tarball/master',
version='1.1.0',
license='ISC',
packages=find_packages(),
keywords='utility',
classifiers=['Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Utilities',
],
)
|
from setuptools import setup, find_packages
setup(name='addressable',
description='Use lists like you would dictionaries.',
long_description=open('README.rst').read(),
author='Stijn Debrouwere',
author_email='stijn@debrouwere.org',
url='https://github.com/debrouwere/python-addressable/',
download_url='http://www.github.com/debrouwere/python-addressable/tarball/master',
version='1.1.1',
license='ISC',
packages=find_packages(),
keywords='utility',
classifiers=['Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Utilities',
],
)
|
Fix faulty URL reference in the package metadata.
|
Fix faulty URL reference in the package metadata.
|
Python
|
isc
|
debrouwere/python-addressable
|
from setuptools import setup, find_packages
setup(name='addressable',
description='Use lists like you would dictionaries.',
long_description=open('README.rst').read(),
author='Stijn Debrouwere',
author_email='stijn@stdout.be',
url='http://stdbrouw.github.com/python-addressable/',
download_url='http://www.github.com/stdbrouw/python-addressable/tarball/master',
version='1.1.0',
license='ISC',
packages=find_packages(),
keywords='utility',
classifiers=['Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Utilities',
],
)Fix faulty URL reference in the package metadata.
|
from setuptools import setup, find_packages
setup(name='addressable',
description='Use lists like you would dictionaries.',
long_description=open('README.rst').read(),
author='Stijn Debrouwere',
author_email='stijn@debrouwere.org',
url='https://github.com/debrouwere/python-addressable/',
download_url='http://www.github.com/debrouwere/python-addressable/tarball/master',
version='1.1.1',
license='ISC',
packages=find_packages(),
keywords='utility',
classifiers=['Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Utilities',
],
)
|
<commit_before>from setuptools import setup, find_packages
setup(name='addressable',
description='Use lists like you would dictionaries.',
long_description=open('README.rst').read(),
author='Stijn Debrouwere',
author_email='stijn@stdout.be',
url='http://stdbrouw.github.com/python-addressable/',
download_url='http://www.github.com/stdbrouw/python-addressable/tarball/master',
version='1.1.0',
license='ISC',
packages=find_packages(),
keywords='utility',
classifiers=['Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Utilities',
],
)<commit_msg>Fix faulty URL reference in the package metadata.<commit_after>
|
from setuptools import setup, find_packages
setup(name='addressable',
description='Use lists like you would dictionaries.',
long_description=open('README.rst').read(),
author='Stijn Debrouwere',
author_email='stijn@debrouwere.org',
url='https://github.com/debrouwere/python-addressable/',
download_url='http://www.github.com/debrouwere/python-addressable/tarball/master',
version='1.1.1',
license='ISC',
packages=find_packages(),
keywords='utility',
classifiers=['Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Utilities',
],
)
|
from setuptools import setup, find_packages
setup(name='addressable',
description='Use lists like you would dictionaries.',
long_description=open('README.rst').read(),
author='Stijn Debrouwere',
author_email='stijn@stdout.be',
url='http://stdbrouw.github.com/python-addressable/',
download_url='http://www.github.com/stdbrouw/python-addressable/tarball/master',
version='1.1.0',
license='ISC',
packages=find_packages(),
keywords='utility',
classifiers=['Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Utilities',
],
)Fix faulty URL reference in the package metadata.from setuptools import setup, find_packages
setup(name='addressable',
description='Use lists like you would dictionaries.',
long_description=open('README.rst').read(),
author='Stijn Debrouwere',
author_email='stijn@debrouwere.org',
url='https://github.com/debrouwere/python-addressable/',
download_url='http://www.github.com/debrouwere/python-addressable/tarball/master',
version='1.1.1',
license='ISC',
packages=find_packages(),
keywords='utility',
classifiers=['Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Utilities',
],
)
|
<commit_before>from setuptools import setup, find_packages
setup(name='addressable',
description='Use lists like you would dictionaries.',
long_description=open('README.rst').read(),
author='Stijn Debrouwere',
author_email='stijn@stdout.be',
url='http://stdbrouw.github.com/python-addressable/',
download_url='http://www.github.com/stdbrouw/python-addressable/tarball/master',
version='1.1.0',
license='ISC',
packages=find_packages(),
keywords='utility',
classifiers=['Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Utilities',
],
)<commit_msg>Fix faulty URL reference in the package metadata.<commit_after>from setuptools import setup, find_packages
setup(name='addressable',
description='Use lists like you would dictionaries.',
long_description=open('README.rst').read(),
author='Stijn Debrouwere',
author_email='stijn@debrouwere.org',
url='https://github.com/debrouwere/python-addressable/',
download_url='http://www.github.com/debrouwere/python-addressable/tarball/master',
version='1.1.1',
license='ISC',
packages=find_packages(),
keywords='utility',
classifiers=['Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Utilities',
],
)
|
8f70e822a53ec4d00764c97e65597078c5e0c2b7
|
setup.py
|
setup.py
|
import sys
import setuptools
def read_long_description():
with open('README.rst') as f:
data = f.read()
with open('CHANGES.rst') as f:
data += '\n\n' + f.read()
return data
importlib_req = ['importlib'] if sys.version_info < (2,7) else []
argparse_req = ['argparse'] if sys.version_info < (2,7) else []
setup_params = dict(
name="irc",
description="IRC (Internet Relay Chat) protocol client library for Python",
long_description=read_long_description(),
use_hg_version=True,
packages=setuptools.find_packages(),
author="Joel Rosdahl",
author_email="joel@rosdahl.net",
maintainer="Jason R. Coombs",
maintainer_email="jaraco@jaraco.com",
url="http://python-irclib.sourceforge.net",
license="MIT",
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
],
install_requires=[
'six',
'jaraco.util<10dev',
] + importlib_req + argparse_req,
setup_requires=[
'hgtools',
'pytest-runner',
],
tests_require=[
'pytest',
'mock',
],
)
if __name__ == '__main__':
setuptools.setup(**setup_params)
|
import sys
import setuptools
def read_long_description():
with open('README.rst') as f:
data = f.read()
with open('CHANGES.rst') as f:
data += '\n\n' + f.read()
return data
importlib_req = ['importlib'] if sys.version_info < (2,7) else []
argparse_req = ['argparse'] if sys.version_info < (2,7) else []
setup_params = dict(
name="irc",
description="IRC (Internet Relay Chat) protocol client library for Python",
long_description=read_long_description(),
use_hg_version=True,
packages=setuptools.find_packages(),
author="Joel Rosdahl",
author_email="joel@rosdahl.net",
maintainer="Jason R. Coombs",
maintainer_email="jaraco@jaraco.com",
url="http://python-irclib.sourceforge.net",
license="MIT",
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
],
install_requires=[
'six',
'jaraco.util',
] + importlib_req + argparse_req,
setup_requires=[
'hgtools',
'pytest-runner',
],
tests_require=[
'pytest',
'mock',
],
)
if __name__ == '__main__':
setuptools.setup(**setup_params)
|
Remove upper bound on jaraco.util. Incompatibility will be handled as it's encountered.
|
Remove upper bound on jaraco.util. Incompatibility will be handled as it's encountered.
|
Python
|
mit
|
jaraco/irc
|
import sys
import setuptools
def read_long_description():
with open('README.rst') as f:
data = f.read()
with open('CHANGES.rst') as f:
data += '\n\n' + f.read()
return data
importlib_req = ['importlib'] if sys.version_info < (2,7) else []
argparse_req = ['argparse'] if sys.version_info < (2,7) else []
setup_params = dict(
name="irc",
description="IRC (Internet Relay Chat) protocol client library for Python",
long_description=read_long_description(),
use_hg_version=True,
packages=setuptools.find_packages(),
author="Joel Rosdahl",
author_email="joel@rosdahl.net",
maintainer="Jason R. Coombs",
maintainer_email="jaraco@jaraco.com",
url="http://python-irclib.sourceforge.net",
license="MIT",
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
],
install_requires=[
'six',
'jaraco.util<10dev',
] + importlib_req + argparse_req,
setup_requires=[
'hgtools',
'pytest-runner',
],
tests_require=[
'pytest',
'mock',
],
)
if __name__ == '__main__':
setuptools.setup(**setup_params)
Remove upper bound on jaraco.util. Incompatibility will be handled as it's encountered.
|
import sys
import setuptools
def read_long_description():
with open('README.rst') as f:
data = f.read()
with open('CHANGES.rst') as f:
data += '\n\n' + f.read()
return data
importlib_req = ['importlib'] if sys.version_info < (2,7) else []
argparse_req = ['argparse'] if sys.version_info < (2,7) else []
setup_params = dict(
name="irc",
description="IRC (Internet Relay Chat) protocol client library for Python",
long_description=read_long_description(),
use_hg_version=True,
packages=setuptools.find_packages(),
author="Joel Rosdahl",
author_email="joel@rosdahl.net",
maintainer="Jason R. Coombs",
maintainer_email="jaraco@jaraco.com",
url="http://python-irclib.sourceforge.net",
license="MIT",
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
],
install_requires=[
'six',
'jaraco.util',
] + importlib_req + argparse_req,
setup_requires=[
'hgtools',
'pytest-runner',
],
tests_require=[
'pytest',
'mock',
],
)
if __name__ == '__main__':
setuptools.setup(**setup_params)
|
<commit_before>import sys
import setuptools
def read_long_description():
with open('README.rst') as f:
data = f.read()
with open('CHANGES.rst') as f:
data += '\n\n' + f.read()
return data
importlib_req = ['importlib'] if sys.version_info < (2,7) else []
argparse_req = ['argparse'] if sys.version_info < (2,7) else []
setup_params = dict(
name="irc",
description="IRC (Internet Relay Chat) protocol client library for Python",
long_description=read_long_description(),
use_hg_version=True,
packages=setuptools.find_packages(),
author="Joel Rosdahl",
author_email="joel@rosdahl.net",
maintainer="Jason R. Coombs",
maintainer_email="jaraco@jaraco.com",
url="http://python-irclib.sourceforge.net",
license="MIT",
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
],
install_requires=[
'six',
'jaraco.util<10dev',
] + importlib_req + argparse_req,
setup_requires=[
'hgtools',
'pytest-runner',
],
tests_require=[
'pytest',
'mock',
],
)
if __name__ == '__main__':
setuptools.setup(**setup_params)
<commit_msg>Remove upper bound on jaraco.util. Incompatibility will be handled as it's encountered.<commit_after>
|
import sys
import setuptools
def read_long_description():
with open('README.rst') as f:
data = f.read()
with open('CHANGES.rst') as f:
data += '\n\n' + f.read()
return data
importlib_req = ['importlib'] if sys.version_info < (2,7) else []
argparse_req = ['argparse'] if sys.version_info < (2,7) else []
setup_params = dict(
name="irc",
description="IRC (Internet Relay Chat) protocol client library for Python",
long_description=read_long_description(),
use_hg_version=True,
packages=setuptools.find_packages(),
author="Joel Rosdahl",
author_email="joel@rosdahl.net",
maintainer="Jason R. Coombs",
maintainer_email="jaraco@jaraco.com",
url="http://python-irclib.sourceforge.net",
license="MIT",
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
],
install_requires=[
'six',
'jaraco.util',
] + importlib_req + argparse_req,
setup_requires=[
'hgtools',
'pytest-runner',
],
tests_require=[
'pytest',
'mock',
],
)
if __name__ == '__main__':
setuptools.setup(**setup_params)
|
import sys
import setuptools
def read_long_description():
with open('README.rst') as f:
data = f.read()
with open('CHANGES.rst') as f:
data += '\n\n' + f.read()
return data
importlib_req = ['importlib'] if sys.version_info < (2,7) else []
argparse_req = ['argparse'] if sys.version_info < (2,7) else []
setup_params = dict(
name="irc",
description="IRC (Internet Relay Chat) protocol client library for Python",
long_description=read_long_description(),
use_hg_version=True,
packages=setuptools.find_packages(),
author="Joel Rosdahl",
author_email="joel@rosdahl.net",
maintainer="Jason R. Coombs",
maintainer_email="jaraco@jaraco.com",
url="http://python-irclib.sourceforge.net",
license="MIT",
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
],
install_requires=[
'six',
'jaraco.util<10dev',
] + importlib_req + argparse_req,
setup_requires=[
'hgtools',
'pytest-runner',
],
tests_require=[
'pytest',
'mock',
],
)
if __name__ == '__main__':
setuptools.setup(**setup_params)
Remove upper bound on jaraco.util. Incompatibility will be handled as it's encountered.import sys
import setuptools
def read_long_description():
with open('README.rst') as f:
data = f.read()
with open('CHANGES.rst') as f:
data += '\n\n' + f.read()
return data
importlib_req = ['importlib'] if sys.version_info < (2,7) else []
argparse_req = ['argparse'] if sys.version_info < (2,7) else []
setup_params = dict(
name="irc",
description="IRC (Internet Relay Chat) protocol client library for Python",
long_description=read_long_description(),
use_hg_version=True,
packages=setuptools.find_packages(),
author="Joel Rosdahl",
author_email="joel@rosdahl.net",
maintainer="Jason R. Coombs",
maintainer_email="jaraco@jaraco.com",
url="http://python-irclib.sourceforge.net",
license="MIT",
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
],
install_requires=[
'six',
'jaraco.util',
] + importlib_req + argparse_req,
setup_requires=[
'hgtools',
'pytest-runner',
],
tests_require=[
'pytest',
'mock',
],
)
if __name__ == '__main__':
setuptools.setup(**setup_params)
|
<commit_before>import sys
import setuptools
def read_long_description():
with open('README.rst') as f:
data = f.read()
with open('CHANGES.rst') as f:
data += '\n\n' + f.read()
return data
importlib_req = ['importlib'] if sys.version_info < (2,7) else []
argparse_req = ['argparse'] if sys.version_info < (2,7) else []
setup_params = dict(
name="irc",
description="IRC (Internet Relay Chat) protocol client library for Python",
long_description=read_long_description(),
use_hg_version=True,
packages=setuptools.find_packages(),
author="Joel Rosdahl",
author_email="joel@rosdahl.net",
maintainer="Jason R. Coombs",
maintainer_email="jaraco@jaraco.com",
url="http://python-irclib.sourceforge.net",
license="MIT",
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
],
install_requires=[
'six',
'jaraco.util<10dev',
] + importlib_req + argparse_req,
setup_requires=[
'hgtools',
'pytest-runner',
],
tests_require=[
'pytest',
'mock',
],
)
if __name__ == '__main__':
setuptools.setup(**setup_params)
<commit_msg>Remove upper bound on jaraco.util. Incompatibility will be handled as it's encountered.<commit_after>import sys
import setuptools
def read_long_description():
with open('README.rst') as f:
data = f.read()
with open('CHANGES.rst') as f:
data += '\n\n' + f.read()
return data
importlib_req = ['importlib'] if sys.version_info < (2,7) else []
argparse_req = ['argparse'] if sys.version_info < (2,7) else []
setup_params = dict(
name="irc",
description="IRC (Internet Relay Chat) protocol client library for Python",
long_description=read_long_description(),
use_hg_version=True,
packages=setuptools.find_packages(),
author="Joel Rosdahl",
author_email="joel@rosdahl.net",
maintainer="Jason R. Coombs",
maintainer_email="jaraco@jaraco.com",
url="http://python-irclib.sourceforge.net",
license="MIT",
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
],
install_requires=[
'six',
'jaraco.util',
] + importlib_req + argparse_req,
setup_requires=[
'hgtools',
'pytest-runner',
],
tests_require=[
'pytest',
'mock',
],
)
if __name__ == '__main__':
setuptools.setup(**setup_params)
|
084f70c87cf4a22d797ac282ba7f074802f6e6b3
|
setup.py
|
setup.py
|
#! /usr/bin/env python
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
setup(name='rafem',
version='0.1.0',
author='Katherine Ratliff',
author_email='k.ratliff@duke.edu',
description='River Avulsion Flooplain Evolution Model',
long_description=open('README.rst').read(),
url='https://github.com/katmratliff/avulsion-bmi',
license='MIT',
packages=find_packages(),
)
|
#! /usr/bin/env python
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
from model_metadata.utils import get_cmdclass, get_entry_points
pymt_components = [
(
"BmiRiverModule=rafem:BmiRiverModule",
".bmi",
)
]
setup(name='rafem',
version='0.1.0',
author='Katherine Ratliff',
author_email='k.ratliff@duke.edu',
description='River Avulsion Flooplain Evolution Model',
long_description=open('README.rst').read(),
url='https://github.com/katmratliff/avulsion-bmi',
license='MIT',
packages=find_packages(),
cmdclass=get_cmdclass(pymt_components),
entry_points=get_entry_points(pymt_components),
)
|
Install rafem as a pymt component.
|
Install rafem as a pymt component.
|
Python
|
mit
|
katmratliff/avulsion-bmi,mcflugen/avulsion-bmi
|
#! /usr/bin/env python
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
setup(name='rafem',
version='0.1.0',
author='Katherine Ratliff',
author_email='k.ratliff@duke.edu',
description='River Avulsion Flooplain Evolution Model',
long_description=open('README.rst').read(),
url='https://github.com/katmratliff/avulsion-bmi',
license='MIT',
packages=find_packages(),
)
Install rafem as a pymt component.
|
#! /usr/bin/env python
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
from model_metadata.utils import get_cmdclass, get_entry_points
pymt_components = [
(
"BmiRiverModule=rafem:BmiRiverModule",
".bmi",
)
]
setup(name='rafem',
version='0.1.0',
author='Katherine Ratliff',
author_email='k.ratliff@duke.edu',
description='River Avulsion Flooplain Evolution Model',
long_description=open('README.rst').read(),
url='https://github.com/katmratliff/avulsion-bmi',
license='MIT',
packages=find_packages(),
cmdclass=get_cmdclass(pymt_components),
entry_points=get_entry_points(pymt_components),
)
|
<commit_before>#! /usr/bin/env python
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
setup(name='rafem',
version='0.1.0',
author='Katherine Ratliff',
author_email='k.ratliff@duke.edu',
description='River Avulsion Flooplain Evolution Model',
long_description=open('README.rst').read(),
url='https://github.com/katmratliff/avulsion-bmi',
license='MIT',
packages=find_packages(),
)
<commit_msg>Install rafem as a pymt component.<commit_after>
|
#! /usr/bin/env python
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
from model_metadata.utils import get_cmdclass, get_entry_points
pymt_components = [
(
"BmiRiverModule=rafem:BmiRiverModule",
".bmi",
)
]
setup(name='rafem',
version='0.1.0',
author='Katherine Ratliff',
author_email='k.ratliff@duke.edu',
description='River Avulsion Flooplain Evolution Model',
long_description=open('README.rst').read(),
url='https://github.com/katmratliff/avulsion-bmi',
license='MIT',
packages=find_packages(),
cmdclass=get_cmdclass(pymt_components),
entry_points=get_entry_points(pymt_components),
)
|
#! /usr/bin/env python
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
setup(name='rafem',
version='0.1.0',
author='Katherine Ratliff',
author_email='k.ratliff@duke.edu',
description='River Avulsion Flooplain Evolution Model',
long_description=open('README.rst').read(),
url='https://github.com/katmratliff/avulsion-bmi',
license='MIT',
packages=find_packages(),
)
Install rafem as a pymt component.#! /usr/bin/env python
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
from model_metadata.utils import get_cmdclass, get_entry_points
pymt_components = [
(
"BmiRiverModule=rafem:BmiRiverModule",
".bmi",
)
]
setup(name='rafem',
version='0.1.0',
author='Katherine Ratliff',
author_email='k.ratliff@duke.edu',
description='River Avulsion Flooplain Evolution Model',
long_description=open('README.rst').read(),
url='https://github.com/katmratliff/avulsion-bmi',
license='MIT',
packages=find_packages(),
cmdclass=get_cmdclass(pymt_components),
entry_points=get_entry_points(pymt_components),
)
|
<commit_before>#! /usr/bin/env python
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
setup(name='rafem',
version='0.1.0',
author='Katherine Ratliff',
author_email='k.ratliff@duke.edu',
description='River Avulsion Flooplain Evolution Model',
long_description=open('README.rst').read(),
url='https://github.com/katmratliff/avulsion-bmi',
license='MIT',
packages=find_packages(),
)
<commit_msg>Install rafem as a pymt component.<commit_after>#! /usr/bin/env python
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
from model_metadata.utils import get_cmdclass, get_entry_points
pymt_components = [
(
"BmiRiverModule=rafem:BmiRiverModule",
".bmi",
)
]
setup(name='rafem',
version='0.1.0',
author='Katherine Ratliff',
author_email='k.ratliff@duke.edu',
description='River Avulsion Flooplain Evolution Model',
long_description=open('README.rst').read(),
url='https://github.com/katmratliff/avulsion-bmi',
license='MIT',
packages=find_packages(),
cmdclass=get_cmdclass(pymt_components),
entry_points=get_entry_points(pymt_components),
)
|
6327b3f0f7f27647bac4d169169f3d727fdfabc4
|
setup.py
|
setup.py
|
from setuptools import setup, find_packages
setup(
name='jupyterhub-kubespawner',
version='0.5.1',
install_requires=[
'jupyterhub',
'pyyaml',
],
setup_requires=['pytest-runner'],
tests_require=['pytest'],
description='JupyterHub Spawner targetting Kubernetes',
url='http://github.com/jupyterhub/kubespawner',
author='Yuvi Panda',
author_email='yuvipanda@gmail.com',
license='BSD',
packages=find_packages(),
)
|
from setuptools import setup, find_packages
setup(
name='jupyterhub-kubespawner',
version='0.5.1',
install_requires=[
'jupyterhub',
'pyyaml',
'pycurl'
],
setup_requires=['pytest-runner'],
tests_require=['pytest'],
description='JupyterHub Spawner targetting Kubernetes',
url='http://github.com/jupyterhub/kubespawner',
author='Yuvi Panda',
author_email='yuvipanda@gmail.com',
license='BSD',
packages=find_packages(),
)
|
Add pycurl as a dependency
|
Add pycurl as a dependency
|
Python
|
bsd-3-clause
|
ktong/kubespawner,jupyterhub/kubespawner,jbmarcille/kubespawner,yuvipanda/jupyterhub-kubernetes-spawner
|
from setuptools import setup, find_packages
setup(
name='jupyterhub-kubespawner',
version='0.5.1',
install_requires=[
'jupyterhub',
'pyyaml',
],
setup_requires=['pytest-runner'],
tests_require=['pytest'],
description='JupyterHub Spawner targetting Kubernetes',
url='http://github.com/jupyterhub/kubespawner',
author='Yuvi Panda',
author_email='yuvipanda@gmail.com',
license='BSD',
packages=find_packages(),
)
Add pycurl as a dependency
|
from setuptools import setup, find_packages
setup(
name='jupyterhub-kubespawner',
version='0.5.1',
install_requires=[
'jupyterhub',
'pyyaml',
'pycurl'
],
setup_requires=['pytest-runner'],
tests_require=['pytest'],
description='JupyterHub Spawner targetting Kubernetes',
url='http://github.com/jupyterhub/kubespawner',
author='Yuvi Panda',
author_email='yuvipanda@gmail.com',
license='BSD',
packages=find_packages(),
)
|
<commit_before>from setuptools import setup, find_packages
setup(
name='jupyterhub-kubespawner',
version='0.5.1',
install_requires=[
'jupyterhub',
'pyyaml',
],
setup_requires=['pytest-runner'],
tests_require=['pytest'],
description='JupyterHub Spawner targetting Kubernetes',
url='http://github.com/jupyterhub/kubespawner',
author='Yuvi Panda',
author_email='yuvipanda@gmail.com',
license='BSD',
packages=find_packages(),
)
<commit_msg>Add pycurl as a dependency<commit_after>
|
from setuptools import setup, find_packages
setup(
name='jupyterhub-kubespawner',
version='0.5.1',
install_requires=[
'jupyterhub',
'pyyaml',
'pycurl'
],
setup_requires=['pytest-runner'],
tests_require=['pytest'],
description='JupyterHub Spawner targetting Kubernetes',
url='http://github.com/jupyterhub/kubespawner',
author='Yuvi Panda',
author_email='yuvipanda@gmail.com',
license='BSD',
packages=find_packages(),
)
|
from setuptools import setup, find_packages
setup(
name='jupyterhub-kubespawner',
version='0.5.1',
install_requires=[
'jupyterhub',
'pyyaml',
],
setup_requires=['pytest-runner'],
tests_require=['pytest'],
description='JupyterHub Spawner targetting Kubernetes',
url='http://github.com/jupyterhub/kubespawner',
author='Yuvi Panda',
author_email='yuvipanda@gmail.com',
license='BSD',
packages=find_packages(),
)
Add pycurl as a dependencyfrom setuptools import setup, find_packages
setup(
name='jupyterhub-kubespawner',
version='0.5.1',
install_requires=[
'jupyterhub',
'pyyaml',
'pycurl'
],
setup_requires=['pytest-runner'],
tests_require=['pytest'],
description='JupyterHub Spawner targetting Kubernetes',
url='http://github.com/jupyterhub/kubespawner',
author='Yuvi Panda',
author_email='yuvipanda@gmail.com',
license='BSD',
packages=find_packages(),
)
|
<commit_before>from setuptools import setup, find_packages
setup(
name='jupyterhub-kubespawner',
version='0.5.1',
install_requires=[
'jupyterhub',
'pyyaml',
],
setup_requires=['pytest-runner'],
tests_require=['pytest'],
description='JupyterHub Spawner targetting Kubernetes',
url='http://github.com/jupyterhub/kubespawner',
author='Yuvi Panda',
author_email='yuvipanda@gmail.com',
license='BSD',
packages=find_packages(),
)
<commit_msg>Add pycurl as a dependency<commit_after>from setuptools import setup, find_packages
setup(
name='jupyterhub-kubespawner',
version='0.5.1',
install_requires=[
'jupyterhub',
'pyyaml',
'pycurl'
],
setup_requires=['pytest-runner'],
tests_require=['pytest'],
description='JupyterHub Spawner targetting Kubernetes',
url='http://github.com/jupyterhub/kubespawner',
author='Yuvi Panda',
author_email='yuvipanda@gmail.com',
license='BSD',
packages=find_packages(),
)
|
cf3ba1d37ebcb037c7116097c55814c3af5f9512
|
setup.py
|
setup.py
|
from setuptools import setup, find_packages
setup(
name='django-txtlocal',
packages=find_packages(),
include_package_data=True,
install_requires=['requests>=1.2.3'],
version='0.2',
description='App for sending and receiving SMS messages via http://www.textlocal.com',
author='Incuna Ltd',
author_email='admin@incuna.com',
url='https://github.com/incuna/django-txtlocal/',
)
|
from setuptools import setup, find_packages
setup(
name='django-txtlocal',
packages=find_packages(),
include_package_data=True,
install_requires=['requests>=1.2.3'],
version='0.2',
description='App for sending and receiving SMS messages via http://www.textlocal.com',
long_description=open('README.rst').read(),
author='Incuna Ltd',
author_email='admin@incuna.com',
url='https://github.com/incuna/django-txtlocal/',
)
|
Use readme in long description
|
Use readme in long description
|
Python
|
bsd-2-clause
|
incuna/django-txtlocal
|
from setuptools import setup, find_packages
setup(
name='django-txtlocal',
packages=find_packages(),
include_package_data=True,
install_requires=['requests>=1.2.3'],
version='0.2',
description='App for sending and receiving SMS messages via http://www.textlocal.com',
author='Incuna Ltd',
author_email='admin@incuna.com',
url='https://github.com/incuna/django-txtlocal/',
)
Use readme in long description
|
from setuptools import setup, find_packages
setup(
name='django-txtlocal',
packages=find_packages(),
include_package_data=True,
install_requires=['requests>=1.2.3'],
version='0.2',
description='App for sending and receiving SMS messages via http://www.textlocal.com',
long_description=open('README.rst').read(),
author='Incuna Ltd',
author_email='admin@incuna.com',
url='https://github.com/incuna/django-txtlocal/',
)
|
<commit_before>from setuptools import setup, find_packages
setup(
name='django-txtlocal',
packages=find_packages(),
include_package_data=True,
install_requires=['requests>=1.2.3'],
version='0.2',
description='App for sending and receiving SMS messages via http://www.textlocal.com',
author='Incuna Ltd',
author_email='admin@incuna.com',
url='https://github.com/incuna/django-txtlocal/',
)
<commit_msg>Use readme in long description<commit_after>
|
from setuptools import setup, find_packages
setup(
name='django-txtlocal',
packages=find_packages(),
include_package_data=True,
install_requires=['requests>=1.2.3'],
version='0.2',
description='App for sending and receiving SMS messages via http://www.textlocal.com',
long_description=open('README.rst').read(),
author='Incuna Ltd',
author_email='admin@incuna.com',
url='https://github.com/incuna/django-txtlocal/',
)
|
from setuptools import setup, find_packages
setup(
name='django-txtlocal',
packages=find_packages(),
include_package_data=True,
install_requires=['requests>=1.2.3'],
version='0.2',
description='App for sending and receiving SMS messages via http://www.textlocal.com',
author='Incuna Ltd',
author_email='admin@incuna.com',
url='https://github.com/incuna/django-txtlocal/',
)
Use readme in long descriptionfrom setuptools import setup, find_packages
setup(
name='django-txtlocal',
packages=find_packages(),
include_package_data=True,
install_requires=['requests>=1.2.3'],
version='0.2',
description='App for sending and receiving SMS messages via http://www.textlocal.com',
long_description=open('README.rst').read(),
author='Incuna Ltd',
author_email='admin@incuna.com',
url='https://github.com/incuna/django-txtlocal/',
)
|
<commit_before>from setuptools import setup, find_packages
setup(
name='django-txtlocal',
packages=find_packages(),
include_package_data=True,
install_requires=['requests>=1.2.3'],
version='0.2',
description='App for sending and receiving SMS messages via http://www.textlocal.com',
author='Incuna Ltd',
author_email='admin@incuna.com',
url='https://github.com/incuna/django-txtlocal/',
)
<commit_msg>Use readme in long description<commit_after>from setuptools import setup, find_packages
setup(
name='django-txtlocal',
packages=find_packages(),
include_package_data=True,
install_requires=['requests>=1.2.3'],
version='0.2',
description='App for sending and receiving SMS messages via http://www.textlocal.com',
long_description=open('README.rst').read(),
author='Incuna Ltd',
author_email='admin@incuna.com',
url='https://github.com/incuna/django-txtlocal/',
)
|
3f9cac3b9c36398a3eb6dba4ece49fc3656a56b0
|
setup.py
|
setup.py
|
import os
from setuptools import Extension, find_packages, setup
with open(os.path.join(os.path.dirname(__file__), "README.md")) as f:
long_description = f.read()
setup(
name="pyinstrument",
packages=find_packages(include=["pyinstrument", "pyinstrument.*"]),
version="4.1.1",
ext_modules=[
Extension(
"pyinstrument.low_level.stat_profile",
sources=["pyinstrument/low_level/stat_profile.c"],
)
],
description="Call stack profiler for Python. Shows you why your code is slow!",
long_description=long_description,
long_description_content_type="text/markdown",
author="Joe Rickerby",
author_email="joerick@mac.com",
url="https://github.com/joerick/pyinstrument",
keywords=["profiling", "profile", "profiler", "cpu", "time", "sampling"],
install_requires=[],
extras_require={"jupyter": ["ipython"]},
include_package_data=True,
python_requires=">=3.7",
entry_points={"console_scripts": ["pyinstrument = pyinstrument.__main__:main"]},
zip_safe=False,
classifiers=[
"Environment :: Console",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"Topic :: Software Development :: Debuggers",
"Topic :: Software Development :: Testing",
],
)
|
import os
from pathlib import Path
from setuptools import Extension, find_packages, setup
PROJECT_ROOT = Path(__file__).parent
long_description = (PROJECT_ROOT / "README.md").read_text(encoding="utf8")
setup(
name="pyinstrument",
packages=find_packages(include=["pyinstrument", "pyinstrument.*"]),
version="4.1.1",
ext_modules=[
Extension(
"pyinstrument.low_level.stat_profile",
sources=["pyinstrument/low_level/stat_profile.c"],
)
],
description="Call stack profiler for Python. Shows you why your code is slow!",
long_description=long_description,
long_description_content_type="text/markdown",
author="Joe Rickerby",
author_email="joerick@mac.com",
url="https://github.com/joerick/pyinstrument",
keywords=["profiling", "profile", "profiler", "cpu", "time", "sampling"],
install_requires=[],
extras_require={"jupyter": ["ipython"]},
include_package_data=True,
python_requires=">=3.7",
entry_points={"console_scripts": ["pyinstrument = pyinstrument.__main__:main"]},
zip_safe=False,
classifiers=[
"Environment :: Console",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"Topic :: Software Development :: Debuggers",
"Topic :: Software Development :: Testing",
],
)
|
Add encoding to README read
|
Add encoding to README read
|
Python
|
bsd-3-clause
|
joerick/pyinstrument,joerick/pyinstrument,joerick/pyinstrument,joerick/pyinstrument,joerick/pyinstrument,joerick/pyinstrument
|
import os
from setuptools import Extension, find_packages, setup
with open(os.path.join(os.path.dirname(__file__), "README.md")) as f:
long_description = f.read()
setup(
name="pyinstrument",
packages=find_packages(include=["pyinstrument", "pyinstrument.*"]),
version="4.1.1",
ext_modules=[
Extension(
"pyinstrument.low_level.stat_profile",
sources=["pyinstrument/low_level/stat_profile.c"],
)
],
description="Call stack profiler for Python. Shows you why your code is slow!",
long_description=long_description,
long_description_content_type="text/markdown",
author="Joe Rickerby",
author_email="joerick@mac.com",
url="https://github.com/joerick/pyinstrument",
keywords=["profiling", "profile", "profiler", "cpu", "time", "sampling"],
install_requires=[],
extras_require={"jupyter": ["ipython"]},
include_package_data=True,
python_requires=">=3.7",
entry_points={"console_scripts": ["pyinstrument = pyinstrument.__main__:main"]},
zip_safe=False,
classifiers=[
"Environment :: Console",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"Topic :: Software Development :: Debuggers",
"Topic :: Software Development :: Testing",
],
)
Add encoding to README read
|
import os
from pathlib import Path
from setuptools import Extension, find_packages, setup
PROJECT_ROOT = Path(__file__).parent
long_description = (PROJECT_ROOT / "README.md").read_text(encoding="utf8")
setup(
name="pyinstrument",
packages=find_packages(include=["pyinstrument", "pyinstrument.*"]),
version="4.1.1",
ext_modules=[
Extension(
"pyinstrument.low_level.stat_profile",
sources=["pyinstrument/low_level/stat_profile.c"],
)
],
description="Call stack profiler for Python. Shows you why your code is slow!",
long_description=long_description,
long_description_content_type="text/markdown",
author="Joe Rickerby",
author_email="joerick@mac.com",
url="https://github.com/joerick/pyinstrument",
keywords=["profiling", "profile", "profiler", "cpu", "time", "sampling"],
install_requires=[],
extras_require={"jupyter": ["ipython"]},
include_package_data=True,
python_requires=">=3.7",
entry_points={"console_scripts": ["pyinstrument = pyinstrument.__main__:main"]},
zip_safe=False,
classifiers=[
"Environment :: Console",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"Topic :: Software Development :: Debuggers",
"Topic :: Software Development :: Testing",
],
)
|
<commit_before>import os
from setuptools import Extension, find_packages, setup
with open(os.path.join(os.path.dirname(__file__), "README.md")) as f:
long_description = f.read()
setup(
name="pyinstrument",
packages=find_packages(include=["pyinstrument", "pyinstrument.*"]),
version="4.1.1",
ext_modules=[
Extension(
"pyinstrument.low_level.stat_profile",
sources=["pyinstrument/low_level/stat_profile.c"],
)
],
description="Call stack profiler for Python. Shows you why your code is slow!",
long_description=long_description,
long_description_content_type="text/markdown",
author="Joe Rickerby",
author_email="joerick@mac.com",
url="https://github.com/joerick/pyinstrument",
keywords=["profiling", "profile", "profiler", "cpu", "time", "sampling"],
install_requires=[],
extras_require={"jupyter": ["ipython"]},
include_package_data=True,
python_requires=">=3.7",
entry_points={"console_scripts": ["pyinstrument = pyinstrument.__main__:main"]},
zip_safe=False,
classifiers=[
"Environment :: Console",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"Topic :: Software Development :: Debuggers",
"Topic :: Software Development :: Testing",
],
)
<commit_msg>Add encoding to README read<commit_after>
|
import os
from pathlib import Path
from setuptools import Extension, find_packages, setup
PROJECT_ROOT = Path(__file__).parent
long_description = (PROJECT_ROOT / "README.md").read_text(encoding="utf8")
setup(
name="pyinstrument",
packages=find_packages(include=["pyinstrument", "pyinstrument.*"]),
version="4.1.1",
ext_modules=[
Extension(
"pyinstrument.low_level.stat_profile",
sources=["pyinstrument/low_level/stat_profile.c"],
)
],
description="Call stack profiler for Python. Shows you why your code is slow!",
long_description=long_description,
long_description_content_type="text/markdown",
author="Joe Rickerby",
author_email="joerick@mac.com",
url="https://github.com/joerick/pyinstrument",
keywords=["profiling", "profile", "profiler", "cpu", "time", "sampling"],
install_requires=[],
extras_require={"jupyter": ["ipython"]},
include_package_data=True,
python_requires=">=3.7",
entry_points={"console_scripts": ["pyinstrument = pyinstrument.__main__:main"]},
zip_safe=False,
classifiers=[
"Environment :: Console",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"Topic :: Software Development :: Debuggers",
"Topic :: Software Development :: Testing",
],
)
|
import os
from setuptools import Extension, find_packages, setup
with open(os.path.join(os.path.dirname(__file__), "README.md")) as f:
long_description = f.read()
setup(
name="pyinstrument",
packages=find_packages(include=["pyinstrument", "pyinstrument.*"]),
version="4.1.1",
ext_modules=[
Extension(
"pyinstrument.low_level.stat_profile",
sources=["pyinstrument/low_level/stat_profile.c"],
)
],
description="Call stack profiler for Python. Shows you why your code is slow!",
long_description=long_description,
long_description_content_type="text/markdown",
author="Joe Rickerby",
author_email="joerick@mac.com",
url="https://github.com/joerick/pyinstrument",
keywords=["profiling", "profile", "profiler", "cpu", "time", "sampling"],
install_requires=[],
extras_require={"jupyter": ["ipython"]},
include_package_data=True,
python_requires=">=3.7",
entry_points={"console_scripts": ["pyinstrument = pyinstrument.__main__:main"]},
zip_safe=False,
classifiers=[
"Environment :: Console",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"Topic :: Software Development :: Debuggers",
"Topic :: Software Development :: Testing",
],
)
Add encoding to README readimport os
from pathlib import Path
from setuptools import Extension, find_packages, setup
PROJECT_ROOT = Path(__file__).parent
long_description = (PROJECT_ROOT / "README.md").read_text(encoding="utf8")
setup(
name="pyinstrument",
packages=find_packages(include=["pyinstrument", "pyinstrument.*"]),
version="4.1.1",
ext_modules=[
Extension(
"pyinstrument.low_level.stat_profile",
sources=["pyinstrument/low_level/stat_profile.c"],
)
],
description="Call stack profiler for Python. Shows you why your code is slow!",
long_description=long_description,
long_description_content_type="text/markdown",
author="Joe Rickerby",
author_email="joerick@mac.com",
url="https://github.com/joerick/pyinstrument",
keywords=["profiling", "profile", "profiler", "cpu", "time", "sampling"],
install_requires=[],
extras_require={"jupyter": ["ipython"]},
include_package_data=True,
python_requires=">=3.7",
entry_points={"console_scripts": ["pyinstrument = pyinstrument.__main__:main"]},
zip_safe=False,
classifiers=[
"Environment :: Console",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"Topic :: Software Development :: Debuggers",
"Topic :: Software Development :: Testing",
],
)
|
<commit_before>import os
from setuptools import Extension, find_packages, setup
with open(os.path.join(os.path.dirname(__file__), "README.md")) as f:
long_description = f.read()
setup(
name="pyinstrument",
packages=find_packages(include=["pyinstrument", "pyinstrument.*"]),
version="4.1.1",
ext_modules=[
Extension(
"pyinstrument.low_level.stat_profile",
sources=["pyinstrument/low_level/stat_profile.c"],
)
],
description="Call stack profiler for Python. Shows you why your code is slow!",
long_description=long_description,
long_description_content_type="text/markdown",
author="Joe Rickerby",
author_email="joerick@mac.com",
url="https://github.com/joerick/pyinstrument",
keywords=["profiling", "profile", "profiler", "cpu", "time", "sampling"],
install_requires=[],
extras_require={"jupyter": ["ipython"]},
include_package_data=True,
python_requires=">=3.7",
entry_points={"console_scripts": ["pyinstrument = pyinstrument.__main__:main"]},
zip_safe=False,
classifiers=[
"Environment :: Console",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"Topic :: Software Development :: Debuggers",
"Topic :: Software Development :: Testing",
],
)
<commit_msg>Add encoding to README read<commit_after>import os
from pathlib import Path
from setuptools import Extension, find_packages, setup
PROJECT_ROOT = Path(__file__).parent
long_description = (PROJECT_ROOT / "README.md").read_text(encoding="utf8")
setup(
name="pyinstrument",
packages=find_packages(include=["pyinstrument", "pyinstrument.*"]),
version="4.1.1",
ext_modules=[
Extension(
"pyinstrument.low_level.stat_profile",
sources=["pyinstrument/low_level/stat_profile.c"],
)
],
description="Call stack profiler for Python. Shows you why your code is slow!",
long_description=long_description,
long_description_content_type="text/markdown",
author="Joe Rickerby",
author_email="joerick@mac.com",
url="https://github.com/joerick/pyinstrument",
keywords=["profiling", "profile", "profiler", "cpu", "time", "sampling"],
install_requires=[],
extras_require={"jupyter": ["ipython"]},
include_package_data=True,
python_requires=">=3.7",
entry_points={"console_scripts": ["pyinstrument = pyinstrument.__main__:main"]},
zip_safe=False,
classifiers=[
"Environment :: Console",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"Topic :: Software Development :: Debuggers",
"Topic :: Software Development :: Testing",
],
)
|
f7709dc6de24c1acb36abcfd3d07f2b3a5130dfa
|
setup.py
|
setup.py
|
#!/usr/bin/env python
# Copyright (c) 2014, Michael Boyle
# See LICENSE file for details: <https://github.com/moble/spherical_functions/blob/master/LICENSE>
from distutils.core import setup
setup(name='spherical_functions',
version='1.0',
description='Python/numba implementation of Wigner D Matrices, spin-weighted spherical harmonics, and associated functions',
author='Michael Boyle',
# author_email='',
url='https://github.com/moble/spherical_functions',
packages=['spherical_functions',],
package_dir={'spherical_functions': ''},
package_data={'spherical_functions': ['*.npy']},
)
|
#!/usr/bin/env python
# Copyright (c) 2014, Michael Boyle
# See LICENSE file for details: <https://github.com/moble/spherical_functions/blob/master/LICENSE>
from distutils.core import setup
setup(name='spherical_functions',
version='1.0',
description='Python/numba implementation of Wigner D Matrices, spin-weighted spherical harmonics, and associated functions',
author='Michael Boyle',
# author_email='',
url='https://github.com/moble/spherical_functions',
packages=['spherical_functions',],
package_dir={'spherical_functions': '.'},
package_data={'spherical_functions': ['*.npy']},
)
|
Include dot so that data files don't get their first letters cut off
|
Include dot so that data files don't get their first letters cut off
|
Python
|
mit
|
moble/spherical_functions
|
#!/usr/bin/env python
# Copyright (c) 2014, Michael Boyle
# See LICENSE file for details: <https://github.com/moble/spherical_functions/blob/master/LICENSE>
from distutils.core import setup
setup(name='spherical_functions',
version='1.0',
description='Python/numba implementation of Wigner D Matrices, spin-weighted spherical harmonics, and associated functions',
author='Michael Boyle',
# author_email='',
url='https://github.com/moble/spherical_functions',
packages=['spherical_functions',],
package_dir={'spherical_functions': ''},
package_data={'spherical_functions': ['*.npy']},
)
Include dot so that data files don't get their first letters cut off
|
#!/usr/bin/env python
# Copyright (c) 2014, Michael Boyle
# See LICENSE file for details: <https://github.com/moble/spherical_functions/blob/master/LICENSE>
from distutils.core import setup
setup(name='spherical_functions',
version='1.0',
description='Python/numba implementation of Wigner D Matrices, spin-weighted spherical harmonics, and associated functions',
author='Michael Boyle',
# author_email='',
url='https://github.com/moble/spherical_functions',
packages=['spherical_functions',],
package_dir={'spherical_functions': '.'},
package_data={'spherical_functions': ['*.npy']},
)
|
<commit_before>#!/usr/bin/env python
# Copyright (c) 2014, Michael Boyle
# See LICENSE file for details: <https://github.com/moble/spherical_functions/blob/master/LICENSE>
from distutils.core import setup
setup(name='spherical_functions',
version='1.0',
description='Python/numba implementation of Wigner D Matrices, spin-weighted spherical harmonics, and associated functions',
author='Michael Boyle',
# author_email='',
url='https://github.com/moble/spherical_functions',
packages=['spherical_functions',],
package_dir={'spherical_functions': ''},
package_data={'spherical_functions': ['*.npy']},
)
<commit_msg>Include dot so that data files don't get their first letters cut off<commit_after>
|
#!/usr/bin/env python
# Copyright (c) 2014, Michael Boyle
# See LICENSE file for details: <https://github.com/moble/spherical_functions/blob/master/LICENSE>
from distutils.core import setup
setup(name='spherical_functions',
version='1.0',
description='Python/numba implementation of Wigner D Matrices, spin-weighted spherical harmonics, and associated functions',
author='Michael Boyle',
# author_email='',
url='https://github.com/moble/spherical_functions',
packages=['spherical_functions',],
package_dir={'spherical_functions': '.'},
package_data={'spherical_functions': ['*.npy']},
)
|
#!/usr/bin/env python
# Copyright (c) 2014, Michael Boyle
# See LICENSE file for details: <https://github.com/moble/spherical_functions/blob/master/LICENSE>
from distutils.core import setup
setup(name='spherical_functions',
version='1.0',
description='Python/numba implementation of Wigner D Matrices, spin-weighted spherical harmonics, and associated functions',
author='Michael Boyle',
# author_email='',
url='https://github.com/moble/spherical_functions',
packages=['spherical_functions',],
package_dir={'spherical_functions': ''},
package_data={'spherical_functions': ['*.npy']},
)
Include dot so that data files don't get their first letters cut off#!/usr/bin/env python
# Copyright (c) 2014, Michael Boyle
# See LICENSE file for details: <https://github.com/moble/spherical_functions/blob/master/LICENSE>
from distutils.core import setup
setup(name='spherical_functions',
version='1.0',
description='Python/numba implementation of Wigner D Matrices, spin-weighted spherical harmonics, and associated functions',
author='Michael Boyle',
# author_email='',
url='https://github.com/moble/spherical_functions',
packages=['spherical_functions',],
package_dir={'spherical_functions': '.'},
package_data={'spherical_functions': ['*.npy']},
)
|
<commit_before>#!/usr/bin/env python
# Copyright (c) 2014, Michael Boyle
# See LICENSE file for details: <https://github.com/moble/spherical_functions/blob/master/LICENSE>
from distutils.core import setup
setup(name='spherical_functions',
version='1.0',
description='Python/numba implementation of Wigner D Matrices, spin-weighted spherical harmonics, and associated functions',
author='Michael Boyle',
# author_email='',
url='https://github.com/moble/spherical_functions',
packages=['spherical_functions',],
package_dir={'spherical_functions': ''},
package_data={'spherical_functions': ['*.npy']},
)
<commit_msg>Include dot so that data files don't get their first letters cut off<commit_after>#!/usr/bin/env python
# Copyright (c) 2014, Michael Boyle
# See LICENSE file for details: <https://github.com/moble/spherical_functions/blob/master/LICENSE>
from distutils.core import setup
setup(name='spherical_functions',
version='1.0',
description='Python/numba implementation of Wigner D Matrices, spin-weighted spherical harmonics, and associated functions',
author='Michael Boyle',
# author_email='',
url='https://github.com/moble/spherical_functions',
packages=['spherical_functions',],
package_dir={'spherical_functions': '.'},
package_data={'spherical_functions': ['*.npy']},
)
|
c3103d881024cef6a7790d47e4937838cf97c4a5
|
setup.py
|
setup.py
|
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
setup(
name="releng-sop",
version="0.1",
description="Release Enginering Standard Operating Procedures",
url="https://github.com/release-engineering/releng-sop.git",
author="Daniel Mach",
author_email="dmach@redhat.com",
license="MIT",
packages=find_packages(),
include_package_data=True,
scripts=[
"bin/koji-block-package-in-release",
],
test_suite="tests",
)
|
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
setup(
name="releng-sop",
version="0.1",
description="Release Enginering Standard Operating Procedures",
url="https://github.com/release-engineering/releng-sop.git",
author="Daniel Mach",
author_email="dmach@redhat.com",
license="MIT",
install_requires=[
"pyxdg"
],
packages=find_packages(),
include_package_data=True,
scripts=[
"bin/koji-block-package-in-release",
],
test_suite="tests",
)
|
Add xdg as a dependency
|
Add xdg as a dependency
|
Python
|
mit
|
release-engineering/releng-sop,release-engineering/releng-sop
|
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
setup(
name="releng-sop",
version="0.1",
description="Release Enginering Standard Operating Procedures",
url="https://github.com/release-engineering/releng-sop.git",
author="Daniel Mach",
author_email="dmach@redhat.com",
license="MIT",
packages=find_packages(),
include_package_data=True,
scripts=[
"bin/koji-block-package-in-release",
],
test_suite="tests",
)
Add xdg as a dependency
|
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
setup(
name="releng-sop",
version="0.1",
description="Release Enginering Standard Operating Procedures",
url="https://github.com/release-engineering/releng-sop.git",
author="Daniel Mach",
author_email="dmach@redhat.com",
license="MIT",
install_requires=[
"pyxdg"
],
packages=find_packages(),
include_package_data=True,
scripts=[
"bin/koji-block-package-in-release",
],
test_suite="tests",
)
|
<commit_before># -*- coding: utf-8 -*-
from setuptools import setup, find_packages
setup(
name="releng-sop",
version="0.1",
description="Release Enginering Standard Operating Procedures",
url="https://github.com/release-engineering/releng-sop.git",
author="Daniel Mach",
author_email="dmach@redhat.com",
license="MIT",
packages=find_packages(),
include_package_data=True,
scripts=[
"bin/koji-block-package-in-release",
],
test_suite="tests",
)
<commit_msg>Add xdg as a dependency<commit_after>
|
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
setup(
name="releng-sop",
version="0.1",
description="Release Enginering Standard Operating Procedures",
url="https://github.com/release-engineering/releng-sop.git",
author="Daniel Mach",
author_email="dmach@redhat.com",
license="MIT",
install_requires=[
"pyxdg"
],
packages=find_packages(),
include_package_data=True,
scripts=[
"bin/koji-block-package-in-release",
],
test_suite="tests",
)
|
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
setup(
name="releng-sop",
version="0.1",
description="Release Enginering Standard Operating Procedures",
url="https://github.com/release-engineering/releng-sop.git",
author="Daniel Mach",
author_email="dmach@redhat.com",
license="MIT",
packages=find_packages(),
include_package_data=True,
scripts=[
"bin/koji-block-package-in-release",
],
test_suite="tests",
)
Add xdg as a dependency# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
setup(
name="releng-sop",
version="0.1",
description="Release Enginering Standard Operating Procedures",
url="https://github.com/release-engineering/releng-sop.git",
author="Daniel Mach",
author_email="dmach@redhat.com",
license="MIT",
install_requires=[
"pyxdg"
],
packages=find_packages(),
include_package_data=True,
scripts=[
"bin/koji-block-package-in-release",
],
test_suite="tests",
)
|
<commit_before># -*- coding: utf-8 -*-
from setuptools import setup, find_packages
setup(
name="releng-sop",
version="0.1",
description="Release Enginering Standard Operating Procedures",
url="https://github.com/release-engineering/releng-sop.git",
author="Daniel Mach",
author_email="dmach@redhat.com",
license="MIT",
packages=find_packages(),
include_package_data=True,
scripts=[
"bin/koji-block-package-in-release",
],
test_suite="tests",
)
<commit_msg>Add xdg as a dependency<commit_after># -*- coding: utf-8 -*-
from setuptools import setup, find_packages
setup(
name="releng-sop",
version="0.1",
description="Release Enginering Standard Operating Procedures",
url="https://github.com/release-engineering/releng-sop.git",
author="Daniel Mach",
author_email="dmach@redhat.com",
license="MIT",
install_requires=[
"pyxdg"
],
packages=find_packages(),
include_package_data=True,
scripts=[
"bin/koji-block-package-in-release",
],
test_suite="tests",
)
|
55718e4cc706341058d8bd2192598f9fa6ca8e22
|
setup.py
|
setup.py
|
from __future__ import absolute_import
from __future__ import division
from __future__ import unicode_literals
from setuptools import setup
setup(
name='idlk',
version='0.0.1',
description='idlk lock filename generator',
author='Lorenz Schori',
author_email='lo@znerol.ch',
packages=['idlk'],
test_suite="idlk.test",
zip_safe=True
)
|
from __future__ import absolute_import
from __future__ import division
from __future__ import unicode_literals
from setuptools import setup
setup(
name='idlk',
version='0.0.9',
description='idlk lock filename generator',
author='Lorenz Schori',
author_email='lo@znerol.ch',
url='https://github.com/znerol/py-idlk',
packages=['idlk'],
test_suite="idlk.test",
zip_safe=True,
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Plugins',
'Intended Audience :: Developers',
'Intended Audience :: Information Technology',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Topic :: Multimedia :: Graphics'
]
)
|
Add specifiers and bump version
|
Add specifiers and bump version
|
Python
|
mit
|
znerol/py-idlk
|
from __future__ import absolute_import
from __future__ import division
from __future__ import unicode_literals
from setuptools import setup
setup(
name='idlk',
version='0.0.1',
description='idlk lock filename generator',
author='Lorenz Schori',
author_email='lo@znerol.ch',
packages=['idlk'],
test_suite="idlk.test",
zip_safe=True
)
Add specifiers and bump version
|
from __future__ import absolute_import
from __future__ import division
from __future__ import unicode_literals
from setuptools import setup
setup(
name='idlk',
version='0.0.9',
description='idlk lock filename generator',
author='Lorenz Schori',
author_email='lo@znerol.ch',
url='https://github.com/znerol/py-idlk',
packages=['idlk'],
test_suite="idlk.test",
zip_safe=True,
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Plugins',
'Intended Audience :: Developers',
'Intended Audience :: Information Technology',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Topic :: Multimedia :: Graphics'
]
)
|
<commit_before>from __future__ import absolute_import
from __future__ import division
from __future__ import unicode_literals
from setuptools import setup
setup(
name='idlk',
version='0.0.1',
description='idlk lock filename generator',
author='Lorenz Schori',
author_email='lo@znerol.ch',
packages=['idlk'],
test_suite="idlk.test",
zip_safe=True
)
<commit_msg>Add specifiers and bump version<commit_after>
|
from __future__ import absolute_import
from __future__ import division
from __future__ import unicode_literals
from setuptools import setup
setup(
name='idlk',
version='0.0.9',
description='idlk lock filename generator',
author='Lorenz Schori',
author_email='lo@znerol.ch',
url='https://github.com/znerol/py-idlk',
packages=['idlk'],
test_suite="idlk.test",
zip_safe=True,
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Plugins',
'Intended Audience :: Developers',
'Intended Audience :: Information Technology',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Topic :: Multimedia :: Graphics'
]
)
|
from __future__ import absolute_import
from __future__ import division
from __future__ import unicode_literals
from setuptools import setup
setup(
name='idlk',
version='0.0.1',
description='idlk lock filename generator',
author='Lorenz Schori',
author_email='lo@znerol.ch',
packages=['idlk'],
test_suite="idlk.test",
zip_safe=True
)
Add specifiers and bump versionfrom __future__ import absolute_import
from __future__ import division
from __future__ import unicode_literals
from setuptools import setup
setup(
name='idlk',
version='0.0.9',
description='idlk lock filename generator',
author='Lorenz Schori',
author_email='lo@znerol.ch',
url='https://github.com/znerol/py-idlk',
packages=['idlk'],
test_suite="idlk.test",
zip_safe=True,
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Plugins',
'Intended Audience :: Developers',
'Intended Audience :: Information Technology',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Topic :: Multimedia :: Graphics'
]
)
|
<commit_before>from __future__ import absolute_import
from __future__ import division
from __future__ import unicode_literals
from setuptools import setup
setup(
name='idlk',
version='0.0.1',
description='idlk lock filename generator',
author='Lorenz Schori',
author_email='lo@znerol.ch',
packages=['idlk'],
test_suite="idlk.test",
zip_safe=True
)
<commit_msg>Add specifiers and bump version<commit_after>from __future__ import absolute_import
from __future__ import division
from __future__ import unicode_literals
from setuptools import setup
setup(
name='idlk',
version='0.0.9',
description='idlk lock filename generator',
author='Lorenz Schori',
author_email='lo@znerol.ch',
url='https://github.com/znerol/py-idlk',
packages=['idlk'],
test_suite="idlk.test",
zip_safe=True,
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Plugins',
'Intended Audience :: Developers',
'Intended Audience :: Information Technology',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Topic :: Multimedia :: Graphics'
]
)
|
0571579b98f516c208e6e84ae77abe25c4f248fc
|
setup.py
|
setup.py
|
"""
scratchdir
~~~~~~~~~~
Context manager used to maintain your temporary directories/files.
:copyright: (c) 2017 Andrew Hawker.
:license: Apache 2.0, see LICENSE for more details.
"""
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(
name='scratchdir',
version='0.0.3',
author='Andrew Hawker',
author_email='andrew.r.hawker@gmail.com',
url='https://github.com/ahawker/scratchdir',
license='Apache 2.0',
description='Context manager used to maintain your temporary directories/files.',
long_description=__doc__,
py_modules=['scratchdir'],
classifiers=(
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Natural Language :: English',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Topic :: Software Development :: Libraries :: Python Modules'
)
)
|
"""
scratchdir
~~~~~~~~~~
Context manager used to maintain your temporary directories/files.
:copyright: (c) 2017 Andrew Hawker.
:license: Apache 2.0, see LICENSE for more details.
"""
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
def get_long_description():
with open('README.rst') as f:
return f.read()
setup(
name='scratchdir',
version='0.0.3',
author='Andrew Hawker',
author_email='andrew.r.hawker@gmail.com',
url='https://github.com/ahawker/scratchdir',
license='Apache 2.0',
description='Context manager used to maintain your temporary directories/files.',
long_description=get_long_description(),
py_modules=['scratchdir'],
classifiers=(
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Natural Language :: English',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Topic :: Software Development :: Libraries :: Python Modules'
)
)
|
Use README.rst as long_description for package info.
|
Use README.rst as long_description for package info.
|
Python
|
apache-2.0
|
ahawker/scratchdir
|
"""
scratchdir
~~~~~~~~~~
Context manager used to maintain your temporary directories/files.
:copyright: (c) 2017 Andrew Hawker.
:license: Apache 2.0, see LICENSE for more details.
"""
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(
name='scratchdir',
version='0.0.3',
author='Andrew Hawker',
author_email='andrew.r.hawker@gmail.com',
url='https://github.com/ahawker/scratchdir',
license='Apache 2.0',
description='Context manager used to maintain your temporary directories/files.',
long_description=__doc__,
py_modules=['scratchdir'],
classifiers=(
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Natural Language :: English',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Topic :: Software Development :: Libraries :: Python Modules'
)
)
Use README.rst as long_description for package info.
|
"""
scratchdir
~~~~~~~~~~
Context manager used to maintain your temporary directories/files.
:copyright: (c) 2017 Andrew Hawker.
:license: Apache 2.0, see LICENSE for more details.
"""
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
def get_long_description():
with open('README.rst') as f:
return f.read()
setup(
name='scratchdir',
version='0.0.3',
author='Andrew Hawker',
author_email='andrew.r.hawker@gmail.com',
url='https://github.com/ahawker/scratchdir',
license='Apache 2.0',
description='Context manager used to maintain your temporary directories/files.',
long_description=get_long_description(),
py_modules=['scratchdir'],
classifiers=(
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Natural Language :: English',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Topic :: Software Development :: Libraries :: Python Modules'
)
)
|
<commit_before>"""
scratchdir
~~~~~~~~~~
Context manager used to maintain your temporary directories/files.
:copyright: (c) 2017 Andrew Hawker.
:license: Apache 2.0, see LICENSE for more details.
"""
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(
name='scratchdir',
version='0.0.3',
author='Andrew Hawker',
author_email='andrew.r.hawker@gmail.com',
url='https://github.com/ahawker/scratchdir',
license='Apache 2.0',
description='Context manager used to maintain your temporary directories/files.',
long_description=__doc__,
py_modules=['scratchdir'],
classifiers=(
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Natural Language :: English',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Topic :: Software Development :: Libraries :: Python Modules'
)
)
<commit_msg>Use README.rst as long_description for package info.<commit_after>
|
"""
scratchdir
~~~~~~~~~~
Context manager used to maintain your temporary directories/files.
:copyright: (c) 2017 Andrew Hawker.
:license: Apache 2.0, see LICENSE for more details.
"""
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
def get_long_description():
with open('README.rst') as f:
return f.read()
setup(
name='scratchdir',
version='0.0.3',
author='Andrew Hawker',
author_email='andrew.r.hawker@gmail.com',
url='https://github.com/ahawker/scratchdir',
license='Apache 2.0',
description='Context manager used to maintain your temporary directories/files.',
long_description=get_long_description(),
py_modules=['scratchdir'],
classifiers=(
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Natural Language :: English',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Topic :: Software Development :: Libraries :: Python Modules'
)
)
|
"""
scratchdir
~~~~~~~~~~
Context manager used to maintain your temporary directories/files.
:copyright: (c) 2017 Andrew Hawker.
:license: Apache 2.0, see LICENSE for more details.
"""
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(
name='scratchdir',
version='0.0.3',
author='Andrew Hawker',
author_email='andrew.r.hawker@gmail.com',
url='https://github.com/ahawker/scratchdir',
license='Apache 2.0',
description='Context manager used to maintain your temporary directories/files.',
long_description=__doc__,
py_modules=['scratchdir'],
classifiers=(
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Natural Language :: English',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Topic :: Software Development :: Libraries :: Python Modules'
)
)
Use README.rst as long_description for package info."""
scratchdir
~~~~~~~~~~
Context manager used to maintain your temporary directories/files.
:copyright: (c) 2017 Andrew Hawker.
:license: Apache 2.0, see LICENSE for more details.
"""
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
def get_long_description():
with open('README.rst') as f:
return f.read()
setup(
name='scratchdir',
version='0.0.3',
author='Andrew Hawker',
author_email='andrew.r.hawker@gmail.com',
url='https://github.com/ahawker/scratchdir',
license='Apache 2.0',
description='Context manager used to maintain your temporary directories/files.',
long_description=get_long_description(),
py_modules=['scratchdir'],
classifiers=(
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Natural Language :: English',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Topic :: Software Development :: Libraries :: Python Modules'
)
)
|
<commit_before>"""
scratchdir
~~~~~~~~~~
Context manager used to maintain your temporary directories/files.
:copyright: (c) 2017 Andrew Hawker.
:license: Apache 2.0, see LICENSE for more details.
"""
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(
name='scratchdir',
version='0.0.3',
author='Andrew Hawker',
author_email='andrew.r.hawker@gmail.com',
url='https://github.com/ahawker/scratchdir',
license='Apache 2.0',
description='Context manager used to maintain your temporary directories/files.',
long_description=__doc__,
py_modules=['scratchdir'],
classifiers=(
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Natural Language :: English',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Topic :: Software Development :: Libraries :: Python Modules'
)
)
<commit_msg>Use README.rst as long_description for package info.<commit_after>"""
scratchdir
~~~~~~~~~~
Context manager used to maintain your temporary directories/files.
:copyright: (c) 2017 Andrew Hawker.
:license: Apache 2.0, see LICENSE for more details.
"""
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
def get_long_description():
with open('README.rst') as f:
return f.read()
setup(
name='scratchdir',
version='0.0.3',
author='Andrew Hawker',
author_email='andrew.r.hawker@gmail.com',
url='https://github.com/ahawker/scratchdir',
license='Apache 2.0',
description='Context manager used to maintain your temporary directories/files.',
long_description=get_long_description(),
py_modules=['scratchdir'],
classifiers=(
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Natural Language :: English',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Topic :: Software Development :: Libraries :: Python Modules'
)
)
|
e7a6eb6f63356f19a6deafb0b087f8deedc363c2
|
setup.py
|
setup.py
|
from setuptools import setup
dependencies = [
'requests~=2.7'
]
setup(
name='eclipsegen',
version='0.4.1',
description='Generate Eclipse instances in Python',
url='http://github.com/Gohla/eclipsegen',
author='Gabriel Konat',
author_email='gabrielkonat@gmail.com',
license='Apache 2.0',
packages=['eclipsegen'],
install_requires=dependencies,
test_suite='nose.collector',
tests_require=['nose>=1.3.7'] + dependencies,
include_package_data=True,
zip_safe=False,
)
|
from setuptools import setup
from setuptools.command.develop import develop
from setuptools.command.install import install
import os
dependencies = [
'requests~=2.7'
]
class PostDevelopCommand(develop):
def run(self):
make_director_executable()
class PostInstallCommand(install):
def run(self):
make_director_executable()
_DIRECTOR_DIR = os.path.join(os.path.dirname(__file__), 'eclipsegen', 'director')
def make_director_executable():
print("Making director executable")
os.chmod(os.path.join(_DIRECTOR_DIR, 'director'), 0o744)
os.chmod(os.path.join(_DIRECTOR_DIR, 'director.bat'), 0o744)
setup(
name='eclipsegen',
version='0.4.2',
description='Generate Eclipse instances in Python',
url='http://github.com/Gohla/eclipsegen',
author='Gabriel Konat',
author_email='gabrielkonat@gmail.com',
license='Apache 2.0',
packages=['eclipsegen'],
install_requires=dependencies,
test_suite='nose.collector',
tests_require=['nose>=1.3.7'] + dependencies,
include_package_data=True,
zip_safe=False,
cmdclass={
'install': PostInstallCommand,
'develop': PostDevelopCommand
}
)
|
Make director scripts executable after installing, as they does not always seem to be executable.
|
Make director scripts executable after installing, as they does not always seem to be executable.
|
Python
|
apache-2.0
|
Gohla/eclipsegen,Gohla/eclipsegen,Gohla/eclipsegen,Gohla/eclipsegen
|
from setuptools import setup
dependencies = [
'requests~=2.7'
]
setup(
name='eclipsegen',
version='0.4.1',
description='Generate Eclipse instances in Python',
url='http://github.com/Gohla/eclipsegen',
author='Gabriel Konat',
author_email='gabrielkonat@gmail.com',
license='Apache 2.0',
packages=['eclipsegen'],
install_requires=dependencies,
test_suite='nose.collector',
tests_require=['nose>=1.3.7'] + dependencies,
include_package_data=True,
zip_safe=False,
)
Make director scripts executable after installing, as they does not always seem to be executable.
|
from setuptools import setup
from setuptools.command.develop import develop
from setuptools.command.install import install
import os
dependencies = [
'requests~=2.7'
]
class PostDevelopCommand(develop):
def run(self):
make_director_executable()
class PostInstallCommand(install):
def run(self):
make_director_executable()
_DIRECTOR_DIR = os.path.join(os.path.dirname(__file__), 'eclipsegen', 'director')
def make_director_executable():
print("Making director executable")
os.chmod(os.path.join(_DIRECTOR_DIR, 'director'), 0o744)
os.chmod(os.path.join(_DIRECTOR_DIR, 'director.bat'), 0o744)
setup(
name='eclipsegen',
version='0.4.2',
description='Generate Eclipse instances in Python',
url='http://github.com/Gohla/eclipsegen',
author='Gabriel Konat',
author_email='gabrielkonat@gmail.com',
license='Apache 2.0',
packages=['eclipsegen'],
install_requires=dependencies,
test_suite='nose.collector',
tests_require=['nose>=1.3.7'] + dependencies,
include_package_data=True,
zip_safe=False,
cmdclass={
'install': PostInstallCommand,
'develop': PostDevelopCommand
}
)
|
<commit_before>from setuptools import setup
dependencies = [
'requests~=2.7'
]
setup(
name='eclipsegen',
version='0.4.1',
description='Generate Eclipse instances in Python',
url='http://github.com/Gohla/eclipsegen',
author='Gabriel Konat',
author_email='gabrielkonat@gmail.com',
license='Apache 2.0',
packages=['eclipsegen'],
install_requires=dependencies,
test_suite='nose.collector',
tests_require=['nose>=1.3.7'] + dependencies,
include_package_data=True,
zip_safe=False,
)
<commit_msg>Make director scripts executable after installing, as they does not always seem to be executable.<commit_after>
|
from setuptools import setup
from setuptools.command.develop import develop
from setuptools.command.install import install
import os
dependencies = [
'requests~=2.7'
]
class PostDevelopCommand(develop):
def run(self):
make_director_executable()
class PostInstallCommand(install):
def run(self):
make_director_executable()
_DIRECTOR_DIR = os.path.join(os.path.dirname(__file__), 'eclipsegen', 'director')
def make_director_executable():
print("Making director executable")
os.chmod(os.path.join(_DIRECTOR_DIR, 'director'), 0o744)
os.chmod(os.path.join(_DIRECTOR_DIR, 'director.bat'), 0o744)
setup(
name='eclipsegen',
version='0.4.2',
description='Generate Eclipse instances in Python',
url='http://github.com/Gohla/eclipsegen',
author='Gabriel Konat',
author_email='gabrielkonat@gmail.com',
license='Apache 2.0',
packages=['eclipsegen'],
install_requires=dependencies,
test_suite='nose.collector',
tests_require=['nose>=1.3.7'] + dependencies,
include_package_data=True,
zip_safe=False,
cmdclass={
'install': PostInstallCommand,
'develop': PostDevelopCommand
}
)
|
from setuptools import setup
dependencies = [
'requests~=2.7'
]
setup(
name='eclipsegen',
version='0.4.1',
description='Generate Eclipse instances in Python',
url='http://github.com/Gohla/eclipsegen',
author='Gabriel Konat',
author_email='gabrielkonat@gmail.com',
license='Apache 2.0',
packages=['eclipsegen'],
install_requires=dependencies,
test_suite='nose.collector',
tests_require=['nose>=1.3.7'] + dependencies,
include_package_data=True,
zip_safe=False,
)
Make director scripts executable after installing, as they does not always seem to be executable.from setuptools import setup
from setuptools.command.develop import develop
from setuptools.command.install import install
import os
dependencies = [
'requests~=2.7'
]
class PostDevelopCommand(develop):
def run(self):
make_director_executable()
class PostInstallCommand(install):
def run(self):
make_director_executable()
_DIRECTOR_DIR = os.path.join(os.path.dirname(__file__), 'eclipsegen', 'director')
def make_director_executable():
print("Making director executable")
os.chmod(os.path.join(_DIRECTOR_DIR, 'director'), 0o744)
os.chmod(os.path.join(_DIRECTOR_DIR, 'director.bat'), 0o744)
setup(
name='eclipsegen',
version='0.4.2',
description='Generate Eclipse instances in Python',
url='http://github.com/Gohla/eclipsegen',
author='Gabriel Konat',
author_email='gabrielkonat@gmail.com',
license='Apache 2.0',
packages=['eclipsegen'],
install_requires=dependencies,
test_suite='nose.collector',
tests_require=['nose>=1.3.7'] + dependencies,
include_package_data=True,
zip_safe=False,
cmdclass={
'install': PostInstallCommand,
'develop': PostDevelopCommand
}
)
|
<commit_before>from setuptools import setup
dependencies = [
'requests~=2.7'
]
setup(
name='eclipsegen',
version='0.4.1',
description='Generate Eclipse instances in Python',
url='http://github.com/Gohla/eclipsegen',
author='Gabriel Konat',
author_email='gabrielkonat@gmail.com',
license='Apache 2.0',
packages=['eclipsegen'],
install_requires=dependencies,
test_suite='nose.collector',
tests_require=['nose>=1.3.7'] + dependencies,
include_package_data=True,
zip_safe=False,
)
<commit_msg>Make director scripts executable after installing, as they does not always seem to be executable.<commit_after>from setuptools import setup
from setuptools.command.develop import develop
from setuptools.command.install import install
import os
dependencies = [
'requests~=2.7'
]
class PostDevelopCommand(develop):
def run(self):
make_director_executable()
class PostInstallCommand(install):
def run(self):
make_director_executable()
_DIRECTOR_DIR = os.path.join(os.path.dirname(__file__), 'eclipsegen', 'director')
def make_director_executable():
print("Making director executable")
os.chmod(os.path.join(_DIRECTOR_DIR, 'director'), 0o744)
os.chmod(os.path.join(_DIRECTOR_DIR, 'director.bat'), 0o744)
setup(
name='eclipsegen',
version='0.4.2',
description='Generate Eclipse instances in Python',
url='http://github.com/Gohla/eclipsegen',
author='Gabriel Konat',
author_email='gabrielkonat@gmail.com',
license='Apache 2.0',
packages=['eclipsegen'],
install_requires=dependencies,
test_suite='nose.collector',
tests_require=['nose>=1.3.7'] + dependencies,
include_package_data=True,
zip_safe=False,
cmdclass={
'install': PostInstallCommand,
'develop': PostDevelopCommand
}
)
|
b635eddbe3ad344b02ecae47333a4ddf4b17cd18
|
bin/remotePush.py
|
bin/remotePush.py
|
import json,httplib
config_file = open('conf/net/ext_service/parse.json')
silent_push_msg = {
"where": {
"deviceType": "ios"
},
"data": {
# "alert": "The Mets scored! The game is now tied 1-1.",
"content-available": 1,
"sound": "",
}
}
parse_headers = {
"X-Parse-Application-Id": config_file["emission_id"],
"X-Parse-REST-API-Key": config_file["emission_key"],
"Content-Type": "application/json"
}
connection = httplib.HTTPSConnection('api.parse.com', 443)
connection.connect()
connection.request('POST', '/1/push', json.dumps(silent_push_msg), parse_headers)
result = json.loads(connection.getresponse().read())
print result
|
import json,httplib
config_data = json.load(open('conf/net/ext_service/parse.json'))
silent_push_msg = {
"where": {
"deviceType": "ios"
},
"data": {
# "alert": "The Mets scored! The game is now tied 1-1.",
"content-available": 1,
"sound": "",
}
}
parse_headers = {
"X-Parse-Application-Id": config_data["emission_id"],
"X-Parse-REST-API-Key": config_data["emission_key"],
"Content-Type": "application/json"
}
connection = httplib.HTTPSConnection('api.parse.com', 443)
connection.connect()
connection.request('POST', '/1/push', json.dumps(silent_push_msg), parse_headers)
result = json.loads(connection.getresponse().read())
print result
|
Fix minor issue in remote push
|
Fix minor issue in remote push
We need to open the file and then parse it as json
|
Python
|
bsd-3-clause
|
joshzarrabi/e-mission-server,sunil07t/e-mission-server,joshzarrabi/e-mission-server,yw374cornell/e-mission-server,e-mission/e-mission-server,joshzarrabi/e-mission-server,joshzarrabi/e-mission-server,shankari/e-mission-server,yw374cornell/e-mission-server,e-mission/e-mission-server,e-mission/e-mission-server,sunil07t/e-mission-server,sunil07t/e-mission-server,sunil07t/e-mission-server,yw374cornell/e-mission-server,shankari/e-mission-server,e-mission/e-mission-server,yw374cornell/e-mission-server,shankari/e-mission-server,shankari/e-mission-server
|
import json,httplib
config_file = open('conf/net/ext_service/parse.json')
silent_push_msg = {
"where": {
"deviceType": "ios"
},
"data": {
# "alert": "The Mets scored! The game is now tied 1-1.",
"content-available": 1,
"sound": "",
}
}
parse_headers = {
"X-Parse-Application-Id": config_file["emission_id"],
"X-Parse-REST-API-Key": config_file["emission_key"],
"Content-Type": "application/json"
}
connection = httplib.HTTPSConnection('api.parse.com', 443)
connection.connect()
connection.request('POST', '/1/push', json.dumps(silent_push_msg), parse_headers)
result = json.loads(connection.getresponse().read())
print result
Fix minor issue in remote push
We need to open the file and then parse it as json
|
import json,httplib
config_data = json.load(open('conf/net/ext_service/parse.json'))
silent_push_msg = {
"where": {
"deviceType": "ios"
},
"data": {
# "alert": "The Mets scored! The game is now tied 1-1.",
"content-available": 1,
"sound": "",
}
}
parse_headers = {
"X-Parse-Application-Id": config_data["emission_id"],
"X-Parse-REST-API-Key": config_data["emission_key"],
"Content-Type": "application/json"
}
connection = httplib.HTTPSConnection('api.parse.com', 443)
connection.connect()
connection.request('POST', '/1/push', json.dumps(silent_push_msg), parse_headers)
result = json.loads(connection.getresponse().read())
print result
|
<commit_before>import json,httplib
config_file = open('conf/net/ext_service/parse.json')
silent_push_msg = {
"where": {
"deviceType": "ios"
},
"data": {
# "alert": "The Mets scored! The game is now tied 1-1.",
"content-available": 1,
"sound": "",
}
}
parse_headers = {
"X-Parse-Application-Id": config_file["emission_id"],
"X-Parse-REST-API-Key": config_file["emission_key"],
"Content-Type": "application/json"
}
connection = httplib.HTTPSConnection('api.parse.com', 443)
connection.connect()
connection.request('POST', '/1/push', json.dumps(silent_push_msg), parse_headers)
result = json.loads(connection.getresponse().read())
print result
<commit_msg>Fix minor issue in remote push
We need to open the file and then parse it as json<commit_after>
|
import json,httplib
config_data = json.load(open('conf/net/ext_service/parse.json'))
silent_push_msg = {
"where": {
"deviceType": "ios"
},
"data": {
# "alert": "The Mets scored! The game is now tied 1-1.",
"content-available": 1,
"sound": "",
}
}
parse_headers = {
"X-Parse-Application-Id": config_data["emission_id"],
"X-Parse-REST-API-Key": config_data["emission_key"],
"Content-Type": "application/json"
}
connection = httplib.HTTPSConnection('api.parse.com', 443)
connection.connect()
connection.request('POST', '/1/push', json.dumps(silent_push_msg), parse_headers)
result = json.loads(connection.getresponse().read())
print result
|
import json,httplib
config_file = open('conf/net/ext_service/parse.json')
silent_push_msg = {
"where": {
"deviceType": "ios"
},
"data": {
# "alert": "The Mets scored! The game is now tied 1-1.",
"content-available": 1,
"sound": "",
}
}
parse_headers = {
"X-Parse-Application-Id": config_file["emission_id"],
"X-Parse-REST-API-Key": config_file["emission_key"],
"Content-Type": "application/json"
}
connection = httplib.HTTPSConnection('api.parse.com', 443)
connection.connect()
connection.request('POST', '/1/push', json.dumps(silent_push_msg), parse_headers)
result = json.loads(connection.getresponse().read())
print result
Fix minor issue in remote push
We need to open the file and then parse it as jsonimport json,httplib
config_data = json.load(open('conf/net/ext_service/parse.json'))
silent_push_msg = {
"where": {
"deviceType": "ios"
},
"data": {
# "alert": "The Mets scored! The game is now tied 1-1.",
"content-available": 1,
"sound": "",
}
}
parse_headers = {
"X-Parse-Application-Id": config_data["emission_id"],
"X-Parse-REST-API-Key": config_data["emission_key"],
"Content-Type": "application/json"
}
connection = httplib.HTTPSConnection('api.parse.com', 443)
connection.connect()
connection.request('POST', '/1/push', json.dumps(silent_push_msg), parse_headers)
result = json.loads(connection.getresponse().read())
print result
|
<commit_before>import json,httplib
config_file = open('conf/net/ext_service/parse.json')
silent_push_msg = {
"where": {
"deviceType": "ios"
},
"data": {
# "alert": "The Mets scored! The game is now tied 1-1.",
"content-available": 1,
"sound": "",
}
}
parse_headers = {
"X-Parse-Application-Id": config_file["emission_id"],
"X-Parse-REST-API-Key": config_file["emission_key"],
"Content-Type": "application/json"
}
connection = httplib.HTTPSConnection('api.parse.com', 443)
connection.connect()
connection.request('POST', '/1/push', json.dumps(silent_push_msg), parse_headers)
result = json.loads(connection.getresponse().read())
print result
<commit_msg>Fix minor issue in remote push
We need to open the file and then parse it as json<commit_after>import json,httplib
config_data = json.load(open('conf/net/ext_service/parse.json'))
silent_push_msg = {
"where": {
"deviceType": "ios"
},
"data": {
# "alert": "The Mets scored! The game is now tied 1-1.",
"content-available": 1,
"sound": "",
}
}
parse_headers = {
"X-Parse-Application-Id": config_data["emission_id"],
"X-Parse-REST-API-Key": config_data["emission_key"],
"Content-Type": "application/json"
}
connection = httplib.HTTPSConnection('api.parse.com', 443)
connection.connect()
connection.request('POST', '/1/push', json.dumps(silent_push_msg), parse_headers)
result = json.loads(connection.getresponse().read())
print result
|
6b667b62ad1987c2a312a918df77c0ebb77af298
|
setup.py
|
setup.py
|
#!/usr/bin/env python
try:
from setuptools import setup, find_packages
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
tests_require = [
'django',
'django-celery',
'south',
'django-haystack',
]
setup(
name='django-sentry',
version='1.6.6.1',
author='David Cramer',
author_email='dcramer@gmail.com',
url='http://github.com/dcramer/django-sentry',
description = 'Exception Logging to a Database in Django',
packages=find_packages(exclude="example_project"),
zip_safe=False,
install_requires=[
'django-paging>=0.2.2',
'django-indexer==0.2.1',
'uuid',
],
dependency_links=[
'https://github.com/disqus/django-haystack/tarball/master#egg=django-haystack',
],
tests_require=tests_require,
extras_require={'test': tests_require},
test_suite='sentry.runtests.runtests',
include_package_data=True,
classifiers=[
'Framework :: Django',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'Operating System :: OS Independent',
'Topic :: Software Development'
],
)
|
#!/usr/bin/env python
try:
from setuptools import setup, find_packages
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
tests_require = [
'django',
'django-celery',
'south',
'django-haystack',
'whoosh',
]
setup(
name='django-sentry',
version='1.6.6.1',
author='David Cramer',
author_email='dcramer@gmail.com',
url='http://github.com/dcramer/django-sentry',
description = 'Exception Logging to a Database in Django',
packages=find_packages(exclude="example_project"),
zip_safe=False,
install_requires=[
'django-paging>=0.2.2',
'django-indexer==0.2.1',
'uuid',
],
dependency_links=[
'https://github.com/disqus/django-haystack/tarball/master#egg=django-haystack',
],
tests_require=tests_require,
extras_require={'test': tests_require},
test_suite='sentry.runtests.runtests',
include_package_data=True,
classifiers=[
'Framework :: Django',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'Operating System :: OS Independent',
'Topic :: Software Development'
],
)
|
Add whoosh as test dependancy
|
Add whoosh as test dependancy
|
Python
|
bsd-3-clause
|
beniwohli/apm-agent-python,songyi199111/sentry,looker/sentry,jbarbuto/raven-python,jmp0xf/raven-python,arthurlogilab/raven-python,mvaled/sentry,looker/sentry,someonehan/raven-python,collective/mr.poe,felixbuenemann/sentry,Goldmund-Wyldebeast-Wunderliebe/raven-python,pauloschilling/sentry,1tush/sentry,nikolas/raven-python,WoLpH/django-sentry,dbravender/raven-python,NickPresta/sentry,beniwohli/apm-agent-python,jmp0xf/raven-python,wujuguang/sentry,gencer/sentry,ronaldevers/raven-python,beni55/sentry,tbarbugli/sentry_fork,jean/sentry,ifduyue/sentry,gencer/sentry,ngonzalvez/sentry,jmagnusson/raven-python,Goldmund-Wyldebeast-Wunderliebe/raven-python,johansteffner/raven-python,BayanGroup/sentry,kevinlondon/sentry,akalipetis/raven-python,felixbuenemann/sentry,wong2/sentry,ewdurbin/sentry,lepture/raven-python,SilentCircle/sentry,inspirehep/raven-python,getsentry/raven-python,primepix/django-sentry,icereval/raven-python,lepture/raven-python,Kryz/sentry,jbarbuto/raven-python,jokey2k/sentry,imankulov/sentry,looker/sentry,tarkatronic/opbeat_python,mvaled/sentry,smarkets/raven-python,BayanGroup/sentry,JTCunning/sentry,Goldmund-Wyldebeast-Wunderliebe/raven-python,mitsuhiko/raven,jmagnusson/raven-python,daikeren/opbeat_python,akheron/raven-python,ngonzalvez/sentry,songyi199111/sentry,rdio/sentry,1tush/sentry,inspirehep/raven-python,BuildingLink/sentry,inspirehep/raven-python,vperron/sentry,rdio/sentry,Photonomie/raven-python,JTCunning/sentry,BuildingLink/sentry,chayapan/django-sentry,kevinlondon/sentry,alex/raven,boneyao/sentry,NickPresta/sentry,akalipetis/raven-python,fuziontech/sentry,ifduyue/sentry,songyi199111/sentry,Kronuz/django-sentry,rdio/sentry,zenefits/sentry,SilentCircle/sentry,felixbuenemann/sentry,Kronuz/django-sentry,fotinakis/sentry,danriti/raven-python,jean/sentry,dirtycoder/opbeat_python,Photonomie/raven-python,jokey2k/sentry,kevinastone/sentry,ewdurbin/raven-python,wong2/sentry,argonemyth/sentry,mvaled/sentry,percipient/raven-python,fotinakis/sentry,wong2/sentry,nicholasserra/sentry,zenefits/sentry,1tush/sentry,beni55/sentry,primepix/django-sentry,beniwohli/apm-agent-python,Goldmund-Wyldebeast-Wunderliebe/raven-python,jbarbuto/raven-python,fotinakis/sentry,beniwohli/apm-agent-python,daevaorn/sentry,jmagnusson/raven-python,JamesMura/sentry,Kronuz/django-sentry,recht/raven-python,getsentry/raven-python,nicholasserra/sentry,tbarbugli/sentry_fork,pauloschilling/sentry,tarkatronic/opbeat_python,TedaLIEz/sentry,alex/sentry,gg7/sentry,arthurlogilab/raven-python,openlabs/raven,dcramer/sentry-old,gg7/sentry,patrys/opbeat_python,drcapulet/sentry,tarkatronic/opbeat_python,akalipetis/raven-python,icereval/raven-python,recht/raven-python,kevinlondon/sentry,beni55/sentry,alex/sentry,ticosax/opbeat_python,rdio/sentry,llonchj/sentry,alex/sentry,chayapan/django-sentry,chayapan/django-sentry,fotinakis/sentry,patrys/opbeat_python,ronaldevers/raven-python,BuildingLink/sentry,argonemyth/sentry,Natim/sentry,looker/sentry,hzy/raven-python,zenefits/sentry,hongliang5623/sentry,patrys/opbeat_python,ewdurbin/sentry,johansteffner/raven-python,looker/sentry,smarkets/raven-python,kevinastone/sentry,llonchj/sentry,mvaled/sentry,nikolas/raven-python,mvaled/sentry,camilonova/sentry,mitsuhiko/sentry,jean/sentry,tbarbugli/sentry_fork,imankulov/sentry,percipient/raven-python,jokey2k/sentry,SilentCircle/sentry,alexm92/sentry,jmp0xf/raven-python,TedaLIEz/sentry,Natim/sentry,daevaorn/sentry,dirtycoder/opbeat_python,ronaldevers/raven-python,ngonzalvez/sentry,SilentCircle/sentry,smarkets/raven-python,ticosax/opbeat_python,WoLpH/django-sentry,drcapulet/sentry,akheron/raven-python,ifduyue/sentry,hongliang5623/sentry,jbarbuto/raven-python,danriti/raven-python,jean/sentry,gencer/sentry,camilonova/sentry,BayanGroup/sentry,daikeren/opbeat_python,Natim/sentry,JamesMura/sentry,lepture/raven-python,gencer/sentry,korealerts1/sentry,zenefits/sentry,NickPresta/sentry,Kryz/sentry,beeftornado/sentry,mitsuhiko/sentry,JamesMura/sentry,TedaLIEz/sentry,NickPresta/sentry,primepix/django-sentry,gg7/sentry,daikeren/opbeat_python,daevaorn/sentry,dbravender/raven-python,JackDanger/sentry,getsentry/raven-python,mvaled/sentry,jean/sentry,ewdurbin/raven-python,nikolas/raven-python,danriti/raven-python,alexm92/sentry,JackDanger/sentry,fuziontech/sentry,arthurlogilab/raven-python,icereval/raven-python,inspirehep/raven-python,hzy/raven-python,smarkets/raven-python,ticosax/opbeat_python,dirtycoder/opbeat_python,daevaorn/sentry,recht/raven-python,vperron/sentry,johansteffner/raven-python,alexm92/sentry,someonehan/raven-python,JackDanger/sentry,JamesMura/sentry,camilonova/sentry,llonchj/sentry,boneyao/sentry,someonehan/raven-python,lopter/raven-python-old,BuildingLink/sentry,ifduyue/sentry,Kryz/sentry,hongliang5623/sentry,ewdurbin/raven-python,fuziontech/sentry,arthurlogilab/raven-python,beeftornado/sentry,patrys/opbeat_python,dcramer/sentry-old,argonemyth/sentry,vperron/sentry,WoLpH/django-sentry,drcapulet/sentry,icereval/raven-python,BuildingLink/sentry,zenefits/sentry,percipient/raven-python,mitsuhiko/raven,Photonomie/raven-python,korealerts1/sentry,pauloschilling/sentry,wujuguang/sentry,nicholasserra/sentry,beeftornado/sentry,hzy/raven-python,imankulov/sentry,dcramer/sentry-old,JamesMura/sentry,korealerts1/sentry,wujuguang/sentry,boneyao/sentry,nikolas/raven-python,dbravender/raven-python,gencer/sentry,kevinastone/sentry,ewdurbin/sentry,JTCunning/sentry,akheron/raven-python,ifduyue/sentry
|
#!/usr/bin/env python
try:
from setuptools import setup, find_packages
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
tests_require = [
'django',
'django-celery',
'south',
'django-haystack',
]
setup(
name='django-sentry',
version='1.6.6.1',
author='David Cramer',
author_email='dcramer@gmail.com',
url='http://github.com/dcramer/django-sentry',
description = 'Exception Logging to a Database in Django',
packages=find_packages(exclude="example_project"),
zip_safe=False,
install_requires=[
'django-paging>=0.2.2',
'django-indexer==0.2.1',
'uuid',
],
dependency_links=[
'https://github.com/disqus/django-haystack/tarball/master#egg=django-haystack',
],
tests_require=tests_require,
extras_require={'test': tests_require},
test_suite='sentry.runtests.runtests',
include_package_data=True,
classifiers=[
'Framework :: Django',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'Operating System :: OS Independent',
'Topic :: Software Development'
],
)
Add whoosh as test dependancy
|
#!/usr/bin/env python
try:
from setuptools import setup, find_packages
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
tests_require = [
'django',
'django-celery',
'south',
'django-haystack',
'whoosh',
]
setup(
name='django-sentry',
version='1.6.6.1',
author='David Cramer',
author_email='dcramer@gmail.com',
url='http://github.com/dcramer/django-sentry',
description = 'Exception Logging to a Database in Django',
packages=find_packages(exclude="example_project"),
zip_safe=False,
install_requires=[
'django-paging>=0.2.2',
'django-indexer==0.2.1',
'uuid',
],
dependency_links=[
'https://github.com/disqus/django-haystack/tarball/master#egg=django-haystack',
],
tests_require=tests_require,
extras_require={'test': tests_require},
test_suite='sentry.runtests.runtests',
include_package_data=True,
classifiers=[
'Framework :: Django',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'Operating System :: OS Independent',
'Topic :: Software Development'
],
)
|
<commit_before>#!/usr/bin/env python
try:
from setuptools import setup, find_packages
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
tests_require = [
'django',
'django-celery',
'south',
'django-haystack',
]
setup(
name='django-sentry',
version='1.6.6.1',
author='David Cramer',
author_email='dcramer@gmail.com',
url='http://github.com/dcramer/django-sentry',
description = 'Exception Logging to a Database in Django',
packages=find_packages(exclude="example_project"),
zip_safe=False,
install_requires=[
'django-paging>=0.2.2',
'django-indexer==0.2.1',
'uuid',
],
dependency_links=[
'https://github.com/disqus/django-haystack/tarball/master#egg=django-haystack',
],
tests_require=tests_require,
extras_require={'test': tests_require},
test_suite='sentry.runtests.runtests',
include_package_data=True,
classifiers=[
'Framework :: Django',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'Operating System :: OS Independent',
'Topic :: Software Development'
],
)
<commit_msg>Add whoosh as test dependancy<commit_after>
|
#!/usr/bin/env python
try:
from setuptools import setup, find_packages
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
tests_require = [
'django',
'django-celery',
'south',
'django-haystack',
'whoosh',
]
setup(
name='django-sentry',
version='1.6.6.1',
author='David Cramer',
author_email='dcramer@gmail.com',
url='http://github.com/dcramer/django-sentry',
description = 'Exception Logging to a Database in Django',
packages=find_packages(exclude="example_project"),
zip_safe=False,
install_requires=[
'django-paging>=0.2.2',
'django-indexer==0.2.1',
'uuid',
],
dependency_links=[
'https://github.com/disqus/django-haystack/tarball/master#egg=django-haystack',
],
tests_require=tests_require,
extras_require={'test': tests_require},
test_suite='sentry.runtests.runtests',
include_package_data=True,
classifiers=[
'Framework :: Django',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'Operating System :: OS Independent',
'Topic :: Software Development'
],
)
|
#!/usr/bin/env python
try:
from setuptools import setup, find_packages
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
tests_require = [
'django',
'django-celery',
'south',
'django-haystack',
]
setup(
name='django-sentry',
version='1.6.6.1',
author='David Cramer',
author_email='dcramer@gmail.com',
url='http://github.com/dcramer/django-sentry',
description = 'Exception Logging to a Database in Django',
packages=find_packages(exclude="example_project"),
zip_safe=False,
install_requires=[
'django-paging>=0.2.2',
'django-indexer==0.2.1',
'uuid',
],
dependency_links=[
'https://github.com/disqus/django-haystack/tarball/master#egg=django-haystack',
],
tests_require=tests_require,
extras_require={'test': tests_require},
test_suite='sentry.runtests.runtests',
include_package_data=True,
classifiers=[
'Framework :: Django',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'Operating System :: OS Independent',
'Topic :: Software Development'
],
)
Add whoosh as test dependancy#!/usr/bin/env python
try:
from setuptools import setup, find_packages
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
tests_require = [
'django',
'django-celery',
'south',
'django-haystack',
'whoosh',
]
setup(
name='django-sentry',
version='1.6.6.1',
author='David Cramer',
author_email='dcramer@gmail.com',
url='http://github.com/dcramer/django-sentry',
description = 'Exception Logging to a Database in Django',
packages=find_packages(exclude="example_project"),
zip_safe=False,
install_requires=[
'django-paging>=0.2.2',
'django-indexer==0.2.1',
'uuid',
],
dependency_links=[
'https://github.com/disqus/django-haystack/tarball/master#egg=django-haystack',
],
tests_require=tests_require,
extras_require={'test': tests_require},
test_suite='sentry.runtests.runtests',
include_package_data=True,
classifiers=[
'Framework :: Django',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'Operating System :: OS Independent',
'Topic :: Software Development'
],
)
|
<commit_before>#!/usr/bin/env python
try:
from setuptools import setup, find_packages
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
tests_require = [
'django',
'django-celery',
'south',
'django-haystack',
]
setup(
name='django-sentry',
version='1.6.6.1',
author='David Cramer',
author_email='dcramer@gmail.com',
url='http://github.com/dcramer/django-sentry',
description = 'Exception Logging to a Database in Django',
packages=find_packages(exclude="example_project"),
zip_safe=False,
install_requires=[
'django-paging>=0.2.2',
'django-indexer==0.2.1',
'uuid',
],
dependency_links=[
'https://github.com/disqus/django-haystack/tarball/master#egg=django-haystack',
],
tests_require=tests_require,
extras_require={'test': tests_require},
test_suite='sentry.runtests.runtests',
include_package_data=True,
classifiers=[
'Framework :: Django',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'Operating System :: OS Independent',
'Topic :: Software Development'
],
)
<commit_msg>Add whoosh as test dependancy<commit_after>#!/usr/bin/env python
try:
from setuptools import setup, find_packages
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
tests_require = [
'django',
'django-celery',
'south',
'django-haystack',
'whoosh',
]
setup(
name='django-sentry',
version='1.6.6.1',
author='David Cramer',
author_email='dcramer@gmail.com',
url='http://github.com/dcramer/django-sentry',
description = 'Exception Logging to a Database in Django',
packages=find_packages(exclude="example_project"),
zip_safe=False,
install_requires=[
'django-paging>=0.2.2',
'django-indexer==0.2.1',
'uuid',
],
dependency_links=[
'https://github.com/disqus/django-haystack/tarball/master#egg=django-haystack',
],
tests_require=tests_require,
extras_require={'test': tests_require},
test_suite='sentry.runtests.runtests',
include_package_data=True,
classifiers=[
'Framework :: Django',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'Operating System :: OS Independent',
'Topic :: Software Development'
],
)
|
3315ce5ce730f0607c16864e12b6bbb7b2a1c69e
|
setup.py
|
setup.py
|
from distutils.core import setup
import sslserver
setup(name="django-sslserver",
version=sslserver.__version__,
author="Ted Dziuba",
author_email="tjdziuba@gmail.com",
description="An SSL-enabled development server for Django",
url="https://github.com/teddziuba/django-sslserver",
packages=["sslserver",
"sslserver.management",
"sslserver.management.commands"],
package_dir={"sslserver": "sslserver"},
package_data={"sslserver": ["certs/development.crt",
"certs/development.key",
"certs/server.csr"]},
install_requires=["setuptools",
"Django >= 1.4"],
license="MIT"
)
|
from distutils.core import setup
import sslserver
setup(name="django-sslserver",
version=sslserver.__version__,
author="Ted Dziuba",
author_email="tjdziuba@gmail.com",
description="An SSL-enabled development server for Django",
url="https://github.com/teddziuba/django-sslserver",
packages=["sslserver",
"sslserver.management",
"sslserver.management.commands"],
package_dir={"sslserver": "sslserver"},
package_data={"sslserver": ["certs/development.crt",
"certs/development.key",
"certs/server.csr"]},
install_requires=["setuptools",
"Django >= 1.8"],
license="MIT"
)
|
Fix Django dependency: update Django version from 1.4 to 1.8
|
Fix Django dependency: update Django version from 1.4 to 1.8
|
Python
|
mit
|
teddziuba/django-sslserver
|
from distutils.core import setup
import sslserver
setup(name="django-sslserver",
version=sslserver.__version__,
author="Ted Dziuba",
author_email="tjdziuba@gmail.com",
description="An SSL-enabled development server for Django",
url="https://github.com/teddziuba/django-sslserver",
packages=["sslserver",
"sslserver.management",
"sslserver.management.commands"],
package_dir={"sslserver": "sslserver"},
package_data={"sslserver": ["certs/development.crt",
"certs/development.key",
"certs/server.csr"]},
install_requires=["setuptools",
"Django >= 1.4"],
license="MIT"
)
Fix Django dependency: update Django version from 1.4 to 1.8
|
from distutils.core import setup
import sslserver
setup(name="django-sslserver",
version=sslserver.__version__,
author="Ted Dziuba",
author_email="tjdziuba@gmail.com",
description="An SSL-enabled development server for Django",
url="https://github.com/teddziuba/django-sslserver",
packages=["sslserver",
"sslserver.management",
"sslserver.management.commands"],
package_dir={"sslserver": "sslserver"},
package_data={"sslserver": ["certs/development.crt",
"certs/development.key",
"certs/server.csr"]},
install_requires=["setuptools",
"Django >= 1.8"],
license="MIT"
)
|
<commit_before>from distutils.core import setup
import sslserver
setup(name="django-sslserver",
version=sslserver.__version__,
author="Ted Dziuba",
author_email="tjdziuba@gmail.com",
description="An SSL-enabled development server for Django",
url="https://github.com/teddziuba/django-sslserver",
packages=["sslserver",
"sslserver.management",
"sslserver.management.commands"],
package_dir={"sslserver": "sslserver"},
package_data={"sslserver": ["certs/development.crt",
"certs/development.key",
"certs/server.csr"]},
install_requires=["setuptools",
"Django >= 1.4"],
license="MIT"
)
<commit_msg>Fix Django dependency: update Django version from 1.4 to 1.8<commit_after>
|
from distutils.core import setup
import sslserver
setup(name="django-sslserver",
version=sslserver.__version__,
author="Ted Dziuba",
author_email="tjdziuba@gmail.com",
description="An SSL-enabled development server for Django",
url="https://github.com/teddziuba/django-sslserver",
packages=["sslserver",
"sslserver.management",
"sslserver.management.commands"],
package_dir={"sslserver": "sslserver"},
package_data={"sslserver": ["certs/development.crt",
"certs/development.key",
"certs/server.csr"]},
install_requires=["setuptools",
"Django >= 1.8"],
license="MIT"
)
|
from distutils.core import setup
import sslserver
setup(name="django-sslserver",
version=sslserver.__version__,
author="Ted Dziuba",
author_email="tjdziuba@gmail.com",
description="An SSL-enabled development server for Django",
url="https://github.com/teddziuba/django-sslserver",
packages=["sslserver",
"sslserver.management",
"sslserver.management.commands"],
package_dir={"sslserver": "sslserver"},
package_data={"sslserver": ["certs/development.crt",
"certs/development.key",
"certs/server.csr"]},
install_requires=["setuptools",
"Django >= 1.4"],
license="MIT"
)
Fix Django dependency: update Django version from 1.4 to 1.8from distutils.core import setup
import sslserver
setup(name="django-sslserver",
version=sslserver.__version__,
author="Ted Dziuba",
author_email="tjdziuba@gmail.com",
description="An SSL-enabled development server for Django",
url="https://github.com/teddziuba/django-sslserver",
packages=["sslserver",
"sslserver.management",
"sslserver.management.commands"],
package_dir={"sslserver": "sslserver"},
package_data={"sslserver": ["certs/development.crt",
"certs/development.key",
"certs/server.csr"]},
install_requires=["setuptools",
"Django >= 1.8"],
license="MIT"
)
|
<commit_before>from distutils.core import setup
import sslserver
setup(name="django-sslserver",
version=sslserver.__version__,
author="Ted Dziuba",
author_email="tjdziuba@gmail.com",
description="An SSL-enabled development server for Django",
url="https://github.com/teddziuba/django-sslserver",
packages=["sslserver",
"sslserver.management",
"sslserver.management.commands"],
package_dir={"sslserver": "sslserver"},
package_data={"sslserver": ["certs/development.crt",
"certs/development.key",
"certs/server.csr"]},
install_requires=["setuptools",
"Django >= 1.4"],
license="MIT"
)
<commit_msg>Fix Django dependency: update Django version from 1.4 to 1.8<commit_after>from distutils.core import setup
import sslserver
setup(name="django-sslserver",
version=sslserver.__version__,
author="Ted Dziuba",
author_email="tjdziuba@gmail.com",
description="An SSL-enabled development server for Django",
url="https://github.com/teddziuba/django-sslserver",
packages=["sslserver",
"sslserver.management",
"sslserver.management.commands"],
package_dir={"sslserver": "sslserver"},
package_data={"sslserver": ["certs/development.crt",
"certs/development.key",
"certs/server.csr"]},
install_requires=["setuptools",
"Django >= 1.8"],
license="MIT"
)
|
f75d3c71bbcebbfa574d83ff336f55d36dce4d48
|
setup.py
|
setup.py
|
from distutils.core import setup
files = ["*.css"]
setup(
name="junit2html",
version="023",
description="Generate HTML reports from Junit results",
author="Ian Norton",
author_email="inorton@gmail.com",
url="https://gitlab.com/inorton/junit2html",
packages=["junit2htmlreport"],
package_data={"junit2htmlreport": files},
scripts=["junit2html"],
platforms=["any"],
license="License :: OSI Approved :: MIT License",
long_description="Genearate a single file HTML report from a Junit XML file"
)
|
from distutils.core import setup
files = ["*.css"]
setup(
name="junit2html",
version="023",
description="Generate HTML reports from Junit results",
author="Ian Norton",
author_email="inorton@gmail.com",
url="https://gitlab.com/inorton/junit2html",
packages=["junit2htmlreport"],
package_data={"junit2htmlreport": files},
entry_points={'console_scripts': ['junit2html=junit2htmlreport.runner:start']},
platforms=["any"],
license="License :: OSI Approved :: MIT License",
long_description="Genearate a single file HTML report from a Junit XML file"
)
|
Use entry_point instead of script for Windows (from sirhcel on github)
|
Use entry_point instead of script for Windows
(from sirhcel on github)
|
Python
|
mit
|
inorton/junit2html
|
from distutils.core import setup
files = ["*.css"]
setup(
name="junit2html",
version="023",
description="Generate HTML reports from Junit results",
author="Ian Norton",
author_email="inorton@gmail.com",
url="https://gitlab.com/inorton/junit2html",
packages=["junit2htmlreport"],
package_data={"junit2htmlreport": files},
scripts=["junit2html"],
platforms=["any"],
license="License :: OSI Approved :: MIT License",
long_description="Genearate a single file HTML report from a Junit XML file"
)
Use entry_point instead of script for Windows
(from sirhcel on github)
|
from distutils.core import setup
files = ["*.css"]
setup(
name="junit2html",
version="023",
description="Generate HTML reports from Junit results",
author="Ian Norton",
author_email="inorton@gmail.com",
url="https://gitlab.com/inorton/junit2html",
packages=["junit2htmlreport"],
package_data={"junit2htmlreport": files},
entry_points={'console_scripts': ['junit2html=junit2htmlreport.runner:start']},
platforms=["any"],
license="License :: OSI Approved :: MIT License",
long_description="Genearate a single file HTML report from a Junit XML file"
)
|
<commit_before>from distutils.core import setup
files = ["*.css"]
setup(
name="junit2html",
version="023",
description="Generate HTML reports from Junit results",
author="Ian Norton",
author_email="inorton@gmail.com",
url="https://gitlab.com/inorton/junit2html",
packages=["junit2htmlreport"],
package_data={"junit2htmlreport": files},
scripts=["junit2html"],
platforms=["any"],
license="License :: OSI Approved :: MIT License",
long_description="Genearate a single file HTML report from a Junit XML file"
)
<commit_msg>Use entry_point instead of script for Windows
(from sirhcel on github)<commit_after>
|
from distutils.core import setup
files = ["*.css"]
setup(
name="junit2html",
version="023",
description="Generate HTML reports from Junit results",
author="Ian Norton",
author_email="inorton@gmail.com",
url="https://gitlab.com/inorton/junit2html",
packages=["junit2htmlreport"],
package_data={"junit2htmlreport": files},
entry_points={'console_scripts': ['junit2html=junit2htmlreport.runner:start']},
platforms=["any"],
license="License :: OSI Approved :: MIT License",
long_description="Genearate a single file HTML report from a Junit XML file"
)
|
from distutils.core import setup
files = ["*.css"]
setup(
name="junit2html",
version="023",
description="Generate HTML reports from Junit results",
author="Ian Norton",
author_email="inorton@gmail.com",
url="https://gitlab.com/inorton/junit2html",
packages=["junit2htmlreport"],
package_data={"junit2htmlreport": files},
scripts=["junit2html"],
platforms=["any"],
license="License :: OSI Approved :: MIT License",
long_description="Genearate a single file HTML report from a Junit XML file"
)
Use entry_point instead of script for Windows
(from sirhcel on github)from distutils.core import setup
files = ["*.css"]
setup(
name="junit2html",
version="023",
description="Generate HTML reports from Junit results",
author="Ian Norton",
author_email="inorton@gmail.com",
url="https://gitlab.com/inorton/junit2html",
packages=["junit2htmlreport"],
package_data={"junit2htmlreport": files},
entry_points={'console_scripts': ['junit2html=junit2htmlreport.runner:start']},
platforms=["any"],
license="License :: OSI Approved :: MIT License",
long_description="Genearate a single file HTML report from a Junit XML file"
)
|
<commit_before>from distutils.core import setup
files = ["*.css"]
setup(
name="junit2html",
version="023",
description="Generate HTML reports from Junit results",
author="Ian Norton",
author_email="inorton@gmail.com",
url="https://gitlab.com/inorton/junit2html",
packages=["junit2htmlreport"],
package_data={"junit2htmlreport": files},
scripts=["junit2html"],
platforms=["any"],
license="License :: OSI Approved :: MIT License",
long_description="Genearate a single file HTML report from a Junit XML file"
)
<commit_msg>Use entry_point instead of script for Windows
(from sirhcel on github)<commit_after>from distutils.core import setup
files = ["*.css"]
setup(
name="junit2html",
version="023",
description="Generate HTML reports from Junit results",
author="Ian Norton",
author_email="inorton@gmail.com",
url="https://gitlab.com/inorton/junit2html",
packages=["junit2htmlreport"],
package_data={"junit2htmlreport": files},
entry_points={'console_scripts': ['junit2html=junit2htmlreport.runner:start']},
platforms=["any"],
license="License :: OSI Approved :: MIT License",
long_description="Genearate a single file HTML report from a Junit XML file"
)
|
8bb278bdba0d6325d3c9b7fbc26807e36fa90cdd
|
setup.py
|
setup.py
|
from setuptools import setup
setup(
name='guzzle_sphinx_theme',
version='0.7.11',
description='Sphinx theme used by Guzzle.',
long_description=open('README.rst').read(),
author='Michael Dowling',
author_email='mtdowling@gmail.com',
url='https://github.com/guzzle/guzzle_sphinx_theme',
packages=['guzzle_sphinx_theme'],
include_package_data=True,
install_requires=['Sphinx>1.3'],
classifiers=(
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Natural Language :: English',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
),
)
|
from setuptools import setup
setup(
name='guzzle_sphinx_theme',
version='0.7.11',
description='Sphinx theme used by Guzzle.',
long_description=open('README.rst').read(),
author='Michael Dowling',
author_email='mtdowling@gmail.com',
url='https://github.com/guzzle/guzzle_sphinx_theme',
packages=['guzzle_sphinx_theme'],
include_package_data=True,
install_requires=['Sphinx>1.3'],
license="MIT",
classifiers=(
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Natural Language :: English',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
),
)
|
Add license meta for pypi
|
Add license meta for pypi
Add license meta for pypi.
|
Python
|
mit
|
guzzle/guzzle_sphinx_theme,guzzle/guzzle_sphinx_theme
|
from setuptools import setup
setup(
name='guzzle_sphinx_theme',
version='0.7.11',
description='Sphinx theme used by Guzzle.',
long_description=open('README.rst').read(),
author='Michael Dowling',
author_email='mtdowling@gmail.com',
url='https://github.com/guzzle/guzzle_sphinx_theme',
packages=['guzzle_sphinx_theme'],
include_package_data=True,
install_requires=['Sphinx>1.3'],
classifiers=(
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Natural Language :: English',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
),
)
Add license meta for pypi
Add license meta for pypi.
|
from setuptools import setup
setup(
name='guzzle_sphinx_theme',
version='0.7.11',
description='Sphinx theme used by Guzzle.',
long_description=open('README.rst').read(),
author='Michael Dowling',
author_email='mtdowling@gmail.com',
url='https://github.com/guzzle/guzzle_sphinx_theme',
packages=['guzzle_sphinx_theme'],
include_package_data=True,
install_requires=['Sphinx>1.3'],
license="MIT",
classifiers=(
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Natural Language :: English',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
),
)
|
<commit_before>from setuptools import setup
setup(
name='guzzle_sphinx_theme',
version='0.7.11',
description='Sphinx theme used by Guzzle.',
long_description=open('README.rst').read(),
author='Michael Dowling',
author_email='mtdowling@gmail.com',
url='https://github.com/guzzle/guzzle_sphinx_theme',
packages=['guzzle_sphinx_theme'],
include_package_data=True,
install_requires=['Sphinx>1.3'],
classifiers=(
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Natural Language :: English',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
),
)
<commit_msg>Add license meta for pypi
Add license meta for pypi.<commit_after>
|
from setuptools import setup
setup(
name='guzzle_sphinx_theme',
version='0.7.11',
description='Sphinx theme used by Guzzle.',
long_description=open('README.rst').read(),
author='Michael Dowling',
author_email='mtdowling@gmail.com',
url='https://github.com/guzzle/guzzle_sphinx_theme',
packages=['guzzle_sphinx_theme'],
include_package_data=True,
install_requires=['Sphinx>1.3'],
license="MIT",
classifiers=(
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Natural Language :: English',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
),
)
|
from setuptools import setup
setup(
name='guzzle_sphinx_theme',
version='0.7.11',
description='Sphinx theme used by Guzzle.',
long_description=open('README.rst').read(),
author='Michael Dowling',
author_email='mtdowling@gmail.com',
url='https://github.com/guzzle/guzzle_sphinx_theme',
packages=['guzzle_sphinx_theme'],
include_package_data=True,
install_requires=['Sphinx>1.3'],
classifiers=(
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Natural Language :: English',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
),
)
Add license meta for pypi
Add license meta for pypi.from setuptools import setup
setup(
name='guzzle_sphinx_theme',
version='0.7.11',
description='Sphinx theme used by Guzzle.',
long_description=open('README.rst').read(),
author='Michael Dowling',
author_email='mtdowling@gmail.com',
url='https://github.com/guzzle/guzzle_sphinx_theme',
packages=['guzzle_sphinx_theme'],
include_package_data=True,
install_requires=['Sphinx>1.3'],
license="MIT",
classifiers=(
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Natural Language :: English',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
),
)
|
<commit_before>from setuptools import setup
setup(
name='guzzle_sphinx_theme',
version='0.7.11',
description='Sphinx theme used by Guzzle.',
long_description=open('README.rst').read(),
author='Michael Dowling',
author_email='mtdowling@gmail.com',
url='https://github.com/guzzle/guzzle_sphinx_theme',
packages=['guzzle_sphinx_theme'],
include_package_data=True,
install_requires=['Sphinx>1.3'],
classifiers=(
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Natural Language :: English',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
),
)
<commit_msg>Add license meta for pypi
Add license meta for pypi.<commit_after>from setuptools import setup
setup(
name='guzzle_sphinx_theme',
version='0.7.11',
description='Sphinx theme used by Guzzle.',
long_description=open('README.rst').read(),
author='Michael Dowling',
author_email='mtdowling@gmail.com',
url='https://github.com/guzzle/guzzle_sphinx_theme',
packages=['guzzle_sphinx_theme'],
include_package_data=True,
install_requires=['Sphinx>1.3'],
license="MIT",
classifiers=(
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Natural Language :: English',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
),
)
|
cdfd38a552f0f1bf0738e8c2d02f40c44db3fee3
|
setup.py
|
setup.py
|
### -*- coding: utf-8 -*-
###
### © 2012 Krux Digital, Inc.
### Author: Paul Lathrop <paul@krux.com>
###
from setuptools import setup, find_packages
setup(name='pysecurity-groups',
version="0.0.1",
description='Library for working with EC2 security groups in bulk.',
author='Paul Lathrop',
author_email='paul@krux.com',
url='https://github.com/krux/pysecurity-groups',
packages=find_packages(),
install_requires=['boto', 'argparse', 'IPy'],
entry_points={'console_scripts':
['security-groups = pysecurity_groups.cli:main'] },
)
|
### -*- coding: utf-8 -*-
###
### © 2012 Krux Digital, Inc.
### Author: Paul Lathrop <paul@krux.com>
###
from setuptools import setup, find_packages
setup(name='pysecurity-groups',
version="1.0.0",
description='Library for working with EC2 security groups in bulk.',
author='Paul Lathrop',
author_email='paul@krux.com',
url='https://github.com/krux/pysecurity-groups',
packages=find_packages(),
install_requires=['boto', 'argparse', 'IPy'],
entry_points={'console_scripts':
['security-groups = pysecurity_groups.cli:main'] },
)
|
Update release version to 1.0.0
|
Update release version to 1.0.0
|
Python
|
mit
|
krux/pysecurity-groups
|
### -*- coding: utf-8 -*-
###
### © 2012 Krux Digital, Inc.
### Author: Paul Lathrop <paul@krux.com>
###
from setuptools import setup, find_packages
setup(name='pysecurity-groups',
version="0.0.1",
description='Library for working with EC2 security groups in bulk.',
author='Paul Lathrop',
author_email='paul@krux.com',
url='https://github.com/krux/pysecurity-groups',
packages=find_packages(),
install_requires=['boto', 'argparse', 'IPy'],
entry_points={'console_scripts':
['security-groups = pysecurity_groups.cli:main'] },
)
Update release version to 1.0.0
|
### -*- coding: utf-8 -*-
###
### © 2012 Krux Digital, Inc.
### Author: Paul Lathrop <paul@krux.com>
###
from setuptools import setup, find_packages
setup(name='pysecurity-groups',
version="1.0.0",
description='Library for working with EC2 security groups in bulk.',
author='Paul Lathrop',
author_email='paul@krux.com',
url='https://github.com/krux/pysecurity-groups',
packages=find_packages(),
install_requires=['boto', 'argparse', 'IPy'],
entry_points={'console_scripts':
['security-groups = pysecurity_groups.cli:main'] },
)
|
<commit_before>### -*- coding: utf-8 -*-
###
### © 2012 Krux Digital, Inc.
### Author: Paul Lathrop <paul@krux.com>
###
from setuptools import setup, find_packages
setup(name='pysecurity-groups',
version="0.0.1",
description='Library for working with EC2 security groups in bulk.',
author='Paul Lathrop',
author_email='paul@krux.com',
url='https://github.com/krux/pysecurity-groups',
packages=find_packages(),
install_requires=['boto', 'argparse', 'IPy'],
entry_points={'console_scripts':
['security-groups = pysecurity_groups.cli:main'] },
)
<commit_msg>Update release version to 1.0.0<commit_after>
|
### -*- coding: utf-8 -*-
###
### © 2012 Krux Digital, Inc.
### Author: Paul Lathrop <paul@krux.com>
###
from setuptools import setup, find_packages
setup(name='pysecurity-groups',
version="1.0.0",
description='Library for working with EC2 security groups in bulk.',
author='Paul Lathrop',
author_email='paul@krux.com',
url='https://github.com/krux/pysecurity-groups',
packages=find_packages(),
install_requires=['boto', 'argparse', 'IPy'],
entry_points={'console_scripts':
['security-groups = pysecurity_groups.cli:main'] },
)
|
### -*- coding: utf-8 -*-
###
### © 2012 Krux Digital, Inc.
### Author: Paul Lathrop <paul@krux.com>
###
from setuptools import setup, find_packages
setup(name='pysecurity-groups',
version="0.0.1",
description='Library for working with EC2 security groups in bulk.',
author='Paul Lathrop',
author_email='paul@krux.com',
url='https://github.com/krux/pysecurity-groups',
packages=find_packages(),
install_requires=['boto', 'argparse', 'IPy'],
entry_points={'console_scripts':
['security-groups = pysecurity_groups.cli:main'] },
)
Update release version to 1.0.0### -*- coding: utf-8 -*-
###
### © 2012 Krux Digital, Inc.
### Author: Paul Lathrop <paul@krux.com>
###
from setuptools import setup, find_packages
setup(name='pysecurity-groups',
version="1.0.0",
description='Library for working with EC2 security groups in bulk.',
author='Paul Lathrop',
author_email='paul@krux.com',
url='https://github.com/krux/pysecurity-groups',
packages=find_packages(),
install_requires=['boto', 'argparse', 'IPy'],
entry_points={'console_scripts':
['security-groups = pysecurity_groups.cli:main'] },
)
|
<commit_before>### -*- coding: utf-8 -*-
###
### © 2012 Krux Digital, Inc.
### Author: Paul Lathrop <paul@krux.com>
###
from setuptools import setup, find_packages
setup(name='pysecurity-groups',
version="0.0.1",
description='Library for working with EC2 security groups in bulk.',
author='Paul Lathrop',
author_email='paul@krux.com',
url='https://github.com/krux/pysecurity-groups',
packages=find_packages(),
install_requires=['boto', 'argparse', 'IPy'],
entry_points={'console_scripts':
['security-groups = pysecurity_groups.cli:main'] },
)
<commit_msg>Update release version to 1.0.0<commit_after>### -*- coding: utf-8 -*-
###
### © 2012 Krux Digital, Inc.
### Author: Paul Lathrop <paul@krux.com>
###
from setuptools import setup, find_packages
setup(name='pysecurity-groups',
version="1.0.0",
description='Library for working with EC2 security groups in bulk.',
author='Paul Lathrop',
author_email='paul@krux.com',
url='https://github.com/krux/pysecurity-groups',
packages=find_packages(),
install_requires=['boto', 'argparse', 'IPy'],
entry_points={'console_scripts':
['security-groups = pysecurity_groups.cli:main'] },
)
|
c4ab1f10227fa98158127a390ab6b2a2b472a972
|
setup.py
|
setup.py
|
import codecs
from os.path import join, dirname
from setuptools import setup, find_packages
version = '1.0dev'
read = lambda *rnames: unicode(codecs.open(join(dirname(__file__), *rnames),
encoding='utf-8').read()).strip()
setup(
name='sourcebuilder',
version=version,
description='Generate (python) code using python',
long_description='\n\n'.join((read('README.rst'), read('CHANGES.rst'),)),
author='Jaap Roes',
author_email='jaap.roes@gmail.com',
url='',
packages=find_packages(),
license='MIT',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
],
tests_require=['unittest2==0.5.1'],
test_suite='unittest2.collector',
zip_safe=False,
)
|
import codecs
from os.path import join, dirname
from setuptools import setup, find_packages
version = '1.0dev'
read = lambda *rnames: unicode(codecs.open(join(dirname(__file__), *rnames),
encoding='utf-8').read()).strip()
setup(
name='sourcebuilder',
version=version,
description='Generate (python) code using python',
long_description='\n\n'.join((read('README.rst'), read('CHANGES.rst'),)),
author='Jaap Roes',
author_email='jaap.roes@gmail.com',
url='https://github.com/jaap3/sourcebuilder',
packages=find_packages(),
license='MIT',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
],
tests_require=['unittest2==0.5.1'],
test_suite='unittest2.collector',
zip_safe=False,
)
|
Use github repo as package url.
|
Use github repo as package url.
|
Python
|
mit
|
jaap3/sourcebuilder
|
import codecs
from os.path import join, dirname
from setuptools import setup, find_packages
version = '1.0dev'
read = lambda *rnames: unicode(codecs.open(join(dirname(__file__), *rnames),
encoding='utf-8').read()).strip()
setup(
name='sourcebuilder',
version=version,
description='Generate (python) code using python',
long_description='\n\n'.join((read('README.rst'), read('CHANGES.rst'),)),
author='Jaap Roes',
author_email='jaap.roes@gmail.com',
url='',
packages=find_packages(),
license='MIT',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
],
tests_require=['unittest2==0.5.1'],
test_suite='unittest2.collector',
zip_safe=False,
)
Use github repo as package url.
|
import codecs
from os.path import join, dirname
from setuptools import setup, find_packages
version = '1.0dev'
read = lambda *rnames: unicode(codecs.open(join(dirname(__file__), *rnames),
encoding='utf-8').read()).strip()
setup(
name='sourcebuilder',
version=version,
description='Generate (python) code using python',
long_description='\n\n'.join((read('README.rst'), read('CHANGES.rst'),)),
author='Jaap Roes',
author_email='jaap.roes@gmail.com',
url='https://github.com/jaap3/sourcebuilder',
packages=find_packages(),
license='MIT',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
],
tests_require=['unittest2==0.5.1'],
test_suite='unittest2.collector',
zip_safe=False,
)
|
<commit_before>import codecs
from os.path import join, dirname
from setuptools import setup, find_packages
version = '1.0dev'
read = lambda *rnames: unicode(codecs.open(join(dirname(__file__), *rnames),
encoding='utf-8').read()).strip()
setup(
name='sourcebuilder',
version=version,
description='Generate (python) code using python',
long_description='\n\n'.join((read('README.rst'), read('CHANGES.rst'),)),
author='Jaap Roes',
author_email='jaap.roes@gmail.com',
url='',
packages=find_packages(),
license='MIT',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
],
tests_require=['unittest2==0.5.1'],
test_suite='unittest2.collector',
zip_safe=False,
)
<commit_msg>Use github repo as package url.<commit_after>
|
import codecs
from os.path import join, dirname
from setuptools import setup, find_packages
version = '1.0dev'
read = lambda *rnames: unicode(codecs.open(join(dirname(__file__), *rnames),
encoding='utf-8').read()).strip()
setup(
name='sourcebuilder',
version=version,
description='Generate (python) code using python',
long_description='\n\n'.join((read('README.rst'), read('CHANGES.rst'),)),
author='Jaap Roes',
author_email='jaap.roes@gmail.com',
url='https://github.com/jaap3/sourcebuilder',
packages=find_packages(),
license='MIT',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
],
tests_require=['unittest2==0.5.1'],
test_suite='unittest2.collector',
zip_safe=False,
)
|
import codecs
from os.path import join, dirname
from setuptools import setup, find_packages
version = '1.0dev'
read = lambda *rnames: unicode(codecs.open(join(dirname(__file__), *rnames),
encoding='utf-8').read()).strip()
setup(
name='sourcebuilder',
version=version,
description='Generate (python) code using python',
long_description='\n\n'.join((read('README.rst'), read('CHANGES.rst'),)),
author='Jaap Roes',
author_email='jaap.roes@gmail.com',
url='',
packages=find_packages(),
license='MIT',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
],
tests_require=['unittest2==0.5.1'],
test_suite='unittest2.collector',
zip_safe=False,
)
Use github repo as package url.import codecs
from os.path import join, dirname
from setuptools import setup, find_packages
version = '1.0dev'
read = lambda *rnames: unicode(codecs.open(join(dirname(__file__), *rnames),
encoding='utf-8').read()).strip()
setup(
name='sourcebuilder',
version=version,
description='Generate (python) code using python',
long_description='\n\n'.join((read('README.rst'), read('CHANGES.rst'),)),
author='Jaap Roes',
author_email='jaap.roes@gmail.com',
url='https://github.com/jaap3/sourcebuilder',
packages=find_packages(),
license='MIT',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
],
tests_require=['unittest2==0.5.1'],
test_suite='unittest2.collector',
zip_safe=False,
)
|
<commit_before>import codecs
from os.path import join, dirname
from setuptools import setup, find_packages
version = '1.0dev'
read = lambda *rnames: unicode(codecs.open(join(dirname(__file__), *rnames),
encoding='utf-8').read()).strip()
setup(
name='sourcebuilder',
version=version,
description='Generate (python) code using python',
long_description='\n\n'.join((read('README.rst'), read('CHANGES.rst'),)),
author='Jaap Roes',
author_email='jaap.roes@gmail.com',
url='',
packages=find_packages(),
license='MIT',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
],
tests_require=['unittest2==0.5.1'],
test_suite='unittest2.collector',
zip_safe=False,
)
<commit_msg>Use github repo as package url.<commit_after>import codecs
from os.path import join, dirname
from setuptools import setup, find_packages
version = '1.0dev'
read = lambda *rnames: unicode(codecs.open(join(dirname(__file__), *rnames),
encoding='utf-8').read()).strip()
setup(
name='sourcebuilder',
version=version,
description='Generate (python) code using python',
long_description='\n\n'.join((read('README.rst'), read('CHANGES.rst'),)),
author='Jaap Roes',
author_email='jaap.roes@gmail.com',
url='https://github.com/jaap3/sourcebuilder',
packages=find_packages(),
license='MIT',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
],
tests_require=['unittest2==0.5.1'],
test_suite='unittest2.collector',
zip_safe=False,
)
|
dd7b0abe5cdd94c90af5705b261463285f70d2d2
|
setup.py
|
setup.py
|
'''
Flask-Cent
-----------
Flask-Cent is a flask extension for centrifugal/cent
'''
import os
import sys
from setuptools import setup
module_path = os.path.join(os.path.dirname(__file__), 'flask_cent.py')
version_line = [line for line in open(module_path)
if line.startswith('__version_info__')][0]
__version__ = '.'.join(eval(version_line.split('__version_info__ = ')[-1]))
setup(name='Flask-Cent',
version=__version__,
url='https://github.com/breakbase/flask-cent',
license='MIT',
author="BreakBase.com",
author_email='oss@breakbase.com',
description='centrifugal/cent client for flask',
long_description=__doc__,
py_modules=['flask_cent'],
zip_safe=False,
platforms='any',
test_suite='nose.collector',
install_requires=[
'Flask',
'blinker',
],
tests_require=[
'nose',
'blinker',
'speaklater',
'mock',
],
classifiers=[
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules'
])
|
'''
Flask-Cent
-----------
Flask-Cent is a flask extension for centrifugal/cent
'''
import os
import sys
from setuptools import setup
module_path = os.path.join(os.path.dirname(__file__), 'flask_cent.py')
version_line = [line for line in open(module_path)
if line.startswith('__version_info__')][0]
__version__ = '.'.join(eval(version_line.split('__version_info__ = ')[-1]))
setup(name='Flask-Cent',
version=__version__,
url='https://github.com/breakbase/flask-cent',
license='MIT',
author="BreakBase.com",
author_email='oss@breakbase.com',
description='centrifugal/cent client for flask',
long_description=__doc__,
py_modules=['flask_cent'],
zip_safe=False,
platforms='any',
test_suite='nose.collector',
install_requires=[
'Flask',
'blinker',
'cent',
],
tests_require=[
'nose',
'blinker',
'speaklater',
'mock',
],
classifiers=[
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules'
])
|
Make cent package a requirement
|
Make cent package a requirement
|
Python
|
mit
|
breakbase/flask-cent
|
'''
Flask-Cent
-----------
Flask-Cent is a flask extension for centrifugal/cent
'''
import os
import sys
from setuptools import setup
module_path = os.path.join(os.path.dirname(__file__), 'flask_cent.py')
version_line = [line for line in open(module_path)
if line.startswith('__version_info__')][0]
__version__ = '.'.join(eval(version_line.split('__version_info__ = ')[-1]))
setup(name='Flask-Cent',
version=__version__,
url='https://github.com/breakbase/flask-cent',
license='MIT',
author="BreakBase.com",
author_email='oss@breakbase.com',
description='centrifugal/cent client for flask',
long_description=__doc__,
py_modules=['flask_cent'],
zip_safe=False,
platforms='any',
test_suite='nose.collector',
install_requires=[
'Flask',
'blinker',
],
tests_require=[
'nose',
'blinker',
'speaklater',
'mock',
],
classifiers=[
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules'
])
Make cent package a requirement
|
'''
Flask-Cent
-----------
Flask-Cent is a flask extension for centrifugal/cent
'''
import os
import sys
from setuptools import setup
module_path = os.path.join(os.path.dirname(__file__), 'flask_cent.py')
version_line = [line for line in open(module_path)
if line.startswith('__version_info__')][0]
__version__ = '.'.join(eval(version_line.split('__version_info__ = ')[-1]))
setup(name='Flask-Cent',
version=__version__,
url='https://github.com/breakbase/flask-cent',
license='MIT',
author="BreakBase.com",
author_email='oss@breakbase.com',
description='centrifugal/cent client for flask',
long_description=__doc__,
py_modules=['flask_cent'],
zip_safe=False,
platforms='any',
test_suite='nose.collector',
install_requires=[
'Flask',
'blinker',
'cent',
],
tests_require=[
'nose',
'blinker',
'speaklater',
'mock',
],
classifiers=[
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules'
])
|
<commit_before>'''
Flask-Cent
-----------
Flask-Cent is a flask extension for centrifugal/cent
'''
import os
import sys
from setuptools import setup
module_path = os.path.join(os.path.dirname(__file__), 'flask_cent.py')
version_line = [line for line in open(module_path)
if line.startswith('__version_info__')][0]
__version__ = '.'.join(eval(version_line.split('__version_info__ = ')[-1]))
setup(name='Flask-Cent',
version=__version__,
url='https://github.com/breakbase/flask-cent',
license='MIT',
author="BreakBase.com",
author_email='oss@breakbase.com',
description='centrifugal/cent client for flask',
long_description=__doc__,
py_modules=['flask_cent'],
zip_safe=False,
platforms='any',
test_suite='nose.collector',
install_requires=[
'Flask',
'blinker',
],
tests_require=[
'nose',
'blinker',
'speaklater',
'mock',
],
classifiers=[
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules'
])
<commit_msg>Make cent package a requirement<commit_after>
|
'''
Flask-Cent
-----------
Flask-Cent is a flask extension for centrifugal/cent
'''
import os
import sys
from setuptools import setup
module_path = os.path.join(os.path.dirname(__file__), 'flask_cent.py')
version_line = [line for line in open(module_path)
if line.startswith('__version_info__')][0]
__version__ = '.'.join(eval(version_line.split('__version_info__ = ')[-1]))
setup(name='Flask-Cent',
version=__version__,
url='https://github.com/breakbase/flask-cent',
license='MIT',
author="BreakBase.com",
author_email='oss@breakbase.com',
description='centrifugal/cent client for flask',
long_description=__doc__,
py_modules=['flask_cent'],
zip_safe=False,
platforms='any',
test_suite='nose.collector',
install_requires=[
'Flask',
'blinker',
'cent',
],
tests_require=[
'nose',
'blinker',
'speaklater',
'mock',
],
classifiers=[
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules'
])
|
'''
Flask-Cent
-----------
Flask-Cent is a flask extension for centrifugal/cent
'''
import os
import sys
from setuptools import setup
module_path = os.path.join(os.path.dirname(__file__), 'flask_cent.py')
version_line = [line for line in open(module_path)
if line.startswith('__version_info__')][0]
__version__ = '.'.join(eval(version_line.split('__version_info__ = ')[-1]))
setup(name='Flask-Cent',
version=__version__,
url='https://github.com/breakbase/flask-cent',
license='MIT',
author="BreakBase.com",
author_email='oss@breakbase.com',
description='centrifugal/cent client for flask',
long_description=__doc__,
py_modules=['flask_cent'],
zip_safe=False,
platforms='any',
test_suite='nose.collector',
install_requires=[
'Flask',
'blinker',
],
tests_require=[
'nose',
'blinker',
'speaklater',
'mock',
],
classifiers=[
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules'
])
Make cent package a requirement'''
Flask-Cent
-----------
Flask-Cent is a flask extension for centrifugal/cent
'''
import os
import sys
from setuptools import setup
module_path = os.path.join(os.path.dirname(__file__), 'flask_cent.py')
version_line = [line for line in open(module_path)
if line.startswith('__version_info__')][0]
__version__ = '.'.join(eval(version_line.split('__version_info__ = ')[-1]))
setup(name='Flask-Cent',
version=__version__,
url='https://github.com/breakbase/flask-cent',
license='MIT',
author="BreakBase.com",
author_email='oss@breakbase.com',
description='centrifugal/cent client for flask',
long_description=__doc__,
py_modules=['flask_cent'],
zip_safe=False,
platforms='any',
test_suite='nose.collector',
install_requires=[
'Flask',
'blinker',
'cent',
],
tests_require=[
'nose',
'blinker',
'speaklater',
'mock',
],
classifiers=[
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules'
])
|
<commit_before>'''
Flask-Cent
-----------
Flask-Cent is a flask extension for centrifugal/cent
'''
import os
import sys
from setuptools import setup
module_path = os.path.join(os.path.dirname(__file__), 'flask_cent.py')
version_line = [line for line in open(module_path)
if line.startswith('__version_info__')][0]
__version__ = '.'.join(eval(version_line.split('__version_info__ = ')[-1]))
setup(name='Flask-Cent',
version=__version__,
url='https://github.com/breakbase/flask-cent',
license='MIT',
author="BreakBase.com",
author_email='oss@breakbase.com',
description='centrifugal/cent client for flask',
long_description=__doc__,
py_modules=['flask_cent'],
zip_safe=False,
platforms='any',
test_suite='nose.collector',
install_requires=[
'Flask',
'blinker',
],
tests_require=[
'nose',
'blinker',
'speaklater',
'mock',
],
classifiers=[
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules'
])
<commit_msg>Make cent package a requirement<commit_after>'''
Flask-Cent
-----------
Flask-Cent is a flask extension for centrifugal/cent
'''
import os
import sys
from setuptools import setup
module_path = os.path.join(os.path.dirname(__file__), 'flask_cent.py')
version_line = [line for line in open(module_path)
if line.startswith('__version_info__')][0]
__version__ = '.'.join(eval(version_line.split('__version_info__ = ')[-1]))
setup(name='Flask-Cent',
version=__version__,
url='https://github.com/breakbase/flask-cent',
license='MIT',
author="BreakBase.com",
author_email='oss@breakbase.com',
description='centrifugal/cent client for flask',
long_description=__doc__,
py_modules=['flask_cent'],
zip_safe=False,
platforms='any',
test_suite='nose.collector',
install_requires=[
'Flask',
'blinker',
'cent',
],
tests_require=[
'nose',
'blinker',
'speaklater',
'mock',
],
classifiers=[
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules'
])
|
f9784cd3f03094ab92e58c5168300f068668f905
|
setup.py
|
setup.py
|
#!/usr/bin/env python
from distutils.core import setup
setup(name='OpenSDraw',
version='0.0.2',
description='A CAD program similar to OpenSCAD but for LEGO(R).',
author='Hazen Babcock',
author_email='hbabcock@mac.com',
packages=['opensdraw'],
install_requires['numpy', 'rply', 'scipy']
)
|
#!/usr/bin/env python
from distutils.core import setup
setup(name='OpenSDraw',
version='0.0.2',
description='A CAD program similar to OpenSCAD but for LEGO(R).',
author='Hazen Babcock',
author_email='hbabcock@mac.com',
packages=['opensdraw'],
install_requires=['numpy', 'rply', 'scipy']
)
|
Fix incorrect specification for install_requires.
|
Fix incorrect specification for install_requires.
|
Python
|
mit
|
HazenBabcock/opensdraw
|
#!/usr/bin/env python
from distutils.core import setup
setup(name='OpenSDraw',
version='0.0.2',
description='A CAD program similar to OpenSCAD but for LEGO(R).',
author='Hazen Babcock',
author_email='hbabcock@mac.com',
packages=['opensdraw'],
install_requires['numpy', 'rply', 'scipy']
)
Fix incorrect specification for install_requires.
|
#!/usr/bin/env python
from distutils.core import setup
setup(name='OpenSDraw',
version='0.0.2',
description='A CAD program similar to OpenSCAD but for LEGO(R).',
author='Hazen Babcock',
author_email='hbabcock@mac.com',
packages=['opensdraw'],
install_requires=['numpy', 'rply', 'scipy']
)
|
<commit_before>#!/usr/bin/env python
from distutils.core import setup
setup(name='OpenSDraw',
version='0.0.2',
description='A CAD program similar to OpenSCAD but for LEGO(R).',
author='Hazen Babcock',
author_email='hbabcock@mac.com',
packages=['opensdraw'],
install_requires['numpy', 'rply', 'scipy']
)
<commit_msg>Fix incorrect specification for install_requires.<commit_after>
|
#!/usr/bin/env python
from distutils.core import setup
setup(name='OpenSDraw',
version='0.0.2',
description='A CAD program similar to OpenSCAD but for LEGO(R).',
author='Hazen Babcock',
author_email='hbabcock@mac.com',
packages=['opensdraw'],
install_requires=['numpy', 'rply', 'scipy']
)
|
#!/usr/bin/env python
from distutils.core import setup
setup(name='OpenSDraw',
version='0.0.2',
description='A CAD program similar to OpenSCAD but for LEGO(R).',
author='Hazen Babcock',
author_email='hbabcock@mac.com',
packages=['opensdraw'],
install_requires['numpy', 'rply', 'scipy']
)
Fix incorrect specification for install_requires.#!/usr/bin/env python
from distutils.core import setup
setup(name='OpenSDraw',
version='0.0.2',
description='A CAD program similar to OpenSCAD but for LEGO(R).',
author='Hazen Babcock',
author_email='hbabcock@mac.com',
packages=['opensdraw'],
install_requires=['numpy', 'rply', 'scipy']
)
|
<commit_before>#!/usr/bin/env python
from distutils.core import setup
setup(name='OpenSDraw',
version='0.0.2',
description='A CAD program similar to OpenSCAD but for LEGO(R).',
author='Hazen Babcock',
author_email='hbabcock@mac.com',
packages=['opensdraw'],
install_requires['numpy', 'rply', 'scipy']
)
<commit_msg>Fix incorrect specification for install_requires.<commit_after>#!/usr/bin/env python
from distutils.core import setup
setup(name='OpenSDraw',
version='0.0.2',
description='A CAD program similar to OpenSCAD but for LEGO(R).',
author='Hazen Babcock',
author_email='hbabcock@mac.com',
packages=['opensdraw'],
install_requires=['numpy', 'rply', 'scipy']
)
|
8ed290524a4e8459bd448521633be62600df42fd
|
setup.py
|
setup.py
|
#!/usr/bin/env python
from setuptools import setup, find_packages
with open("README.md", "r") as fh:
long_description = fh.read()
setup(
name='malwareconfig',
version='1.0.3',
author='Kevin Breen',
author_email='thehermit@malwareconfig.com',
description="Malware Config Extraction",
long_description=long_description,
long_description_content_type="text/markdown",
url='https://malwareconfig.com',
license='GNU V3',
zip_safe=False,
packages=find_packages(),
include_package_data=True,
install_requires=[
'pefile',
'pbkdf2',
'javaobj-py3',
'pycrypto',
'androguard'
],
scripts=['malconf'],
package_data={'': ['*.yar', 'README.md, LICENSE']}
)
|
#!/usr/bin/env python3
from setuptools import setup, find_packages
with open("README.md", encoding='utf8') as fh:
long_description = fh.read()
setup(
name='malwareconfig',
version='1.0.3',
author='Kevin Breen',
author_email='thehermit@malwareconfig.com',
description="Malware Config Extraction",
long_description=long_description,
long_description_content_type="text/markdown",
url='https://malwareconfig.com',
license='GNU V3',
zip_safe=False,
packages=find_packages(),
include_package_data=True,
install_requires=[
'pefile',
'pbkdf2',
'javaobj-py3',
'pycrypto',
'androguard'
],
scripts=['malconf'],
package_data={'': ['*.yar', 'README.md, LICENSE']}
)
|
Modify encoding for open README to prevent ascii errors
|
Modify encoding for open README to prevent ascii errors
|
Python
|
mit
|
kevthehermit/RATDecoders
|
#!/usr/bin/env python
from setuptools import setup, find_packages
with open("README.md", "r") as fh:
long_description = fh.read()
setup(
name='malwareconfig',
version='1.0.3',
author='Kevin Breen',
author_email='thehermit@malwareconfig.com',
description="Malware Config Extraction",
long_description=long_description,
long_description_content_type="text/markdown",
url='https://malwareconfig.com',
license='GNU V3',
zip_safe=False,
packages=find_packages(),
include_package_data=True,
install_requires=[
'pefile',
'pbkdf2',
'javaobj-py3',
'pycrypto',
'androguard'
],
scripts=['malconf'],
package_data={'': ['*.yar', 'README.md, LICENSE']}
)
Modify encoding for open README to prevent ascii errors
|
#!/usr/bin/env python3
from setuptools import setup, find_packages
with open("README.md", encoding='utf8') as fh:
long_description = fh.read()
setup(
name='malwareconfig',
version='1.0.3',
author='Kevin Breen',
author_email='thehermit@malwareconfig.com',
description="Malware Config Extraction",
long_description=long_description,
long_description_content_type="text/markdown",
url='https://malwareconfig.com',
license='GNU V3',
zip_safe=False,
packages=find_packages(),
include_package_data=True,
install_requires=[
'pefile',
'pbkdf2',
'javaobj-py3',
'pycrypto',
'androguard'
],
scripts=['malconf'],
package_data={'': ['*.yar', 'README.md, LICENSE']}
)
|
<commit_before>#!/usr/bin/env python
from setuptools import setup, find_packages
with open("README.md", "r") as fh:
long_description = fh.read()
setup(
name='malwareconfig',
version='1.0.3',
author='Kevin Breen',
author_email='thehermit@malwareconfig.com',
description="Malware Config Extraction",
long_description=long_description,
long_description_content_type="text/markdown",
url='https://malwareconfig.com',
license='GNU V3',
zip_safe=False,
packages=find_packages(),
include_package_data=True,
install_requires=[
'pefile',
'pbkdf2',
'javaobj-py3',
'pycrypto',
'androguard'
],
scripts=['malconf'],
package_data={'': ['*.yar', 'README.md, LICENSE']}
)
<commit_msg>Modify encoding for open README to prevent ascii errors<commit_after>
|
#!/usr/bin/env python3
from setuptools import setup, find_packages
with open("README.md", encoding='utf8') as fh:
long_description = fh.read()
setup(
name='malwareconfig',
version='1.0.3',
author='Kevin Breen',
author_email='thehermit@malwareconfig.com',
description="Malware Config Extraction",
long_description=long_description,
long_description_content_type="text/markdown",
url='https://malwareconfig.com',
license='GNU V3',
zip_safe=False,
packages=find_packages(),
include_package_data=True,
install_requires=[
'pefile',
'pbkdf2',
'javaobj-py3',
'pycrypto',
'androguard'
],
scripts=['malconf'],
package_data={'': ['*.yar', 'README.md, LICENSE']}
)
|
#!/usr/bin/env python
from setuptools import setup, find_packages
with open("README.md", "r") as fh:
long_description = fh.read()
setup(
name='malwareconfig',
version='1.0.3',
author='Kevin Breen',
author_email='thehermit@malwareconfig.com',
description="Malware Config Extraction",
long_description=long_description,
long_description_content_type="text/markdown",
url='https://malwareconfig.com',
license='GNU V3',
zip_safe=False,
packages=find_packages(),
include_package_data=True,
install_requires=[
'pefile',
'pbkdf2',
'javaobj-py3',
'pycrypto',
'androguard'
],
scripts=['malconf'],
package_data={'': ['*.yar', 'README.md, LICENSE']}
)
Modify encoding for open README to prevent ascii errors#!/usr/bin/env python3
from setuptools import setup, find_packages
with open("README.md", encoding='utf8') as fh:
long_description = fh.read()
setup(
name='malwareconfig',
version='1.0.3',
author='Kevin Breen',
author_email='thehermit@malwareconfig.com',
description="Malware Config Extraction",
long_description=long_description,
long_description_content_type="text/markdown",
url='https://malwareconfig.com',
license='GNU V3',
zip_safe=False,
packages=find_packages(),
include_package_data=True,
install_requires=[
'pefile',
'pbkdf2',
'javaobj-py3',
'pycrypto',
'androguard'
],
scripts=['malconf'],
package_data={'': ['*.yar', 'README.md, LICENSE']}
)
|
<commit_before>#!/usr/bin/env python
from setuptools import setup, find_packages
with open("README.md", "r") as fh:
long_description = fh.read()
setup(
name='malwareconfig',
version='1.0.3',
author='Kevin Breen',
author_email='thehermit@malwareconfig.com',
description="Malware Config Extraction",
long_description=long_description,
long_description_content_type="text/markdown",
url='https://malwareconfig.com',
license='GNU V3',
zip_safe=False,
packages=find_packages(),
include_package_data=True,
install_requires=[
'pefile',
'pbkdf2',
'javaobj-py3',
'pycrypto',
'androguard'
],
scripts=['malconf'],
package_data={'': ['*.yar', 'README.md, LICENSE']}
)
<commit_msg>Modify encoding for open README to prevent ascii errors<commit_after>#!/usr/bin/env python3
from setuptools import setup, find_packages
with open("README.md", encoding='utf8') as fh:
long_description = fh.read()
setup(
name='malwareconfig',
version='1.0.3',
author='Kevin Breen',
author_email='thehermit@malwareconfig.com',
description="Malware Config Extraction",
long_description=long_description,
long_description_content_type="text/markdown",
url='https://malwareconfig.com',
license='GNU V3',
zip_safe=False,
packages=find_packages(),
include_package_data=True,
install_requires=[
'pefile',
'pbkdf2',
'javaobj-py3',
'pycrypto',
'androguard'
],
scripts=['malconf'],
package_data={'': ['*.yar', 'README.md, LICENSE']}
)
|
6d5d9e72125e5d281af3a93a83974c47e3400b95
|
tasks.py
|
tasks.py
|
from arctasks import lint # noqa
from arctasks.python import show_upgraded_packages # noqa
from arctasks.release import * # noqa
|
from arctasks.base import lint # noqa
from arctasks.python import show_upgraded_packages # noqa
from arctasks.release import * # noqa
|
Fix lint task import path
|
Fix lint task import path
|
Python
|
mit
|
wylee/django-arcutils,wylee/django-arcutils,PSU-OIT-ARC/django-arcutils,PSU-OIT-ARC/django-arcutils
|
from arctasks import lint # noqa
from arctasks.python import show_upgraded_packages # noqa
from arctasks.release import * # noqa
Fix lint task import path
|
from arctasks.base import lint # noqa
from arctasks.python import show_upgraded_packages # noqa
from arctasks.release import * # noqa
|
<commit_before>from arctasks import lint # noqa
from arctasks.python import show_upgraded_packages # noqa
from arctasks.release import * # noqa
<commit_msg>Fix lint task import path<commit_after>
|
from arctasks.base import lint # noqa
from arctasks.python import show_upgraded_packages # noqa
from arctasks.release import * # noqa
|
from arctasks import lint # noqa
from arctasks.python import show_upgraded_packages # noqa
from arctasks.release import * # noqa
Fix lint task import pathfrom arctasks.base import lint # noqa
from arctasks.python import show_upgraded_packages # noqa
from arctasks.release import * # noqa
|
<commit_before>from arctasks import lint # noqa
from arctasks.python import show_upgraded_packages # noqa
from arctasks.release import * # noqa
<commit_msg>Fix lint task import path<commit_after>from arctasks.base import lint # noqa
from arctasks.python import show_upgraded_packages # noqa
from arctasks.release import * # noqa
|
46bf4915426b14db84c46a0109645a3a0f3fa94d
|
mando/__init__.py
|
mando/__init__.py
|
__version__ = '0.3.2'
try:
from mando.core import Program
except ImportError as e: # unfortunately this is the only workaround for argparse
# and Python 2.6
e.version = __version__
raise e
main = Program()
command = main.command
arg = main.arg
parse = main.parse
execute = main.execute
|
__version__ = '0.3.2'
try:
from mando.core import Program
except ImportError as e: # pragma: no cover
# unfortunately the only workaround for Python2.6, argparse and setup.py
e.version = __version__
raise e
main = Program()
command = main.command
arg = main.arg
parse = main.parse
execute = main.execute
|
Add a pragma comment to importerror
|
Add a pragma comment to importerror
|
Python
|
mit
|
rubik/mando,MarioSchwalbe/mando,MarioSchwalbe/mando
|
__version__ = '0.3.2'
try:
from mando.core import Program
except ImportError as e: # unfortunately this is the only workaround for argparse
# and Python 2.6
e.version = __version__
raise e
main = Program()
command = main.command
arg = main.arg
parse = main.parse
execute = main.execute
Add a pragma comment to importerror
|
__version__ = '0.3.2'
try:
from mando.core import Program
except ImportError as e: # pragma: no cover
# unfortunately the only workaround for Python2.6, argparse and setup.py
e.version = __version__
raise e
main = Program()
command = main.command
arg = main.arg
parse = main.parse
execute = main.execute
|
<commit_before>__version__ = '0.3.2'
try:
from mando.core import Program
except ImportError as e: # unfortunately this is the only workaround for argparse
# and Python 2.6
e.version = __version__
raise e
main = Program()
command = main.command
arg = main.arg
parse = main.parse
execute = main.execute
<commit_msg>Add a pragma comment to importerror<commit_after>
|
__version__ = '0.3.2'
try:
from mando.core import Program
except ImportError as e: # pragma: no cover
# unfortunately the only workaround for Python2.6, argparse and setup.py
e.version = __version__
raise e
main = Program()
command = main.command
arg = main.arg
parse = main.parse
execute = main.execute
|
__version__ = '0.3.2'
try:
from mando.core import Program
except ImportError as e: # unfortunately this is the only workaround for argparse
# and Python 2.6
e.version = __version__
raise e
main = Program()
command = main.command
arg = main.arg
parse = main.parse
execute = main.execute
Add a pragma comment to importerror__version__ = '0.3.2'
try:
from mando.core import Program
except ImportError as e: # pragma: no cover
# unfortunately the only workaround for Python2.6, argparse and setup.py
e.version = __version__
raise e
main = Program()
command = main.command
arg = main.arg
parse = main.parse
execute = main.execute
|
<commit_before>__version__ = '0.3.2'
try:
from mando.core import Program
except ImportError as e: # unfortunately this is the only workaround for argparse
# and Python 2.6
e.version = __version__
raise e
main = Program()
command = main.command
arg = main.arg
parse = main.parse
execute = main.execute
<commit_msg>Add a pragma comment to importerror<commit_after>__version__ = '0.3.2'
try:
from mando.core import Program
except ImportError as e: # pragma: no cover
# unfortunately the only workaround for Python2.6, argparse and setup.py
e.version = __version__
raise e
main = Program()
command = main.command
arg = main.arg
parse = main.parse
execute = main.execute
|
62151b04bd46fc1f586b179cdaeeca8ba3e18fed
|
markups/common.py
|
markups/common.py
|
# This file is part of python-markups module
# License: BSD
# Copyright: (C) Dmitry Shachnev, 2012
import os.path
# Some common constants and functions
(LANGUAGE_HOME_PAGE, MODULE_HOME_PAGE, SYNTAX_DOCUMENTATION) = range(3)
CONFIGURATION_DIR = (os.environ.get('XDG_CONFIG_HOME') or
os.path.expanduser('~/.config'))
MATHJAX_LOCAL_URL = 'file:///usr/share/javascript/mathjax/MathJax.js'
MATHJAX_WEB_URL = 'http://cdn.mathjax.org/mathjax/latest/MathJax.js'
PYGMENTS_STYLE = 'default'
def get_pygments_stylesheet(selector, style=None):
if style is None:
style = PYGMENTS_STYLE
if style == '':
return ''
try:
from pygments.formatters import HtmlFormatter
except ImportError:
return ''
else:
return HtmlFormatter(style=style).get_style_defs(selector) + '\n'
def get_mathjax_url(webenv):
if os.path.exists(MATHJAX_LOCAL_URL[7:]) and not webenv:
return MATHJAX_LOCAL_URL
else:
return MATHJAX_WEB_URL
|
# This file is part of python-markups module
# License: BSD
# Copyright: (C) Dmitry Shachnev, 2012
import os.path
# Some common constants and functions
(LANGUAGE_HOME_PAGE, MODULE_HOME_PAGE, SYNTAX_DOCUMENTATION) = range(3)
CONFIGURATION_DIR = (os.environ.get('XDG_CONFIG_HOME') or
os.path.expanduser('~/.config'))
MATHJAX_LOCAL_URL = 'file:///usr/share/javascript/mathjax/MathJax.js'
MATHJAX_WEB_URL = 'https://cdn.mathjax.org/mathjax/latest/MathJax.js'
PYGMENTS_STYLE = 'default'
def get_pygments_stylesheet(selector, style=None):
if style is None:
style = PYGMENTS_STYLE
if style == '':
return ''
try:
from pygments.formatters import HtmlFormatter
except ImportError:
return ''
else:
return HtmlFormatter(style=style).get_style_defs(selector) + '\n'
def get_mathjax_url(webenv):
if os.path.exists(MATHJAX_LOCAL_URL[7:]) and not webenv:
return MATHJAX_LOCAL_URL
else:
return MATHJAX_WEB_URL
|
Use HTTPS url for MathJax script
|
Use HTTPS url for MathJax script
|
Python
|
bsd-3-clause
|
mitya57/pymarkups,retext-project/pymarkups
|
# This file is part of python-markups module
# License: BSD
# Copyright: (C) Dmitry Shachnev, 2012
import os.path
# Some common constants and functions
(LANGUAGE_HOME_PAGE, MODULE_HOME_PAGE, SYNTAX_DOCUMENTATION) = range(3)
CONFIGURATION_DIR = (os.environ.get('XDG_CONFIG_HOME') or
os.path.expanduser('~/.config'))
MATHJAX_LOCAL_URL = 'file:///usr/share/javascript/mathjax/MathJax.js'
MATHJAX_WEB_URL = 'http://cdn.mathjax.org/mathjax/latest/MathJax.js'
PYGMENTS_STYLE = 'default'
def get_pygments_stylesheet(selector, style=None):
if style is None:
style = PYGMENTS_STYLE
if style == '':
return ''
try:
from pygments.formatters import HtmlFormatter
except ImportError:
return ''
else:
return HtmlFormatter(style=style).get_style_defs(selector) + '\n'
def get_mathjax_url(webenv):
if os.path.exists(MATHJAX_LOCAL_URL[7:]) and not webenv:
return MATHJAX_LOCAL_URL
else:
return MATHJAX_WEB_URL
Use HTTPS url for MathJax script
|
# This file is part of python-markups module
# License: BSD
# Copyright: (C) Dmitry Shachnev, 2012
import os.path
# Some common constants and functions
(LANGUAGE_HOME_PAGE, MODULE_HOME_PAGE, SYNTAX_DOCUMENTATION) = range(3)
CONFIGURATION_DIR = (os.environ.get('XDG_CONFIG_HOME') or
os.path.expanduser('~/.config'))
MATHJAX_LOCAL_URL = 'file:///usr/share/javascript/mathjax/MathJax.js'
MATHJAX_WEB_URL = 'https://cdn.mathjax.org/mathjax/latest/MathJax.js'
PYGMENTS_STYLE = 'default'
def get_pygments_stylesheet(selector, style=None):
if style is None:
style = PYGMENTS_STYLE
if style == '':
return ''
try:
from pygments.formatters import HtmlFormatter
except ImportError:
return ''
else:
return HtmlFormatter(style=style).get_style_defs(selector) + '\n'
def get_mathjax_url(webenv):
if os.path.exists(MATHJAX_LOCAL_URL[7:]) and not webenv:
return MATHJAX_LOCAL_URL
else:
return MATHJAX_WEB_URL
|
<commit_before># This file is part of python-markups module
# License: BSD
# Copyright: (C) Dmitry Shachnev, 2012
import os.path
# Some common constants and functions
(LANGUAGE_HOME_PAGE, MODULE_HOME_PAGE, SYNTAX_DOCUMENTATION) = range(3)
CONFIGURATION_DIR = (os.environ.get('XDG_CONFIG_HOME') or
os.path.expanduser('~/.config'))
MATHJAX_LOCAL_URL = 'file:///usr/share/javascript/mathjax/MathJax.js'
MATHJAX_WEB_URL = 'http://cdn.mathjax.org/mathjax/latest/MathJax.js'
PYGMENTS_STYLE = 'default'
def get_pygments_stylesheet(selector, style=None):
if style is None:
style = PYGMENTS_STYLE
if style == '':
return ''
try:
from pygments.formatters import HtmlFormatter
except ImportError:
return ''
else:
return HtmlFormatter(style=style).get_style_defs(selector) + '\n'
def get_mathjax_url(webenv):
if os.path.exists(MATHJAX_LOCAL_URL[7:]) and not webenv:
return MATHJAX_LOCAL_URL
else:
return MATHJAX_WEB_URL
<commit_msg>Use HTTPS url for MathJax script<commit_after>
|
# This file is part of python-markups module
# License: BSD
# Copyright: (C) Dmitry Shachnev, 2012
import os.path
# Some common constants and functions
(LANGUAGE_HOME_PAGE, MODULE_HOME_PAGE, SYNTAX_DOCUMENTATION) = range(3)
CONFIGURATION_DIR = (os.environ.get('XDG_CONFIG_HOME') or
os.path.expanduser('~/.config'))
MATHJAX_LOCAL_URL = 'file:///usr/share/javascript/mathjax/MathJax.js'
MATHJAX_WEB_URL = 'https://cdn.mathjax.org/mathjax/latest/MathJax.js'
PYGMENTS_STYLE = 'default'
def get_pygments_stylesheet(selector, style=None):
if style is None:
style = PYGMENTS_STYLE
if style == '':
return ''
try:
from pygments.formatters import HtmlFormatter
except ImportError:
return ''
else:
return HtmlFormatter(style=style).get_style_defs(selector) + '\n'
def get_mathjax_url(webenv):
if os.path.exists(MATHJAX_LOCAL_URL[7:]) and not webenv:
return MATHJAX_LOCAL_URL
else:
return MATHJAX_WEB_URL
|
# This file is part of python-markups module
# License: BSD
# Copyright: (C) Dmitry Shachnev, 2012
import os.path
# Some common constants and functions
(LANGUAGE_HOME_PAGE, MODULE_HOME_PAGE, SYNTAX_DOCUMENTATION) = range(3)
CONFIGURATION_DIR = (os.environ.get('XDG_CONFIG_HOME') or
os.path.expanduser('~/.config'))
MATHJAX_LOCAL_URL = 'file:///usr/share/javascript/mathjax/MathJax.js'
MATHJAX_WEB_URL = 'http://cdn.mathjax.org/mathjax/latest/MathJax.js'
PYGMENTS_STYLE = 'default'
def get_pygments_stylesheet(selector, style=None):
if style is None:
style = PYGMENTS_STYLE
if style == '':
return ''
try:
from pygments.formatters import HtmlFormatter
except ImportError:
return ''
else:
return HtmlFormatter(style=style).get_style_defs(selector) + '\n'
def get_mathjax_url(webenv):
if os.path.exists(MATHJAX_LOCAL_URL[7:]) and not webenv:
return MATHJAX_LOCAL_URL
else:
return MATHJAX_WEB_URL
Use HTTPS url for MathJax script# This file is part of python-markups module
# License: BSD
# Copyright: (C) Dmitry Shachnev, 2012
import os.path
# Some common constants and functions
(LANGUAGE_HOME_PAGE, MODULE_HOME_PAGE, SYNTAX_DOCUMENTATION) = range(3)
CONFIGURATION_DIR = (os.environ.get('XDG_CONFIG_HOME') or
os.path.expanduser('~/.config'))
MATHJAX_LOCAL_URL = 'file:///usr/share/javascript/mathjax/MathJax.js'
MATHJAX_WEB_URL = 'https://cdn.mathjax.org/mathjax/latest/MathJax.js'
PYGMENTS_STYLE = 'default'
def get_pygments_stylesheet(selector, style=None):
if style is None:
style = PYGMENTS_STYLE
if style == '':
return ''
try:
from pygments.formatters import HtmlFormatter
except ImportError:
return ''
else:
return HtmlFormatter(style=style).get_style_defs(selector) + '\n'
def get_mathjax_url(webenv):
if os.path.exists(MATHJAX_LOCAL_URL[7:]) and not webenv:
return MATHJAX_LOCAL_URL
else:
return MATHJAX_WEB_URL
|
<commit_before># This file is part of python-markups module
# License: BSD
# Copyright: (C) Dmitry Shachnev, 2012
import os.path
# Some common constants and functions
(LANGUAGE_HOME_PAGE, MODULE_HOME_PAGE, SYNTAX_DOCUMENTATION) = range(3)
CONFIGURATION_DIR = (os.environ.get('XDG_CONFIG_HOME') or
os.path.expanduser('~/.config'))
MATHJAX_LOCAL_URL = 'file:///usr/share/javascript/mathjax/MathJax.js'
MATHJAX_WEB_URL = 'http://cdn.mathjax.org/mathjax/latest/MathJax.js'
PYGMENTS_STYLE = 'default'
def get_pygments_stylesheet(selector, style=None):
if style is None:
style = PYGMENTS_STYLE
if style == '':
return ''
try:
from pygments.formatters import HtmlFormatter
except ImportError:
return ''
else:
return HtmlFormatter(style=style).get_style_defs(selector) + '\n'
def get_mathjax_url(webenv):
if os.path.exists(MATHJAX_LOCAL_URL[7:]) and not webenv:
return MATHJAX_LOCAL_URL
else:
return MATHJAX_WEB_URL
<commit_msg>Use HTTPS url for MathJax script<commit_after># This file is part of python-markups module
# License: BSD
# Copyright: (C) Dmitry Shachnev, 2012
import os.path
# Some common constants and functions
(LANGUAGE_HOME_PAGE, MODULE_HOME_PAGE, SYNTAX_DOCUMENTATION) = range(3)
CONFIGURATION_DIR = (os.environ.get('XDG_CONFIG_HOME') or
os.path.expanduser('~/.config'))
MATHJAX_LOCAL_URL = 'file:///usr/share/javascript/mathjax/MathJax.js'
MATHJAX_WEB_URL = 'https://cdn.mathjax.org/mathjax/latest/MathJax.js'
PYGMENTS_STYLE = 'default'
def get_pygments_stylesheet(selector, style=None):
if style is None:
style = PYGMENTS_STYLE
if style == '':
return ''
try:
from pygments.formatters import HtmlFormatter
except ImportError:
return ''
else:
return HtmlFormatter(style=style).get_style_defs(selector) + '\n'
def get_mathjax_url(webenv):
if os.path.exists(MATHJAX_LOCAL_URL[7:]) and not webenv:
return MATHJAX_LOCAL_URL
else:
return MATHJAX_WEB_URL
|
ed98c04ed7d5e99422a65fbdbf45f222aca408ca
|
poradnia/template_mail/utils.py
|
poradnia/template_mail/utils.py
|
from django.template import loader, Context
from django.core.mail import send_mail
from django.conf import settings
def send_tpl_email(template_name, recipient_list, context=None, from_email=None, **kwds):
t = loader.get_template(template_name)
c = Context(context or {})
subject, txt = t.render(c).split("\n", 1)
from_email = from_email if from_email else settings.DEFAULT_FROM_EMAIL
send_mail(subject=subject,
message=txt,
from_email=from_email,
recipient_list=recipient_list,
**kwds)
|
from django.template import loader, Context
from django.core.mail import send_mail
from django.conf import settings
def send_tpl_email(template_name, recipient_list, context=None, from_email=None, **kwds):
t = loader.get_template(template_name)
c = Context(context or {})
subject, txt = t.render(c).split("\n", 1)
from_email = from_email if from_email else settings.DEFAULT_FROM_EMAIL
send_mail(subject=subject.split(),
message=txt,
from_email=from_email,
recipient_list=recipient_list,
**kwds)
|
Fix new mail subject header bug
|
Fix new mail subject header bug
|
Python
|
mit
|
watchdogpolska/poradnia.siecobywatelska.pl,rwakulszowa/poradnia,watchdogpolska/poradnia,watchdogpolska/poradnia.siecobywatelska.pl,watchdogpolska/poradnia.siecobywatelska.pl,rwakulszowa/poradnia,watchdogpolska/poradnia,rwakulszowa/poradnia,watchdogpolska/poradnia,watchdogpolska/poradnia,rwakulszowa/poradnia
|
from django.template import loader, Context
from django.core.mail import send_mail
from django.conf import settings
def send_tpl_email(template_name, recipient_list, context=None, from_email=None, **kwds):
t = loader.get_template(template_name)
c = Context(context or {})
subject, txt = t.render(c).split("\n", 1)
from_email = from_email if from_email else settings.DEFAULT_FROM_EMAIL
send_mail(subject=subject,
message=txt,
from_email=from_email,
recipient_list=recipient_list,
**kwds)
Fix new mail subject header bug
|
from django.template import loader, Context
from django.core.mail import send_mail
from django.conf import settings
def send_tpl_email(template_name, recipient_list, context=None, from_email=None, **kwds):
t = loader.get_template(template_name)
c = Context(context or {})
subject, txt = t.render(c).split("\n", 1)
from_email = from_email if from_email else settings.DEFAULT_FROM_EMAIL
send_mail(subject=subject.split(),
message=txt,
from_email=from_email,
recipient_list=recipient_list,
**kwds)
|
<commit_before>from django.template import loader, Context
from django.core.mail import send_mail
from django.conf import settings
def send_tpl_email(template_name, recipient_list, context=None, from_email=None, **kwds):
t = loader.get_template(template_name)
c = Context(context or {})
subject, txt = t.render(c).split("\n", 1)
from_email = from_email if from_email else settings.DEFAULT_FROM_EMAIL
send_mail(subject=subject,
message=txt,
from_email=from_email,
recipient_list=recipient_list,
**kwds)
<commit_msg>Fix new mail subject header bug<commit_after>
|
from django.template import loader, Context
from django.core.mail import send_mail
from django.conf import settings
def send_tpl_email(template_name, recipient_list, context=None, from_email=None, **kwds):
t = loader.get_template(template_name)
c = Context(context or {})
subject, txt = t.render(c).split("\n", 1)
from_email = from_email if from_email else settings.DEFAULT_FROM_EMAIL
send_mail(subject=subject.split(),
message=txt,
from_email=from_email,
recipient_list=recipient_list,
**kwds)
|
from django.template import loader, Context
from django.core.mail import send_mail
from django.conf import settings
def send_tpl_email(template_name, recipient_list, context=None, from_email=None, **kwds):
t = loader.get_template(template_name)
c = Context(context or {})
subject, txt = t.render(c).split("\n", 1)
from_email = from_email if from_email else settings.DEFAULT_FROM_EMAIL
send_mail(subject=subject,
message=txt,
from_email=from_email,
recipient_list=recipient_list,
**kwds)
Fix new mail subject header bugfrom django.template import loader, Context
from django.core.mail import send_mail
from django.conf import settings
def send_tpl_email(template_name, recipient_list, context=None, from_email=None, **kwds):
t = loader.get_template(template_name)
c = Context(context or {})
subject, txt = t.render(c).split("\n", 1)
from_email = from_email if from_email else settings.DEFAULT_FROM_EMAIL
send_mail(subject=subject.split(),
message=txt,
from_email=from_email,
recipient_list=recipient_list,
**kwds)
|
<commit_before>from django.template import loader, Context
from django.core.mail import send_mail
from django.conf import settings
def send_tpl_email(template_name, recipient_list, context=None, from_email=None, **kwds):
t = loader.get_template(template_name)
c = Context(context or {})
subject, txt = t.render(c).split("\n", 1)
from_email = from_email if from_email else settings.DEFAULT_FROM_EMAIL
send_mail(subject=subject,
message=txt,
from_email=from_email,
recipient_list=recipient_list,
**kwds)
<commit_msg>Fix new mail subject header bug<commit_after>from django.template import loader, Context
from django.core.mail import send_mail
from django.conf import settings
def send_tpl_email(template_name, recipient_list, context=None, from_email=None, **kwds):
t = loader.get_template(template_name)
c = Context(context or {})
subject, txt = t.render(c).split("\n", 1)
from_email = from_email if from_email else settings.DEFAULT_FROM_EMAIL
send_mail(subject=subject.split(),
message=txt,
from_email=from_email,
recipient_list=recipient_list,
**kwds)
|
191ba72a2d8b2e47363fcdbd200549ff3eef18fb
|
plex/objects/library/section.py
|
plex/objects/library/section.py
|
from plex.core.helpers import to_iterable
from plex.objects.container import Container
from plex.objects.core.base import Property
from plex.objects.directory import Directory
class Section(Directory):
uuid = Property
filters = Property(type=bool)
refreshing = Property(type=bool)
agent = Property
scanner = Property
language = Property
created_at = Property('createdAt', int)
def __transform__(self):
self.path = '/library/sections/%s' % self.key
def all(self):
response = self.http.get('all')
return self.parse(response, {
'MediaContainer': ('MediaContainer', {
'Directory': {
'artist': 'Artist',
'show': 'Show'
},
'Video': {
'movie': 'Movie'
}
})
})
class SectionContainer(Container):
filter_passes = lambda _, allowed, value: allowed is None or value in allowed
def filter(self, types=None, keys=None, titles=None):
types = to_iterable(types)
keys = to_iterable(keys)
titles = [x.lower() for x in to_iterable(titles)]
for section in self:
if not self.filter_passes(types, section.type):
continue
if not self.filter_passes(keys, section.key):
continue
if not self.filter_passes(titles, section.title.lower()):
continue
yield section
|
from plex.core.helpers import to_iterable
from plex.objects.container import Container
from plex.objects.core.base import Property
from plex.objects.directory import Directory
class Section(Directory):
uuid = Property
filters = Property(type=bool)
refreshing = Property(type=bool)
agent = Property
scanner = Property
language = Property
created_at = Property('createdAt', int)
def __transform__(self):
self.path = '/library/sections/%s' % self.key
def all(self):
response = self.http.get('all')
return self.parse(response, {
'MediaContainer': ('MediaContainer', {
'Directory': {
'artist': 'Artist',
'show': 'Show'
},
'Video': {
'movie': 'Movie'
}
})
})
class SectionContainer(Container):
filter_passes = lambda _, allowed, value: allowed is None or value in allowed
def filter(self, types=None, keys=None, titles=None):
types = to_iterable(types)
keys = to_iterable(keys)
titles = to_iterable(titles)
if titles:
# Normalize titles
titles = [x.lower() for x in titles]
for section in self:
if not self.filter_passes(types, section.type):
continue
if not self.filter_passes(keys, section.key):
continue
if not self.filter_passes(titles, section.title.lower()):
continue
yield section
|
Fix issue with "titles" in SectionContainer.filter()
|
Fix issue with "titles" in SectionContainer.filter()
|
Python
|
mit
|
fuzeman/plex.py
|
from plex.core.helpers import to_iterable
from plex.objects.container import Container
from plex.objects.core.base import Property
from plex.objects.directory import Directory
class Section(Directory):
uuid = Property
filters = Property(type=bool)
refreshing = Property(type=bool)
agent = Property
scanner = Property
language = Property
created_at = Property('createdAt', int)
def __transform__(self):
self.path = '/library/sections/%s' % self.key
def all(self):
response = self.http.get('all')
return self.parse(response, {
'MediaContainer': ('MediaContainer', {
'Directory': {
'artist': 'Artist',
'show': 'Show'
},
'Video': {
'movie': 'Movie'
}
})
})
class SectionContainer(Container):
filter_passes = lambda _, allowed, value: allowed is None or value in allowed
def filter(self, types=None, keys=None, titles=None):
types = to_iterable(types)
keys = to_iterable(keys)
titles = [x.lower() for x in to_iterable(titles)]
for section in self:
if not self.filter_passes(types, section.type):
continue
if not self.filter_passes(keys, section.key):
continue
if not self.filter_passes(titles, section.title.lower()):
continue
yield section
Fix issue with "titles" in SectionContainer.filter()
|
from plex.core.helpers import to_iterable
from plex.objects.container import Container
from plex.objects.core.base import Property
from plex.objects.directory import Directory
class Section(Directory):
uuid = Property
filters = Property(type=bool)
refreshing = Property(type=bool)
agent = Property
scanner = Property
language = Property
created_at = Property('createdAt', int)
def __transform__(self):
self.path = '/library/sections/%s' % self.key
def all(self):
response = self.http.get('all')
return self.parse(response, {
'MediaContainer': ('MediaContainer', {
'Directory': {
'artist': 'Artist',
'show': 'Show'
},
'Video': {
'movie': 'Movie'
}
})
})
class SectionContainer(Container):
filter_passes = lambda _, allowed, value: allowed is None or value in allowed
def filter(self, types=None, keys=None, titles=None):
types = to_iterable(types)
keys = to_iterable(keys)
titles = to_iterable(titles)
if titles:
# Normalize titles
titles = [x.lower() for x in titles]
for section in self:
if not self.filter_passes(types, section.type):
continue
if not self.filter_passes(keys, section.key):
continue
if not self.filter_passes(titles, section.title.lower()):
continue
yield section
|
<commit_before>from plex.core.helpers import to_iterable
from plex.objects.container import Container
from plex.objects.core.base import Property
from plex.objects.directory import Directory
class Section(Directory):
uuid = Property
filters = Property(type=bool)
refreshing = Property(type=bool)
agent = Property
scanner = Property
language = Property
created_at = Property('createdAt', int)
def __transform__(self):
self.path = '/library/sections/%s' % self.key
def all(self):
response = self.http.get('all')
return self.parse(response, {
'MediaContainer': ('MediaContainer', {
'Directory': {
'artist': 'Artist',
'show': 'Show'
},
'Video': {
'movie': 'Movie'
}
})
})
class SectionContainer(Container):
filter_passes = lambda _, allowed, value: allowed is None or value in allowed
def filter(self, types=None, keys=None, titles=None):
types = to_iterable(types)
keys = to_iterable(keys)
titles = [x.lower() for x in to_iterable(titles)]
for section in self:
if not self.filter_passes(types, section.type):
continue
if not self.filter_passes(keys, section.key):
continue
if not self.filter_passes(titles, section.title.lower()):
continue
yield section
<commit_msg>Fix issue with "titles" in SectionContainer.filter()<commit_after>
|
from plex.core.helpers import to_iterable
from plex.objects.container import Container
from plex.objects.core.base import Property
from plex.objects.directory import Directory
class Section(Directory):
uuid = Property
filters = Property(type=bool)
refreshing = Property(type=bool)
agent = Property
scanner = Property
language = Property
created_at = Property('createdAt', int)
def __transform__(self):
self.path = '/library/sections/%s' % self.key
def all(self):
response = self.http.get('all')
return self.parse(response, {
'MediaContainer': ('MediaContainer', {
'Directory': {
'artist': 'Artist',
'show': 'Show'
},
'Video': {
'movie': 'Movie'
}
})
})
class SectionContainer(Container):
filter_passes = lambda _, allowed, value: allowed is None or value in allowed
def filter(self, types=None, keys=None, titles=None):
types = to_iterable(types)
keys = to_iterable(keys)
titles = to_iterable(titles)
if titles:
# Normalize titles
titles = [x.lower() for x in titles]
for section in self:
if not self.filter_passes(types, section.type):
continue
if not self.filter_passes(keys, section.key):
continue
if not self.filter_passes(titles, section.title.lower()):
continue
yield section
|
from plex.core.helpers import to_iterable
from plex.objects.container import Container
from plex.objects.core.base import Property
from plex.objects.directory import Directory
class Section(Directory):
uuid = Property
filters = Property(type=bool)
refreshing = Property(type=bool)
agent = Property
scanner = Property
language = Property
created_at = Property('createdAt', int)
def __transform__(self):
self.path = '/library/sections/%s' % self.key
def all(self):
response = self.http.get('all')
return self.parse(response, {
'MediaContainer': ('MediaContainer', {
'Directory': {
'artist': 'Artist',
'show': 'Show'
},
'Video': {
'movie': 'Movie'
}
})
})
class SectionContainer(Container):
filter_passes = lambda _, allowed, value: allowed is None or value in allowed
def filter(self, types=None, keys=None, titles=None):
types = to_iterable(types)
keys = to_iterable(keys)
titles = [x.lower() for x in to_iterable(titles)]
for section in self:
if not self.filter_passes(types, section.type):
continue
if not self.filter_passes(keys, section.key):
continue
if not self.filter_passes(titles, section.title.lower()):
continue
yield section
Fix issue with "titles" in SectionContainer.filter()from plex.core.helpers import to_iterable
from plex.objects.container import Container
from plex.objects.core.base import Property
from plex.objects.directory import Directory
class Section(Directory):
uuid = Property
filters = Property(type=bool)
refreshing = Property(type=bool)
agent = Property
scanner = Property
language = Property
created_at = Property('createdAt', int)
def __transform__(self):
self.path = '/library/sections/%s' % self.key
def all(self):
response = self.http.get('all')
return self.parse(response, {
'MediaContainer': ('MediaContainer', {
'Directory': {
'artist': 'Artist',
'show': 'Show'
},
'Video': {
'movie': 'Movie'
}
})
})
class SectionContainer(Container):
filter_passes = lambda _, allowed, value: allowed is None or value in allowed
def filter(self, types=None, keys=None, titles=None):
types = to_iterable(types)
keys = to_iterable(keys)
titles = to_iterable(titles)
if titles:
# Normalize titles
titles = [x.lower() for x in titles]
for section in self:
if not self.filter_passes(types, section.type):
continue
if not self.filter_passes(keys, section.key):
continue
if not self.filter_passes(titles, section.title.lower()):
continue
yield section
|
<commit_before>from plex.core.helpers import to_iterable
from plex.objects.container import Container
from plex.objects.core.base import Property
from plex.objects.directory import Directory
class Section(Directory):
uuid = Property
filters = Property(type=bool)
refreshing = Property(type=bool)
agent = Property
scanner = Property
language = Property
created_at = Property('createdAt', int)
def __transform__(self):
self.path = '/library/sections/%s' % self.key
def all(self):
response = self.http.get('all')
return self.parse(response, {
'MediaContainer': ('MediaContainer', {
'Directory': {
'artist': 'Artist',
'show': 'Show'
},
'Video': {
'movie': 'Movie'
}
})
})
class SectionContainer(Container):
filter_passes = lambda _, allowed, value: allowed is None or value in allowed
def filter(self, types=None, keys=None, titles=None):
types = to_iterable(types)
keys = to_iterable(keys)
titles = [x.lower() for x in to_iterable(titles)]
for section in self:
if not self.filter_passes(types, section.type):
continue
if not self.filter_passes(keys, section.key):
continue
if not self.filter_passes(titles, section.title.lower()):
continue
yield section
<commit_msg>Fix issue with "titles" in SectionContainer.filter()<commit_after>from plex.core.helpers import to_iterable
from plex.objects.container import Container
from plex.objects.core.base import Property
from plex.objects.directory import Directory
class Section(Directory):
uuid = Property
filters = Property(type=bool)
refreshing = Property(type=bool)
agent = Property
scanner = Property
language = Property
created_at = Property('createdAt', int)
def __transform__(self):
self.path = '/library/sections/%s' % self.key
def all(self):
response = self.http.get('all')
return self.parse(response, {
'MediaContainer': ('MediaContainer', {
'Directory': {
'artist': 'Artist',
'show': 'Show'
},
'Video': {
'movie': 'Movie'
}
})
})
class SectionContainer(Container):
filter_passes = lambda _, allowed, value: allowed is None or value in allowed
def filter(self, types=None, keys=None, titles=None):
types = to_iterable(types)
keys = to_iterable(keys)
titles = to_iterable(titles)
if titles:
# Normalize titles
titles = [x.lower() for x in titles]
for section in self:
if not self.filter_passes(types, section.type):
continue
if not self.filter_passes(keys, section.key):
continue
if not self.filter_passes(titles, section.title.lower()):
continue
yield section
|
1cdd8add2807ecedb7efb23428075423dcf9bfd2
|
ehriportal/suggestions/forms.py
|
ehriportal/suggestions/forms.py
|
"""Form for submitting suggestions."""
from django import forms
from suggestions import models
class SuggestionForm(forms.ModelForm):
name = forms.CharField(max_length=100, label="Name",
widget=forms.TextInput(attrs={'placeholder': 'Name'}))
email = forms.EmailField(label="Email", required=False,
widget=forms.TextInput(attrs={'placeholder': 'Email (Optional)'}))
types = forms.ModelMultipleChoiceField(
required=False,
queryset=models.SuggestionType.objects.all().order_by("name"))
text = forms.CharField(widget=forms.Textarea(
attrs={'rows':5, 'placeholder': "Comments"}))
class Meta:
model = models.Suggestion
fields = ("name", "email", "types", "text",)
|
"""Form for submitting suggestions."""
from django import forms
from django.utils.translation import ugettext as _
from suggestions import models
class SuggestionForm(forms.ModelForm):
name = forms.CharField(max_length=100, label=_("Name"),
widget=forms.TextInput(attrs={'placeholder': _('Name')}))
email = forms.EmailField(label=_("Email"), required=False,
widget=forms.TextInput(attrs={'placeholder': _('Email (Optional)')}))
types = forms.ModelMultipleChoiceField(
required=False,
queryset=models.SuggestionType.objects.all().order_by(_("name")))
text = forms.CharField(widget=forms.Textarea(
attrs={'rows':5, 'placeholder': _("Let us know what you think...")}))
class Meta:
model = models.Suggestion
fields = ("name", "email", "types", "text",)
|
Add some translation stuff on the suggestion form
|
Add some translation stuff on the suggestion form
|
Python
|
mit
|
mikesname/ehri-collections,mikesname/ehri-collections,mikesname/ehri-collections
|
"""Form for submitting suggestions."""
from django import forms
from suggestions import models
class SuggestionForm(forms.ModelForm):
name = forms.CharField(max_length=100, label="Name",
widget=forms.TextInput(attrs={'placeholder': 'Name'}))
email = forms.EmailField(label="Email", required=False,
widget=forms.TextInput(attrs={'placeholder': 'Email (Optional)'}))
types = forms.ModelMultipleChoiceField(
required=False,
queryset=models.SuggestionType.objects.all().order_by("name"))
text = forms.CharField(widget=forms.Textarea(
attrs={'rows':5, 'placeholder': "Comments"}))
class Meta:
model = models.Suggestion
fields = ("name", "email", "types", "text",)
Add some translation stuff on the suggestion form
|
"""Form for submitting suggestions."""
from django import forms
from django.utils.translation import ugettext as _
from suggestions import models
class SuggestionForm(forms.ModelForm):
name = forms.CharField(max_length=100, label=_("Name"),
widget=forms.TextInput(attrs={'placeholder': _('Name')}))
email = forms.EmailField(label=_("Email"), required=False,
widget=forms.TextInput(attrs={'placeholder': _('Email (Optional)')}))
types = forms.ModelMultipleChoiceField(
required=False,
queryset=models.SuggestionType.objects.all().order_by(_("name")))
text = forms.CharField(widget=forms.Textarea(
attrs={'rows':5, 'placeholder': _("Let us know what you think...")}))
class Meta:
model = models.Suggestion
fields = ("name", "email", "types", "text",)
|
<commit_before>"""Form for submitting suggestions."""
from django import forms
from suggestions import models
class SuggestionForm(forms.ModelForm):
name = forms.CharField(max_length=100, label="Name",
widget=forms.TextInput(attrs={'placeholder': 'Name'}))
email = forms.EmailField(label="Email", required=False,
widget=forms.TextInput(attrs={'placeholder': 'Email (Optional)'}))
types = forms.ModelMultipleChoiceField(
required=False,
queryset=models.SuggestionType.objects.all().order_by("name"))
text = forms.CharField(widget=forms.Textarea(
attrs={'rows':5, 'placeholder': "Comments"}))
class Meta:
model = models.Suggestion
fields = ("name", "email", "types", "text",)
<commit_msg>Add some translation stuff on the suggestion form<commit_after>
|
"""Form for submitting suggestions."""
from django import forms
from django.utils.translation import ugettext as _
from suggestions import models
class SuggestionForm(forms.ModelForm):
name = forms.CharField(max_length=100, label=_("Name"),
widget=forms.TextInput(attrs={'placeholder': _('Name')}))
email = forms.EmailField(label=_("Email"), required=False,
widget=forms.TextInput(attrs={'placeholder': _('Email (Optional)')}))
types = forms.ModelMultipleChoiceField(
required=False,
queryset=models.SuggestionType.objects.all().order_by(_("name")))
text = forms.CharField(widget=forms.Textarea(
attrs={'rows':5, 'placeholder': _("Let us know what you think...")}))
class Meta:
model = models.Suggestion
fields = ("name", "email", "types", "text",)
|
"""Form for submitting suggestions."""
from django import forms
from suggestions import models
class SuggestionForm(forms.ModelForm):
name = forms.CharField(max_length=100, label="Name",
widget=forms.TextInput(attrs={'placeholder': 'Name'}))
email = forms.EmailField(label="Email", required=False,
widget=forms.TextInput(attrs={'placeholder': 'Email (Optional)'}))
types = forms.ModelMultipleChoiceField(
required=False,
queryset=models.SuggestionType.objects.all().order_by("name"))
text = forms.CharField(widget=forms.Textarea(
attrs={'rows':5, 'placeholder': "Comments"}))
class Meta:
model = models.Suggestion
fields = ("name", "email", "types", "text",)
Add some translation stuff on the suggestion form"""Form for submitting suggestions."""
from django import forms
from django.utils.translation import ugettext as _
from suggestions import models
class SuggestionForm(forms.ModelForm):
name = forms.CharField(max_length=100, label=_("Name"),
widget=forms.TextInput(attrs={'placeholder': _('Name')}))
email = forms.EmailField(label=_("Email"), required=False,
widget=forms.TextInput(attrs={'placeholder': _('Email (Optional)')}))
types = forms.ModelMultipleChoiceField(
required=False,
queryset=models.SuggestionType.objects.all().order_by(_("name")))
text = forms.CharField(widget=forms.Textarea(
attrs={'rows':5, 'placeholder': _("Let us know what you think...")}))
class Meta:
model = models.Suggestion
fields = ("name", "email", "types", "text",)
|
<commit_before>"""Form for submitting suggestions."""
from django import forms
from suggestions import models
class SuggestionForm(forms.ModelForm):
name = forms.CharField(max_length=100, label="Name",
widget=forms.TextInput(attrs={'placeholder': 'Name'}))
email = forms.EmailField(label="Email", required=False,
widget=forms.TextInput(attrs={'placeholder': 'Email (Optional)'}))
types = forms.ModelMultipleChoiceField(
required=False,
queryset=models.SuggestionType.objects.all().order_by("name"))
text = forms.CharField(widget=forms.Textarea(
attrs={'rows':5, 'placeholder': "Comments"}))
class Meta:
model = models.Suggestion
fields = ("name", "email", "types", "text",)
<commit_msg>Add some translation stuff on the suggestion form<commit_after>"""Form for submitting suggestions."""
from django import forms
from django.utils.translation import ugettext as _
from suggestions import models
class SuggestionForm(forms.ModelForm):
name = forms.CharField(max_length=100, label=_("Name"),
widget=forms.TextInput(attrs={'placeholder': _('Name')}))
email = forms.EmailField(label=_("Email"), required=False,
widget=forms.TextInput(attrs={'placeholder': _('Email (Optional)')}))
types = forms.ModelMultipleChoiceField(
required=False,
queryset=models.SuggestionType.objects.all().order_by(_("name")))
text = forms.CharField(widget=forms.Textarea(
attrs={'rows':5, 'placeholder': _("Let us know what you think...")}))
class Meta:
model = models.Suggestion
fields = ("name", "email", "types", "text",)
|
c21c2f4879c48b6a881b480df7bbfbff47ffffcc
|
src/mmw/apps/modeling/calcs.py
|
src/mmw/apps/modeling/calcs.py
|
# -*- coding: utf-8 -*-
from __future__ import print_function
from __future__ import unicode_literals
from __future__ import absolute_import
from django.contrib.gis.geos import GEOSGeometry
from django.conf import settings
from apps.modeling.mapshed.calcs import animal_energy_units
ANIMAL_KEYS = settings.GWLFE_CONFIG['AnimalKeys']
ANIMAL_NAMES = settings.GWLFE_DEFAULTS['AnimalName']
ANIMAL_DISPLAY_NAMES = dict(zip(ANIMAL_KEYS, ANIMAL_NAMES))
def animal_population(geojson):
"""
Given a GeoJSON shape, call MapShed's `animal_energy_units` method
to calculate the area-weighted county animal population. Returns a
dictionary to append to the outgoing JSON for analysis results.
"""
geom = GEOSGeometry(geojson, srid=4326)
aeu_for_geom = animal_energy_units(geom)[2]
aeu_return_values = []
for animal, aeu_value in aeu_for_geom.iteritems():
aeu_return_values.append({
'type': ANIMAL_DISPLAY_NAMES[animal],
'aeu': int(round(aeu_value)),
})
return {
'displayName': 'Animals',
'name': 'animals',
'categories': aeu_return_values
}
|
# -*- coding: utf-8 -*-
from __future__ import print_function
from __future__ import unicode_literals
from __future__ import absolute_import
from django.contrib.gis.geos import GEOSGeometry
from django.conf import settings
from apps.modeling.mapshed.calcs import animal_energy_units
ANIMAL_KEYS = settings.GWLFE_CONFIG['AnimalKeys']
ANIMAL_NAMES = settings.GWLFE_DEFAULTS['AnimalName']
ANIMAL_DISPLAY_NAMES = dict(zip(ANIMAL_KEYS, ANIMAL_NAMES))
def animal_population(geojson):
"""
Given a GeoJSON shape, call MapShed's `animal_energy_units` method
to calculate the area-weighted county animal population. Returns a
dictionary to append to the outgoing JSON for analysis results.
"""
geom = GEOSGeometry(geojson, srid=4326)
aeu_for_geom = animal_energy_units(geom)[2]
aeu_return_values = []
for animal, aeu_value in aeu_for_geom.iteritems():
aeu_return_values.append({
'type': ANIMAL_DISPLAY_NAMES[animal],
'aeu': int(aeu_value),
})
return {
'displayName': 'Animals',
'name': 'animals',
'categories': aeu_return_values
}
|
Align animal population counts rounding
|
Align animal population counts rounding
- round animal population counts down for the frontend "analyze" display to match the MapShed implementation
|
Python
|
apache-2.0
|
WikiWatershed/model-my-watershed,project-icp/bee-pollinator-app,project-icp/bee-pollinator-app,WikiWatershed/model-my-watershed,project-icp/bee-pollinator-app,kdeloach/model-my-watershed,WikiWatershed/model-my-watershed,kdeloach/model-my-watershed,kdeloach/model-my-watershed,project-icp/bee-pollinator-app,WikiWatershed/model-my-watershed,WikiWatershed/model-my-watershed,kdeloach/model-my-watershed,kdeloach/model-my-watershed
|
# -*- coding: utf-8 -*-
from __future__ import print_function
from __future__ import unicode_literals
from __future__ import absolute_import
from django.contrib.gis.geos import GEOSGeometry
from django.conf import settings
from apps.modeling.mapshed.calcs import animal_energy_units
ANIMAL_KEYS = settings.GWLFE_CONFIG['AnimalKeys']
ANIMAL_NAMES = settings.GWLFE_DEFAULTS['AnimalName']
ANIMAL_DISPLAY_NAMES = dict(zip(ANIMAL_KEYS, ANIMAL_NAMES))
def animal_population(geojson):
"""
Given a GeoJSON shape, call MapShed's `animal_energy_units` method
to calculate the area-weighted county animal population. Returns a
dictionary to append to the outgoing JSON for analysis results.
"""
geom = GEOSGeometry(geojson, srid=4326)
aeu_for_geom = animal_energy_units(geom)[2]
aeu_return_values = []
for animal, aeu_value in aeu_for_geom.iteritems():
aeu_return_values.append({
'type': ANIMAL_DISPLAY_NAMES[animal],
'aeu': int(round(aeu_value)),
})
return {
'displayName': 'Animals',
'name': 'animals',
'categories': aeu_return_values
}
Align animal population counts rounding
- round animal population counts down for the frontend "analyze" display to match the MapShed implementation
|
# -*- coding: utf-8 -*-
from __future__ import print_function
from __future__ import unicode_literals
from __future__ import absolute_import
from django.contrib.gis.geos import GEOSGeometry
from django.conf import settings
from apps.modeling.mapshed.calcs import animal_energy_units
ANIMAL_KEYS = settings.GWLFE_CONFIG['AnimalKeys']
ANIMAL_NAMES = settings.GWLFE_DEFAULTS['AnimalName']
ANIMAL_DISPLAY_NAMES = dict(zip(ANIMAL_KEYS, ANIMAL_NAMES))
def animal_population(geojson):
"""
Given a GeoJSON shape, call MapShed's `animal_energy_units` method
to calculate the area-weighted county animal population. Returns a
dictionary to append to the outgoing JSON for analysis results.
"""
geom = GEOSGeometry(geojson, srid=4326)
aeu_for_geom = animal_energy_units(geom)[2]
aeu_return_values = []
for animal, aeu_value in aeu_for_geom.iteritems():
aeu_return_values.append({
'type': ANIMAL_DISPLAY_NAMES[animal],
'aeu': int(aeu_value),
})
return {
'displayName': 'Animals',
'name': 'animals',
'categories': aeu_return_values
}
|
<commit_before># -*- coding: utf-8 -*-
from __future__ import print_function
from __future__ import unicode_literals
from __future__ import absolute_import
from django.contrib.gis.geos import GEOSGeometry
from django.conf import settings
from apps.modeling.mapshed.calcs import animal_energy_units
ANIMAL_KEYS = settings.GWLFE_CONFIG['AnimalKeys']
ANIMAL_NAMES = settings.GWLFE_DEFAULTS['AnimalName']
ANIMAL_DISPLAY_NAMES = dict(zip(ANIMAL_KEYS, ANIMAL_NAMES))
def animal_population(geojson):
"""
Given a GeoJSON shape, call MapShed's `animal_energy_units` method
to calculate the area-weighted county animal population. Returns a
dictionary to append to the outgoing JSON for analysis results.
"""
geom = GEOSGeometry(geojson, srid=4326)
aeu_for_geom = animal_energy_units(geom)[2]
aeu_return_values = []
for animal, aeu_value in aeu_for_geom.iteritems():
aeu_return_values.append({
'type': ANIMAL_DISPLAY_NAMES[animal],
'aeu': int(round(aeu_value)),
})
return {
'displayName': 'Animals',
'name': 'animals',
'categories': aeu_return_values
}
<commit_msg>Align animal population counts rounding
- round animal population counts down for the frontend "analyze" display to match the MapShed implementation<commit_after>
|
# -*- coding: utf-8 -*-
from __future__ import print_function
from __future__ import unicode_literals
from __future__ import absolute_import
from django.contrib.gis.geos import GEOSGeometry
from django.conf import settings
from apps.modeling.mapshed.calcs import animal_energy_units
ANIMAL_KEYS = settings.GWLFE_CONFIG['AnimalKeys']
ANIMAL_NAMES = settings.GWLFE_DEFAULTS['AnimalName']
ANIMAL_DISPLAY_NAMES = dict(zip(ANIMAL_KEYS, ANIMAL_NAMES))
def animal_population(geojson):
"""
Given a GeoJSON shape, call MapShed's `animal_energy_units` method
to calculate the area-weighted county animal population. Returns a
dictionary to append to the outgoing JSON for analysis results.
"""
geom = GEOSGeometry(geojson, srid=4326)
aeu_for_geom = animal_energy_units(geom)[2]
aeu_return_values = []
for animal, aeu_value in aeu_for_geom.iteritems():
aeu_return_values.append({
'type': ANIMAL_DISPLAY_NAMES[animal],
'aeu': int(aeu_value),
})
return {
'displayName': 'Animals',
'name': 'animals',
'categories': aeu_return_values
}
|
# -*- coding: utf-8 -*-
from __future__ import print_function
from __future__ import unicode_literals
from __future__ import absolute_import
from django.contrib.gis.geos import GEOSGeometry
from django.conf import settings
from apps.modeling.mapshed.calcs import animal_energy_units
ANIMAL_KEYS = settings.GWLFE_CONFIG['AnimalKeys']
ANIMAL_NAMES = settings.GWLFE_DEFAULTS['AnimalName']
ANIMAL_DISPLAY_NAMES = dict(zip(ANIMAL_KEYS, ANIMAL_NAMES))
def animal_population(geojson):
"""
Given a GeoJSON shape, call MapShed's `animal_energy_units` method
to calculate the area-weighted county animal population. Returns a
dictionary to append to the outgoing JSON for analysis results.
"""
geom = GEOSGeometry(geojson, srid=4326)
aeu_for_geom = animal_energy_units(geom)[2]
aeu_return_values = []
for animal, aeu_value in aeu_for_geom.iteritems():
aeu_return_values.append({
'type': ANIMAL_DISPLAY_NAMES[animal],
'aeu': int(round(aeu_value)),
})
return {
'displayName': 'Animals',
'name': 'animals',
'categories': aeu_return_values
}
Align animal population counts rounding
- round animal population counts down for the frontend "analyze" display to match the MapShed implementation# -*- coding: utf-8 -*-
from __future__ import print_function
from __future__ import unicode_literals
from __future__ import absolute_import
from django.contrib.gis.geos import GEOSGeometry
from django.conf import settings
from apps.modeling.mapshed.calcs import animal_energy_units
ANIMAL_KEYS = settings.GWLFE_CONFIG['AnimalKeys']
ANIMAL_NAMES = settings.GWLFE_DEFAULTS['AnimalName']
ANIMAL_DISPLAY_NAMES = dict(zip(ANIMAL_KEYS, ANIMAL_NAMES))
def animal_population(geojson):
"""
Given a GeoJSON shape, call MapShed's `animal_energy_units` method
to calculate the area-weighted county animal population. Returns a
dictionary to append to the outgoing JSON for analysis results.
"""
geom = GEOSGeometry(geojson, srid=4326)
aeu_for_geom = animal_energy_units(geom)[2]
aeu_return_values = []
for animal, aeu_value in aeu_for_geom.iteritems():
aeu_return_values.append({
'type': ANIMAL_DISPLAY_NAMES[animal],
'aeu': int(aeu_value),
})
return {
'displayName': 'Animals',
'name': 'animals',
'categories': aeu_return_values
}
|
<commit_before># -*- coding: utf-8 -*-
from __future__ import print_function
from __future__ import unicode_literals
from __future__ import absolute_import
from django.contrib.gis.geos import GEOSGeometry
from django.conf import settings
from apps.modeling.mapshed.calcs import animal_energy_units
ANIMAL_KEYS = settings.GWLFE_CONFIG['AnimalKeys']
ANIMAL_NAMES = settings.GWLFE_DEFAULTS['AnimalName']
ANIMAL_DISPLAY_NAMES = dict(zip(ANIMAL_KEYS, ANIMAL_NAMES))
def animal_population(geojson):
"""
Given a GeoJSON shape, call MapShed's `animal_energy_units` method
to calculate the area-weighted county animal population. Returns a
dictionary to append to the outgoing JSON for analysis results.
"""
geom = GEOSGeometry(geojson, srid=4326)
aeu_for_geom = animal_energy_units(geom)[2]
aeu_return_values = []
for animal, aeu_value in aeu_for_geom.iteritems():
aeu_return_values.append({
'type': ANIMAL_DISPLAY_NAMES[animal],
'aeu': int(round(aeu_value)),
})
return {
'displayName': 'Animals',
'name': 'animals',
'categories': aeu_return_values
}
<commit_msg>Align animal population counts rounding
- round animal population counts down for the frontend "analyze" display to match the MapShed implementation<commit_after># -*- coding: utf-8 -*-
from __future__ import print_function
from __future__ import unicode_literals
from __future__ import absolute_import
from django.contrib.gis.geos import GEOSGeometry
from django.conf import settings
from apps.modeling.mapshed.calcs import animal_energy_units
ANIMAL_KEYS = settings.GWLFE_CONFIG['AnimalKeys']
ANIMAL_NAMES = settings.GWLFE_DEFAULTS['AnimalName']
ANIMAL_DISPLAY_NAMES = dict(zip(ANIMAL_KEYS, ANIMAL_NAMES))
def animal_population(geojson):
"""
Given a GeoJSON shape, call MapShed's `animal_energy_units` method
to calculate the area-weighted county animal population. Returns a
dictionary to append to the outgoing JSON for analysis results.
"""
geom = GEOSGeometry(geojson, srid=4326)
aeu_for_geom = animal_energy_units(geom)[2]
aeu_return_values = []
for animal, aeu_value in aeu_for_geom.iteritems():
aeu_return_values.append({
'type': ANIMAL_DISPLAY_NAMES[animal],
'aeu': int(aeu_value),
})
return {
'displayName': 'Animals',
'name': 'animals',
'categories': aeu_return_values
}
|
ae0158c49224464084e0302897c91e9c9fa7ffbe
|
webview.py
|
webview.py
|
"""Main module for pyicemon webview"""
import SimpleHTTPServer
import SocketServer
import threading
import sys
import os
import logging
from monitor import Monitor
from publishers import WebsocketPublisher
from connection import Connection
PORT = 80
if __name__ == "__main__":
logging.basicConfig(level=logging.WARN, filename="pyicemon.log")
# Serve static HTTP content.
os.chdir("static")
handler = SimpleHTTPServer.SimpleHTTPRequestHandler
httpd = SocketServer.TCPServer(("", PORT), handler)
t = threading.Thread(target=httpd.serve_forever)
t.daemon = True
t.start()
# Fire up pyicemon.
host, port = sys.argv[1], sys.argv[2]
mon = Monitor(Connection(host, int(port)))
mon.addPublisher(WebsocketPublisher(port=9999))
mon.run()
|
"""Main module for pyicemon webview"""
# Handle difference in module name between python2/3.
try:
from SimpleHTTPServer import SimpleHTTPRequestHandler
except ImportError:
from http.server import SimpleHTTPRequestHandler
try:
from SocketServer import TCPServer
except ImportError:
from socketserver import TCPServer
import threading
import sys
import os
import logging
from monitor import Monitor
from publishers import WebsocketPublisher
from connection import Connection
PORT = 80
if __name__ == "__main__":
logging.basicConfig(level=logging.WARN, filename="pyicemon.log")
# Serve static HTTP content.
os.chdir("static")
handler = SimpleHTTPRequestHandler
httpd = TCPServer(("", PORT), handler)
t = threading.Thread(target=httpd.serve_forever)
t.daemon = True
t.start()
# Fire up pyicemon.
host, port = sys.argv[1], sys.argv[2]
mon = Monitor(Connection(host, int(port)))
mon.addPublisher(WebsocketPublisher(port=9999))
mon.run()
|
Make it work with python3.
|
Make it work with python3.
|
Python
|
mit
|
DiscoViking/pyicemon,DiscoViking/pyicemon
|
"""Main module for pyicemon webview"""
import SimpleHTTPServer
import SocketServer
import threading
import sys
import os
import logging
from monitor import Monitor
from publishers import WebsocketPublisher
from connection import Connection
PORT = 80
if __name__ == "__main__":
logging.basicConfig(level=logging.WARN, filename="pyicemon.log")
# Serve static HTTP content.
os.chdir("static")
handler = SimpleHTTPServer.SimpleHTTPRequestHandler
httpd = SocketServer.TCPServer(("", PORT), handler)
t = threading.Thread(target=httpd.serve_forever)
t.daemon = True
t.start()
# Fire up pyicemon.
host, port = sys.argv[1], sys.argv[2]
mon = Monitor(Connection(host, int(port)))
mon.addPublisher(WebsocketPublisher(port=9999))
mon.run()
Make it work with python3.
|
"""Main module for pyicemon webview"""
# Handle difference in module name between python2/3.
try:
from SimpleHTTPServer import SimpleHTTPRequestHandler
except ImportError:
from http.server import SimpleHTTPRequestHandler
try:
from SocketServer import TCPServer
except ImportError:
from socketserver import TCPServer
import threading
import sys
import os
import logging
from monitor import Monitor
from publishers import WebsocketPublisher
from connection import Connection
PORT = 80
if __name__ == "__main__":
logging.basicConfig(level=logging.WARN, filename="pyicemon.log")
# Serve static HTTP content.
os.chdir("static")
handler = SimpleHTTPRequestHandler
httpd = TCPServer(("", PORT), handler)
t = threading.Thread(target=httpd.serve_forever)
t.daemon = True
t.start()
# Fire up pyicemon.
host, port = sys.argv[1], sys.argv[2]
mon = Monitor(Connection(host, int(port)))
mon.addPublisher(WebsocketPublisher(port=9999))
mon.run()
|
<commit_before>"""Main module for pyicemon webview"""
import SimpleHTTPServer
import SocketServer
import threading
import sys
import os
import logging
from monitor import Monitor
from publishers import WebsocketPublisher
from connection import Connection
PORT = 80
if __name__ == "__main__":
logging.basicConfig(level=logging.WARN, filename="pyicemon.log")
# Serve static HTTP content.
os.chdir("static")
handler = SimpleHTTPServer.SimpleHTTPRequestHandler
httpd = SocketServer.TCPServer(("", PORT), handler)
t = threading.Thread(target=httpd.serve_forever)
t.daemon = True
t.start()
# Fire up pyicemon.
host, port = sys.argv[1], sys.argv[2]
mon = Monitor(Connection(host, int(port)))
mon.addPublisher(WebsocketPublisher(port=9999))
mon.run()
<commit_msg>Make it work with python3.<commit_after>
|
"""Main module for pyicemon webview"""
# Handle difference in module name between python2/3.
try:
from SimpleHTTPServer import SimpleHTTPRequestHandler
except ImportError:
from http.server import SimpleHTTPRequestHandler
try:
from SocketServer import TCPServer
except ImportError:
from socketserver import TCPServer
import threading
import sys
import os
import logging
from monitor import Monitor
from publishers import WebsocketPublisher
from connection import Connection
PORT = 80
if __name__ == "__main__":
logging.basicConfig(level=logging.WARN, filename="pyicemon.log")
# Serve static HTTP content.
os.chdir("static")
handler = SimpleHTTPRequestHandler
httpd = TCPServer(("", PORT), handler)
t = threading.Thread(target=httpd.serve_forever)
t.daemon = True
t.start()
# Fire up pyicemon.
host, port = sys.argv[1], sys.argv[2]
mon = Monitor(Connection(host, int(port)))
mon.addPublisher(WebsocketPublisher(port=9999))
mon.run()
|
"""Main module for pyicemon webview"""
import SimpleHTTPServer
import SocketServer
import threading
import sys
import os
import logging
from monitor import Monitor
from publishers import WebsocketPublisher
from connection import Connection
PORT = 80
if __name__ == "__main__":
logging.basicConfig(level=logging.WARN, filename="pyicemon.log")
# Serve static HTTP content.
os.chdir("static")
handler = SimpleHTTPServer.SimpleHTTPRequestHandler
httpd = SocketServer.TCPServer(("", PORT), handler)
t = threading.Thread(target=httpd.serve_forever)
t.daemon = True
t.start()
# Fire up pyicemon.
host, port = sys.argv[1], sys.argv[2]
mon = Monitor(Connection(host, int(port)))
mon.addPublisher(WebsocketPublisher(port=9999))
mon.run()
Make it work with python3."""Main module for pyicemon webview"""
# Handle difference in module name between python2/3.
try:
from SimpleHTTPServer import SimpleHTTPRequestHandler
except ImportError:
from http.server import SimpleHTTPRequestHandler
try:
from SocketServer import TCPServer
except ImportError:
from socketserver import TCPServer
import threading
import sys
import os
import logging
from monitor import Monitor
from publishers import WebsocketPublisher
from connection import Connection
PORT = 80
if __name__ == "__main__":
logging.basicConfig(level=logging.WARN, filename="pyicemon.log")
# Serve static HTTP content.
os.chdir("static")
handler = SimpleHTTPRequestHandler
httpd = TCPServer(("", PORT), handler)
t = threading.Thread(target=httpd.serve_forever)
t.daemon = True
t.start()
# Fire up pyicemon.
host, port = sys.argv[1], sys.argv[2]
mon = Monitor(Connection(host, int(port)))
mon.addPublisher(WebsocketPublisher(port=9999))
mon.run()
|
<commit_before>"""Main module for pyicemon webview"""
import SimpleHTTPServer
import SocketServer
import threading
import sys
import os
import logging
from monitor import Monitor
from publishers import WebsocketPublisher
from connection import Connection
PORT = 80
if __name__ == "__main__":
logging.basicConfig(level=logging.WARN, filename="pyicemon.log")
# Serve static HTTP content.
os.chdir("static")
handler = SimpleHTTPServer.SimpleHTTPRequestHandler
httpd = SocketServer.TCPServer(("", PORT), handler)
t = threading.Thread(target=httpd.serve_forever)
t.daemon = True
t.start()
# Fire up pyicemon.
host, port = sys.argv[1], sys.argv[2]
mon = Monitor(Connection(host, int(port)))
mon.addPublisher(WebsocketPublisher(port=9999))
mon.run()
<commit_msg>Make it work with python3.<commit_after>"""Main module for pyicemon webview"""
# Handle difference in module name between python2/3.
try:
from SimpleHTTPServer import SimpleHTTPRequestHandler
except ImportError:
from http.server import SimpleHTTPRequestHandler
try:
from SocketServer import TCPServer
except ImportError:
from socketserver import TCPServer
import threading
import sys
import os
import logging
from monitor import Monitor
from publishers import WebsocketPublisher
from connection import Connection
PORT = 80
if __name__ == "__main__":
logging.basicConfig(level=logging.WARN, filename="pyicemon.log")
# Serve static HTTP content.
os.chdir("static")
handler = SimpleHTTPRequestHandler
httpd = TCPServer(("", PORT), handler)
t = threading.Thread(target=httpd.serve_forever)
t.daemon = True
t.start()
# Fire up pyicemon.
host, port = sys.argv[1], sys.argv[2]
mon = Monitor(Connection(host, int(port)))
mon.addPublisher(WebsocketPublisher(port=9999))
mon.run()
|
580eb57f68a8501cae925f747e94a8edb2c6a028
|
accounts/tests.py
|
accounts/tests.py
|
"""accounts app unittests
"""
from django.test import TestCase
from django.contrib.auth import get_user_model
class WelcomePageTest(TestCase):
"""Tests relating to the welcome_page view.
"""
def test_uses_welcome_template(self):
"""The root url should response with the welcome page template.
"""
response = self.client.get('/')
self.assertTemplateUsed(response, 'accounts/welcome.html')
class UserModelTest(TestCase):
"""Tests for passwordless user model.
"""
def test_user_valid_with_only_email(self):
"""Should not raise if the user model is happy with email only
"""
user = get_user_model()(email='newvisitor@example.com')
user.full_clean()
def test_users_are_authenticated(self):
"""User objects should be authenticated for views/templates.
"""
user = get_user_model()()
self.assertTrue(user.is_authenticated())
|
"""accounts app unittests
"""
from django.test import TestCase
from django.contrib.auth import get_user_model
from accounts.models import LoginToken
TEST_EMAIL = 'newvisitor@example.com'
class WelcomePageTest(TestCase):
"""Tests relating to the welcome_page view.
"""
def test_uses_welcome_template(self):
"""The root url should response with the welcome page template.
"""
response = self.client.get('/')
self.assertTemplateUsed(response, 'accounts/welcome.html')
class UserModelTest(TestCase):
"""Tests for passwordless user model.
"""
def test_user_valid_with_only_email(self):
"""Should not raise if the user model is happy with email only.
"""
user = get_user_model()(email=TEST_EMAIL)
user.full_clean()
def test_users_are_authenticated(self):
"""User objects should be authenticated for views/templates.
"""
user = get_user_model()()
self.assertTrue(user.is_authenticated())
class TokenModelTest(TestCase):
"""Tests for login token model.
"""
def test_unique_tokens_generated(self):
"""Two tokens generated should be unique.
"""
token1 = LoginToken(TEST_EMAIL)
token2 = LoginToken(TEST_EMAIL)
self.assertNotEqual(token1, token2)
|
Add unit test for LoginToken model
|
Add unit test for LoginToken model
|
Python
|
mit
|
randomic/aniauth-tdd,randomic/aniauth-tdd
|
"""accounts app unittests
"""
from django.test import TestCase
from django.contrib.auth import get_user_model
class WelcomePageTest(TestCase):
"""Tests relating to the welcome_page view.
"""
def test_uses_welcome_template(self):
"""The root url should response with the welcome page template.
"""
response = self.client.get('/')
self.assertTemplateUsed(response, 'accounts/welcome.html')
class UserModelTest(TestCase):
"""Tests for passwordless user model.
"""
def test_user_valid_with_only_email(self):
"""Should not raise if the user model is happy with email only
"""
user = get_user_model()(email='newvisitor@example.com')
user.full_clean()
def test_users_are_authenticated(self):
"""User objects should be authenticated for views/templates.
"""
user = get_user_model()()
self.assertTrue(user.is_authenticated())
Add unit test for LoginToken model
|
"""accounts app unittests
"""
from django.test import TestCase
from django.contrib.auth import get_user_model
from accounts.models import LoginToken
TEST_EMAIL = 'newvisitor@example.com'
class WelcomePageTest(TestCase):
"""Tests relating to the welcome_page view.
"""
def test_uses_welcome_template(self):
"""The root url should response with the welcome page template.
"""
response = self.client.get('/')
self.assertTemplateUsed(response, 'accounts/welcome.html')
class UserModelTest(TestCase):
"""Tests for passwordless user model.
"""
def test_user_valid_with_only_email(self):
"""Should not raise if the user model is happy with email only.
"""
user = get_user_model()(email=TEST_EMAIL)
user.full_clean()
def test_users_are_authenticated(self):
"""User objects should be authenticated for views/templates.
"""
user = get_user_model()()
self.assertTrue(user.is_authenticated())
class TokenModelTest(TestCase):
"""Tests for login token model.
"""
def test_unique_tokens_generated(self):
"""Two tokens generated should be unique.
"""
token1 = LoginToken(TEST_EMAIL)
token2 = LoginToken(TEST_EMAIL)
self.assertNotEqual(token1, token2)
|
<commit_before>"""accounts app unittests
"""
from django.test import TestCase
from django.contrib.auth import get_user_model
class WelcomePageTest(TestCase):
"""Tests relating to the welcome_page view.
"""
def test_uses_welcome_template(self):
"""The root url should response with the welcome page template.
"""
response = self.client.get('/')
self.assertTemplateUsed(response, 'accounts/welcome.html')
class UserModelTest(TestCase):
"""Tests for passwordless user model.
"""
def test_user_valid_with_only_email(self):
"""Should not raise if the user model is happy with email only
"""
user = get_user_model()(email='newvisitor@example.com')
user.full_clean()
def test_users_are_authenticated(self):
"""User objects should be authenticated for views/templates.
"""
user = get_user_model()()
self.assertTrue(user.is_authenticated())
<commit_msg>Add unit test for LoginToken model<commit_after>
|
"""accounts app unittests
"""
from django.test import TestCase
from django.contrib.auth import get_user_model
from accounts.models import LoginToken
TEST_EMAIL = 'newvisitor@example.com'
class WelcomePageTest(TestCase):
"""Tests relating to the welcome_page view.
"""
def test_uses_welcome_template(self):
"""The root url should response with the welcome page template.
"""
response = self.client.get('/')
self.assertTemplateUsed(response, 'accounts/welcome.html')
class UserModelTest(TestCase):
"""Tests for passwordless user model.
"""
def test_user_valid_with_only_email(self):
"""Should not raise if the user model is happy with email only.
"""
user = get_user_model()(email=TEST_EMAIL)
user.full_clean()
def test_users_are_authenticated(self):
"""User objects should be authenticated for views/templates.
"""
user = get_user_model()()
self.assertTrue(user.is_authenticated())
class TokenModelTest(TestCase):
"""Tests for login token model.
"""
def test_unique_tokens_generated(self):
"""Two tokens generated should be unique.
"""
token1 = LoginToken(TEST_EMAIL)
token2 = LoginToken(TEST_EMAIL)
self.assertNotEqual(token1, token2)
|
"""accounts app unittests
"""
from django.test import TestCase
from django.contrib.auth import get_user_model
class WelcomePageTest(TestCase):
"""Tests relating to the welcome_page view.
"""
def test_uses_welcome_template(self):
"""The root url should response with the welcome page template.
"""
response = self.client.get('/')
self.assertTemplateUsed(response, 'accounts/welcome.html')
class UserModelTest(TestCase):
"""Tests for passwordless user model.
"""
def test_user_valid_with_only_email(self):
"""Should not raise if the user model is happy with email only
"""
user = get_user_model()(email='newvisitor@example.com')
user.full_clean()
def test_users_are_authenticated(self):
"""User objects should be authenticated for views/templates.
"""
user = get_user_model()()
self.assertTrue(user.is_authenticated())
Add unit test for LoginToken model"""accounts app unittests
"""
from django.test import TestCase
from django.contrib.auth import get_user_model
from accounts.models import LoginToken
TEST_EMAIL = 'newvisitor@example.com'
class WelcomePageTest(TestCase):
"""Tests relating to the welcome_page view.
"""
def test_uses_welcome_template(self):
"""The root url should response with the welcome page template.
"""
response = self.client.get('/')
self.assertTemplateUsed(response, 'accounts/welcome.html')
class UserModelTest(TestCase):
"""Tests for passwordless user model.
"""
def test_user_valid_with_only_email(self):
"""Should not raise if the user model is happy with email only.
"""
user = get_user_model()(email=TEST_EMAIL)
user.full_clean()
def test_users_are_authenticated(self):
"""User objects should be authenticated for views/templates.
"""
user = get_user_model()()
self.assertTrue(user.is_authenticated())
class TokenModelTest(TestCase):
"""Tests for login token model.
"""
def test_unique_tokens_generated(self):
"""Two tokens generated should be unique.
"""
token1 = LoginToken(TEST_EMAIL)
token2 = LoginToken(TEST_EMAIL)
self.assertNotEqual(token1, token2)
|
<commit_before>"""accounts app unittests
"""
from django.test import TestCase
from django.contrib.auth import get_user_model
class WelcomePageTest(TestCase):
"""Tests relating to the welcome_page view.
"""
def test_uses_welcome_template(self):
"""The root url should response with the welcome page template.
"""
response = self.client.get('/')
self.assertTemplateUsed(response, 'accounts/welcome.html')
class UserModelTest(TestCase):
"""Tests for passwordless user model.
"""
def test_user_valid_with_only_email(self):
"""Should not raise if the user model is happy with email only
"""
user = get_user_model()(email='newvisitor@example.com')
user.full_clean()
def test_users_are_authenticated(self):
"""User objects should be authenticated for views/templates.
"""
user = get_user_model()()
self.assertTrue(user.is_authenticated())
<commit_msg>Add unit test for LoginToken model<commit_after>"""accounts app unittests
"""
from django.test import TestCase
from django.contrib.auth import get_user_model
from accounts.models import LoginToken
TEST_EMAIL = 'newvisitor@example.com'
class WelcomePageTest(TestCase):
"""Tests relating to the welcome_page view.
"""
def test_uses_welcome_template(self):
"""The root url should response with the welcome page template.
"""
response = self.client.get('/')
self.assertTemplateUsed(response, 'accounts/welcome.html')
class UserModelTest(TestCase):
"""Tests for passwordless user model.
"""
def test_user_valid_with_only_email(self):
"""Should not raise if the user model is happy with email only.
"""
user = get_user_model()(email=TEST_EMAIL)
user.full_clean()
def test_users_are_authenticated(self):
"""User objects should be authenticated for views/templates.
"""
user = get_user_model()()
self.assertTrue(user.is_authenticated())
class TokenModelTest(TestCase):
"""Tests for login token model.
"""
def test_unique_tokens_generated(self):
"""Two tokens generated should be unique.
"""
token1 = LoginToken(TEST_EMAIL)
token2 = LoginToken(TEST_EMAIL)
self.assertNotEqual(token1, token2)
|
48d9e6c2d36b7c1beb11f6574624731a88cdccbc
|
accounts/views.py
|
accounts/views.py
|
from django.views.generic import View
from django.shortcuts import render
class MemberProfileView(View):
template_name = 'accounts/profile.html'
def get(self, request):
return render(request, self.template_name)
|
from django.views.generic import View
from django.shortcuts import render
from django.contrib.auth.mixins import LoginRequiredMixin
class MemberProfileView(LoginRequiredMixin, View):
login_url = '/accounts/login/'
redirect_field_name = 'redirect_to'
template_name = 'accounts/profile.html'
def get(self, request):
return render(request, self.template_name)
|
Add login required mixin to user profile
|
Add login required mixin to user profile
|
Python
|
mit
|
davidjrichardson/uwcs-zarya,davidjrichardson/uwcs-zarya
|
from django.views.generic import View
from django.shortcuts import render
class MemberProfileView(View):
template_name = 'accounts/profile.html'
def get(self, request):
return render(request, self.template_name)Add login required mixin to user profile
|
from django.views.generic import View
from django.shortcuts import render
from django.contrib.auth.mixins import LoginRequiredMixin
class MemberProfileView(LoginRequiredMixin, View):
login_url = '/accounts/login/'
redirect_field_name = 'redirect_to'
template_name = 'accounts/profile.html'
def get(self, request):
return render(request, self.template_name)
|
<commit_before>from django.views.generic import View
from django.shortcuts import render
class MemberProfileView(View):
template_name = 'accounts/profile.html'
def get(self, request):
return render(request, self.template_name)<commit_msg>Add login required mixin to user profile<commit_after>
|
from django.views.generic import View
from django.shortcuts import render
from django.contrib.auth.mixins import LoginRequiredMixin
class MemberProfileView(LoginRequiredMixin, View):
login_url = '/accounts/login/'
redirect_field_name = 'redirect_to'
template_name = 'accounts/profile.html'
def get(self, request):
return render(request, self.template_name)
|
from django.views.generic import View
from django.shortcuts import render
class MemberProfileView(View):
template_name = 'accounts/profile.html'
def get(self, request):
return render(request, self.template_name)Add login required mixin to user profilefrom django.views.generic import View
from django.shortcuts import render
from django.contrib.auth.mixins import LoginRequiredMixin
class MemberProfileView(LoginRequiredMixin, View):
login_url = '/accounts/login/'
redirect_field_name = 'redirect_to'
template_name = 'accounts/profile.html'
def get(self, request):
return render(request, self.template_name)
|
<commit_before>from django.views.generic import View
from django.shortcuts import render
class MemberProfileView(View):
template_name = 'accounts/profile.html'
def get(self, request):
return render(request, self.template_name)<commit_msg>Add login required mixin to user profile<commit_after>from django.views.generic import View
from django.shortcuts import render
from django.contrib.auth.mixins import LoginRequiredMixin
class MemberProfileView(LoginRequiredMixin, View):
login_url = '/accounts/login/'
redirect_field_name = 'redirect_to'
template_name = 'accounts/profile.html'
def get(self, request):
return render(request, self.template_name)
|
44514a724fc8eff464d4c26a7e9c213644c99e53
|
elasticsearch_flex/tasks.py
|
elasticsearch_flex/tasks.py
|
from celery import shared_task
@shared_task
def update_indexed_document(index, created, pk):
indexed_doc = index.init_using_pk(pk)
indexed_doc.prepare()
indexed_doc.save()
@shared_task
def delete_indexed_document(index, pk):
indexed_doc = index.get(id=pk)
indexed_doc.delete()
__all__ = ('update_indexed_document', 'delete_indexed_document')
|
from celery import shared_task
@shared_task(rate_limit='50/m')
def update_indexed_document(index, created, pk):
indexed_doc = index.init_using_pk(pk)
indexed_doc.prepare()
indexed_doc.save()
@shared_task
def delete_indexed_document(index, pk):
indexed_doc = index.get(id=pk)
indexed_doc.delete()
__all__ = ('update_indexed_document', 'delete_indexed_document')
|
Add rate-limit to update_indexed_document task
|
Add rate-limit to update_indexed_document task
|
Python
|
mit
|
prashnts/dj-elasticsearch-flex,prashnts/dj-elasticsearch-flex
|
from celery import shared_task
@shared_task
def update_indexed_document(index, created, pk):
indexed_doc = index.init_using_pk(pk)
indexed_doc.prepare()
indexed_doc.save()
@shared_task
def delete_indexed_document(index, pk):
indexed_doc = index.get(id=pk)
indexed_doc.delete()
__all__ = ('update_indexed_document', 'delete_indexed_document')
Add rate-limit to update_indexed_document task
|
from celery import shared_task
@shared_task(rate_limit='50/m')
def update_indexed_document(index, created, pk):
indexed_doc = index.init_using_pk(pk)
indexed_doc.prepare()
indexed_doc.save()
@shared_task
def delete_indexed_document(index, pk):
indexed_doc = index.get(id=pk)
indexed_doc.delete()
__all__ = ('update_indexed_document', 'delete_indexed_document')
|
<commit_before>from celery import shared_task
@shared_task
def update_indexed_document(index, created, pk):
indexed_doc = index.init_using_pk(pk)
indexed_doc.prepare()
indexed_doc.save()
@shared_task
def delete_indexed_document(index, pk):
indexed_doc = index.get(id=pk)
indexed_doc.delete()
__all__ = ('update_indexed_document', 'delete_indexed_document')
<commit_msg>Add rate-limit to update_indexed_document task<commit_after>
|
from celery import shared_task
@shared_task(rate_limit='50/m')
def update_indexed_document(index, created, pk):
indexed_doc = index.init_using_pk(pk)
indexed_doc.prepare()
indexed_doc.save()
@shared_task
def delete_indexed_document(index, pk):
indexed_doc = index.get(id=pk)
indexed_doc.delete()
__all__ = ('update_indexed_document', 'delete_indexed_document')
|
from celery import shared_task
@shared_task
def update_indexed_document(index, created, pk):
indexed_doc = index.init_using_pk(pk)
indexed_doc.prepare()
indexed_doc.save()
@shared_task
def delete_indexed_document(index, pk):
indexed_doc = index.get(id=pk)
indexed_doc.delete()
__all__ = ('update_indexed_document', 'delete_indexed_document')
Add rate-limit to update_indexed_document taskfrom celery import shared_task
@shared_task(rate_limit='50/m')
def update_indexed_document(index, created, pk):
indexed_doc = index.init_using_pk(pk)
indexed_doc.prepare()
indexed_doc.save()
@shared_task
def delete_indexed_document(index, pk):
indexed_doc = index.get(id=pk)
indexed_doc.delete()
__all__ = ('update_indexed_document', 'delete_indexed_document')
|
<commit_before>from celery import shared_task
@shared_task
def update_indexed_document(index, created, pk):
indexed_doc = index.init_using_pk(pk)
indexed_doc.prepare()
indexed_doc.save()
@shared_task
def delete_indexed_document(index, pk):
indexed_doc = index.get(id=pk)
indexed_doc.delete()
__all__ = ('update_indexed_document', 'delete_indexed_document')
<commit_msg>Add rate-limit to update_indexed_document task<commit_after>from celery import shared_task
@shared_task(rate_limit='50/m')
def update_indexed_document(index, created, pk):
indexed_doc = index.init_using_pk(pk)
indexed_doc.prepare()
indexed_doc.save()
@shared_task
def delete_indexed_document(index, pk):
indexed_doc = index.get(id=pk)
indexed_doc.delete()
__all__ = ('update_indexed_document', 'delete_indexed_document')
|
063d88ed5d5f48114cdf566433ae40d40a8674f4
|
nbgrader/utils.py
|
nbgrader/utils.py
|
import hashlib
import autopep8
def is_grade(cell):
"""Returns True if the cell is a grade cell."""
if 'nbgrader' not in cell.metadata:
return False
return cell.metadata['nbgrader'].get('grade', False)
def is_solution(cell):
"""Returns True if the cell is a solution cell."""
if 'nbgrader' not in cell.metadata:
return False
return cell.metadata['nbgrader'].get('solution', False)
def determine_grade(cell):
if not is_grade(cell):
raise ValueError("cell is not a grade cell")
max_points = float(cell.metadata['nbgrader']['points'])
if cell.cell_type == 'code':
for output in cell.outputs:
if output.output_type == 'error':
return 0, max_points
return max_points, max_points
else:
return None, max_points
def compute_checksum(cell):
m = hashlib.md5()
# fix minor whitespace issues that might have been added and then
# add cell contents
m.update(autopep8.fix_code(cell.source).rstrip())
# include number of points that the cell is worth
if 'points' in cell.metadata.nbgrader:
m.update(cell.metadata.nbgrader['points'])
# include the grade_id
if 'grade_id' in cell.metadata.nbgrader:
m.update(cell.metadata.nbgrader['grade_id'])
return m.hexdigest()
|
import hashlib
import autopep8
def is_grade(cell):
"""Returns True if the cell is a grade cell."""
if 'nbgrader' not in cell.metadata:
return False
return cell.metadata['nbgrader'].get('grade', False)
def is_solution(cell):
"""Returns True if the cell is a solution cell."""
if 'nbgrader' not in cell.metadata:
return False
return cell.metadata['nbgrader'].get('solution', False)
def determine_grade(cell):
if not is_grade(cell):
raise ValueError("cell is not a grade cell")
max_points = float(cell.metadata['nbgrader']['points'])
if cell.cell_type == 'code':
for output in cell.outputs:
if output.output_type == 'error':
return 0, max_points
return max_points, max_points
else:
return None, max_points
def compute_checksum(cell):
m = hashlib.md5()
# fix minor whitespace issues that might have been added and then
# add cell contents
m.update(autopep8.fix_code(cell.source).rstrip())
# include number of points that the cell is worth
if 'points' in cell.metadata.nbgrader:
m.update(str(float(cell.metadata.nbgrader['points'])))
# include the grade_id
if 'grade_id' in cell.metadata.nbgrader:
m.update(cell.metadata.nbgrader['grade_id'])
return m.hexdigest()
|
Make sure points in checksum are consistent
|
Make sure points in checksum are consistent
|
Python
|
bsd-3-clause
|
EdwardJKim/nbgrader,modulexcite/nbgrader,jupyter/nbgrader,jhamrick/nbgrader,jdfreder/nbgrader,dementrock/nbgrader,ellisonbg/nbgrader,ellisonbg/nbgrader,ellisonbg/nbgrader,jhamrick/nbgrader,alope107/nbgrader,dementrock/nbgrader,MatKallada/nbgrader,EdwardJKim/nbgrader,ellisonbg/nbgrader,MatKallada/nbgrader,jdfreder/nbgrader,jupyter/nbgrader,jupyter/nbgrader,EdwardJKim/nbgrader,modulexcite/nbgrader,jupyter/nbgrader,alope107/nbgrader,jhamrick/nbgrader,jupyter/nbgrader,jhamrick/nbgrader,EdwardJKim/nbgrader
|
import hashlib
import autopep8
def is_grade(cell):
"""Returns True if the cell is a grade cell."""
if 'nbgrader' not in cell.metadata:
return False
return cell.metadata['nbgrader'].get('grade', False)
def is_solution(cell):
"""Returns True if the cell is a solution cell."""
if 'nbgrader' not in cell.metadata:
return False
return cell.metadata['nbgrader'].get('solution', False)
def determine_grade(cell):
if not is_grade(cell):
raise ValueError("cell is not a grade cell")
max_points = float(cell.metadata['nbgrader']['points'])
if cell.cell_type == 'code':
for output in cell.outputs:
if output.output_type == 'error':
return 0, max_points
return max_points, max_points
else:
return None, max_points
def compute_checksum(cell):
m = hashlib.md5()
# fix minor whitespace issues that might have been added and then
# add cell contents
m.update(autopep8.fix_code(cell.source).rstrip())
# include number of points that the cell is worth
if 'points' in cell.metadata.nbgrader:
m.update(cell.metadata.nbgrader['points'])
# include the grade_id
if 'grade_id' in cell.metadata.nbgrader:
m.update(cell.metadata.nbgrader['grade_id'])
return m.hexdigest()
Make sure points in checksum are consistent
|
import hashlib
import autopep8
def is_grade(cell):
"""Returns True if the cell is a grade cell."""
if 'nbgrader' not in cell.metadata:
return False
return cell.metadata['nbgrader'].get('grade', False)
def is_solution(cell):
"""Returns True if the cell is a solution cell."""
if 'nbgrader' not in cell.metadata:
return False
return cell.metadata['nbgrader'].get('solution', False)
def determine_grade(cell):
if not is_grade(cell):
raise ValueError("cell is not a grade cell")
max_points = float(cell.metadata['nbgrader']['points'])
if cell.cell_type == 'code':
for output in cell.outputs:
if output.output_type == 'error':
return 0, max_points
return max_points, max_points
else:
return None, max_points
def compute_checksum(cell):
m = hashlib.md5()
# fix minor whitespace issues that might have been added and then
# add cell contents
m.update(autopep8.fix_code(cell.source).rstrip())
# include number of points that the cell is worth
if 'points' in cell.metadata.nbgrader:
m.update(str(float(cell.metadata.nbgrader['points'])))
# include the grade_id
if 'grade_id' in cell.metadata.nbgrader:
m.update(cell.metadata.nbgrader['grade_id'])
return m.hexdigest()
|
<commit_before>import hashlib
import autopep8
def is_grade(cell):
"""Returns True if the cell is a grade cell."""
if 'nbgrader' not in cell.metadata:
return False
return cell.metadata['nbgrader'].get('grade', False)
def is_solution(cell):
"""Returns True if the cell is a solution cell."""
if 'nbgrader' not in cell.metadata:
return False
return cell.metadata['nbgrader'].get('solution', False)
def determine_grade(cell):
if not is_grade(cell):
raise ValueError("cell is not a grade cell")
max_points = float(cell.metadata['nbgrader']['points'])
if cell.cell_type == 'code':
for output in cell.outputs:
if output.output_type == 'error':
return 0, max_points
return max_points, max_points
else:
return None, max_points
def compute_checksum(cell):
m = hashlib.md5()
# fix minor whitespace issues that might have been added and then
# add cell contents
m.update(autopep8.fix_code(cell.source).rstrip())
# include number of points that the cell is worth
if 'points' in cell.metadata.nbgrader:
m.update(cell.metadata.nbgrader['points'])
# include the grade_id
if 'grade_id' in cell.metadata.nbgrader:
m.update(cell.metadata.nbgrader['grade_id'])
return m.hexdigest()
<commit_msg>Make sure points in checksum are consistent<commit_after>
|
import hashlib
import autopep8
def is_grade(cell):
"""Returns True if the cell is a grade cell."""
if 'nbgrader' not in cell.metadata:
return False
return cell.metadata['nbgrader'].get('grade', False)
def is_solution(cell):
"""Returns True if the cell is a solution cell."""
if 'nbgrader' not in cell.metadata:
return False
return cell.metadata['nbgrader'].get('solution', False)
def determine_grade(cell):
if not is_grade(cell):
raise ValueError("cell is not a grade cell")
max_points = float(cell.metadata['nbgrader']['points'])
if cell.cell_type == 'code':
for output in cell.outputs:
if output.output_type == 'error':
return 0, max_points
return max_points, max_points
else:
return None, max_points
def compute_checksum(cell):
m = hashlib.md5()
# fix minor whitespace issues that might have been added and then
# add cell contents
m.update(autopep8.fix_code(cell.source).rstrip())
# include number of points that the cell is worth
if 'points' in cell.metadata.nbgrader:
m.update(str(float(cell.metadata.nbgrader['points'])))
# include the grade_id
if 'grade_id' in cell.metadata.nbgrader:
m.update(cell.metadata.nbgrader['grade_id'])
return m.hexdigest()
|
import hashlib
import autopep8
def is_grade(cell):
"""Returns True if the cell is a grade cell."""
if 'nbgrader' not in cell.metadata:
return False
return cell.metadata['nbgrader'].get('grade', False)
def is_solution(cell):
"""Returns True if the cell is a solution cell."""
if 'nbgrader' not in cell.metadata:
return False
return cell.metadata['nbgrader'].get('solution', False)
def determine_grade(cell):
if not is_grade(cell):
raise ValueError("cell is not a grade cell")
max_points = float(cell.metadata['nbgrader']['points'])
if cell.cell_type == 'code':
for output in cell.outputs:
if output.output_type == 'error':
return 0, max_points
return max_points, max_points
else:
return None, max_points
def compute_checksum(cell):
m = hashlib.md5()
# fix minor whitespace issues that might have been added and then
# add cell contents
m.update(autopep8.fix_code(cell.source).rstrip())
# include number of points that the cell is worth
if 'points' in cell.metadata.nbgrader:
m.update(cell.metadata.nbgrader['points'])
# include the grade_id
if 'grade_id' in cell.metadata.nbgrader:
m.update(cell.metadata.nbgrader['grade_id'])
return m.hexdigest()
Make sure points in checksum are consistentimport hashlib
import autopep8
def is_grade(cell):
"""Returns True if the cell is a grade cell."""
if 'nbgrader' not in cell.metadata:
return False
return cell.metadata['nbgrader'].get('grade', False)
def is_solution(cell):
"""Returns True if the cell is a solution cell."""
if 'nbgrader' not in cell.metadata:
return False
return cell.metadata['nbgrader'].get('solution', False)
def determine_grade(cell):
if not is_grade(cell):
raise ValueError("cell is not a grade cell")
max_points = float(cell.metadata['nbgrader']['points'])
if cell.cell_type == 'code':
for output in cell.outputs:
if output.output_type == 'error':
return 0, max_points
return max_points, max_points
else:
return None, max_points
def compute_checksum(cell):
m = hashlib.md5()
# fix minor whitespace issues that might have been added and then
# add cell contents
m.update(autopep8.fix_code(cell.source).rstrip())
# include number of points that the cell is worth
if 'points' in cell.metadata.nbgrader:
m.update(str(float(cell.metadata.nbgrader['points'])))
# include the grade_id
if 'grade_id' in cell.metadata.nbgrader:
m.update(cell.metadata.nbgrader['grade_id'])
return m.hexdigest()
|
<commit_before>import hashlib
import autopep8
def is_grade(cell):
"""Returns True if the cell is a grade cell."""
if 'nbgrader' not in cell.metadata:
return False
return cell.metadata['nbgrader'].get('grade', False)
def is_solution(cell):
"""Returns True if the cell is a solution cell."""
if 'nbgrader' not in cell.metadata:
return False
return cell.metadata['nbgrader'].get('solution', False)
def determine_grade(cell):
if not is_grade(cell):
raise ValueError("cell is not a grade cell")
max_points = float(cell.metadata['nbgrader']['points'])
if cell.cell_type == 'code':
for output in cell.outputs:
if output.output_type == 'error':
return 0, max_points
return max_points, max_points
else:
return None, max_points
def compute_checksum(cell):
m = hashlib.md5()
# fix minor whitespace issues that might have been added and then
# add cell contents
m.update(autopep8.fix_code(cell.source).rstrip())
# include number of points that the cell is worth
if 'points' in cell.metadata.nbgrader:
m.update(cell.metadata.nbgrader['points'])
# include the grade_id
if 'grade_id' in cell.metadata.nbgrader:
m.update(cell.metadata.nbgrader['grade_id'])
return m.hexdigest()
<commit_msg>Make sure points in checksum are consistent<commit_after>import hashlib
import autopep8
def is_grade(cell):
"""Returns True if the cell is a grade cell."""
if 'nbgrader' not in cell.metadata:
return False
return cell.metadata['nbgrader'].get('grade', False)
def is_solution(cell):
"""Returns True if the cell is a solution cell."""
if 'nbgrader' not in cell.metadata:
return False
return cell.metadata['nbgrader'].get('solution', False)
def determine_grade(cell):
if not is_grade(cell):
raise ValueError("cell is not a grade cell")
max_points = float(cell.metadata['nbgrader']['points'])
if cell.cell_type == 'code':
for output in cell.outputs:
if output.output_type == 'error':
return 0, max_points
return max_points, max_points
else:
return None, max_points
def compute_checksum(cell):
m = hashlib.md5()
# fix minor whitespace issues that might have been added and then
# add cell contents
m.update(autopep8.fix_code(cell.source).rstrip())
# include number of points that the cell is worth
if 'points' in cell.metadata.nbgrader:
m.update(str(float(cell.metadata.nbgrader['points'])))
# include the grade_id
if 'grade_id' in cell.metadata.nbgrader:
m.update(cell.metadata.nbgrader['grade_id'])
return m.hexdigest()
|
ed8b6b615bc8d006e3e31843fa31f0bda09109ed
|
spec/puzzle/examples/public_domain/zebra_puzzle_spec.py
|
spec/puzzle/examples/public_domain/zebra_puzzle_spec.py
|
import astor
from data import warehouse
from puzzle.examples.public_domain import zebra_puzzle
from puzzle.problems import logic_problem
from puzzle.puzzlepedia import prod_config
from spec.mamba import *
with _description('zebra_puzzle'):
with description('solution'):
with before.all:
warehouse.save()
prod_config.init()
self.subject = zebra_puzzle.get()
with after.all:
prod_config.reset()
warehouse.restore()
with it('identifies puzzle type'):
problems = self.subject.problems()
expect(problems).to(have_len(1))
problem = problems[0]
expect(problem).to(be_a(logic_problem.LogicProblem))
with it('parses expressions'):
problem = self.subject.problems()[0]
expect(astor.to_source(problem._parse())).to(
look_like(zebra_puzzle.PARSED))
with it('exports a model'):
problem = self.subject.problems()[0]
expect(problem.solution).to(look_like(zebra_puzzle.SOLUTION))
|
import astor
from data import warehouse
from puzzle.examples.public_domain import zebra_puzzle
from puzzle.problems import logic_problem
from puzzle.puzzlepedia import prod_config
from spec.mamba import *
with _description('zebra_puzzle'):
with description('solution'):
with before.all:
warehouse.save()
prod_config.init()
self.subject = zebra_puzzle.get()
with after.all:
prod_config.reset()
warehouse.restore()
with it('identifies puzzle type'):
problems = self.subject.problems()
expect(problems).to(have_len(1))
problem = problems[0]
expect(problem).to(be_a(logic_problem.LogicProblem))
with it('parses expressions'):
parsed = logic_problem._parse(zebra_puzzle.SOURCE.split('\n'))
expect(astor.to_source(parsed)).to(look_like(zebra_puzzle.PARSED))
with it('models puzzle'):
model = logic_problem._model(zebra_puzzle.SOURCE.split('\n'))
print(str(model))
with it('exports a solution'):
problem = self.subject.problems()[0]
expect(problem.solution).to(look_like(zebra_puzzle.SOLUTION))
|
Update zebra puzzle to reflect LogicProblem changes.
|
Update zebra puzzle to reflect LogicProblem changes.
|
Python
|
mit
|
PhilHarnish/forge,PhilHarnish/forge,PhilHarnish/forge,PhilHarnish/forge,PhilHarnish/forge,PhilHarnish/forge
|
import astor
from data import warehouse
from puzzle.examples.public_domain import zebra_puzzle
from puzzle.problems import logic_problem
from puzzle.puzzlepedia import prod_config
from spec.mamba import *
with _description('zebra_puzzle'):
with description('solution'):
with before.all:
warehouse.save()
prod_config.init()
self.subject = zebra_puzzle.get()
with after.all:
prod_config.reset()
warehouse.restore()
with it('identifies puzzle type'):
problems = self.subject.problems()
expect(problems).to(have_len(1))
problem = problems[0]
expect(problem).to(be_a(logic_problem.LogicProblem))
with it('parses expressions'):
problem = self.subject.problems()[0]
expect(astor.to_source(problem._parse())).to(
look_like(zebra_puzzle.PARSED))
with it('exports a model'):
problem = self.subject.problems()[0]
expect(problem.solution).to(look_like(zebra_puzzle.SOLUTION))
Update zebra puzzle to reflect LogicProblem changes.
|
import astor
from data import warehouse
from puzzle.examples.public_domain import zebra_puzzle
from puzzle.problems import logic_problem
from puzzle.puzzlepedia import prod_config
from spec.mamba import *
with _description('zebra_puzzle'):
with description('solution'):
with before.all:
warehouse.save()
prod_config.init()
self.subject = zebra_puzzle.get()
with after.all:
prod_config.reset()
warehouse.restore()
with it('identifies puzzle type'):
problems = self.subject.problems()
expect(problems).to(have_len(1))
problem = problems[0]
expect(problem).to(be_a(logic_problem.LogicProblem))
with it('parses expressions'):
parsed = logic_problem._parse(zebra_puzzle.SOURCE.split('\n'))
expect(astor.to_source(parsed)).to(look_like(zebra_puzzle.PARSED))
with it('models puzzle'):
model = logic_problem._model(zebra_puzzle.SOURCE.split('\n'))
print(str(model))
with it('exports a solution'):
problem = self.subject.problems()[0]
expect(problem.solution).to(look_like(zebra_puzzle.SOLUTION))
|
<commit_before>import astor
from data import warehouse
from puzzle.examples.public_domain import zebra_puzzle
from puzzle.problems import logic_problem
from puzzle.puzzlepedia import prod_config
from spec.mamba import *
with _description('zebra_puzzle'):
with description('solution'):
with before.all:
warehouse.save()
prod_config.init()
self.subject = zebra_puzzle.get()
with after.all:
prod_config.reset()
warehouse.restore()
with it('identifies puzzle type'):
problems = self.subject.problems()
expect(problems).to(have_len(1))
problem = problems[0]
expect(problem).to(be_a(logic_problem.LogicProblem))
with it('parses expressions'):
problem = self.subject.problems()[0]
expect(astor.to_source(problem._parse())).to(
look_like(zebra_puzzle.PARSED))
with it('exports a model'):
problem = self.subject.problems()[0]
expect(problem.solution).to(look_like(zebra_puzzle.SOLUTION))
<commit_msg>Update zebra puzzle to reflect LogicProblem changes.<commit_after>
|
import astor
from data import warehouse
from puzzle.examples.public_domain import zebra_puzzle
from puzzle.problems import logic_problem
from puzzle.puzzlepedia import prod_config
from spec.mamba import *
with _description('zebra_puzzle'):
with description('solution'):
with before.all:
warehouse.save()
prod_config.init()
self.subject = zebra_puzzle.get()
with after.all:
prod_config.reset()
warehouse.restore()
with it('identifies puzzle type'):
problems = self.subject.problems()
expect(problems).to(have_len(1))
problem = problems[0]
expect(problem).to(be_a(logic_problem.LogicProblem))
with it('parses expressions'):
parsed = logic_problem._parse(zebra_puzzle.SOURCE.split('\n'))
expect(astor.to_source(parsed)).to(look_like(zebra_puzzle.PARSED))
with it('models puzzle'):
model = logic_problem._model(zebra_puzzle.SOURCE.split('\n'))
print(str(model))
with it('exports a solution'):
problem = self.subject.problems()[0]
expect(problem.solution).to(look_like(zebra_puzzle.SOLUTION))
|
import astor
from data import warehouse
from puzzle.examples.public_domain import zebra_puzzle
from puzzle.problems import logic_problem
from puzzle.puzzlepedia import prod_config
from spec.mamba import *
with _description('zebra_puzzle'):
with description('solution'):
with before.all:
warehouse.save()
prod_config.init()
self.subject = zebra_puzzle.get()
with after.all:
prod_config.reset()
warehouse.restore()
with it('identifies puzzle type'):
problems = self.subject.problems()
expect(problems).to(have_len(1))
problem = problems[0]
expect(problem).to(be_a(logic_problem.LogicProblem))
with it('parses expressions'):
problem = self.subject.problems()[0]
expect(astor.to_source(problem._parse())).to(
look_like(zebra_puzzle.PARSED))
with it('exports a model'):
problem = self.subject.problems()[0]
expect(problem.solution).to(look_like(zebra_puzzle.SOLUTION))
Update zebra puzzle to reflect LogicProblem changes.import astor
from data import warehouse
from puzzle.examples.public_domain import zebra_puzzle
from puzzle.problems import logic_problem
from puzzle.puzzlepedia import prod_config
from spec.mamba import *
with _description('zebra_puzzle'):
with description('solution'):
with before.all:
warehouse.save()
prod_config.init()
self.subject = zebra_puzzle.get()
with after.all:
prod_config.reset()
warehouse.restore()
with it('identifies puzzle type'):
problems = self.subject.problems()
expect(problems).to(have_len(1))
problem = problems[0]
expect(problem).to(be_a(logic_problem.LogicProblem))
with it('parses expressions'):
parsed = logic_problem._parse(zebra_puzzle.SOURCE.split('\n'))
expect(astor.to_source(parsed)).to(look_like(zebra_puzzle.PARSED))
with it('models puzzle'):
model = logic_problem._model(zebra_puzzle.SOURCE.split('\n'))
print(str(model))
with it('exports a solution'):
problem = self.subject.problems()[0]
expect(problem.solution).to(look_like(zebra_puzzle.SOLUTION))
|
<commit_before>import astor
from data import warehouse
from puzzle.examples.public_domain import zebra_puzzle
from puzzle.problems import logic_problem
from puzzle.puzzlepedia import prod_config
from spec.mamba import *
with _description('zebra_puzzle'):
with description('solution'):
with before.all:
warehouse.save()
prod_config.init()
self.subject = zebra_puzzle.get()
with after.all:
prod_config.reset()
warehouse.restore()
with it('identifies puzzle type'):
problems = self.subject.problems()
expect(problems).to(have_len(1))
problem = problems[0]
expect(problem).to(be_a(logic_problem.LogicProblem))
with it('parses expressions'):
problem = self.subject.problems()[0]
expect(astor.to_source(problem._parse())).to(
look_like(zebra_puzzle.PARSED))
with it('exports a model'):
problem = self.subject.problems()[0]
expect(problem.solution).to(look_like(zebra_puzzle.SOLUTION))
<commit_msg>Update zebra puzzle to reflect LogicProblem changes.<commit_after>import astor
from data import warehouse
from puzzle.examples.public_domain import zebra_puzzle
from puzzle.problems import logic_problem
from puzzle.puzzlepedia import prod_config
from spec.mamba import *
with _description('zebra_puzzle'):
with description('solution'):
with before.all:
warehouse.save()
prod_config.init()
self.subject = zebra_puzzle.get()
with after.all:
prod_config.reset()
warehouse.restore()
with it('identifies puzzle type'):
problems = self.subject.problems()
expect(problems).to(have_len(1))
problem = problems[0]
expect(problem).to(be_a(logic_problem.LogicProblem))
with it('parses expressions'):
parsed = logic_problem._parse(zebra_puzzle.SOURCE.split('\n'))
expect(astor.to_source(parsed)).to(look_like(zebra_puzzle.PARSED))
with it('models puzzle'):
model = logic_problem._model(zebra_puzzle.SOURCE.split('\n'))
print(str(model))
with it('exports a solution'):
problem = self.subject.problems()[0]
expect(problem.solution).to(look_like(zebra_puzzle.SOLUTION))
|
b2a7171aa274a1d1bfa0653fc9963e52b44dc904
|
example/example/settings.py
|
example/example/settings.py
|
import os
import dj_database_url
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
DEBUG = TEMPLATE_DEBUG = True
SECRET_KEY = 'example-app!'
ROOT_URLCONF = 'example.urls'
STATIC_URL = '/static/'
DATABASES = {'default': dj_database_url.config(
default='postgres://localhost/conman_example',
)}
DATABASES['default']['ATOMIC_REQUESTS'] = True
INSTALLED_APPS = (
'conman.routes',
'conman.redirects',
'polymorphic',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
)
MIDDLEWARE = (
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
)
|
import os
import dj_database_url
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
DEBUG = True
SECRET_KEY = 'example-app!'
ROOT_URLCONF = 'example.urls'
STATIC_URL = '/static/'
DATABASES = {'default': dj_database_url.config(
default='postgres://localhost/conman_example',
)}
DATABASES['default']['ATOMIC_REQUESTS'] = True
INSTALLED_APPS = (
'conman.routes',
'conman.redirects',
'polymorphic',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
)
MIDDLEWARE = (
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
)
TEMPLATES = [{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [],
'APP_DIRS': False,
'OPTIONS': {
'context_processors': [
'django.template.context_processors.debug',
'django.template.context_processors.request',
'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages',
],
'debug': DEBUG,
'loaders': [
'django.template.loaders.app_directories.Loader',
],
},
}]
|
Fix TEMPLATES setting in example project
|
Fix TEMPLATES setting in example project
|
Python
|
bsd-2-clause
|
meshy/django-conman,meshy/django-conman
|
import os
import dj_database_url
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
DEBUG = TEMPLATE_DEBUG = True
SECRET_KEY = 'example-app!'
ROOT_URLCONF = 'example.urls'
STATIC_URL = '/static/'
DATABASES = {'default': dj_database_url.config(
default='postgres://localhost/conman_example',
)}
DATABASES['default']['ATOMIC_REQUESTS'] = True
INSTALLED_APPS = (
'conman.routes',
'conman.redirects',
'polymorphic',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
)
MIDDLEWARE = (
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
)
Fix TEMPLATES setting in example project
|
import os
import dj_database_url
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
DEBUG = True
SECRET_KEY = 'example-app!'
ROOT_URLCONF = 'example.urls'
STATIC_URL = '/static/'
DATABASES = {'default': dj_database_url.config(
default='postgres://localhost/conman_example',
)}
DATABASES['default']['ATOMIC_REQUESTS'] = True
INSTALLED_APPS = (
'conman.routes',
'conman.redirects',
'polymorphic',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
)
MIDDLEWARE = (
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
)
TEMPLATES = [{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [],
'APP_DIRS': False,
'OPTIONS': {
'context_processors': [
'django.template.context_processors.debug',
'django.template.context_processors.request',
'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages',
],
'debug': DEBUG,
'loaders': [
'django.template.loaders.app_directories.Loader',
],
},
}]
|
<commit_before>import os
import dj_database_url
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
DEBUG = TEMPLATE_DEBUG = True
SECRET_KEY = 'example-app!'
ROOT_URLCONF = 'example.urls'
STATIC_URL = '/static/'
DATABASES = {'default': dj_database_url.config(
default='postgres://localhost/conman_example',
)}
DATABASES['default']['ATOMIC_REQUESTS'] = True
INSTALLED_APPS = (
'conman.routes',
'conman.redirects',
'polymorphic',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
)
MIDDLEWARE = (
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
)
<commit_msg>Fix TEMPLATES setting in example project<commit_after>
|
import os
import dj_database_url
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
DEBUG = True
SECRET_KEY = 'example-app!'
ROOT_URLCONF = 'example.urls'
STATIC_URL = '/static/'
DATABASES = {'default': dj_database_url.config(
default='postgres://localhost/conman_example',
)}
DATABASES['default']['ATOMIC_REQUESTS'] = True
INSTALLED_APPS = (
'conman.routes',
'conman.redirects',
'polymorphic',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
)
MIDDLEWARE = (
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
)
TEMPLATES = [{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [],
'APP_DIRS': False,
'OPTIONS': {
'context_processors': [
'django.template.context_processors.debug',
'django.template.context_processors.request',
'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages',
],
'debug': DEBUG,
'loaders': [
'django.template.loaders.app_directories.Loader',
],
},
}]
|
import os
import dj_database_url
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
DEBUG = TEMPLATE_DEBUG = True
SECRET_KEY = 'example-app!'
ROOT_URLCONF = 'example.urls'
STATIC_URL = '/static/'
DATABASES = {'default': dj_database_url.config(
default='postgres://localhost/conman_example',
)}
DATABASES['default']['ATOMIC_REQUESTS'] = True
INSTALLED_APPS = (
'conman.routes',
'conman.redirects',
'polymorphic',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
)
MIDDLEWARE = (
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
)
Fix TEMPLATES setting in example projectimport os
import dj_database_url
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
DEBUG = True
SECRET_KEY = 'example-app!'
ROOT_URLCONF = 'example.urls'
STATIC_URL = '/static/'
DATABASES = {'default': dj_database_url.config(
default='postgres://localhost/conman_example',
)}
DATABASES['default']['ATOMIC_REQUESTS'] = True
INSTALLED_APPS = (
'conman.routes',
'conman.redirects',
'polymorphic',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
)
MIDDLEWARE = (
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
)
TEMPLATES = [{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [],
'APP_DIRS': False,
'OPTIONS': {
'context_processors': [
'django.template.context_processors.debug',
'django.template.context_processors.request',
'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages',
],
'debug': DEBUG,
'loaders': [
'django.template.loaders.app_directories.Loader',
],
},
}]
|
<commit_before>import os
import dj_database_url
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
DEBUG = TEMPLATE_DEBUG = True
SECRET_KEY = 'example-app!'
ROOT_URLCONF = 'example.urls'
STATIC_URL = '/static/'
DATABASES = {'default': dj_database_url.config(
default='postgres://localhost/conman_example',
)}
DATABASES['default']['ATOMIC_REQUESTS'] = True
INSTALLED_APPS = (
'conman.routes',
'conman.redirects',
'polymorphic',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
)
MIDDLEWARE = (
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
)
<commit_msg>Fix TEMPLATES setting in example project<commit_after>import os
import dj_database_url
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
DEBUG = True
SECRET_KEY = 'example-app!'
ROOT_URLCONF = 'example.urls'
STATIC_URL = '/static/'
DATABASES = {'default': dj_database_url.config(
default='postgres://localhost/conman_example',
)}
DATABASES['default']['ATOMIC_REQUESTS'] = True
INSTALLED_APPS = (
'conman.routes',
'conman.redirects',
'polymorphic',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
)
MIDDLEWARE = (
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
)
TEMPLATES = [{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [],
'APP_DIRS': False,
'OPTIONS': {
'context_processors': [
'django.template.context_processors.debug',
'django.template.context_processors.request',
'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages',
],
'debug': DEBUG,
'loaders': [
'django.template.loaders.app_directories.Loader',
],
},
}]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.