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
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3b30dcc70cca6430594bdb3e35299252866b8577
|
array/move_zeros_to_end.py
|
array/move_zeros_to_end.py
|
"""
Write an algorithm that takes an array and moves all of the zeros to the end, preserving the order of the other elements.
move_zeros([false,1,0,1,2,0,1,3,"a"]) # returns[false,1,1,2,1,3,"a",0,0]
The time complexity of the below algorithm is O(n).
"""
def move_zeros(array):
if len(array) < 1:
return array
else:
list = []
zeros = 0
for i in array:
if not i and type(i) is int or type(i) is float:
zeros += 1
else:
list.append(i)
for i in range(0, zeros):
list.append(0)
return list
|
"""
Write an algorithm that takes an array and moves all of the zeros to the end, preserving the order of the other elements.
move_zeros([false,1,0,1,2,0,1,3,"a"]) # returns[false,1,1,2,1,3,"a",0,0]
The time complexity of the below algorithm is O(n).
"""
def move_zeros(array):
result = []
zeros = 0
for i in array:
if not i and type(i) is int or type(i) is float:
zeros += 1
else:
result.append(i)
for i in range(0, zeros):
result.append(0)
return result
|
Change the variable name for clarity
|
Change the variable name for clarity
|
Python
|
mit
|
keon/algorithms,amaozhao/algorithms
|
"""
Write an algorithm that takes an array and moves all of the zeros to the end, preserving the order of the other elements.
move_zeros([false,1,0,1,2,0,1,3,"a"]) # returns[false,1,1,2,1,3,"a",0,0]
The time complexity of the below algorithm is O(n).
"""
def move_zeros(array):
if len(array) < 1:
return array
else:
list = []
zeros = 0
for i in array:
if not i and type(i) is int or type(i) is float:
zeros += 1
else:
list.append(i)
for i in range(0, zeros):
list.append(0)
return list
Change the variable name for clarity
|
"""
Write an algorithm that takes an array and moves all of the zeros to the end, preserving the order of the other elements.
move_zeros([false,1,0,1,2,0,1,3,"a"]) # returns[false,1,1,2,1,3,"a",0,0]
The time complexity of the below algorithm is O(n).
"""
def move_zeros(array):
result = []
zeros = 0
for i in array:
if not i and type(i) is int or type(i) is float:
zeros += 1
else:
result.append(i)
for i in range(0, zeros):
result.append(0)
return result
|
<commit_before>"""
Write an algorithm that takes an array and moves all of the zeros to the end, preserving the order of the other elements.
move_zeros([false,1,0,1,2,0,1,3,"a"]) # returns[false,1,1,2,1,3,"a",0,0]
The time complexity of the below algorithm is O(n).
"""
def move_zeros(array):
if len(array) < 1:
return array
else:
list = []
zeros = 0
for i in array:
if not i and type(i) is int or type(i) is float:
zeros += 1
else:
list.append(i)
for i in range(0, zeros):
list.append(0)
return list
<commit_msg>Change the variable name for clarity<commit_after>
|
"""
Write an algorithm that takes an array and moves all of the zeros to the end, preserving the order of the other elements.
move_zeros([false,1,0,1,2,0,1,3,"a"]) # returns[false,1,1,2,1,3,"a",0,0]
The time complexity of the below algorithm is O(n).
"""
def move_zeros(array):
result = []
zeros = 0
for i in array:
if not i and type(i) is int or type(i) is float:
zeros += 1
else:
result.append(i)
for i in range(0, zeros):
result.append(0)
return result
|
"""
Write an algorithm that takes an array and moves all of the zeros to the end, preserving the order of the other elements.
move_zeros([false,1,0,1,2,0,1,3,"a"]) # returns[false,1,1,2,1,3,"a",0,0]
The time complexity of the below algorithm is O(n).
"""
def move_zeros(array):
if len(array) < 1:
return array
else:
list = []
zeros = 0
for i in array:
if not i and type(i) is int or type(i) is float:
zeros += 1
else:
list.append(i)
for i in range(0, zeros):
list.append(0)
return list
Change the variable name for clarity"""
Write an algorithm that takes an array and moves all of the zeros to the end, preserving the order of the other elements.
move_zeros([false,1,0,1,2,0,1,3,"a"]) # returns[false,1,1,2,1,3,"a",0,0]
The time complexity of the below algorithm is O(n).
"""
def move_zeros(array):
result = []
zeros = 0
for i in array:
if not i and type(i) is int or type(i) is float:
zeros += 1
else:
result.append(i)
for i in range(0, zeros):
result.append(0)
return result
|
<commit_before>"""
Write an algorithm that takes an array and moves all of the zeros to the end, preserving the order of the other elements.
move_zeros([false,1,0,1,2,0,1,3,"a"]) # returns[false,1,1,2,1,3,"a",0,0]
The time complexity of the below algorithm is O(n).
"""
def move_zeros(array):
if len(array) < 1:
return array
else:
list = []
zeros = 0
for i in array:
if not i and type(i) is int or type(i) is float:
zeros += 1
else:
list.append(i)
for i in range(0, zeros):
list.append(0)
return list
<commit_msg>Change the variable name for clarity<commit_after>"""
Write an algorithm that takes an array and moves all of the zeros to the end, preserving the order of the other elements.
move_zeros([false,1,0,1,2,0,1,3,"a"]) # returns[false,1,1,2,1,3,"a",0,0]
The time complexity of the below algorithm is O(n).
"""
def move_zeros(array):
result = []
zeros = 0
for i in array:
if not i and type(i) is int or type(i) is float:
zeros += 1
else:
result.append(i)
for i in range(0, zeros):
result.append(0)
return result
|
68abb71275bbe5fcd9e75cd8a252fff49ca2eb86
|
setup.py
|
setup.py
|
#! /usr/bin/env python3
# -*- coding: utf-8 -*-
from setuptools import setup
from dlstats import version
import os
setup(name='dlstats',
version=version.version,
description='A python module that provides an interface between statistics providers and pandas.',
author='Widukind team',
author_email='dev@michaelmalter.fr',
url='https://github.com/Widukind',
package_dir={'dlstats': 'dlstats', 'dlstats.fetchers': 'dlstats/fetchers'},
packages=['dlstats', 'dlstats.fetchers'],
data_files=[('/usr/local/bin',['dlstats/dlstats_server.py']),
('/etc/systemd/system',['os_specific/dlstats.service'])],
install_requires=[
'pandas>=0.12',
'docopt>=0.6.0'
]
)
with open('/etc/systemd/system/dlstats.service'):
os.chmod('/etc/systemd/system/dlstats.service', 0o755)
with open('/usr/local/bin/dlstats_server.py'):
os.chmod('/usr/local/bin/dlstats_server.py', 0o755)
|
#! /usr/bin/env python3
# -*- coding: utf-8 -*-
from setuptools import setup
from dlstats import version
import os
setup(name='dlstats',
version=version.version,
description='A python module that provides an interface between statistics providers and pandas.',
author='Widukind team',
author_email='dev@michaelmalter.fr',
url='https://github.com/Widukind',
package_dir={'dlstats': 'dlstats', 'dlstats.fetchers': 'dlstats/fetchers'},
packages=['dlstats', 'dlstats.fetchers'],
data_files=[('/usr/local/bin',['dlstats/dlstats_server.py']),
('/etc/systemd/system',['os_specific/dlstats.service'])],
install_requires=[
'pandas>=0.12',
'docopt>=0.6.0'
'voluptuous>=0.8'
]
)
with open('/etc/systemd/system/dlstats.service'):
os.chmod('/etc/systemd/system/dlstats.service', 0o755)
with open('/usr/local/bin/dlstats_server.py'):
os.chmod('/usr/local/bin/dlstats_server.py', 0o755)
|
Add voluptuous as a dependency
|
Add voluptuous as a dependency
|
Python
|
agpl-3.0
|
MichelJuillard/dlstats,mmalter/dlstats,mmalter/dlstats,mmalter/dlstats,MichelJuillard/dlstats,Widukind/dlstats,MichelJuillard/dlstats,Widukind/dlstats
|
#! /usr/bin/env python3
# -*- coding: utf-8 -*-
from setuptools import setup
from dlstats import version
import os
setup(name='dlstats',
version=version.version,
description='A python module that provides an interface between statistics providers and pandas.',
author='Widukind team',
author_email='dev@michaelmalter.fr',
url='https://github.com/Widukind',
package_dir={'dlstats': 'dlstats', 'dlstats.fetchers': 'dlstats/fetchers'},
packages=['dlstats', 'dlstats.fetchers'],
data_files=[('/usr/local/bin',['dlstats/dlstats_server.py']),
('/etc/systemd/system',['os_specific/dlstats.service'])],
install_requires=[
'pandas>=0.12',
'docopt>=0.6.0'
]
)
with open('/etc/systemd/system/dlstats.service'):
os.chmod('/etc/systemd/system/dlstats.service', 0o755)
with open('/usr/local/bin/dlstats_server.py'):
os.chmod('/usr/local/bin/dlstats_server.py', 0o755)
Add voluptuous as a dependency
|
#! /usr/bin/env python3
# -*- coding: utf-8 -*-
from setuptools import setup
from dlstats import version
import os
setup(name='dlstats',
version=version.version,
description='A python module that provides an interface between statistics providers and pandas.',
author='Widukind team',
author_email='dev@michaelmalter.fr',
url='https://github.com/Widukind',
package_dir={'dlstats': 'dlstats', 'dlstats.fetchers': 'dlstats/fetchers'},
packages=['dlstats', 'dlstats.fetchers'],
data_files=[('/usr/local/bin',['dlstats/dlstats_server.py']),
('/etc/systemd/system',['os_specific/dlstats.service'])],
install_requires=[
'pandas>=0.12',
'docopt>=0.6.0'
'voluptuous>=0.8'
]
)
with open('/etc/systemd/system/dlstats.service'):
os.chmod('/etc/systemd/system/dlstats.service', 0o755)
with open('/usr/local/bin/dlstats_server.py'):
os.chmod('/usr/local/bin/dlstats_server.py', 0o755)
|
<commit_before>#! /usr/bin/env python3
# -*- coding: utf-8 -*-
from setuptools import setup
from dlstats import version
import os
setup(name='dlstats',
version=version.version,
description='A python module that provides an interface between statistics providers and pandas.',
author='Widukind team',
author_email='dev@michaelmalter.fr',
url='https://github.com/Widukind',
package_dir={'dlstats': 'dlstats', 'dlstats.fetchers': 'dlstats/fetchers'},
packages=['dlstats', 'dlstats.fetchers'],
data_files=[('/usr/local/bin',['dlstats/dlstats_server.py']),
('/etc/systemd/system',['os_specific/dlstats.service'])],
install_requires=[
'pandas>=0.12',
'docopt>=0.6.0'
]
)
with open('/etc/systemd/system/dlstats.service'):
os.chmod('/etc/systemd/system/dlstats.service', 0o755)
with open('/usr/local/bin/dlstats_server.py'):
os.chmod('/usr/local/bin/dlstats_server.py', 0o755)
<commit_msg>Add voluptuous as a dependency<commit_after>
|
#! /usr/bin/env python3
# -*- coding: utf-8 -*-
from setuptools import setup
from dlstats import version
import os
setup(name='dlstats',
version=version.version,
description='A python module that provides an interface between statistics providers and pandas.',
author='Widukind team',
author_email='dev@michaelmalter.fr',
url='https://github.com/Widukind',
package_dir={'dlstats': 'dlstats', 'dlstats.fetchers': 'dlstats/fetchers'},
packages=['dlstats', 'dlstats.fetchers'],
data_files=[('/usr/local/bin',['dlstats/dlstats_server.py']),
('/etc/systemd/system',['os_specific/dlstats.service'])],
install_requires=[
'pandas>=0.12',
'docopt>=0.6.0'
'voluptuous>=0.8'
]
)
with open('/etc/systemd/system/dlstats.service'):
os.chmod('/etc/systemd/system/dlstats.service', 0o755)
with open('/usr/local/bin/dlstats_server.py'):
os.chmod('/usr/local/bin/dlstats_server.py', 0o755)
|
#! /usr/bin/env python3
# -*- coding: utf-8 -*-
from setuptools import setup
from dlstats import version
import os
setup(name='dlstats',
version=version.version,
description='A python module that provides an interface between statistics providers and pandas.',
author='Widukind team',
author_email='dev@michaelmalter.fr',
url='https://github.com/Widukind',
package_dir={'dlstats': 'dlstats', 'dlstats.fetchers': 'dlstats/fetchers'},
packages=['dlstats', 'dlstats.fetchers'],
data_files=[('/usr/local/bin',['dlstats/dlstats_server.py']),
('/etc/systemd/system',['os_specific/dlstats.service'])],
install_requires=[
'pandas>=0.12',
'docopt>=0.6.0'
]
)
with open('/etc/systemd/system/dlstats.service'):
os.chmod('/etc/systemd/system/dlstats.service', 0o755)
with open('/usr/local/bin/dlstats_server.py'):
os.chmod('/usr/local/bin/dlstats_server.py', 0o755)
Add voluptuous as a dependency#! /usr/bin/env python3
# -*- coding: utf-8 -*-
from setuptools import setup
from dlstats import version
import os
setup(name='dlstats',
version=version.version,
description='A python module that provides an interface between statistics providers and pandas.',
author='Widukind team',
author_email='dev@michaelmalter.fr',
url='https://github.com/Widukind',
package_dir={'dlstats': 'dlstats', 'dlstats.fetchers': 'dlstats/fetchers'},
packages=['dlstats', 'dlstats.fetchers'],
data_files=[('/usr/local/bin',['dlstats/dlstats_server.py']),
('/etc/systemd/system',['os_specific/dlstats.service'])],
install_requires=[
'pandas>=0.12',
'docopt>=0.6.0'
'voluptuous>=0.8'
]
)
with open('/etc/systemd/system/dlstats.service'):
os.chmod('/etc/systemd/system/dlstats.service', 0o755)
with open('/usr/local/bin/dlstats_server.py'):
os.chmod('/usr/local/bin/dlstats_server.py', 0o755)
|
<commit_before>#! /usr/bin/env python3
# -*- coding: utf-8 -*-
from setuptools import setup
from dlstats import version
import os
setup(name='dlstats',
version=version.version,
description='A python module that provides an interface between statistics providers and pandas.',
author='Widukind team',
author_email='dev@michaelmalter.fr',
url='https://github.com/Widukind',
package_dir={'dlstats': 'dlstats', 'dlstats.fetchers': 'dlstats/fetchers'},
packages=['dlstats', 'dlstats.fetchers'],
data_files=[('/usr/local/bin',['dlstats/dlstats_server.py']),
('/etc/systemd/system',['os_specific/dlstats.service'])],
install_requires=[
'pandas>=0.12',
'docopt>=0.6.0'
]
)
with open('/etc/systemd/system/dlstats.service'):
os.chmod('/etc/systemd/system/dlstats.service', 0o755)
with open('/usr/local/bin/dlstats_server.py'):
os.chmod('/usr/local/bin/dlstats_server.py', 0o755)
<commit_msg>Add voluptuous as a dependency<commit_after>#! /usr/bin/env python3
# -*- coding: utf-8 -*-
from setuptools import setup
from dlstats import version
import os
setup(name='dlstats',
version=version.version,
description='A python module that provides an interface between statistics providers and pandas.',
author='Widukind team',
author_email='dev@michaelmalter.fr',
url='https://github.com/Widukind',
package_dir={'dlstats': 'dlstats', 'dlstats.fetchers': 'dlstats/fetchers'},
packages=['dlstats', 'dlstats.fetchers'],
data_files=[('/usr/local/bin',['dlstats/dlstats_server.py']),
('/etc/systemd/system',['os_specific/dlstats.service'])],
install_requires=[
'pandas>=0.12',
'docopt>=0.6.0'
'voluptuous>=0.8'
]
)
with open('/etc/systemd/system/dlstats.service'):
os.chmod('/etc/systemd/system/dlstats.service', 0o755)
with open('/usr/local/bin/dlstats_server.py'):
os.chmod('/usr/local/bin/dlstats_server.py', 0o755)
|
424a7a08cce06e32b4159a90597fe569840f641f
|
udata/__init__.py
|
udata/__init__.py
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
uData
'''
from __future__ import unicode_literals
__version__ = '0.9.0.dev'
__description__ = 'Open data portal'
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
uData
'''
from __future__ import unicode_literals
__version__ = '1.0.0.dev'
__description__ = 'Open data portal'
|
Increase dev version to 1.0.0 for Pypi
|
Increase dev version to 1.0.0 for Pypi
|
Python
|
agpl-3.0
|
etalab/udata,davidbgk/udata,opendatateam/udata,opendatateam/udata,jphnoel/udata,davidbgk/udata,opendatateam/udata,etalab/udata,jphnoel/udata,davidbgk/udata,jphnoel/udata,etalab/udata
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
uData
'''
from __future__ import unicode_literals
__version__ = '0.9.0.dev'
__description__ = 'Open data portal'
Increase dev version to 1.0.0 for Pypi
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
uData
'''
from __future__ import unicode_literals
__version__ = '1.0.0.dev'
__description__ = 'Open data portal'
|
<commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
uData
'''
from __future__ import unicode_literals
__version__ = '0.9.0.dev'
__description__ = 'Open data portal'
<commit_msg>Increase dev version to 1.0.0 for Pypi<commit_after>
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
uData
'''
from __future__ import unicode_literals
__version__ = '1.0.0.dev'
__description__ = 'Open data portal'
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
uData
'''
from __future__ import unicode_literals
__version__ = '0.9.0.dev'
__description__ = 'Open data portal'
Increase dev version to 1.0.0 for Pypi#!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
uData
'''
from __future__ import unicode_literals
__version__ = '1.0.0.dev'
__description__ = 'Open data portal'
|
<commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
uData
'''
from __future__ import unicode_literals
__version__ = '0.9.0.dev'
__description__ = 'Open data portal'
<commit_msg>Increase dev version to 1.0.0 for Pypi<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
uData
'''
from __future__ import unicode_literals
__version__ = '1.0.0.dev'
__description__ = 'Open data portal'
|
88840c70accccda1c3aad3891650942ca890bc34
|
setup.py
|
setup.py
|
#!/usr/bin/env python
import os
from setuptools import setup, find_packages
name = 'Mikko Korpela'
# I might be just a little bit too much afraid of those bots..
address = name.lower().replace(' ', '.')+chr(64)+'gmail.com'
setup(name='robotframework-pabot',
version='1.2.0',
description='Parallel test runner for Robot Framework',
long_description='A parallel executor for Robot Framework tests.'
' With Pabot you can split one execution into multiple and save test execution time.',
author=name,
author_email=address,
url='https://pabot.org',
download_url='https://pypi.python.org/pypi/robotframework-pabot',
packages=find_packages(),
classifiers=[
'Intended Audience :: Developers',
'Natural Language :: English',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Topic :: Software Development :: Testing',
'License :: OSI Approved :: Apache Software License',
'Development Status :: 5 - Production/Stable',
'Framework :: Robot Framework'
],
entry_points = {'console_scripts': [
'pabot=pabot.pabot:main']},
license='Apache License, Version 2.0',
install_requires=[
'robotframework',
'websockets>=8.1;python_version>="3.6"',
'robotremoteserver>=1.1',
'typing;python_version<"3.5"'])
|
#!/usr/bin/env python
import os
from setuptools import setup, find_packages
name = 'Mikko Korpela'
# I might be just a little bit too much afraid of those bots..
address = name.lower().replace(' ', '.')+chr(64)+'gmail.com'
setup(name='robotframework-pabot',
version='1.2.0',
description='Parallel test runner for Robot Framework',
long_description='A parallel executor for Robot Framework tests.'
' With Pabot you can split one execution into multiple and save test execution time.',
author=name,
author_email=address,
url='https://pabot.org',
download_url='https://pypi.python.org/pypi/robotframework-pabot',
packages=find_packages(),
classifiers=[
'Intended Audience :: Developers',
'Natural Language :: English',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Topic :: Software Development :: Testing',
'License :: OSI Approved :: Apache Software License',
'Development Status :: 5 - Production/Stable',
'Framework :: Robot Framework'
],
entry_points = {'console_scripts': [
'pabot=pabot.pabot:main',
'pabotcoordinator=pabot.coordinatorwrapper:main',
'pabotworker=pabot.workerwrapper:main']},
license='Apache License, Version 2.0',
install_requires=[
'robotframework',
'websockets>=8.1;python_version>="3.6"',
'robotremoteserver>=1.1',
'typing;python_version<"3.5"'])
|
Revert "hide worker and coordinator"
|
Revert "hide worker and coordinator"
This reverts commit d2fc4b1fb37d8b687d7a5561be74a1e04fa0d57c.
|
Python
|
apache-2.0
|
mkorpela/pabot,mkorpela/pabot
|
#!/usr/bin/env python
import os
from setuptools import setup, find_packages
name = 'Mikko Korpela'
# I might be just a little bit too much afraid of those bots..
address = name.lower().replace(' ', '.')+chr(64)+'gmail.com'
setup(name='robotframework-pabot',
version='1.2.0',
description='Parallel test runner for Robot Framework',
long_description='A parallel executor for Robot Framework tests.'
' With Pabot you can split one execution into multiple and save test execution time.',
author=name,
author_email=address,
url='https://pabot.org',
download_url='https://pypi.python.org/pypi/robotframework-pabot',
packages=find_packages(),
classifiers=[
'Intended Audience :: Developers',
'Natural Language :: English',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Topic :: Software Development :: Testing',
'License :: OSI Approved :: Apache Software License',
'Development Status :: 5 - Production/Stable',
'Framework :: Robot Framework'
],
entry_points = {'console_scripts': [
'pabot=pabot.pabot:main']},
license='Apache License, Version 2.0',
install_requires=[
'robotframework',
'websockets>=8.1;python_version>="3.6"',
'robotremoteserver>=1.1',
'typing;python_version<"3.5"'])
Revert "hide worker and coordinator"
This reverts commit d2fc4b1fb37d8b687d7a5561be74a1e04fa0d57c.
|
#!/usr/bin/env python
import os
from setuptools import setup, find_packages
name = 'Mikko Korpela'
# I might be just a little bit too much afraid of those bots..
address = name.lower().replace(' ', '.')+chr(64)+'gmail.com'
setup(name='robotframework-pabot',
version='1.2.0',
description='Parallel test runner for Robot Framework',
long_description='A parallel executor for Robot Framework tests.'
' With Pabot you can split one execution into multiple and save test execution time.',
author=name,
author_email=address,
url='https://pabot.org',
download_url='https://pypi.python.org/pypi/robotframework-pabot',
packages=find_packages(),
classifiers=[
'Intended Audience :: Developers',
'Natural Language :: English',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Topic :: Software Development :: Testing',
'License :: OSI Approved :: Apache Software License',
'Development Status :: 5 - Production/Stable',
'Framework :: Robot Framework'
],
entry_points = {'console_scripts': [
'pabot=pabot.pabot:main',
'pabotcoordinator=pabot.coordinatorwrapper:main',
'pabotworker=pabot.workerwrapper:main']},
license='Apache License, Version 2.0',
install_requires=[
'robotframework',
'websockets>=8.1;python_version>="3.6"',
'robotremoteserver>=1.1',
'typing;python_version<"3.5"'])
|
<commit_before>#!/usr/bin/env python
import os
from setuptools import setup, find_packages
name = 'Mikko Korpela'
# I might be just a little bit too much afraid of those bots..
address = name.lower().replace(' ', '.')+chr(64)+'gmail.com'
setup(name='robotframework-pabot',
version='1.2.0',
description='Parallel test runner for Robot Framework',
long_description='A parallel executor for Robot Framework tests.'
' With Pabot you can split one execution into multiple and save test execution time.',
author=name,
author_email=address,
url='https://pabot.org',
download_url='https://pypi.python.org/pypi/robotframework-pabot',
packages=find_packages(),
classifiers=[
'Intended Audience :: Developers',
'Natural Language :: English',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Topic :: Software Development :: Testing',
'License :: OSI Approved :: Apache Software License',
'Development Status :: 5 - Production/Stable',
'Framework :: Robot Framework'
],
entry_points = {'console_scripts': [
'pabot=pabot.pabot:main']},
license='Apache License, Version 2.0',
install_requires=[
'robotframework',
'websockets>=8.1;python_version>="3.6"',
'robotremoteserver>=1.1',
'typing;python_version<"3.5"'])
<commit_msg>Revert "hide worker and coordinator"
This reverts commit d2fc4b1fb37d8b687d7a5561be74a1e04fa0d57c.<commit_after>
|
#!/usr/bin/env python
import os
from setuptools import setup, find_packages
name = 'Mikko Korpela'
# I might be just a little bit too much afraid of those bots..
address = name.lower().replace(' ', '.')+chr(64)+'gmail.com'
setup(name='robotframework-pabot',
version='1.2.0',
description='Parallel test runner for Robot Framework',
long_description='A parallel executor for Robot Framework tests.'
' With Pabot you can split one execution into multiple and save test execution time.',
author=name,
author_email=address,
url='https://pabot.org',
download_url='https://pypi.python.org/pypi/robotframework-pabot',
packages=find_packages(),
classifiers=[
'Intended Audience :: Developers',
'Natural Language :: English',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Topic :: Software Development :: Testing',
'License :: OSI Approved :: Apache Software License',
'Development Status :: 5 - Production/Stable',
'Framework :: Robot Framework'
],
entry_points = {'console_scripts': [
'pabot=pabot.pabot:main',
'pabotcoordinator=pabot.coordinatorwrapper:main',
'pabotworker=pabot.workerwrapper:main']},
license='Apache License, Version 2.0',
install_requires=[
'robotframework',
'websockets>=8.1;python_version>="3.6"',
'robotremoteserver>=1.1',
'typing;python_version<"3.5"'])
|
#!/usr/bin/env python
import os
from setuptools import setup, find_packages
name = 'Mikko Korpela'
# I might be just a little bit too much afraid of those bots..
address = name.lower().replace(' ', '.')+chr(64)+'gmail.com'
setup(name='robotframework-pabot',
version='1.2.0',
description='Parallel test runner for Robot Framework',
long_description='A parallel executor for Robot Framework tests.'
' With Pabot you can split one execution into multiple and save test execution time.',
author=name,
author_email=address,
url='https://pabot.org',
download_url='https://pypi.python.org/pypi/robotframework-pabot',
packages=find_packages(),
classifiers=[
'Intended Audience :: Developers',
'Natural Language :: English',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Topic :: Software Development :: Testing',
'License :: OSI Approved :: Apache Software License',
'Development Status :: 5 - Production/Stable',
'Framework :: Robot Framework'
],
entry_points = {'console_scripts': [
'pabot=pabot.pabot:main']},
license='Apache License, Version 2.0',
install_requires=[
'robotframework',
'websockets>=8.1;python_version>="3.6"',
'robotremoteserver>=1.1',
'typing;python_version<"3.5"'])
Revert "hide worker and coordinator"
This reverts commit d2fc4b1fb37d8b687d7a5561be74a1e04fa0d57c.#!/usr/bin/env python
import os
from setuptools import setup, find_packages
name = 'Mikko Korpela'
# I might be just a little bit too much afraid of those bots..
address = name.lower().replace(' ', '.')+chr(64)+'gmail.com'
setup(name='robotframework-pabot',
version='1.2.0',
description='Parallel test runner for Robot Framework',
long_description='A parallel executor for Robot Framework tests.'
' With Pabot you can split one execution into multiple and save test execution time.',
author=name,
author_email=address,
url='https://pabot.org',
download_url='https://pypi.python.org/pypi/robotframework-pabot',
packages=find_packages(),
classifiers=[
'Intended Audience :: Developers',
'Natural Language :: English',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Topic :: Software Development :: Testing',
'License :: OSI Approved :: Apache Software License',
'Development Status :: 5 - Production/Stable',
'Framework :: Robot Framework'
],
entry_points = {'console_scripts': [
'pabot=pabot.pabot:main',
'pabotcoordinator=pabot.coordinatorwrapper:main',
'pabotworker=pabot.workerwrapper:main']},
license='Apache License, Version 2.0',
install_requires=[
'robotframework',
'websockets>=8.1;python_version>="3.6"',
'robotremoteserver>=1.1',
'typing;python_version<"3.5"'])
|
<commit_before>#!/usr/bin/env python
import os
from setuptools import setup, find_packages
name = 'Mikko Korpela'
# I might be just a little bit too much afraid of those bots..
address = name.lower().replace(' ', '.')+chr(64)+'gmail.com'
setup(name='robotframework-pabot',
version='1.2.0',
description='Parallel test runner for Robot Framework',
long_description='A parallel executor for Robot Framework tests.'
' With Pabot you can split one execution into multiple and save test execution time.',
author=name,
author_email=address,
url='https://pabot.org',
download_url='https://pypi.python.org/pypi/robotframework-pabot',
packages=find_packages(),
classifiers=[
'Intended Audience :: Developers',
'Natural Language :: English',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Topic :: Software Development :: Testing',
'License :: OSI Approved :: Apache Software License',
'Development Status :: 5 - Production/Stable',
'Framework :: Robot Framework'
],
entry_points = {'console_scripts': [
'pabot=pabot.pabot:main']},
license='Apache License, Version 2.0',
install_requires=[
'robotframework',
'websockets>=8.1;python_version>="3.6"',
'robotremoteserver>=1.1',
'typing;python_version<"3.5"'])
<commit_msg>Revert "hide worker and coordinator"
This reverts commit d2fc4b1fb37d8b687d7a5561be74a1e04fa0d57c.<commit_after>#!/usr/bin/env python
import os
from setuptools import setup, find_packages
name = 'Mikko Korpela'
# I might be just a little bit too much afraid of those bots..
address = name.lower().replace(' ', '.')+chr(64)+'gmail.com'
setup(name='robotframework-pabot',
version='1.2.0',
description='Parallel test runner for Robot Framework',
long_description='A parallel executor for Robot Framework tests.'
' With Pabot you can split one execution into multiple and save test execution time.',
author=name,
author_email=address,
url='https://pabot.org',
download_url='https://pypi.python.org/pypi/robotframework-pabot',
packages=find_packages(),
classifiers=[
'Intended Audience :: Developers',
'Natural Language :: English',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Topic :: Software Development :: Testing',
'License :: OSI Approved :: Apache Software License',
'Development Status :: 5 - Production/Stable',
'Framework :: Robot Framework'
],
entry_points = {'console_scripts': [
'pabot=pabot.pabot:main',
'pabotcoordinator=pabot.coordinatorwrapper:main',
'pabotworker=pabot.workerwrapper:main']},
license='Apache License, Version 2.0',
install_requires=[
'robotframework',
'websockets>=8.1;python_version>="3.6"',
'robotremoteserver>=1.1',
'typing;python_version<"3.5"'])
|
d1dda8983bdaa0d25ab10051381e34befe7ed4a8
|
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.20.0",
packages=find_packages(),
scripts=["scripts/bentoo-generator.py", "scripts/bentoo-runner.py",
"scripts/bentoo-collector.py", "scripts/bentoo-analyser.py",
"scripts/bentoo-aggregator.py", "scripts/bentoo-metric.py",
"scripts/bentoo-quickstart.py", "scripts/bentoo-calltree.py",
"scripts/bentoo-merge.py", "scripts/bentoo-calltree-analyser.py",
"scripts/bentoo-viewer.py", "scripts/bentoo-svgconvert.py",
"scripts/bentoo-confreader.py"],
package_data={
'': ['*.adoc', '*.rst', '*.md']
},
author="Zhang YANG",
author_email="zyangmath@gmail.com",
license="PSF",
keywords="Benchmark;Performance Analysis",
url="http://github.com/ProgramFan/bentoo")
|
#!/usr/bin/env python
# coding: utf-8
from setuptools import setup, find_packages
setup(
name="bentoo",
description="Benchmarking tools",
version="0.21.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.20.0",
packages=find_packages(),
scripts=["scripts/bentoo-generator.py", "scripts/bentoo-runner.py",
"scripts/bentoo-collector.py", "scripts/bentoo-analyser.py",
"scripts/bentoo-aggregator.py", "scripts/bentoo-metric.py",
"scripts/bentoo-quickstart.py", "scripts/bentoo-calltree.py",
"scripts/bentoo-merge.py", "scripts/bentoo-calltree-analyser.py",
"scripts/bentoo-viewer.py", "scripts/bentoo-svgconvert.py",
"scripts/bentoo-confreader.py"],
package_data={
'': ['*.adoc', '*.rst', '*.md']
},
author="Zhang YANG",
author_email="zyangmath@gmail.com",
license="PSF",
keywords="Benchmark;Performance Analysis",
url="http://github.com/ProgramFan/bentoo")
Prepare for next dev cycle
|
#!/usr/bin/env python
# coding: utf-8
from setuptools import setup, find_packages
setup(
name="bentoo",
description="Benchmarking tools",
version="0.21.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.20.0",
packages=find_packages(),
scripts=["scripts/bentoo-generator.py", "scripts/bentoo-runner.py",
"scripts/bentoo-collector.py", "scripts/bentoo-analyser.py",
"scripts/bentoo-aggregator.py", "scripts/bentoo-metric.py",
"scripts/bentoo-quickstart.py", "scripts/bentoo-calltree.py",
"scripts/bentoo-merge.py", "scripts/bentoo-calltree-analyser.py",
"scripts/bentoo-viewer.py", "scripts/bentoo-svgconvert.py",
"scripts/bentoo-confreader.py"],
package_data={
'': ['*.adoc', '*.rst', '*.md']
},
author="Zhang YANG",
author_email="zyangmath@gmail.com",
license="PSF",
keywords="Benchmark;Performance Analysis",
url="http://github.com/ProgramFan/bentoo")
<commit_msg>Prepare for next dev cycle<commit_after>
|
#!/usr/bin/env python
# coding: utf-8
from setuptools import setup, find_packages
setup(
name="bentoo",
description="Benchmarking tools",
version="0.21.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.20.0",
packages=find_packages(),
scripts=["scripts/bentoo-generator.py", "scripts/bentoo-runner.py",
"scripts/bentoo-collector.py", "scripts/bentoo-analyser.py",
"scripts/bentoo-aggregator.py", "scripts/bentoo-metric.py",
"scripts/bentoo-quickstart.py", "scripts/bentoo-calltree.py",
"scripts/bentoo-merge.py", "scripts/bentoo-calltree-analyser.py",
"scripts/bentoo-viewer.py", "scripts/bentoo-svgconvert.py",
"scripts/bentoo-confreader.py"],
package_data={
'': ['*.adoc', '*.rst', '*.md']
},
author="Zhang YANG",
author_email="zyangmath@gmail.com",
license="PSF",
keywords="Benchmark;Performance Analysis",
url="http://github.com/ProgramFan/bentoo")
Prepare for next dev cycle#!/usr/bin/env python
# coding: utf-8
from setuptools import setup, find_packages
setup(
name="bentoo",
description="Benchmarking tools",
version="0.21.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.20.0",
packages=find_packages(),
scripts=["scripts/bentoo-generator.py", "scripts/bentoo-runner.py",
"scripts/bentoo-collector.py", "scripts/bentoo-analyser.py",
"scripts/bentoo-aggregator.py", "scripts/bentoo-metric.py",
"scripts/bentoo-quickstart.py", "scripts/bentoo-calltree.py",
"scripts/bentoo-merge.py", "scripts/bentoo-calltree-analyser.py",
"scripts/bentoo-viewer.py", "scripts/bentoo-svgconvert.py",
"scripts/bentoo-confreader.py"],
package_data={
'': ['*.adoc', '*.rst', '*.md']
},
author="Zhang YANG",
author_email="zyangmath@gmail.com",
license="PSF",
keywords="Benchmark;Performance Analysis",
url="http://github.com/ProgramFan/bentoo")
<commit_msg>Prepare for next dev cycle<commit_after>#!/usr/bin/env python
# coding: utf-8
from setuptools import setup, find_packages
setup(
name="bentoo",
description="Benchmarking tools",
version="0.21.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")
|
ad366d0f664d22c4124b2b0755815aeeccba4dd8
|
setup.py
|
setup.py
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
from setuptools import setup, find_packages
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='flask-appconfig',
version='0.9.1.dev1',
description=('Configures Flask applications in a canonical way. Also auto-'
'configures Heroku. Aims to standardize configuration.'),
long_description=read('README.rst'),
author='Marc Brinkmann',
author_email='git@marcbrinkmann.de',
url='http://github.com/mbr/flask-appconfig',
license='MIT',
packages=find_packages(exclude=['tests']),
py_modules=['flaskdev.py'],
install_requires=['flask', 'six'],
entry_points={
'console_scripts': [
'flaskdev = flask_appconfig.cmd:main_flaskdev',
],
}
)
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
from setuptools import setup, find_packages
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='flask-appconfig',
version='0.9.1.dev1',
description=('Configures Flask applications in a canonical way. Also auto-'
'configures Heroku. Aims to standardize configuration.'),
long_description=read('README.rst'),
author='Marc Brinkmann',
author_email='git@marcbrinkmann.de',
url='http://github.com/mbr/flask-appconfig',
license='MIT',
packages=find_packages(exclude=['tests']),
py_modules=['flaskdev'],
install_requires=['flask', 'six'],
entry_points={
'console_scripts': [
'flaskdev = flask_appconfig.cmd:main_flaskdev',
],
}
)
|
Remove .py extension from py_module.
|
Remove .py extension from py_module.
|
Python
|
mit
|
mbr/flask-appconfig,brettatoms/flask-appconfig
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
from setuptools import setup, find_packages
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='flask-appconfig',
version='0.9.1.dev1',
description=('Configures Flask applications in a canonical way. Also auto-'
'configures Heroku. Aims to standardize configuration.'),
long_description=read('README.rst'),
author='Marc Brinkmann',
author_email='git@marcbrinkmann.de',
url='http://github.com/mbr/flask-appconfig',
license='MIT',
packages=find_packages(exclude=['tests']),
py_modules=['flaskdev.py'],
install_requires=['flask', 'six'],
entry_points={
'console_scripts': [
'flaskdev = flask_appconfig.cmd:main_flaskdev',
],
}
)
Remove .py extension from py_module.
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
from setuptools import setup, find_packages
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='flask-appconfig',
version='0.9.1.dev1',
description=('Configures Flask applications in a canonical way. Also auto-'
'configures Heroku. Aims to standardize configuration.'),
long_description=read('README.rst'),
author='Marc Brinkmann',
author_email='git@marcbrinkmann.de',
url='http://github.com/mbr/flask-appconfig',
license='MIT',
packages=find_packages(exclude=['tests']),
py_modules=['flaskdev'],
install_requires=['flask', 'six'],
entry_points={
'console_scripts': [
'flaskdev = flask_appconfig.cmd:main_flaskdev',
],
}
)
|
<commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
from setuptools import setup, find_packages
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='flask-appconfig',
version='0.9.1.dev1',
description=('Configures Flask applications in a canonical way. Also auto-'
'configures Heroku. Aims to standardize configuration.'),
long_description=read('README.rst'),
author='Marc Brinkmann',
author_email='git@marcbrinkmann.de',
url='http://github.com/mbr/flask-appconfig',
license='MIT',
packages=find_packages(exclude=['tests']),
py_modules=['flaskdev.py'],
install_requires=['flask', 'six'],
entry_points={
'console_scripts': [
'flaskdev = flask_appconfig.cmd:main_flaskdev',
],
}
)
<commit_msg>Remove .py extension from py_module.<commit_after>
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
from setuptools import setup, find_packages
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='flask-appconfig',
version='0.9.1.dev1',
description=('Configures Flask applications in a canonical way. Also auto-'
'configures Heroku. Aims to standardize configuration.'),
long_description=read('README.rst'),
author='Marc Brinkmann',
author_email='git@marcbrinkmann.de',
url='http://github.com/mbr/flask-appconfig',
license='MIT',
packages=find_packages(exclude=['tests']),
py_modules=['flaskdev'],
install_requires=['flask', 'six'],
entry_points={
'console_scripts': [
'flaskdev = flask_appconfig.cmd:main_flaskdev',
],
}
)
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
from setuptools import setup, find_packages
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='flask-appconfig',
version='0.9.1.dev1',
description=('Configures Flask applications in a canonical way. Also auto-'
'configures Heroku. Aims to standardize configuration.'),
long_description=read('README.rst'),
author='Marc Brinkmann',
author_email='git@marcbrinkmann.de',
url='http://github.com/mbr/flask-appconfig',
license='MIT',
packages=find_packages(exclude=['tests']),
py_modules=['flaskdev.py'],
install_requires=['flask', 'six'],
entry_points={
'console_scripts': [
'flaskdev = flask_appconfig.cmd:main_flaskdev',
],
}
)
Remove .py extension from py_module.#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
from setuptools import setup, find_packages
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='flask-appconfig',
version='0.9.1.dev1',
description=('Configures Flask applications in a canonical way. Also auto-'
'configures Heroku. Aims to standardize configuration.'),
long_description=read('README.rst'),
author='Marc Brinkmann',
author_email='git@marcbrinkmann.de',
url='http://github.com/mbr/flask-appconfig',
license='MIT',
packages=find_packages(exclude=['tests']),
py_modules=['flaskdev'],
install_requires=['flask', 'six'],
entry_points={
'console_scripts': [
'flaskdev = flask_appconfig.cmd:main_flaskdev',
],
}
)
|
<commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
from setuptools import setup, find_packages
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='flask-appconfig',
version='0.9.1.dev1',
description=('Configures Flask applications in a canonical way. Also auto-'
'configures Heroku. Aims to standardize configuration.'),
long_description=read('README.rst'),
author='Marc Brinkmann',
author_email='git@marcbrinkmann.de',
url='http://github.com/mbr/flask-appconfig',
license='MIT',
packages=find_packages(exclude=['tests']),
py_modules=['flaskdev.py'],
install_requires=['flask', 'six'],
entry_points={
'console_scripts': [
'flaskdev = flask_appconfig.cmd:main_flaskdev',
],
}
)
<commit_msg>Remove .py extension from py_module.<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
from setuptools import setup, find_packages
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='flask-appconfig',
version='0.9.1.dev1',
description=('Configures Flask applications in a canonical way. Also auto-'
'configures Heroku. Aims to standardize configuration.'),
long_description=read('README.rst'),
author='Marc Brinkmann',
author_email='git@marcbrinkmann.de',
url='http://github.com/mbr/flask-appconfig',
license='MIT',
packages=find_packages(exclude=['tests']),
py_modules=['flaskdev'],
install_requires=['flask', 'six'],
entry_points={
'console_scripts': [
'flaskdev = flask_appconfig.cmd:main_flaskdev',
],
}
)
|
01d73eb5b27f82707b9819277f4d1fe6e4f07a6b
|
setup.py
|
setup.py
|
from distutils.core import setup
classifiers = [
'Development Status :: 5 - Production/Stable',
'Environment :: Win32 (MS Windows)',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: MIT License',
'Operating System :: Microsoft :: Windows',
'Topic :: System :: Systems Administration',
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3",
]
setup (
name = "winshell",
version = "0.4",
description = "Windows shell functions",
author = "Tim Golden",
author_email = "mail@timgolden.me.uk",
url = "https://github.com/tjguk/winshell",
license = "http://www.opensource.org/licenses/mit-license.php",
py_modules = ["winshell"],
long_description=open ("docs/readme.rst").read ()
)
|
from distutils.core import setup
classifiers = [
'Development Status :: 5 - Production/Stable',
'Environment :: Win32 (MS Windows)',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: MIT License',
'Operating System :: Microsoft :: Windows',
'Topic :: System :: Systems Administration',
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3",
]
long_description = """winshell
========
The winshell module is a light wrapper around the Windows shell functionality.
It includes convenience functions for accessing special folders, for using
the shell's file copy, rename & delete functionality, and a certain amount
of support for structured storage.
Docs are hosted at: http://winshell.readthedocs.org/
"""
setup (
name = "winshell",
version = "0.4",
description = "Windows shell functions",
author = "Tim Golden",
author_email = "mail@timgolden.me.uk",
url = "https://github.com/tjguk/winshell",
license = "http://www.opensource.org/licenses/mit-license.php",
py_modules = ["winshell"],
long_description=long_description
)
|
Switch to a built-in long_description so pip succeeds
|
Switch to a built-in long_description so pip succeeds
|
Python
|
mit
|
tjguk/winshell,tjguk/winshell,tjguk/winshell
|
from distutils.core import setup
classifiers = [
'Development Status :: 5 - Production/Stable',
'Environment :: Win32 (MS Windows)',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: MIT License',
'Operating System :: Microsoft :: Windows',
'Topic :: System :: Systems Administration',
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3",
]
setup (
name = "winshell",
version = "0.4",
description = "Windows shell functions",
author = "Tim Golden",
author_email = "mail@timgolden.me.uk",
url = "https://github.com/tjguk/winshell",
license = "http://www.opensource.org/licenses/mit-license.php",
py_modules = ["winshell"],
long_description=open ("docs/readme.rst").read ()
)
Switch to a built-in long_description so pip succeeds
|
from distutils.core import setup
classifiers = [
'Development Status :: 5 - Production/Stable',
'Environment :: Win32 (MS Windows)',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: MIT License',
'Operating System :: Microsoft :: Windows',
'Topic :: System :: Systems Administration',
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3",
]
long_description = """winshell
========
The winshell module is a light wrapper around the Windows shell functionality.
It includes convenience functions for accessing special folders, for using
the shell's file copy, rename & delete functionality, and a certain amount
of support for structured storage.
Docs are hosted at: http://winshell.readthedocs.org/
"""
setup (
name = "winshell",
version = "0.4",
description = "Windows shell functions",
author = "Tim Golden",
author_email = "mail@timgolden.me.uk",
url = "https://github.com/tjguk/winshell",
license = "http://www.opensource.org/licenses/mit-license.php",
py_modules = ["winshell"],
long_description=long_description
)
|
<commit_before>from distutils.core import setup
classifiers = [
'Development Status :: 5 - Production/Stable',
'Environment :: Win32 (MS Windows)',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: MIT License',
'Operating System :: Microsoft :: Windows',
'Topic :: System :: Systems Administration',
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3",
]
setup (
name = "winshell",
version = "0.4",
description = "Windows shell functions",
author = "Tim Golden",
author_email = "mail@timgolden.me.uk",
url = "https://github.com/tjguk/winshell",
license = "http://www.opensource.org/licenses/mit-license.php",
py_modules = ["winshell"],
long_description=open ("docs/readme.rst").read ()
)
<commit_msg>Switch to a built-in long_description so pip succeeds<commit_after>
|
from distutils.core import setup
classifiers = [
'Development Status :: 5 - Production/Stable',
'Environment :: Win32 (MS Windows)',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: MIT License',
'Operating System :: Microsoft :: Windows',
'Topic :: System :: Systems Administration',
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3",
]
long_description = """winshell
========
The winshell module is a light wrapper around the Windows shell functionality.
It includes convenience functions for accessing special folders, for using
the shell's file copy, rename & delete functionality, and a certain amount
of support for structured storage.
Docs are hosted at: http://winshell.readthedocs.org/
"""
setup (
name = "winshell",
version = "0.4",
description = "Windows shell functions",
author = "Tim Golden",
author_email = "mail@timgolden.me.uk",
url = "https://github.com/tjguk/winshell",
license = "http://www.opensource.org/licenses/mit-license.php",
py_modules = ["winshell"],
long_description=long_description
)
|
from distutils.core import setup
classifiers = [
'Development Status :: 5 - Production/Stable',
'Environment :: Win32 (MS Windows)',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: MIT License',
'Operating System :: Microsoft :: Windows',
'Topic :: System :: Systems Administration',
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3",
]
setup (
name = "winshell",
version = "0.4",
description = "Windows shell functions",
author = "Tim Golden",
author_email = "mail@timgolden.me.uk",
url = "https://github.com/tjguk/winshell",
license = "http://www.opensource.org/licenses/mit-license.php",
py_modules = ["winshell"],
long_description=open ("docs/readme.rst").read ()
)
Switch to a built-in long_description so pip succeedsfrom distutils.core import setup
classifiers = [
'Development Status :: 5 - Production/Stable',
'Environment :: Win32 (MS Windows)',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: MIT License',
'Operating System :: Microsoft :: Windows',
'Topic :: System :: Systems Administration',
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3",
]
long_description = """winshell
========
The winshell module is a light wrapper around the Windows shell functionality.
It includes convenience functions for accessing special folders, for using
the shell's file copy, rename & delete functionality, and a certain amount
of support for structured storage.
Docs are hosted at: http://winshell.readthedocs.org/
"""
setup (
name = "winshell",
version = "0.4",
description = "Windows shell functions",
author = "Tim Golden",
author_email = "mail@timgolden.me.uk",
url = "https://github.com/tjguk/winshell",
license = "http://www.opensource.org/licenses/mit-license.php",
py_modules = ["winshell"],
long_description=long_description
)
|
<commit_before>from distutils.core import setup
classifiers = [
'Development Status :: 5 - Production/Stable',
'Environment :: Win32 (MS Windows)',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: MIT License',
'Operating System :: Microsoft :: Windows',
'Topic :: System :: Systems Administration',
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3",
]
setup (
name = "winshell",
version = "0.4",
description = "Windows shell functions",
author = "Tim Golden",
author_email = "mail@timgolden.me.uk",
url = "https://github.com/tjguk/winshell",
license = "http://www.opensource.org/licenses/mit-license.php",
py_modules = ["winshell"],
long_description=open ("docs/readme.rst").read ()
)
<commit_msg>Switch to a built-in long_description so pip succeeds<commit_after>from distutils.core import setup
classifiers = [
'Development Status :: 5 - Production/Stable',
'Environment :: Win32 (MS Windows)',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: MIT License',
'Operating System :: Microsoft :: Windows',
'Topic :: System :: Systems Administration',
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3",
]
long_description = """winshell
========
The winshell module is a light wrapper around the Windows shell functionality.
It includes convenience functions for accessing special folders, for using
the shell's file copy, rename & delete functionality, and a certain amount
of support for structured storage.
Docs are hosted at: http://winshell.readthedocs.org/
"""
setup (
name = "winshell",
version = "0.4",
description = "Windows shell functions",
author = "Tim Golden",
author_email = "mail@timgolden.me.uk",
url = "https://github.com/tjguk/winshell",
license = "http://www.opensource.org/licenses/mit-license.php",
py_modules = ["winshell"],
long_description=long_description
)
|
16ca763d966e4e0c3172ca6bd28a81c460c23811
|
setup.py
|
setup.py
|
from setuptools import setup, find_packages
setup(
name="django-salmonella",
version="0.4.1",
author='Lincoln Loop: Seth Buntin, Yann Malet',
author_email='info@lincolnloop.com',
description=("raw_id_fields widget replacement that handles display of an object's "
"string value on change and can be overridden via a template."),
packages=find_packages(),
package_data={'salmonella': ['static/*.js', 'templates/salmonella/*.html', 'templates/salmonella/admin/widgets/*.html']},
url="http://github.com/lincolnloop/django-salmonella/",
install_requires=['setuptools'],
classifiers=[
'Development Status :: 4 - Beta1',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules'
]
)
|
from setuptools import setup, find_packages
setup(
name="django-salmonella",
version="0.4.1",
author='Lincoln Loop: Seth Buntin, Yann Malet',
author_email='info@lincolnloop.com',
description=("raw_id_fields widget replacement that handles display of an object's "
"string value on change and can be overridden via a template."),
packages=find_packages(),
package_data={'salmonella': ['static/*.js', 'templates/salmonella/*.html', 'templates/salmonella/admin/widgets/*.html']},
url="http://github.com/lincolnloop/django-salmonella/",
install_requires=['setuptools'],
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules'
]
)
|
Remove the 1 in the Development status classifier
|
Remove the 1 in the Development status classifier
|
Python
|
mit
|
lincolnloop/django-salmonella,lincolnloop/django-salmonella,lincolnloop/django-salmonella,lincolnloop/django-salmonella,Gustavosdo/django-salmonella,Gustavosdo/django-salmonella,Gustavosdo/django-salmonella
|
from setuptools import setup, find_packages
setup(
name="django-salmonella",
version="0.4.1",
author='Lincoln Loop: Seth Buntin, Yann Malet',
author_email='info@lincolnloop.com',
description=("raw_id_fields widget replacement that handles display of an object's "
"string value on change and can be overridden via a template."),
packages=find_packages(),
package_data={'salmonella': ['static/*.js', 'templates/salmonella/*.html', 'templates/salmonella/admin/widgets/*.html']},
url="http://github.com/lincolnloop/django-salmonella/",
install_requires=['setuptools'],
classifiers=[
'Development Status :: 4 - Beta1',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules'
]
)
Remove the 1 in the Development status classifier
|
from setuptools import setup, find_packages
setup(
name="django-salmonella",
version="0.4.1",
author='Lincoln Loop: Seth Buntin, Yann Malet',
author_email='info@lincolnloop.com',
description=("raw_id_fields widget replacement that handles display of an object's "
"string value on change and can be overridden via a template."),
packages=find_packages(),
package_data={'salmonella': ['static/*.js', 'templates/salmonella/*.html', 'templates/salmonella/admin/widgets/*.html']},
url="http://github.com/lincolnloop/django-salmonella/",
install_requires=['setuptools'],
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules'
]
)
|
<commit_before>from setuptools import setup, find_packages
setup(
name="django-salmonella",
version="0.4.1",
author='Lincoln Loop: Seth Buntin, Yann Malet',
author_email='info@lincolnloop.com',
description=("raw_id_fields widget replacement that handles display of an object's "
"string value on change and can be overridden via a template."),
packages=find_packages(),
package_data={'salmonella': ['static/*.js', 'templates/salmonella/*.html', 'templates/salmonella/admin/widgets/*.html']},
url="http://github.com/lincolnloop/django-salmonella/",
install_requires=['setuptools'],
classifiers=[
'Development Status :: 4 - Beta1',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules'
]
)
<commit_msg>Remove the 1 in the Development status classifier<commit_after>
|
from setuptools import setup, find_packages
setup(
name="django-salmonella",
version="0.4.1",
author='Lincoln Loop: Seth Buntin, Yann Malet',
author_email='info@lincolnloop.com',
description=("raw_id_fields widget replacement that handles display of an object's "
"string value on change and can be overridden via a template."),
packages=find_packages(),
package_data={'salmonella': ['static/*.js', 'templates/salmonella/*.html', 'templates/salmonella/admin/widgets/*.html']},
url="http://github.com/lincolnloop/django-salmonella/",
install_requires=['setuptools'],
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules'
]
)
|
from setuptools import setup, find_packages
setup(
name="django-salmonella",
version="0.4.1",
author='Lincoln Loop: Seth Buntin, Yann Malet',
author_email='info@lincolnloop.com',
description=("raw_id_fields widget replacement that handles display of an object's "
"string value on change and can be overridden via a template."),
packages=find_packages(),
package_data={'salmonella': ['static/*.js', 'templates/salmonella/*.html', 'templates/salmonella/admin/widgets/*.html']},
url="http://github.com/lincolnloop/django-salmonella/",
install_requires=['setuptools'],
classifiers=[
'Development Status :: 4 - Beta1',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules'
]
)
Remove the 1 in the Development status classifierfrom setuptools import setup, find_packages
setup(
name="django-salmonella",
version="0.4.1",
author='Lincoln Loop: Seth Buntin, Yann Malet',
author_email='info@lincolnloop.com',
description=("raw_id_fields widget replacement that handles display of an object's "
"string value on change and can be overridden via a template."),
packages=find_packages(),
package_data={'salmonella': ['static/*.js', 'templates/salmonella/*.html', 'templates/salmonella/admin/widgets/*.html']},
url="http://github.com/lincolnloop/django-salmonella/",
install_requires=['setuptools'],
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules'
]
)
|
<commit_before>from setuptools import setup, find_packages
setup(
name="django-salmonella",
version="0.4.1",
author='Lincoln Loop: Seth Buntin, Yann Malet',
author_email='info@lincolnloop.com',
description=("raw_id_fields widget replacement that handles display of an object's "
"string value on change and can be overridden via a template."),
packages=find_packages(),
package_data={'salmonella': ['static/*.js', 'templates/salmonella/*.html', 'templates/salmonella/admin/widgets/*.html']},
url="http://github.com/lincolnloop/django-salmonella/",
install_requires=['setuptools'],
classifiers=[
'Development Status :: 4 - Beta1',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules'
]
)
<commit_msg>Remove the 1 in the Development status classifier<commit_after>from setuptools import setup, find_packages
setup(
name="django-salmonella",
version="0.4.1",
author='Lincoln Loop: Seth Buntin, Yann Malet',
author_email='info@lincolnloop.com',
description=("raw_id_fields widget replacement that handles display of an object's "
"string value on change and can be overridden via a template."),
packages=find_packages(),
package_data={'salmonella': ['static/*.js', 'templates/salmonella/*.html', 'templates/salmonella/admin/widgets/*.html']},
url="http://github.com/lincolnloop/django-salmonella/",
install_requires=['setuptools'],
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules'
]
)
|
fbb31793940619649d1d047d03788ca1967c7afd
|
setup.py
|
setup.py
|
import io
from setuptools import setup, find_packages
def read(*filenames, **kwargs):
"""
From http://www.jeffknupp.com/blog/2013/08/16/open-sourcing-a-python-project-the-right-way/
"""
encoding = kwargs.get('encoding', 'utf-8')
sep = kwargs.get('sep', '\n')
buf = []
for filename in filenames:
with io.open(filename, encoding=encoding) as f:
buf.append(f.read())
return sep.join(buf)
setup(
name="djangocms-markdown",
version='0.3.0',
description=read('DESCRIPTION'),
long_description=read('README.md'),
license='The MIT License',
platforms=['OS Independent'],
keywords='django, django-cms, plugin, markdown, editor',
author='Olle Vidner',
author_email='olle@vidner.se',
url="https://github.com/ovidner/djangocms-markdown",
packages=find_packages(),
include_package_data=True,
install_requires=[
'Django',
'South',
'django-cms>=3.0.0',
'django-markdown-deux',
],
)
|
import io
from setuptools import setup, find_packages
def read(*filenames, **kwargs):
"""
From http://www.jeffknupp.com/blog/2013/08/16/open-sourcing-a-python-project-the-right-way/
"""
encoding = kwargs.get('encoding', 'utf-8')
sep = kwargs.get('sep', '\n')
buf = []
for filename in filenames:
with io.open(filename, encoding=encoding) as f:
buf.append(f.read())
return sep.join(buf)
setup(
name="djangocms-markdown",
version='0.3.0',
description=read('DESCRIPTION'),
long_description=read('README.md'),
license='The MIT License',
platforms=['OS Independent'],
keywords='django, django-cms, plugin, markdown, editor',
author='Olle Vidner',
author_email='olle@vidner.se',
url="https://github.com/ovidner/djangocms-markdown",
packages=find_packages(),
include_package_data=True,
install_requires=[
'Django',
'South',
'django-cms>=3.0.0',
'django-markdown-deux',
], extras_require = {
'Django_less_than_17': ["South>=1.0"]
}
)
|
Make South optional since we now support Django migrations.
|
Make South optional since we now support Django migrations.
|
Python
|
mit
|
niconoe/djangocms-markdown,niconoe/djangocms-markdown,niconoe/djangocms-markdown
|
import io
from setuptools import setup, find_packages
def read(*filenames, **kwargs):
"""
From http://www.jeffknupp.com/blog/2013/08/16/open-sourcing-a-python-project-the-right-way/
"""
encoding = kwargs.get('encoding', 'utf-8')
sep = kwargs.get('sep', '\n')
buf = []
for filename in filenames:
with io.open(filename, encoding=encoding) as f:
buf.append(f.read())
return sep.join(buf)
setup(
name="djangocms-markdown",
version='0.3.0',
description=read('DESCRIPTION'),
long_description=read('README.md'),
license='The MIT License',
platforms=['OS Independent'],
keywords='django, django-cms, plugin, markdown, editor',
author='Olle Vidner',
author_email='olle@vidner.se',
url="https://github.com/ovidner/djangocms-markdown",
packages=find_packages(),
include_package_data=True,
install_requires=[
'Django',
'South',
'django-cms>=3.0.0',
'django-markdown-deux',
],
)
Make South optional since we now support Django migrations.
|
import io
from setuptools import setup, find_packages
def read(*filenames, **kwargs):
"""
From http://www.jeffknupp.com/blog/2013/08/16/open-sourcing-a-python-project-the-right-way/
"""
encoding = kwargs.get('encoding', 'utf-8')
sep = kwargs.get('sep', '\n')
buf = []
for filename in filenames:
with io.open(filename, encoding=encoding) as f:
buf.append(f.read())
return sep.join(buf)
setup(
name="djangocms-markdown",
version='0.3.0',
description=read('DESCRIPTION'),
long_description=read('README.md'),
license='The MIT License',
platforms=['OS Independent'],
keywords='django, django-cms, plugin, markdown, editor',
author='Olle Vidner',
author_email='olle@vidner.se',
url="https://github.com/ovidner/djangocms-markdown",
packages=find_packages(),
include_package_data=True,
install_requires=[
'Django',
'South',
'django-cms>=3.0.0',
'django-markdown-deux',
], extras_require = {
'Django_less_than_17': ["South>=1.0"]
}
)
|
<commit_before>import io
from setuptools import setup, find_packages
def read(*filenames, **kwargs):
"""
From http://www.jeffknupp.com/blog/2013/08/16/open-sourcing-a-python-project-the-right-way/
"""
encoding = kwargs.get('encoding', 'utf-8')
sep = kwargs.get('sep', '\n')
buf = []
for filename in filenames:
with io.open(filename, encoding=encoding) as f:
buf.append(f.read())
return sep.join(buf)
setup(
name="djangocms-markdown",
version='0.3.0',
description=read('DESCRIPTION'),
long_description=read('README.md'),
license='The MIT License',
platforms=['OS Independent'],
keywords='django, django-cms, plugin, markdown, editor',
author='Olle Vidner',
author_email='olle@vidner.se',
url="https://github.com/ovidner/djangocms-markdown",
packages=find_packages(),
include_package_data=True,
install_requires=[
'Django',
'South',
'django-cms>=3.0.0',
'django-markdown-deux',
],
)
<commit_msg>Make South optional since we now support Django migrations.<commit_after>
|
import io
from setuptools import setup, find_packages
def read(*filenames, **kwargs):
"""
From http://www.jeffknupp.com/blog/2013/08/16/open-sourcing-a-python-project-the-right-way/
"""
encoding = kwargs.get('encoding', 'utf-8')
sep = kwargs.get('sep', '\n')
buf = []
for filename in filenames:
with io.open(filename, encoding=encoding) as f:
buf.append(f.read())
return sep.join(buf)
setup(
name="djangocms-markdown",
version='0.3.0',
description=read('DESCRIPTION'),
long_description=read('README.md'),
license='The MIT License',
platforms=['OS Independent'],
keywords='django, django-cms, plugin, markdown, editor',
author='Olle Vidner',
author_email='olle@vidner.se',
url="https://github.com/ovidner/djangocms-markdown",
packages=find_packages(),
include_package_data=True,
install_requires=[
'Django',
'South',
'django-cms>=3.0.0',
'django-markdown-deux',
], extras_require = {
'Django_less_than_17': ["South>=1.0"]
}
)
|
import io
from setuptools import setup, find_packages
def read(*filenames, **kwargs):
"""
From http://www.jeffknupp.com/blog/2013/08/16/open-sourcing-a-python-project-the-right-way/
"""
encoding = kwargs.get('encoding', 'utf-8')
sep = kwargs.get('sep', '\n')
buf = []
for filename in filenames:
with io.open(filename, encoding=encoding) as f:
buf.append(f.read())
return sep.join(buf)
setup(
name="djangocms-markdown",
version='0.3.0',
description=read('DESCRIPTION'),
long_description=read('README.md'),
license='The MIT License',
platforms=['OS Independent'],
keywords='django, django-cms, plugin, markdown, editor',
author='Olle Vidner',
author_email='olle@vidner.se',
url="https://github.com/ovidner/djangocms-markdown",
packages=find_packages(),
include_package_data=True,
install_requires=[
'Django',
'South',
'django-cms>=3.0.0',
'django-markdown-deux',
],
)
Make South optional since we now support Django migrations.import io
from setuptools import setup, find_packages
def read(*filenames, **kwargs):
"""
From http://www.jeffknupp.com/blog/2013/08/16/open-sourcing-a-python-project-the-right-way/
"""
encoding = kwargs.get('encoding', 'utf-8')
sep = kwargs.get('sep', '\n')
buf = []
for filename in filenames:
with io.open(filename, encoding=encoding) as f:
buf.append(f.read())
return sep.join(buf)
setup(
name="djangocms-markdown",
version='0.3.0',
description=read('DESCRIPTION'),
long_description=read('README.md'),
license='The MIT License',
platforms=['OS Independent'],
keywords='django, django-cms, plugin, markdown, editor',
author='Olle Vidner',
author_email='olle@vidner.se',
url="https://github.com/ovidner/djangocms-markdown",
packages=find_packages(),
include_package_data=True,
install_requires=[
'Django',
'South',
'django-cms>=3.0.0',
'django-markdown-deux',
], extras_require = {
'Django_less_than_17': ["South>=1.0"]
}
)
|
<commit_before>import io
from setuptools import setup, find_packages
def read(*filenames, **kwargs):
"""
From http://www.jeffknupp.com/blog/2013/08/16/open-sourcing-a-python-project-the-right-way/
"""
encoding = kwargs.get('encoding', 'utf-8')
sep = kwargs.get('sep', '\n')
buf = []
for filename in filenames:
with io.open(filename, encoding=encoding) as f:
buf.append(f.read())
return sep.join(buf)
setup(
name="djangocms-markdown",
version='0.3.0',
description=read('DESCRIPTION'),
long_description=read('README.md'),
license='The MIT License',
platforms=['OS Independent'],
keywords='django, django-cms, plugin, markdown, editor',
author='Olle Vidner',
author_email='olle@vidner.se',
url="https://github.com/ovidner/djangocms-markdown",
packages=find_packages(),
include_package_data=True,
install_requires=[
'Django',
'South',
'django-cms>=3.0.0',
'django-markdown-deux',
],
)
<commit_msg>Make South optional since we now support Django migrations.<commit_after>import io
from setuptools import setup, find_packages
def read(*filenames, **kwargs):
"""
From http://www.jeffknupp.com/blog/2013/08/16/open-sourcing-a-python-project-the-right-way/
"""
encoding = kwargs.get('encoding', 'utf-8')
sep = kwargs.get('sep', '\n')
buf = []
for filename in filenames:
with io.open(filename, encoding=encoding) as f:
buf.append(f.read())
return sep.join(buf)
setup(
name="djangocms-markdown",
version='0.3.0',
description=read('DESCRIPTION'),
long_description=read('README.md'),
license='The MIT License',
platforms=['OS Independent'],
keywords='django, django-cms, plugin, markdown, editor',
author='Olle Vidner',
author_email='olle@vidner.se',
url="https://github.com/ovidner/djangocms-markdown",
packages=find_packages(),
include_package_data=True,
install_requires=[
'Django',
'South',
'django-cms>=3.0.0',
'django-markdown-deux',
], extras_require = {
'Django_less_than_17': ["South>=1.0"]
}
)
|
395400dc5d727d1718485a71a90d03fce6e9bd47
|
setup.py
|
setup.py
|
#!/usr/bin/python2.4
from distutils.core import setup
setup(name='mox',
version='0.5.1',
py_modules=['mox', 'stubout'],
url='http://code.google.com/p/pymox/',
maintainer='pymox maintainers',
maintainer_email='mox-discuss@googlegroups.com',
license='Apache License, Version 2.0',
description='Mock object framework',
long_description='''Mox is a mock object framework for Python based on the
Java mock object framework EasyMock.''',
)
|
#!/usr/bin/python2.4
from distutils.core import setup
setup(name='mox',
version='0.5.2',
py_modules=['mox', 'stubout'],
url='http://code.google.com/p/pymox/',
maintainer='pymox maintainers',
maintainer_email='mox-discuss@googlegroups.com',
license='Apache License, Version 2.0',
description='Mock object framework',
long_description='''Mox is a mock object framework for Python based on the
Java mock object framework EasyMock.''',
)
|
Increment version number to 0.5.2 for new release.
|
Increment version number to 0.5.2 for new release.
|
Python
|
apache-2.0
|
deets/mox-fork
|
#!/usr/bin/python2.4
from distutils.core import setup
setup(name='mox',
version='0.5.1',
py_modules=['mox', 'stubout'],
url='http://code.google.com/p/pymox/',
maintainer='pymox maintainers',
maintainer_email='mox-discuss@googlegroups.com',
license='Apache License, Version 2.0',
description='Mock object framework',
long_description='''Mox is a mock object framework for Python based on the
Java mock object framework EasyMock.''',
)
Increment version number to 0.5.2 for new release.
|
#!/usr/bin/python2.4
from distutils.core import setup
setup(name='mox',
version='0.5.2',
py_modules=['mox', 'stubout'],
url='http://code.google.com/p/pymox/',
maintainer='pymox maintainers',
maintainer_email='mox-discuss@googlegroups.com',
license='Apache License, Version 2.0',
description='Mock object framework',
long_description='''Mox is a mock object framework for Python based on the
Java mock object framework EasyMock.''',
)
|
<commit_before>#!/usr/bin/python2.4
from distutils.core import setup
setup(name='mox',
version='0.5.1',
py_modules=['mox', 'stubout'],
url='http://code.google.com/p/pymox/',
maintainer='pymox maintainers',
maintainer_email='mox-discuss@googlegroups.com',
license='Apache License, Version 2.0',
description='Mock object framework',
long_description='''Mox is a mock object framework for Python based on the
Java mock object framework EasyMock.''',
)
<commit_msg>Increment version number to 0.5.2 for new release.<commit_after>
|
#!/usr/bin/python2.4
from distutils.core import setup
setup(name='mox',
version='0.5.2',
py_modules=['mox', 'stubout'],
url='http://code.google.com/p/pymox/',
maintainer='pymox maintainers',
maintainer_email='mox-discuss@googlegroups.com',
license='Apache License, Version 2.0',
description='Mock object framework',
long_description='''Mox is a mock object framework for Python based on the
Java mock object framework EasyMock.''',
)
|
#!/usr/bin/python2.4
from distutils.core import setup
setup(name='mox',
version='0.5.1',
py_modules=['mox', 'stubout'],
url='http://code.google.com/p/pymox/',
maintainer='pymox maintainers',
maintainer_email='mox-discuss@googlegroups.com',
license='Apache License, Version 2.0',
description='Mock object framework',
long_description='''Mox is a mock object framework for Python based on the
Java mock object framework EasyMock.''',
)
Increment version number to 0.5.2 for new release.#!/usr/bin/python2.4
from distutils.core import setup
setup(name='mox',
version='0.5.2',
py_modules=['mox', 'stubout'],
url='http://code.google.com/p/pymox/',
maintainer='pymox maintainers',
maintainer_email='mox-discuss@googlegroups.com',
license='Apache License, Version 2.0',
description='Mock object framework',
long_description='''Mox is a mock object framework for Python based on the
Java mock object framework EasyMock.''',
)
|
<commit_before>#!/usr/bin/python2.4
from distutils.core import setup
setup(name='mox',
version='0.5.1',
py_modules=['mox', 'stubout'],
url='http://code.google.com/p/pymox/',
maintainer='pymox maintainers',
maintainer_email='mox-discuss@googlegroups.com',
license='Apache License, Version 2.0',
description='Mock object framework',
long_description='''Mox is a mock object framework for Python based on the
Java mock object framework EasyMock.''',
)
<commit_msg>Increment version number to 0.5.2 for new release.<commit_after>#!/usr/bin/python2.4
from distutils.core import setup
setup(name='mox',
version='0.5.2',
py_modules=['mox', 'stubout'],
url='http://code.google.com/p/pymox/',
maintainer='pymox maintainers',
maintainer_email='mox-discuss@googlegroups.com',
license='Apache License, Version 2.0',
description='Mock object framework',
long_description='''Mox is a mock object framework for Python based on the
Java mock object framework EasyMock.''',
)
|
1c1198b5c4e2542629cab438741a87d2a52a270c
|
setup.py
|
setup.py
|
#!/usr/bin/env python
# -*- coding: iso-8859-1 -*-
from setuptools import setup
setup(
name = 'TracMasterTickets',
version = '2.1',
packages = ['mastertickets'],
package_data = { 'mastertickets': ['htdocs/*.js', 'htdocs/*.css' ] },
author = "Noah Kantrowitz",
author_email = "coderanger@yahoo.com",
description = "Provides support for ticket dependencies and master tickets.",
license = "BSD",
keywords = "trac plugin ticket dependencies master",
url = "http://trac-hacks.org/wiki/MasterTicketsPlugin",
classifiers = [
'Framework :: Trac',
],
install_requires = ['Trac'],
entry_points = {
'trac.plugins': [
'mastertickets.web_ui = mastertickets.web_ui',
'mastertickets.api = mastertickets.api',
]
}
)
|
#!/usr/bin/env python
# -*- coding: iso-8859-1 -*-
from setuptools import setup
setup(
name = 'TracMasterTickets',
version = '2.1.1',
packages = ['mastertickets'],
package_data = { 'mastertickets': ['htdocs/*.js', 'htdocs/*.css' ] },
author = "Noah Kantrowitz",
author_email = "coderanger@yahoo.com",
description = "Provides support for ticket dependencies and master tickets.",
license = "BSD",
keywords = "trac plugin ticket dependencies master",
url = "http://trac-hacks.org/wiki/MasterTicketsPlugin",
classifiers = [
'Framework :: Trac',
],
install_requires = ['Trac', 'Genshi >= 0.5.dev-r698,==dev'],
entry_points = {
'trac.plugins': [
'mastertickets.web_ui = mastertickets.web_ui',
'mastertickets.api = mastertickets.api',
]
}
)
|
Mark that we need Genshi from trunk.
|
Mark that we need Genshi from trunk.
|
Python
|
bsd-3-clause
|
pombredanne/trac-mastertickets,thmo/trac-mastertickets,thmo/trac-mastertickets,pombredanne/trac-mastertickets
|
#!/usr/bin/env python
# -*- coding: iso-8859-1 -*-
from setuptools import setup
setup(
name = 'TracMasterTickets',
version = '2.1',
packages = ['mastertickets'],
package_data = { 'mastertickets': ['htdocs/*.js', 'htdocs/*.css' ] },
author = "Noah Kantrowitz",
author_email = "coderanger@yahoo.com",
description = "Provides support for ticket dependencies and master tickets.",
license = "BSD",
keywords = "trac plugin ticket dependencies master",
url = "http://trac-hacks.org/wiki/MasterTicketsPlugin",
classifiers = [
'Framework :: Trac',
],
install_requires = ['Trac'],
entry_points = {
'trac.plugins': [
'mastertickets.web_ui = mastertickets.web_ui',
'mastertickets.api = mastertickets.api',
]
}
)
Mark that we need Genshi from trunk.
|
#!/usr/bin/env python
# -*- coding: iso-8859-1 -*-
from setuptools import setup
setup(
name = 'TracMasterTickets',
version = '2.1.1',
packages = ['mastertickets'],
package_data = { 'mastertickets': ['htdocs/*.js', 'htdocs/*.css' ] },
author = "Noah Kantrowitz",
author_email = "coderanger@yahoo.com",
description = "Provides support for ticket dependencies and master tickets.",
license = "BSD",
keywords = "trac plugin ticket dependencies master",
url = "http://trac-hacks.org/wiki/MasterTicketsPlugin",
classifiers = [
'Framework :: Trac',
],
install_requires = ['Trac', 'Genshi >= 0.5.dev-r698,==dev'],
entry_points = {
'trac.plugins': [
'mastertickets.web_ui = mastertickets.web_ui',
'mastertickets.api = mastertickets.api',
]
}
)
|
<commit_before>#!/usr/bin/env python
# -*- coding: iso-8859-1 -*-
from setuptools import setup
setup(
name = 'TracMasterTickets',
version = '2.1',
packages = ['mastertickets'],
package_data = { 'mastertickets': ['htdocs/*.js', 'htdocs/*.css' ] },
author = "Noah Kantrowitz",
author_email = "coderanger@yahoo.com",
description = "Provides support for ticket dependencies and master tickets.",
license = "BSD",
keywords = "trac plugin ticket dependencies master",
url = "http://trac-hacks.org/wiki/MasterTicketsPlugin",
classifiers = [
'Framework :: Trac',
],
install_requires = ['Trac'],
entry_points = {
'trac.plugins': [
'mastertickets.web_ui = mastertickets.web_ui',
'mastertickets.api = mastertickets.api',
]
}
)
<commit_msg>Mark that we need Genshi from trunk.<commit_after>
|
#!/usr/bin/env python
# -*- coding: iso-8859-1 -*-
from setuptools import setup
setup(
name = 'TracMasterTickets',
version = '2.1.1',
packages = ['mastertickets'],
package_data = { 'mastertickets': ['htdocs/*.js', 'htdocs/*.css' ] },
author = "Noah Kantrowitz",
author_email = "coderanger@yahoo.com",
description = "Provides support for ticket dependencies and master tickets.",
license = "BSD",
keywords = "trac plugin ticket dependencies master",
url = "http://trac-hacks.org/wiki/MasterTicketsPlugin",
classifiers = [
'Framework :: Trac',
],
install_requires = ['Trac', 'Genshi >= 0.5.dev-r698,==dev'],
entry_points = {
'trac.plugins': [
'mastertickets.web_ui = mastertickets.web_ui',
'mastertickets.api = mastertickets.api',
]
}
)
|
#!/usr/bin/env python
# -*- coding: iso-8859-1 -*-
from setuptools import setup
setup(
name = 'TracMasterTickets',
version = '2.1',
packages = ['mastertickets'],
package_data = { 'mastertickets': ['htdocs/*.js', 'htdocs/*.css' ] },
author = "Noah Kantrowitz",
author_email = "coderanger@yahoo.com",
description = "Provides support for ticket dependencies and master tickets.",
license = "BSD",
keywords = "trac plugin ticket dependencies master",
url = "http://trac-hacks.org/wiki/MasterTicketsPlugin",
classifiers = [
'Framework :: Trac',
],
install_requires = ['Trac'],
entry_points = {
'trac.plugins': [
'mastertickets.web_ui = mastertickets.web_ui',
'mastertickets.api = mastertickets.api',
]
}
)
Mark that we need Genshi from trunk.#!/usr/bin/env python
# -*- coding: iso-8859-1 -*-
from setuptools import setup
setup(
name = 'TracMasterTickets',
version = '2.1.1',
packages = ['mastertickets'],
package_data = { 'mastertickets': ['htdocs/*.js', 'htdocs/*.css' ] },
author = "Noah Kantrowitz",
author_email = "coderanger@yahoo.com",
description = "Provides support for ticket dependencies and master tickets.",
license = "BSD",
keywords = "trac plugin ticket dependencies master",
url = "http://trac-hacks.org/wiki/MasterTicketsPlugin",
classifiers = [
'Framework :: Trac',
],
install_requires = ['Trac', 'Genshi >= 0.5.dev-r698,==dev'],
entry_points = {
'trac.plugins': [
'mastertickets.web_ui = mastertickets.web_ui',
'mastertickets.api = mastertickets.api',
]
}
)
|
<commit_before>#!/usr/bin/env python
# -*- coding: iso-8859-1 -*-
from setuptools import setup
setup(
name = 'TracMasterTickets',
version = '2.1',
packages = ['mastertickets'],
package_data = { 'mastertickets': ['htdocs/*.js', 'htdocs/*.css' ] },
author = "Noah Kantrowitz",
author_email = "coderanger@yahoo.com",
description = "Provides support for ticket dependencies and master tickets.",
license = "BSD",
keywords = "trac plugin ticket dependencies master",
url = "http://trac-hacks.org/wiki/MasterTicketsPlugin",
classifiers = [
'Framework :: Trac',
],
install_requires = ['Trac'],
entry_points = {
'trac.plugins': [
'mastertickets.web_ui = mastertickets.web_ui',
'mastertickets.api = mastertickets.api',
]
}
)
<commit_msg>Mark that we need Genshi from trunk.<commit_after>#!/usr/bin/env python
# -*- coding: iso-8859-1 -*-
from setuptools import setup
setup(
name = 'TracMasterTickets',
version = '2.1.1',
packages = ['mastertickets'],
package_data = { 'mastertickets': ['htdocs/*.js', 'htdocs/*.css' ] },
author = "Noah Kantrowitz",
author_email = "coderanger@yahoo.com",
description = "Provides support for ticket dependencies and master tickets.",
license = "BSD",
keywords = "trac plugin ticket dependencies master",
url = "http://trac-hacks.org/wiki/MasterTicketsPlugin",
classifiers = [
'Framework :: Trac',
],
install_requires = ['Trac', 'Genshi >= 0.5.dev-r698,==dev'],
entry_points = {
'trac.plugins': [
'mastertickets.web_ui = mastertickets.web_ui',
'mastertickets.api = mastertickets.api',
]
}
)
|
425d7f34954ec76b51122a95ab32ab7cc320881a
|
setup.py
|
setup.py
|
from setuptools import setup
setup(
name='python-obelisk',
version="0.1.2",
install_requires=['ecdsa', 'pyzmq'],
maintainer='Dionysis Zindros',
maintainer_email='dionyziz@gmail.com',
zip_safe=False,
description="Python native client for the obelisk blockchain server.",
long_description=open('README.txt').read(),
license='GNU Affero General Public License',
keywords='bitcoin blockchain obelisk obeliskoflight query transaction federated',
url='https://github.com/darkwallet/python-obelisk'
)
|
from setuptools import setup
setup(
name='python-obelisk',
version="0.1.3",
install_requires=['twisted', 'ecdsa', 'pyzmq'],
packages=['obelisk'],
maintainer='Dionysis Zindros',
maintainer_email='dionyziz@gmail.com',
zip_safe=False,
description="Python native client for the obelisk blockchain server.",
long_description=open('README.txt').read(),
license='GNU Affero General Public License',
keywords='bitcoin blockchain obelisk obeliskoflight query transaction federated',
url='https://github.com/darkwallet/python-obelisk'
)
|
Add twisted dependency, declare packages of project
|
Add twisted dependency, declare packages of project
|
Python
|
agpl-3.0
|
cpacia/python-libbitcoinclient,darkwallet/python-obelisk
|
from setuptools import setup
setup(
name='python-obelisk',
version="0.1.2",
install_requires=['ecdsa', 'pyzmq'],
maintainer='Dionysis Zindros',
maintainer_email='dionyziz@gmail.com',
zip_safe=False,
description="Python native client for the obelisk blockchain server.",
long_description=open('README.txt').read(),
license='GNU Affero General Public License',
keywords='bitcoin blockchain obelisk obeliskoflight query transaction federated',
url='https://github.com/darkwallet/python-obelisk'
)
Add twisted dependency, declare packages of project
|
from setuptools import setup
setup(
name='python-obelisk',
version="0.1.3",
install_requires=['twisted', 'ecdsa', 'pyzmq'],
packages=['obelisk'],
maintainer='Dionysis Zindros',
maintainer_email='dionyziz@gmail.com',
zip_safe=False,
description="Python native client for the obelisk blockchain server.",
long_description=open('README.txt').read(),
license='GNU Affero General Public License',
keywords='bitcoin blockchain obelisk obeliskoflight query transaction federated',
url='https://github.com/darkwallet/python-obelisk'
)
|
<commit_before>from setuptools import setup
setup(
name='python-obelisk',
version="0.1.2",
install_requires=['ecdsa', 'pyzmq'],
maintainer='Dionysis Zindros',
maintainer_email='dionyziz@gmail.com',
zip_safe=False,
description="Python native client for the obelisk blockchain server.",
long_description=open('README.txt').read(),
license='GNU Affero General Public License',
keywords='bitcoin blockchain obelisk obeliskoflight query transaction federated',
url='https://github.com/darkwallet/python-obelisk'
)
<commit_msg>Add twisted dependency, declare packages of project<commit_after>
|
from setuptools import setup
setup(
name='python-obelisk',
version="0.1.3",
install_requires=['twisted', 'ecdsa', 'pyzmq'],
packages=['obelisk'],
maintainer='Dionysis Zindros',
maintainer_email='dionyziz@gmail.com',
zip_safe=False,
description="Python native client for the obelisk blockchain server.",
long_description=open('README.txt').read(),
license='GNU Affero General Public License',
keywords='bitcoin blockchain obelisk obeliskoflight query transaction federated',
url='https://github.com/darkwallet/python-obelisk'
)
|
from setuptools import setup
setup(
name='python-obelisk',
version="0.1.2",
install_requires=['ecdsa', 'pyzmq'],
maintainer='Dionysis Zindros',
maintainer_email='dionyziz@gmail.com',
zip_safe=False,
description="Python native client for the obelisk blockchain server.",
long_description=open('README.txt').read(),
license='GNU Affero General Public License',
keywords='bitcoin blockchain obelisk obeliskoflight query transaction federated',
url='https://github.com/darkwallet/python-obelisk'
)
Add twisted dependency, declare packages of projectfrom setuptools import setup
setup(
name='python-obelisk',
version="0.1.3",
install_requires=['twisted', 'ecdsa', 'pyzmq'],
packages=['obelisk'],
maintainer='Dionysis Zindros',
maintainer_email='dionyziz@gmail.com',
zip_safe=False,
description="Python native client for the obelisk blockchain server.",
long_description=open('README.txt').read(),
license='GNU Affero General Public License',
keywords='bitcoin blockchain obelisk obeliskoflight query transaction federated',
url='https://github.com/darkwallet/python-obelisk'
)
|
<commit_before>from setuptools import setup
setup(
name='python-obelisk',
version="0.1.2",
install_requires=['ecdsa', 'pyzmq'],
maintainer='Dionysis Zindros',
maintainer_email='dionyziz@gmail.com',
zip_safe=False,
description="Python native client for the obelisk blockchain server.",
long_description=open('README.txt').read(),
license='GNU Affero General Public License',
keywords='bitcoin blockchain obelisk obeliskoflight query transaction federated',
url='https://github.com/darkwallet/python-obelisk'
)
<commit_msg>Add twisted dependency, declare packages of project<commit_after>from setuptools import setup
setup(
name='python-obelisk',
version="0.1.3",
install_requires=['twisted', 'ecdsa', 'pyzmq'],
packages=['obelisk'],
maintainer='Dionysis Zindros',
maintainer_email='dionyziz@gmail.com',
zip_safe=False,
description="Python native client for the obelisk blockchain server.",
long_description=open('README.txt').read(),
license='GNU Affero General Public License',
keywords='bitcoin blockchain obelisk obeliskoflight query transaction federated',
url='https://github.com/darkwallet/python-obelisk'
)
|
d153bc1225a6971bc3dc509dd3934fa15ad69477
|
setup.py
|
setup.py
|
#!/usr/bin/env python
from setuptools import setup
setup(name='tap-awin',
version='0.0.1',
description='Singer.io tap for extracting data from the Affiliate Window API',
author='Onedox',
url='https://onedox.com',
classifiers=['Programming Language :: Python :: 3 :: Only'],
py_modules=['tap_awin'],
install_requires=[
'zeep>=1.4.1',
'singer-python>=1.4.2',
'tzlocal>=1.3',
],
entry_points='''
[console_scripts]
tap-awin=tap_awin:main
''',
packages=['tap_awin'],
package_data = {
'tap_awin/schemas': [
"transactions.json",
"merchants.json",
],
},
include_package_data=True,
)
|
#!/usr/bin/env python
from setuptools import setup
setup(name='tap-awin',
version='0.0.1',
description='Singer.io tap for extracting data from the Affiliate Window API',
author='Onedox',
url='https://github.com/onedox/tap-awin',
download_url = 'https://github.com/onedox/tap-awin/archive/0.0.1.tar.gz',
classifiers=['Programming Language :: Python :: 3 :: Only'],
py_modules=['tap_awin'],
install_requires=[
'zeep>=1.4.1',
'singer-python>=1.4.2',
'tzlocal>=1.3',
],
entry_points='''
[console_scripts]
tap-awin=tap_awin:main
''',
packages=['tap_awin'],
package_data = {
'tap_awin/schemas': [
"transactions.json",
"merchants.json",
],
},
include_package_data=True,
)
|
Prepare for 0.0.1 release to PyPI
|
Prepare for 0.0.1 release to PyPI
|
Python
|
apache-2.0
|
onedox/tap-awin
|
#!/usr/bin/env python
from setuptools import setup
setup(name='tap-awin',
version='0.0.1',
description='Singer.io tap for extracting data from the Affiliate Window API',
author='Onedox',
url='https://onedox.com',
classifiers=['Programming Language :: Python :: 3 :: Only'],
py_modules=['tap_awin'],
install_requires=[
'zeep>=1.4.1',
'singer-python>=1.4.2',
'tzlocal>=1.3',
],
entry_points='''
[console_scripts]
tap-awin=tap_awin:main
''',
packages=['tap_awin'],
package_data = {
'tap_awin/schemas': [
"transactions.json",
"merchants.json",
],
},
include_package_data=True,
)
Prepare for 0.0.1 release to PyPI
|
#!/usr/bin/env python
from setuptools import setup
setup(name='tap-awin',
version='0.0.1',
description='Singer.io tap for extracting data from the Affiliate Window API',
author='Onedox',
url='https://github.com/onedox/tap-awin',
download_url = 'https://github.com/onedox/tap-awin/archive/0.0.1.tar.gz',
classifiers=['Programming Language :: Python :: 3 :: Only'],
py_modules=['tap_awin'],
install_requires=[
'zeep>=1.4.1',
'singer-python>=1.4.2',
'tzlocal>=1.3',
],
entry_points='''
[console_scripts]
tap-awin=tap_awin:main
''',
packages=['tap_awin'],
package_data = {
'tap_awin/schemas': [
"transactions.json",
"merchants.json",
],
},
include_package_data=True,
)
|
<commit_before>#!/usr/bin/env python
from setuptools import setup
setup(name='tap-awin',
version='0.0.1',
description='Singer.io tap for extracting data from the Affiliate Window API',
author='Onedox',
url='https://onedox.com',
classifiers=['Programming Language :: Python :: 3 :: Only'],
py_modules=['tap_awin'],
install_requires=[
'zeep>=1.4.1',
'singer-python>=1.4.2',
'tzlocal>=1.3',
],
entry_points='''
[console_scripts]
tap-awin=tap_awin:main
''',
packages=['tap_awin'],
package_data = {
'tap_awin/schemas': [
"transactions.json",
"merchants.json",
],
},
include_package_data=True,
)
<commit_msg>Prepare for 0.0.1 release to PyPI<commit_after>
|
#!/usr/bin/env python
from setuptools import setup
setup(name='tap-awin',
version='0.0.1',
description='Singer.io tap for extracting data from the Affiliate Window API',
author='Onedox',
url='https://github.com/onedox/tap-awin',
download_url = 'https://github.com/onedox/tap-awin/archive/0.0.1.tar.gz',
classifiers=['Programming Language :: Python :: 3 :: Only'],
py_modules=['tap_awin'],
install_requires=[
'zeep>=1.4.1',
'singer-python>=1.4.2',
'tzlocal>=1.3',
],
entry_points='''
[console_scripts]
tap-awin=tap_awin:main
''',
packages=['tap_awin'],
package_data = {
'tap_awin/schemas': [
"transactions.json",
"merchants.json",
],
},
include_package_data=True,
)
|
#!/usr/bin/env python
from setuptools import setup
setup(name='tap-awin',
version='0.0.1',
description='Singer.io tap for extracting data from the Affiliate Window API',
author='Onedox',
url='https://onedox.com',
classifiers=['Programming Language :: Python :: 3 :: Only'],
py_modules=['tap_awin'],
install_requires=[
'zeep>=1.4.1',
'singer-python>=1.4.2',
'tzlocal>=1.3',
],
entry_points='''
[console_scripts]
tap-awin=tap_awin:main
''',
packages=['tap_awin'],
package_data = {
'tap_awin/schemas': [
"transactions.json",
"merchants.json",
],
},
include_package_data=True,
)
Prepare for 0.0.1 release to PyPI#!/usr/bin/env python
from setuptools import setup
setup(name='tap-awin',
version='0.0.1',
description='Singer.io tap for extracting data from the Affiliate Window API',
author='Onedox',
url='https://github.com/onedox/tap-awin',
download_url = 'https://github.com/onedox/tap-awin/archive/0.0.1.tar.gz',
classifiers=['Programming Language :: Python :: 3 :: Only'],
py_modules=['tap_awin'],
install_requires=[
'zeep>=1.4.1',
'singer-python>=1.4.2',
'tzlocal>=1.3',
],
entry_points='''
[console_scripts]
tap-awin=tap_awin:main
''',
packages=['tap_awin'],
package_data = {
'tap_awin/schemas': [
"transactions.json",
"merchants.json",
],
},
include_package_data=True,
)
|
<commit_before>#!/usr/bin/env python
from setuptools import setup
setup(name='tap-awin',
version='0.0.1',
description='Singer.io tap for extracting data from the Affiliate Window API',
author='Onedox',
url='https://onedox.com',
classifiers=['Programming Language :: Python :: 3 :: Only'],
py_modules=['tap_awin'],
install_requires=[
'zeep>=1.4.1',
'singer-python>=1.4.2',
'tzlocal>=1.3',
],
entry_points='''
[console_scripts]
tap-awin=tap_awin:main
''',
packages=['tap_awin'],
package_data = {
'tap_awin/schemas': [
"transactions.json",
"merchants.json",
],
},
include_package_data=True,
)
<commit_msg>Prepare for 0.0.1 release to PyPI<commit_after>#!/usr/bin/env python
from setuptools import setup
setup(name='tap-awin',
version='0.0.1',
description='Singer.io tap for extracting data from the Affiliate Window API',
author='Onedox',
url='https://github.com/onedox/tap-awin',
download_url = 'https://github.com/onedox/tap-awin/archive/0.0.1.tar.gz',
classifiers=['Programming Language :: Python :: 3 :: Only'],
py_modules=['tap_awin'],
install_requires=[
'zeep>=1.4.1',
'singer-python>=1.4.2',
'tzlocal>=1.3',
],
entry_points='''
[console_scripts]
tap-awin=tap_awin:main
''',
packages=['tap_awin'],
package_data = {
'tap_awin/schemas': [
"transactions.json",
"merchants.json",
],
},
include_package_data=True,
)
|
5b92fdc1af9043649dd9efa1f4f5337809d5af27
|
setup.py
|
setup.py
|
from setuptools import setup
setup(
name='hypothesis-pb',
packages=['hypothesis_protobuf'],
platforms='any',
version='1.2.0',
description='Hypothesis extension to allow generating protobuf messages matching a schema.',
author='H. Chase Stevens',
author_email='chase@chasestevens.com',
url='https://github.com/hchasestevens/hypothesis-protobuf',
license='MIT',
install_requires=[
'hypothesis>=3.4.2',
'protobuf>=3.3.0,<4.0.0',
],
tests_require=['pytest>=3.1.2', 'future>=0.16.0'],
extras_require={'dev': ['pytest>=3.1.2', 'future>=0.16.0']},
classifiers=[
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Topic :: Software Development :: Libraries :: Python Modules',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'License :: OSI Approved :: MIT License',
]
)
|
from setuptools import setup
setup(
name='hypothesis-pb',
packages=['hypothesis_protobuf'],
platforms='any',
version='1.2.0',
description='Hypothesis extension to allow generating protobuf messages matching a schema.',
author='H. Chase Stevens',
author_email='chase@chasestevens.com',
url='https://github.com/hchasestevens/hypothesis-protobuf',
license='MIT',
install_requires=[
'hypothesis>=3.4.2',
'protobuf>=3.3.0,<4.0.0',
],
tests_require=['pytest>=3.1.2', 'future>=0.16.0'],
extras_require={'dev': ['pytest>=3.1.2', 'future>=0.16.0']},
classifiers=[
'Framework :: Hypothesis',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Topic :: Software Development :: Libraries :: Python Modules',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'License :: OSI Approved :: MIT License',
]
)
|
Add hypothesis as framework for discoverability
|
Add hypothesis as framework for discoverability
|
Python
|
mit
|
hchasestevens/hypothesis-protobuf
|
from setuptools import setup
setup(
name='hypothesis-pb',
packages=['hypothesis_protobuf'],
platforms='any',
version='1.2.0',
description='Hypothesis extension to allow generating protobuf messages matching a schema.',
author='H. Chase Stevens',
author_email='chase@chasestevens.com',
url='https://github.com/hchasestevens/hypothesis-protobuf',
license='MIT',
install_requires=[
'hypothesis>=3.4.2',
'protobuf>=3.3.0,<4.0.0',
],
tests_require=['pytest>=3.1.2', 'future>=0.16.0'],
extras_require={'dev': ['pytest>=3.1.2', 'future>=0.16.0']},
classifiers=[
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Topic :: Software Development :: Libraries :: Python Modules',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'License :: OSI Approved :: MIT License',
]
)
Add hypothesis as framework for discoverability
|
from setuptools import setup
setup(
name='hypothesis-pb',
packages=['hypothesis_protobuf'],
platforms='any',
version='1.2.0',
description='Hypothesis extension to allow generating protobuf messages matching a schema.',
author='H. Chase Stevens',
author_email='chase@chasestevens.com',
url='https://github.com/hchasestevens/hypothesis-protobuf',
license='MIT',
install_requires=[
'hypothesis>=3.4.2',
'protobuf>=3.3.0,<4.0.0',
],
tests_require=['pytest>=3.1.2', 'future>=0.16.0'],
extras_require={'dev': ['pytest>=3.1.2', 'future>=0.16.0']},
classifiers=[
'Framework :: Hypothesis',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Topic :: Software Development :: Libraries :: Python Modules',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'License :: OSI Approved :: MIT License',
]
)
|
<commit_before>from setuptools import setup
setup(
name='hypothesis-pb',
packages=['hypothesis_protobuf'],
platforms='any',
version='1.2.0',
description='Hypothesis extension to allow generating protobuf messages matching a schema.',
author='H. Chase Stevens',
author_email='chase@chasestevens.com',
url='https://github.com/hchasestevens/hypothesis-protobuf',
license='MIT',
install_requires=[
'hypothesis>=3.4.2',
'protobuf>=3.3.0,<4.0.0',
],
tests_require=['pytest>=3.1.2', 'future>=0.16.0'],
extras_require={'dev': ['pytest>=3.1.2', 'future>=0.16.0']},
classifiers=[
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Topic :: Software Development :: Libraries :: Python Modules',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'License :: OSI Approved :: MIT License',
]
)
<commit_msg>Add hypothesis as framework for discoverability<commit_after>
|
from setuptools import setup
setup(
name='hypothesis-pb',
packages=['hypothesis_protobuf'],
platforms='any',
version='1.2.0',
description='Hypothesis extension to allow generating protobuf messages matching a schema.',
author='H. Chase Stevens',
author_email='chase@chasestevens.com',
url='https://github.com/hchasestevens/hypothesis-protobuf',
license='MIT',
install_requires=[
'hypothesis>=3.4.2',
'protobuf>=3.3.0,<4.0.0',
],
tests_require=['pytest>=3.1.2', 'future>=0.16.0'],
extras_require={'dev': ['pytest>=3.1.2', 'future>=0.16.0']},
classifiers=[
'Framework :: Hypothesis',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Topic :: Software Development :: Libraries :: Python Modules',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'License :: OSI Approved :: MIT License',
]
)
|
from setuptools import setup
setup(
name='hypothesis-pb',
packages=['hypothesis_protobuf'],
platforms='any',
version='1.2.0',
description='Hypothesis extension to allow generating protobuf messages matching a schema.',
author='H. Chase Stevens',
author_email='chase@chasestevens.com',
url='https://github.com/hchasestevens/hypothesis-protobuf',
license='MIT',
install_requires=[
'hypothesis>=3.4.2',
'protobuf>=3.3.0,<4.0.0',
],
tests_require=['pytest>=3.1.2', 'future>=0.16.0'],
extras_require={'dev': ['pytest>=3.1.2', 'future>=0.16.0']},
classifiers=[
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Topic :: Software Development :: Libraries :: Python Modules',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'License :: OSI Approved :: MIT License',
]
)
Add hypothesis as framework for discoverabilityfrom setuptools import setup
setup(
name='hypothesis-pb',
packages=['hypothesis_protobuf'],
platforms='any',
version='1.2.0',
description='Hypothesis extension to allow generating protobuf messages matching a schema.',
author='H. Chase Stevens',
author_email='chase@chasestevens.com',
url='https://github.com/hchasestevens/hypothesis-protobuf',
license='MIT',
install_requires=[
'hypothesis>=3.4.2',
'protobuf>=3.3.0,<4.0.0',
],
tests_require=['pytest>=3.1.2', 'future>=0.16.0'],
extras_require={'dev': ['pytest>=3.1.2', 'future>=0.16.0']},
classifiers=[
'Framework :: Hypothesis',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Topic :: Software Development :: Libraries :: Python Modules',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'License :: OSI Approved :: MIT License',
]
)
|
<commit_before>from setuptools import setup
setup(
name='hypothesis-pb',
packages=['hypothesis_protobuf'],
platforms='any',
version='1.2.0',
description='Hypothesis extension to allow generating protobuf messages matching a schema.',
author='H. Chase Stevens',
author_email='chase@chasestevens.com',
url='https://github.com/hchasestevens/hypothesis-protobuf',
license='MIT',
install_requires=[
'hypothesis>=3.4.2',
'protobuf>=3.3.0,<4.0.0',
],
tests_require=['pytest>=3.1.2', 'future>=0.16.0'],
extras_require={'dev': ['pytest>=3.1.2', 'future>=0.16.0']},
classifiers=[
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Topic :: Software Development :: Libraries :: Python Modules',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'License :: OSI Approved :: MIT License',
]
)
<commit_msg>Add hypothesis as framework for discoverability<commit_after>from setuptools import setup
setup(
name='hypothesis-pb',
packages=['hypothesis_protobuf'],
platforms='any',
version='1.2.0',
description='Hypothesis extension to allow generating protobuf messages matching a schema.',
author='H. Chase Stevens',
author_email='chase@chasestevens.com',
url='https://github.com/hchasestevens/hypothesis-protobuf',
license='MIT',
install_requires=[
'hypothesis>=3.4.2',
'protobuf>=3.3.0,<4.0.0',
],
tests_require=['pytest>=3.1.2', 'future>=0.16.0'],
extras_require={'dev': ['pytest>=3.1.2', 'future>=0.16.0']},
classifiers=[
'Framework :: Hypothesis',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Topic :: Software Development :: Libraries :: Python Modules',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'License :: OSI Approved :: MIT License',
]
)
|
4f99fa0bba7410271e2b6f15fa8ea0d1df160740
|
setup.py
|
setup.py
|
import setuptools
import sys
import os.path
import subprocess
# Build README.txt from README.md if not present, and if we are actually building for distribution to pypi
if not os.path.exists('README.txt') and 'sdist' in sys.argv:
subprocess.call(['pandoc', '--to=rst', '--smart', '--output=README.txt', 'README.md'])
# But use the best README around
readme = 'README.txt' if os.path.exists('README.txt') else 'README.md'
setuptools.setup(
name='jsonpath-rw',
version='0.8',
description='A robust and significantly extended implementation of JSONPath for Python, with a clear AST for metaprogramming.',
author='Kenneth Knowles',
author_email='kenn.knowles@gmail.com',
url='https://github.com/kennknowles/python-jsonpath-rw',
license='Apache 2.0',
long_description=open(readme).read(),
packages = ['jsonpath_rw'],
test_suite = 'tests',
install_requires = [ 'ply', 'decorator', 'six' ],
)
|
import setuptools
import sys
import os.path
import subprocess
# Build README.txt from README.md if not present, and if we are actually building for distribution to pypi
if not os.path.exists('README.txt') and 'sdist' in sys.argv:
subprocess.call(['pandoc', '--to=rst', '--smart', '--output=README.txt', 'README.md'])
# But use the best README around
readme = 'README.txt' if os.path.exists('README.txt') else 'README.md'
setuptools.setup(
name='jsonpath-rw',
version='0.9',
description='A robust and significantly extended implementation of JSONPath for Python, with a clear AST for metaprogramming.',
author='Kenneth Knowles',
author_email='kenn.knowles@gmail.com',
url='https://github.com/kennknowles/python-jsonpath-rw',
license='Apache 2.0',
long_description=open(readme).read(),
packages = ['jsonpath_rw'],
test_suite = 'tests',
install_requires = [ 'ply', 'decorator', 'six' ],
classifiers = [
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
],
)
|
Add trove classifiers (bump version to 0.9 to publish them)
|
Add trove classifiers (bump version to 0.9 to publish them)
|
Python
|
apache-2.0
|
abloomston/python-jsonpath-rw,pkilambi/python-jsonpath-rw,kennknowles/python-jsonpath-rw,sileht/python-jsonpath-rw,wangjild/python-jsonpath-rw,brianthelion/python-jsonpath-rw
|
import setuptools
import sys
import os.path
import subprocess
# Build README.txt from README.md if not present, and if we are actually building for distribution to pypi
if not os.path.exists('README.txt') and 'sdist' in sys.argv:
subprocess.call(['pandoc', '--to=rst', '--smart', '--output=README.txt', 'README.md'])
# But use the best README around
readme = 'README.txt' if os.path.exists('README.txt') else 'README.md'
setuptools.setup(
name='jsonpath-rw',
version='0.8',
description='A robust and significantly extended implementation of JSONPath for Python, with a clear AST for metaprogramming.',
author='Kenneth Knowles',
author_email='kenn.knowles@gmail.com',
url='https://github.com/kennknowles/python-jsonpath-rw',
license='Apache 2.0',
long_description=open(readme).read(),
packages = ['jsonpath_rw'],
test_suite = 'tests',
install_requires = [ 'ply', 'decorator', 'six' ],
)
Add trove classifiers (bump version to 0.9 to publish them)
|
import setuptools
import sys
import os.path
import subprocess
# Build README.txt from README.md if not present, and if we are actually building for distribution to pypi
if not os.path.exists('README.txt') and 'sdist' in sys.argv:
subprocess.call(['pandoc', '--to=rst', '--smart', '--output=README.txt', 'README.md'])
# But use the best README around
readme = 'README.txt' if os.path.exists('README.txt') else 'README.md'
setuptools.setup(
name='jsonpath-rw',
version='0.9',
description='A robust and significantly extended implementation of JSONPath for Python, with a clear AST for metaprogramming.',
author='Kenneth Knowles',
author_email='kenn.knowles@gmail.com',
url='https://github.com/kennknowles/python-jsonpath-rw',
license='Apache 2.0',
long_description=open(readme).read(),
packages = ['jsonpath_rw'],
test_suite = 'tests',
install_requires = [ 'ply', 'decorator', 'six' ],
classifiers = [
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
],
)
|
<commit_before>import setuptools
import sys
import os.path
import subprocess
# Build README.txt from README.md if not present, and if we are actually building for distribution to pypi
if not os.path.exists('README.txt') and 'sdist' in sys.argv:
subprocess.call(['pandoc', '--to=rst', '--smart', '--output=README.txt', 'README.md'])
# But use the best README around
readme = 'README.txt' if os.path.exists('README.txt') else 'README.md'
setuptools.setup(
name='jsonpath-rw',
version='0.8',
description='A robust and significantly extended implementation of JSONPath for Python, with a clear AST for metaprogramming.',
author='Kenneth Knowles',
author_email='kenn.knowles@gmail.com',
url='https://github.com/kennknowles/python-jsonpath-rw',
license='Apache 2.0',
long_description=open(readme).read(),
packages = ['jsonpath_rw'],
test_suite = 'tests',
install_requires = [ 'ply', 'decorator', 'six' ],
)
<commit_msg>Add trove classifiers (bump version to 0.9 to publish them)<commit_after>
|
import setuptools
import sys
import os.path
import subprocess
# Build README.txt from README.md if not present, and if we are actually building for distribution to pypi
if not os.path.exists('README.txt') and 'sdist' in sys.argv:
subprocess.call(['pandoc', '--to=rst', '--smart', '--output=README.txt', 'README.md'])
# But use the best README around
readme = 'README.txt' if os.path.exists('README.txt') else 'README.md'
setuptools.setup(
name='jsonpath-rw',
version='0.9',
description='A robust and significantly extended implementation of JSONPath for Python, with a clear AST for metaprogramming.',
author='Kenneth Knowles',
author_email='kenn.knowles@gmail.com',
url='https://github.com/kennknowles/python-jsonpath-rw',
license='Apache 2.0',
long_description=open(readme).read(),
packages = ['jsonpath_rw'],
test_suite = 'tests',
install_requires = [ 'ply', 'decorator', 'six' ],
classifiers = [
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
],
)
|
import setuptools
import sys
import os.path
import subprocess
# Build README.txt from README.md if not present, and if we are actually building for distribution to pypi
if not os.path.exists('README.txt') and 'sdist' in sys.argv:
subprocess.call(['pandoc', '--to=rst', '--smart', '--output=README.txt', 'README.md'])
# But use the best README around
readme = 'README.txt' if os.path.exists('README.txt') else 'README.md'
setuptools.setup(
name='jsonpath-rw',
version='0.8',
description='A robust and significantly extended implementation of JSONPath for Python, with a clear AST for metaprogramming.',
author='Kenneth Knowles',
author_email='kenn.knowles@gmail.com',
url='https://github.com/kennknowles/python-jsonpath-rw',
license='Apache 2.0',
long_description=open(readme).read(),
packages = ['jsonpath_rw'],
test_suite = 'tests',
install_requires = [ 'ply', 'decorator', 'six' ],
)
Add trove classifiers (bump version to 0.9 to publish them)import setuptools
import sys
import os.path
import subprocess
# Build README.txt from README.md if not present, and if we are actually building for distribution to pypi
if not os.path.exists('README.txt') and 'sdist' in sys.argv:
subprocess.call(['pandoc', '--to=rst', '--smart', '--output=README.txt', 'README.md'])
# But use the best README around
readme = 'README.txt' if os.path.exists('README.txt') else 'README.md'
setuptools.setup(
name='jsonpath-rw',
version='0.9',
description='A robust and significantly extended implementation of JSONPath for Python, with a clear AST for metaprogramming.',
author='Kenneth Knowles',
author_email='kenn.knowles@gmail.com',
url='https://github.com/kennknowles/python-jsonpath-rw',
license='Apache 2.0',
long_description=open(readme).read(),
packages = ['jsonpath_rw'],
test_suite = 'tests',
install_requires = [ 'ply', 'decorator', 'six' ],
classifiers = [
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
],
)
|
<commit_before>import setuptools
import sys
import os.path
import subprocess
# Build README.txt from README.md if not present, and if we are actually building for distribution to pypi
if not os.path.exists('README.txt') and 'sdist' in sys.argv:
subprocess.call(['pandoc', '--to=rst', '--smart', '--output=README.txt', 'README.md'])
# But use the best README around
readme = 'README.txt' if os.path.exists('README.txt') else 'README.md'
setuptools.setup(
name='jsonpath-rw',
version='0.8',
description='A robust and significantly extended implementation of JSONPath for Python, with a clear AST for metaprogramming.',
author='Kenneth Knowles',
author_email='kenn.knowles@gmail.com',
url='https://github.com/kennknowles/python-jsonpath-rw',
license='Apache 2.0',
long_description=open(readme).read(),
packages = ['jsonpath_rw'],
test_suite = 'tests',
install_requires = [ 'ply', 'decorator', 'six' ],
)
<commit_msg>Add trove classifiers (bump version to 0.9 to publish them)<commit_after>import setuptools
import sys
import os.path
import subprocess
# Build README.txt from README.md if not present, and if we are actually building for distribution to pypi
if not os.path.exists('README.txt') and 'sdist' in sys.argv:
subprocess.call(['pandoc', '--to=rst', '--smart', '--output=README.txt', 'README.md'])
# But use the best README around
readme = 'README.txt' if os.path.exists('README.txt') else 'README.md'
setuptools.setup(
name='jsonpath-rw',
version='0.9',
description='A robust and significantly extended implementation of JSONPath for Python, with a clear AST for metaprogramming.',
author='Kenneth Knowles',
author_email='kenn.knowles@gmail.com',
url='https://github.com/kennknowles/python-jsonpath-rw',
license='Apache 2.0',
long_description=open(readme).read(),
packages = ['jsonpath_rw'],
test_suite = 'tests',
install_requires = [ 'ply', 'decorator', 'six' ],
classifiers = [
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
],
)
|
b18cd768b4663e9a09854b49524080300893037d
|
setup.py
|
setup.py
|
#!/usr/bin/env python2
import os
from setuptools import setup, find_packages
from plugins import __version__
repo_directory = os.path.dirname(__file__)
try:
long_description = open(os.path.join(repo_directory, 'README.rst')).read()
except:
long_description = None
setup(
name='gds-nagios-plugins',
version=__version__,
packages=find_packages(exclude=['test*']),
author='Tom Booth',
author_email='tombooth@gmail.com',
maintainer='Government Digital Service',
url='https://github.com/alphagov/nagios-plugins',
description='nagios-plugins: a set of useful nagios plugins',
long_description=long_description,
license='MIT',
keywords='',
setup_requires=['setuptools-pep8'],
install_requires=[
"nagioscheck==0.1.6"
],
tests_require=[
"nose==1.3.0",
"freezegun==0.1.11"
],
test_suite='nose.collector',
entry_points={
'console_scripts': [
'check_apt_security_updates='
'plugins.command.check_apt_security_updates:main',
'check_reboot_required=plugins.command.check_reboot_required:main',
'check_elasticsearch=plugins.command.check_elasticsearch:main'
]
}
)
|
#!/usr/bin/env python2
import os
from setuptools import setup, find_packages
from plugins import __version__
repo_directory = os.path.dirname(__file__)
try:
long_description = open(os.path.join(repo_directory, 'README.rst')).read()
except:
long_description = None
setup(
name='gds-nagios-plugins',
version=__version__,
packages=find_packages(exclude=['test*']),
author='Tom Booth',
author_email='tombooth@gmail.com',
maintainer='Government Digital Service',
url='https://github.com/alphagov/nagios-plugins',
description='nagios-plugins: a set of useful nagios plugins',
long_description=long_description,
license='MIT',
keywords='',
setup_requires=['setuptools-pep8'],
install_requires=[
"nagioscheck==0.1.6"
],
tests_require=[
"nose==1.3.1",
"freezegun==0.1.11"
],
test_suite='nose.collector',
entry_points={
'console_scripts': [
'check_apt_security_updates='
'plugins.command.check_apt_security_updates:main',
'check_reboot_required=plugins.command.check_reboot_required:main',
'check_elasticsearch=plugins.command.check_elasticsearch:main'
]
}
)
|
Upgrade nose to 1.3.1 for Travis
|
Upgrade nose to 1.3.1 for Travis
|
Python
|
mit
|
alphagov/nagios-plugins
|
#!/usr/bin/env python2
import os
from setuptools import setup, find_packages
from plugins import __version__
repo_directory = os.path.dirname(__file__)
try:
long_description = open(os.path.join(repo_directory, 'README.rst')).read()
except:
long_description = None
setup(
name='gds-nagios-plugins',
version=__version__,
packages=find_packages(exclude=['test*']),
author='Tom Booth',
author_email='tombooth@gmail.com',
maintainer='Government Digital Service',
url='https://github.com/alphagov/nagios-plugins',
description='nagios-plugins: a set of useful nagios plugins',
long_description=long_description,
license='MIT',
keywords='',
setup_requires=['setuptools-pep8'],
install_requires=[
"nagioscheck==0.1.6"
],
tests_require=[
"nose==1.3.0",
"freezegun==0.1.11"
],
test_suite='nose.collector',
entry_points={
'console_scripts': [
'check_apt_security_updates='
'plugins.command.check_apt_security_updates:main',
'check_reboot_required=plugins.command.check_reboot_required:main',
'check_elasticsearch=plugins.command.check_elasticsearch:main'
]
}
)
Upgrade nose to 1.3.1 for Travis
|
#!/usr/bin/env python2
import os
from setuptools import setup, find_packages
from plugins import __version__
repo_directory = os.path.dirname(__file__)
try:
long_description = open(os.path.join(repo_directory, 'README.rst')).read()
except:
long_description = None
setup(
name='gds-nagios-plugins',
version=__version__,
packages=find_packages(exclude=['test*']),
author='Tom Booth',
author_email='tombooth@gmail.com',
maintainer='Government Digital Service',
url='https://github.com/alphagov/nagios-plugins',
description='nagios-plugins: a set of useful nagios plugins',
long_description=long_description,
license='MIT',
keywords='',
setup_requires=['setuptools-pep8'],
install_requires=[
"nagioscheck==0.1.6"
],
tests_require=[
"nose==1.3.1",
"freezegun==0.1.11"
],
test_suite='nose.collector',
entry_points={
'console_scripts': [
'check_apt_security_updates='
'plugins.command.check_apt_security_updates:main',
'check_reboot_required=plugins.command.check_reboot_required:main',
'check_elasticsearch=plugins.command.check_elasticsearch:main'
]
}
)
|
<commit_before>#!/usr/bin/env python2
import os
from setuptools import setup, find_packages
from plugins import __version__
repo_directory = os.path.dirname(__file__)
try:
long_description = open(os.path.join(repo_directory, 'README.rst')).read()
except:
long_description = None
setup(
name='gds-nagios-plugins',
version=__version__,
packages=find_packages(exclude=['test*']),
author='Tom Booth',
author_email='tombooth@gmail.com',
maintainer='Government Digital Service',
url='https://github.com/alphagov/nagios-plugins',
description='nagios-plugins: a set of useful nagios plugins',
long_description=long_description,
license='MIT',
keywords='',
setup_requires=['setuptools-pep8'],
install_requires=[
"nagioscheck==0.1.6"
],
tests_require=[
"nose==1.3.0",
"freezegun==0.1.11"
],
test_suite='nose.collector',
entry_points={
'console_scripts': [
'check_apt_security_updates='
'plugins.command.check_apt_security_updates:main',
'check_reboot_required=plugins.command.check_reboot_required:main',
'check_elasticsearch=plugins.command.check_elasticsearch:main'
]
}
)
<commit_msg>Upgrade nose to 1.3.1 for Travis<commit_after>
|
#!/usr/bin/env python2
import os
from setuptools import setup, find_packages
from plugins import __version__
repo_directory = os.path.dirname(__file__)
try:
long_description = open(os.path.join(repo_directory, 'README.rst')).read()
except:
long_description = None
setup(
name='gds-nagios-plugins',
version=__version__,
packages=find_packages(exclude=['test*']),
author='Tom Booth',
author_email='tombooth@gmail.com',
maintainer='Government Digital Service',
url='https://github.com/alphagov/nagios-plugins',
description='nagios-plugins: a set of useful nagios plugins',
long_description=long_description,
license='MIT',
keywords='',
setup_requires=['setuptools-pep8'],
install_requires=[
"nagioscheck==0.1.6"
],
tests_require=[
"nose==1.3.1",
"freezegun==0.1.11"
],
test_suite='nose.collector',
entry_points={
'console_scripts': [
'check_apt_security_updates='
'plugins.command.check_apt_security_updates:main',
'check_reboot_required=plugins.command.check_reboot_required:main',
'check_elasticsearch=plugins.command.check_elasticsearch:main'
]
}
)
|
#!/usr/bin/env python2
import os
from setuptools import setup, find_packages
from plugins import __version__
repo_directory = os.path.dirname(__file__)
try:
long_description = open(os.path.join(repo_directory, 'README.rst')).read()
except:
long_description = None
setup(
name='gds-nagios-plugins',
version=__version__,
packages=find_packages(exclude=['test*']),
author='Tom Booth',
author_email='tombooth@gmail.com',
maintainer='Government Digital Service',
url='https://github.com/alphagov/nagios-plugins',
description='nagios-plugins: a set of useful nagios plugins',
long_description=long_description,
license='MIT',
keywords='',
setup_requires=['setuptools-pep8'],
install_requires=[
"nagioscheck==0.1.6"
],
tests_require=[
"nose==1.3.0",
"freezegun==0.1.11"
],
test_suite='nose.collector',
entry_points={
'console_scripts': [
'check_apt_security_updates='
'plugins.command.check_apt_security_updates:main',
'check_reboot_required=plugins.command.check_reboot_required:main',
'check_elasticsearch=plugins.command.check_elasticsearch:main'
]
}
)
Upgrade nose to 1.3.1 for Travis#!/usr/bin/env python2
import os
from setuptools import setup, find_packages
from plugins import __version__
repo_directory = os.path.dirname(__file__)
try:
long_description = open(os.path.join(repo_directory, 'README.rst')).read()
except:
long_description = None
setup(
name='gds-nagios-plugins',
version=__version__,
packages=find_packages(exclude=['test*']),
author='Tom Booth',
author_email='tombooth@gmail.com',
maintainer='Government Digital Service',
url='https://github.com/alphagov/nagios-plugins',
description='nagios-plugins: a set of useful nagios plugins',
long_description=long_description,
license='MIT',
keywords='',
setup_requires=['setuptools-pep8'],
install_requires=[
"nagioscheck==0.1.6"
],
tests_require=[
"nose==1.3.1",
"freezegun==0.1.11"
],
test_suite='nose.collector',
entry_points={
'console_scripts': [
'check_apt_security_updates='
'plugins.command.check_apt_security_updates:main',
'check_reboot_required=plugins.command.check_reboot_required:main',
'check_elasticsearch=plugins.command.check_elasticsearch:main'
]
}
)
|
<commit_before>#!/usr/bin/env python2
import os
from setuptools import setup, find_packages
from plugins import __version__
repo_directory = os.path.dirname(__file__)
try:
long_description = open(os.path.join(repo_directory, 'README.rst')).read()
except:
long_description = None
setup(
name='gds-nagios-plugins',
version=__version__,
packages=find_packages(exclude=['test*']),
author='Tom Booth',
author_email='tombooth@gmail.com',
maintainer='Government Digital Service',
url='https://github.com/alphagov/nagios-plugins',
description='nagios-plugins: a set of useful nagios plugins',
long_description=long_description,
license='MIT',
keywords='',
setup_requires=['setuptools-pep8'],
install_requires=[
"nagioscheck==0.1.6"
],
tests_require=[
"nose==1.3.0",
"freezegun==0.1.11"
],
test_suite='nose.collector',
entry_points={
'console_scripts': [
'check_apt_security_updates='
'plugins.command.check_apt_security_updates:main',
'check_reboot_required=plugins.command.check_reboot_required:main',
'check_elasticsearch=plugins.command.check_elasticsearch:main'
]
}
)
<commit_msg>Upgrade nose to 1.3.1 for Travis<commit_after>#!/usr/bin/env python2
import os
from setuptools import setup, find_packages
from plugins import __version__
repo_directory = os.path.dirname(__file__)
try:
long_description = open(os.path.join(repo_directory, 'README.rst')).read()
except:
long_description = None
setup(
name='gds-nagios-plugins',
version=__version__,
packages=find_packages(exclude=['test*']),
author='Tom Booth',
author_email='tombooth@gmail.com',
maintainer='Government Digital Service',
url='https://github.com/alphagov/nagios-plugins',
description='nagios-plugins: a set of useful nagios plugins',
long_description=long_description,
license='MIT',
keywords='',
setup_requires=['setuptools-pep8'],
install_requires=[
"nagioscheck==0.1.6"
],
tests_require=[
"nose==1.3.1",
"freezegun==0.1.11"
],
test_suite='nose.collector',
entry_points={
'console_scripts': [
'check_apt_security_updates='
'plugins.command.check_apt_security_updates:main',
'check_reboot_required=plugins.command.check_reboot_required:main',
'check_elasticsearch=plugins.command.check_elasticsearch:main'
]
}
)
|
4bebc9b686b29f2a068dd90b2024960dcf5e19a2
|
setup.py
|
setup.py
|
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from codecs import open
import os.path as osp
from setuptools import setup, find_packages
import strumenti
here = osp.abspath(osp.dirname(__file__))
with open(osp.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='strumenti',
version='1.0.0',
description='Common tools universally applicable to Python 3 packages.',
author='Timothy Helton',
author_email='timothy.j.helton@gmail.com',
license='BSD',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3',
'Topic :: Software Development :: Build Tools',
],
keywords='common tools utility',
packages=find_packages(exclude=['docs', 'tests*']),
install_requires=[
'matplotlib',
'numpy',
'Pint',
'psycopg2',
'pytest',
'termcolor',
'wrapt',
],
package_dir={'strumenti': 'strumenti'},
include_package_data=True,
)
if __name__ == '__main__':
pass
|
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from codecs import open
import os.path as osp
from setuptools import setup, find_packages
import strumenti
here = osp.abspath(osp.dirname(__file__))
with open(osp.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='strumenti',
version='1.0.0',
description='Common tools universally applicable to Python 3 packages.',
author='Timothy Helton',
author_email='timothy.j.helton@gmail.com',
license='BSD',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3',
'Topic :: Software Development :: Build Tools',
],
keywords='common tools utility',
packages=find_packages(exclude=['docs', 'tests*']),
install_requires=[
'matplotlib',
'numpy',
'Pint',
'psycopg2',
'pytest',
'termcolor',
'wrapt',
'wrapt.decorator',
],
package_dir={'strumenti': 'strumenti'},
include_package_data=True,
)
if __name__ == '__main__':
pass
|
Test wrapt.document for Read the Docs
|
Test wrapt.document for Read the Docs
|
Python
|
bsd-3-clause
|
TimothyHelton/strumenti
|
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from codecs import open
import os.path as osp
from setuptools import setup, find_packages
import strumenti
here = osp.abspath(osp.dirname(__file__))
with open(osp.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='strumenti',
version='1.0.0',
description='Common tools universally applicable to Python 3 packages.',
author='Timothy Helton',
author_email='timothy.j.helton@gmail.com',
license='BSD',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3',
'Topic :: Software Development :: Build Tools',
],
keywords='common tools utility',
packages=find_packages(exclude=['docs', 'tests*']),
install_requires=[
'matplotlib',
'numpy',
'Pint',
'psycopg2',
'pytest',
'termcolor',
'wrapt',
],
package_dir={'strumenti': 'strumenti'},
include_package_data=True,
)
if __name__ == '__main__':
pass
Test wrapt.document for Read the Docs
|
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from codecs import open
import os.path as osp
from setuptools import setup, find_packages
import strumenti
here = osp.abspath(osp.dirname(__file__))
with open(osp.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='strumenti',
version='1.0.0',
description='Common tools universally applicable to Python 3 packages.',
author='Timothy Helton',
author_email='timothy.j.helton@gmail.com',
license='BSD',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3',
'Topic :: Software Development :: Build Tools',
],
keywords='common tools utility',
packages=find_packages(exclude=['docs', 'tests*']),
install_requires=[
'matplotlib',
'numpy',
'Pint',
'psycopg2',
'pytest',
'termcolor',
'wrapt',
'wrapt.decorator',
],
package_dir={'strumenti': 'strumenti'},
include_package_data=True,
)
if __name__ == '__main__':
pass
|
<commit_before>#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from codecs import open
import os.path as osp
from setuptools import setup, find_packages
import strumenti
here = osp.abspath(osp.dirname(__file__))
with open(osp.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='strumenti',
version='1.0.0',
description='Common tools universally applicable to Python 3 packages.',
author='Timothy Helton',
author_email='timothy.j.helton@gmail.com',
license='BSD',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3',
'Topic :: Software Development :: Build Tools',
],
keywords='common tools utility',
packages=find_packages(exclude=['docs', 'tests*']),
install_requires=[
'matplotlib',
'numpy',
'Pint',
'psycopg2',
'pytest',
'termcolor',
'wrapt',
],
package_dir={'strumenti': 'strumenti'},
include_package_data=True,
)
if __name__ == '__main__':
pass
<commit_msg>Test wrapt.document for Read the Docs<commit_after>
|
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from codecs import open
import os.path as osp
from setuptools import setup, find_packages
import strumenti
here = osp.abspath(osp.dirname(__file__))
with open(osp.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='strumenti',
version='1.0.0',
description='Common tools universally applicable to Python 3 packages.',
author='Timothy Helton',
author_email='timothy.j.helton@gmail.com',
license='BSD',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3',
'Topic :: Software Development :: Build Tools',
],
keywords='common tools utility',
packages=find_packages(exclude=['docs', 'tests*']),
install_requires=[
'matplotlib',
'numpy',
'Pint',
'psycopg2',
'pytest',
'termcolor',
'wrapt',
'wrapt.decorator',
],
package_dir={'strumenti': 'strumenti'},
include_package_data=True,
)
if __name__ == '__main__':
pass
|
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from codecs import open
import os.path as osp
from setuptools import setup, find_packages
import strumenti
here = osp.abspath(osp.dirname(__file__))
with open(osp.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='strumenti',
version='1.0.0',
description='Common tools universally applicable to Python 3 packages.',
author='Timothy Helton',
author_email='timothy.j.helton@gmail.com',
license='BSD',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3',
'Topic :: Software Development :: Build Tools',
],
keywords='common tools utility',
packages=find_packages(exclude=['docs', 'tests*']),
install_requires=[
'matplotlib',
'numpy',
'Pint',
'psycopg2',
'pytest',
'termcolor',
'wrapt',
],
package_dir={'strumenti': 'strumenti'},
include_package_data=True,
)
if __name__ == '__main__':
pass
Test wrapt.document for Read the Docs#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from codecs import open
import os.path as osp
from setuptools import setup, find_packages
import strumenti
here = osp.abspath(osp.dirname(__file__))
with open(osp.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='strumenti',
version='1.0.0',
description='Common tools universally applicable to Python 3 packages.',
author='Timothy Helton',
author_email='timothy.j.helton@gmail.com',
license='BSD',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3',
'Topic :: Software Development :: Build Tools',
],
keywords='common tools utility',
packages=find_packages(exclude=['docs', 'tests*']),
install_requires=[
'matplotlib',
'numpy',
'Pint',
'psycopg2',
'pytest',
'termcolor',
'wrapt',
'wrapt.decorator',
],
package_dir={'strumenti': 'strumenti'},
include_package_data=True,
)
if __name__ == '__main__':
pass
|
<commit_before>#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from codecs import open
import os.path as osp
from setuptools import setup, find_packages
import strumenti
here = osp.abspath(osp.dirname(__file__))
with open(osp.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='strumenti',
version='1.0.0',
description='Common tools universally applicable to Python 3 packages.',
author='Timothy Helton',
author_email='timothy.j.helton@gmail.com',
license='BSD',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3',
'Topic :: Software Development :: Build Tools',
],
keywords='common tools utility',
packages=find_packages(exclude=['docs', 'tests*']),
install_requires=[
'matplotlib',
'numpy',
'Pint',
'psycopg2',
'pytest',
'termcolor',
'wrapt',
],
package_dir={'strumenti': 'strumenti'},
include_package_data=True,
)
if __name__ == '__main__':
pass
<commit_msg>Test wrapt.document for Read the Docs<commit_after>#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from codecs import open
import os.path as osp
from setuptools import setup, find_packages
import strumenti
here = osp.abspath(osp.dirname(__file__))
with open(osp.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='strumenti',
version='1.0.0',
description='Common tools universally applicable to Python 3 packages.',
author='Timothy Helton',
author_email='timothy.j.helton@gmail.com',
license='BSD',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3',
'Topic :: Software Development :: Build Tools',
],
keywords='common tools utility',
packages=find_packages(exclude=['docs', 'tests*']),
install_requires=[
'matplotlib',
'numpy',
'Pint',
'psycopg2',
'pytest',
'termcolor',
'wrapt',
'wrapt.decorator',
],
package_dir={'strumenti': 'strumenti'},
include_package_data=True,
)
if __name__ == '__main__':
pass
|
5434b4731de5c0690ed98bf643fc27b79f0248f0
|
setup.py
|
setup.py
|
from setuptools import setup, find_packages
setup(
name="python-ssmi",
version="0.0.4",
url='http://github.com/praekelt/python-ssmi',
license='proprietary',
description="Python module implementing SSMI for USSD and SMS.",
author='Morgan Collett',
author_email='morgan@praekelt.com',
packages=find_packages('src'),
package_dir={'': 'src'},
install_requires=['setuptools'],
)
|
from setuptools import setup, find_packages
setup(
name="python-ssmi",
version="0.0.4",
url='http://github.com/praekelt/python-ssmi',
license='BSD',
description="Python module implementing SSMI for USSD and SMS.",
author='Praekelt Foundation',
author_email='dev@praekeltfoundation.org',
packages=find_packages('src'),
package_dir={'': 'src'},
install_requires=['setuptools'],
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: POSIX',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: System :: Networking',
],
)
|
Update license and trove classifiers.
|
Update license and trove classifiers.
|
Python
|
bsd-3-clause
|
kostyll/python-ssmi,praekelt/python-ssmi
|
from setuptools import setup, find_packages
setup(
name="python-ssmi",
version="0.0.4",
url='http://github.com/praekelt/python-ssmi',
license='proprietary',
description="Python module implementing SSMI for USSD and SMS.",
author='Morgan Collett',
author_email='morgan@praekelt.com',
packages=find_packages('src'),
package_dir={'': 'src'},
install_requires=['setuptools'],
)
Update license and trove classifiers.
|
from setuptools import setup, find_packages
setup(
name="python-ssmi",
version="0.0.4",
url='http://github.com/praekelt/python-ssmi',
license='BSD',
description="Python module implementing SSMI for USSD and SMS.",
author='Praekelt Foundation',
author_email='dev@praekeltfoundation.org',
packages=find_packages('src'),
package_dir={'': 'src'},
install_requires=['setuptools'],
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: POSIX',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: System :: Networking',
],
)
|
<commit_before>from setuptools import setup, find_packages
setup(
name="python-ssmi",
version="0.0.4",
url='http://github.com/praekelt/python-ssmi',
license='proprietary',
description="Python module implementing SSMI for USSD and SMS.",
author='Morgan Collett',
author_email='morgan@praekelt.com',
packages=find_packages('src'),
package_dir={'': 'src'},
install_requires=['setuptools'],
)
<commit_msg>Update license and trove classifiers.<commit_after>
|
from setuptools import setup, find_packages
setup(
name="python-ssmi",
version="0.0.4",
url='http://github.com/praekelt/python-ssmi',
license='BSD',
description="Python module implementing SSMI for USSD and SMS.",
author='Praekelt Foundation',
author_email='dev@praekeltfoundation.org',
packages=find_packages('src'),
package_dir={'': 'src'},
install_requires=['setuptools'],
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: POSIX',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: System :: Networking',
],
)
|
from setuptools import setup, find_packages
setup(
name="python-ssmi",
version="0.0.4",
url='http://github.com/praekelt/python-ssmi',
license='proprietary',
description="Python module implementing SSMI for USSD and SMS.",
author='Morgan Collett',
author_email='morgan@praekelt.com',
packages=find_packages('src'),
package_dir={'': 'src'},
install_requires=['setuptools'],
)
Update license and trove classifiers.from setuptools import setup, find_packages
setup(
name="python-ssmi",
version="0.0.4",
url='http://github.com/praekelt/python-ssmi',
license='BSD',
description="Python module implementing SSMI for USSD and SMS.",
author='Praekelt Foundation',
author_email='dev@praekeltfoundation.org',
packages=find_packages('src'),
package_dir={'': 'src'},
install_requires=['setuptools'],
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: POSIX',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: System :: Networking',
],
)
|
<commit_before>from setuptools import setup, find_packages
setup(
name="python-ssmi",
version="0.0.4",
url='http://github.com/praekelt/python-ssmi',
license='proprietary',
description="Python module implementing SSMI for USSD and SMS.",
author='Morgan Collett',
author_email='morgan@praekelt.com',
packages=find_packages('src'),
package_dir={'': 'src'},
install_requires=['setuptools'],
)
<commit_msg>Update license and trove classifiers.<commit_after>from setuptools import setup, find_packages
setup(
name="python-ssmi",
version="0.0.4",
url='http://github.com/praekelt/python-ssmi',
license='BSD',
description="Python module implementing SSMI for USSD and SMS.",
author='Praekelt Foundation',
author_email='dev@praekeltfoundation.org',
packages=find_packages('src'),
package_dir={'': 'src'},
install_requires=['setuptools'],
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: POSIX',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: System :: Networking',
],
)
|
6cd5c0657579b0ad583c303d9076282f59f5d8b0
|
setup.py
|
setup.py
|
#! /usr/bin/env python
"""TODO: Maybe add a docstring containing a long description
This would double as something we could put int the `long_description`
parameter for `setup` and it would squelch some complaints pylint has on
`setup.py`.
"""
from setuptools import setup
import os
setup(name='demandlib',
version='0.1.0rc1',
author='oemof developing group',
url='http://github.com/oemof/demandlib',
license='GPL3',
author_email='oemof@rl-institut.de',
description='Demandlib of the open energy modelling framework',
packages=['demandlib', 'examples'],
package_data = {
'demandlib': [
os.path.join('bdew_data', 'selp_series.csv'),
os.path.join('bdew_data', 'shlp_hour_factors.csv'),
os.path.join('bdew_data', 'shlp_sigmoid_factors.csv'),
os.path.join('bdew_data', 'shlp_weekday_factors.csv')]},
install_requires=['numpy >= 1.7.0',
'pandas >= 0.18.0']
)
|
#! /usr/bin/env python
"""TODO: Maybe add a docstring containing a long description
This would double as something we could put int the `long_description`
parameter for `setup` and it would squelch some complaints pylint has on
`setup.py`.
"""
from setuptools import setup
import os
setup(name='demandlib',
version='0.1.0rc1',
author='oemof developing group',
url='http://github.com/oemof/demandlib',
license='GPL3',
author_email='oemof@rl-institut.de',
description='Demandlib of the open energy modelling framework',
packages=['demandlib', 'examples'],
package_data = {
'demandlib': [os.path.join('bdew_data', '*.csv')],
'examples': ['*.csv']},
install_requires=['numpy >= 1.7.0',
'pandas >= 0.18.0']
)
|
Simplify package_data definition and add examples data
|
Simplify package_data definition and add examples data
|
Python
|
mit
|
oemof/demandlib
|
#! /usr/bin/env python
"""TODO: Maybe add a docstring containing a long description
This would double as something we could put int the `long_description`
parameter for `setup` and it would squelch some complaints pylint has on
`setup.py`.
"""
from setuptools import setup
import os
setup(name='demandlib',
version='0.1.0rc1',
author='oemof developing group',
url='http://github.com/oemof/demandlib',
license='GPL3',
author_email='oemof@rl-institut.de',
description='Demandlib of the open energy modelling framework',
packages=['demandlib', 'examples'],
package_data = {
'demandlib': [
os.path.join('bdew_data', 'selp_series.csv'),
os.path.join('bdew_data', 'shlp_hour_factors.csv'),
os.path.join('bdew_data', 'shlp_sigmoid_factors.csv'),
os.path.join('bdew_data', 'shlp_weekday_factors.csv')]},
install_requires=['numpy >= 1.7.0',
'pandas >= 0.18.0']
)
Simplify package_data definition and add examples data
|
#! /usr/bin/env python
"""TODO: Maybe add a docstring containing a long description
This would double as something we could put int the `long_description`
parameter for `setup` and it would squelch some complaints pylint has on
`setup.py`.
"""
from setuptools import setup
import os
setup(name='demandlib',
version='0.1.0rc1',
author='oemof developing group',
url='http://github.com/oemof/demandlib',
license='GPL3',
author_email='oemof@rl-institut.de',
description='Demandlib of the open energy modelling framework',
packages=['demandlib', 'examples'],
package_data = {
'demandlib': [os.path.join('bdew_data', '*.csv')],
'examples': ['*.csv']},
install_requires=['numpy >= 1.7.0',
'pandas >= 0.18.0']
)
|
<commit_before>#! /usr/bin/env python
"""TODO: Maybe add a docstring containing a long description
This would double as something we could put int the `long_description`
parameter for `setup` and it would squelch some complaints pylint has on
`setup.py`.
"""
from setuptools import setup
import os
setup(name='demandlib',
version='0.1.0rc1',
author='oemof developing group',
url='http://github.com/oemof/demandlib',
license='GPL3',
author_email='oemof@rl-institut.de',
description='Demandlib of the open energy modelling framework',
packages=['demandlib', 'examples'],
package_data = {
'demandlib': [
os.path.join('bdew_data', 'selp_series.csv'),
os.path.join('bdew_data', 'shlp_hour_factors.csv'),
os.path.join('bdew_data', 'shlp_sigmoid_factors.csv'),
os.path.join('bdew_data', 'shlp_weekday_factors.csv')]},
install_requires=['numpy >= 1.7.0',
'pandas >= 0.18.0']
)
<commit_msg>Simplify package_data definition and add examples data<commit_after>
|
#! /usr/bin/env python
"""TODO: Maybe add a docstring containing a long description
This would double as something we could put int the `long_description`
parameter for `setup` and it would squelch some complaints pylint has on
`setup.py`.
"""
from setuptools import setup
import os
setup(name='demandlib',
version='0.1.0rc1',
author='oemof developing group',
url='http://github.com/oemof/demandlib',
license='GPL3',
author_email='oemof@rl-institut.de',
description='Demandlib of the open energy modelling framework',
packages=['demandlib', 'examples'],
package_data = {
'demandlib': [os.path.join('bdew_data', '*.csv')],
'examples': ['*.csv']},
install_requires=['numpy >= 1.7.0',
'pandas >= 0.18.0']
)
|
#! /usr/bin/env python
"""TODO: Maybe add a docstring containing a long description
This would double as something we could put int the `long_description`
parameter for `setup` and it would squelch some complaints pylint has on
`setup.py`.
"""
from setuptools import setup
import os
setup(name='demandlib',
version='0.1.0rc1',
author='oemof developing group',
url='http://github.com/oemof/demandlib',
license='GPL3',
author_email='oemof@rl-institut.de',
description='Demandlib of the open energy modelling framework',
packages=['demandlib', 'examples'],
package_data = {
'demandlib': [
os.path.join('bdew_data', 'selp_series.csv'),
os.path.join('bdew_data', 'shlp_hour_factors.csv'),
os.path.join('bdew_data', 'shlp_sigmoid_factors.csv'),
os.path.join('bdew_data', 'shlp_weekday_factors.csv')]},
install_requires=['numpy >= 1.7.0',
'pandas >= 0.18.0']
)
Simplify package_data definition and add examples data#! /usr/bin/env python
"""TODO: Maybe add a docstring containing a long description
This would double as something we could put int the `long_description`
parameter for `setup` and it would squelch some complaints pylint has on
`setup.py`.
"""
from setuptools import setup
import os
setup(name='demandlib',
version='0.1.0rc1',
author='oemof developing group',
url='http://github.com/oemof/demandlib',
license='GPL3',
author_email='oemof@rl-institut.de',
description='Demandlib of the open energy modelling framework',
packages=['demandlib', 'examples'],
package_data = {
'demandlib': [os.path.join('bdew_data', '*.csv')],
'examples': ['*.csv']},
install_requires=['numpy >= 1.7.0',
'pandas >= 0.18.0']
)
|
<commit_before>#! /usr/bin/env python
"""TODO: Maybe add a docstring containing a long description
This would double as something we could put int the `long_description`
parameter for `setup` and it would squelch some complaints pylint has on
`setup.py`.
"""
from setuptools import setup
import os
setup(name='demandlib',
version='0.1.0rc1',
author='oemof developing group',
url='http://github.com/oemof/demandlib',
license='GPL3',
author_email='oemof@rl-institut.de',
description='Demandlib of the open energy modelling framework',
packages=['demandlib', 'examples'],
package_data = {
'demandlib': [
os.path.join('bdew_data', 'selp_series.csv'),
os.path.join('bdew_data', 'shlp_hour_factors.csv'),
os.path.join('bdew_data', 'shlp_sigmoid_factors.csv'),
os.path.join('bdew_data', 'shlp_weekday_factors.csv')]},
install_requires=['numpy >= 1.7.0',
'pandas >= 0.18.0']
)
<commit_msg>Simplify package_data definition and add examples data<commit_after>#! /usr/bin/env python
"""TODO: Maybe add a docstring containing a long description
This would double as something we could put int the `long_description`
parameter for `setup` and it would squelch some complaints pylint has on
`setup.py`.
"""
from setuptools import setup
import os
setup(name='demandlib',
version='0.1.0rc1',
author='oemof developing group',
url='http://github.com/oemof/demandlib',
license='GPL3',
author_email='oemof@rl-institut.de',
description='Demandlib of the open energy modelling framework',
packages=['demandlib', 'examples'],
package_data = {
'demandlib': [os.path.join('bdew_data', '*.csv')],
'examples': ['*.csv']},
install_requires=['numpy >= 1.7.0',
'pandas >= 0.18.0']
)
|
36a6706bfd0866e7c03b2c7190e3550a2180fc4c
|
setup.py
|
setup.py
|
from setuptools import setup, find_packages
setup(name='adobe-umapi',
version='1.0.1',
description='Adobe User Management API (UMAPI) client - see http://bit.ly/2hwkVrs',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.5',
'License :: OSI Approved :: MIT License',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
],
url='https://github.com/adobe-apiplatform/adobe-umapi.py',
maintainer='Daniel Brotsky',
maintainer_email='dbrotsky@adobe.com',
license='MIT',
packages=find_packages(),
install_requires=[
'requests',
'cryptography',
'PyJWT',
'six',
],
setup_requires=[
'pytest-runner',
],
tests_require=[
'pytest',
'mock',
],
zip_safe=False)
|
from setuptools import setup, find_packages
setup(name='adobe-umapi',
version='1.0.0rc1',
description='Adobe User Management API (UMAPI) client - see http://bit.ly/2hwkVrs',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.5',
'License :: OSI Approved :: MIT License',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
],
url='https://github.com/adobe-apiplatform/adobe-umapi.py',
maintainer='Daniel Brotsky',
maintainer_email='dbrotsky@adobe.com',
license='MIT',
packages=find_packages(),
install_requires=[
'requests',
'cryptography',
'PyJWT',
'six',
],
setup_requires=[
'pytest-runner',
],
tests_require=[
'pytest',
'mock',
],
zip_safe=False)
|
Call the last release 1.0rc1 in preparation for renaming the published module.
|
Call the last release 1.0rc1 in preparation for renaming the published module.
|
Python
|
mit
|
adobe-apiplatform/umapi-client.py
|
from setuptools import setup, find_packages
setup(name='adobe-umapi',
version='1.0.1',
description='Adobe User Management API (UMAPI) client - see http://bit.ly/2hwkVrs',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.5',
'License :: OSI Approved :: MIT License',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
],
url='https://github.com/adobe-apiplatform/adobe-umapi.py',
maintainer='Daniel Brotsky',
maintainer_email='dbrotsky@adobe.com',
license='MIT',
packages=find_packages(),
install_requires=[
'requests',
'cryptography',
'PyJWT',
'six',
],
setup_requires=[
'pytest-runner',
],
tests_require=[
'pytest',
'mock',
],
zip_safe=False)
Call the last release 1.0rc1 in preparation for renaming the published module.
|
from setuptools import setup, find_packages
setup(name='adobe-umapi',
version='1.0.0rc1',
description='Adobe User Management API (UMAPI) client - see http://bit.ly/2hwkVrs',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.5',
'License :: OSI Approved :: MIT License',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
],
url='https://github.com/adobe-apiplatform/adobe-umapi.py',
maintainer='Daniel Brotsky',
maintainer_email='dbrotsky@adobe.com',
license='MIT',
packages=find_packages(),
install_requires=[
'requests',
'cryptography',
'PyJWT',
'six',
],
setup_requires=[
'pytest-runner',
],
tests_require=[
'pytest',
'mock',
],
zip_safe=False)
|
<commit_before>from setuptools import setup, find_packages
setup(name='adobe-umapi',
version='1.0.1',
description='Adobe User Management API (UMAPI) client - see http://bit.ly/2hwkVrs',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.5',
'License :: OSI Approved :: MIT License',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
],
url='https://github.com/adobe-apiplatform/adobe-umapi.py',
maintainer='Daniel Brotsky',
maintainer_email='dbrotsky@adobe.com',
license='MIT',
packages=find_packages(),
install_requires=[
'requests',
'cryptography',
'PyJWT',
'six',
],
setup_requires=[
'pytest-runner',
],
tests_require=[
'pytest',
'mock',
],
zip_safe=False)
<commit_msg>Call the last release 1.0rc1 in preparation for renaming the published module.<commit_after>
|
from setuptools import setup, find_packages
setup(name='adobe-umapi',
version='1.0.0rc1',
description='Adobe User Management API (UMAPI) client - see http://bit.ly/2hwkVrs',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.5',
'License :: OSI Approved :: MIT License',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
],
url='https://github.com/adobe-apiplatform/adobe-umapi.py',
maintainer='Daniel Brotsky',
maintainer_email='dbrotsky@adobe.com',
license='MIT',
packages=find_packages(),
install_requires=[
'requests',
'cryptography',
'PyJWT',
'six',
],
setup_requires=[
'pytest-runner',
],
tests_require=[
'pytest',
'mock',
],
zip_safe=False)
|
from setuptools import setup, find_packages
setup(name='adobe-umapi',
version='1.0.1',
description='Adobe User Management API (UMAPI) client - see http://bit.ly/2hwkVrs',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.5',
'License :: OSI Approved :: MIT License',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
],
url='https://github.com/adobe-apiplatform/adobe-umapi.py',
maintainer='Daniel Brotsky',
maintainer_email='dbrotsky@adobe.com',
license='MIT',
packages=find_packages(),
install_requires=[
'requests',
'cryptography',
'PyJWT',
'six',
],
setup_requires=[
'pytest-runner',
],
tests_require=[
'pytest',
'mock',
],
zip_safe=False)
Call the last release 1.0rc1 in preparation for renaming the published module.from setuptools import setup, find_packages
setup(name='adobe-umapi',
version='1.0.0rc1',
description='Adobe User Management API (UMAPI) client - see http://bit.ly/2hwkVrs',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.5',
'License :: OSI Approved :: MIT License',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
],
url='https://github.com/adobe-apiplatform/adobe-umapi.py',
maintainer='Daniel Brotsky',
maintainer_email='dbrotsky@adobe.com',
license='MIT',
packages=find_packages(),
install_requires=[
'requests',
'cryptography',
'PyJWT',
'six',
],
setup_requires=[
'pytest-runner',
],
tests_require=[
'pytest',
'mock',
],
zip_safe=False)
|
<commit_before>from setuptools import setup, find_packages
setup(name='adobe-umapi',
version='1.0.1',
description='Adobe User Management API (UMAPI) client - see http://bit.ly/2hwkVrs',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.5',
'License :: OSI Approved :: MIT License',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
],
url='https://github.com/adobe-apiplatform/adobe-umapi.py',
maintainer='Daniel Brotsky',
maintainer_email='dbrotsky@adobe.com',
license='MIT',
packages=find_packages(),
install_requires=[
'requests',
'cryptography',
'PyJWT',
'six',
],
setup_requires=[
'pytest-runner',
],
tests_require=[
'pytest',
'mock',
],
zip_safe=False)
<commit_msg>Call the last release 1.0rc1 in preparation for renaming the published module.<commit_after>from setuptools import setup, find_packages
setup(name='adobe-umapi',
version='1.0.0rc1',
description='Adobe User Management API (UMAPI) client - see http://bit.ly/2hwkVrs',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.5',
'License :: OSI Approved :: MIT License',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
],
url='https://github.com/adobe-apiplatform/adobe-umapi.py',
maintainer='Daniel Brotsky',
maintainer_email='dbrotsky@adobe.com',
license='MIT',
packages=find_packages(),
install_requires=[
'requests',
'cryptography',
'PyJWT',
'six',
],
setup_requires=[
'pytest-runner',
],
tests_require=[
'pytest',
'mock',
],
zip_safe=False)
|
d5e1f7d690d9f663e12cd4ee85979d10e2df04ea
|
test/test_get_rest.py
|
test/test_get_rest.py
|
import os
import unittest
import subprocess
import utils
TOPDIR = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
test_dir = utils.set_search_paths(TOPDIR)
utils.set_search_paths(TOPDIR)
from allosmod.util import check_output
class Tests(unittest.TestCase):
def test_bad(self):
"""Test wrong arguments to get_rest"""
for args in ([], [''] * 2):
out = check_output(['allosmod', 'get_rest'] + args,
stderr=subprocess.STDOUT, retcode=2)
out = check_output(['python', '-m',
'allosmod.get_rest'] + args,
stderr=subprocess.STDOUT, retcode=2)
def test_simple(self):
"""Simple complete run of get_rest"""
with open('get_rest.in', 'w') as fh:
pass
out = check_output(['allosmod', 'get_rest',
os.path.join(test_dir, 'input',
'asite_pdb1.pdb')])
os.unlink('get_rest.in')
# PDB file contains no sugars, so no restraints should be output
self.assertEqual(out, '')
if __name__ == '__main__':
unittest.main()
|
import os
import unittest
import subprocess
import utils
TOPDIR = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
test_dir = utils.set_search_paths(TOPDIR)
utils.set_search_paths(TOPDIR)
from allosmod.util import check_output
class Tests(unittest.TestCase):
def test_bad(self):
"""Test wrong arguments to get_rest"""
for args in ([], [''] * 2):
out = check_output(['allosmod', 'get_rest'] + args,
stderr=subprocess.STDOUT, retcode=2)
out = check_output(['python', '-m',
'allosmod.get_rest'] + args,
stderr=subprocess.STDOUT, retcode=2)
def test_simple(self):
"""Simple complete run of get_rest"""
with open('get_rest.in', 'w') as fh:
pass
out = check_output(['allosmod', 'get_rest',
os.path.join(test_dir, 'input',
'asite_pdb1.pdb')],
universal_newlines=True)
os.unlink('get_rest.in')
# PDB file contains no sugars, so no restraints should be output
self.assertEqual(out, '')
if __name__ == '__main__':
unittest.main()
|
Make sure that output is text in Python 2 & 3.
|
Make sure that output is text in Python 2 & 3.
|
Python
|
lgpl-2.1
|
salilab/allosmod-lib,salilab/allosmod-lib,salilab/allosmod-lib,salilab/allosmod-lib,salilab/allosmod-lib
|
import os
import unittest
import subprocess
import utils
TOPDIR = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
test_dir = utils.set_search_paths(TOPDIR)
utils.set_search_paths(TOPDIR)
from allosmod.util import check_output
class Tests(unittest.TestCase):
def test_bad(self):
"""Test wrong arguments to get_rest"""
for args in ([], [''] * 2):
out = check_output(['allosmod', 'get_rest'] + args,
stderr=subprocess.STDOUT, retcode=2)
out = check_output(['python', '-m',
'allosmod.get_rest'] + args,
stderr=subprocess.STDOUT, retcode=2)
def test_simple(self):
"""Simple complete run of get_rest"""
with open('get_rest.in', 'w') as fh:
pass
out = check_output(['allosmod', 'get_rest',
os.path.join(test_dir, 'input',
'asite_pdb1.pdb')])
os.unlink('get_rest.in')
# PDB file contains no sugars, so no restraints should be output
self.assertEqual(out, '')
if __name__ == '__main__':
unittest.main()
Make sure that output is text in Python 2 & 3.
|
import os
import unittest
import subprocess
import utils
TOPDIR = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
test_dir = utils.set_search_paths(TOPDIR)
utils.set_search_paths(TOPDIR)
from allosmod.util import check_output
class Tests(unittest.TestCase):
def test_bad(self):
"""Test wrong arguments to get_rest"""
for args in ([], [''] * 2):
out = check_output(['allosmod', 'get_rest'] + args,
stderr=subprocess.STDOUT, retcode=2)
out = check_output(['python', '-m',
'allosmod.get_rest'] + args,
stderr=subprocess.STDOUT, retcode=2)
def test_simple(self):
"""Simple complete run of get_rest"""
with open('get_rest.in', 'w') as fh:
pass
out = check_output(['allosmod', 'get_rest',
os.path.join(test_dir, 'input',
'asite_pdb1.pdb')],
universal_newlines=True)
os.unlink('get_rest.in')
# PDB file contains no sugars, so no restraints should be output
self.assertEqual(out, '')
if __name__ == '__main__':
unittest.main()
|
<commit_before>import os
import unittest
import subprocess
import utils
TOPDIR = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
test_dir = utils.set_search_paths(TOPDIR)
utils.set_search_paths(TOPDIR)
from allosmod.util import check_output
class Tests(unittest.TestCase):
def test_bad(self):
"""Test wrong arguments to get_rest"""
for args in ([], [''] * 2):
out = check_output(['allosmod', 'get_rest'] + args,
stderr=subprocess.STDOUT, retcode=2)
out = check_output(['python', '-m',
'allosmod.get_rest'] + args,
stderr=subprocess.STDOUT, retcode=2)
def test_simple(self):
"""Simple complete run of get_rest"""
with open('get_rest.in', 'w') as fh:
pass
out = check_output(['allosmod', 'get_rest',
os.path.join(test_dir, 'input',
'asite_pdb1.pdb')])
os.unlink('get_rest.in')
# PDB file contains no sugars, so no restraints should be output
self.assertEqual(out, '')
if __name__ == '__main__':
unittest.main()
<commit_msg>Make sure that output is text in Python 2 & 3.<commit_after>
|
import os
import unittest
import subprocess
import utils
TOPDIR = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
test_dir = utils.set_search_paths(TOPDIR)
utils.set_search_paths(TOPDIR)
from allosmod.util import check_output
class Tests(unittest.TestCase):
def test_bad(self):
"""Test wrong arguments to get_rest"""
for args in ([], [''] * 2):
out = check_output(['allosmod', 'get_rest'] + args,
stderr=subprocess.STDOUT, retcode=2)
out = check_output(['python', '-m',
'allosmod.get_rest'] + args,
stderr=subprocess.STDOUT, retcode=2)
def test_simple(self):
"""Simple complete run of get_rest"""
with open('get_rest.in', 'w') as fh:
pass
out = check_output(['allosmod', 'get_rest',
os.path.join(test_dir, 'input',
'asite_pdb1.pdb')],
universal_newlines=True)
os.unlink('get_rest.in')
# PDB file contains no sugars, so no restraints should be output
self.assertEqual(out, '')
if __name__ == '__main__':
unittest.main()
|
import os
import unittest
import subprocess
import utils
TOPDIR = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
test_dir = utils.set_search_paths(TOPDIR)
utils.set_search_paths(TOPDIR)
from allosmod.util import check_output
class Tests(unittest.TestCase):
def test_bad(self):
"""Test wrong arguments to get_rest"""
for args in ([], [''] * 2):
out = check_output(['allosmod', 'get_rest'] + args,
stderr=subprocess.STDOUT, retcode=2)
out = check_output(['python', '-m',
'allosmod.get_rest'] + args,
stderr=subprocess.STDOUT, retcode=2)
def test_simple(self):
"""Simple complete run of get_rest"""
with open('get_rest.in', 'w') as fh:
pass
out = check_output(['allosmod', 'get_rest',
os.path.join(test_dir, 'input',
'asite_pdb1.pdb')])
os.unlink('get_rest.in')
# PDB file contains no sugars, so no restraints should be output
self.assertEqual(out, '')
if __name__ == '__main__':
unittest.main()
Make sure that output is text in Python 2 & 3.import os
import unittest
import subprocess
import utils
TOPDIR = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
test_dir = utils.set_search_paths(TOPDIR)
utils.set_search_paths(TOPDIR)
from allosmod.util import check_output
class Tests(unittest.TestCase):
def test_bad(self):
"""Test wrong arguments to get_rest"""
for args in ([], [''] * 2):
out = check_output(['allosmod', 'get_rest'] + args,
stderr=subprocess.STDOUT, retcode=2)
out = check_output(['python', '-m',
'allosmod.get_rest'] + args,
stderr=subprocess.STDOUT, retcode=2)
def test_simple(self):
"""Simple complete run of get_rest"""
with open('get_rest.in', 'w') as fh:
pass
out = check_output(['allosmod', 'get_rest',
os.path.join(test_dir, 'input',
'asite_pdb1.pdb')],
universal_newlines=True)
os.unlink('get_rest.in')
# PDB file contains no sugars, so no restraints should be output
self.assertEqual(out, '')
if __name__ == '__main__':
unittest.main()
|
<commit_before>import os
import unittest
import subprocess
import utils
TOPDIR = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
test_dir = utils.set_search_paths(TOPDIR)
utils.set_search_paths(TOPDIR)
from allosmod.util import check_output
class Tests(unittest.TestCase):
def test_bad(self):
"""Test wrong arguments to get_rest"""
for args in ([], [''] * 2):
out = check_output(['allosmod', 'get_rest'] + args,
stderr=subprocess.STDOUT, retcode=2)
out = check_output(['python', '-m',
'allosmod.get_rest'] + args,
stderr=subprocess.STDOUT, retcode=2)
def test_simple(self):
"""Simple complete run of get_rest"""
with open('get_rest.in', 'w') as fh:
pass
out = check_output(['allosmod', 'get_rest',
os.path.join(test_dir, 'input',
'asite_pdb1.pdb')])
os.unlink('get_rest.in')
# PDB file contains no sugars, so no restraints should be output
self.assertEqual(out, '')
if __name__ == '__main__':
unittest.main()
<commit_msg>Make sure that output is text in Python 2 & 3.<commit_after>import os
import unittest
import subprocess
import utils
TOPDIR = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
test_dir = utils.set_search_paths(TOPDIR)
utils.set_search_paths(TOPDIR)
from allosmod.util import check_output
class Tests(unittest.TestCase):
def test_bad(self):
"""Test wrong arguments to get_rest"""
for args in ([], [''] * 2):
out = check_output(['allosmod', 'get_rest'] + args,
stderr=subprocess.STDOUT, retcode=2)
out = check_output(['python', '-m',
'allosmod.get_rest'] + args,
stderr=subprocess.STDOUT, retcode=2)
def test_simple(self):
"""Simple complete run of get_rest"""
with open('get_rest.in', 'w') as fh:
pass
out = check_output(['allosmod', 'get_rest',
os.path.join(test_dir, 'input',
'asite_pdb1.pdb')],
universal_newlines=True)
os.unlink('get_rest.in')
# PDB file contains no sugars, so no restraints should be output
self.assertEqual(out, '')
if __name__ == '__main__':
unittest.main()
|
4fcc2816cfcc545f29f4dabc466bd243c1d59ca6
|
setup.py
|
setup.py
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
import publisher
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
version = publisher.__version__
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
print("You probably want to also tag the version now:")
print(" git tag -a %s -m 'version %s'" % (version, version))
print(" git push --tags")
sys.exit()
readme = open('README.rst').read()
setup(
name='django-model-publisher',
version=version,
description="""Handy mixin/abstract class for providing a "publisher workflow" to arbitrary Django models.""",
long_description=readme,
author='JP74',
author_email='opensource@jp74.com',
url='https://github.com/jp74/django-model-publisher',
packages=[
'publisher',
],
include_package_data=True,
install_requires=[
'Django>=1.4.3',
'django-model-utils>=2.0.3',
],
license="BSD",
zip_safe=False,
keywords='django-model-publisher',
classifiers=[
'Development Status :: 4 - Beta',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
],
)
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
from setuptools import setup
import publisher
version = publisher.__version__
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
print("You probably want to also tag the version now:")
print(" git tag -a %s -m 'version %s'" % (version, version))
print(" git push --tags")
sys.exit()
readme = open('README.rst').read()
setup(
name='django-model-publisher',
version=version,
description="""Handy mixin/abstract class for providing a "publisher workflow" to arbitrary Django models.""",
long_description=readme,
author='JP74',
author_email='opensource@jp74.com',
url='https://github.com/jp74/django-model-publisher',
packages=[
'publisher',
],
include_package_data=True,
license="BSD",
zip_safe=False,
keywords='django-model-publisher',
classifiers=[
'Development Status :: 4 - Beta',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
],
)
|
Remove distutils, removed django-model-utils requirement.
|
Remove distutils, removed django-model-utils requirement.
|
Python
|
bsd-3-clause
|
jp74/django-model-publisher,jp74/django-model-publisher,wearehoods/django-model-publisher-ai,jp74/django-model-publisher,wearehoods/django-model-publisher-ai,wearehoods/django-model-publisher-ai
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
import publisher
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
version = publisher.__version__
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
print("You probably want to also tag the version now:")
print(" git tag -a %s -m 'version %s'" % (version, version))
print(" git push --tags")
sys.exit()
readme = open('README.rst').read()
setup(
name='django-model-publisher',
version=version,
description="""Handy mixin/abstract class for providing a "publisher workflow" to arbitrary Django models.""",
long_description=readme,
author='JP74',
author_email='opensource@jp74.com',
url='https://github.com/jp74/django-model-publisher',
packages=[
'publisher',
],
include_package_data=True,
install_requires=[
'Django>=1.4.3',
'django-model-utils>=2.0.3',
],
license="BSD",
zip_safe=False,
keywords='django-model-publisher',
classifiers=[
'Development Status :: 4 - Beta',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
],
)
Remove distutils, removed django-model-utils requirement.
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
from setuptools import setup
import publisher
version = publisher.__version__
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
print("You probably want to also tag the version now:")
print(" git tag -a %s -m 'version %s'" % (version, version))
print(" git push --tags")
sys.exit()
readme = open('README.rst').read()
setup(
name='django-model-publisher',
version=version,
description="""Handy mixin/abstract class for providing a "publisher workflow" to arbitrary Django models.""",
long_description=readme,
author='JP74',
author_email='opensource@jp74.com',
url='https://github.com/jp74/django-model-publisher',
packages=[
'publisher',
],
include_package_data=True,
license="BSD",
zip_safe=False,
keywords='django-model-publisher',
classifiers=[
'Development Status :: 4 - Beta',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
],
)
|
<commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
import publisher
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
version = publisher.__version__
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
print("You probably want to also tag the version now:")
print(" git tag -a %s -m 'version %s'" % (version, version))
print(" git push --tags")
sys.exit()
readme = open('README.rst').read()
setup(
name='django-model-publisher',
version=version,
description="""Handy mixin/abstract class for providing a "publisher workflow" to arbitrary Django models.""",
long_description=readme,
author='JP74',
author_email='opensource@jp74.com',
url='https://github.com/jp74/django-model-publisher',
packages=[
'publisher',
],
include_package_data=True,
install_requires=[
'Django>=1.4.3',
'django-model-utils>=2.0.3',
],
license="BSD",
zip_safe=False,
keywords='django-model-publisher',
classifiers=[
'Development Status :: 4 - Beta',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
],
)
<commit_msg>Remove distutils, removed django-model-utils requirement.<commit_after>
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
from setuptools import setup
import publisher
version = publisher.__version__
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
print("You probably want to also tag the version now:")
print(" git tag -a %s -m 'version %s'" % (version, version))
print(" git push --tags")
sys.exit()
readme = open('README.rst').read()
setup(
name='django-model-publisher',
version=version,
description="""Handy mixin/abstract class for providing a "publisher workflow" to arbitrary Django models.""",
long_description=readme,
author='JP74',
author_email='opensource@jp74.com',
url='https://github.com/jp74/django-model-publisher',
packages=[
'publisher',
],
include_package_data=True,
license="BSD",
zip_safe=False,
keywords='django-model-publisher',
classifiers=[
'Development Status :: 4 - Beta',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
],
)
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
import publisher
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
version = publisher.__version__
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
print("You probably want to also tag the version now:")
print(" git tag -a %s -m 'version %s'" % (version, version))
print(" git push --tags")
sys.exit()
readme = open('README.rst').read()
setup(
name='django-model-publisher',
version=version,
description="""Handy mixin/abstract class for providing a "publisher workflow" to arbitrary Django models.""",
long_description=readme,
author='JP74',
author_email='opensource@jp74.com',
url='https://github.com/jp74/django-model-publisher',
packages=[
'publisher',
],
include_package_data=True,
install_requires=[
'Django>=1.4.3',
'django-model-utils>=2.0.3',
],
license="BSD",
zip_safe=False,
keywords='django-model-publisher',
classifiers=[
'Development Status :: 4 - Beta',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
],
)
Remove distutils, removed django-model-utils requirement.#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
from setuptools import setup
import publisher
version = publisher.__version__
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
print("You probably want to also tag the version now:")
print(" git tag -a %s -m 'version %s'" % (version, version))
print(" git push --tags")
sys.exit()
readme = open('README.rst').read()
setup(
name='django-model-publisher',
version=version,
description="""Handy mixin/abstract class for providing a "publisher workflow" to arbitrary Django models.""",
long_description=readme,
author='JP74',
author_email='opensource@jp74.com',
url='https://github.com/jp74/django-model-publisher',
packages=[
'publisher',
],
include_package_data=True,
license="BSD",
zip_safe=False,
keywords='django-model-publisher',
classifiers=[
'Development Status :: 4 - Beta',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
],
)
|
<commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
import publisher
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
version = publisher.__version__
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
print("You probably want to also tag the version now:")
print(" git tag -a %s -m 'version %s'" % (version, version))
print(" git push --tags")
sys.exit()
readme = open('README.rst').read()
setup(
name='django-model-publisher',
version=version,
description="""Handy mixin/abstract class for providing a "publisher workflow" to arbitrary Django models.""",
long_description=readme,
author='JP74',
author_email='opensource@jp74.com',
url='https://github.com/jp74/django-model-publisher',
packages=[
'publisher',
],
include_package_data=True,
install_requires=[
'Django>=1.4.3',
'django-model-utils>=2.0.3',
],
license="BSD",
zip_safe=False,
keywords='django-model-publisher',
classifiers=[
'Development Status :: 4 - Beta',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
],
)
<commit_msg>Remove distutils, removed django-model-utils requirement.<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
from setuptools import setup
import publisher
version = publisher.__version__
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
print("You probably want to also tag the version now:")
print(" git tag -a %s -m 'version %s'" % (version, version))
print(" git push --tags")
sys.exit()
readme = open('README.rst').read()
setup(
name='django-model-publisher',
version=version,
description="""Handy mixin/abstract class for providing a "publisher workflow" to arbitrary Django models.""",
long_description=readme,
author='JP74',
author_email='opensource@jp74.com',
url='https://github.com/jp74/django-model-publisher',
packages=[
'publisher',
],
include_package_data=True,
license="BSD",
zip_safe=False,
keywords='django-model-publisher',
classifiers=[
'Development Status :: 4 - Beta',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
],
)
|
f6a713df2393d51cccbf99345f65165019608778
|
setup.py
|
setup.py
|
from distutils.core import setup
setup(
name = "django-tweetar",
url = "http://github.com/adamfast/django-tweetar",
author = "Adam Fast",
author_email = "adamfast@gmail.com",
version = "0.1",
license = "BSD",
packages = ["djtweetar"],
install_requires = ['python-tweetar'],
description = "App for posting current conditions to twitter via python-tweetar.",
classifiers = [
"Programming Language :: Python",
"Operating System :: OS Independent",
"Topic :: Software Development",
"Environment :: Web Environment",
"Framework :: Django",
],
)
|
from distutils.core import setup
setup(
name = "django-tweetar",
url = "http://github.com/adamfast/django-tweetar",
author = "Adam Fast",
author_email = "adamfast@gmail.com",
version = "0.1",
license = "BSD",
packages = ["djtweetar", "djtweetar.runlogs"],
install_requires = ['python-tweetar'],
description = "App for posting current conditions to twitter via python-tweetar.",
classifiers = [
"Programming Language :: Python",
"Operating System :: OS Independent",
"Topic :: Software Development",
"Environment :: Web Environment",
"Framework :: Django",
],
)
|
Include the run logs app
|
Include the run logs app
|
Python
|
bsd-3-clause
|
adamfast/django-tweetar
|
from distutils.core import setup
setup(
name = "django-tweetar",
url = "http://github.com/adamfast/django-tweetar",
author = "Adam Fast",
author_email = "adamfast@gmail.com",
version = "0.1",
license = "BSD",
packages = ["djtweetar"],
install_requires = ['python-tweetar'],
description = "App for posting current conditions to twitter via python-tweetar.",
classifiers = [
"Programming Language :: Python",
"Operating System :: OS Independent",
"Topic :: Software Development",
"Environment :: Web Environment",
"Framework :: Django",
],
)
Include the run logs app
|
from distutils.core import setup
setup(
name = "django-tweetar",
url = "http://github.com/adamfast/django-tweetar",
author = "Adam Fast",
author_email = "adamfast@gmail.com",
version = "0.1",
license = "BSD",
packages = ["djtweetar", "djtweetar.runlogs"],
install_requires = ['python-tweetar'],
description = "App for posting current conditions to twitter via python-tweetar.",
classifiers = [
"Programming Language :: Python",
"Operating System :: OS Independent",
"Topic :: Software Development",
"Environment :: Web Environment",
"Framework :: Django",
],
)
|
<commit_before>from distutils.core import setup
setup(
name = "django-tweetar",
url = "http://github.com/adamfast/django-tweetar",
author = "Adam Fast",
author_email = "adamfast@gmail.com",
version = "0.1",
license = "BSD",
packages = ["djtweetar"],
install_requires = ['python-tweetar'],
description = "App for posting current conditions to twitter via python-tweetar.",
classifiers = [
"Programming Language :: Python",
"Operating System :: OS Independent",
"Topic :: Software Development",
"Environment :: Web Environment",
"Framework :: Django",
],
)
<commit_msg>Include the run logs app<commit_after>
|
from distutils.core import setup
setup(
name = "django-tweetar",
url = "http://github.com/adamfast/django-tweetar",
author = "Adam Fast",
author_email = "adamfast@gmail.com",
version = "0.1",
license = "BSD",
packages = ["djtweetar", "djtweetar.runlogs"],
install_requires = ['python-tweetar'],
description = "App for posting current conditions to twitter via python-tweetar.",
classifiers = [
"Programming Language :: Python",
"Operating System :: OS Independent",
"Topic :: Software Development",
"Environment :: Web Environment",
"Framework :: Django",
],
)
|
from distutils.core import setup
setup(
name = "django-tweetar",
url = "http://github.com/adamfast/django-tweetar",
author = "Adam Fast",
author_email = "adamfast@gmail.com",
version = "0.1",
license = "BSD",
packages = ["djtweetar"],
install_requires = ['python-tweetar'],
description = "App for posting current conditions to twitter via python-tweetar.",
classifiers = [
"Programming Language :: Python",
"Operating System :: OS Independent",
"Topic :: Software Development",
"Environment :: Web Environment",
"Framework :: Django",
],
)
Include the run logs appfrom distutils.core import setup
setup(
name = "django-tweetar",
url = "http://github.com/adamfast/django-tweetar",
author = "Adam Fast",
author_email = "adamfast@gmail.com",
version = "0.1",
license = "BSD",
packages = ["djtweetar", "djtweetar.runlogs"],
install_requires = ['python-tweetar'],
description = "App for posting current conditions to twitter via python-tweetar.",
classifiers = [
"Programming Language :: Python",
"Operating System :: OS Independent",
"Topic :: Software Development",
"Environment :: Web Environment",
"Framework :: Django",
],
)
|
<commit_before>from distutils.core import setup
setup(
name = "django-tweetar",
url = "http://github.com/adamfast/django-tweetar",
author = "Adam Fast",
author_email = "adamfast@gmail.com",
version = "0.1",
license = "BSD",
packages = ["djtweetar"],
install_requires = ['python-tweetar'],
description = "App for posting current conditions to twitter via python-tweetar.",
classifiers = [
"Programming Language :: Python",
"Operating System :: OS Independent",
"Topic :: Software Development",
"Environment :: Web Environment",
"Framework :: Django",
],
)
<commit_msg>Include the run logs app<commit_after>from distutils.core import setup
setup(
name = "django-tweetar",
url = "http://github.com/adamfast/django-tweetar",
author = "Adam Fast",
author_email = "adamfast@gmail.com",
version = "0.1",
license = "BSD",
packages = ["djtweetar", "djtweetar.runlogs"],
install_requires = ['python-tweetar'],
description = "App for posting current conditions to twitter via python-tweetar.",
classifiers = [
"Programming Language :: Python",
"Operating System :: OS Independent",
"Topic :: Software Development",
"Environment :: Web Environment",
"Framework :: Django",
],
)
|
9ebb1ed46ac0c07603c0108e95a1e29194ed889b
|
setup.py
|
setup.py
|
from setuptools import setup, find_packages, Command
version = __import__('eemeter').get_version()
long_description = "Standard methods for calculating energy efficiency savings."
class PyTest(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
import subprocess
import sys
errno = subprocess.call([sys.executable, 'runtests.py', '--runslow', '--cov-report=', '--cov=eemeter', 'tests/'])
raise SystemExit(errno)
setup(name='eemeter',
version=version,
description='Open Energy Efficiency Meter',
long_description=long_description,
url='https://github.com/impactlab/eemeter/',
author='Matt Gee, Phil Ngo, Eric Potash',
license='MIT',
classifiers=[
'Development Status :: 3 - Alpha',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
],
cmdclass = {'test': PyTest},
keywords='open energy efficiency meter method methods calculation savings',
packages=find_packages(),
install_requires=['pint',
'pyyaml',
'scipy',
'numpy',
'pandas',
'requests',
'pytz'],
package_data={'': ['*.json','*.gz']},
)
|
from setuptools import setup, find_packages, Command
version = __import__('eemeter').get_version()
long_description = "Standard methods for calculating energy efficiency savings."
class PyTest(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
import subprocess
import sys
errno = subprocess.call([sys.executable, 'runtests.py', '--runslow', '--cov-report', 'term-missing', '--cov=eemeter' ])
raise SystemExit(errno)
setup(name='eemeter',
version=version,
description='Open Energy Efficiency Meter',
long_description=long_description,
url='https://github.com/impactlab/eemeter/',
author='Matt Gee, Phil Ngo, Eric Potash',
license='MIT',
classifiers=[
'Development Status :: 3 - Alpha',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
],
cmdclass = {'test': PyTest},
keywords='open energy efficiency meter method methods calculation savings',
packages=find_packages(),
install_requires=['pint',
'pyyaml',
'scipy',
'numpy',
'pandas',
'requests',
'pytz'],
package_data={'': ['*.json','*.gz']},
)
|
Add term-missing to coverage call
|
Add term-missing to coverage call
|
Python
|
apache-2.0
|
openeemeter/eemeter,openeemeter/eemeter,impactlab/eemeter
|
from setuptools import setup, find_packages, Command
version = __import__('eemeter').get_version()
long_description = "Standard methods for calculating energy efficiency savings."
class PyTest(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
import subprocess
import sys
errno = subprocess.call([sys.executable, 'runtests.py', '--runslow', '--cov-report=', '--cov=eemeter', 'tests/'])
raise SystemExit(errno)
setup(name='eemeter',
version=version,
description='Open Energy Efficiency Meter',
long_description=long_description,
url='https://github.com/impactlab/eemeter/',
author='Matt Gee, Phil Ngo, Eric Potash',
license='MIT',
classifiers=[
'Development Status :: 3 - Alpha',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
],
cmdclass = {'test': PyTest},
keywords='open energy efficiency meter method methods calculation savings',
packages=find_packages(),
install_requires=['pint',
'pyyaml',
'scipy',
'numpy',
'pandas',
'requests',
'pytz'],
package_data={'': ['*.json','*.gz']},
)
Add term-missing to coverage call
|
from setuptools import setup, find_packages, Command
version = __import__('eemeter').get_version()
long_description = "Standard methods for calculating energy efficiency savings."
class PyTest(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
import subprocess
import sys
errno = subprocess.call([sys.executable, 'runtests.py', '--runslow', '--cov-report', 'term-missing', '--cov=eemeter' ])
raise SystemExit(errno)
setup(name='eemeter',
version=version,
description='Open Energy Efficiency Meter',
long_description=long_description,
url='https://github.com/impactlab/eemeter/',
author='Matt Gee, Phil Ngo, Eric Potash',
license='MIT',
classifiers=[
'Development Status :: 3 - Alpha',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
],
cmdclass = {'test': PyTest},
keywords='open energy efficiency meter method methods calculation savings',
packages=find_packages(),
install_requires=['pint',
'pyyaml',
'scipy',
'numpy',
'pandas',
'requests',
'pytz'],
package_data={'': ['*.json','*.gz']},
)
|
<commit_before>from setuptools import setup, find_packages, Command
version = __import__('eemeter').get_version()
long_description = "Standard methods for calculating energy efficiency savings."
class PyTest(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
import subprocess
import sys
errno = subprocess.call([sys.executable, 'runtests.py', '--runslow', '--cov-report=', '--cov=eemeter', 'tests/'])
raise SystemExit(errno)
setup(name='eemeter',
version=version,
description='Open Energy Efficiency Meter',
long_description=long_description,
url='https://github.com/impactlab/eemeter/',
author='Matt Gee, Phil Ngo, Eric Potash',
license='MIT',
classifiers=[
'Development Status :: 3 - Alpha',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
],
cmdclass = {'test': PyTest},
keywords='open energy efficiency meter method methods calculation savings',
packages=find_packages(),
install_requires=['pint',
'pyyaml',
'scipy',
'numpy',
'pandas',
'requests',
'pytz'],
package_data={'': ['*.json','*.gz']},
)
<commit_msg>Add term-missing to coverage call<commit_after>
|
from setuptools import setup, find_packages, Command
version = __import__('eemeter').get_version()
long_description = "Standard methods for calculating energy efficiency savings."
class PyTest(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
import subprocess
import sys
errno = subprocess.call([sys.executable, 'runtests.py', '--runslow', '--cov-report', 'term-missing', '--cov=eemeter' ])
raise SystemExit(errno)
setup(name='eemeter',
version=version,
description='Open Energy Efficiency Meter',
long_description=long_description,
url='https://github.com/impactlab/eemeter/',
author='Matt Gee, Phil Ngo, Eric Potash',
license='MIT',
classifiers=[
'Development Status :: 3 - Alpha',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
],
cmdclass = {'test': PyTest},
keywords='open energy efficiency meter method methods calculation savings',
packages=find_packages(),
install_requires=['pint',
'pyyaml',
'scipy',
'numpy',
'pandas',
'requests',
'pytz'],
package_data={'': ['*.json','*.gz']},
)
|
from setuptools import setup, find_packages, Command
version = __import__('eemeter').get_version()
long_description = "Standard methods for calculating energy efficiency savings."
class PyTest(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
import subprocess
import sys
errno = subprocess.call([sys.executable, 'runtests.py', '--runslow', '--cov-report=', '--cov=eemeter', 'tests/'])
raise SystemExit(errno)
setup(name='eemeter',
version=version,
description='Open Energy Efficiency Meter',
long_description=long_description,
url='https://github.com/impactlab/eemeter/',
author='Matt Gee, Phil Ngo, Eric Potash',
license='MIT',
classifiers=[
'Development Status :: 3 - Alpha',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
],
cmdclass = {'test': PyTest},
keywords='open energy efficiency meter method methods calculation savings',
packages=find_packages(),
install_requires=['pint',
'pyyaml',
'scipy',
'numpy',
'pandas',
'requests',
'pytz'],
package_data={'': ['*.json','*.gz']},
)
Add term-missing to coverage callfrom setuptools import setup, find_packages, Command
version = __import__('eemeter').get_version()
long_description = "Standard methods for calculating energy efficiency savings."
class PyTest(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
import subprocess
import sys
errno = subprocess.call([sys.executable, 'runtests.py', '--runslow', '--cov-report', 'term-missing', '--cov=eemeter' ])
raise SystemExit(errno)
setup(name='eemeter',
version=version,
description='Open Energy Efficiency Meter',
long_description=long_description,
url='https://github.com/impactlab/eemeter/',
author='Matt Gee, Phil Ngo, Eric Potash',
license='MIT',
classifiers=[
'Development Status :: 3 - Alpha',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
],
cmdclass = {'test': PyTest},
keywords='open energy efficiency meter method methods calculation savings',
packages=find_packages(),
install_requires=['pint',
'pyyaml',
'scipy',
'numpy',
'pandas',
'requests',
'pytz'],
package_data={'': ['*.json','*.gz']},
)
|
<commit_before>from setuptools import setup, find_packages, Command
version = __import__('eemeter').get_version()
long_description = "Standard methods for calculating energy efficiency savings."
class PyTest(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
import subprocess
import sys
errno = subprocess.call([sys.executable, 'runtests.py', '--runslow', '--cov-report=', '--cov=eemeter', 'tests/'])
raise SystemExit(errno)
setup(name='eemeter',
version=version,
description='Open Energy Efficiency Meter',
long_description=long_description,
url='https://github.com/impactlab/eemeter/',
author='Matt Gee, Phil Ngo, Eric Potash',
license='MIT',
classifiers=[
'Development Status :: 3 - Alpha',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
],
cmdclass = {'test': PyTest},
keywords='open energy efficiency meter method methods calculation savings',
packages=find_packages(),
install_requires=['pint',
'pyyaml',
'scipy',
'numpy',
'pandas',
'requests',
'pytz'],
package_data={'': ['*.json','*.gz']},
)
<commit_msg>Add term-missing to coverage call<commit_after>from setuptools import setup, find_packages, Command
version = __import__('eemeter').get_version()
long_description = "Standard methods for calculating energy efficiency savings."
class PyTest(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
import subprocess
import sys
errno = subprocess.call([sys.executable, 'runtests.py', '--runslow', '--cov-report', 'term-missing', '--cov=eemeter' ])
raise SystemExit(errno)
setup(name='eemeter',
version=version,
description='Open Energy Efficiency Meter',
long_description=long_description,
url='https://github.com/impactlab/eemeter/',
author='Matt Gee, Phil Ngo, Eric Potash',
license='MIT',
classifiers=[
'Development Status :: 3 - Alpha',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
],
cmdclass = {'test': PyTest},
keywords='open energy efficiency meter method methods calculation savings',
packages=find_packages(),
install_requires=['pint',
'pyyaml',
'scipy',
'numpy',
'pandas',
'requests',
'pytz'],
package_data={'': ['*.json','*.gz']},
)
|
2b962c036b0d56ec27d186ea6dd9c837f260d953
|
setup.py
|
setup.py
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
settings = dict()
# Publish
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys.exit()
settings.update(
name='whenpy',
version='0.1.0',
description='Friendly Dates and Times',
long_description=open('README.rst').read(),
author='Andy Dirnberger',
author_email='dirn@dirnonline.com',
url='https://github.com/dirn/when.py',
packages=['when'],
install_requires=['pytz'],
license=open('LICENSE').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',
'Programming Language :: Python :: Python 2.6',
'Programming Language :: Python :: Python 2.7',
'Topic :: Software Development :: Libraries :: Python Modules',
),
)
setup(**settings)
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
settings = dict()
# Publish
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys.exit()
settings.update(
name='whenpy',
version='0.1.0',
description='Friendly Dates and Times',
long_description=open('README.rst').read(),
author='Andy Dirnberger',
author_email='dirn@dirnonline.com',
url='https://github.com/dirn/when.py',
packages=['when'],
install_requires=['pytz'],
license=open('LICENSE').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',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Topic :: Software Development :: Libraries :: Python Modules',
),
)
setup(**settings)
|
Fix Python versions for PKG-INFO
|
Fix Python versions for PKG-INFO
|
Python
|
bsd-3-clause
|
dirn/When.py
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
settings = dict()
# Publish
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys.exit()
settings.update(
name='whenpy',
version='0.1.0',
description='Friendly Dates and Times',
long_description=open('README.rst').read(),
author='Andy Dirnberger',
author_email='dirn@dirnonline.com',
url='https://github.com/dirn/when.py',
packages=['when'],
install_requires=['pytz'],
license=open('LICENSE').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',
'Programming Language :: Python :: Python 2.6',
'Programming Language :: Python :: Python 2.7',
'Topic :: Software Development :: Libraries :: Python Modules',
),
)
setup(**settings)
Fix Python versions for PKG-INFO
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
settings = dict()
# Publish
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys.exit()
settings.update(
name='whenpy',
version='0.1.0',
description='Friendly Dates and Times',
long_description=open('README.rst').read(),
author='Andy Dirnberger',
author_email='dirn@dirnonline.com',
url='https://github.com/dirn/when.py',
packages=['when'],
install_requires=['pytz'],
license=open('LICENSE').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',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Topic :: Software Development :: Libraries :: Python Modules',
),
)
setup(**settings)
|
<commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
settings = dict()
# Publish
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys.exit()
settings.update(
name='whenpy',
version='0.1.0',
description='Friendly Dates and Times',
long_description=open('README.rst').read(),
author='Andy Dirnberger',
author_email='dirn@dirnonline.com',
url='https://github.com/dirn/when.py',
packages=['when'],
install_requires=['pytz'],
license=open('LICENSE').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',
'Programming Language :: Python :: Python 2.6',
'Programming Language :: Python :: Python 2.7',
'Topic :: Software Development :: Libraries :: Python Modules',
),
)
setup(**settings)
<commit_msg>Fix Python versions for PKG-INFO<commit_after>
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
settings = dict()
# Publish
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys.exit()
settings.update(
name='whenpy',
version='0.1.0',
description='Friendly Dates and Times',
long_description=open('README.rst').read(),
author='Andy Dirnberger',
author_email='dirn@dirnonline.com',
url='https://github.com/dirn/when.py',
packages=['when'],
install_requires=['pytz'],
license=open('LICENSE').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',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Topic :: Software Development :: Libraries :: Python Modules',
),
)
setup(**settings)
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
settings = dict()
# Publish
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys.exit()
settings.update(
name='whenpy',
version='0.1.0',
description='Friendly Dates and Times',
long_description=open('README.rst').read(),
author='Andy Dirnberger',
author_email='dirn@dirnonline.com',
url='https://github.com/dirn/when.py',
packages=['when'],
install_requires=['pytz'],
license=open('LICENSE').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',
'Programming Language :: Python :: Python 2.6',
'Programming Language :: Python :: Python 2.7',
'Topic :: Software Development :: Libraries :: Python Modules',
),
)
setup(**settings)
Fix Python versions for PKG-INFO#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
settings = dict()
# Publish
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys.exit()
settings.update(
name='whenpy',
version='0.1.0',
description='Friendly Dates and Times',
long_description=open('README.rst').read(),
author='Andy Dirnberger',
author_email='dirn@dirnonline.com',
url='https://github.com/dirn/when.py',
packages=['when'],
install_requires=['pytz'],
license=open('LICENSE').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',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Topic :: Software Development :: Libraries :: Python Modules',
),
)
setup(**settings)
|
<commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
settings = dict()
# Publish
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys.exit()
settings.update(
name='whenpy',
version='0.1.0',
description='Friendly Dates and Times',
long_description=open('README.rst').read(),
author='Andy Dirnberger',
author_email='dirn@dirnonline.com',
url='https://github.com/dirn/when.py',
packages=['when'],
install_requires=['pytz'],
license=open('LICENSE').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',
'Programming Language :: Python :: Python 2.6',
'Programming Language :: Python :: Python 2.7',
'Topic :: Software Development :: Libraries :: Python Modules',
),
)
setup(**settings)
<commit_msg>Fix Python versions for PKG-INFO<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
settings = dict()
# Publish
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys.exit()
settings.update(
name='whenpy',
version='0.1.0',
description='Friendly Dates and Times',
long_description=open('README.rst').read(),
author='Andy Dirnberger',
author_email='dirn@dirnonline.com',
url='https://github.com/dirn/when.py',
packages=['when'],
install_requires=['pytz'],
license=open('LICENSE').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',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Topic :: Software Development :: Libraries :: Python Modules',
),
)
setup(**settings)
|
de3aa6eed0fca73f3949ee5c584bcc79e1b98109
|
setup.py
|
setup.py
|
from setuptools import setup, find_packages
setup(name='mutube',
version='0.1',
description='Scrape YouTube links from 4chan threads.',
url='https://github.com/AP-e/mutube',
license='unlicense',
classifiers=['Development Status :: 2 - Pre-Alpha',
'Programming Language :: Python :: 3 :: Only'],
keywords='4chan youtube',
packages=find_packages(),
install_requires=['bs4'])
|
from setuptools import setup, find_packages
setup(name='mutube',
version='0.1',
description='Scrape YouTube links from 4chan threads.',
url='https://github.com/AP-e/mutube',
license='unlicense',
classifiers=['Development Status :: 2 - Pre-Alpha',
'Programming Language :: Python'],
keywords='4chan youtube',
packages=find_packages(),
install_requires=['bs4'])
|
Remove Python 3 only classifier
|
Remove Python 3 only classifier
|
Python
|
unlicense
|
AP-e/mutube
|
from setuptools import setup, find_packages
setup(name='mutube',
version='0.1',
description='Scrape YouTube links from 4chan threads.',
url='https://github.com/AP-e/mutube',
license='unlicense',
classifiers=['Development Status :: 2 - Pre-Alpha',
'Programming Language :: Python :: 3 :: Only'],
keywords='4chan youtube',
packages=find_packages(),
install_requires=['bs4'])
Remove Python 3 only classifier
|
from setuptools import setup, find_packages
setup(name='mutube',
version='0.1',
description='Scrape YouTube links from 4chan threads.',
url='https://github.com/AP-e/mutube',
license='unlicense',
classifiers=['Development Status :: 2 - Pre-Alpha',
'Programming Language :: Python'],
keywords='4chan youtube',
packages=find_packages(),
install_requires=['bs4'])
|
<commit_before>from setuptools import setup, find_packages
setup(name='mutube',
version='0.1',
description='Scrape YouTube links from 4chan threads.',
url='https://github.com/AP-e/mutube',
license='unlicense',
classifiers=['Development Status :: 2 - Pre-Alpha',
'Programming Language :: Python :: 3 :: Only'],
keywords='4chan youtube',
packages=find_packages(),
install_requires=['bs4'])
<commit_msg>Remove Python 3 only classifier<commit_after>
|
from setuptools import setup, find_packages
setup(name='mutube',
version='0.1',
description='Scrape YouTube links from 4chan threads.',
url='https://github.com/AP-e/mutube',
license='unlicense',
classifiers=['Development Status :: 2 - Pre-Alpha',
'Programming Language :: Python'],
keywords='4chan youtube',
packages=find_packages(),
install_requires=['bs4'])
|
from setuptools import setup, find_packages
setup(name='mutube',
version='0.1',
description='Scrape YouTube links from 4chan threads.',
url='https://github.com/AP-e/mutube',
license='unlicense',
classifiers=['Development Status :: 2 - Pre-Alpha',
'Programming Language :: Python :: 3 :: Only'],
keywords='4chan youtube',
packages=find_packages(),
install_requires=['bs4'])
Remove Python 3 only classifierfrom setuptools import setup, find_packages
setup(name='mutube',
version='0.1',
description='Scrape YouTube links from 4chan threads.',
url='https://github.com/AP-e/mutube',
license='unlicense',
classifiers=['Development Status :: 2 - Pre-Alpha',
'Programming Language :: Python'],
keywords='4chan youtube',
packages=find_packages(),
install_requires=['bs4'])
|
<commit_before>from setuptools import setup, find_packages
setup(name='mutube',
version='0.1',
description='Scrape YouTube links from 4chan threads.',
url='https://github.com/AP-e/mutube',
license='unlicense',
classifiers=['Development Status :: 2 - Pre-Alpha',
'Programming Language :: Python :: 3 :: Only'],
keywords='4chan youtube',
packages=find_packages(),
install_requires=['bs4'])
<commit_msg>Remove Python 3 only classifier<commit_after>from setuptools import setup, find_packages
setup(name='mutube',
version='0.1',
description='Scrape YouTube links from 4chan threads.',
url='https://github.com/AP-e/mutube',
license='unlicense',
classifiers=['Development Status :: 2 - Pre-Alpha',
'Programming Language :: Python'],
keywords='4chan youtube',
packages=find_packages(),
install_requires=['bs4'])
|
e53a1c33dd3ce5258aff384257bd218f14c8870e
|
setup.py
|
setup.py
|
import os
import sys
import setuptools
from keystoneclient.openstack.common import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
requires = setup.parse_requirements()
depend_links = setup.parse_dependency_links()
tests_require = setup.parse_requirements(['tools/test-requires'])
setuptools.setup(
name="python-keystoneclient",
version=setup.get_post_version('keystoneclient'),
description="Client library for OpenStack Identity API (Keystone)",
long_description=read('README.rst'),
url='https://github.com/openstack/python-keystoneclient',
license='Apache',
author='Nebula Inc, based on work by Rackspace and Jacob Kaplan-Moss',
author_email='gabriel.hurley@nebula.com',
packages=setuptools.find_packages(exclude=['tests', 'tests.*']),
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Environment :: OpenStack',
'Intended Audience :: Developers',
'Intended Audience :: Information Technology',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
'Programming Language :: Python',
],
install_requires=requires,
dependency_links=depend_links,
cmdclass=setup.get_cmdclass(),
tests_require=tests_require,
test_suite="nose.collector",
entry_points={
'console_scripts': ['keystone = keystoneclient.shell:main']
}
)
|
import os
import sys
import setuptools
from keystoneclient.openstack.common import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
requires = setup.parse_requirements()
depend_links = setup.parse_dependency_links()
tests_require = setup.parse_requirements(['tools/test-requires'])
setuptools.setup(
name="python-keystoneclient",
version=setup.get_post_version('keystoneclient'),
description="Client library for OpenStack Identity API (Keystone)",
long_description=read('README.rst'),
url='https://github.com/openstack/python-keystoneclient',
license='Apache',
author='Nebula Inc, based on work by Rackspace and Jacob Kaplan-Moss',
author_email='gabriel.hurley@nebula.com',
packages=setuptools.find_packages(exclude=['tests', 'tests.*']),
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Environment :: OpenStack',
'Intended Audience :: Developers',
'Intended Audience :: Information Technology',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
'Programming Language :: Python',
],
install_requires=requires,
dependency_links=depend_links,
cmdclass=setup.get_cmdclass(),
tests_require=tests_require,
test_suite="nose.collector",
entry_points={
'console_scripts': ['keystone = keystoneclient.shell:main']
},
data_files=[('keystoneclient', ['keystoneclient/versioninfo'])],
)
|
Add --version CLI opt and __version__ module attr
|
Add --version CLI opt and __version__ module attr
Change-Id: I8c39a797e79429dd21c5caf093b076a4b1757de0
|
Python
|
apache-2.0
|
citrix-openstack-build/keystoneauth,jamielennox/keystoneauth,sileht/keystoneauth
|
import os
import sys
import setuptools
from keystoneclient.openstack.common import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
requires = setup.parse_requirements()
depend_links = setup.parse_dependency_links()
tests_require = setup.parse_requirements(['tools/test-requires'])
setuptools.setup(
name="python-keystoneclient",
version=setup.get_post_version('keystoneclient'),
description="Client library for OpenStack Identity API (Keystone)",
long_description=read('README.rst'),
url='https://github.com/openstack/python-keystoneclient',
license='Apache',
author='Nebula Inc, based on work by Rackspace and Jacob Kaplan-Moss',
author_email='gabriel.hurley@nebula.com',
packages=setuptools.find_packages(exclude=['tests', 'tests.*']),
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Environment :: OpenStack',
'Intended Audience :: Developers',
'Intended Audience :: Information Technology',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
'Programming Language :: Python',
],
install_requires=requires,
dependency_links=depend_links,
cmdclass=setup.get_cmdclass(),
tests_require=tests_require,
test_suite="nose.collector",
entry_points={
'console_scripts': ['keystone = keystoneclient.shell:main']
}
)
Add --version CLI opt and __version__ module attr
Change-Id: I8c39a797e79429dd21c5caf093b076a4b1757de0
|
import os
import sys
import setuptools
from keystoneclient.openstack.common import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
requires = setup.parse_requirements()
depend_links = setup.parse_dependency_links()
tests_require = setup.parse_requirements(['tools/test-requires'])
setuptools.setup(
name="python-keystoneclient",
version=setup.get_post_version('keystoneclient'),
description="Client library for OpenStack Identity API (Keystone)",
long_description=read('README.rst'),
url='https://github.com/openstack/python-keystoneclient',
license='Apache',
author='Nebula Inc, based on work by Rackspace and Jacob Kaplan-Moss',
author_email='gabriel.hurley@nebula.com',
packages=setuptools.find_packages(exclude=['tests', 'tests.*']),
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Environment :: OpenStack',
'Intended Audience :: Developers',
'Intended Audience :: Information Technology',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
'Programming Language :: Python',
],
install_requires=requires,
dependency_links=depend_links,
cmdclass=setup.get_cmdclass(),
tests_require=tests_require,
test_suite="nose.collector",
entry_points={
'console_scripts': ['keystone = keystoneclient.shell:main']
},
data_files=[('keystoneclient', ['keystoneclient/versioninfo'])],
)
|
<commit_before>import os
import sys
import setuptools
from keystoneclient.openstack.common import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
requires = setup.parse_requirements()
depend_links = setup.parse_dependency_links()
tests_require = setup.parse_requirements(['tools/test-requires'])
setuptools.setup(
name="python-keystoneclient",
version=setup.get_post_version('keystoneclient'),
description="Client library for OpenStack Identity API (Keystone)",
long_description=read('README.rst'),
url='https://github.com/openstack/python-keystoneclient',
license='Apache',
author='Nebula Inc, based on work by Rackspace and Jacob Kaplan-Moss',
author_email='gabriel.hurley@nebula.com',
packages=setuptools.find_packages(exclude=['tests', 'tests.*']),
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Environment :: OpenStack',
'Intended Audience :: Developers',
'Intended Audience :: Information Technology',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
'Programming Language :: Python',
],
install_requires=requires,
dependency_links=depend_links,
cmdclass=setup.get_cmdclass(),
tests_require=tests_require,
test_suite="nose.collector",
entry_points={
'console_scripts': ['keystone = keystoneclient.shell:main']
}
)
<commit_msg>Add --version CLI opt and __version__ module attr
Change-Id: I8c39a797e79429dd21c5caf093b076a4b1757de0<commit_after>
|
import os
import sys
import setuptools
from keystoneclient.openstack.common import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
requires = setup.parse_requirements()
depend_links = setup.parse_dependency_links()
tests_require = setup.parse_requirements(['tools/test-requires'])
setuptools.setup(
name="python-keystoneclient",
version=setup.get_post_version('keystoneclient'),
description="Client library for OpenStack Identity API (Keystone)",
long_description=read('README.rst'),
url='https://github.com/openstack/python-keystoneclient',
license='Apache',
author='Nebula Inc, based on work by Rackspace and Jacob Kaplan-Moss',
author_email='gabriel.hurley@nebula.com',
packages=setuptools.find_packages(exclude=['tests', 'tests.*']),
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Environment :: OpenStack',
'Intended Audience :: Developers',
'Intended Audience :: Information Technology',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
'Programming Language :: Python',
],
install_requires=requires,
dependency_links=depend_links,
cmdclass=setup.get_cmdclass(),
tests_require=tests_require,
test_suite="nose.collector",
entry_points={
'console_scripts': ['keystone = keystoneclient.shell:main']
},
data_files=[('keystoneclient', ['keystoneclient/versioninfo'])],
)
|
import os
import sys
import setuptools
from keystoneclient.openstack.common import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
requires = setup.parse_requirements()
depend_links = setup.parse_dependency_links()
tests_require = setup.parse_requirements(['tools/test-requires'])
setuptools.setup(
name="python-keystoneclient",
version=setup.get_post_version('keystoneclient'),
description="Client library for OpenStack Identity API (Keystone)",
long_description=read('README.rst'),
url='https://github.com/openstack/python-keystoneclient',
license='Apache',
author='Nebula Inc, based on work by Rackspace and Jacob Kaplan-Moss',
author_email='gabriel.hurley@nebula.com',
packages=setuptools.find_packages(exclude=['tests', 'tests.*']),
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Environment :: OpenStack',
'Intended Audience :: Developers',
'Intended Audience :: Information Technology',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
'Programming Language :: Python',
],
install_requires=requires,
dependency_links=depend_links,
cmdclass=setup.get_cmdclass(),
tests_require=tests_require,
test_suite="nose.collector",
entry_points={
'console_scripts': ['keystone = keystoneclient.shell:main']
}
)
Add --version CLI opt and __version__ module attr
Change-Id: I8c39a797e79429dd21c5caf093b076a4b1757de0import os
import sys
import setuptools
from keystoneclient.openstack.common import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
requires = setup.parse_requirements()
depend_links = setup.parse_dependency_links()
tests_require = setup.parse_requirements(['tools/test-requires'])
setuptools.setup(
name="python-keystoneclient",
version=setup.get_post_version('keystoneclient'),
description="Client library for OpenStack Identity API (Keystone)",
long_description=read('README.rst'),
url='https://github.com/openstack/python-keystoneclient',
license='Apache',
author='Nebula Inc, based on work by Rackspace and Jacob Kaplan-Moss',
author_email='gabriel.hurley@nebula.com',
packages=setuptools.find_packages(exclude=['tests', 'tests.*']),
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Environment :: OpenStack',
'Intended Audience :: Developers',
'Intended Audience :: Information Technology',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
'Programming Language :: Python',
],
install_requires=requires,
dependency_links=depend_links,
cmdclass=setup.get_cmdclass(),
tests_require=tests_require,
test_suite="nose.collector",
entry_points={
'console_scripts': ['keystone = keystoneclient.shell:main']
},
data_files=[('keystoneclient', ['keystoneclient/versioninfo'])],
)
|
<commit_before>import os
import sys
import setuptools
from keystoneclient.openstack.common import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
requires = setup.parse_requirements()
depend_links = setup.parse_dependency_links()
tests_require = setup.parse_requirements(['tools/test-requires'])
setuptools.setup(
name="python-keystoneclient",
version=setup.get_post_version('keystoneclient'),
description="Client library for OpenStack Identity API (Keystone)",
long_description=read('README.rst'),
url='https://github.com/openstack/python-keystoneclient',
license='Apache',
author='Nebula Inc, based on work by Rackspace and Jacob Kaplan-Moss',
author_email='gabriel.hurley@nebula.com',
packages=setuptools.find_packages(exclude=['tests', 'tests.*']),
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Environment :: OpenStack',
'Intended Audience :: Developers',
'Intended Audience :: Information Technology',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
'Programming Language :: Python',
],
install_requires=requires,
dependency_links=depend_links,
cmdclass=setup.get_cmdclass(),
tests_require=tests_require,
test_suite="nose.collector",
entry_points={
'console_scripts': ['keystone = keystoneclient.shell:main']
}
)
<commit_msg>Add --version CLI opt and __version__ module attr
Change-Id: I8c39a797e79429dd21c5caf093b076a4b1757de0<commit_after>import os
import sys
import setuptools
from keystoneclient.openstack.common import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
requires = setup.parse_requirements()
depend_links = setup.parse_dependency_links()
tests_require = setup.parse_requirements(['tools/test-requires'])
setuptools.setup(
name="python-keystoneclient",
version=setup.get_post_version('keystoneclient'),
description="Client library for OpenStack Identity API (Keystone)",
long_description=read('README.rst'),
url='https://github.com/openstack/python-keystoneclient',
license='Apache',
author='Nebula Inc, based on work by Rackspace and Jacob Kaplan-Moss',
author_email='gabriel.hurley@nebula.com',
packages=setuptools.find_packages(exclude=['tests', 'tests.*']),
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Environment :: OpenStack',
'Intended Audience :: Developers',
'Intended Audience :: Information Technology',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
'Programming Language :: Python',
],
install_requires=requires,
dependency_links=depend_links,
cmdclass=setup.get_cmdclass(),
tests_require=tests_require,
test_suite="nose.collector",
entry_points={
'console_scripts': ['keystone = keystoneclient.shell:main']
},
data_files=[('keystoneclient', ['keystoneclient/versioninfo'])],
)
|
95fa9acaaaffe3bf4cf8b32628f3425d83e383a1
|
setup.py
|
setup.py
|
#!/usr/bin/python
from distutils.core import setup
from os.path import abspath, join, dirname
setup(
name='ccm',
version='0.9',
description='Cassandra Cluster Manager',
long_description=open(abspath(join(dirname(__file__), 'README'))).read(),
author='Sylvain Lebresne',
author_email='sylvain@datastax.com',
url='https://github.com/pcmanus/ccm',
packages=['ccmlib', 'ccmlib.cmds'],
scripts=['ccm'],
requires=['pyYaml'],
classifiers=[
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python",
],
)
|
#!/usr/bin/python
from distutils.core import setup
from os.path import abspath, join, dirname
setup(
name='ccm',
version='1.0dev',
description='Cassandra Cluster Manager',
long_description=open(abspath(join(dirname(__file__), 'README'))).read(),
author='Sylvain Lebresne',
author_email='sylvain@datastax.com',
url='https://github.com/pcmanus/ccm',
packages=['ccmlib', 'ccmlib.cmds'],
scripts=['ccm'],
requires=['pyYaml'],
classifiers=[
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python",
],
)
|
Update version after push to pypi
|
Update version after push to pypi
|
Python
|
apache-2.0
|
unusedPhD/ccm,tolbertam/ccm,mikefero/ccm,pombredanne/ccm,mikefero/ccm,thobbs/ccm,josh-mckenzie/ccm,jorgebay/ccm,oldsharp/ccm,pcmanus/ccm,aboudreault/ccm,kishkaru/ccm,tolbertam/ccm,slivne/ccm,bcantoni/ccm,spodkowinski/ccm,pcmanus/ccm,AtwooTM/ccm,mike-tr-adamson/ccm,pcmanus/ccm,mike-tr-adamson/ccm,jeffjirsa/ccm,umitunal/ccm,mike-tr-adamson/ccm,mambocab/ccm,bcantoni/ccm,thobbs/ccm,EnigmaCurry/ccm
|
#!/usr/bin/python
from distutils.core import setup
from os.path import abspath, join, dirname
setup(
name='ccm',
version='0.9',
description='Cassandra Cluster Manager',
long_description=open(abspath(join(dirname(__file__), 'README'))).read(),
author='Sylvain Lebresne',
author_email='sylvain@datastax.com',
url='https://github.com/pcmanus/ccm',
packages=['ccmlib', 'ccmlib.cmds'],
scripts=['ccm'],
requires=['pyYaml'],
classifiers=[
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python",
],
)
Update version after push to pypi
|
#!/usr/bin/python
from distutils.core import setup
from os.path import abspath, join, dirname
setup(
name='ccm',
version='1.0dev',
description='Cassandra Cluster Manager',
long_description=open(abspath(join(dirname(__file__), 'README'))).read(),
author='Sylvain Lebresne',
author_email='sylvain@datastax.com',
url='https://github.com/pcmanus/ccm',
packages=['ccmlib', 'ccmlib.cmds'],
scripts=['ccm'],
requires=['pyYaml'],
classifiers=[
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python",
],
)
|
<commit_before>#!/usr/bin/python
from distutils.core import setup
from os.path import abspath, join, dirname
setup(
name='ccm',
version='0.9',
description='Cassandra Cluster Manager',
long_description=open(abspath(join(dirname(__file__), 'README'))).read(),
author='Sylvain Lebresne',
author_email='sylvain@datastax.com',
url='https://github.com/pcmanus/ccm',
packages=['ccmlib', 'ccmlib.cmds'],
scripts=['ccm'],
requires=['pyYaml'],
classifiers=[
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python",
],
)
<commit_msg>Update version after push to pypi<commit_after>
|
#!/usr/bin/python
from distutils.core import setup
from os.path import abspath, join, dirname
setup(
name='ccm',
version='1.0dev',
description='Cassandra Cluster Manager',
long_description=open(abspath(join(dirname(__file__), 'README'))).read(),
author='Sylvain Lebresne',
author_email='sylvain@datastax.com',
url='https://github.com/pcmanus/ccm',
packages=['ccmlib', 'ccmlib.cmds'],
scripts=['ccm'],
requires=['pyYaml'],
classifiers=[
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python",
],
)
|
#!/usr/bin/python
from distutils.core import setup
from os.path import abspath, join, dirname
setup(
name='ccm',
version='0.9',
description='Cassandra Cluster Manager',
long_description=open(abspath(join(dirname(__file__), 'README'))).read(),
author='Sylvain Lebresne',
author_email='sylvain@datastax.com',
url='https://github.com/pcmanus/ccm',
packages=['ccmlib', 'ccmlib.cmds'],
scripts=['ccm'],
requires=['pyYaml'],
classifiers=[
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python",
],
)
Update version after push to pypi#!/usr/bin/python
from distutils.core import setup
from os.path import abspath, join, dirname
setup(
name='ccm',
version='1.0dev',
description='Cassandra Cluster Manager',
long_description=open(abspath(join(dirname(__file__), 'README'))).read(),
author='Sylvain Lebresne',
author_email='sylvain@datastax.com',
url='https://github.com/pcmanus/ccm',
packages=['ccmlib', 'ccmlib.cmds'],
scripts=['ccm'],
requires=['pyYaml'],
classifiers=[
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python",
],
)
|
<commit_before>#!/usr/bin/python
from distutils.core import setup
from os.path import abspath, join, dirname
setup(
name='ccm',
version='0.9',
description='Cassandra Cluster Manager',
long_description=open(abspath(join(dirname(__file__), 'README'))).read(),
author='Sylvain Lebresne',
author_email='sylvain@datastax.com',
url='https://github.com/pcmanus/ccm',
packages=['ccmlib', 'ccmlib.cmds'],
scripts=['ccm'],
requires=['pyYaml'],
classifiers=[
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python",
],
)
<commit_msg>Update version after push to pypi<commit_after>#!/usr/bin/python
from distutils.core import setup
from os.path import abspath, join, dirname
setup(
name='ccm',
version='1.0dev',
description='Cassandra Cluster Manager',
long_description=open(abspath(join(dirname(__file__), 'README'))).read(),
author='Sylvain Lebresne',
author_email='sylvain@datastax.com',
url='https://github.com/pcmanus/ccm',
packages=['ccmlib', 'ccmlib.cmds'],
scripts=['ccm'],
requires=['pyYaml'],
classifiers=[
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python",
],
)
|
ed88b56573eba2793b31478507f9f3def597dbc7
|
setup.py
|
setup.py
|
#-*- coding: utf-8 -*-
from setuptools import setup, find_packages
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='zerows',
version='1.0.0',
description='Websockets built on top of tornado & zeromq',
long_description=long_description,
url='https://github.com/sebastianlach/zerows',
author='Sebastian Łach',
author_email='root@slach.eu',
license='MIT',
keywords='zerows zero ws zeromq tornado websocket',
packages=['zerows'],
install_requires=['tornado'],
entry_points={
'console_scripts': [
'zerows=zerows:main',
],
},
classifiers=[
'License :: OSI Approved :: MIT License',
'Intended Audience :: Developers',
'Intended Audience :: Information Technology',
'Topic :: System :: Networking',
'Operating System :: Unix',
],
)
|
#-*- coding: utf-8 -*-
from setuptools import setup, find_packages
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='zerows',
version='1.0.0',
description='Websockets built on top of tornado & zeromq',
long_description=long_description,
url='https://github.com/sebastianlach/zerows',
author='Sebastian Łach',
author_email='root@slach.eu',
license='MIT',
keywords='zerows zero ws zeromq tornado websocket',
packages=['zerows'],
install_requires=['tornado'],
entry_points={
'console_scripts': [
'zerows=zerows:main',
],
},
classifiers=[
'License :: OSI Approved :: MIT License',
'Intended Audience :: Developers',
'Intended Audience :: Information Technology',
'Topic :: System :: Networking',
'Operating System :: Unix',
],
)
|
Use README.md instead of README.rst
|
Use README.md instead of README.rst
|
Python
|
mit
|
sebastianlach/zerows
|
#-*- coding: utf-8 -*-
from setuptools import setup, find_packages
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='zerows',
version='1.0.0',
description='Websockets built on top of tornado & zeromq',
long_description=long_description,
url='https://github.com/sebastianlach/zerows',
author='Sebastian Łach',
author_email='root@slach.eu',
license='MIT',
keywords='zerows zero ws zeromq tornado websocket',
packages=['zerows'],
install_requires=['tornado'],
entry_points={
'console_scripts': [
'zerows=zerows:main',
],
},
classifiers=[
'License :: OSI Approved :: MIT License',
'Intended Audience :: Developers',
'Intended Audience :: Information Technology',
'Topic :: System :: Networking',
'Operating System :: Unix',
],
)
Use README.md instead of README.rst
|
#-*- coding: utf-8 -*-
from setuptools import setup, find_packages
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='zerows',
version='1.0.0',
description='Websockets built on top of tornado & zeromq',
long_description=long_description,
url='https://github.com/sebastianlach/zerows',
author='Sebastian Łach',
author_email='root@slach.eu',
license='MIT',
keywords='zerows zero ws zeromq tornado websocket',
packages=['zerows'],
install_requires=['tornado'],
entry_points={
'console_scripts': [
'zerows=zerows:main',
],
},
classifiers=[
'License :: OSI Approved :: MIT License',
'Intended Audience :: Developers',
'Intended Audience :: Information Technology',
'Topic :: System :: Networking',
'Operating System :: Unix',
],
)
|
<commit_before>#-*- coding: utf-8 -*-
from setuptools import setup, find_packages
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='zerows',
version='1.0.0',
description='Websockets built on top of tornado & zeromq',
long_description=long_description,
url='https://github.com/sebastianlach/zerows',
author='Sebastian Łach',
author_email='root@slach.eu',
license='MIT',
keywords='zerows zero ws zeromq tornado websocket',
packages=['zerows'],
install_requires=['tornado'],
entry_points={
'console_scripts': [
'zerows=zerows:main',
],
},
classifiers=[
'License :: OSI Approved :: MIT License',
'Intended Audience :: Developers',
'Intended Audience :: Information Technology',
'Topic :: System :: Networking',
'Operating System :: Unix',
],
)
<commit_msg>Use README.md instead of README.rst<commit_after>
|
#-*- coding: utf-8 -*-
from setuptools import setup, find_packages
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='zerows',
version='1.0.0',
description='Websockets built on top of tornado & zeromq',
long_description=long_description,
url='https://github.com/sebastianlach/zerows',
author='Sebastian Łach',
author_email='root@slach.eu',
license='MIT',
keywords='zerows zero ws zeromq tornado websocket',
packages=['zerows'],
install_requires=['tornado'],
entry_points={
'console_scripts': [
'zerows=zerows:main',
],
},
classifiers=[
'License :: OSI Approved :: MIT License',
'Intended Audience :: Developers',
'Intended Audience :: Information Technology',
'Topic :: System :: Networking',
'Operating System :: Unix',
],
)
|
#-*- coding: utf-8 -*-
from setuptools import setup, find_packages
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='zerows',
version='1.0.0',
description='Websockets built on top of tornado & zeromq',
long_description=long_description,
url='https://github.com/sebastianlach/zerows',
author='Sebastian Łach',
author_email='root@slach.eu',
license='MIT',
keywords='zerows zero ws zeromq tornado websocket',
packages=['zerows'],
install_requires=['tornado'],
entry_points={
'console_scripts': [
'zerows=zerows:main',
],
},
classifiers=[
'License :: OSI Approved :: MIT License',
'Intended Audience :: Developers',
'Intended Audience :: Information Technology',
'Topic :: System :: Networking',
'Operating System :: Unix',
],
)
Use README.md instead of README.rst#-*- coding: utf-8 -*-
from setuptools import setup, find_packages
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='zerows',
version='1.0.0',
description='Websockets built on top of tornado & zeromq',
long_description=long_description,
url='https://github.com/sebastianlach/zerows',
author='Sebastian Łach',
author_email='root@slach.eu',
license='MIT',
keywords='zerows zero ws zeromq tornado websocket',
packages=['zerows'],
install_requires=['tornado'],
entry_points={
'console_scripts': [
'zerows=zerows:main',
],
},
classifiers=[
'License :: OSI Approved :: MIT License',
'Intended Audience :: Developers',
'Intended Audience :: Information Technology',
'Topic :: System :: Networking',
'Operating System :: Unix',
],
)
|
<commit_before>#-*- coding: utf-8 -*-
from setuptools import setup, find_packages
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='zerows',
version='1.0.0',
description='Websockets built on top of tornado & zeromq',
long_description=long_description,
url='https://github.com/sebastianlach/zerows',
author='Sebastian Łach',
author_email='root@slach.eu',
license='MIT',
keywords='zerows zero ws zeromq tornado websocket',
packages=['zerows'],
install_requires=['tornado'],
entry_points={
'console_scripts': [
'zerows=zerows:main',
],
},
classifiers=[
'License :: OSI Approved :: MIT License',
'Intended Audience :: Developers',
'Intended Audience :: Information Technology',
'Topic :: System :: Networking',
'Operating System :: Unix',
],
)
<commit_msg>Use README.md instead of README.rst<commit_after>#-*- coding: utf-8 -*-
from setuptools import setup, find_packages
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='zerows',
version='1.0.0',
description='Websockets built on top of tornado & zeromq',
long_description=long_description,
url='https://github.com/sebastianlach/zerows',
author='Sebastian Łach',
author_email='root@slach.eu',
license='MIT',
keywords='zerows zero ws zeromq tornado websocket',
packages=['zerows'],
install_requires=['tornado'],
entry_points={
'console_scripts': [
'zerows=zerows:main',
],
},
classifiers=[
'License :: OSI Approved :: MIT License',
'Intended Audience :: Developers',
'Intended Audience :: Information Technology',
'Topic :: System :: Networking',
'Operating System :: Unix',
],
)
|
c8229cc30d447561d4f757c07448080321973ca7
|
setup.py
|
setup.py
|
from setuptools import setup
setup(
name='tangled.sqlalchemy',
version='0.1a3.dev0',
description='Tangled SQLAlchemy integration',
long_description=open('README.rst').read(),
url='http://tangledframework.org/',
download_url='https://github.com/TangledWeb/tangled.sqlalchemy/tags',
author='Wyatt Baldwin',
author_email='self@wyattbaldwin.com',
packages=[
'tangled',
'tangled.sqlalchemy',
],
install_requires=[
'tangled>=0.1a5',
'SQLAlchemy',
],
extras_require={
'dev': [
'tangled[dev]>=0.1a5',
],
},
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
],
)
|
from setuptools import setup
setup(
name='tangled.sqlalchemy',
version='0.1a3.dev0',
description='Tangled SQLAlchemy integration',
long_description=open('README.rst').read(),
url='http://tangledframework.org/',
download_url='https://github.com/TangledWeb/tangled.sqlalchemy/tags',
author='Wyatt Baldwin',
author_email='self@wyattbaldwin.com',
packages=[
'tangled',
'tangled.sqlalchemy',
],
install_requires=[
'tangled>=0.1a7',
'SQLAlchemy',
],
extras_require={
'dev': [
'tangled[dev]>=0.1a7',
],
},
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
],
)
|
Upgrade tangled from 0.1a5 to 0.1a7
|
Upgrade tangled from 0.1a5 to 0.1a7
|
Python
|
mit
|
TangledWeb/tangled.sqlalchemy
|
from setuptools import setup
setup(
name='tangled.sqlalchemy',
version='0.1a3.dev0',
description='Tangled SQLAlchemy integration',
long_description=open('README.rst').read(),
url='http://tangledframework.org/',
download_url='https://github.com/TangledWeb/tangled.sqlalchemy/tags',
author='Wyatt Baldwin',
author_email='self@wyattbaldwin.com',
packages=[
'tangled',
'tangled.sqlalchemy',
],
install_requires=[
'tangled>=0.1a5',
'SQLAlchemy',
],
extras_require={
'dev': [
'tangled[dev]>=0.1a5',
],
},
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
],
)
Upgrade tangled from 0.1a5 to 0.1a7
|
from setuptools import setup
setup(
name='tangled.sqlalchemy',
version='0.1a3.dev0',
description='Tangled SQLAlchemy integration',
long_description=open('README.rst').read(),
url='http://tangledframework.org/',
download_url='https://github.com/TangledWeb/tangled.sqlalchemy/tags',
author='Wyatt Baldwin',
author_email='self@wyattbaldwin.com',
packages=[
'tangled',
'tangled.sqlalchemy',
],
install_requires=[
'tangled>=0.1a7',
'SQLAlchemy',
],
extras_require={
'dev': [
'tangled[dev]>=0.1a7',
],
},
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
],
)
|
<commit_before>from setuptools import setup
setup(
name='tangled.sqlalchemy',
version='0.1a3.dev0',
description='Tangled SQLAlchemy integration',
long_description=open('README.rst').read(),
url='http://tangledframework.org/',
download_url='https://github.com/TangledWeb/tangled.sqlalchemy/tags',
author='Wyatt Baldwin',
author_email='self@wyattbaldwin.com',
packages=[
'tangled',
'tangled.sqlalchemy',
],
install_requires=[
'tangled>=0.1a5',
'SQLAlchemy',
],
extras_require={
'dev': [
'tangled[dev]>=0.1a5',
],
},
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
],
)
<commit_msg>Upgrade tangled from 0.1a5 to 0.1a7<commit_after>
|
from setuptools import setup
setup(
name='tangled.sqlalchemy',
version='0.1a3.dev0',
description='Tangled SQLAlchemy integration',
long_description=open('README.rst').read(),
url='http://tangledframework.org/',
download_url='https://github.com/TangledWeb/tangled.sqlalchemy/tags',
author='Wyatt Baldwin',
author_email='self@wyattbaldwin.com',
packages=[
'tangled',
'tangled.sqlalchemy',
],
install_requires=[
'tangled>=0.1a7',
'SQLAlchemy',
],
extras_require={
'dev': [
'tangled[dev]>=0.1a7',
],
},
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
],
)
|
from setuptools import setup
setup(
name='tangled.sqlalchemy',
version='0.1a3.dev0',
description='Tangled SQLAlchemy integration',
long_description=open('README.rst').read(),
url='http://tangledframework.org/',
download_url='https://github.com/TangledWeb/tangled.sqlalchemy/tags',
author='Wyatt Baldwin',
author_email='self@wyattbaldwin.com',
packages=[
'tangled',
'tangled.sqlalchemy',
],
install_requires=[
'tangled>=0.1a5',
'SQLAlchemy',
],
extras_require={
'dev': [
'tangled[dev]>=0.1a5',
],
},
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
],
)
Upgrade tangled from 0.1a5 to 0.1a7from setuptools import setup
setup(
name='tangled.sqlalchemy',
version='0.1a3.dev0',
description='Tangled SQLAlchemy integration',
long_description=open('README.rst').read(),
url='http://tangledframework.org/',
download_url='https://github.com/TangledWeb/tangled.sqlalchemy/tags',
author='Wyatt Baldwin',
author_email='self@wyattbaldwin.com',
packages=[
'tangled',
'tangled.sqlalchemy',
],
install_requires=[
'tangled>=0.1a7',
'SQLAlchemy',
],
extras_require={
'dev': [
'tangled[dev]>=0.1a7',
],
},
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
],
)
|
<commit_before>from setuptools import setup
setup(
name='tangled.sqlalchemy',
version='0.1a3.dev0',
description='Tangled SQLAlchemy integration',
long_description=open('README.rst').read(),
url='http://tangledframework.org/',
download_url='https://github.com/TangledWeb/tangled.sqlalchemy/tags',
author='Wyatt Baldwin',
author_email='self@wyattbaldwin.com',
packages=[
'tangled',
'tangled.sqlalchemy',
],
install_requires=[
'tangled>=0.1a5',
'SQLAlchemy',
],
extras_require={
'dev': [
'tangled[dev]>=0.1a5',
],
},
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
],
)
<commit_msg>Upgrade tangled from 0.1a5 to 0.1a7<commit_after>from setuptools import setup
setup(
name='tangled.sqlalchemy',
version='0.1a3.dev0',
description='Tangled SQLAlchemy integration',
long_description=open('README.rst').read(),
url='http://tangledframework.org/',
download_url='https://github.com/TangledWeb/tangled.sqlalchemy/tags',
author='Wyatt Baldwin',
author_email='self@wyattbaldwin.com',
packages=[
'tangled',
'tangled.sqlalchemy',
],
install_requires=[
'tangled>=0.1a7',
'SQLAlchemy',
],
extras_require={
'dev': [
'tangled[dev]>=0.1a7',
],
},
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
],
)
|
eeeb3cb68df913430ee8cf774e1b6a1b25407bbd
|
setup.py
|
setup.py
|
from setuptools import setup
import pycommand
setup(
name='pycommand',
version=pycommand.__version__,
description=pycommand.__doc__,
author=pycommand.__author__,
author_email='benjamin@babab.nl',
url='https://github.com/babab/pycommand',
download_url='http://pypi.python.org/pypi/pycommand/',
py_modules=['pycommand'],
license='ISC',
long_description='{}\n{}'.format(open('README.rst').read(),
open('CHANGELOG.rst').read()),
platforms='any',
scripts=['scripts/pycommand'],
data_files=[
('share/pycommand/examples', ['examples/basic-example',
'examples/full-example']),
('share/pycommand', ['LICENSE', 'README.rst'])
],
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: ISC License (ISCL)',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: System :: Shells',
'Topic :: System :: Software Distribution',
'Topic :: Terminals',
'Topic :: Utilities',
'BLOCK FOR UPLOAD',
],
)
|
from setuptools import setup
import pycommand
setup(
name='pycommand',
version=pycommand.__version__,
description=pycommand.__doc__,
author=pycommand.__author__,
author_email='benjamin@babab.nl',
url='https://github.com/babab/pycommand',
download_url='http://pypi.python.org/pypi/pycommand/',
py_modules=['pycommand'],
license='ISC',
long_description='{}\n{}'.format(open('README.rst').read(),
open('CHANGELOG.rst').read()),
platforms='any',
scripts=['scripts/pycommand'],
data_files=[
('share/pycommand/examples', ['examples/basic-example',
'examples/full-example']),
('share/pycommand', ['LICENSE', 'README.rst']),
('share/man/man3', ['pycommand.3']),
],
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: ISC License (ISCL)',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: System :: Shells',
'Topic :: System :: Software Distribution',
'Topic :: Terminals',
'Topic :: Utilities',
'BLOCK FOR UPLOAD',
],
)
|
Install pycommand.3 manpage with pip
|
Install pycommand.3 manpage with pip
|
Python
|
isc
|
babab/pycommand,babab/pycommand
|
from setuptools import setup
import pycommand
setup(
name='pycommand',
version=pycommand.__version__,
description=pycommand.__doc__,
author=pycommand.__author__,
author_email='benjamin@babab.nl',
url='https://github.com/babab/pycommand',
download_url='http://pypi.python.org/pypi/pycommand/',
py_modules=['pycommand'],
license='ISC',
long_description='{}\n{}'.format(open('README.rst').read(),
open('CHANGELOG.rst').read()),
platforms='any',
scripts=['scripts/pycommand'],
data_files=[
('share/pycommand/examples', ['examples/basic-example',
'examples/full-example']),
('share/pycommand', ['LICENSE', 'README.rst'])
],
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: ISC License (ISCL)',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: System :: Shells',
'Topic :: System :: Software Distribution',
'Topic :: Terminals',
'Topic :: Utilities',
'BLOCK FOR UPLOAD',
],
)
Install pycommand.3 manpage with pip
|
from setuptools import setup
import pycommand
setup(
name='pycommand',
version=pycommand.__version__,
description=pycommand.__doc__,
author=pycommand.__author__,
author_email='benjamin@babab.nl',
url='https://github.com/babab/pycommand',
download_url='http://pypi.python.org/pypi/pycommand/',
py_modules=['pycommand'],
license='ISC',
long_description='{}\n{}'.format(open('README.rst').read(),
open('CHANGELOG.rst').read()),
platforms='any',
scripts=['scripts/pycommand'],
data_files=[
('share/pycommand/examples', ['examples/basic-example',
'examples/full-example']),
('share/pycommand', ['LICENSE', 'README.rst']),
('share/man/man3', ['pycommand.3']),
],
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: ISC License (ISCL)',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: System :: Shells',
'Topic :: System :: Software Distribution',
'Topic :: Terminals',
'Topic :: Utilities',
'BLOCK FOR UPLOAD',
],
)
|
<commit_before>from setuptools import setup
import pycommand
setup(
name='pycommand',
version=pycommand.__version__,
description=pycommand.__doc__,
author=pycommand.__author__,
author_email='benjamin@babab.nl',
url='https://github.com/babab/pycommand',
download_url='http://pypi.python.org/pypi/pycommand/',
py_modules=['pycommand'],
license='ISC',
long_description='{}\n{}'.format(open('README.rst').read(),
open('CHANGELOG.rst').read()),
platforms='any',
scripts=['scripts/pycommand'],
data_files=[
('share/pycommand/examples', ['examples/basic-example',
'examples/full-example']),
('share/pycommand', ['LICENSE', 'README.rst'])
],
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: ISC License (ISCL)',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: System :: Shells',
'Topic :: System :: Software Distribution',
'Topic :: Terminals',
'Topic :: Utilities',
'BLOCK FOR UPLOAD',
],
)
<commit_msg>Install pycommand.3 manpage with pip<commit_after>
|
from setuptools import setup
import pycommand
setup(
name='pycommand',
version=pycommand.__version__,
description=pycommand.__doc__,
author=pycommand.__author__,
author_email='benjamin@babab.nl',
url='https://github.com/babab/pycommand',
download_url='http://pypi.python.org/pypi/pycommand/',
py_modules=['pycommand'],
license='ISC',
long_description='{}\n{}'.format(open('README.rst').read(),
open('CHANGELOG.rst').read()),
platforms='any',
scripts=['scripts/pycommand'],
data_files=[
('share/pycommand/examples', ['examples/basic-example',
'examples/full-example']),
('share/pycommand', ['LICENSE', 'README.rst']),
('share/man/man3', ['pycommand.3']),
],
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: ISC License (ISCL)',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: System :: Shells',
'Topic :: System :: Software Distribution',
'Topic :: Terminals',
'Topic :: Utilities',
'BLOCK FOR UPLOAD',
],
)
|
from setuptools import setup
import pycommand
setup(
name='pycommand',
version=pycommand.__version__,
description=pycommand.__doc__,
author=pycommand.__author__,
author_email='benjamin@babab.nl',
url='https://github.com/babab/pycommand',
download_url='http://pypi.python.org/pypi/pycommand/',
py_modules=['pycommand'],
license='ISC',
long_description='{}\n{}'.format(open('README.rst').read(),
open('CHANGELOG.rst').read()),
platforms='any',
scripts=['scripts/pycommand'],
data_files=[
('share/pycommand/examples', ['examples/basic-example',
'examples/full-example']),
('share/pycommand', ['LICENSE', 'README.rst'])
],
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: ISC License (ISCL)',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: System :: Shells',
'Topic :: System :: Software Distribution',
'Topic :: Terminals',
'Topic :: Utilities',
'BLOCK FOR UPLOAD',
],
)
Install pycommand.3 manpage with pipfrom setuptools import setup
import pycommand
setup(
name='pycommand',
version=pycommand.__version__,
description=pycommand.__doc__,
author=pycommand.__author__,
author_email='benjamin@babab.nl',
url='https://github.com/babab/pycommand',
download_url='http://pypi.python.org/pypi/pycommand/',
py_modules=['pycommand'],
license='ISC',
long_description='{}\n{}'.format(open('README.rst').read(),
open('CHANGELOG.rst').read()),
platforms='any',
scripts=['scripts/pycommand'],
data_files=[
('share/pycommand/examples', ['examples/basic-example',
'examples/full-example']),
('share/pycommand', ['LICENSE', 'README.rst']),
('share/man/man3', ['pycommand.3']),
],
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: ISC License (ISCL)',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: System :: Shells',
'Topic :: System :: Software Distribution',
'Topic :: Terminals',
'Topic :: Utilities',
'BLOCK FOR UPLOAD',
],
)
|
<commit_before>from setuptools import setup
import pycommand
setup(
name='pycommand',
version=pycommand.__version__,
description=pycommand.__doc__,
author=pycommand.__author__,
author_email='benjamin@babab.nl',
url='https://github.com/babab/pycommand',
download_url='http://pypi.python.org/pypi/pycommand/',
py_modules=['pycommand'],
license='ISC',
long_description='{}\n{}'.format(open('README.rst').read(),
open('CHANGELOG.rst').read()),
platforms='any',
scripts=['scripts/pycommand'],
data_files=[
('share/pycommand/examples', ['examples/basic-example',
'examples/full-example']),
('share/pycommand', ['LICENSE', 'README.rst'])
],
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: ISC License (ISCL)',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: System :: Shells',
'Topic :: System :: Software Distribution',
'Topic :: Terminals',
'Topic :: Utilities',
'BLOCK FOR UPLOAD',
],
)
<commit_msg>Install pycommand.3 manpage with pip<commit_after>from setuptools import setup
import pycommand
setup(
name='pycommand',
version=pycommand.__version__,
description=pycommand.__doc__,
author=pycommand.__author__,
author_email='benjamin@babab.nl',
url='https://github.com/babab/pycommand',
download_url='http://pypi.python.org/pypi/pycommand/',
py_modules=['pycommand'],
license='ISC',
long_description='{}\n{}'.format(open('README.rst').read(),
open('CHANGELOG.rst').read()),
platforms='any',
scripts=['scripts/pycommand'],
data_files=[
('share/pycommand/examples', ['examples/basic-example',
'examples/full-example']),
('share/pycommand', ['LICENSE', 'README.rst']),
('share/man/man3', ['pycommand.3']),
],
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: ISC License (ISCL)',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: System :: Shells',
'Topic :: System :: Software Distribution',
'Topic :: Terminals',
'Topic :: Utilities',
'BLOCK FOR UPLOAD',
],
)
|
738f06c14a5a219a570720c93c74ac905de3fde1
|
setup.py
|
setup.py
|
# -*- coding: utf-8 -*-
from distutils.core import setup
from setuptools import find_packages
import django_rq_dashboard
setup(
name='django-rq-dashboard',
version=django_rq_dashboard.__version__,
author='Bruno Renié',
author_email='bruno@renie.fr',
packages=find_packages(),
include_package_data=True,
url='https://github.com/brutasse/django-rq-dashboard',
license='BSD licence, see LICENCE file',
description='A dashboard for managing RQ in the Django admin',
long_description=open('README.rst').read(),
install_requires=[
'pytz',
'rq',
'Django>=1.5',
],
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
],
zip_safe=False,
)
|
# -*- coding: utf-8 -*-
from distutils.core import setup
from setuptools import find_packages
import django_rq_dashboard
setup(
name='django-rq-dashboard',
version=django_rq_dashboard.__version__,
author='Bruno Renié',
author_email='bruno@renie.fr',
packages=find_packages(),
include_package_data=True,
url='https://github.com/brutasse/django-rq-dashboard',
license='BSD licence, see LICENCE file',
description='A dashboard for managing RQ in the Django admin',
long_description=open('README.rst').read(),
install_requires=[
'pytz',
'rq',
'Django>=1.5',
],
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
],
zip_safe=False,
)
|
Add trove classifiers for Python 3
|
Add trove classifiers for Python 3
|
Python
|
bsd-3-clause
|
brutasse/django-rq-dashboard,brutasse/django-rq-dashboard,brutasse/django-rq-dashboard
|
# -*- coding: utf-8 -*-
from distutils.core import setup
from setuptools import find_packages
import django_rq_dashboard
setup(
name='django-rq-dashboard',
version=django_rq_dashboard.__version__,
author='Bruno Renié',
author_email='bruno@renie.fr',
packages=find_packages(),
include_package_data=True,
url='https://github.com/brutasse/django-rq-dashboard',
license='BSD licence, see LICENCE file',
description='A dashboard for managing RQ in the Django admin',
long_description=open('README.rst').read(),
install_requires=[
'pytz',
'rq',
'Django>=1.5',
],
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
],
zip_safe=False,
)
Add trove classifiers for Python 3
|
# -*- coding: utf-8 -*-
from distutils.core import setup
from setuptools import find_packages
import django_rq_dashboard
setup(
name='django-rq-dashboard',
version=django_rq_dashboard.__version__,
author='Bruno Renié',
author_email='bruno@renie.fr',
packages=find_packages(),
include_package_data=True,
url='https://github.com/brutasse/django-rq-dashboard',
license='BSD licence, see LICENCE file',
description='A dashboard for managing RQ in the Django admin',
long_description=open('README.rst').read(),
install_requires=[
'pytz',
'rq',
'Django>=1.5',
],
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
],
zip_safe=False,
)
|
<commit_before># -*- coding: utf-8 -*-
from distutils.core import setup
from setuptools import find_packages
import django_rq_dashboard
setup(
name='django-rq-dashboard',
version=django_rq_dashboard.__version__,
author='Bruno Renié',
author_email='bruno@renie.fr',
packages=find_packages(),
include_package_data=True,
url='https://github.com/brutasse/django-rq-dashboard',
license='BSD licence, see LICENCE file',
description='A dashboard for managing RQ in the Django admin',
long_description=open('README.rst').read(),
install_requires=[
'pytz',
'rq',
'Django>=1.5',
],
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
],
zip_safe=False,
)
<commit_msg>Add trove classifiers for Python 3<commit_after>
|
# -*- coding: utf-8 -*-
from distutils.core import setup
from setuptools import find_packages
import django_rq_dashboard
setup(
name='django-rq-dashboard',
version=django_rq_dashboard.__version__,
author='Bruno Renié',
author_email='bruno@renie.fr',
packages=find_packages(),
include_package_data=True,
url='https://github.com/brutasse/django-rq-dashboard',
license='BSD licence, see LICENCE file',
description='A dashboard for managing RQ in the Django admin',
long_description=open('README.rst').read(),
install_requires=[
'pytz',
'rq',
'Django>=1.5',
],
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
],
zip_safe=False,
)
|
# -*- coding: utf-8 -*-
from distutils.core import setup
from setuptools import find_packages
import django_rq_dashboard
setup(
name='django-rq-dashboard',
version=django_rq_dashboard.__version__,
author='Bruno Renié',
author_email='bruno@renie.fr',
packages=find_packages(),
include_package_data=True,
url='https://github.com/brutasse/django-rq-dashboard',
license='BSD licence, see LICENCE file',
description='A dashboard for managing RQ in the Django admin',
long_description=open('README.rst').read(),
install_requires=[
'pytz',
'rq',
'Django>=1.5',
],
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
],
zip_safe=False,
)
Add trove classifiers for Python 3# -*- coding: utf-8 -*-
from distutils.core import setup
from setuptools import find_packages
import django_rq_dashboard
setup(
name='django-rq-dashboard',
version=django_rq_dashboard.__version__,
author='Bruno Renié',
author_email='bruno@renie.fr',
packages=find_packages(),
include_package_data=True,
url='https://github.com/brutasse/django-rq-dashboard',
license='BSD licence, see LICENCE file',
description='A dashboard for managing RQ in the Django admin',
long_description=open('README.rst').read(),
install_requires=[
'pytz',
'rq',
'Django>=1.5',
],
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
],
zip_safe=False,
)
|
<commit_before># -*- coding: utf-8 -*-
from distutils.core import setup
from setuptools import find_packages
import django_rq_dashboard
setup(
name='django-rq-dashboard',
version=django_rq_dashboard.__version__,
author='Bruno Renié',
author_email='bruno@renie.fr',
packages=find_packages(),
include_package_data=True,
url='https://github.com/brutasse/django-rq-dashboard',
license='BSD licence, see LICENCE file',
description='A dashboard for managing RQ in the Django admin',
long_description=open('README.rst').read(),
install_requires=[
'pytz',
'rq',
'Django>=1.5',
],
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
],
zip_safe=False,
)
<commit_msg>Add trove classifiers for Python 3<commit_after># -*- coding: utf-8 -*-
from distutils.core import setup
from setuptools import find_packages
import django_rq_dashboard
setup(
name='django-rq-dashboard',
version=django_rq_dashboard.__version__,
author='Bruno Renié',
author_email='bruno@renie.fr',
packages=find_packages(),
include_package_data=True,
url='https://github.com/brutasse/django-rq-dashboard',
license='BSD licence, see LICENCE file',
description='A dashboard for managing RQ in the Django admin',
long_description=open('README.rst').read(),
install_requires=[
'pytz',
'rq',
'Django>=1.5',
],
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
],
zip_safe=False,
)
|
3a474e05a123240b92da03c668ac4720a6f4e8d4
|
setup.py
|
setup.py
|
#!/usr/bin/env python3
from setuptools import setup
setup(
name='polygon-cli',
version='1.1.10',
packages=['polygon_cli', 'polygon_cli.actions'],
url='https://github.com/kunyavskiy/polygon-cli',
license='MIT',
author='Pavel Kunyavskiy',
author_email='kunyavskiy@gmail.com',
description='Commandline tool for polygon',
install_requires=['colorama', 'requests', 'prettytable', 'pyyaml'],
entry_points={
'console_scripts': [
'polygon-cli=polygon_cli:main'
],
}
)
|
#!/usr/bin/env python3
from setuptools import setup
with open("README.md", "r") as fh:
long_description = fh.read()
setup(
name='polygon-cli',
version='1.1.11',
packages=['polygon_cli', 'polygon_cli.actions'],
long_description=long_description,
long_description_content_type="text/markdown",
url='https://github.com/kunyavskiy/polygon-cli',
license='MIT',
author='Pavel Kunyavskiy',
author_email='kunyavskiy@gmail.com',
description='Commandline tool for polygon',
install_requires=['colorama', 'requests', 'prettytable', 'pyyaml'],
entry_points={
'console_scripts': [
'polygon-cli=polygon_cli:main'
],
}
)
|
Add long_description for pypi, bump version to 1.1.11
|
Add long_description for pypi, bump version to 1.1.11
|
Python
|
mit
|
kunyavskiy/polygon-cli,kunyavskiy/polygon-cli
|
#!/usr/bin/env python3
from setuptools import setup
setup(
name='polygon-cli',
version='1.1.10',
packages=['polygon_cli', 'polygon_cli.actions'],
url='https://github.com/kunyavskiy/polygon-cli',
license='MIT',
author='Pavel Kunyavskiy',
author_email='kunyavskiy@gmail.com',
description='Commandline tool for polygon',
install_requires=['colorama', 'requests', 'prettytable', 'pyyaml'],
entry_points={
'console_scripts': [
'polygon-cli=polygon_cli:main'
],
}
)
Add long_description for pypi, bump version to 1.1.11
|
#!/usr/bin/env python3
from setuptools import setup
with open("README.md", "r") as fh:
long_description = fh.read()
setup(
name='polygon-cli',
version='1.1.11',
packages=['polygon_cli', 'polygon_cli.actions'],
long_description=long_description,
long_description_content_type="text/markdown",
url='https://github.com/kunyavskiy/polygon-cli',
license='MIT',
author='Pavel Kunyavskiy',
author_email='kunyavskiy@gmail.com',
description='Commandline tool for polygon',
install_requires=['colorama', 'requests', 'prettytable', 'pyyaml'],
entry_points={
'console_scripts': [
'polygon-cli=polygon_cli:main'
],
}
)
|
<commit_before>#!/usr/bin/env python3
from setuptools import setup
setup(
name='polygon-cli',
version='1.1.10',
packages=['polygon_cli', 'polygon_cli.actions'],
url='https://github.com/kunyavskiy/polygon-cli',
license='MIT',
author='Pavel Kunyavskiy',
author_email='kunyavskiy@gmail.com',
description='Commandline tool for polygon',
install_requires=['colorama', 'requests', 'prettytable', 'pyyaml'],
entry_points={
'console_scripts': [
'polygon-cli=polygon_cli:main'
],
}
)
<commit_msg>Add long_description for pypi, bump version to 1.1.11<commit_after>
|
#!/usr/bin/env python3
from setuptools import setup
with open("README.md", "r") as fh:
long_description = fh.read()
setup(
name='polygon-cli',
version='1.1.11',
packages=['polygon_cli', 'polygon_cli.actions'],
long_description=long_description,
long_description_content_type="text/markdown",
url='https://github.com/kunyavskiy/polygon-cli',
license='MIT',
author='Pavel Kunyavskiy',
author_email='kunyavskiy@gmail.com',
description='Commandline tool for polygon',
install_requires=['colorama', 'requests', 'prettytable', 'pyyaml'],
entry_points={
'console_scripts': [
'polygon-cli=polygon_cli:main'
],
}
)
|
#!/usr/bin/env python3
from setuptools import setup
setup(
name='polygon-cli',
version='1.1.10',
packages=['polygon_cli', 'polygon_cli.actions'],
url='https://github.com/kunyavskiy/polygon-cli',
license='MIT',
author='Pavel Kunyavskiy',
author_email='kunyavskiy@gmail.com',
description='Commandline tool for polygon',
install_requires=['colorama', 'requests', 'prettytable', 'pyyaml'],
entry_points={
'console_scripts': [
'polygon-cli=polygon_cli:main'
],
}
)
Add long_description for pypi, bump version to 1.1.11#!/usr/bin/env python3
from setuptools import setup
with open("README.md", "r") as fh:
long_description = fh.read()
setup(
name='polygon-cli',
version='1.1.11',
packages=['polygon_cli', 'polygon_cli.actions'],
long_description=long_description,
long_description_content_type="text/markdown",
url='https://github.com/kunyavskiy/polygon-cli',
license='MIT',
author='Pavel Kunyavskiy',
author_email='kunyavskiy@gmail.com',
description='Commandline tool for polygon',
install_requires=['colorama', 'requests', 'prettytable', 'pyyaml'],
entry_points={
'console_scripts': [
'polygon-cli=polygon_cli:main'
],
}
)
|
<commit_before>#!/usr/bin/env python3
from setuptools import setup
setup(
name='polygon-cli',
version='1.1.10',
packages=['polygon_cli', 'polygon_cli.actions'],
url='https://github.com/kunyavskiy/polygon-cli',
license='MIT',
author='Pavel Kunyavskiy',
author_email='kunyavskiy@gmail.com',
description='Commandline tool for polygon',
install_requires=['colorama', 'requests', 'prettytable', 'pyyaml'],
entry_points={
'console_scripts': [
'polygon-cli=polygon_cli:main'
],
}
)
<commit_msg>Add long_description for pypi, bump version to 1.1.11<commit_after>#!/usr/bin/env python3
from setuptools import setup
with open("README.md", "r") as fh:
long_description = fh.read()
setup(
name='polygon-cli',
version='1.1.11',
packages=['polygon_cli', 'polygon_cli.actions'],
long_description=long_description,
long_description_content_type="text/markdown",
url='https://github.com/kunyavskiy/polygon-cli',
license='MIT',
author='Pavel Kunyavskiy',
author_email='kunyavskiy@gmail.com',
description='Commandline tool for polygon',
install_requires=['colorama', 'requests', 'prettytable', 'pyyaml'],
entry_points={
'console_scripts': [
'polygon-cli=polygon_cli:main'
],
}
)
|
8c4af64413a34f9cd47053a4994f2e4773a4f6ac
|
setup.py
|
setup.py
|
from setuptools import setup
setup(
name='kubespawner',
version='0.1',
description='JupyterHub Spawner targetting Kubernetes',
url='http://github.com/yuvipanda/jupyterhub-kubernetes-spawner',
author='Yuvi Panda',
author_email='yuvipanda@riseup.net',
license='BSD',
packages=['kubespawner'],
)
|
from setuptools import setup
setup(
name='kubespawner',
version='0.1',
install_requires=[
'requests-futures>=0.9.7',
'jupyterhub>=0.4.0',
],
description='JupyterHub Spawner targetting Kubernetes',
url='http://github.com/yuvipanda/jupyterhub-kubernetes-spawner',
author='Yuvi Panda',
author_email='yuvipanda@riseup.net',
license='BSD',
packages=['kubespawner'],
)
|
Add explit dependencies to packaging
|
Add explit dependencies to packaging
|
Python
|
bsd-3-clause
|
yuvipanda/jupyterhub-kubernetes-spawner,jbmarcille/kubespawner,ktong/kubespawner,jupyterhub/kubespawner
|
from setuptools import setup
setup(
name='kubespawner',
version='0.1',
description='JupyterHub Spawner targetting Kubernetes',
url='http://github.com/yuvipanda/jupyterhub-kubernetes-spawner',
author='Yuvi Panda',
author_email='yuvipanda@riseup.net',
license='BSD',
packages=['kubespawner'],
)
Add explit dependencies to packaging
|
from setuptools import setup
setup(
name='kubespawner',
version='0.1',
install_requires=[
'requests-futures>=0.9.7',
'jupyterhub>=0.4.0',
],
description='JupyterHub Spawner targetting Kubernetes',
url='http://github.com/yuvipanda/jupyterhub-kubernetes-spawner',
author='Yuvi Panda',
author_email='yuvipanda@riseup.net',
license='BSD',
packages=['kubespawner'],
)
|
<commit_before>from setuptools import setup
setup(
name='kubespawner',
version='0.1',
description='JupyterHub Spawner targetting Kubernetes',
url='http://github.com/yuvipanda/jupyterhub-kubernetes-spawner',
author='Yuvi Panda',
author_email='yuvipanda@riseup.net',
license='BSD',
packages=['kubespawner'],
)
<commit_msg>Add explit dependencies to packaging<commit_after>
|
from setuptools import setup
setup(
name='kubespawner',
version='0.1',
install_requires=[
'requests-futures>=0.9.7',
'jupyterhub>=0.4.0',
],
description='JupyterHub Spawner targetting Kubernetes',
url='http://github.com/yuvipanda/jupyterhub-kubernetes-spawner',
author='Yuvi Panda',
author_email='yuvipanda@riseup.net',
license='BSD',
packages=['kubespawner'],
)
|
from setuptools import setup
setup(
name='kubespawner',
version='0.1',
description='JupyterHub Spawner targetting Kubernetes',
url='http://github.com/yuvipanda/jupyterhub-kubernetes-spawner',
author='Yuvi Panda',
author_email='yuvipanda@riseup.net',
license='BSD',
packages=['kubespawner'],
)
Add explit dependencies to packagingfrom setuptools import setup
setup(
name='kubespawner',
version='0.1',
install_requires=[
'requests-futures>=0.9.7',
'jupyterhub>=0.4.0',
],
description='JupyterHub Spawner targetting Kubernetes',
url='http://github.com/yuvipanda/jupyterhub-kubernetes-spawner',
author='Yuvi Panda',
author_email='yuvipanda@riseup.net',
license='BSD',
packages=['kubespawner'],
)
|
<commit_before>from setuptools import setup
setup(
name='kubespawner',
version='0.1',
description='JupyterHub Spawner targetting Kubernetes',
url='http://github.com/yuvipanda/jupyterhub-kubernetes-spawner',
author='Yuvi Panda',
author_email='yuvipanda@riseup.net',
license='BSD',
packages=['kubespawner'],
)
<commit_msg>Add explit dependencies to packaging<commit_after>from setuptools import setup
setup(
name='kubespawner',
version='0.1',
install_requires=[
'requests-futures>=0.9.7',
'jupyterhub>=0.4.0',
],
description='JupyterHub Spawner targetting Kubernetes',
url='http://github.com/yuvipanda/jupyterhub-kubernetes-spawner',
author='Yuvi Panda',
author_email='yuvipanda@riseup.net',
license='BSD',
packages=['kubespawner'],
)
|
df264c490f8600c5047db328c9388c1d07d4cbd5
|
setup.py
|
setup.py
|
import distutils.core
# Uploading to PyPI
# =================
# $ python setup.py register -r pypi
# $ python setup.py sdist upload -r pypi
version = '0.0'
distutils.core.setup(
name='vecrec',
version=version,
author='Kale Kundert and Alex Mitchell',
packages=['vecrec'],
url='https://github.com/kxgames/vecrec',
download_url='https://github.com/kxgames/vecrec/tarball/'+version,
license='LICENSE.txt',
description="A 2D vector and rectangle library.",
long_description=open('README.rst').read(),
keywords=['2D', 'vector', 'rectangle', 'library'])
|
import distutils.core
# Uploading to PyPI
# =================
# $ python setup.py register -r pypi
# $ python setup.py sdist upload -r pypi
version = '0.0'
distutils.core.setup(
name='vecrec',
version=version,
author='Kale Kundert and Alex Mitchell',
url='https://github.com/kxgames/vecrec',
download_url='https://github.com/kxgames/vecrec/tarball/'+version,
license='LICENSE.txt',
description="A 2D vector and rectangle library.",
long_description=open('README.rst').read(),
keywords=['2D', 'vector', 'rectangle', 'library'],
packages=['vecrec'],
requires=['finalexam', 'coverage'],
)
|
Add finalexam and coverage as dependencies.
|
Add finalexam and coverage as dependencies.
|
Python
|
mit
|
kxgames/vecrec,kxgames/vecrec
|
import distutils.core
# Uploading to PyPI
# =================
# $ python setup.py register -r pypi
# $ python setup.py sdist upload -r pypi
version = '0.0'
distutils.core.setup(
name='vecrec',
version=version,
author='Kale Kundert and Alex Mitchell',
packages=['vecrec'],
url='https://github.com/kxgames/vecrec',
download_url='https://github.com/kxgames/vecrec/tarball/'+version,
license='LICENSE.txt',
description="A 2D vector and rectangle library.",
long_description=open('README.rst').read(),
keywords=['2D', 'vector', 'rectangle', 'library'])
Add finalexam and coverage as dependencies.
|
import distutils.core
# Uploading to PyPI
# =================
# $ python setup.py register -r pypi
# $ python setup.py sdist upload -r pypi
version = '0.0'
distutils.core.setup(
name='vecrec',
version=version,
author='Kale Kundert and Alex Mitchell',
url='https://github.com/kxgames/vecrec',
download_url='https://github.com/kxgames/vecrec/tarball/'+version,
license='LICENSE.txt',
description="A 2D vector and rectangle library.",
long_description=open('README.rst').read(),
keywords=['2D', 'vector', 'rectangle', 'library'],
packages=['vecrec'],
requires=['finalexam', 'coverage'],
)
|
<commit_before>import distutils.core
# Uploading to PyPI
# =================
# $ python setup.py register -r pypi
# $ python setup.py sdist upload -r pypi
version = '0.0'
distutils.core.setup(
name='vecrec',
version=version,
author='Kale Kundert and Alex Mitchell',
packages=['vecrec'],
url='https://github.com/kxgames/vecrec',
download_url='https://github.com/kxgames/vecrec/tarball/'+version,
license='LICENSE.txt',
description="A 2D vector and rectangle library.",
long_description=open('README.rst').read(),
keywords=['2D', 'vector', 'rectangle', 'library'])
<commit_msg>Add finalexam and coverage as dependencies.<commit_after>
|
import distutils.core
# Uploading to PyPI
# =================
# $ python setup.py register -r pypi
# $ python setup.py sdist upload -r pypi
version = '0.0'
distutils.core.setup(
name='vecrec',
version=version,
author='Kale Kundert and Alex Mitchell',
url='https://github.com/kxgames/vecrec',
download_url='https://github.com/kxgames/vecrec/tarball/'+version,
license='LICENSE.txt',
description="A 2D vector and rectangle library.",
long_description=open('README.rst').read(),
keywords=['2D', 'vector', 'rectangle', 'library'],
packages=['vecrec'],
requires=['finalexam', 'coverage'],
)
|
import distutils.core
# Uploading to PyPI
# =================
# $ python setup.py register -r pypi
# $ python setup.py sdist upload -r pypi
version = '0.0'
distutils.core.setup(
name='vecrec',
version=version,
author='Kale Kundert and Alex Mitchell',
packages=['vecrec'],
url='https://github.com/kxgames/vecrec',
download_url='https://github.com/kxgames/vecrec/tarball/'+version,
license='LICENSE.txt',
description="A 2D vector and rectangle library.",
long_description=open('README.rst').read(),
keywords=['2D', 'vector', 'rectangle', 'library'])
Add finalexam and coverage as dependencies.import distutils.core
# Uploading to PyPI
# =================
# $ python setup.py register -r pypi
# $ python setup.py sdist upload -r pypi
version = '0.0'
distutils.core.setup(
name='vecrec',
version=version,
author='Kale Kundert and Alex Mitchell',
url='https://github.com/kxgames/vecrec',
download_url='https://github.com/kxgames/vecrec/tarball/'+version,
license='LICENSE.txt',
description="A 2D vector and rectangle library.",
long_description=open('README.rst').read(),
keywords=['2D', 'vector', 'rectangle', 'library'],
packages=['vecrec'],
requires=['finalexam', 'coverage'],
)
|
<commit_before>import distutils.core
# Uploading to PyPI
# =================
# $ python setup.py register -r pypi
# $ python setup.py sdist upload -r pypi
version = '0.0'
distutils.core.setup(
name='vecrec',
version=version,
author='Kale Kundert and Alex Mitchell',
packages=['vecrec'],
url='https://github.com/kxgames/vecrec',
download_url='https://github.com/kxgames/vecrec/tarball/'+version,
license='LICENSE.txt',
description="A 2D vector and rectangle library.",
long_description=open('README.rst').read(),
keywords=['2D', 'vector', 'rectangle', 'library'])
<commit_msg>Add finalexam and coverage as dependencies.<commit_after>import distutils.core
# Uploading to PyPI
# =================
# $ python setup.py register -r pypi
# $ python setup.py sdist upload -r pypi
version = '0.0'
distutils.core.setup(
name='vecrec',
version=version,
author='Kale Kundert and Alex Mitchell',
url='https://github.com/kxgames/vecrec',
download_url='https://github.com/kxgames/vecrec/tarball/'+version,
license='LICENSE.txt',
description="A 2D vector and rectangle library.",
long_description=open('README.rst').read(),
keywords=['2D', 'vector', 'rectangle', 'library'],
packages=['vecrec'],
requires=['finalexam', 'coverage'],
)
|
cb7226bbf5080e8a742f5262242a26e0a73ffd15
|
setup.py
|
setup.py
|
from distutils.core import setup
setup(
name='hy-py',
version='0.0.1',
packages=['hy'],
license='MIT',
url='https://github.com/kalasjocke/hy',
long_description=open('README.md').read(),
)
|
from distutils.core import setup
setup(
name='hy-py',
version='0.0.1',
packages=['hy'],
license='MIT',
author='Joakim Ekberg',
author_email='jocke.ekberg@gmail.com',
url='https://github.com/kalasjocke/hy',
long_description=open('README.md').read(),
)
|
Add author to PyPI package
|
Add author to PyPI package
|
Python
|
mit
|
kalasjocke/hyp
|
from distutils.core import setup
setup(
name='hy-py',
version='0.0.1',
packages=['hy'],
license='MIT',
url='https://github.com/kalasjocke/hy',
long_description=open('README.md').read(),
)
Add author to PyPI package
|
from distutils.core import setup
setup(
name='hy-py',
version='0.0.1',
packages=['hy'],
license='MIT',
author='Joakim Ekberg',
author_email='jocke.ekberg@gmail.com',
url='https://github.com/kalasjocke/hy',
long_description=open('README.md').read(),
)
|
<commit_before>from distutils.core import setup
setup(
name='hy-py',
version='0.0.1',
packages=['hy'],
license='MIT',
url='https://github.com/kalasjocke/hy',
long_description=open('README.md').read(),
)
<commit_msg>Add author to PyPI package<commit_after>
|
from distutils.core import setup
setup(
name='hy-py',
version='0.0.1',
packages=['hy'],
license='MIT',
author='Joakim Ekberg',
author_email='jocke.ekberg@gmail.com',
url='https://github.com/kalasjocke/hy',
long_description=open('README.md').read(),
)
|
from distutils.core import setup
setup(
name='hy-py',
version='0.0.1',
packages=['hy'],
license='MIT',
url='https://github.com/kalasjocke/hy',
long_description=open('README.md').read(),
)
Add author to PyPI packagefrom distutils.core import setup
setup(
name='hy-py',
version='0.0.1',
packages=['hy'],
license='MIT',
author='Joakim Ekberg',
author_email='jocke.ekberg@gmail.com',
url='https://github.com/kalasjocke/hy',
long_description=open('README.md').read(),
)
|
<commit_before>from distutils.core import setup
setup(
name='hy-py',
version='0.0.1',
packages=['hy'],
license='MIT',
url='https://github.com/kalasjocke/hy',
long_description=open('README.md').read(),
)
<commit_msg>Add author to PyPI package<commit_after>from distutils.core import setup
setup(
name='hy-py',
version='0.0.1',
packages=['hy'],
license='MIT',
author='Joakim Ekberg',
author_email='jocke.ekberg@gmail.com',
url='https://github.com/kalasjocke/hy',
long_description=open('README.md').read(),
)
|
98fe5bbe14ef47006ca45b82b681abc5b54be5cd
|
setup.py
|
setup.py
|
from setuptools import setup, find_packages
setup(
name='django-flatblocks',
version='0.9',
description='django-flatblocks acts like django.contrib.flatpages but '
'for parts of a page; like an editable help box you want '
'show alongside the main content.',
long_description=open('README.rst').read(),
keywords='django apps',
license='New BSD License',
author='Horst Gutmann',
author_email='zerok@zerokspot.com',
url='http://github.com/zerok/django-flatblocks/',
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Plugins',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
],
packages=find_packages('flatblocks'),
package_data={
'flatblocks': [
'templates/flatblocks/*.html',
'locale/*/*/*.mo',
'locale/*/*/*.po',
]
},
zip_safe=False,
requires = [
'Django (>=1.4)',
],
**kws
)
|
from setuptools import setup, find_packages
setup(
name='django-flatblocks',
version='0.9',
description='django-flatblocks acts like django.contrib.flatpages but '
'for parts of a page; like an editable help box you want '
'show alongside the main content.',
long_description=open('README.rst').read(),
keywords='django apps',
license='New BSD License',
author='Horst Gutmann',
author_email='zerok@zerokspot.com',
url='http://github.com/zerok/django-flatblocks/',
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Plugins',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
],
packages=find_packages('flatblocks'),
package_data={
'flatblocks': [
'templates/flatblocks/*.html',
'locale/*/*/*.mo',
'locale/*/*/*.po',
]
},
zip_safe=False,
requires = [
'Django (>=1.4)',
],
)
|
Remove kws: does not exist
|
Remove kws: does not exist
|
Python
|
bsd-3-clause
|
funkybob/django-flatblocks,funkybob/django-flatblocks
|
from setuptools import setup, find_packages
setup(
name='django-flatblocks',
version='0.9',
description='django-flatblocks acts like django.contrib.flatpages but '
'for parts of a page; like an editable help box you want '
'show alongside the main content.',
long_description=open('README.rst').read(),
keywords='django apps',
license='New BSD License',
author='Horst Gutmann',
author_email='zerok@zerokspot.com',
url='http://github.com/zerok/django-flatblocks/',
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Plugins',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
],
packages=find_packages('flatblocks'),
package_data={
'flatblocks': [
'templates/flatblocks/*.html',
'locale/*/*/*.mo',
'locale/*/*/*.po',
]
},
zip_safe=False,
requires = [
'Django (>=1.4)',
],
**kws
)
Remove kws: does not exist
|
from setuptools import setup, find_packages
setup(
name='django-flatblocks',
version='0.9',
description='django-flatblocks acts like django.contrib.flatpages but '
'for parts of a page; like an editable help box you want '
'show alongside the main content.',
long_description=open('README.rst').read(),
keywords='django apps',
license='New BSD License',
author='Horst Gutmann',
author_email='zerok@zerokspot.com',
url='http://github.com/zerok/django-flatblocks/',
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Plugins',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
],
packages=find_packages('flatblocks'),
package_data={
'flatblocks': [
'templates/flatblocks/*.html',
'locale/*/*/*.mo',
'locale/*/*/*.po',
]
},
zip_safe=False,
requires = [
'Django (>=1.4)',
],
)
|
<commit_before>from setuptools import setup, find_packages
setup(
name='django-flatblocks',
version='0.9',
description='django-flatblocks acts like django.contrib.flatpages but '
'for parts of a page; like an editable help box you want '
'show alongside the main content.',
long_description=open('README.rst').read(),
keywords='django apps',
license='New BSD License',
author='Horst Gutmann',
author_email='zerok@zerokspot.com',
url='http://github.com/zerok/django-flatblocks/',
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Plugins',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
],
packages=find_packages('flatblocks'),
package_data={
'flatblocks': [
'templates/flatblocks/*.html',
'locale/*/*/*.mo',
'locale/*/*/*.po',
]
},
zip_safe=False,
requires = [
'Django (>=1.4)',
],
**kws
)
<commit_msg>Remove kws: does not exist<commit_after>
|
from setuptools import setup, find_packages
setup(
name='django-flatblocks',
version='0.9',
description='django-flatblocks acts like django.contrib.flatpages but '
'for parts of a page; like an editable help box you want '
'show alongside the main content.',
long_description=open('README.rst').read(),
keywords='django apps',
license='New BSD License',
author='Horst Gutmann',
author_email='zerok@zerokspot.com',
url='http://github.com/zerok/django-flatblocks/',
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Plugins',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
],
packages=find_packages('flatblocks'),
package_data={
'flatblocks': [
'templates/flatblocks/*.html',
'locale/*/*/*.mo',
'locale/*/*/*.po',
]
},
zip_safe=False,
requires = [
'Django (>=1.4)',
],
)
|
from setuptools import setup, find_packages
setup(
name='django-flatblocks',
version='0.9',
description='django-flatblocks acts like django.contrib.flatpages but '
'for parts of a page; like an editable help box you want '
'show alongside the main content.',
long_description=open('README.rst').read(),
keywords='django apps',
license='New BSD License',
author='Horst Gutmann',
author_email='zerok@zerokspot.com',
url='http://github.com/zerok/django-flatblocks/',
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Plugins',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
],
packages=find_packages('flatblocks'),
package_data={
'flatblocks': [
'templates/flatblocks/*.html',
'locale/*/*/*.mo',
'locale/*/*/*.po',
]
},
zip_safe=False,
requires = [
'Django (>=1.4)',
],
**kws
)
Remove kws: does not existfrom setuptools import setup, find_packages
setup(
name='django-flatblocks',
version='0.9',
description='django-flatblocks acts like django.contrib.flatpages but '
'for parts of a page; like an editable help box you want '
'show alongside the main content.',
long_description=open('README.rst').read(),
keywords='django apps',
license='New BSD License',
author='Horst Gutmann',
author_email='zerok@zerokspot.com',
url='http://github.com/zerok/django-flatblocks/',
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Plugins',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
],
packages=find_packages('flatblocks'),
package_data={
'flatblocks': [
'templates/flatblocks/*.html',
'locale/*/*/*.mo',
'locale/*/*/*.po',
]
},
zip_safe=False,
requires = [
'Django (>=1.4)',
],
)
|
<commit_before>from setuptools import setup, find_packages
setup(
name='django-flatblocks',
version='0.9',
description='django-flatblocks acts like django.contrib.flatpages but '
'for parts of a page; like an editable help box you want '
'show alongside the main content.',
long_description=open('README.rst').read(),
keywords='django apps',
license='New BSD License',
author='Horst Gutmann',
author_email='zerok@zerokspot.com',
url='http://github.com/zerok/django-flatblocks/',
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Plugins',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
],
packages=find_packages('flatblocks'),
package_data={
'flatblocks': [
'templates/flatblocks/*.html',
'locale/*/*/*.mo',
'locale/*/*/*.po',
]
},
zip_safe=False,
requires = [
'Django (>=1.4)',
],
**kws
)
<commit_msg>Remove kws: does not exist<commit_after>from setuptools import setup, find_packages
setup(
name='django-flatblocks',
version='0.9',
description='django-flatblocks acts like django.contrib.flatpages but '
'for parts of a page; like an editable help box you want '
'show alongside the main content.',
long_description=open('README.rst').read(),
keywords='django apps',
license='New BSD License',
author='Horst Gutmann',
author_email='zerok@zerokspot.com',
url='http://github.com/zerok/django-flatblocks/',
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Plugins',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
],
packages=find_packages('flatblocks'),
package_data={
'flatblocks': [
'templates/flatblocks/*.html',
'locale/*/*/*.mo',
'locale/*/*/*.po',
]
},
zip_safe=False,
requires = [
'Django (>=1.4)',
],
)
|
7cf346794075bab025926549ee4ebe35bf188038
|
Timetable.py
|
Timetable.py
|
import json
import urllib.request
import ast
# get the bus lines from the website and parse it to a list
def get_list():
url = 'http://widgets.vvo-online.de/abfahrtsmonitor/Abfahrten.do?ort=Dresden&hst=CasparDavidFriedrichStra%C3%9Fe'
response = urllib.request.urlopen(url)
data_raw = response.read()
data_utf = data_raw.decode("utf-8")
data_list = ast.literal_eval(data_utf)
return data_list
# just store the first time a bus comes
def get_first_buses(data_list):
next_buses = []
for ride in data_list:
if ride[0] not in [next_ride[0] for next_ride in next_buses]:
next_buses.append(ride)
return next_buses
# return the first times, a bus line comes
def get_buses():
return get_first_buses(get_list())
|
# -*- coding: utf-8 -*-
import json
from urllib2 import Request as request
import urllib2
import ast
# get the bus lines from the website and parse it to a list
def get_list(start):
# url = 'http://widgets.vvo-online.de/abfahrtsmonitor/Abfahrten.do?ort=Dresden&hst=CasparDavidFriedrichStra%C3%9Fe'
url = 'http://widgets.vvo-online.de/abfahrtsmonitor/Abfahrten.do?ort=Dresden&hst=' + start
req = request(url)
response = urllib2.urlopen(req)
data_raw = response.read()
data_utf = data_raw.decode("utf-8")
data_list = ast.literal_eval(data_utf)
return data_list
# just store the first time a bus comes
def get_first_buses(data_list):
next_buses = []
for ride in data_list:
if ride[0] not in [next_ride[0] for next_ride in next_buses]:
next_buses.append(ride)
return next_buses
# return the first times, a bus line comes
def get_buses(start):
return get_first_buses(get_list(start))
|
Change Python3 to Python and so use urllib2
|
Change Python3 to Python and so use urllib2
|
Python
|
apache-2.0
|
NWuensche/TimetableBus
|
import json
import urllib.request
import ast
# get the bus lines from the website and parse it to a list
def get_list():
url = 'http://widgets.vvo-online.de/abfahrtsmonitor/Abfahrten.do?ort=Dresden&hst=CasparDavidFriedrichStra%C3%9Fe'
response = urllib.request.urlopen(url)
data_raw = response.read()
data_utf = data_raw.decode("utf-8")
data_list = ast.literal_eval(data_utf)
return data_list
# just store the first time a bus comes
def get_first_buses(data_list):
next_buses = []
for ride in data_list:
if ride[0] not in [next_ride[0] for next_ride in next_buses]:
next_buses.append(ride)
return next_buses
# return the first times, a bus line comes
def get_buses():
return get_first_buses(get_list())
Change Python3 to Python and so use urllib2
|
# -*- coding: utf-8 -*-
import json
from urllib2 import Request as request
import urllib2
import ast
# get the bus lines from the website and parse it to a list
def get_list(start):
# url = 'http://widgets.vvo-online.de/abfahrtsmonitor/Abfahrten.do?ort=Dresden&hst=CasparDavidFriedrichStra%C3%9Fe'
url = 'http://widgets.vvo-online.de/abfahrtsmonitor/Abfahrten.do?ort=Dresden&hst=' + start
req = request(url)
response = urllib2.urlopen(req)
data_raw = response.read()
data_utf = data_raw.decode("utf-8")
data_list = ast.literal_eval(data_utf)
return data_list
# just store the first time a bus comes
def get_first_buses(data_list):
next_buses = []
for ride in data_list:
if ride[0] not in [next_ride[0] for next_ride in next_buses]:
next_buses.append(ride)
return next_buses
# return the first times, a bus line comes
def get_buses(start):
return get_first_buses(get_list(start))
|
<commit_before>import json
import urllib.request
import ast
# get the bus lines from the website and parse it to a list
def get_list():
url = 'http://widgets.vvo-online.de/abfahrtsmonitor/Abfahrten.do?ort=Dresden&hst=CasparDavidFriedrichStra%C3%9Fe'
response = urllib.request.urlopen(url)
data_raw = response.read()
data_utf = data_raw.decode("utf-8")
data_list = ast.literal_eval(data_utf)
return data_list
# just store the first time a bus comes
def get_first_buses(data_list):
next_buses = []
for ride in data_list:
if ride[0] not in [next_ride[0] for next_ride in next_buses]:
next_buses.append(ride)
return next_buses
# return the first times, a bus line comes
def get_buses():
return get_first_buses(get_list())
<commit_msg>Change Python3 to Python and so use urllib2<commit_after>
|
# -*- coding: utf-8 -*-
import json
from urllib2 import Request as request
import urllib2
import ast
# get the bus lines from the website and parse it to a list
def get_list(start):
# url = 'http://widgets.vvo-online.de/abfahrtsmonitor/Abfahrten.do?ort=Dresden&hst=CasparDavidFriedrichStra%C3%9Fe'
url = 'http://widgets.vvo-online.de/abfahrtsmonitor/Abfahrten.do?ort=Dresden&hst=' + start
req = request(url)
response = urllib2.urlopen(req)
data_raw = response.read()
data_utf = data_raw.decode("utf-8")
data_list = ast.literal_eval(data_utf)
return data_list
# just store the first time a bus comes
def get_first_buses(data_list):
next_buses = []
for ride in data_list:
if ride[0] not in [next_ride[0] for next_ride in next_buses]:
next_buses.append(ride)
return next_buses
# return the first times, a bus line comes
def get_buses(start):
return get_first_buses(get_list(start))
|
import json
import urllib.request
import ast
# get the bus lines from the website and parse it to a list
def get_list():
url = 'http://widgets.vvo-online.de/abfahrtsmonitor/Abfahrten.do?ort=Dresden&hst=CasparDavidFriedrichStra%C3%9Fe'
response = urllib.request.urlopen(url)
data_raw = response.read()
data_utf = data_raw.decode("utf-8")
data_list = ast.literal_eval(data_utf)
return data_list
# just store the first time a bus comes
def get_first_buses(data_list):
next_buses = []
for ride in data_list:
if ride[0] not in [next_ride[0] for next_ride in next_buses]:
next_buses.append(ride)
return next_buses
# return the first times, a bus line comes
def get_buses():
return get_first_buses(get_list())
Change Python3 to Python and so use urllib2# -*- coding: utf-8 -*-
import json
from urllib2 import Request as request
import urllib2
import ast
# get the bus lines from the website and parse it to a list
def get_list(start):
# url = 'http://widgets.vvo-online.de/abfahrtsmonitor/Abfahrten.do?ort=Dresden&hst=CasparDavidFriedrichStra%C3%9Fe'
url = 'http://widgets.vvo-online.de/abfahrtsmonitor/Abfahrten.do?ort=Dresden&hst=' + start
req = request(url)
response = urllib2.urlopen(req)
data_raw = response.read()
data_utf = data_raw.decode("utf-8")
data_list = ast.literal_eval(data_utf)
return data_list
# just store the first time a bus comes
def get_first_buses(data_list):
next_buses = []
for ride in data_list:
if ride[0] not in [next_ride[0] for next_ride in next_buses]:
next_buses.append(ride)
return next_buses
# return the first times, a bus line comes
def get_buses(start):
return get_first_buses(get_list(start))
|
<commit_before>import json
import urllib.request
import ast
# get the bus lines from the website and parse it to a list
def get_list():
url = 'http://widgets.vvo-online.de/abfahrtsmonitor/Abfahrten.do?ort=Dresden&hst=CasparDavidFriedrichStra%C3%9Fe'
response = urllib.request.urlopen(url)
data_raw = response.read()
data_utf = data_raw.decode("utf-8")
data_list = ast.literal_eval(data_utf)
return data_list
# just store the first time a bus comes
def get_first_buses(data_list):
next_buses = []
for ride in data_list:
if ride[0] not in [next_ride[0] for next_ride in next_buses]:
next_buses.append(ride)
return next_buses
# return the first times, a bus line comes
def get_buses():
return get_first_buses(get_list())
<commit_msg>Change Python3 to Python and so use urllib2<commit_after># -*- coding: utf-8 -*-
import json
from urllib2 import Request as request
import urllib2
import ast
# get the bus lines from the website and parse it to a list
def get_list(start):
# url = 'http://widgets.vvo-online.de/abfahrtsmonitor/Abfahrten.do?ort=Dresden&hst=CasparDavidFriedrichStra%C3%9Fe'
url = 'http://widgets.vvo-online.de/abfahrtsmonitor/Abfahrten.do?ort=Dresden&hst=' + start
req = request(url)
response = urllib2.urlopen(req)
data_raw = response.read()
data_utf = data_raw.decode("utf-8")
data_list = ast.literal_eval(data_utf)
return data_list
# just store the first time a bus comes
def get_first_buses(data_list):
next_buses = []
for ride in data_list:
if ride[0] not in [next_ride[0] for next_ride in next_buses]:
next_buses.append(ride)
return next_buses
# return the first times, a bus line comes
def get_buses(start):
return get_first_buses(get_list(start))
|
7ebfbbc8aaf7642d0f1c99862974452289762357
|
__init__.py
|
__init__.py
|
from .backends import *
from .shapes import *
from .grids import *
from .colors import *
from .solarized import *
|
from .backends import *
from .colors import *
from .grids import *
from .reference_image import *
from .shapes import *
from .solarized import *
|
Include reference_image, and alphabetize imports
|
Include reference_image, and alphabetize imports
|
Python
|
mit
|
zacbir/geometer
|
from .backends import *
from .shapes import *
from .grids import *
from .colors import *
from .solarized import *
Include reference_image, and alphabetize imports
|
from .backends import *
from .colors import *
from .grids import *
from .reference_image import *
from .shapes import *
from .solarized import *
|
<commit_before>from .backends import *
from .shapes import *
from .grids import *
from .colors import *
from .solarized import *
<commit_msg>Include reference_image, and alphabetize imports<commit_after>
|
from .backends import *
from .colors import *
from .grids import *
from .reference_image import *
from .shapes import *
from .solarized import *
|
from .backends import *
from .shapes import *
from .grids import *
from .colors import *
from .solarized import *
Include reference_image, and alphabetize importsfrom .backends import *
from .colors import *
from .grids import *
from .reference_image import *
from .shapes import *
from .solarized import *
|
<commit_before>from .backends import *
from .shapes import *
from .grids import *
from .colors import *
from .solarized import *
<commit_msg>Include reference_image, and alphabetize imports<commit_after>from .backends import *
from .colors import *
from .grids import *
from .reference_image import *
from .shapes import *
from .solarized import *
|
f0cf9d295aabeaa5ee69e47831e50f52f94a1df5
|
tests/api/conftest.py
|
tests/api/conftest.py
|
import pytest
from werkzeug.datastructures import Headers
from flask import Response, json
from flask.testing import FlaskClient
import config
from skylines import create_api_app
@pytest.fixture(scope="session")
def app():
"""Set up global front-end app for functional tests
Initialized once per test-run
"""
app = create_api_app(config.TESTING_CONF_PATH)
app.test_client_class = ApiClient
app.response_class = ApiResponse
return app
class ApiClient(FlaskClient):
def open(self, *args, **kwargs):
headers = kwargs.pop('headers', Headers())
headers.setdefault('User-Agent', 'py.test')
kwargs['headers'] = headers
return super(ApiClient, self).open(*args, **kwargs)
class ApiResponse(Response):
@property
def json(self):
return json.loads(self.data)
@pytest.yield_fixture
def client(app):
with app.test_client(use_cookies=False) as client:
yield client
|
import pytest
from werkzeug.datastructures import Headers
from flask import Response, json
from flask.testing import FlaskClient
import config
from skylines import create_api_app
@pytest.fixture(scope="session")
def app():
"""Set up global front-end app for functional tests
Initialized once per test-run
"""
app = create_api_app(config.TESTING_CONF_PATH)
app.test_client_class = ApiClient
app.response_class = ApiResponse
return app
class ApiClient(FlaskClient):
def open(self, *args, **kwargs):
headers = kwargs.pop('headers', Headers())
headers.setdefault('User-Agent', 'py.test')
kwargs['headers'] = headers
json_data = kwargs.pop('json', None)
if json_data is not None:
kwargs['data'] = json.dumps(json_data)
kwargs['content_type'] = 'application/json'
return super(ApiClient, self).open(*args, **kwargs)
class ApiResponse(Response):
@property
def json(self):
return json.loads(self.data)
@pytest.yield_fixture
def client(app):
with app.test_client(use_cookies=False) as client:
yield client
|
Add support for passing json keyword arguments to request methods
|
tests/api: Add support for passing json keyword arguments to request methods
|
Python
|
agpl-3.0
|
Harry-R/skylines,RBE-Avionik/skylines,Turbo87/skylines,Turbo87/skylines,skylines-project/skylines,shadowoneau/skylines,shadowoneau/skylines,Turbo87/skylines,Harry-R/skylines,Harry-R/skylines,Turbo87/skylines,RBE-Avionik/skylines,RBE-Avionik/skylines,Harry-R/skylines,shadowoneau/skylines,RBE-Avionik/skylines,skylines-project/skylines,skylines-project/skylines,shadowoneau/skylines,skylines-project/skylines
|
import pytest
from werkzeug.datastructures import Headers
from flask import Response, json
from flask.testing import FlaskClient
import config
from skylines import create_api_app
@pytest.fixture(scope="session")
def app():
"""Set up global front-end app for functional tests
Initialized once per test-run
"""
app = create_api_app(config.TESTING_CONF_PATH)
app.test_client_class = ApiClient
app.response_class = ApiResponse
return app
class ApiClient(FlaskClient):
def open(self, *args, **kwargs):
headers = kwargs.pop('headers', Headers())
headers.setdefault('User-Agent', 'py.test')
kwargs['headers'] = headers
return super(ApiClient, self).open(*args, **kwargs)
class ApiResponse(Response):
@property
def json(self):
return json.loads(self.data)
@pytest.yield_fixture
def client(app):
with app.test_client(use_cookies=False) as client:
yield client
tests/api: Add support for passing json keyword arguments to request methods
|
import pytest
from werkzeug.datastructures import Headers
from flask import Response, json
from flask.testing import FlaskClient
import config
from skylines import create_api_app
@pytest.fixture(scope="session")
def app():
"""Set up global front-end app for functional tests
Initialized once per test-run
"""
app = create_api_app(config.TESTING_CONF_PATH)
app.test_client_class = ApiClient
app.response_class = ApiResponse
return app
class ApiClient(FlaskClient):
def open(self, *args, **kwargs):
headers = kwargs.pop('headers', Headers())
headers.setdefault('User-Agent', 'py.test')
kwargs['headers'] = headers
json_data = kwargs.pop('json', None)
if json_data is not None:
kwargs['data'] = json.dumps(json_data)
kwargs['content_type'] = 'application/json'
return super(ApiClient, self).open(*args, **kwargs)
class ApiResponse(Response):
@property
def json(self):
return json.loads(self.data)
@pytest.yield_fixture
def client(app):
with app.test_client(use_cookies=False) as client:
yield client
|
<commit_before>import pytest
from werkzeug.datastructures import Headers
from flask import Response, json
from flask.testing import FlaskClient
import config
from skylines import create_api_app
@pytest.fixture(scope="session")
def app():
"""Set up global front-end app for functional tests
Initialized once per test-run
"""
app = create_api_app(config.TESTING_CONF_PATH)
app.test_client_class = ApiClient
app.response_class = ApiResponse
return app
class ApiClient(FlaskClient):
def open(self, *args, **kwargs):
headers = kwargs.pop('headers', Headers())
headers.setdefault('User-Agent', 'py.test')
kwargs['headers'] = headers
return super(ApiClient, self).open(*args, **kwargs)
class ApiResponse(Response):
@property
def json(self):
return json.loads(self.data)
@pytest.yield_fixture
def client(app):
with app.test_client(use_cookies=False) as client:
yield client
<commit_msg>tests/api: Add support for passing json keyword arguments to request methods<commit_after>
|
import pytest
from werkzeug.datastructures import Headers
from flask import Response, json
from flask.testing import FlaskClient
import config
from skylines import create_api_app
@pytest.fixture(scope="session")
def app():
"""Set up global front-end app for functional tests
Initialized once per test-run
"""
app = create_api_app(config.TESTING_CONF_PATH)
app.test_client_class = ApiClient
app.response_class = ApiResponse
return app
class ApiClient(FlaskClient):
def open(self, *args, **kwargs):
headers = kwargs.pop('headers', Headers())
headers.setdefault('User-Agent', 'py.test')
kwargs['headers'] = headers
json_data = kwargs.pop('json', None)
if json_data is not None:
kwargs['data'] = json.dumps(json_data)
kwargs['content_type'] = 'application/json'
return super(ApiClient, self).open(*args, **kwargs)
class ApiResponse(Response):
@property
def json(self):
return json.loads(self.data)
@pytest.yield_fixture
def client(app):
with app.test_client(use_cookies=False) as client:
yield client
|
import pytest
from werkzeug.datastructures import Headers
from flask import Response, json
from flask.testing import FlaskClient
import config
from skylines import create_api_app
@pytest.fixture(scope="session")
def app():
"""Set up global front-end app for functional tests
Initialized once per test-run
"""
app = create_api_app(config.TESTING_CONF_PATH)
app.test_client_class = ApiClient
app.response_class = ApiResponse
return app
class ApiClient(FlaskClient):
def open(self, *args, **kwargs):
headers = kwargs.pop('headers', Headers())
headers.setdefault('User-Agent', 'py.test')
kwargs['headers'] = headers
return super(ApiClient, self).open(*args, **kwargs)
class ApiResponse(Response):
@property
def json(self):
return json.loads(self.data)
@pytest.yield_fixture
def client(app):
with app.test_client(use_cookies=False) as client:
yield client
tests/api: Add support for passing json keyword arguments to request methodsimport pytest
from werkzeug.datastructures import Headers
from flask import Response, json
from flask.testing import FlaskClient
import config
from skylines import create_api_app
@pytest.fixture(scope="session")
def app():
"""Set up global front-end app for functional tests
Initialized once per test-run
"""
app = create_api_app(config.TESTING_CONF_PATH)
app.test_client_class = ApiClient
app.response_class = ApiResponse
return app
class ApiClient(FlaskClient):
def open(self, *args, **kwargs):
headers = kwargs.pop('headers', Headers())
headers.setdefault('User-Agent', 'py.test')
kwargs['headers'] = headers
json_data = kwargs.pop('json', None)
if json_data is not None:
kwargs['data'] = json.dumps(json_data)
kwargs['content_type'] = 'application/json'
return super(ApiClient, self).open(*args, **kwargs)
class ApiResponse(Response):
@property
def json(self):
return json.loads(self.data)
@pytest.yield_fixture
def client(app):
with app.test_client(use_cookies=False) as client:
yield client
|
<commit_before>import pytest
from werkzeug.datastructures import Headers
from flask import Response, json
from flask.testing import FlaskClient
import config
from skylines import create_api_app
@pytest.fixture(scope="session")
def app():
"""Set up global front-end app for functional tests
Initialized once per test-run
"""
app = create_api_app(config.TESTING_CONF_PATH)
app.test_client_class = ApiClient
app.response_class = ApiResponse
return app
class ApiClient(FlaskClient):
def open(self, *args, **kwargs):
headers = kwargs.pop('headers', Headers())
headers.setdefault('User-Agent', 'py.test')
kwargs['headers'] = headers
return super(ApiClient, self).open(*args, **kwargs)
class ApiResponse(Response):
@property
def json(self):
return json.loads(self.data)
@pytest.yield_fixture
def client(app):
with app.test_client(use_cookies=False) as client:
yield client
<commit_msg>tests/api: Add support for passing json keyword arguments to request methods<commit_after>import pytest
from werkzeug.datastructures import Headers
from flask import Response, json
from flask.testing import FlaskClient
import config
from skylines import create_api_app
@pytest.fixture(scope="session")
def app():
"""Set up global front-end app for functional tests
Initialized once per test-run
"""
app = create_api_app(config.TESTING_CONF_PATH)
app.test_client_class = ApiClient
app.response_class = ApiResponse
return app
class ApiClient(FlaskClient):
def open(self, *args, **kwargs):
headers = kwargs.pop('headers', Headers())
headers.setdefault('User-Agent', 'py.test')
kwargs['headers'] = headers
json_data = kwargs.pop('json', None)
if json_data is not None:
kwargs['data'] = json.dumps(json_data)
kwargs['content_type'] = 'application/json'
return super(ApiClient, self).open(*args, **kwargs)
class ApiResponse(Response):
@property
def json(self):
return json.loads(self.data)
@pytest.yield_fixture
def client(app):
with app.test_client(use_cookies=False) as client:
yield client
|
5a0e8efac25ded873a881465f8057fbfffff2555
|
setup.py
|
setup.py
|
# coding=utf-8
# Copyright 2021 The Balloon Learning Environment Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in 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.
"""Setup file for installing the BLE."""
import setuptools
setuptools.setup(
name='balloon_learning_environment',
version='0.0.2',
packages=setuptools.find_packages(),
install_requires=[
'absl-py',
'dopamine-rl >= 4.0.0',
'flax',
'gcsfs',
'gin-config',
'gym',
'opensimplex',
's2sphere',
'scikit-learn',
'tensorflow',
'tensorflow-datasets',
'tensorflow-probability',
'transitions',
'zarr',
],
package_data={
'': ['*.msgpack', '*.pb'],
},
python_requires='>=3.7',
)
|
# coding=utf-8
# Copyright 2021 The Balloon Learning Environment Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in 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.
"""Setup file for installing the BLE."""
import setuptools
setuptools.setup(
name='balloon_learning_environment',
version='0.0.3',
packages=setuptools.find_packages(),
install_requires=[
'absl-py',
'dopamine-rl >= 4.0.0',
'flax',
'gcsfs',
'gin-config',
'gym',
'opensimplex',
's2sphere',
'scikit-learn',
'tensorflow',
'tensorflow-datasets >= 4.4.0',
'tensorflow-probability',
'transitions',
'zarr',
],
package_data={
'': ['*.msgpack', '*.pb'],
},
python_requires='>=3.7',
)
|
Set minimum version requirement for tensorflow-datasets
|
Set minimum version requirement for tensorflow-datasets
PiperOrigin-RevId: 414736430
|
Python
|
apache-2.0
|
google/balloon-learning-environment
|
# coding=utf-8
# Copyright 2021 The Balloon Learning Environment Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in 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.
"""Setup file for installing the BLE."""
import setuptools
setuptools.setup(
name='balloon_learning_environment',
version='0.0.2',
packages=setuptools.find_packages(),
install_requires=[
'absl-py',
'dopamine-rl >= 4.0.0',
'flax',
'gcsfs',
'gin-config',
'gym',
'opensimplex',
's2sphere',
'scikit-learn',
'tensorflow',
'tensorflow-datasets',
'tensorflow-probability',
'transitions',
'zarr',
],
package_data={
'': ['*.msgpack', '*.pb'],
},
python_requires='>=3.7',
)
Set minimum version requirement for tensorflow-datasets
PiperOrigin-RevId: 414736430
|
# coding=utf-8
# Copyright 2021 The Balloon Learning Environment Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in 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.
"""Setup file for installing the BLE."""
import setuptools
setuptools.setup(
name='balloon_learning_environment',
version='0.0.3',
packages=setuptools.find_packages(),
install_requires=[
'absl-py',
'dopamine-rl >= 4.0.0',
'flax',
'gcsfs',
'gin-config',
'gym',
'opensimplex',
's2sphere',
'scikit-learn',
'tensorflow',
'tensorflow-datasets >= 4.4.0',
'tensorflow-probability',
'transitions',
'zarr',
],
package_data={
'': ['*.msgpack', '*.pb'],
},
python_requires='>=3.7',
)
|
<commit_before># coding=utf-8
# Copyright 2021 The Balloon Learning Environment Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in 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.
"""Setup file for installing the BLE."""
import setuptools
setuptools.setup(
name='balloon_learning_environment',
version='0.0.2',
packages=setuptools.find_packages(),
install_requires=[
'absl-py',
'dopamine-rl >= 4.0.0',
'flax',
'gcsfs',
'gin-config',
'gym',
'opensimplex',
's2sphere',
'scikit-learn',
'tensorflow',
'tensorflow-datasets',
'tensorflow-probability',
'transitions',
'zarr',
],
package_data={
'': ['*.msgpack', '*.pb'],
},
python_requires='>=3.7',
)
<commit_msg>Set minimum version requirement for tensorflow-datasets
PiperOrigin-RevId: 414736430<commit_after>
|
# coding=utf-8
# Copyright 2021 The Balloon Learning Environment Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in 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.
"""Setup file for installing the BLE."""
import setuptools
setuptools.setup(
name='balloon_learning_environment',
version='0.0.3',
packages=setuptools.find_packages(),
install_requires=[
'absl-py',
'dopamine-rl >= 4.0.0',
'flax',
'gcsfs',
'gin-config',
'gym',
'opensimplex',
's2sphere',
'scikit-learn',
'tensorflow',
'tensorflow-datasets >= 4.4.0',
'tensorflow-probability',
'transitions',
'zarr',
],
package_data={
'': ['*.msgpack', '*.pb'],
},
python_requires='>=3.7',
)
|
# coding=utf-8
# Copyright 2021 The Balloon Learning Environment Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in 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.
"""Setup file for installing the BLE."""
import setuptools
setuptools.setup(
name='balloon_learning_environment',
version='0.0.2',
packages=setuptools.find_packages(),
install_requires=[
'absl-py',
'dopamine-rl >= 4.0.0',
'flax',
'gcsfs',
'gin-config',
'gym',
'opensimplex',
's2sphere',
'scikit-learn',
'tensorflow',
'tensorflow-datasets',
'tensorflow-probability',
'transitions',
'zarr',
],
package_data={
'': ['*.msgpack', '*.pb'],
},
python_requires='>=3.7',
)
Set minimum version requirement for tensorflow-datasets
PiperOrigin-RevId: 414736430# coding=utf-8
# Copyright 2021 The Balloon Learning Environment Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in 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.
"""Setup file for installing the BLE."""
import setuptools
setuptools.setup(
name='balloon_learning_environment',
version='0.0.3',
packages=setuptools.find_packages(),
install_requires=[
'absl-py',
'dopamine-rl >= 4.0.0',
'flax',
'gcsfs',
'gin-config',
'gym',
'opensimplex',
's2sphere',
'scikit-learn',
'tensorflow',
'tensorflow-datasets >= 4.4.0',
'tensorflow-probability',
'transitions',
'zarr',
],
package_data={
'': ['*.msgpack', '*.pb'],
},
python_requires='>=3.7',
)
|
<commit_before># coding=utf-8
# Copyright 2021 The Balloon Learning Environment Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in 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.
"""Setup file for installing the BLE."""
import setuptools
setuptools.setup(
name='balloon_learning_environment',
version='0.0.2',
packages=setuptools.find_packages(),
install_requires=[
'absl-py',
'dopamine-rl >= 4.0.0',
'flax',
'gcsfs',
'gin-config',
'gym',
'opensimplex',
's2sphere',
'scikit-learn',
'tensorflow',
'tensorflow-datasets',
'tensorflow-probability',
'transitions',
'zarr',
],
package_data={
'': ['*.msgpack', '*.pb'],
},
python_requires='>=3.7',
)
<commit_msg>Set minimum version requirement for tensorflow-datasets
PiperOrigin-RevId: 414736430<commit_after># coding=utf-8
# Copyright 2021 The Balloon Learning Environment Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in 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.
"""Setup file for installing the BLE."""
import setuptools
setuptools.setup(
name='balloon_learning_environment',
version='0.0.3',
packages=setuptools.find_packages(),
install_requires=[
'absl-py',
'dopamine-rl >= 4.0.0',
'flax',
'gcsfs',
'gin-config',
'gym',
'opensimplex',
's2sphere',
'scikit-learn',
'tensorflow',
'tensorflow-datasets >= 4.4.0',
'tensorflow-probability',
'transitions',
'zarr',
],
package_data={
'': ['*.msgpack', '*.pb'],
},
python_requires='>=3.7',
)
|
8442e89d005af039252b0f8ab757bb54fa4ed71c
|
tests.py
|
tests.py
|
import unittest
from pollster.pollster import Pollster, Chart
class TestBasic(unittest.TestCase):
def test_basic_setup(self):
p = Pollster()
self.assertIsNotNone(p)
def test_charts(self):
c = Pollster().charts()
self.assertIsNotNone(c)
self.assertIsInstance(c, list)
self.assertGreater(len(c), 0)
def test_chart(self):
c = Pollster().charts()[0]
self.assertIsInstance(c, Chart)
cc = Pollster().chart(c.slug)
self.assertEqual(c.slug, cc.slug)
for attr in ['last_updated',
'title',
'url',
'estimates',
'poll_count',
'topic',
'state',
'slug', ]:
self.assertIsNotNone(getattr(c, attr))
self.assertIsNotNone(getattr(cc, attr))
self.assertEqual(getattr(c, attr), getattr(cc, attr))
self.assertIsInstance(c.estimates_by_date(), list)
def test_polls(self):
polls = Pollster().polls(topic='2016-president')
self.assertGreater(len(polls), 0)
|
import unittest
from pollster.pollster import Pollster, Chart
class TestBasic(unittest.TestCase):
def test_basic_setup(self):
p = Pollster()
self.assertIsNotNone(p)
def test_charts(self):
c = Pollster().charts()
self.assertIsNotNone(c)
self.assertIsInstance(c, list)
self.assertGreater(len(c), 0)
def test_chart(self):
c = Pollster().charts()[0]
self.assertIsInstance(c, Chart)
cc = Pollster().chart(c.slug)
self.assertEqual(c.slug, cc.slug)
for attr in ['last_updated',
'title',
'url',
'estimates',
'poll_count',
'topic',
'state',
'slug', ]:
self.assertIsNotNone(getattr(c, attr))
self.assertIsNotNone(getattr(cc, attr))
self.assertEqual(getattr(c, attr), getattr(cc, attr))
self.assertIsInstance(c.estimates_by_date(), list)
def test_polls(self):
polls = Pollster().polls(topic='2016-president')
self.assertGreater(len(polls), 0)
poll = polls[0]
for attr in ['id',
'pollster',
'start_date',
'end_date',
'method',
'source',
'questions',
'survey_houses',
'sponsors',
'partisan',
'affiliation']:
self.assertIsNotNone(getattr(poll, attr))
|
Update Poll test to check members.
|
Update Poll test to check members.
|
Python
|
bsd-2-clause
|
huffpostdata/python-pollster,ternus/python-pollster
|
import unittest
from pollster.pollster import Pollster, Chart
class TestBasic(unittest.TestCase):
def test_basic_setup(self):
p = Pollster()
self.assertIsNotNone(p)
def test_charts(self):
c = Pollster().charts()
self.assertIsNotNone(c)
self.assertIsInstance(c, list)
self.assertGreater(len(c), 0)
def test_chart(self):
c = Pollster().charts()[0]
self.assertIsInstance(c, Chart)
cc = Pollster().chart(c.slug)
self.assertEqual(c.slug, cc.slug)
for attr in ['last_updated',
'title',
'url',
'estimates',
'poll_count',
'topic',
'state',
'slug', ]:
self.assertIsNotNone(getattr(c, attr))
self.assertIsNotNone(getattr(cc, attr))
self.assertEqual(getattr(c, attr), getattr(cc, attr))
self.assertIsInstance(c.estimates_by_date(), list)
def test_polls(self):
polls = Pollster().polls(topic='2016-president')
self.assertGreater(len(polls), 0)
Update Poll test to check members.
|
import unittest
from pollster.pollster import Pollster, Chart
class TestBasic(unittest.TestCase):
def test_basic_setup(self):
p = Pollster()
self.assertIsNotNone(p)
def test_charts(self):
c = Pollster().charts()
self.assertIsNotNone(c)
self.assertIsInstance(c, list)
self.assertGreater(len(c), 0)
def test_chart(self):
c = Pollster().charts()[0]
self.assertIsInstance(c, Chart)
cc = Pollster().chart(c.slug)
self.assertEqual(c.slug, cc.slug)
for attr in ['last_updated',
'title',
'url',
'estimates',
'poll_count',
'topic',
'state',
'slug', ]:
self.assertIsNotNone(getattr(c, attr))
self.assertIsNotNone(getattr(cc, attr))
self.assertEqual(getattr(c, attr), getattr(cc, attr))
self.assertIsInstance(c.estimates_by_date(), list)
def test_polls(self):
polls = Pollster().polls(topic='2016-president')
self.assertGreater(len(polls), 0)
poll = polls[0]
for attr in ['id',
'pollster',
'start_date',
'end_date',
'method',
'source',
'questions',
'survey_houses',
'sponsors',
'partisan',
'affiliation']:
self.assertIsNotNone(getattr(poll, attr))
|
<commit_before>import unittest
from pollster.pollster import Pollster, Chart
class TestBasic(unittest.TestCase):
def test_basic_setup(self):
p = Pollster()
self.assertIsNotNone(p)
def test_charts(self):
c = Pollster().charts()
self.assertIsNotNone(c)
self.assertIsInstance(c, list)
self.assertGreater(len(c), 0)
def test_chart(self):
c = Pollster().charts()[0]
self.assertIsInstance(c, Chart)
cc = Pollster().chart(c.slug)
self.assertEqual(c.slug, cc.slug)
for attr in ['last_updated',
'title',
'url',
'estimates',
'poll_count',
'topic',
'state',
'slug', ]:
self.assertIsNotNone(getattr(c, attr))
self.assertIsNotNone(getattr(cc, attr))
self.assertEqual(getattr(c, attr), getattr(cc, attr))
self.assertIsInstance(c.estimates_by_date(), list)
def test_polls(self):
polls = Pollster().polls(topic='2016-president')
self.assertGreater(len(polls), 0)
<commit_msg>Update Poll test to check members.<commit_after>
|
import unittest
from pollster.pollster import Pollster, Chart
class TestBasic(unittest.TestCase):
def test_basic_setup(self):
p = Pollster()
self.assertIsNotNone(p)
def test_charts(self):
c = Pollster().charts()
self.assertIsNotNone(c)
self.assertIsInstance(c, list)
self.assertGreater(len(c), 0)
def test_chart(self):
c = Pollster().charts()[0]
self.assertIsInstance(c, Chart)
cc = Pollster().chart(c.slug)
self.assertEqual(c.slug, cc.slug)
for attr in ['last_updated',
'title',
'url',
'estimates',
'poll_count',
'topic',
'state',
'slug', ]:
self.assertIsNotNone(getattr(c, attr))
self.assertIsNotNone(getattr(cc, attr))
self.assertEqual(getattr(c, attr), getattr(cc, attr))
self.assertIsInstance(c.estimates_by_date(), list)
def test_polls(self):
polls = Pollster().polls(topic='2016-president')
self.assertGreater(len(polls), 0)
poll = polls[0]
for attr in ['id',
'pollster',
'start_date',
'end_date',
'method',
'source',
'questions',
'survey_houses',
'sponsors',
'partisan',
'affiliation']:
self.assertIsNotNone(getattr(poll, attr))
|
import unittest
from pollster.pollster import Pollster, Chart
class TestBasic(unittest.TestCase):
def test_basic_setup(self):
p = Pollster()
self.assertIsNotNone(p)
def test_charts(self):
c = Pollster().charts()
self.assertIsNotNone(c)
self.assertIsInstance(c, list)
self.assertGreater(len(c), 0)
def test_chart(self):
c = Pollster().charts()[0]
self.assertIsInstance(c, Chart)
cc = Pollster().chart(c.slug)
self.assertEqual(c.slug, cc.slug)
for attr in ['last_updated',
'title',
'url',
'estimates',
'poll_count',
'topic',
'state',
'slug', ]:
self.assertIsNotNone(getattr(c, attr))
self.assertIsNotNone(getattr(cc, attr))
self.assertEqual(getattr(c, attr), getattr(cc, attr))
self.assertIsInstance(c.estimates_by_date(), list)
def test_polls(self):
polls = Pollster().polls(topic='2016-president')
self.assertGreater(len(polls), 0)
Update Poll test to check members.import unittest
from pollster.pollster import Pollster, Chart
class TestBasic(unittest.TestCase):
def test_basic_setup(self):
p = Pollster()
self.assertIsNotNone(p)
def test_charts(self):
c = Pollster().charts()
self.assertIsNotNone(c)
self.assertIsInstance(c, list)
self.assertGreater(len(c), 0)
def test_chart(self):
c = Pollster().charts()[0]
self.assertIsInstance(c, Chart)
cc = Pollster().chart(c.slug)
self.assertEqual(c.slug, cc.slug)
for attr in ['last_updated',
'title',
'url',
'estimates',
'poll_count',
'topic',
'state',
'slug', ]:
self.assertIsNotNone(getattr(c, attr))
self.assertIsNotNone(getattr(cc, attr))
self.assertEqual(getattr(c, attr), getattr(cc, attr))
self.assertIsInstance(c.estimates_by_date(), list)
def test_polls(self):
polls = Pollster().polls(topic='2016-president')
self.assertGreater(len(polls), 0)
poll = polls[0]
for attr in ['id',
'pollster',
'start_date',
'end_date',
'method',
'source',
'questions',
'survey_houses',
'sponsors',
'partisan',
'affiliation']:
self.assertIsNotNone(getattr(poll, attr))
|
<commit_before>import unittest
from pollster.pollster import Pollster, Chart
class TestBasic(unittest.TestCase):
def test_basic_setup(self):
p = Pollster()
self.assertIsNotNone(p)
def test_charts(self):
c = Pollster().charts()
self.assertIsNotNone(c)
self.assertIsInstance(c, list)
self.assertGreater(len(c), 0)
def test_chart(self):
c = Pollster().charts()[0]
self.assertIsInstance(c, Chart)
cc = Pollster().chart(c.slug)
self.assertEqual(c.slug, cc.slug)
for attr in ['last_updated',
'title',
'url',
'estimates',
'poll_count',
'topic',
'state',
'slug', ]:
self.assertIsNotNone(getattr(c, attr))
self.assertIsNotNone(getattr(cc, attr))
self.assertEqual(getattr(c, attr), getattr(cc, attr))
self.assertIsInstance(c.estimates_by_date(), list)
def test_polls(self):
polls = Pollster().polls(topic='2016-president')
self.assertGreater(len(polls), 0)
<commit_msg>Update Poll test to check members.<commit_after>import unittest
from pollster.pollster import Pollster, Chart
class TestBasic(unittest.TestCase):
def test_basic_setup(self):
p = Pollster()
self.assertIsNotNone(p)
def test_charts(self):
c = Pollster().charts()
self.assertIsNotNone(c)
self.assertIsInstance(c, list)
self.assertGreater(len(c), 0)
def test_chart(self):
c = Pollster().charts()[0]
self.assertIsInstance(c, Chart)
cc = Pollster().chart(c.slug)
self.assertEqual(c.slug, cc.slug)
for attr in ['last_updated',
'title',
'url',
'estimates',
'poll_count',
'topic',
'state',
'slug', ]:
self.assertIsNotNone(getattr(c, attr))
self.assertIsNotNone(getattr(cc, attr))
self.assertEqual(getattr(c, attr), getattr(cc, attr))
self.assertIsInstance(c.estimates_by_date(), list)
def test_polls(self):
polls = Pollster().polls(topic='2016-president')
self.assertGreater(len(polls), 0)
poll = polls[0]
for attr in ['id',
'pollster',
'start_date',
'end_date',
'method',
'source',
'questions',
'survey_houses',
'sponsors',
'partisan',
'affiliation']:
self.assertIsNotNone(getattr(poll, attr))
|
162406757890e78ba50dc777be9f9501ce3c3414
|
tests.py
|
tests.py
|
import unittest
from app import app
class TestScorepy(unittest.TestCase):
def setUp(self):
self.app = app.test_client()
self.app.testing = True
def tearDown(self):
pass
def test_index_response(self):
response = self.app.get('/')
self.assertEqual(response.status_code, 200)
if __name__ == '__main__':
unittest.main()
|
import unittest
from app import create_app
class TestScorepy(unittest.TestCase):
def setUp(self):
app = create_app('config.TestingConfiguration')
self.app = app.test_client()
def tearDown(self):
pass
def test_index_response(self):
response = self.app.get('/')
self.assertEqual(response.status_code, 200)
if __name__ == '__main__':
unittest.main()
|
Fix test file for factory pattern
|
Fix test file for factory pattern
|
Python
|
mit
|
rtfoley/scorepy,rtfoley/scorepy,rtfoley/scorepy
|
import unittest
from app import app
class TestScorepy(unittest.TestCase):
def setUp(self):
self.app = app.test_client()
self.app.testing = True
def tearDown(self):
pass
def test_index_response(self):
response = self.app.get('/')
self.assertEqual(response.status_code, 200)
if __name__ == '__main__':
unittest.main()
Fix test file for factory pattern
|
import unittest
from app import create_app
class TestScorepy(unittest.TestCase):
def setUp(self):
app = create_app('config.TestingConfiguration')
self.app = app.test_client()
def tearDown(self):
pass
def test_index_response(self):
response = self.app.get('/')
self.assertEqual(response.status_code, 200)
if __name__ == '__main__':
unittest.main()
|
<commit_before>import unittest
from app import app
class TestScorepy(unittest.TestCase):
def setUp(self):
self.app = app.test_client()
self.app.testing = True
def tearDown(self):
pass
def test_index_response(self):
response = self.app.get('/')
self.assertEqual(response.status_code, 200)
if __name__ == '__main__':
unittest.main()
<commit_msg>Fix test file for factory pattern<commit_after>
|
import unittest
from app import create_app
class TestScorepy(unittest.TestCase):
def setUp(self):
app = create_app('config.TestingConfiguration')
self.app = app.test_client()
def tearDown(self):
pass
def test_index_response(self):
response = self.app.get('/')
self.assertEqual(response.status_code, 200)
if __name__ == '__main__':
unittest.main()
|
import unittest
from app import app
class TestScorepy(unittest.TestCase):
def setUp(self):
self.app = app.test_client()
self.app.testing = True
def tearDown(self):
pass
def test_index_response(self):
response = self.app.get('/')
self.assertEqual(response.status_code, 200)
if __name__ == '__main__':
unittest.main()
Fix test file for factory patternimport unittest
from app import create_app
class TestScorepy(unittest.TestCase):
def setUp(self):
app = create_app('config.TestingConfiguration')
self.app = app.test_client()
def tearDown(self):
pass
def test_index_response(self):
response = self.app.get('/')
self.assertEqual(response.status_code, 200)
if __name__ == '__main__':
unittest.main()
|
<commit_before>import unittest
from app import app
class TestScorepy(unittest.TestCase):
def setUp(self):
self.app = app.test_client()
self.app.testing = True
def tearDown(self):
pass
def test_index_response(self):
response = self.app.get('/')
self.assertEqual(response.status_code, 200)
if __name__ == '__main__':
unittest.main()
<commit_msg>Fix test file for factory pattern<commit_after>import unittest
from app import create_app
class TestScorepy(unittest.TestCase):
def setUp(self):
app = create_app('config.TestingConfiguration')
self.app = app.test_client()
def tearDown(self):
pass
def test_index_response(self):
response = self.app.get('/')
self.assertEqual(response.status_code, 200)
if __name__ == '__main__':
unittest.main()
|
548bdb45796e7e12a1c4294b49dc1ac1fb3fe647
|
launch_pyslvs.py
|
launch_pyslvs.py
|
# -*- coding: utf-8 -*-
##Pyslvs - Dimensional Synthesis of Planar Four-bar Linkages in PyQt5 GUI.
##Copyright (C) 2016 Yuan Chang [daan0014119@gmail.com]
from os import _exit
if __name__=='__main__':
try:
from core.info.info import show_info, Pyslvs_Splash
args = show_info()
from PyQt5.QtWidgets import QApplication
from core.main import MainWindow
if args.fusion: QApplication.setStyle('fusion')
app = QApplication(list(vars(args).values()))
splash = Pyslvs_Splash()
splash.show()
run = MainWindow(args)
run.show()
splash.finish(run)
_exit(app.exec())
except:
import logging
logging.exception("Exception Happened.")
_exit(1)
|
# -*- coding: utf-8 -*-
##Pyslvs - Dimensional Synthesis of Planar Four-bar Linkages in PyQt5 GUI.
##Copyright (C) 2016 Yuan Chang [daan0014119@gmail.com]
from sys import exit
if __name__=='__main__':
try:
from core.info.info import show_info, Pyslvs_Splash
args = show_info()
from PyQt5.QtWidgets import QApplication
from core.main import MainWindow
if args.fusion: QApplication.setStyle('fusion')
app = QApplication(list(vars(args).values()))
splash = Pyslvs_Splash()
splash.show()
run = MainWindow(args)
run.show()
splash.finish(run)
ExitCode = app.exec()
except:
import logging
logging.exception("Exception Happened.")
ExitCode = 1
finally: exit(ExitCode)
|
Change the way of exit application.
|
Change the way of exit application.
|
Python
|
agpl-3.0
|
40323230/Pyslvs-PyQt5,KmolYuan/Pyslvs-PyQt5,KmolYuan/Pyslvs-PyQt5
|
# -*- coding: utf-8 -*-
##Pyslvs - Dimensional Synthesis of Planar Four-bar Linkages in PyQt5 GUI.
##Copyright (C) 2016 Yuan Chang [daan0014119@gmail.com]
from os import _exit
if __name__=='__main__':
try:
from core.info.info import show_info, Pyslvs_Splash
args = show_info()
from PyQt5.QtWidgets import QApplication
from core.main import MainWindow
if args.fusion: QApplication.setStyle('fusion')
app = QApplication(list(vars(args).values()))
splash = Pyslvs_Splash()
splash.show()
run = MainWindow(args)
run.show()
splash.finish(run)
_exit(app.exec())
except:
import logging
logging.exception("Exception Happened.")
_exit(1)
Change the way of exit application.
|
# -*- coding: utf-8 -*-
##Pyslvs - Dimensional Synthesis of Planar Four-bar Linkages in PyQt5 GUI.
##Copyright (C) 2016 Yuan Chang [daan0014119@gmail.com]
from sys import exit
if __name__=='__main__':
try:
from core.info.info import show_info, Pyslvs_Splash
args = show_info()
from PyQt5.QtWidgets import QApplication
from core.main import MainWindow
if args.fusion: QApplication.setStyle('fusion')
app = QApplication(list(vars(args).values()))
splash = Pyslvs_Splash()
splash.show()
run = MainWindow(args)
run.show()
splash.finish(run)
ExitCode = app.exec()
except:
import logging
logging.exception("Exception Happened.")
ExitCode = 1
finally: exit(ExitCode)
|
<commit_before># -*- coding: utf-8 -*-
##Pyslvs - Dimensional Synthesis of Planar Four-bar Linkages in PyQt5 GUI.
##Copyright (C) 2016 Yuan Chang [daan0014119@gmail.com]
from os import _exit
if __name__=='__main__':
try:
from core.info.info import show_info, Pyslvs_Splash
args = show_info()
from PyQt5.QtWidgets import QApplication
from core.main import MainWindow
if args.fusion: QApplication.setStyle('fusion')
app = QApplication(list(vars(args).values()))
splash = Pyslvs_Splash()
splash.show()
run = MainWindow(args)
run.show()
splash.finish(run)
_exit(app.exec())
except:
import logging
logging.exception("Exception Happened.")
_exit(1)
<commit_msg>Change the way of exit application.<commit_after>
|
# -*- coding: utf-8 -*-
##Pyslvs - Dimensional Synthesis of Planar Four-bar Linkages in PyQt5 GUI.
##Copyright (C) 2016 Yuan Chang [daan0014119@gmail.com]
from sys import exit
if __name__=='__main__':
try:
from core.info.info import show_info, Pyslvs_Splash
args = show_info()
from PyQt5.QtWidgets import QApplication
from core.main import MainWindow
if args.fusion: QApplication.setStyle('fusion')
app = QApplication(list(vars(args).values()))
splash = Pyslvs_Splash()
splash.show()
run = MainWindow(args)
run.show()
splash.finish(run)
ExitCode = app.exec()
except:
import logging
logging.exception("Exception Happened.")
ExitCode = 1
finally: exit(ExitCode)
|
# -*- coding: utf-8 -*-
##Pyslvs - Dimensional Synthesis of Planar Four-bar Linkages in PyQt5 GUI.
##Copyright (C) 2016 Yuan Chang [daan0014119@gmail.com]
from os import _exit
if __name__=='__main__':
try:
from core.info.info import show_info, Pyslvs_Splash
args = show_info()
from PyQt5.QtWidgets import QApplication
from core.main import MainWindow
if args.fusion: QApplication.setStyle('fusion')
app = QApplication(list(vars(args).values()))
splash = Pyslvs_Splash()
splash.show()
run = MainWindow(args)
run.show()
splash.finish(run)
_exit(app.exec())
except:
import logging
logging.exception("Exception Happened.")
_exit(1)
Change the way of exit application.# -*- coding: utf-8 -*-
##Pyslvs - Dimensional Synthesis of Planar Four-bar Linkages in PyQt5 GUI.
##Copyright (C) 2016 Yuan Chang [daan0014119@gmail.com]
from sys import exit
if __name__=='__main__':
try:
from core.info.info import show_info, Pyslvs_Splash
args = show_info()
from PyQt5.QtWidgets import QApplication
from core.main import MainWindow
if args.fusion: QApplication.setStyle('fusion')
app = QApplication(list(vars(args).values()))
splash = Pyslvs_Splash()
splash.show()
run = MainWindow(args)
run.show()
splash.finish(run)
ExitCode = app.exec()
except:
import logging
logging.exception("Exception Happened.")
ExitCode = 1
finally: exit(ExitCode)
|
<commit_before># -*- coding: utf-8 -*-
##Pyslvs - Dimensional Synthesis of Planar Four-bar Linkages in PyQt5 GUI.
##Copyright (C) 2016 Yuan Chang [daan0014119@gmail.com]
from os import _exit
if __name__=='__main__':
try:
from core.info.info import show_info, Pyslvs_Splash
args = show_info()
from PyQt5.QtWidgets import QApplication
from core.main import MainWindow
if args.fusion: QApplication.setStyle('fusion')
app = QApplication(list(vars(args).values()))
splash = Pyslvs_Splash()
splash.show()
run = MainWindow(args)
run.show()
splash.finish(run)
_exit(app.exec())
except:
import logging
logging.exception("Exception Happened.")
_exit(1)
<commit_msg>Change the way of exit application.<commit_after># -*- coding: utf-8 -*-
##Pyslvs - Dimensional Synthesis of Planar Four-bar Linkages in PyQt5 GUI.
##Copyright (C) 2016 Yuan Chang [daan0014119@gmail.com]
from sys import exit
if __name__=='__main__':
try:
from core.info.info import show_info, Pyslvs_Splash
args = show_info()
from PyQt5.QtWidgets import QApplication
from core.main import MainWindow
if args.fusion: QApplication.setStyle('fusion')
app = QApplication(list(vars(args).values()))
splash = Pyslvs_Splash()
splash.show()
run = MainWindow(args)
run.show()
splash.finish(run)
ExitCode = app.exec()
except:
import logging
logging.exception("Exception Happened.")
ExitCode = 1
finally: exit(ExitCode)
|
2f46d5468b7eaabfb23081669e6c1c2760a1bc16
|
tests.py
|
tests.py
|
from __future__ import unicode_literals
from tqdm import format_interval
def test_format_interval():
assert format_interval(60) == '01:00'
assert format_interval(6160) == '1:42:40'
assert format_interval(238113) == '66:08:33'
|
from __future__ import unicode_literals
from tqdm import format_interval, format_meter
def test_format_interval():
assert format_interval(60) == '01:00'
assert format_interval(6160) == '1:42:40'
assert format_interval(238113) == '66:08:33'
def test_format_meter():
assert format_meter(231, 1000, 392) == \
"|##--------| 231/1000 23% [elapsed: " \
"06:32 left: 12:49, 0.00 iters/sec]"
|
Test of format_meter (failed on py32)
|
Test of format_meter (failed on py32)
|
Python
|
mit
|
lrq3000/tqdm,kmike/tqdm
|
from __future__ import unicode_literals
from tqdm import format_interval
def test_format_interval():
assert format_interval(60) == '01:00'
assert format_interval(6160) == '1:42:40'
assert format_interval(238113) == '66:08:33'
Test of format_meter (failed on py32)
|
from __future__ import unicode_literals
from tqdm import format_interval, format_meter
def test_format_interval():
assert format_interval(60) == '01:00'
assert format_interval(6160) == '1:42:40'
assert format_interval(238113) == '66:08:33'
def test_format_meter():
assert format_meter(231, 1000, 392) == \
"|##--------| 231/1000 23% [elapsed: " \
"06:32 left: 12:49, 0.00 iters/sec]"
|
<commit_before>from __future__ import unicode_literals
from tqdm import format_interval
def test_format_interval():
assert format_interval(60) == '01:00'
assert format_interval(6160) == '1:42:40'
assert format_interval(238113) == '66:08:33'
<commit_msg>Test of format_meter (failed on py32)<commit_after>
|
from __future__ import unicode_literals
from tqdm import format_interval, format_meter
def test_format_interval():
assert format_interval(60) == '01:00'
assert format_interval(6160) == '1:42:40'
assert format_interval(238113) == '66:08:33'
def test_format_meter():
assert format_meter(231, 1000, 392) == \
"|##--------| 231/1000 23% [elapsed: " \
"06:32 left: 12:49, 0.00 iters/sec]"
|
from __future__ import unicode_literals
from tqdm import format_interval
def test_format_interval():
assert format_interval(60) == '01:00'
assert format_interval(6160) == '1:42:40'
assert format_interval(238113) == '66:08:33'
Test of format_meter (failed on py32)from __future__ import unicode_literals
from tqdm import format_interval, format_meter
def test_format_interval():
assert format_interval(60) == '01:00'
assert format_interval(6160) == '1:42:40'
assert format_interval(238113) == '66:08:33'
def test_format_meter():
assert format_meter(231, 1000, 392) == \
"|##--------| 231/1000 23% [elapsed: " \
"06:32 left: 12:49, 0.00 iters/sec]"
|
<commit_before>from __future__ import unicode_literals
from tqdm import format_interval
def test_format_interval():
assert format_interval(60) == '01:00'
assert format_interval(6160) == '1:42:40'
assert format_interval(238113) == '66:08:33'
<commit_msg>Test of format_meter (failed on py32)<commit_after>from __future__ import unicode_literals
from tqdm import format_interval, format_meter
def test_format_interval():
assert format_interval(60) == '01:00'
assert format_interval(6160) == '1:42:40'
assert format_interval(238113) == '66:08:33'
def test_format_meter():
assert format_meter(231, 1000, 392) == \
"|##--------| 231/1000 23% [elapsed: " \
"06:32 left: 12:49, 0.00 iters/sec]"
|
0f10d6f5ac06fcec3ef7df0688edcf3f6466301a
|
setup.py
|
setup.py
|
from distutils.core import setup
import sys
import os
import re
PACKAGENAME = 'OpSimSummary'
packageDir = os.path.join(os.path.dirname(os.path.abspath(__file__)),
'opsimsummary')
versionFile = os.path.join(packageDir, 'version.py')
# Obtain the package version
with open(versionFile, 'r') as f:
s = f.read()
# Look up the string value assigned to __version__ in version.py using regexp
versionRegExp = re.compile("__VERSION__ = \"(.*?)\"")
# Assign to __version__
__version__ = versionRegExp.findall(s)[0]
print(__version__)
setup(# package information
name=PACKAGENAME,
version=__version__,
description='simple repo to study OpSim output summaries',
long_description=''' ''',
# What code to include as packages
packages=[PACKAGENAME],
packagedir={PACKAGENAME: 'opsimsummary'},
# What data to include as packages
include_package_data=True,
package_data={PACKAGENAME:['example_data/*.dat', 'example_data/*.simlib']}
)
|
from distutils.core import setup
import sys
import os
import re
PACKAGENAME = 'OpSimSummary'
packageDir = os.path.join(os.path.dirname(os.path.abspath(__file__)),
PACKAGENAME)
versionFile = os.path.join(packageDir, 'version.py')
# Obtain the package version
with open(versionFile, 'r') as f:
s = f.read()
# Look up the string value assigned to __version__ in version.py using regexp
versionRegExp = re.compile("__VERSION__ = \"(.*?)\"")
# Assign to __version__
__version__ = versionRegExp.findall(s)[0]
print(__version__)
setup(# package information
name=PACKAGENAME,
version=__version__,
description='simple repo to study OpSim output summaries',
long_description=''' ''',
# What code to include as packages
packages=[PACKAGENAME],
packagedir={PACKAGENAME: 'opsimsummary'},
# What data to include as packages
include_package_data=True,
package_data={PACKAGENAME:['example_data/*.dat', 'example_data/*.simlib']}
)
|
Revert "Revert "Changed back due to problems, will fix later""
|
Revert "Revert "Changed back due to problems, will fix later""
This reverts commit 37fa1b22539dd31b8efc4c22b1ba9269822f77e1.
modified: setup.py
|
Python
|
mit
|
rbiswas4/simlib
|
from distutils.core import setup
import sys
import os
import re
PACKAGENAME = 'OpSimSummary'
packageDir = os.path.join(os.path.dirname(os.path.abspath(__file__)),
'opsimsummary')
versionFile = os.path.join(packageDir, 'version.py')
# Obtain the package version
with open(versionFile, 'r') as f:
s = f.read()
# Look up the string value assigned to __version__ in version.py using regexp
versionRegExp = re.compile("__VERSION__ = \"(.*?)\"")
# Assign to __version__
__version__ = versionRegExp.findall(s)[0]
print(__version__)
setup(# package information
name=PACKAGENAME,
version=__version__,
description='simple repo to study OpSim output summaries',
long_description=''' ''',
# What code to include as packages
packages=[PACKAGENAME],
packagedir={PACKAGENAME: 'opsimsummary'},
# What data to include as packages
include_package_data=True,
package_data={PACKAGENAME:['example_data/*.dat', 'example_data/*.simlib']}
)
Revert "Revert "Changed back due to problems, will fix later""
This reverts commit 37fa1b22539dd31b8efc4c22b1ba9269822f77e1.
modified: setup.py
|
from distutils.core import setup
import sys
import os
import re
PACKAGENAME = 'OpSimSummary'
packageDir = os.path.join(os.path.dirname(os.path.abspath(__file__)),
PACKAGENAME)
versionFile = os.path.join(packageDir, 'version.py')
# Obtain the package version
with open(versionFile, 'r') as f:
s = f.read()
# Look up the string value assigned to __version__ in version.py using regexp
versionRegExp = re.compile("__VERSION__ = \"(.*?)\"")
# Assign to __version__
__version__ = versionRegExp.findall(s)[0]
print(__version__)
setup(# package information
name=PACKAGENAME,
version=__version__,
description='simple repo to study OpSim output summaries',
long_description=''' ''',
# What code to include as packages
packages=[PACKAGENAME],
packagedir={PACKAGENAME: 'opsimsummary'},
# What data to include as packages
include_package_data=True,
package_data={PACKAGENAME:['example_data/*.dat', 'example_data/*.simlib']}
)
|
<commit_before>from distutils.core import setup
import sys
import os
import re
PACKAGENAME = 'OpSimSummary'
packageDir = os.path.join(os.path.dirname(os.path.abspath(__file__)),
'opsimsummary')
versionFile = os.path.join(packageDir, 'version.py')
# Obtain the package version
with open(versionFile, 'r') as f:
s = f.read()
# Look up the string value assigned to __version__ in version.py using regexp
versionRegExp = re.compile("__VERSION__ = \"(.*?)\"")
# Assign to __version__
__version__ = versionRegExp.findall(s)[0]
print(__version__)
setup(# package information
name=PACKAGENAME,
version=__version__,
description='simple repo to study OpSim output summaries',
long_description=''' ''',
# What code to include as packages
packages=[PACKAGENAME],
packagedir={PACKAGENAME: 'opsimsummary'},
# What data to include as packages
include_package_data=True,
package_data={PACKAGENAME:['example_data/*.dat', 'example_data/*.simlib']}
)
<commit_msg>Revert "Revert "Changed back due to problems, will fix later""
This reverts commit 37fa1b22539dd31b8efc4c22b1ba9269822f77e1.
modified: setup.py<commit_after>
|
from distutils.core import setup
import sys
import os
import re
PACKAGENAME = 'OpSimSummary'
packageDir = os.path.join(os.path.dirname(os.path.abspath(__file__)),
PACKAGENAME)
versionFile = os.path.join(packageDir, 'version.py')
# Obtain the package version
with open(versionFile, 'r') as f:
s = f.read()
# Look up the string value assigned to __version__ in version.py using regexp
versionRegExp = re.compile("__VERSION__ = \"(.*?)\"")
# Assign to __version__
__version__ = versionRegExp.findall(s)[0]
print(__version__)
setup(# package information
name=PACKAGENAME,
version=__version__,
description='simple repo to study OpSim output summaries',
long_description=''' ''',
# What code to include as packages
packages=[PACKAGENAME],
packagedir={PACKAGENAME: 'opsimsummary'},
# What data to include as packages
include_package_data=True,
package_data={PACKAGENAME:['example_data/*.dat', 'example_data/*.simlib']}
)
|
from distutils.core import setup
import sys
import os
import re
PACKAGENAME = 'OpSimSummary'
packageDir = os.path.join(os.path.dirname(os.path.abspath(__file__)),
'opsimsummary')
versionFile = os.path.join(packageDir, 'version.py')
# Obtain the package version
with open(versionFile, 'r') as f:
s = f.read()
# Look up the string value assigned to __version__ in version.py using regexp
versionRegExp = re.compile("__VERSION__ = \"(.*?)\"")
# Assign to __version__
__version__ = versionRegExp.findall(s)[0]
print(__version__)
setup(# package information
name=PACKAGENAME,
version=__version__,
description='simple repo to study OpSim output summaries',
long_description=''' ''',
# What code to include as packages
packages=[PACKAGENAME],
packagedir={PACKAGENAME: 'opsimsummary'},
# What data to include as packages
include_package_data=True,
package_data={PACKAGENAME:['example_data/*.dat', 'example_data/*.simlib']}
)
Revert "Revert "Changed back due to problems, will fix later""
This reverts commit 37fa1b22539dd31b8efc4c22b1ba9269822f77e1.
modified: setup.pyfrom distutils.core import setup
import sys
import os
import re
PACKAGENAME = 'OpSimSummary'
packageDir = os.path.join(os.path.dirname(os.path.abspath(__file__)),
PACKAGENAME)
versionFile = os.path.join(packageDir, 'version.py')
# Obtain the package version
with open(versionFile, 'r') as f:
s = f.read()
# Look up the string value assigned to __version__ in version.py using regexp
versionRegExp = re.compile("__VERSION__ = \"(.*?)\"")
# Assign to __version__
__version__ = versionRegExp.findall(s)[0]
print(__version__)
setup(# package information
name=PACKAGENAME,
version=__version__,
description='simple repo to study OpSim output summaries',
long_description=''' ''',
# What code to include as packages
packages=[PACKAGENAME],
packagedir={PACKAGENAME: 'opsimsummary'},
# What data to include as packages
include_package_data=True,
package_data={PACKAGENAME:['example_data/*.dat', 'example_data/*.simlib']}
)
|
<commit_before>from distutils.core import setup
import sys
import os
import re
PACKAGENAME = 'OpSimSummary'
packageDir = os.path.join(os.path.dirname(os.path.abspath(__file__)),
'opsimsummary')
versionFile = os.path.join(packageDir, 'version.py')
# Obtain the package version
with open(versionFile, 'r') as f:
s = f.read()
# Look up the string value assigned to __version__ in version.py using regexp
versionRegExp = re.compile("__VERSION__ = \"(.*?)\"")
# Assign to __version__
__version__ = versionRegExp.findall(s)[0]
print(__version__)
setup(# package information
name=PACKAGENAME,
version=__version__,
description='simple repo to study OpSim output summaries',
long_description=''' ''',
# What code to include as packages
packages=[PACKAGENAME],
packagedir={PACKAGENAME: 'opsimsummary'},
# What data to include as packages
include_package_data=True,
package_data={PACKAGENAME:['example_data/*.dat', 'example_data/*.simlib']}
)
<commit_msg>Revert "Revert "Changed back due to problems, will fix later""
This reverts commit 37fa1b22539dd31b8efc4c22b1ba9269822f77e1.
modified: setup.py<commit_after>from distutils.core import setup
import sys
import os
import re
PACKAGENAME = 'OpSimSummary'
packageDir = os.path.join(os.path.dirname(os.path.abspath(__file__)),
PACKAGENAME)
versionFile = os.path.join(packageDir, 'version.py')
# Obtain the package version
with open(versionFile, 'r') as f:
s = f.read()
# Look up the string value assigned to __version__ in version.py using regexp
versionRegExp = re.compile("__VERSION__ = \"(.*?)\"")
# Assign to __version__
__version__ = versionRegExp.findall(s)[0]
print(__version__)
setup(# package information
name=PACKAGENAME,
version=__version__,
description='simple repo to study OpSim output summaries',
long_description=''' ''',
# What code to include as packages
packages=[PACKAGENAME],
packagedir={PACKAGENAME: 'opsimsummary'},
# What data to include as packages
include_package_data=True,
package_data={PACKAGENAME:['example_data/*.dat', 'example_data/*.simlib']}
)
|
201a469ac08d9b366e425d5068ebe6dce1fc148b
|
setup.py
|
setup.py
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
with open('README.rst') as readme_file:
readme = readme_file.read()
requirements = [
'pyzmq',
'docopt',
'virtualenv',
'requests',
'Pillow',
]
setup(
name='tingbot',
version='0.3.0',
description="Python APIs to write apps for Tingbot",
long_description=readme,
author="Joe Rickerby",
author_email='joerick@mac.com',
url='https://github.com/tingbot/tingbot-python',
packages=[
'tingbot',
'tbtool'
],
package_dir={'tingbot': 'tingbot',
'tbtool': 'tbtool'},
include_package_data=True,
install_requires=requirements,
license="BSD",
zip_safe=False,
keywords='tingbot',
classifiers=[
'Intended Audience :: Developers',
'Natural Language :: English',
"Programming Language :: Python :: 2",
'Programming Language :: Python :: 2.7',
],
entry_points={
'console_scripts': [
'tbtool = tbtool.__main__:main',
],
},
test_suite='tests',
tests_require=['httpretty','mock'],
)
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
with open('README.rst') as readme_file:
readme = readme_file.read()
requirements = [
'pyzmq',
'docopt',
'virtualenv',
'requests',
'Pillow',
]
setup(
name='tingbot-python',
version='0.3.0',
description="Python APIs to write apps for Tingbot",
long_description=readme,
author="Joe Rickerby",
author_email='joerick@mac.com',
url='https://github.com/tingbot/tingbot-python',
packages=[
'tingbot',
'tbtool'
],
package_dir={'tingbot': 'tingbot',
'tbtool': 'tbtool'},
include_package_data=True,
install_requires=requirements,
license="BSD",
zip_safe=False,
keywords='tingbot',
classifiers=[
'Intended Audience :: Developers',
'Natural Language :: English',
"Programming Language :: Python :: 2",
'Programming Language :: Python :: 2.7',
],
entry_points={
'console_scripts': [
'tbtool = tbtool.__main__:main',
],
},
test_suite='tests',
tests_require=['httpretty','mock'],
)
|
Change package name to tingbot-python for submission to PyPI
|
Change package name to tingbot-python for submission to PyPI
|
Python
|
bsd-2-clause
|
furbrain/tingbot-python
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
with open('README.rst') as readme_file:
readme = readme_file.read()
requirements = [
'pyzmq',
'docopt',
'virtualenv',
'requests',
'Pillow',
]
setup(
name='tingbot',
version='0.3.0',
description="Python APIs to write apps for Tingbot",
long_description=readme,
author="Joe Rickerby",
author_email='joerick@mac.com',
url='https://github.com/tingbot/tingbot-python',
packages=[
'tingbot',
'tbtool'
],
package_dir={'tingbot': 'tingbot',
'tbtool': 'tbtool'},
include_package_data=True,
install_requires=requirements,
license="BSD",
zip_safe=False,
keywords='tingbot',
classifiers=[
'Intended Audience :: Developers',
'Natural Language :: English',
"Programming Language :: Python :: 2",
'Programming Language :: Python :: 2.7',
],
entry_points={
'console_scripts': [
'tbtool = tbtool.__main__:main',
],
},
test_suite='tests',
tests_require=['httpretty','mock'],
)
Change package name to tingbot-python for submission to PyPI
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
with open('README.rst') as readme_file:
readme = readme_file.read()
requirements = [
'pyzmq',
'docopt',
'virtualenv',
'requests',
'Pillow',
]
setup(
name='tingbot-python',
version='0.3.0',
description="Python APIs to write apps for Tingbot",
long_description=readme,
author="Joe Rickerby",
author_email='joerick@mac.com',
url='https://github.com/tingbot/tingbot-python',
packages=[
'tingbot',
'tbtool'
],
package_dir={'tingbot': 'tingbot',
'tbtool': 'tbtool'},
include_package_data=True,
install_requires=requirements,
license="BSD",
zip_safe=False,
keywords='tingbot',
classifiers=[
'Intended Audience :: Developers',
'Natural Language :: English',
"Programming Language :: Python :: 2",
'Programming Language :: Python :: 2.7',
],
entry_points={
'console_scripts': [
'tbtool = tbtool.__main__:main',
],
},
test_suite='tests',
tests_require=['httpretty','mock'],
)
|
<commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
with open('README.rst') as readme_file:
readme = readme_file.read()
requirements = [
'pyzmq',
'docopt',
'virtualenv',
'requests',
'Pillow',
]
setup(
name='tingbot',
version='0.3.0',
description="Python APIs to write apps for Tingbot",
long_description=readme,
author="Joe Rickerby",
author_email='joerick@mac.com',
url='https://github.com/tingbot/tingbot-python',
packages=[
'tingbot',
'tbtool'
],
package_dir={'tingbot': 'tingbot',
'tbtool': 'tbtool'},
include_package_data=True,
install_requires=requirements,
license="BSD",
zip_safe=False,
keywords='tingbot',
classifiers=[
'Intended Audience :: Developers',
'Natural Language :: English',
"Programming Language :: Python :: 2",
'Programming Language :: Python :: 2.7',
],
entry_points={
'console_scripts': [
'tbtool = tbtool.__main__:main',
],
},
test_suite='tests',
tests_require=['httpretty','mock'],
)
<commit_msg>Change package name to tingbot-python for submission to PyPI<commit_after>
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
with open('README.rst') as readme_file:
readme = readme_file.read()
requirements = [
'pyzmq',
'docopt',
'virtualenv',
'requests',
'Pillow',
]
setup(
name='tingbot-python',
version='0.3.0',
description="Python APIs to write apps for Tingbot",
long_description=readme,
author="Joe Rickerby",
author_email='joerick@mac.com',
url='https://github.com/tingbot/tingbot-python',
packages=[
'tingbot',
'tbtool'
],
package_dir={'tingbot': 'tingbot',
'tbtool': 'tbtool'},
include_package_data=True,
install_requires=requirements,
license="BSD",
zip_safe=False,
keywords='tingbot',
classifiers=[
'Intended Audience :: Developers',
'Natural Language :: English',
"Programming Language :: Python :: 2",
'Programming Language :: Python :: 2.7',
],
entry_points={
'console_scripts': [
'tbtool = tbtool.__main__:main',
],
},
test_suite='tests',
tests_require=['httpretty','mock'],
)
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
with open('README.rst') as readme_file:
readme = readme_file.read()
requirements = [
'pyzmq',
'docopt',
'virtualenv',
'requests',
'Pillow',
]
setup(
name='tingbot',
version='0.3.0',
description="Python APIs to write apps for Tingbot",
long_description=readme,
author="Joe Rickerby",
author_email='joerick@mac.com',
url='https://github.com/tingbot/tingbot-python',
packages=[
'tingbot',
'tbtool'
],
package_dir={'tingbot': 'tingbot',
'tbtool': 'tbtool'},
include_package_data=True,
install_requires=requirements,
license="BSD",
zip_safe=False,
keywords='tingbot',
classifiers=[
'Intended Audience :: Developers',
'Natural Language :: English',
"Programming Language :: Python :: 2",
'Programming Language :: Python :: 2.7',
],
entry_points={
'console_scripts': [
'tbtool = tbtool.__main__:main',
],
},
test_suite='tests',
tests_require=['httpretty','mock'],
)
Change package name to tingbot-python for submission to PyPI#!/usr/bin/env python
# -*- coding: utf-8 -*-
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
with open('README.rst') as readme_file:
readme = readme_file.read()
requirements = [
'pyzmq',
'docopt',
'virtualenv',
'requests',
'Pillow',
]
setup(
name='tingbot-python',
version='0.3.0',
description="Python APIs to write apps for Tingbot",
long_description=readme,
author="Joe Rickerby",
author_email='joerick@mac.com',
url='https://github.com/tingbot/tingbot-python',
packages=[
'tingbot',
'tbtool'
],
package_dir={'tingbot': 'tingbot',
'tbtool': 'tbtool'},
include_package_data=True,
install_requires=requirements,
license="BSD",
zip_safe=False,
keywords='tingbot',
classifiers=[
'Intended Audience :: Developers',
'Natural Language :: English',
"Programming Language :: Python :: 2",
'Programming Language :: Python :: 2.7',
],
entry_points={
'console_scripts': [
'tbtool = tbtool.__main__:main',
],
},
test_suite='tests',
tests_require=['httpretty','mock'],
)
|
<commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
with open('README.rst') as readme_file:
readme = readme_file.read()
requirements = [
'pyzmq',
'docopt',
'virtualenv',
'requests',
'Pillow',
]
setup(
name='tingbot',
version='0.3.0',
description="Python APIs to write apps for Tingbot",
long_description=readme,
author="Joe Rickerby",
author_email='joerick@mac.com',
url='https://github.com/tingbot/tingbot-python',
packages=[
'tingbot',
'tbtool'
],
package_dir={'tingbot': 'tingbot',
'tbtool': 'tbtool'},
include_package_data=True,
install_requires=requirements,
license="BSD",
zip_safe=False,
keywords='tingbot',
classifiers=[
'Intended Audience :: Developers',
'Natural Language :: English',
"Programming Language :: Python :: 2",
'Programming Language :: Python :: 2.7',
],
entry_points={
'console_scripts': [
'tbtool = tbtool.__main__:main',
],
},
test_suite='tests',
tests_require=['httpretty','mock'],
)
<commit_msg>Change package name to tingbot-python for submission to PyPI<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
with open('README.rst') as readme_file:
readme = readme_file.read()
requirements = [
'pyzmq',
'docopt',
'virtualenv',
'requests',
'Pillow',
]
setup(
name='tingbot-python',
version='0.3.0',
description="Python APIs to write apps for Tingbot",
long_description=readme,
author="Joe Rickerby",
author_email='joerick@mac.com',
url='https://github.com/tingbot/tingbot-python',
packages=[
'tingbot',
'tbtool'
],
package_dir={'tingbot': 'tingbot',
'tbtool': 'tbtool'},
include_package_data=True,
install_requires=requirements,
license="BSD",
zip_safe=False,
keywords='tingbot',
classifiers=[
'Intended Audience :: Developers',
'Natural Language :: English',
"Programming Language :: Python :: 2",
'Programming Language :: Python :: 2.7',
],
entry_points={
'console_scripts': [
'tbtool = tbtool.__main__:main',
],
},
test_suite='tests',
tests_require=['httpretty','mock'],
)
|
f9393f8ae2a0552e2d23862d42ca3ddd2a6267fd
|
Afterscripts/H264.720p/h264-720p.py
|
Afterscripts/H264.720p/h264-720p.py
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import hyperspeed.afterscript
title = 'H264.720p'
cmd = '-vsync 0 -movflags faststart -crf 20 -minrate 0 -maxrate 4M -bufsize 15M -filter_complex "scale=1280:720,setsar=1" -pix_fmt yuv420p -vcodec libx264 -c:a aac -b:a 160k -strict -2 -ac 2 -ar 44100 -acodec aac -af pan=stereo:c0=c0:c1=c1'
# Path relative to primary output folder of render:P
# default_output = '[project]_[render_name].[codec].mov'
# Absolute path:
default_output = '/Volumes/SAN3/Masters/[project]/[project]_[rendername]/[project]_[rendername].h264.720p.mov'
hyperspeed.afterscript.AfterscriptFfmpeg(__file__, cmd, default_output, title)
hyperspeed.afterscript.gtk.main()
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import hyperspeed.afterscript
title = 'H264.720p'
cmd = '-vsync 0 -movflags faststart -crf 20 -minrate 0 -maxrate 4M -bufsize 15M -filter_complex "scale=1280:720:out_color_matrix=bt709,setsar=1" -pix_fmt yuv420p -vcodec libx264 -c:a aac -b:a 160k -strict -2 -ac 2 -ar 44100 -acodec aac -af pan=stereo:c0=c0:c1=c1'
# Path relative to primary output folder of render:P
# default_output = '[project]_[render_name].[codec].mov'
# Absolute path:
default_output = '/Volumes/SAN3/Masters/[project]/[project]_[rendername]/[project]_[rendername].h264.720p.mov'
hyperspeed.afterscript.AfterscriptFfmpeg(__file__, cmd, default_output, title)
hyperspeed.afterscript.gtk.main()
|
Use 709 matrix when converting rgb to yuv
|
Use 709 matrix when converting rgb to yuv
|
Python
|
apache-2.0
|
bovesan/mistika-hyperspeed,bovesan/mistika-hyperspeed
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import hyperspeed.afterscript
title = 'H264.720p'
cmd = '-vsync 0 -movflags faststart -crf 20 -minrate 0 -maxrate 4M -bufsize 15M -filter_complex "scale=1280:720,setsar=1" -pix_fmt yuv420p -vcodec libx264 -c:a aac -b:a 160k -strict -2 -ac 2 -ar 44100 -acodec aac -af pan=stereo:c0=c0:c1=c1'
# Path relative to primary output folder of render:P
# default_output = '[project]_[render_name].[codec].mov'
# Absolute path:
default_output = '/Volumes/SAN3/Masters/[project]/[project]_[rendername]/[project]_[rendername].h264.720p.mov'
hyperspeed.afterscript.AfterscriptFfmpeg(__file__, cmd, default_output, title)
hyperspeed.afterscript.gtk.main()
Use 709 matrix when converting rgb to yuv
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import hyperspeed.afterscript
title = 'H264.720p'
cmd = '-vsync 0 -movflags faststart -crf 20 -minrate 0 -maxrate 4M -bufsize 15M -filter_complex "scale=1280:720:out_color_matrix=bt709,setsar=1" -pix_fmt yuv420p -vcodec libx264 -c:a aac -b:a 160k -strict -2 -ac 2 -ar 44100 -acodec aac -af pan=stereo:c0=c0:c1=c1'
# Path relative to primary output folder of render:P
# default_output = '[project]_[render_name].[codec].mov'
# Absolute path:
default_output = '/Volumes/SAN3/Masters/[project]/[project]_[rendername]/[project]_[rendername].h264.720p.mov'
hyperspeed.afterscript.AfterscriptFfmpeg(__file__, cmd, default_output, title)
hyperspeed.afterscript.gtk.main()
|
<commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
import hyperspeed.afterscript
title = 'H264.720p'
cmd = '-vsync 0 -movflags faststart -crf 20 -minrate 0 -maxrate 4M -bufsize 15M -filter_complex "scale=1280:720,setsar=1" -pix_fmt yuv420p -vcodec libx264 -c:a aac -b:a 160k -strict -2 -ac 2 -ar 44100 -acodec aac -af pan=stereo:c0=c0:c1=c1'
# Path relative to primary output folder of render:P
# default_output = '[project]_[render_name].[codec].mov'
# Absolute path:
default_output = '/Volumes/SAN3/Masters/[project]/[project]_[rendername]/[project]_[rendername].h264.720p.mov'
hyperspeed.afterscript.AfterscriptFfmpeg(__file__, cmd, default_output, title)
hyperspeed.afterscript.gtk.main()
<commit_msg>Use 709 matrix when converting rgb to yuv<commit_after>
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import hyperspeed.afterscript
title = 'H264.720p'
cmd = '-vsync 0 -movflags faststart -crf 20 -minrate 0 -maxrate 4M -bufsize 15M -filter_complex "scale=1280:720:out_color_matrix=bt709,setsar=1" -pix_fmt yuv420p -vcodec libx264 -c:a aac -b:a 160k -strict -2 -ac 2 -ar 44100 -acodec aac -af pan=stereo:c0=c0:c1=c1'
# Path relative to primary output folder of render:P
# default_output = '[project]_[render_name].[codec].mov'
# Absolute path:
default_output = '/Volumes/SAN3/Masters/[project]/[project]_[rendername]/[project]_[rendername].h264.720p.mov'
hyperspeed.afterscript.AfterscriptFfmpeg(__file__, cmd, default_output, title)
hyperspeed.afterscript.gtk.main()
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import hyperspeed.afterscript
title = 'H264.720p'
cmd = '-vsync 0 -movflags faststart -crf 20 -minrate 0 -maxrate 4M -bufsize 15M -filter_complex "scale=1280:720,setsar=1" -pix_fmt yuv420p -vcodec libx264 -c:a aac -b:a 160k -strict -2 -ac 2 -ar 44100 -acodec aac -af pan=stereo:c0=c0:c1=c1'
# Path relative to primary output folder of render:P
# default_output = '[project]_[render_name].[codec].mov'
# Absolute path:
default_output = '/Volumes/SAN3/Masters/[project]/[project]_[rendername]/[project]_[rendername].h264.720p.mov'
hyperspeed.afterscript.AfterscriptFfmpeg(__file__, cmd, default_output, title)
hyperspeed.afterscript.gtk.main()
Use 709 matrix when converting rgb to yuv#!/usr/bin/env python
# -*- coding: utf-8 -*-
import hyperspeed.afterscript
title = 'H264.720p'
cmd = '-vsync 0 -movflags faststart -crf 20 -minrate 0 -maxrate 4M -bufsize 15M -filter_complex "scale=1280:720:out_color_matrix=bt709,setsar=1" -pix_fmt yuv420p -vcodec libx264 -c:a aac -b:a 160k -strict -2 -ac 2 -ar 44100 -acodec aac -af pan=stereo:c0=c0:c1=c1'
# Path relative to primary output folder of render:P
# default_output = '[project]_[render_name].[codec].mov'
# Absolute path:
default_output = '/Volumes/SAN3/Masters/[project]/[project]_[rendername]/[project]_[rendername].h264.720p.mov'
hyperspeed.afterscript.AfterscriptFfmpeg(__file__, cmd, default_output, title)
hyperspeed.afterscript.gtk.main()
|
<commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
import hyperspeed.afterscript
title = 'H264.720p'
cmd = '-vsync 0 -movflags faststart -crf 20 -minrate 0 -maxrate 4M -bufsize 15M -filter_complex "scale=1280:720,setsar=1" -pix_fmt yuv420p -vcodec libx264 -c:a aac -b:a 160k -strict -2 -ac 2 -ar 44100 -acodec aac -af pan=stereo:c0=c0:c1=c1'
# Path relative to primary output folder of render:P
# default_output = '[project]_[render_name].[codec].mov'
# Absolute path:
default_output = '/Volumes/SAN3/Masters/[project]/[project]_[rendername]/[project]_[rendername].h264.720p.mov'
hyperspeed.afterscript.AfterscriptFfmpeg(__file__, cmd, default_output, title)
hyperspeed.afterscript.gtk.main()
<commit_msg>Use 709 matrix when converting rgb to yuv<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-
import hyperspeed.afterscript
title = 'H264.720p'
cmd = '-vsync 0 -movflags faststart -crf 20 -minrate 0 -maxrate 4M -bufsize 15M -filter_complex "scale=1280:720:out_color_matrix=bt709,setsar=1" -pix_fmt yuv420p -vcodec libx264 -c:a aac -b:a 160k -strict -2 -ac 2 -ar 44100 -acodec aac -af pan=stereo:c0=c0:c1=c1'
# Path relative to primary output folder of render:P
# default_output = '[project]_[render_name].[codec].mov'
# Absolute path:
default_output = '/Volumes/SAN3/Masters/[project]/[project]_[rendername]/[project]_[rendername].h264.720p.mov'
hyperspeed.afterscript.AfterscriptFfmpeg(__file__, cmd, default_output, title)
hyperspeed.afterscript.gtk.main()
|
6bb517b467feb30b6af6d5b698209d356a2a4616
|
setup.py
|
setup.py
|
from setuptools import setup, find_packages
setup(
name='Lektor',
version='2.0.dev0',
url='http://github.com/lektor/lektor/',
description='A static content management system.',
license='BSD',
author='Armin Ronacher',
author_email='armin.ronacher@active-4.com',
packages=find_packages(),
include_package_data=True,
zip_safe=False,
platforms='any',
install_requires=[
'Jinja2>=2.4',
'click>=6.0',
'watchdog',
'mistune',
'Flask',
'EXIFRead',
'inifile',
'Babel',
'setuptools',
'pip',
'requests[security]',
],
classifiers=[
'Development Status :: 4 - Beta',
'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'
],
entry_points='''
[console_scripts]
lektor=lektor.cli:main
'''
)
|
from setuptools import setup, find_packages
setup(
name='Lektor',
version='2.0.dev0',
url='http://github.com/lektor/lektor/',
description='A static content management system.',
license='BSD',
author='Armin Ronacher',
author_email='armin.ronacher@active-4.com',
packages=find_packages(),
include_package_data=True,
zip_safe=False,
platforms='any',
install_requires=[
'Jinja2>=2.4',
'click>=6.0',
'watchdog',
'mistune',
'Flask',
'EXIFRead',
'inifile',
'Babel',
'setuptools',
'pip',
'requests[security]',
],
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'
],
entry_points='''
[console_scripts]
lektor=lektor.cli:main
'''
)
|
Remove beta label for 2.0
|
Remove beta label for 2.0
|
Python
|
bsd-3-clause
|
bameda/lektor,bameda/lektor,lektor/lektor,bameda/lektor,lektor/lektor,lektor/lektor,bameda/lektor,lektor/lektor
|
from setuptools import setup, find_packages
setup(
name='Lektor',
version='2.0.dev0',
url='http://github.com/lektor/lektor/',
description='A static content management system.',
license='BSD',
author='Armin Ronacher',
author_email='armin.ronacher@active-4.com',
packages=find_packages(),
include_package_data=True,
zip_safe=False,
platforms='any',
install_requires=[
'Jinja2>=2.4',
'click>=6.0',
'watchdog',
'mistune',
'Flask',
'EXIFRead',
'inifile',
'Babel',
'setuptools',
'pip',
'requests[security]',
],
classifiers=[
'Development Status :: 4 - Beta',
'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'
],
entry_points='''
[console_scripts]
lektor=lektor.cli:main
'''
)
Remove beta label for 2.0
|
from setuptools import setup, find_packages
setup(
name='Lektor',
version='2.0.dev0',
url='http://github.com/lektor/lektor/',
description='A static content management system.',
license='BSD',
author='Armin Ronacher',
author_email='armin.ronacher@active-4.com',
packages=find_packages(),
include_package_data=True,
zip_safe=False,
platforms='any',
install_requires=[
'Jinja2>=2.4',
'click>=6.0',
'watchdog',
'mistune',
'Flask',
'EXIFRead',
'inifile',
'Babel',
'setuptools',
'pip',
'requests[security]',
],
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'
],
entry_points='''
[console_scripts]
lektor=lektor.cli:main
'''
)
|
<commit_before>from setuptools import setup, find_packages
setup(
name='Lektor',
version='2.0.dev0',
url='http://github.com/lektor/lektor/',
description='A static content management system.',
license='BSD',
author='Armin Ronacher',
author_email='armin.ronacher@active-4.com',
packages=find_packages(),
include_package_data=True,
zip_safe=False,
platforms='any',
install_requires=[
'Jinja2>=2.4',
'click>=6.0',
'watchdog',
'mistune',
'Flask',
'EXIFRead',
'inifile',
'Babel',
'setuptools',
'pip',
'requests[security]',
],
classifiers=[
'Development Status :: 4 - Beta',
'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'
],
entry_points='''
[console_scripts]
lektor=lektor.cli:main
'''
)
<commit_msg>Remove beta label for 2.0<commit_after>
|
from setuptools import setup, find_packages
setup(
name='Lektor',
version='2.0.dev0',
url='http://github.com/lektor/lektor/',
description='A static content management system.',
license='BSD',
author='Armin Ronacher',
author_email='armin.ronacher@active-4.com',
packages=find_packages(),
include_package_data=True,
zip_safe=False,
platforms='any',
install_requires=[
'Jinja2>=2.4',
'click>=6.0',
'watchdog',
'mistune',
'Flask',
'EXIFRead',
'inifile',
'Babel',
'setuptools',
'pip',
'requests[security]',
],
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'
],
entry_points='''
[console_scripts]
lektor=lektor.cli:main
'''
)
|
from setuptools import setup, find_packages
setup(
name='Lektor',
version='2.0.dev0',
url='http://github.com/lektor/lektor/',
description='A static content management system.',
license='BSD',
author='Armin Ronacher',
author_email='armin.ronacher@active-4.com',
packages=find_packages(),
include_package_data=True,
zip_safe=False,
platforms='any',
install_requires=[
'Jinja2>=2.4',
'click>=6.0',
'watchdog',
'mistune',
'Flask',
'EXIFRead',
'inifile',
'Babel',
'setuptools',
'pip',
'requests[security]',
],
classifiers=[
'Development Status :: 4 - Beta',
'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'
],
entry_points='''
[console_scripts]
lektor=lektor.cli:main
'''
)
Remove beta label for 2.0from setuptools import setup, find_packages
setup(
name='Lektor',
version='2.0.dev0',
url='http://github.com/lektor/lektor/',
description='A static content management system.',
license='BSD',
author='Armin Ronacher',
author_email='armin.ronacher@active-4.com',
packages=find_packages(),
include_package_data=True,
zip_safe=False,
platforms='any',
install_requires=[
'Jinja2>=2.4',
'click>=6.0',
'watchdog',
'mistune',
'Flask',
'EXIFRead',
'inifile',
'Babel',
'setuptools',
'pip',
'requests[security]',
],
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'
],
entry_points='''
[console_scripts]
lektor=lektor.cli:main
'''
)
|
<commit_before>from setuptools import setup, find_packages
setup(
name='Lektor',
version='2.0.dev0',
url='http://github.com/lektor/lektor/',
description='A static content management system.',
license='BSD',
author='Armin Ronacher',
author_email='armin.ronacher@active-4.com',
packages=find_packages(),
include_package_data=True,
zip_safe=False,
platforms='any',
install_requires=[
'Jinja2>=2.4',
'click>=6.0',
'watchdog',
'mistune',
'Flask',
'EXIFRead',
'inifile',
'Babel',
'setuptools',
'pip',
'requests[security]',
],
classifiers=[
'Development Status :: 4 - Beta',
'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'
],
entry_points='''
[console_scripts]
lektor=lektor.cli:main
'''
)
<commit_msg>Remove beta label for 2.0<commit_after>from setuptools import setup, find_packages
setup(
name='Lektor',
version='2.0.dev0',
url='http://github.com/lektor/lektor/',
description='A static content management system.',
license='BSD',
author='Armin Ronacher',
author_email='armin.ronacher@active-4.com',
packages=find_packages(),
include_package_data=True,
zip_safe=False,
platforms='any',
install_requires=[
'Jinja2>=2.4',
'click>=6.0',
'watchdog',
'mistune',
'Flask',
'EXIFRead',
'inifile',
'Babel',
'setuptools',
'pip',
'requests[security]',
],
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'
],
entry_points='''
[console_scripts]
lektor=lektor.cli:main
'''
)
|
9b154aaa839bab65244dbba83244473f2932cadb
|
tests/test_parsing.py
|
tests/test_parsing.py
|
#!/usr/bin/env python
#encoding:utf-8
#author:dbr/Ben
#project:tvnamer
#repository:http://github.com/dbr/tvnamer
#license:Creative Commons GNU GPL v2
# http://creativecommons.org/licenses/GPL/2.0/
"""Test tvnamer's filename parser
"""
import os
import sys
import unittest
sys.path.append(os.path.join(os.path.abspath(sys.path[0]), ".."))
from utils import FileParser, warn
from tvnamer_exceptions import InvalidFilename
from test_files import files
class test_filenames(unittest.TestCase):
def setUp(self):
pass
def test_go(self):
for category, testcases in files.items():
for curtest in testcases:
parser = FileParser(curtest['input'])
theep = parser.parse()
self.assertEquals(theep.seasonnumber, curtest['seasonnumber'])
self.assertEquals(theep.episodenumber, curtest['episodenumber'])
if __name__ == '__main__':
unittest.main()
|
#!/usr/bin/env python
#encoding:utf-8
#author:dbr/Ben
#project:tvnamer
#repository:http://github.com/dbr/tvnamer
#license:Creative Commons GNU GPL v2
# http://creativecommons.org/licenses/GPL/2.0/
"""Test tvnamer's filename parser
"""
import os
import sys
from copy import copy
import unittest
sys.path.append(os.path.join(os.path.abspath(sys.path[0]), ".."))
from utils import FileParser
from test_files import files
def check_test(curtest):
"""Runs test case, used by test_generator
"""
parser = FileParser(curtest['input'])
theep = parser.parse()
assert theep.seriesname.lower() == curtest['seriesname'].lower()
assert theep.seasonnumber == curtest['seasonnumber']
assert theep.episodenumber == curtest['episodenumber']
def test_generator():
"""Generates test for each test case in test_files.py
"""
for category, testcases in files.items():
for testindex, curtest in enumerate(testcases):
cur_tester = lambda x: check_test(x)
cur_tester.description = '%s_%d' % (category, testindex)
yield (cur_tester, curtest)
if __name__ == '__main__':
import nose
nose.main()
|
Use nose's test generator function
|
Use nose's test generator function
|
Python
|
unlicense
|
m42e/tvnamer,dbr/tvnamer,lahwaacz/tvnamer
|
#!/usr/bin/env python
#encoding:utf-8
#author:dbr/Ben
#project:tvnamer
#repository:http://github.com/dbr/tvnamer
#license:Creative Commons GNU GPL v2
# http://creativecommons.org/licenses/GPL/2.0/
"""Test tvnamer's filename parser
"""
import os
import sys
import unittest
sys.path.append(os.path.join(os.path.abspath(sys.path[0]), ".."))
from utils import FileParser, warn
from tvnamer_exceptions import InvalidFilename
from test_files import files
class test_filenames(unittest.TestCase):
def setUp(self):
pass
def test_go(self):
for category, testcases in files.items():
for curtest in testcases:
parser = FileParser(curtest['input'])
theep = parser.parse()
self.assertEquals(theep.seasonnumber, curtest['seasonnumber'])
self.assertEquals(theep.episodenumber, curtest['episodenumber'])
if __name__ == '__main__':
unittest.main()Use nose's test generator function
|
#!/usr/bin/env python
#encoding:utf-8
#author:dbr/Ben
#project:tvnamer
#repository:http://github.com/dbr/tvnamer
#license:Creative Commons GNU GPL v2
# http://creativecommons.org/licenses/GPL/2.0/
"""Test tvnamer's filename parser
"""
import os
import sys
from copy import copy
import unittest
sys.path.append(os.path.join(os.path.abspath(sys.path[0]), ".."))
from utils import FileParser
from test_files import files
def check_test(curtest):
"""Runs test case, used by test_generator
"""
parser = FileParser(curtest['input'])
theep = parser.parse()
assert theep.seriesname.lower() == curtest['seriesname'].lower()
assert theep.seasonnumber == curtest['seasonnumber']
assert theep.episodenumber == curtest['episodenumber']
def test_generator():
"""Generates test for each test case in test_files.py
"""
for category, testcases in files.items():
for testindex, curtest in enumerate(testcases):
cur_tester = lambda x: check_test(x)
cur_tester.description = '%s_%d' % (category, testindex)
yield (cur_tester, curtest)
if __name__ == '__main__':
import nose
nose.main()
|
<commit_before>#!/usr/bin/env python
#encoding:utf-8
#author:dbr/Ben
#project:tvnamer
#repository:http://github.com/dbr/tvnamer
#license:Creative Commons GNU GPL v2
# http://creativecommons.org/licenses/GPL/2.0/
"""Test tvnamer's filename parser
"""
import os
import sys
import unittest
sys.path.append(os.path.join(os.path.abspath(sys.path[0]), ".."))
from utils import FileParser, warn
from tvnamer_exceptions import InvalidFilename
from test_files import files
class test_filenames(unittest.TestCase):
def setUp(self):
pass
def test_go(self):
for category, testcases in files.items():
for curtest in testcases:
parser = FileParser(curtest['input'])
theep = parser.parse()
self.assertEquals(theep.seasonnumber, curtest['seasonnumber'])
self.assertEquals(theep.episodenumber, curtest['episodenumber'])
if __name__ == '__main__':
unittest.main()<commit_msg>Use nose's test generator function<commit_after>
|
#!/usr/bin/env python
#encoding:utf-8
#author:dbr/Ben
#project:tvnamer
#repository:http://github.com/dbr/tvnamer
#license:Creative Commons GNU GPL v2
# http://creativecommons.org/licenses/GPL/2.0/
"""Test tvnamer's filename parser
"""
import os
import sys
from copy import copy
import unittest
sys.path.append(os.path.join(os.path.abspath(sys.path[0]), ".."))
from utils import FileParser
from test_files import files
def check_test(curtest):
"""Runs test case, used by test_generator
"""
parser = FileParser(curtest['input'])
theep = parser.parse()
assert theep.seriesname.lower() == curtest['seriesname'].lower()
assert theep.seasonnumber == curtest['seasonnumber']
assert theep.episodenumber == curtest['episodenumber']
def test_generator():
"""Generates test for each test case in test_files.py
"""
for category, testcases in files.items():
for testindex, curtest in enumerate(testcases):
cur_tester = lambda x: check_test(x)
cur_tester.description = '%s_%d' % (category, testindex)
yield (cur_tester, curtest)
if __name__ == '__main__':
import nose
nose.main()
|
#!/usr/bin/env python
#encoding:utf-8
#author:dbr/Ben
#project:tvnamer
#repository:http://github.com/dbr/tvnamer
#license:Creative Commons GNU GPL v2
# http://creativecommons.org/licenses/GPL/2.0/
"""Test tvnamer's filename parser
"""
import os
import sys
import unittest
sys.path.append(os.path.join(os.path.abspath(sys.path[0]), ".."))
from utils import FileParser, warn
from tvnamer_exceptions import InvalidFilename
from test_files import files
class test_filenames(unittest.TestCase):
def setUp(self):
pass
def test_go(self):
for category, testcases in files.items():
for curtest in testcases:
parser = FileParser(curtest['input'])
theep = parser.parse()
self.assertEquals(theep.seasonnumber, curtest['seasonnumber'])
self.assertEquals(theep.episodenumber, curtest['episodenumber'])
if __name__ == '__main__':
unittest.main()Use nose's test generator function#!/usr/bin/env python
#encoding:utf-8
#author:dbr/Ben
#project:tvnamer
#repository:http://github.com/dbr/tvnamer
#license:Creative Commons GNU GPL v2
# http://creativecommons.org/licenses/GPL/2.0/
"""Test tvnamer's filename parser
"""
import os
import sys
from copy import copy
import unittest
sys.path.append(os.path.join(os.path.abspath(sys.path[0]), ".."))
from utils import FileParser
from test_files import files
def check_test(curtest):
"""Runs test case, used by test_generator
"""
parser = FileParser(curtest['input'])
theep = parser.parse()
assert theep.seriesname.lower() == curtest['seriesname'].lower()
assert theep.seasonnumber == curtest['seasonnumber']
assert theep.episodenumber == curtest['episodenumber']
def test_generator():
"""Generates test for each test case in test_files.py
"""
for category, testcases in files.items():
for testindex, curtest in enumerate(testcases):
cur_tester = lambda x: check_test(x)
cur_tester.description = '%s_%d' % (category, testindex)
yield (cur_tester, curtest)
if __name__ == '__main__':
import nose
nose.main()
|
<commit_before>#!/usr/bin/env python
#encoding:utf-8
#author:dbr/Ben
#project:tvnamer
#repository:http://github.com/dbr/tvnamer
#license:Creative Commons GNU GPL v2
# http://creativecommons.org/licenses/GPL/2.0/
"""Test tvnamer's filename parser
"""
import os
import sys
import unittest
sys.path.append(os.path.join(os.path.abspath(sys.path[0]), ".."))
from utils import FileParser, warn
from tvnamer_exceptions import InvalidFilename
from test_files import files
class test_filenames(unittest.TestCase):
def setUp(self):
pass
def test_go(self):
for category, testcases in files.items():
for curtest in testcases:
parser = FileParser(curtest['input'])
theep = parser.parse()
self.assertEquals(theep.seasonnumber, curtest['seasonnumber'])
self.assertEquals(theep.episodenumber, curtest['episodenumber'])
if __name__ == '__main__':
unittest.main()<commit_msg>Use nose's test generator function<commit_after>#!/usr/bin/env python
#encoding:utf-8
#author:dbr/Ben
#project:tvnamer
#repository:http://github.com/dbr/tvnamer
#license:Creative Commons GNU GPL v2
# http://creativecommons.org/licenses/GPL/2.0/
"""Test tvnamer's filename parser
"""
import os
import sys
from copy import copy
import unittest
sys.path.append(os.path.join(os.path.abspath(sys.path[0]), ".."))
from utils import FileParser
from test_files import files
def check_test(curtest):
"""Runs test case, used by test_generator
"""
parser = FileParser(curtest['input'])
theep = parser.parse()
assert theep.seriesname.lower() == curtest['seriesname'].lower()
assert theep.seasonnumber == curtest['seasonnumber']
assert theep.episodenumber == curtest['episodenumber']
def test_generator():
"""Generates test for each test case in test_files.py
"""
for category, testcases in files.items():
for testindex, curtest in enumerate(testcases):
cur_tester = lambda x: check_test(x)
cur_tester.description = '%s_%d' % (category, testindex)
yield (cur_tester, curtest)
if __name__ == '__main__':
import nose
nose.main()
|
a23fbfb83e72b4a7ccc69a55c262f02c5b0cd592
|
setup.py
|
setup.py
|
from setuptools import setup, find_packages
setup(
name='zeit.content.gallery',
version='2.4.2dev',
author='gocept',
author_email='mail@gocept.com',
url='https://svn.gocept.com/repos/gocept-int/zeit.cms',
description="ZEIT portraitbox",
packages=find_packages('src'),
package_dir = {'': 'src'},
include_package_data = True,
zip_safe=False,
license='gocept proprietary',
namespace_packages = ['zeit', 'zeit.content'],
install_requires=[
'PILwoTk',
'gocept.form',
'setuptools',
'zeit.cms>=1.46dev',
'zeit.imp>=0.12dev',
'zeit.wysiwyg',
'zope.app.appsetup',
'zope.app.testing',
'zope.component',
'zope.formlib',
'zope.interface',
'zope.publisher',
'zope.security',
'zope.testing',
],
)
|
from setuptools import setup, find_packages
setup(
name='zeit.content.gallery',
version='2.4.2dev',
author='gocept',
author_email='mail@gocept.com',
url='https://svn.gocept.com/repos/gocept-int/zeit.cms',
description="ZEIT portraitbox",
packages=find_packages('src'),
package_dir = {'': 'src'},
include_package_data = True,
zip_safe=False,
license='gocept proprietary',
namespace_packages = ['zeit', 'zeit.content'],
install_requires=[
'Pillow',
'gocept.form',
'setuptools',
'zeit.cms>=1.46dev',
'zeit.imp>=0.12dev',
'zeit.wysiwyg',
'zope.app.appsetup',
'zope.app.testing',
'zope.component',
'zope.formlib',
'zope.interface',
'zope.publisher',
'zope.security',
'zope.testing',
],
)
|
Use Pillow instead of PILwoTK
|
Use Pillow instead of PILwoTK
|
Python
|
bsd-3-clause
|
ZeitOnline/zeit.content.gallery,ZeitOnline/zeit.content.gallery
|
from setuptools import setup, find_packages
setup(
name='zeit.content.gallery',
version='2.4.2dev',
author='gocept',
author_email='mail@gocept.com',
url='https://svn.gocept.com/repos/gocept-int/zeit.cms',
description="ZEIT portraitbox",
packages=find_packages('src'),
package_dir = {'': 'src'},
include_package_data = True,
zip_safe=False,
license='gocept proprietary',
namespace_packages = ['zeit', 'zeit.content'],
install_requires=[
'PILwoTk',
'gocept.form',
'setuptools',
'zeit.cms>=1.46dev',
'zeit.imp>=0.12dev',
'zeit.wysiwyg',
'zope.app.appsetup',
'zope.app.testing',
'zope.component',
'zope.formlib',
'zope.interface',
'zope.publisher',
'zope.security',
'zope.testing',
],
)
Use Pillow instead of PILwoTK
|
from setuptools import setup, find_packages
setup(
name='zeit.content.gallery',
version='2.4.2dev',
author='gocept',
author_email='mail@gocept.com',
url='https://svn.gocept.com/repos/gocept-int/zeit.cms',
description="ZEIT portraitbox",
packages=find_packages('src'),
package_dir = {'': 'src'},
include_package_data = True,
zip_safe=False,
license='gocept proprietary',
namespace_packages = ['zeit', 'zeit.content'],
install_requires=[
'Pillow',
'gocept.form',
'setuptools',
'zeit.cms>=1.46dev',
'zeit.imp>=0.12dev',
'zeit.wysiwyg',
'zope.app.appsetup',
'zope.app.testing',
'zope.component',
'zope.formlib',
'zope.interface',
'zope.publisher',
'zope.security',
'zope.testing',
],
)
|
<commit_before>from setuptools import setup, find_packages
setup(
name='zeit.content.gallery',
version='2.4.2dev',
author='gocept',
author_email='mail@gocept.com',
url='https://svn.gocept.com/repos/gocept-int/zeit.cms',
description="ZEIT portraitbox",
packages=find_packages('src'),
package_dir = {'': 'src'},
include_package_data = True,
zip_safe=False,
license='gocept proprietary',
namespace_packages = ['zeit', 'zeit.content'],
install_requires=[
'PILwoTk',
'gocept.form',
'setuptools',
'zeit.cms>=1.46dev',
'zeit.imp>=0.12dev',
'zeit.wysiwyg',
'zope.app.appsetup',
'zope.app.testing',
'zope.component',
'zope.formlib',
'zope.interface',
'zope.publisher',
'zope.security',
'zope.testing',
],
)
<commit_msg>Use Pillow instead of PILwoTK<commit_after>
|
from setuptools import setup, find_packages
setup(
name='zeit.content.gallery',
version='2.4.2dev',
author='gocept',
author_email='mail@gocept.com',
url='https://svn.gocept.com/repos/gocept-int/zeit.cms',
description="ZEIT portraitbox",
packages=find_packages('src'),
package_dir = {'': 'src'},
include_package_data = True,
zip_safe=False,
license='gocept proprietary',
namespace_packages = ['zeit', 'zeit.content'],
install_requires=[
'Pillow',
'gocept.form',
'setuptools',
'zeit.cms>=1.46dev',
'zeit.imp>=0.12dev',
'zeit.wysiwyg',
'zope.app.appsetup',
'zope.app.testing',
'zope.component',
'zope.formlib',
'zope.interface',
'zope.publisher',
'zope.security',
'zope.testing',
],
)
|
from setuptools import setup, find_packages
setup(
name='zeit.content.gallery',
version='2.4.2dev',
author='gocept',
author_email='mail@gocept.com',
url='https://svn.gocept.com/repos/gocept-int/zeit.cms',
description="ZEIT portraitbox",
packages=find_packages('src'),
package_dir = {'': 'src'},
include_package_data = True,
zip_safe=False,
license='gocept proprietary',
namespace_packages = ['zeit', 'zeit.content'],
install_requires=[
'PILwoTk',
'gocept.form',
'setuptools',
'zeit.cms>=1.46dev',
'zeit.imp>=0.12dev',
'zeit.wysiwyg',
'zope.app.appsetup',
'zope.app.testing',
'zope.component',
'zope.formlib',
'zope.interface',
'zope.publisher',
'zope.security',
'zope.testing',
],
)
Use Pillow instead of PILwoTKfrom setuptools import setup, find_packages
setup(
name='zeit.content.gallery',
version='2.4.2dev',
author='gocept',
author_email='mail@gocept.com',
url='https://svn.gocept.com/repos/gocept-int/zeit.cms',
description="ZEIT portraitbox",
packages=find_packages('src'),
package_dir = {'': 'src'},
include_package_data = True,
zip_safe=False,
license='gocept proprietary',
namespace_packages = ['zeit', 'zeit.content'],
install_requires=[
'Pillow',
'gocept.form',
'setuptools',
'zeit.cms>=1.46dev',
'zeit.imp>=0.12dev',
'zeit.wysiwyg',
'zope.app.appsetup',
'zope.app.testing',
'zope.component',
'zope.formlib',
'zope.interface',
'zope.publisher',
'zope.security',
'zope.testing',
],
)
|
<commit_before>from setuptools import setup, find_packages
setup(
name='zeit.content.gallery',
version='2.4.2dev',
author='gocept',
author_email='mail@gocept.com',
url='https://svn.gocept.com/repos/gocept-int/zeit.cms',
description="ZEIT portraitbox",
packages=find_packages('src'),
package_dir = {'': 'src'},
include_package_data = True,
zip_safe=False,
license='gocept proprietary',
namespace_packages = ['zeit', 'zeit.content'],
install_requires=[
'PILwoTk',
'gocept.form',
'setuptools',
'zeit.cms>=1.46dev',
'zeit.imp>=0.12dev',
'zeit.wysiwyg',
'zope.app.appsetup',
'zope.app.testing',
'zope.component',
'zope.formlib',
'zope.interface',
'zope.publisher',
'zope.security',
'zope.testing',
],
)
<commit_msg>Use Pillow instead of PILwoTK<commit_after>from setuptools import setup, find_packages
setup(
name='zeit.content.gallery',
version='2.4.2dev',
author='gocept',
author_email='mail@gocept.com',
url='https://svn.gocept.com/repos/gocept-int/zeit.cms',
description="ZEIT portraitbox",
packages=find_packages('src'),
package_dir = {'': 'src'},
include_package_data = True,
zip_safe=False,
license='gocept proprietary',
namespace_packages = ['zeit', 'zeit.content'],
install_requires=[
'Pillow',
'gocept.form',
'setuptools',
'zeit.cms>=1.46dev',
'zeit.imp>=0.12dev',
'zeit.wysiwyg',
'zope.app.appsetup',
'zope.app.testing',
'zope.component',
'zope.formlib',
'zope.interface',
'zope.publisher',
'zope.security',
'zope.testing',
],
)
|
616c0b0722d7b81cad1b4f8d2cfaec24dcfcbf71
|
setup.py
|
setup.py
|
"""setup.py"""
from codecs import open as codecs_open
from setuptools import setup
with codecs_open('README.md', 'r', 'utf-8') as f:
README = f.read()
with codecs_open('HISTORY.md', 'r', 'utf-8') as f:
HISTORY = f.read()
setup(
name='jsonrpcserver',
version='3.5.3',
description='Process JSON-RPC requests',
long_description=README + '\n\n' + HISTORY,
author='Beau Barker',
author_email='beauinmelbourne@gmail.com',
url='https://github.com/bcb/jsonrpcserver',
license='MIT',
packages=['jsonrpcserver'],
package_data={'jsonrpcserver': ['request-schema.json']},
include_package_data=True,
install_requires=['jsonschema', 'six', 'funcsigs'],
extras_require={
'tox': ['tox'],
'examples': [
'aiohttp',
'aiozmq',
'flask',
'flask-socketio',
'pyzmq',
'tornado',
'websockets',
'werkzeug',
]
},
classifiers=[
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6'
],
)
|
"""setup.py"""
from codecs import open as codecs_open
from setuptools import setup
with codecs_open('README.md', 'r', 'utf-8') as f:
README = f.read()
with codecs_open('HISTORY.md', 'r', 'utf-8') as f:
HISTORY = f.read()
setup(
author='Beau Barker',
author_email='beauinmelbourne@gmail.com',
classifiers=[
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6'
],
description='Process JSON-RPC requests',
extras_require={
'tox': ['tox'],
'examples': [
'aiohttp',
'aiozmq',
'flask',
'flask-socketio',
'pyzmq',
'tornado',
'websockets',
'werkzeug',
]
},
include_package_data=True,
install_requires=['jsonschema', 'six', 'funcsigs'],
license='MIT',
long_description=README + '\n\n' + HISTORY,
long_description_content_type='text/markdown',
name='jsonrpcserver',
package_data={'jsonrpcserver': ['request-schema.json']},
packages=['jsonrpcserver'],
url='https://github.com/bcb/jsonrpcserver',
version='3.5.3'
)
|
Set readme content type to markdown
|
Set readme content type to markdown
|
Python
|
mit
|
bcb/jsonrpcserver
|
"""setup.py"""
from codecs import open as codecs_open
from setuptools import setup
with codecs_open('README.md', 'r', 'utf-8') as f:
README = f.read()
with codecs_open('HISTORY.md', 'r', 'utf-8') as f:
HISTORY = f.read()
setup(
name='jsonrpcserver',
version='3.5.3',
description='Process JSON-RPC requests',
long_description=README + '\n\n' + HISTORY,
author='Beau Barker',
author_email='beauinmelbourne@gmail.com',
url='https://github.com/bcb/jsonrpcserver',
license='MIT',
packages=['jsonrpcserver'],
package_data={'jsonrpcserver': ['request-schema.json']},
include_package_data=True,
install_requires=['jsonschema', 'six', 'funcsigs'],
extras_require={
'tox': ['tox'],
'examples': [
'aiohttp',
'aiozmq',
'flask',
'flask-socketio',
'pyzmq',
'tornado',
'websockets',
'werkzeug',
]
},
classifiers=[
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6'
],
)
Set readme content type to markdown
|
"""setup.py"""
from codecs import open as codecs_open
from setuptools import setup
with codecs_open('README.md', 'r', 'utf-8') as f:
README = f.read()
with codecs_open('HISTORY.md', 'r', 'utf-8') as f:
HISTORY = f.read()
setup(
author='Beau Barker',
author_email='beauinmelbourne@gmail.com',
classifiers=[
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6'
],
description='Process JSON-RPC requests',
extras_require={
'tox': ['tox'],
'examples': [
'aiohttp',
'aiozmq',
'flask',
'flask-socketio',
'pyzmq',
'tornado',
'websockets',
'werkzeug',
]
},
include_package_data=True,
install_requires=['jsonschema', 'six', 'funcsigs'],
license='MIT',
long_description=README + '\n\n' + HISTORY,
long_description_content_type='text/markdown',
name='jsonrpcserver',
package_data={'jsonrpcserver': ['request-schema.json']},
packages=['jsonrpcserver'],
url='https://github.com/bcb/jsonrpcserver',
version='3.5.3'
)
|
<commit_before>"""setup.py"""
from codecs import open as codecs_open
from setuptools import setup
with codecs_open('README.md', 'r', 'utf-8') as f:
README = f.read()
with codecs_open('HISTORY.md', 'r', 'utf-8') as f:
HISTORY = f.read()
setup(
name='jsonrpcserver',
version='3.5.3',
description='Process JSON-RPC requests',
long_description=README + '\n\n' + HISTORY,
author='Beau Barker',
author_email='beauinmelbourne@gmail.com',
url='https://github.com/bcb/jsonrpcserver',
license='MIT',
packages=['jsonrpcserver'],
package_data={'jsonrpcserver': ['request-schema.json']},
include_package_data=True,
install_requires=['jsonschema', 'six', 'funcsigs'],
extras_require={
'tox': ['tox'],
'examples': [
'aiohttp',
'aiozmq',
'flask',
'flask-socketio',
'pyzmq',
'tornado',
'websockets',
'werkzeug',
]
},
classifiers=[
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6'
],
)
<commit_msg>Set readme content type to markdown<commit_after>
|
"""setup.py"""
from codecs import open as codecs_open
from setuptools import setup
with codecs_open('README.md', 'r', 'utf-8') as f:
README = f.read()
with codecs_open('HISTORY.md', 'r', 'utf-8') as f:
HISTORY = f.read()
setup(
author='Beau Barker',
author_email='beauinmelbourne@gmail.com',
classifiers=[
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6'
],
description='Process JSON-RPC requests',
extras_require={
'tox': ['tox'],
'examples': [
'aiohttp',
'aiozmq',
'flask',
'flask-socketio',
'pyzmq',
'tornado',
'websockets',
'werkzeug',
]
},
include_package_data=True,
install_requires=['jsonschema', 'six', 'funcsigs'],
license='MIT',
long_description=README + '\n\n' + HISTORY,
long_description_content_type='text/markdown',
name='jsonrpcserver',
package_data={'jsonrpcserver': ['request-schema.json']},
packages=['jsonrpcserver'],
url='https://github.com/bcb/jsonrpcserver',
version='3.5.3'
)
|
"""setup.py"""
from codecs import open as codecs_open
from setuptools import setup
with codecs_open('README.md', 'r', 'utf-8') as f:
README = f.read()
with codecs_open('HISTORY.md', 'r', 'utf-8') as f:
HISTORY = f.read()
setup(
name='jsonrpcserver',
version='3.5.3',
description='Process JSON-RPC requests',
long_description=README + '\n\n' + HISTORY,
author='Beau Barker',
author_email='beauinmelbourne@gmail.com',
url='https://github.com/bcb/jsonrpcserver',
license='MIT',
packages=['jsonrpcserver'],
package_data={'jsonrpcserver': ['request-schema.json']},
include_package_data=True,
install_requires=['jsonschema', 'six', 'funcsigs'],
extras_require={
'tox': ['tox'],
'examples': [
'aiohttp',
'aiozmq',
'flask',
'flask-socketio',
'pyzmq',
'tornado',
'websockets',
'werkzeug',
]
},
classifiers=[
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6'
],
)
Set readme content type to markdown"""setup.py"""
from codecs import open as codecs_open
from setuptools import setup
with codecs_open('README.md', 'r', 'utf-8') as f:
README = f.read()
with codecs_open('HISTORY.md', 'r', 'utf-8') as f:
HISTORY = f.read()
setup(
author='Beau Barker',
author_email='beauinmelbourne@gmail.com',
classifiers=[
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6'
],
description='Process JSON-RPC requests',
extras_require={
'tox': ['tox'],
'examples': [
'aiohttp',
'aiozmq',
'flask',
'flask-socketio',
'pyzmq',
'tornado',
'websockets',
'werkzeug',
]
},
include_package_data=True,
install_requires=['jsonschema', 'six', 'funcsigs'],
license='MIT',
long_description=README + '\n\n' + HISTORY,
long_description_content_type='text/markdown',
name='jsonrpcserver',
package_data={'jsonrpcserver': ['request-schema.json']},
packages=['jsonrpcserver'],
url='https://github.com/bcb/jsonrpcserver',
version='3.5.3'
)
|
<commit_before>"""setup.py"""
from codecs import open as codecs_open
from setuptools import setup
with codecs_open('README.md', 'r', 'utf-8') as f:
README = f.read()
with codecs_open('HISTORY.md', 'r', 'utf-8') as f:
HISTORY = f.read()
setup(
name='jsonrpcserver',
version='3.5.3',
description='Process JSON-RPC requests',
long_description=README + '\n\n' + HISTORY,
author='Beau Barker',
author_email='beauinmelbourne@gmail.com',
url='https://github.com/bcb/jsonrpcserver',
license='MIT',
packages=['jsonrpcserver'],
package_data={'jsonrpcserver': ['request-schema.json']},
include_package_data=True,
install_requires=['jsonschema', 'six', 'funcsigs'],
extras_require={
'tox': ['tox'],
'examples': [
'aiohttp',
'aiozmq',
'flask',
'flask-socketio',
'pyzmq',
'tornado',
'websockets',
'werkzeug',
]
},
classifiers=[
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6'
],
)
<commit_msg>Set readme content type to markdown<commit_after>"""setup.py"""
from codecs import open as codecs_open
from setuptools import setup
with codecs_open('README.md', 'r', 'utf-8') as f:
README = f.read()
with codecs_open('HISTORY.md', 'r', 'utf-8') as f:
HISTORY = f.read()
setup(
author='Beau Barker',
author_email='beauinmelbourne@gmail.com',
classifiers=[
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6'
],
description='Process JSON-RPC requests',
extras_require={
'tox': ['tox'],
'examples': [
'aiohttp',
'aiozmq',
'flask',
'flask-socketio',
'pyzmq',
'tornado',
'websockets',
'werkzeug',
]
},
include_package_data=True,
install_requires=['jsonschema', 'six', 'funcsigs'],
license='MIT',
long_description=README + '\n\n' + HISTORY,
long_description_content_type='text/markdown',
name='jsonrpcserver',
package_data={'jsonrpcserver': ['request-schema.json']},
packages=['jsonrpcserver'],
url='https://github.com/bcb/jsonrpcserver',
version='3.5.3'
)
|
717a5c61cfe58a2c9bb32fdfbf7698c4236b9529
|
setup.py
|
setup.py
|
from setuptools import setup, find_packages
setup(
name='django-edtf',
version='2.0.0',
description='A Django app for the validation of dates in the Extended Date Time Format.',
long_description=('Please visit https://github.com/unt-libraries/django-edtf'
' for the latest documentation.'),
install_requires=[
'edtf-validate >= 1.1.0'],
packages=find_packages(exclude=['tests*']),
include_package_data=True,
url='https://github.com/unt-libraries/django-edtf',
author='University of North Texas Libraries',
license='BSD',
keywords=['django', 'edtf', 'validate', 'datetime'],
classifiers=[
'Natural Language :: English',
'Environment :: Web Environment',
'Framework :: Django :: 1.11',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7'
'Programming Language :: Python :: 3.6'
'Programming Language :: Python :: 3.7'
]
)
|
from setuptools import setup, find_packages
setup(
name='django-edtf',
version='2.0.0',
description='A Django app for the validation of dates in the Extended Date Time Format.',
long_description=('Please visit https://github.com/unt-libraries/django-edtf'
' for the latest documentation.'),
install_requires=['edtf-validate @ git+https://github.com/unt-libraries/edtf-validate@master'],
packages=find_packages(exclude=['tests*']),
include_package_data=True,
url='https://github.com/unt-libraries/django-edtf',
author='University of North Texas Libraries',
license='BSD',
keywords=['django', 'edtf', 'validate', 'datetime'],
classifiers=[
'Natural Language :: English',
'Environment :: Web Environment',
'Framework :: Django :: 1.11',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7'
'Programming Language :: Python :: 3.6'
'Programming Language :: Python :: 3.7'
]
)
|
Use the master tag to install latest version of edtf
|
Use the master tag to install latest version of edtf
|
Python
|
bsd-3-clause
|
unt-libraries/django-edtf,unt-libraries/django-edtf,unt-libraries/django-edtf
|
from setuptools import setup, find_packages
setup(
name='django-edtf',
version='2.0.0',
description='A Django app for the validation of dates in the Extended Date Time Format.',
long_description=('Please visit https://github.com/unt-libraries/django-edtf'
' for the latest documentation.'),
install_requires=[
'edtf-validate >= 1.1.0'],
packages=find_packages(exclude=['tests*']),
include_package_data=True,
url='https://github.com/unt-libraries/django-edtf',
author='University of North Texas Libraries',
license='BSD',
keywords=['django', 'edtf', 'validate', 'datetime'],
classifiers=[
'Natural Language :: English',
'Environment :: Web Environment',
'Framework :: Django :: 1.11',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7'
'Programming Language :: Python :: 3.6'
'Programming Language :: Python :: 3.7'
]
)
Use the master tag to install latest version of edtf
|
from setuptools import setup, find_packages
setup(
name='django-edtf',
version='2.0.0',
description='A Django app for the validation of dates in the Extended Date Time Format.',
long_description=('Please visit https://github.com/unt-libraries/django-edtf'
' for the latest documentation.'),
install_requires=['edtf-validate @ git+https://github.com/unt-libraries/edtf-validate@master'],
packages=find_packages(exclude=['tests*']),
include_package_data=True,
url='https://github.com/unt-libraries/django-edtf',
author='University of North Texas Libraries',
license='BSD',
keywords=['django', 'edtf', 'validate', 'datetime'],
classifiers=[
'Natural Language :: English',
'Environment :: Web Environment',
'Framework :: Django :: 1.11',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7'
'Programming Language :: Python :: 3.6'
'Programming Language :: Python :: 3.7'
]
)
|
<commit_before>from setuptools import setup, find_packages
setup(
name='django-edtf',
version='2.0.0',
description='A Django app for the validation of dates in the Extended Date Time Format.',
long_description=('Please visit https://github.com/unt-libraries/django-edtf'
' for the latest documentation.'),
install_requires=[
'edtf-validate >= 1.1.0'],
packages=find_packages(exclude=['tests*']),
include_package_data=True,
url='https://github.com/unt-libraries/django-edtf',
author='University of North Texas Libraries',
license='BSD',
keywords=['django', 'edtf', 'validate', 'datetime'],
classifiers=[
'Natural Language :: English',
'Environment :: Web Environment',
'Framework :: Django :: 1.11',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7'
'Programming Language :: Python :: 3.6'
'Programming Language :: Python :: 3.7'
]
)
<commit_msg>Use the master tag to install latest version of edtf<commit_after>
|
from setuptools import setup, find_packages
setup(
name='django-edtf',
version='2.0.0',
description='A Django app for the validation of dates in the Extended Date Time Format.',
long_description=('Please visit https://github.com/unt-libraries/django-edtf'
' for the latest documentation.'),
install_requires=['edtf-validate @ git+https://github.com/unt-libraries/edtf-validate@master'],
packages=find_packages(exclude=['tests*']),
include_package_data=True,
url='https://github.com/unt-libraries/django-edtf',
author='University of North Texas Libraries',
license='BSD',
keywords=['django', 'edtf', 'validate', 'datetime'],
classifiers=[
'Natural Language :: English',
'Environment :: Web Environment',
'Framework :: Django :: 1.11',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7'
'Programming Language :: Python :: 3.6'
'Programming Language :: Python :: 3.7'
]
)
|
from setuptools import setup, find_packages
setup(
name='django-edtf',
version='2.0.0',
description='A Django app for the validation of dates in the Extended Date Time Format.',
long_description=('Please visit https://github.com/unt-libraries/django-edtf'
' for the latest documentation.'),
install_requires=[
'edtf-validate >= 1.1.0'],
packages=find_packages(exclude=['tests*']),
include_package_data=True,
url='https://github.com/unt-libraries/django-edtf',
author='University of North Texas Libraries',
license='BSD',
keywords=['django', 'edtf', 'validate', 'datetime'],
classifiers=[
'Natural Language :: English',
'Environment :: Web Environment',
'Framework :: Django :: 1.11',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7'
'Programming Language :: Python :: 3.6'
'Programming Language :: Python :: 3.7'
]
)
Use the master tag to install latest version of edtffrom setuptools import setup, find_packages
setup(
name='django-edtf',
version='2.0.0',
description='A Django app for the validation of dates in the Extended Date Time Format.',
long_description=('Please visit https://github.com/unt-libraries/django-edtf'
' for the latest documentation.'),
install_requires=['edtf-validate @ git+https://github.com/unt-libraries/edtf-validate@master'],
packages=find_packages(exclude=['tests*']),
include_package_data=True,
url='https://github.com/unt-libraries/django-edtf',
author='University of North Texas Libraries',
license='BSD',
keywords=['django', 'edtf', 'validate', 'datetime'],
classifiers=[
'Natural Language :: English',
'Environment :: Web Environment',
'Framework :: Django :: 1.11',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7'
'Programming Language :: Python :: 3.6'
'Programming Language :: Python :: 3.7'
]
)
|
<commit_before>from setuptools import setup, find_packages
setup(
name='django-edtf',
version='2.0.0',
description='A Django app for the validation of dates in the Extended Date Time Format.',
long_description=('Please visit https://github.com/unt-libraries/django-edtf'
' for the latest documentation.'),
install_requires=[
'edtf-validate >= 1.1.0'],
packages=find_packages(exclude=['tests*']),
include_package_data=True,
url='https://github.com/unt-libraries/django-edtf',
author='University of North Texas Libraries',
license='BSD',
keywords=['django', 'edtf', 'validate', 'datetime'],
classifiers=[
'Natural Language :: English',
'Environment :: Web Environment',
'Framework :: Django :: 1.11',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7'
'Programming Language :: Python :: 3.6'
'Programming Language :: Python :: 3.7'
]
)
<commit_msg>Use the master tag to install latest version of edtf<commit_after>from setuptools import setup, find_packages
setup(
name='django-edtf',
version='2.0.0',
description='A Django app for the validation of dates in the Extended Date Time Format.',
long_description=('Please visit https://github.com/unt-libraries/django-edtf'
' for the latest documentation.'),
install_requires=['edtf-validate @ git+https://github.com/unt-libraries/edtf-validate@master'],
packages=find_packages(exclude=['tests*']),
include_package_data=True,
url='https://github.com/unt-libraries/django-edtf',
author='University of North Texas Libraries',
license='BSD',
keywords=['django', 'edtf', 'validate', 'datetime'],
classifiers=[
'Natural Language :: English',
'Environment :: Web Environment',
'Framework :: Django :: 1.11',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7'
'Programming Language :: Python :: 3.6'
'Programming Language :: Python :: 3.7'
]
)
|
3aeab31830469bea9d470fc13d1906b7a755d6d3
|
tests/pytasa_tests.py
|
tests/pytasa_tests.py
|
from nose.tools import *
import pytasa
def test_basic():
print "nothing to test"
|
from __future__ import print_function
from nose.tools import *
import pytasa
def test_basic():
print("nothing to test")
|
Print needs to be python 3 and python 2 compatible
|
Print needs to be python 3 and python 2 compatible
|
Python
|
mit
|
alanfbaird/PyTASA
|
from nose.tools import *
import pytasa
def test_basic():
print "nothing to test"
Print needs to be python 3 and python 2 compatible
|
from __future__ import print_function
from nose.tools import *
import pytasa
def test_basic():
print("nothing to test")
|
<commit_before>from nose.tools import *
import pytasa
def test_basic():
print "nothing to test"
<commit_msg>Print needs to be python 3 and python 2 compatible<commit_after>
|
from __future__ import print_function
from nose.tools import *
import pytasa
def test_basic():
print("nothing to test")
|
from nose.tools import *
import pytasa
def test_basic():
print "nothing to test"
Print needs to be python 3 and python 2 compatiblefrom __future__ import print_function
from nose.tools import *
import pytasa
def test_basic():
print("nothing to test")
|
<commit_before>from nose.tools import *
import pytasa
def test_basic():
print "nothing to test"
<commit_msg>Print needs to be python 3 and python 2 compatible<commit_after>from __future__ import print_function
from nose.tools import *
import pytasa
def test_basic():
print("nothing to test")
|
1772eb9da2169d88c7ecad9ca21c89d4d6472e94
|
tests/test_cycling.py
|
tests/test_cycling.py
|
import os
from unittest import TestCase
from tcxparser import TCXParser
class TestParseCyclingTCX(TestCase):
def setUp(self):
tcx_file = "test2.tcx"
path = os.path.join(os.path.dirname(__file__), "files", tcx_file)
self.tcx = TCXParser(path)
def test_cadence_max_is_correct(self):
self.assertEqual(self.tcx.cadence_max, 115)
def test_cadence_avg_is_correct(self):
self.assertEqual(self.tcx.cadence_avg, 82)
|
import os
from unittest import TestCase
from tcxparser import TCXParser
class TestParseCyclingTCX(TestCase):
def setUp(self):
"""
TCX file test2.tcx was taken from the following dataset:
S. Rauter, I. Jr. Fister, I. Fister. A collection of sport activity files
for data analysis and data mining.
Technical report 0201, University of Ljubljana and University of Maribor, 2015.
"""
tcx_file = "test2.tcx"
path = os.path.join(os.path.dirname(__file__), "files", tcx_file)
self.tcx = TCXParser(path)
def test_cadence_max_is_correct(self):
self.assertEqual(self.tcx.cadence_max, 115)
def test_cadence_avg_is_correct(self):
self.assertEqual(self.tcx.cadence_avg, 82)
|
Add a source of test file
|
Add a source of test file
|
Python
|
bsd-2-clause
|
vkurup/python-tcxparser,vkurup/python-tcxparser
|
import os
from unittest import TestCase
from tcxparser import TCXParser
class TestParseCyclingTCX(TestCase):
def setUp(self):
tcx_file = "test2.tcx"
path = os.path.join(os.path.dirname(__file__), "files", tcx_file)
self.tcx = TCXParser(path)
def test_cadence_max_is_correct(self):
self.assertEqual(self.tcx.cadence_max, 115)
def test_cadence_avg_is_correct(self):
self.assertEqual(self.tcx.cadence_avg, 82)
Add a source of test file
|
import os
from unittest import TestCase
from tcxparser import TCXParser
class TestParseCyclingTCX(TestCase):
def setUp(self):
"""
TCX file test2.tcx was taken from the following dataset:
S. Rauter, I. Jr. Fister, I. Fister. A collection of sport activity files
for data analysis and data mining.
Technical report 0201, University of Ljubljana and University of Maribor, 2015.
"""
tcx_file = "test2.tcx"
path = os.path.join(os.path.dirname(__file__), "files", tcx_file)
self.tcx = TCXParser(path)
def test_cadence_max_is_correct(self):
self.assertEqual(self.tcx.cadence_max, 115)
def test_cadence_avg_is_correct(self):
self.assertEqual(self.tcx.cadence_avg, 82)
|
<commit_before>import os
from unittest import TestCase
from tcxparser import TCXParser
class TestParseCyclingTCX(TestCase):
def setUp(self):
tcx_file = "test2.tcx"
path = os.path.join(os.path.dirname(__file__), "files", tcx_file)
self.tcx = TCXParser(path)
def test_cadence_max_is_correct(self):
self.assertEqual(self.tcx.cadence_max, 115)
def test_cadence_avg_is_correct(self):
self.assertEqual(self.tcx.cadence_avg, 82)
<commit_msg>Add a source of test file<commit_after>
|
import os
from unittest import TestCase
from tcxparser import TCXParser
class TestParseCyclingTCX(TestCase):
def setUp(self):
"""
TCX file test2.tcx was taken from the following dataset:
S. Rauter, I. Jr. Fister, I. Fister. A collection of sport activity files
for data analysis and data mining.
Technical report 0201, University of Ljubljana and University of Maribor, 2015.
"""
tcx_file = "test2.tcx"
path = os.path.join(os.path.dirname(__file__), "files", tcx_file)
self.tcx = TCXParser(path)
def test_cadence_max_is_correct(self):
self.assertEqual(self.tcx.cadence_max, 115)
def test_cadence_avg_is_correct(self):
self.assertEqual(self.tcx.cadence_avg, 82)
|
import os
from unittest import TestCase
from tcxparser import TCXParser
class TestParseCyclingTCX(TestCase):
def setUp(self):
tcx_file = "test2.tcx"
path = os.path.join(os.path.dirname(__file__), "files", tcx_file)
self.tcx = TCXParser(path)
def test_cadence_max_is_correct(self):
self.assertEqual(self.tcx.cadence_max, 115)
def test_cadence_avg_is_correct(self):
self.assertEqual(self.tcx.cadence_avg, 82)
Add a source of test fileimport os
from unittest import TestCase
from tcxparser import TCXParser
class TestParseCyclingTCX(TestCase):
def setUp(self):
"""
TCX file test2.tcx was taken from the following dataset:
S. Rauter, I. Jr. Fister, I. Fister. A collection of sport activity files
for data analysis and data mining.
Technical report 0201, University of Ljubljana and University of Maribor, 2015.
"""
tcx_file = "test2.tcx"
path = os.path.join(os.path.dirname(__file__), "files", tcx_file)
self.tcx = TCXParser(path)
def test_cadence_max_is_correct(self):
self.assertEqual(self.tcx.cadence_max, 115)
def test_cadence_avg_is_correct(self):
self.assertEqual(self.tcx.cadence_avg, 82)
|
<commit_before>import os
from unittest import TestCase
from tcxparser import TCXParser
class TestParseCyclingTCX(TestCase):
def setUp(self):
tcx_file = "test2.tcx"
path = os.path.join(os.path.dirname(__file__), "files", tcx_file)
self.tcx = TCXParser(path)
def test_cadence_max_is_correct(self):
self.assertEqual(self.tcx.cadence_max, 115)
def test_cadence_avg_is_correct(self):
self.assertEqual(self.tcx.cadence_avg, 82)
<commit_msg>Add a source of test file<commit_after>import os
from unittest import TestCase
from tcxparser import TCXParser
class TestParseCyclingTCX(TestCase):
def setUp(self):
"""
TCX file test2.tcx was taken from the following dataset:
S. Rauter, I. Jr. Fister, I. Fister. A collection of sport activity files
for data analysis and data mining.
Technical report 0201, University of Ljubljana and University of Maribor, 2015.
"""
tcx_file = "test2.tcx"
path = os.path.join(os.path.dirname(__file__), "files", tcx_file)
self.tcx = TCXParser(path)
def test_cadence_max_is_correct(self):
self.assertEqual(self.tcx.cadence_max, 115)
def test_cadence_avg_is_correct(self):
self.assertEqual(self.tcx.cadence_avg, 82)
|
b1b0919f47f43d27bc409528617af8dbd4eea41c
|
tests/test_imports.py
|
tests/test_imports.py
|
import unittest
class TestImport(unittest.TestCase):
# Basic import tests for packages without any.
def test_basic(self):
import bq_helper
import cleverhans
from rl.agents.dqn import DQNAgent
|
import unittest
class TestImport(unittest.TestCase):
# Basic import tests for packages without any.
def test_basic(self):
import bq_helper
import cleverhans
|
Remove import test for keras-rl
|
Remove import test for keras-rl
This package was removed in #747
|
Python
|
apache-2.0
|
Kaggle/docker-python,Kaggle/docker-python
|
import unittest
class TestImport(unittest.TestCase):
# Basic import tests for packages without any.
def test_basic(self):
import bq_helper
import cleverhans
from rl.agents.dqn import DQNAgent
Remove import test for keras-rl
This package was removed in #747
|
import unittest
class TestImport(unittest.TestCase):
# Basic import tests for packages without any.
def test_basic(self):
import bq_helper
import cleverhans
|
<commit_before>import unittest
class TestImport(unittest.TestCase):
# Basic import tests for packages without any.
def test_basic(self):
import bq_helper
import cleverhans
from rl.agents.dqn import DQNAgent
<commit_msg>Remove import test for keras-rl
This package was removed in #747<commit_after>
|
import unittest
class TestImport(unittest.TestCase):
# Basic import tests for packages without any.
def test_basic(self):
import bq_helper
import cleverhans
|
import unittest
class TestImport(unittest.TestCase):
# Basic import tests for packages without any.
def test_basic(self):
import bq_helper
import cleverhans
from rl.agents.dqn import DQNAgent
Remove import test for keras-rl
This package was removed in #747import unittest
class TestImport(unittest.TestCase):
# Basic import tests for packages without any.
def test_basic(self):
import bq_helper
import cleverhans
|
<commit_before>import unittest
class TestImport(unittest.TestCase):
# Basic import tests for packages without any.
def test_basic(self):
import bq_helper
import cleverhans
from rl.agents.dqn import DQNAgent
<commit_msg>Remove import test for keras-rl
This package was removed in #747<commit_after>import unittest
class TestImport(unittest.TestCase):
# Basic import tests for packages without any.
def test_basic(self):
import bq_helper
import cleverhans
|
9bb432844653bdab227806373d13d5a727b60b6c
|
simulator/simulator_cupid_shuffle.py
|
simulator/simulator_cupid_shuffle.py
|
def cupid():
steptime = .4
kick_angle = -10
for i in range(4):
forward(1, steptime)
wait(steptime)
for i in range(4):
backward(1, steptime)
wait(steptime)
for i in range(2):
turnBy(kick_angle)
wait(.2)
turnBy(-kick_angle)
wait(.2)
kick_angle = -kick_angle
#wait(.5)
turnBy(-90)
from Myro import *
init("sim")
penDown()
# NOTE: be sure to download the wav file at https://github.com/CSavvy/python/blob/master/shuffle2.wav
s = makeSound("shuffle2.wav")
for j in range(2): #set number of loops here
c = s.Play(0, 31500)
wait(5)
cupid()
wait(.5)
cupid()
|
def cupid():
steptime = .4
kick_angle = -10
for i in range(4):
forward(1, steptime)
wait(steptime)
for i in range(4):
backward(1, steptime)
wait(steptime)
for i in range(2):
turnBy(kick_angle)
wait(.2)
turnBy(-kick_angle)
wait(.2)
kick_angle = -kick_angle
#wait(.5)
turnBy(-90)
from Myro import *
init("sim")
penDown()
# NOTE: be sure to download the wav file at https://github.com/CSavvy/python/blob/master/shuffle2.wav?raw=true
s = makeSound("shuffle2.wav")
for j in range(2): #set number of loops here
c = s.Play(0, 31500)
wait(5)
cupid()
wait(.5)
cupid()
|
Update link to raw shuffle2.wav file
|
Update link to raw shuffle2.wav file
|
Python
|
mit
|
CSavvy/python
|
def cupid():
steptime = .4
kick_angle = -10
for i in range(4):
forward(1, steptime)
wait(steptime)
for i in range(4):
backward(1, steptime)
wait(steptime)
for i in range(2):
turnBy(kick_angle)
wait(.2)
turnBy(-kick_angle)
wait(.2)
kick_angle = -kick_angle
#wait(.5)
turnBy(-90)
from Myro import *
init("sim")
penDown()
# NOTE: be sure to download the wav file at https://github.com/CSavvy/python/blob/master/shuffle2.wav
s = makeSound("shuffle2.wav")
for j in range(2): #set number of loops here
c = s.Play(0, 31500)
wait(5)
cupid()
wait(.5)
cupid()
Update link to raw shuffle2.wav file
|
def cupid():
steptime = .4
kick_angle = -10
for i in range(4):
forward(1, steptime)
wait(steptime)
for i in range(4):
backward(1, steptime)
wait(steptime)
for i in range(2):
turnBy(kick_angle)
wait(.2)
turnBy(-kick_angle)
wait(.2)
kick_angle = -kick_angle
#wait(.5)
turnBy(-90)
from Myro import *
init("sim")
penDown()
# NOTE: be sure to download the wav file at https://github.com/CSavvy/python/blob/master/shuffle2.wav?raw=true
s = makeSound("shuffle2.wav")
for j in range(2): #set number of loops here
c = s.Play(0, 31500)
wait(5)
cupid()
wait(.5)
cupid()
|
<commit_before>def cupid():
steptime = .4
kick_angle = -10
for i in range(4):
forward(1, steptime)
wait(steptime)
for i in range(4):
backward(1, steptime)
wait(steptime)
for i in range(2):
turnBy(kick_angle)
wait(.2)
turnBy(-kick_angle)
wait(.2)
kick_angle = -kick_angle
#wait(.5)
turnBy(-90)
from Myro import *
init("sim")
penDown()
# NOTE: be sure to download the wav file at https://github.com/CSavvy/python/blob/master/shuffle2.wav
s = makeSound("shuffle2.wav")
for j in range(2): #set number of loops here
c = s.Play(0, 31500)
wait(5)
cupid()
wait(.5)
cupid()
<commit_msg>Update link to raw shuffle2.wav file<commit_after>
|
def cupid():
steptime = .4
kick_angle = -10
for i in range(4):
forward(1, steptime)
wait(steptime)
for i in range(4):
backward(1, steptime)
wait(steptime)
for i in range(2):
turnBy(kick_angle)
wait(.2)
turnBy(-kick_angle)
wait(.2)
kick_angle = -kick_angle
#wait(.5)
turnBy(-90)
from Myro import *
init("sim")
penDown()
# NOTE: be sure to download the wav file at https://github.com/CSavvy/python/blob/master/shuffle2.wav?raw=true
s = makeSound("shuffle2.wav")
for j in range(2): #set number of loops here
c = s.Play(0, 31500)
wait(5)
cupid()
wait(.5)
cupid()
|
def cupid():
steptime = .4
kick_angle = -10
for i in range(4):
forward(1, steptime)
wait(steptime)
for i in range(4):
backward(1, steptime)
wait(steptime)
for i in range(2):
turnBy(kick_angle)
wait(.2)
turnBy(-kick_angle)
wait(.2)
kick_angle = -kick_angle
#wait(.5)
turnBy(-90)
from Myro import *
init("sim")
penDown()
# NOTE: be sure to download the wav file at https://github.com/CSavvy/python/blob/master/shuffle2.wav
s = makeSound("shuffle2.wav")
for j in range(2): #set number of loops here
c = s.Play(0, 31500)
wait(5)
cupid()
wait(.5)
cupid()
Update link to raw shuffle2.wav filedef cupid():
steptime = .4
kick_angle = -10
for i in range(4):
forward(1, steptime)
wait(steptime)
for i in range(4):
backward(1, steptime)
wait(steptime)
for i in range(2):
turnBy(kick_angle)
wait(.2)
turnBy(-kick_angle)
wait(.2)
kick_angle = -kick_angle
#wait(.5)
turnBy(-90)
from Myro import *
init("sim")
penDown()
# NOTE: be sure to download the wav file at https://github.com/CSavvy/python/blob/master/shuffle2.wav?raw=true
s = makeSound("shuffle2.wav")
for j in range(2): #set number of loops here
c = s.Play(0, 31500)
wait(5)
cupid()
wait(.5)
cupid()
|
<commit_before>def cupid():
steptime = .4
kick_angle = -10
for i in range(4):
forward(1, steptime)
wait(steptime)
for i in range(4):
backward(1, steptime)
wait(steptime)
for i in range(2):
turnBy(kick_angle)
wait(.2)
turnBy(-kick_angle)
wait(.2)
kick_angle = -kick_angle
#wait(.5)
turnBy(-90)
from Myro import *
init("sim")
penDown()
# NOTE: be sure to download the wav file at https://github.com/CSavvy/python/blob/master/shuffle2.wav
s = makeSound("shuffle2.wav")
for j in range(2): #set number of loops here
c = s.Play(0, 31500)
wait(5)
cupid()
wait(.5)
cupid()
<commit_msg>Update link to raw shuffle2.wav file<commit_after>def cupid():
steptime = .4
kick_angle = -10
for i in range(4):
forward(1, steptime)
wait(steptime)
for i in range(4):
backward(1, steptime)
wait(steptime)
for i in range(2):
turnBy(kick_angle)
wait(.2)
turnBy(-kick_angle)
wait(.2)
kick_angle = -kick_angle
#wait(.5)
turnBy(-90)
from Myro import *
init("sim")
penDown()
# NOTE: be sure to download the wav file at https://github.com/CSavvy/python/blob/master/shuffle2.wav?raw=true
s = makeSound("shuffle2.wav")
for j in range(2): #set number of loops here
c = s.Play(0, 31500)
wait(5)
cupid()
wait(.5)
cupid()
|
dd4f4beb23c1a51c913cf2a2533c72df9fdca5fe
|
en-2017-06-25-consuming-and-publishing-celery-tasks-in-cpp-via-amqp/python/hello.py
|
en-2017-06-25-consuming-and-publishing-celery-tasks-in-cpp-via-amqp/python/hello.py
|
#
# Sends a request to call hello() from within a worker.
#
import sys
from tasks import hello
if __name__ == '__main__':
if len(sys.argv) != 3:
print('usage: {} NAME AGE'.format(sys.argv[0]))
sys.exit(1)
# By calling hello.delay(), we request hello() to be executed in a worker
# rather than executing it directly in the current process, which is what a
# direct call to hello() would do.
# http://docs.celeryproject.org/en/latest/userguide/calling.html
hello.delay(sys.argv[1], int(sys.argv[2]))
|
#
# Sends a request to call hello() from within a worker.
#
import sys
from tasks import hello
if __name__ == '__main__':
if len(sys.argv) != 3:
print('usage: {} NAME AGE'.format(sys.argv[0]))
sys.exit(1)
# By calling hello.delay(), we request hello() to be executed in a worker
# rather than executed directly in the current process, which is what a
# call to hello() would do.
# http://docs.celeryproject.org/en/latest/userguide/calling.html
hello.delay(sys.argv[1], int(sys.argv[2]))
|
Fix the phrasing in a comment.
|
en-2017-06-25: Fix the phrasing in a comment.
|
Python
|
bsd-3-clause
|
s3rvac/blog,s3rvac/blog,s3rvac/blog,s3rvac/blog
|
#
# Sends a request to call hello() from within a worker.
#
import sys
from tasks import hello
if __name__ == '__main__':
if len(sys.argv) != 3:
print('usage: {} NAME AGE'.format(sys.argv[0]))
sys.exit(1)
# By calling hello.delay(), we request hello() to be executed in a worker
# rather than executing it directly in the current process, which is what a
# direct call to hello() would do.
# http://docs.celeryproject.org/en/latest/userguide/calling.html
hello.delay(sys.argv[1], int(sys.argv[2]))
en-2017-06-25: Fix the phrasing in a comment.
|
#
# Sends a request to call hello() from within a worker.
#
import sys
from tasks import hello
if __name__ == '__main__':
if len(sys.argv) != 3:
print('usage: {} NAME AGE'.format(sys.argv[0]))
sys.exit(1)
# By calling hello.delay(), we request hello() to be executed in a worker
# rather than executed directly in the current process, which is what a
# call to hello() would do.
# http://docs.celeryproject.org/en/latest/userguide/calling.html
hello.delay(sys.argv[1], int(sys.argv[2]))
|
<commit_before>#
# Sends a request to call hello() from within a worker.
#
import sys
from tasks import hello
if __name__ == '__main__':
if len(sys.argv) != 3:
print('usage: {} NAME AGE'.format(sys.argv[0]))
sys.exit(1)
# By calling hello.delay(), we request hello() to be executed in a worker
# rather than executing it directly in the current process, which is what a
# direct call to hello() would do.
# http://docs.celeryproject.org/en/latest/userguide/calling.html
hello.delay(sys.argv[1], int(sys.argv[2]))
<commit_msg>en-2017-06-25: Fix the phrasing in a comment.<commit_after>
|
#
# Sends a request to call hello() from within a worker.
#
import sys
from tasks import hello
if __name__ == '__main__':
if len(sys.argv) != 3:
print('usage: {} NAME AGE'.format(sys.argv[0]))
sys.exit(1)
# By calling hello.delay(), we request hello() to be executed in a worker
# rather than executed directly in the current process, which is what a
# call to hello() would do.
# http://docs.celeryproject.org/en/latest/userguide/calling.html
hello.delay(sys.argv[1], int(sys.argv[2]))
|
#
# Sends a request to call hello() from within a worker.
#
import sys
from tasks import hello
if __name__ == '__main__':
if len(sys.argv) != 3:
print('usage: {} NAME AGE'.format(sys.argv[0]))
sys.exit(1)
# By calling hello.delay(), we request hello() to be executed in a worker
# rather than executing it directly in the current process, which is what a
# direct call to hello() would do.
# http://docs.celeryproject.org/en/latest/userguide/calling.html
hello.delay(sys.argv[1], int(sys.argv[2]))
en-2017-06-25: Fix the phrasing in a comment.#
# Sends a request to call hello() from within a worker.
#
import sys
from tasks import hello
if __name__ == '__main__':
if len(sys.argv) != 3:
print('usage: {} NAME AGE'.format(sys.argv[0]))
sys.exit(1)
# By calling hello.delay(), we request hello() to be executed in a worker
# rather than executed directly in the current process, which is what a
# call to hello() would do.
# http://docs.celeryproject.org/en/latest/userguide/calling.html
hello.delay(sys.argv[1], int(sys.argv[2]))
|
<commit_before>#
# Sends a request to call hello() from within a worker.
#
import sys
from tasks import hello
if __name__ == '__main__':
if len(sys.argv) != 3:
print('usage: {} NAME AGE'.format(sys.argv[0]))
sys.exit(1)
# By calling hello.delay(), we request hello() to be executed in a worker
# rather than executing it directly in the current process, which is what a
# direct call to hello() would do.
# http://docs.celeryproject.org/en/latest/userguide/calling.html
hello.delay(sys.argv[1], int(sys.argv[2]))
<commit_msg>en-2017-06-25: Fix the phrasing in a comment.<commit_after>#
# Sends a request to call hello() from within a worker.
#
import sys
from tasks import hello
if __name__ == '__main__':
if len(sys.argv) != 3:
print('usage: {} NAME AGE'.format(sys.argv[0]))
sys.exit(1)
# By calling hello.delay(), we request hello() to be executed in a worker
# rather than executed directly in the current process, which is what a
# call to hello() would do.
# http://docs.celeryproject.org/en/latest/userguide/calling.html
hello.delay(sys.argv[1], int(sys.argv[2]))
|
e275ed385cfb9d8420fe500279271dc3c8e24540
|
django_orm/__init__.py
|
django_orm/__init__.py
|
# -*- coding: utf-8 -*-
__version__ = (2, 0, 0, 'candidate', 8)
POOLTYPE_PERSISTENT = 1
POOLTYPE_QUEUE = 2
__all__ = ['POOLTYPE_PERSISTENT', 'POOLTYPE_QUEUE']
|
# -*- coding: utf-8 -*-
__version__ = (2, 0, 0, 'candidate', 9)
POOLTYPE_PERSISTENT = 1
POOLTYPE_QUEUE = 2
__all__ = ['POOLTYPE_PERSISTENT', 'POOLTYPE_QUEUE']
|
Increment version to candidate 9
|
Increment version to candidate 9
|
Python
|
bsd-3-clause
|
EnTeQuAk/django-orm,EnTeQuAk/django-orm
|
# -*- coding: utf-8 -*-
__version__ = (2, 0, 0, 'candidate', 8)
POOLTYPE_PERSISTENT = 1
POOLTYPE_QUEUE = 2
__all__ = ['POOLTYPE_PERSISTENT', 'POOLTYPE_QUEUE']
Increment version to candidate 9
|
# -*- coding: utf-8 -*-
__version__ = (2, 0, 0, 'candidate', 9)
POOLTYPE_PERSISTENT = 1
POOLTYPE_QUEUE = 2
__all__ = ['POOLTYPE_PERSISTENT', 'POOLTYPE_QUEUE']
|
<commit_before># -*- coding: utf-8 -*-
__version__ = (2, 0, 0, 'candidate', 8)
POOLTYPE_PERSISTENT = 1
POOLTYPE_QUEUE = 2
__all__ = ['POOLTYPE_PERSISTENT', 'POOLTYPE_QUEUE']
<commit_msg>Increment version to candidate 9<commit_after>
|
# -*- coding: utf-8 -*-
__version__ = (2, 0, 0, 'candidate', 9)
POOLTYPE_PERSISTENT = 1
POOLTYPE_QUEUE = 2
__all__ = ['POOLTYPE_PERSISTENT', 'POOLTYPE_QUEUE']
|
# -*- coding: utf-8 -*-
__version__ = (2, 0, 0, 'candidate', 8)
POOLTYPE_PERSISTENT = 1
POOLTYPE_QUEUE = 2
__all__ = ['POOLTYPE_PERSISTENT', 'POOLTYPE_QUEUE']
Increment version to candidate 9# -*- coding: utf-8 -*-
__version__ = (2, 0, 0, 'candidate', 9)
POOLTYPE_PERSISTENT = 1
POOLTYPE_QUEUE = 2
__all__ = ['POOLTYPE_PERSISTENT', 'POOLTYPE_QUEUE']
|
<commit_before># -*- coding: utf-8 -*-
__version__ = (2, 0, 0, 'candidate', 8)
POOLTYPE_PERSISTENT = 1
POOLTYPE_QUEUE = 2
__all__ = ['POOLTYPE_PERSISTENT', 'POOLTYPE_QUEUE']
<commit_msg>Increment version to candidate 9<commit_after># -*- coding: utf-8 -*-
__version__ = (2, 0, 0, 'candidate', 9)
POOLTYPE_PERSISTENT = 1
POOLTYPE_QUEUE = 2
__all__ = ['POOLTYPE_PERSISTENT', 'POOLTYPE_QUEUE']
|
7fbfcf75fed6713dd9a3541f74a7585db65f3dd6
|
exercise-screens.py
|
exercise-screens.py
|
#!/usr/bin/env python
import multiprocessing
import sys
import requests
import webkit2png
def render_exercise(exercise_url):
print "Rendering %s" % exercise_url
return True
def main():
print "Fetching exercise data..."
request = requests.get("http://khanacademy.org/api/v1/exercises")
if request.status_code != 200:
print "Error: failed to fetch exercises"
sys.exit(1)
exercise_urls = [e["ka_url"] for e in request.json()]
pool = multiprocessing.Pool()
results = pool.map(render_exercise, exercise_urls)
success_count = results.count(True)
failure_count = len(results) - success_count
print "Done (%s successes, %s failures)" % (success_count, failure_count)
if __name__ == "__main__":
main()
|
#!/usr/bin/env python
import os
import sys
import subprocess
import tempfile
import threading
from multiprocessing.pool import ThreadPool
import requests
import webkit2png
DELAY = 5
STDOUT_LOCK = threading.Lock()
def process_exercise(exercise):
(name, url) = exercise
with STDOUT_LOCK:
print "Rendering %s" % name
try:
output_dir = tempfile.mkdtemp()
# Still need to shell out because PyObjC doesn't play nice with
# multiprocessing or multithreading :(
subprocess.check_call([
"python",
"./webkit2png.py",
"--selector=#problemarea",
"--fullsize",
"--dir=%s" % output_dir,
"--filename=%s" % name,
"--delay=%s" % DELAY,
url
],
stdout=open(os.devnull, "w"),
stderr=open(os.devnull, "w"))
filename = "%s-full.png" % name
# TODO: upload %(filename) to S3
# TODO: delete %(filename)
except:
return False
return True
def main():
print "Fetching exercise data..."
request = requests.get("http://khanacademy.org/api/v1/exercises")
if request.status_code != 200:
print "Error: failed to fetch exercises"
sys.exit(1)
exercises = [(e["name"], e["ka_url"]) for e in request.json()]
pool = ThreadPool()
try:
results = pool.map(process_exercise, exercises)
except KeyboardInterrupt:
sys.exit(1)
success_count = results.count(True)
failure_count = len(results) - success_count
print "Done (%s successes, %s failures)" % (success_count, failure_count)
if __name__ == "__main__":
main()
|
Implement a thread pool for shelling out to webkit2png in parallel
|
Implement a thread pool for shelling out to webkit2png in parallel
Test Plan: Run ./exercise_screens.py, see no failures
|
Python
|
mit
|
Khan/exercise-screens
|
#!/usr/bin/env python
import multiprocessing
import sys
import requests
import webkit2png
def render_exercise(exercise_url):
print "Rendering %s" % exercise_url
return True
def main():
print "Fetching exercise data..."
request = requests.get("http://khanacademy.org/api/v1/exercises")
if request.status_code != 200:
print "Error: failed to fetch exercises"
sys.exit(1)
exercise_urls = [e["ka_url"] for e in request.json()]
pool = multiprocessing.Pool()
results = pool.map(render_exercise, exercise_urls)
success_count = results.count(True)
failure_count = len(results) - success_count
print "Done (%s successes, %s failures)" % (success_count, failure_count)
if __name__ == "__main__":
main()
Implement a thread pool for shelling out to webkit2png in parallel
Test Plan: Run ./exercise_screens.py, see no failures
|
#!/usr/bin/env python
import os
import sys
import subprocess
import tempfile
import threading
from multiprocessing.pool import ThreadPool
import requests
import webkit2png
DELAY = 5
STDOUT_LOCK = threading.Lock()
def process_exercise(exercise):
(name, url) = exercise
with STDOUT_LOCK:
print "Rendering %s" % name
try:
output_dir = tempfile.mkdtemp()
# Still need to shell out because PyObjC doesn't play nice with
# multiprocessing or multithreading :(
subprocess.check_call([
"python",
"./webkit2png.py",
"--selector=#problemarea",
"--fullsize",
"--dir=%s" % output_dir,
"--filename=%s" % name,
"--delay=%s" % DELAY,
url
],
stdout=open(os.devnull, "w"),
stderr=open(os.devnull, "w"))
filename = "%s-full.png" % name
# TODO: upload %(filename) to S3
# TODO: delete %(filename)
except:
return False
return True
def main():
print "Fetching exercise data..."
request = requests.get("http://khanacademy.org/api/v1/exercises")
if request.status_code != 200:
print "Error: failed to fetch exercises"
sys.exit(1)
exercises = [(e["name"], e["ka_url"]) for e in request.json()]
pool = ThreadPool()
try:
results = pool.map(process_exercise, exercises)
except KeyboardInterrupt:
sys.exit(1)
success_count = results.count(True)
failure_count = len(results) - success_count
print "Done (%s successes, %s failures)" % (success_count, failure_count)
if __name__ == "__main__":
main()
|
<commit_before>#!/usr/bin/env python
import multiprocessing
import sys
import requests
import webkit2png
def render_exercise(exercise_url):
print "Rendering %s" % exercise_url
return True
def main():
print "Fetching exercise data..."
request = requests.get("http://khanacademy.org/api/v1/exercises")
if request.status_code != 200:
print "Error: failed to fetch exercises"
sys.exit(1)
exercise_urls = [e["ka_url"] for e in request.json()]
pool = multiprocessing.Pool()
results = pool.map(render_exercise, exercise_urls)
success_count = results.count(True)
failure_count = len(results) - success_count
print "Done (%s successes, %s failures)" % (success_count, failure_count)
if __name__ == "__main__":
main()
<commit_msg>Implement a thread pool for shelling out to webkit2png in parallel
Test Plan: Run ./exercise_screens.py, see no failures<commit_after>
|
#!/usr/bin/env python
import os
import sys
import subprocess
import tempfile
import threading
from multiprocessing.pool import ThreadPool
import requests
import webkit2png
DELAY = 5
STDOUT_LOCK = threading.Lock()
def process_exercise(exercise):
(name, url) = exercise
with STDOUT_LOCK:
print "Rendering %s" % name
try:
output_dir = tempfile.mkdtemp()
# Still need to shell out because PyObjC doesn't play nice with
# multiprocessing or multithreading :(
subprocess.check_call([
"python",
"./webkit2png.py",
"--selector=#problemarea",
"--fullsize",
"--dir=%s" % output_dir,
"--filename=%s" % name,
"--delay=%s" % DELAY,
url
],
stdout=open(os.devnull, "w"),
stderr=open(os.devnull, "w"))
filename = "%s-full.png" % name
# TODO: upload %(filename) to S3
# TODO: delete %(filename)
except:
return False
return True
def main():
print "Fetching exercise data..."
request = requests.get("http://khanacademy.org/api/v1/exercises")
if request.status_code != 200:
print "Error: failed to fetch exercises"
sys.exit(1)
exercises = [(e["name"], e["ka_url"]) for e in request.json()]
pool = ThreadPool()
try:
results = pool.map(process_exercise, exercises)
except KeyboardInterrupt:
sys.exit(1)
success_count = results.count(True)
failure_count = len(results) - success_count
print "Done (%s successes, %s failures)" % (success_count, failure_count)
if __name__ == "__main__":
main()
|
#!/usr/bin/env python
import multiprocessing
import sys
import requests
import webkit2png
def render_exercise(exercise_url):
print "Rendering %s" % exercise_url
return True
def main():
print "Fetching exercise data..."
request = requests.get("http://khanacademy.org/api/v1/exercises")
if request.status_code != 200:
print "Error: failed to fetch exercises"
sys.exit(1)
exercise_urls = [e["ka_url"] for e in request.json()]
pool = multiprocessing.Pool()
results = pool.map(render_exercise, exercise_urls)
success_count = results.count(True)
failure_count = len(results) - success_count
print "Done (%s successes, %s failures)" % (success_count, failure_count)
if __name__ == "__main__":
main()
Implement a thread pool for shelling out to webkit2png in parallel
Test Plan: Run ./exercise_screens.py, see no failures#!/usr/bin/env python
import os
import sys
import subprocess
import tempfile
import threading
from multiprocessing.pool import ThreadPool
import requests
import webkit2png
DELAY = 5
STDOUT_LOCK = threading.Lock()
def process_exercise(exercise):
(name, url) = exercise
with STDOUT_LOCK:
print "Rendering %s" % name
try:
output_dir = tempfile.mkdtemp()
# Still need to shell out because PyObjC doesn't play nice with
# multiprocessing or multithreading :(
subprocess.check_call([
"python",
"./webkit2png.py",
"--selector=#problemarea",
"--fullsize",
"--dir=%s" % output_dir,
"--filename=%s" % name,
"--delay=%s" % DELAY,
url
],
stdout=open(os.devnull, "w"),
stderr=open(os.devnull, "w"))
filename = "%s-full.png" % name
# TODO: upload %(filename) to S3
# TODO: delete %(filename)
except:
return False
return True
def main():
print "Fetching exercise data..."
request = requests.get("http://khanacademy.org/api/v1/exercises")
if request.status_code != 200:
print "Error: failed to fetch exercises"
sys.exit(1)
exercises = [(e["name"], e["ka_url"]) for e in request.json()]
pool = ThreadPool()
try:
results = pool.map(process_exercise, exercises)
except KeyboardInterrupt:
sys.exit(1)
success_count = results.count(True)
failure_count = len(results) - success_count
print "Done (%s successes, %s failures)" % (success_count, failure_count)
if __name__ == "__main__":
main()
|
<commit_before>#!/usr/bin/env python
import multiprocessing
import sys
import requests
import webkit2png
def render_exercise(exercise_url):
print "Rendering %s" % exercise_url
return True
def main():
print "Fetching exercise data..."
request = requests.get("http://khanacademy.org/api/v1/exercises")
if request.status_code != 200:
print "Error: failed to fetch exercises"
sys.exit(1)
exercise_urls = [e["ka_url"] for e in request.json()]
pool = multiprocessing.Pool()
results = pool.map(render_exercise, exercise_urls)
success_count = results.count(True)
failure_count = len(results) - success_count
print "Done (%s successes, %s failures)" % (success_count, failure_count)
if __name__ == "__main__":
main()
<commit_msg>Implement a thread pool for shelling out to webkit2png in parallel
Test Plan: Run ./exercise_screens.py, see no failures<commit_after>#!/usr/bin/env python
import os
import sys
import subprocess
import tempfile
import threading
from multiprocessing.pool import ThreadPool
import requests
import webkit2png
DELAY = 5
STDOUT_LOCK = threading.Lock()
def process_exercise(exercise):
(name, url) = exercise
with STDOUT_LOCK:
print "Rendering %s" % name
try:
output_dir = tempfile.mkdtemp()
# Still need to shell out because PyObjC doesn't play nice with
# multiprocessing or multithreading :(
subprocess.check_call([
"python",
"./webkit2png.py",
"--selector=#problemarea",
"--fullsize",
"--dir=%s" % output_dir,
"--filename=%s" % name,
"--delay=%s" % DELAY,
url
],
stdout=open(os.devnull, "w"),
stderr=open(os.devnull, "w"))
filename = "%s-full.png" % name
# TODO: upload %(filename) to S3
# TODO: delete %(filename)
except:
return False
return True
def main():
print "Fetching exercise data..."
request = requests.get("http://khanacademy.org/api/v1/exercises")
if request.status_code != 200:
print "Error: failed to fetch exercises"
sys.exit(1)
exercises = [(e["name"], e["ka_url"]) for e in request.json()]
pool = ThreadPool()
try:
results = pool.map(process_exercise, exercises)
except KeyboardInterrupt:
sys.exit(1)
success_count = results.count(True)
failure_count = len(results) - success_count
print "Done (%s successes, %s failures)" % (success_count, failure_count)
if __name__ == "__main__":
main()
|
67ab2070206fc1313e1f83948b6c29565c189861
|
test/features/test_create_pages.py
|
test/features/test_create_pages.py
|
import time
import unittest
from hamcrest import *
from splinter import Browser
from support.stub_server import HttpStub
class test_create_pages(unittest.TestCase):
def setUp(self):
HttpStub.start()
time.sleep(2)
def tearDown(self):
HttpStub.stop()
def test_about_page(self):
with Browser() as browser:
browser.visit("http://0.0.0.0:8000/high-volume-services/by-transactions-per-year/descending.html")
assert_that(browser.is_text_present('High-volume services'),
is_(True))
|
import time
import unittest
from hamcrest import *
from splinter import Browser
from support.stub_server import HttpStub
class test_create_pages(unittest.TestCase):
def setUp(self):
HttpStub.start()
time.sleep(2)
def tearDown(self):
HttpStub.stop()
def test_about_page(self):
with Browser('phantomjs', wait_time=3) as browser:
browser.visit("http://0.0.0.0:8000/high-volume-services/by-transactions-per-year/descending.html")
assert_that(browser.is_text_present('High-volume services'),
is_(True))
|
Use phantomjs instead of a real browser
|
Use phantomjs instead of a real browser
|
Python
|
mit
|
alphagov/transactions-explorer,gds-attic/transactions-explorer,gds-attic/transactions-explorer,alphagov/transactions-explorer,gds-attic/transactions-explorer,gds-attic/transactions-explorer,alphagov/transactions-explorer,gds-attic/transactions-explorer,alphagov/transactions-explorer,alphagov/transactions-explorer
|
import time
import unittest
from hamcrest import *
from splinter import Browser
from support.stub_server import HttpStub
class test_create_pages(unittest.TestCase):
def setUp(self):
HttpStub.start()
time.sleep(2)
def tearDown(self):
HttpStub.stop()
def test_about_page(self):
with Browser() as browser:
browser.visit("http://0.0.0.0:8000/high-volume-services/by-transactions-per-year/descending.html")
assert_that(browser.is_text_present('High-volume services'),
is_(True))
Use phantomjs instead of a real browser
|
import time
import unittest
from hamcrest import *
from splinter import Browser
from support.stub_server import HttpStub
class test_create_pages(unittest.TestCase):
def setUp(self):
HttpStub.start()
time.sleep(2)
def tearDown(self):
HttpStub.stop()
def test_about_page(self):
with Browser('phantomjs', wait_time=3) as browser:
browser.visit("http://0.0.0.0:8000/high-volume-services/by-transactions-per-year/descending.html")
assert_that(browser.is_text_present('High-volume services'),
is_(True))
|
<commit_before>import time
import unittest
from hamcrest import *
from splinter import Browser
from support.stub_server import HttpStub
class test_create_pages(unittest.TestCase):
def setUp(self):
HttpStub.start()
time.sleep(2)
def tearDown(self):
HttpStub.stop()
def test_about_page(self):
with Browser() as browser:
browser.visit("http://0.0.0.0:8000/high-volume-services/by-transactions-per-year/descending.html")
assert_that(browser.is_text_present('High-volume services'),
is_(True))
<commit_msg>Use phantomjs instead of a real browser<commit_after>
|
import time
import unittest
from hamcrest import *
from splinter import Browser
from support.stub_server import HttpStub
class test_create_pages(unittest.TestCase):
def setUp(self):
HttpStub.start()
time.sleep(2)
def tearDown(self):
HttpStub.stop()
def test_about_page(self):
with Browser('phantomjs', wait_time=3) as browser:
browser.visit("http://0.0.0.0:8000/high-volume-services/by-transactions-per-year/descending.html")
assert_that(browser.is_text_present('High-volume services'),
is_(True))
|
import time
import unittest
from hamcrest import *
from splinter import Browser
from support.stub_server import HttpStub
class test_create_pages(unittest.TestCase):
def setUp(self):
HttpStub.start()
time.sleep(2)
def tearDown(self):
HttpStub.stop()
def test_about_page(self):
with Browser() as browser:
browser.visit("http://0.0.0.0:8000/high-volume-services/by-transactions-per-year/descending.html")
assert_that(browser.is_text_present('High-volume services'),
is_(True))
Use phantomjs instead of a real browserimport time
import unittest
from hamcrest import *
from splinter import Browser
from support.stub_server import HttpStub
class test_create_pages(unittest.TestCase):
def setUp(self):
HttpStub.start()
time.sleep(2)
def tearDown(self):
HttpStub.stop()
def test_about_page(self):
with Browser('phantomjs', wait_time=3) as browser:
browser.visit("http://0.0.0.0:8000/high-volume-services/by-transactions-per-year/descending.html")
assert_that(browser.is_text_present('High-volume services'),
is_(True))
|
<commit_before>import time
import unittest
from hamcrest import *
from splinter import Browser
from support.stub_server import HttpStub
class test_create_pages(unittest.TestCase):
def setUp(self):
HttpStub.start()
time.sleep(2)
def tearDown(self):
HttpStub.stop()
def test_about_page(self):
with Browser() as browser:
browser.visit("http://0.0.0.0:8000/high-volume-services/by-transactions-per-year/descending.html")
assert_that(browser.is_text_present('High-volume services'),
is_(True))
<commit_msg>Use phantomjs instead of a real browser<commit_after>import time
import unittest
from hamcrest import *
from splinter import Browser
from support.stub_server import HttpStub
class test_create_pages(unittest.TestCase):
def setUp(self):
HttpStub.start()
time.sleep(2)
def tearDown(self):
HttpStub.stop()
def test_about_page(self):
with Browser('phantomjs', wait_time=3) as browser:
browser.visit("http://0.0.0.0:8000/high-volume-services/by-transactions-per-year/descending.html")
assert_that(browser.is_text_present('High-volume services'),
is_(True))
|
98ec9c2e1ea7510ac6b7b967d4c8865daf006bb3
|
plugins/reversedns.py
|
plugins/reversedns.py
|
import logging, interfaces, os
from StringIO import StringIO
class Shorewall(interfaces.IOpenMesherPlugin):
def __init__(self):
self._files = {}
def process(self, mesh):
logging.debug('Generating DNS config...')
self._files = {}
rdns = StringIO()
for router in mesh.links:
for link in mesh.links[router]:
if link.isServer(router):
ip1 = IPy.IP(str(link.block[1]))
ip2 = IPy.IP(str(link.block[2]))
#BUG: fqdn might not be populated if just using hostnames.
#BUG: Need to allow reversing to alternate domain names if p2p routing block is private
#BUG: Need to put iface name in rev dns
rdns.write('%s\t\tPTR\t%s.\n' %(ip1.reverseName(), link.server.fqdn))
rdns.write('%s\t\tPTR\t%s.\n' %(ip2.reverseName(), link.client.fqdn))
self._files = rdns.getvalue()
return True
def files(self):
""" Return a dictionary of routers containing a dictionary of filenames and contents """
return self._files
|
import logging, interfaces, os, IPy
from StringIO import StringIO
class Shorewall(interfaces.IOpenMesherPlugin):
def __init__(self):
self._files = {}
def process(self, mesh):
logging.debug('Generating DNS config...')
self._files = {}
rdns = StringIO()
for router in mesh.links:
for link in mesh.links[router]:
if link.isServer(router):
ip1 = IPy.IP(str(link.block[1]))
ip2 = IPy.IP(str(link.block[2]))
#BUG: fqdn might not be populated if just using hostnames.
#BUG: Need to allow reversing to alternate domain names if p2p routing block is private
#BUG: Need to put iface name in rev dns
rdns.write('%s\t\tPTR\t%s.\n' %(ip1.reverseName(), link.server.fqdn))
rdns.write('%s\t\tPTR\t%s.\n' %(ip2.reverseName(), link.client.fqdn))
self._files['dnsserver'] = {'/etc/mesh-reverse.db': rdns.getvalue()}
return True
def files(self):
""" Return a dictionary of routers containing a dictionary of filenames and contents """
return self._files
|
Return DNS data in the correct format
|
Return DNS data in the correct format
|
Python
|
bsd-3-clause
|
heyaaron/openmesher,darkpixel/openmesher,heyaaron/openmesher,darkpixel/openmesher
|
import logging, interfaces, os
from StringIO import StringIO
class Shorewall(interfaces.IOpenMesherPlugin):
def __init__(self):
self._files = {}
def process(self, mesh):
logging.debug('Generating DNS config...')
self._files = {}
rdns = StringIO()
for router in mesh.links:
for link in mesh.links[router]:
if link.isServer(router):
ip1 = IPy.IP(str(link.block[1]))
ip2 = IPy.IP(str(link.block[2]))
#BUG: fqdn might not be populated if just using hostnames.
#BUG: Need to allow reversing to alternate domain names if p2p routing block is private
#BUG: Need to put iface name in rev dns
rdns.write('%s\t\tPTR\t%s.\n' %(ip1.reverseName(), link.server.fqdn))
rdns.write('%s\t\tPTR\t%s.\n' %(ip2.reverseName(), link.client.fqdn))
self._files = rdns.getvalue()
return True
def files(self):
""" Return a dictionary of routers containing a dictionary of filenames and contents """
return self._files
Return DNS data in the correct format
|
import logging, interfaces, os, IPy
from StringIO import StringIO
class Shorewall(interfaces.IOpenMesherPlugin):
def __init__(self):
self._files = {}
def process(self, mesh):
logging.debug('Generating DNS config...')
self._files = {}
rdns = StringIO()
for router in mesh.links:
for link in mesh.links[router]:
if link.isServer(router):
ip1 = IPy.IP(str(link.block[1]))
ip2 = IPy.IP(str(link.block[2]))
#BUG: fqdn might not be populated if just using hostnames.
#BUG: Need to allow reversing to alternate domain names if p2p routing block is private
#BUG: Need to put iface name in rev dns
rdns.write('%s\t\tPTR\t%s.\n' %(ip1.reverseName(), link.server.fqdn))
rdns.write('%s\t\tPTR\t%s.\n' %(ip2.reverseName(), link.client.fqdn))
self._files['dnsserver'] = {'/etc/mesh-reverse.db': rdns.getvalue()}
return True
def files(self):
""" Return a dictionary of routers containing a dictionary of filenames and contents """
return self._files
|
<commit_before>import logging, interfaces, os
from StringIO import StringIO
class Shorewall(interfaces.IOpenMesherPlugin):
def __init__(self):
self._files = {}
def process(self, mesh):
logging.debug('Generating DNS config...')
self._files = {}
rdns = StringIO()
for router in mesh.links:
for link in mesh.links[router]:
if link.isServer(router):
ip1 = IPy.IP(str(link.block[1]))
ip2 = IPy.IP(str(link.block[2]))
#BUG: fqdn might not be populated if just using hostnames.
#BUG: Need to allow reversing to alternate domain names if p2p routing block is private
#BUG: Need to put iface name in rev dns
rdns.write('%s\t\tPTR\t%s.\n' %(ip1.reverseName(), link.server.fqdn))
rdns.write('%s\t\tPTR\t%s.\n' %(ip2.reverseName(), link.client.fqdn))
self._files = rdns.getvalue()
return True
def files(self):
""" Return a dictionary of routers containing a dictionary of filenames and contents """
return self._files
<commit_msg>Return DNS data in the correct format<commit_after>
|
import logging, interfaces, os, IPy
from StringIO import StringIO
class Shorewall(interfaces.IOpenMesherPlugin):
def __init__(self):
self._files = {}
def process(self, mesh):
logging.debug('Generating DNS config...')
self._files = {}
rdns = StringIO()
for router in mesh.links:
for link in mesh.links[router]:
if link.isServer(router):
ip1 = IPy.IP(str(link.block[1]))
ip2 = IPy.IP(str(link.block[2]))
#BUG: fqdn might not be populated if just using hostnames.
#BUG: Need to allow reversing to alternate domain names if p2p routing block is private
#BUG: Need to put iface name in rev dns
rdns.write('%s\t\tPTR\t%s.\n' %(ip1.reverseName(), link.server.fqdn))
rdns.write('%s\t\tPTR\t%s.\n' %(ip2.reverseName(), link.client.fqdn))
self._files['dnsserver'] = {'/etc/mesh-reverse.db': rdns.getvalue()}
return True
def files(self):
""" Return a dictionary of routers containing a dictionary of filenames and contents """
return self._files
|
import logging, interfaces, os
from StringIO import StringIO
class Shorewall(interfaces.IOpenMesherPlugin):
def __init__(self):
self._files = {}
def process(self, mesh):
logging.debug('Generating DNS config...')
self._files = {}
rdns = StringIO()
for router in mesh.links:
for link in mesh.links[router]:
if link.isServer(router):
ip1 = IPy.IP(str(link.block[1]))
ip2 = IPy.IP(str(link.block[2]))
#BUG: fqdn might not be populated if just using hostnames.
#BUG: Need to allow reversing to alternate domain names if p2p routing block is private
#BUG: Need to put iface name in rev dns
rdns.write('%s\t\tPTR\t%s.\n' %(ip1.reverseName(), link.server.fqdn))
rdns.write('%s\t\tPTR\t%s.\n' %(ip2.reverseName(), link.client.fqdn))
self._files = rdns.getvalue()
return True
def files(self):
""" Return a dictionary of routers containing a dictionary of filenames and contents """
return self._files
Return DNS data in the correct formatimport logging, interfaces, os, IPy
from StringIO import StringIO
class Shorewall(interfaces.IOpenMesherPlugin):
def __init__(self):
self._files = {}
def process(self, mesh):
logging.debug('Generating DNS config...')
self._files = {}
rdns = StringIO()
for router in mesh.links:
for link in mesh.links[router]:
if link.isServer(router):
ip1 = IPy.IP(str(link.block[1]))
ip2 = IPy.IP(str(link.block[2]))
#BUG: fqdn might not be populated if just using hostnames.
#BUG: Need to allow reversing to alternate domain names if p2p routing block is private
#BUG: Need to put iface name in rev dns
rdns.write('%s\t\tPTR\t%s.\n' %(ip1.reverseName(), link.server.fqdn))
rdns.write('%s\t\tPTR\t%s.\n' %(ip2.reverseName(), link.client.fqdn))
self._files['dnsserver'] = {'/etc/mesh-reverse.db': rdns.getvalue()}
return True
def files(self):
""" Return a dictionary of routers containing a dictionary of filenames and contents """
return self._files
|
<commit_before>import logging, interfaces, os
from StringIO import StringIO
class Shorewall(interfaces.IOpenMesherPlugin):
def __init__(self):
self._files = {}
def process(self, mesh):
logging.debug('Generating DNS config...')
self._files = {}
rdns = StringIO()
for router in mesh.links:
for link in mesh.links[router]:
if link.isServer(router):
ip1 = IPy.IP(str(link.block[1]))
ip2 = IPy.IP(str(link.block[2]))
#BUG: fqdn might not be populated if just using hostnames.
#BUG: Need to allow reversing to alternate domain names if p2p routing block is private
#BUG: Need to put iface name in rev dns
rdns.write('%s\t\tPTR\t%s.\n' %(ip1.reverseName(), link.server.fqdn))
rdns.write('%s\t\tPTR\t%s.\n' %(ip2.reverseName(), link.client.fqdn))
self._files = rdns.getvalue()
return True
def files(self):
""" Return a dictionary of routers containing a dictionary of filenames and contents """
return self._files
<commit_msg>Return DNS data in the correct format<commit_after>import logging, interfaces, os, IPy
from StringIO import StringIO
class Shorewall(interfaces.IOpenMesherPlugin):
def __init__(self):
self._files = {}
def process(self, mesh):
logging.debug('Generating DNS config...')
self._files = {}
rdns = StringIO()
for router in mesh.links:
for link in mesh.links[router]:
if link.isServer(router):
ip1 = IPy.IP(str(link.block[1]))
ip2 = IPy.IP(str(link.block[2]))
#BUG: fqdn might not be populated if just using hostnames.
#BUG: Need to allow reversing to alternate domain names if p2p routing block is private
#BUG: Need to put iface name in rev dns
rdns.write('%s\t\tPTR\t%s.\n' %(ip1.reverseName(), link.server.fqdn))
rdns.write('%s\t\tPTR\t%s.\n' %(ip2.reverseName(), link.client.fqdn))
self._files['dnsserver'] = {'/etc/mesh-reverse.db': rdns.getvalue()}
return True
def files(self):
""" Return a dictionary of routers containing a dictionary of filenames and contents """
return self._files
|
ae89d5de1a9d248951bed0b992500121860c47d4
|
tvsort_sl/messages.py
|
tvsort_sl/messages.py
|
import os
from sendgrid import sendgrid, Email
from sendgrid.helpers.mail import Content, Mail, MailSettings, SandBoxMode
def send_email(subject, content):
sg = sendgrid.SendGridAPIClient(apikey=os.environ.get('SENDGRID_API_KEY'))
from_email = Email(name='TV sort', email='tvsortsl@gmail.com')
to_email = Email(name='TV sort', email='tvsortsl@gmail.com')
content = Content("text/plain", content)
mail = Mail(from_email, subject, to_email, content)
sand_box = os.environ.get('SAND_BOX')
if sand_box == 'true':
mail_settings = MailSettings()
mail_settings.sandbox_mode = SandBoxMode(True)
mail.mail_settings = mail_settings
return sg.client.mail.send.post(request_body=mail.get())
|
import os
from sendgrid import sendgrid, Email
from sendgrid.helpers.mail import Content, Mail, MailSettings, SandBoxMode
def send_email(subject, content):
sg = sendgrid.SendGridAPIClient(apikey=os.environ.get('SENDGRID_API_KEY'))
from_email = Email(name='TV sort', email='tvsortsl@gmail.com')
to_email = Email(name='TV sort', email='tvsortsl@gmail.com')
content = Content("text/plain", content)
mail = Mail(from_email, subject, to_email, content)
sand_box = os.environ.get('SAND_BOX')
print(os.environ.get('SENDGRID_API_KEY'))
print(os.environ.get('SAND_BOX'))
if sand_box == 'true':
mail_settings = MailSettings()
mail_settings.sandbox_mode = SandBoxMode(True)
mail.mail_settings = mail_settings
return sg.client.mail.send.post(request_body=mail.get())
|
Add debug prints to send_email
|
Add debug prints to send_email
|
Python
|
mit
|
shlomiLan/tvsort_sl
|
import os
from sendgrid import sendgrid, Email
from sendgrid.helpers.mail import Content, Mail, MailSettings, SandBoxMode
def send_email(subject, content):
sg = sendgrid.SendGridAPIClient(apikey=os.environ.get('SENDGRID_API_KEY'))
from_email = Email(name='TV sort', email='tvsortsl@gmail.com')
to_email = Email(name='TV sort', email='tvsortsl@gmail.com')
content = Content("text/plain", content)
mail = Mail(from_email, subject, to_email, content)
sand_box = os.environ.get('SAND_BOX')
if sand_box == 'true':
mail_settings = MailSettings()
mail_settings.sandbox_mode = SandBoxMode(True)
mail.mail_settings = mail_settings
return sg.client.mail.send.post(request_body=mail.get())
Add debug prints to send_email
|
import os
from sendgrid import sendgrid, Email
from sendgrid.helpers.mail import Content, Mail, MailSettings, SandBoxMode
def send_email(subject, content):
sg = sendgrid.SendGridAPIClient(apikey=os.environ.get('SENDGRID_API_KEY'))
from_email = Email(name='TV sort', email='tvsortsl@gmail.com')
to_email = Email(name='TV sort', email='tvsortsl@gmail.com')
content = Content("text/plain", content)
mail = Mail(from_email, subject, to_email, content)
sand_box = os.environ.get('SAND_BOX')
print(os.environ.get('SENDGRID_API_KEY'))
print(os.environ.get('SAND_BOX'))
if sand_box == 'true':
mail_settings = MailSettings()
mail_settings.sandbox_mode = SandBoxMode(True)
mail.mail_settings = mail_settings
return sg.client.mail.send.post(request_body=mail.get())
|
<commit_before>import os
from sendgrid import sendgrid, Email
from sendgrid.helpers.mail import Content, Mail, MailSettings, SandBoxMode
def send_email(subject, content):
sg = sendgrid.SendGridAPIClient(apikey=os.environ.get('SENDGRID_API_KEY'))
from_email = Email(name='TV sort', email='tvsortsl@gmail.com')
to_email = Email(name='TV sort', email='tvsortsl@gmail.com')
content = Content("text/plain", content)
mail = Mail(from_email, subject, to_email, content)
sand_box = os.environ.get('SAND_BOX')
if sand_box == 'true':
mail_settings = MailSettings()
mail_settings.sandbox_mode = SandBoxMode(True)
mail.mail_settings = mail_settings
return sg.client.mail.send.post(request_body=mail.get())
<commit_msg>Add debug prints to send_email<commit_after>
|
import os
from sendgrid import sendgrid, Email
from sendgrid.helpers.mail import Content, Mail, MailSettings, SandBoxMode
def send_email(subject, content):
sg = sendgrid.SendGridAPIClient(apikey=os.environ.get('SENDGRID_API_KEY'))
from_email = Email(name='TV sort', email='tvsortsl@gmail.com')
to_email = Email(name='TV sort', email='tvsortsl@gmail.com')
content = Content("text/plain", content)
mail = Mail(from_email, subject, to_email, content)
sand_box = os.environ.get('SAND_BOX')
print(os.environ.get('SENDGRID_API_KEY'))
print(os.environ.get('SAND_BOX'))
if sand_box == 'true':
mail_settings = MailSettings()
mail_settings.sandbox_mode = SandBoxMode(True)
mail.mail_settings = mail_settings
return sg.client.mail.send.post(request_body=mail.get())
|
import os
from sendgrid import sendgrid, Email
from sendgrid.helpers.mail import Content, Mail, MailSettings, SandBoxMode
def send_email(subject, content):
sg = sendgrid.SendGridAPIClient(apikey=os.environ.get('SENDGRID_API_KEY'))
from_email = Email(name='TV sort', email='tvsortsl@gmail.com')
to_email = Email(name='TV sort', email='tvsortsl@gmail.com')
content = Content("text/plain", content)
mail = Mail(from_email, subject, to_email, content)
sand_box = os.environ.get('SAND_BOX')
if sand_box == 'true':
mail_settings = MailSettings()
mail_settings.sandbox_mode = SandBoxMode(True)
mail.mail_settings = mail_settings
return sg.client.mail.send.post(request_body=mail.get())
Add debug prints to send_emailimport os
from sendgrid import sendgrid, Email
from sendgrid.helpers.mail import Content, Mail, MailSettings, SandBoxMode
def send_email(subject, content):
sg = sendgrid.SendGridAPIClient(apikey=os.environ.get('SENDGRID_API_KEY'))
from_email = Email(name='TV sort', email='tvsortsl@gmail.com')
to_email = Email(name='TV sort', email='tvsortsl@gmail.com')
content = Content("text/plain", content)
mail = Mail(from_email, subject, to_email, content)
sand_box = os.environ.get('SAND_BOX')
print(os.environ.get('SENDGRID_API_KEY'))
print(os.environ.get('SAND_BOX'))
if sand_box == 'true':
mail_settings = MailSettings()
mail_settings.sandbox_mode = SandBoxMode(True)
mail.mail_settings = mail_settings
return sg.client.mail.send.post(request_body=mail.get())
|
<commit_before>import os
from sendgrid import sendgrid, Email
from sendgrid.helpers.mail import Content, Mail, MailSettings, SandBoxMode
def send_email(subject, content):
sg = sendgrid.SendGridAPIClient(apikey=os.environ.get('SENDGRID_API_KEY'))
from_email = Email(name='TV sort', email='tvsortsl@gmail.com')
to_email = Email(name='TV sort', email='tvsortsl@gmail.com')
content = Content("text/plain", content)
mail = Mail(from_email, subject, to_email, content)
sand_box = os.environ.get('SAND_BOX')
if sand_box == 'true':
mail_settings = MailSettings()
mail_settings.sandbox_mode = SandBoxMode(True)
mail.mail_settings = mail_settings
return sg.client.mail.send.post(request_body=mail.get())
<commit_msg>Add debug prints to send_email<commit_after>import os
from sendgrid import sendgrid, Email
from sendgrid.helpers.mail import Content, Mail, MailSettings, SandBoxMode
def send_email(subject, content):
sg = sendgrid.SendGridAPIClient(apikey=os.environ.get('SENDGRID_API_KEY'))
from_email = Email(name='TV sort', email='tvsortsl@gmail.com')
to_email = Email(name='TV sort', email='tvsortsl@gmail.com')
content = Content("text/plain", content)
mail = Mail(from_email, subject, to_email, content)
sand_box = os.environ.get('SAND_BOX')
print(os.environ.get('SENDGRID_API_KEY'))
print(os.environ.get('SAND_BOX'))
if sand_box == 'true':
mail_settings = MailSettings()
mail_settings.sandbox_mode = SandBoxMode(True)
mail.mail_settings = mail_settings
return sg.client.mail.send.post(request_body=mail.get())
|
a0211fa99dfb0647bf78ce672ebb3a778f6fb6b7
|
flaskext/lesscss.py
|
flaskext/lesscss.py
|
# -*- coding: utf-8 -*-
"""
flaskext.lesscss
~~~~~~~~~~~~~
A small Flask extension that makes it easy to use LessCSS with your Flask
application.
:copyright: (c) 2010 by Steve Losh.
:license: MIT, see LICENSE for more details.
"""
import os, subprocess
def lesscss(app):
@app.before_request
def _render_less_css():
static_dir = app.root_path + app.static_path
less_paths = []
for path, subdirs, filenames in os.walk(static_dir):
less_paths.extend([
os.path.join(path, f)
for f in filenames if os.path.splitext(f)[1] == '.less'
])
for less_path in less_paths:
css_path = os.path.splitext(less_path)[0] + '.css'
css_mtime, less_mtime = os.path.getmtime(css_path), os.path.getmtime(less_path)
if less_mtime >= css_mtime:
subprocess.call(['lessc', less_path, css_path], shell=False)
|
# -*- coding: utf-8 -*-
"""
flaskext.lesscss
~~~~~~~~~~~~~
A small Flask extension that makes it easy to use LessCSS with your Flask
application.
:copyright: (c) 2010 by Steve Losh.
:license: MIT, see LICENSE for more details.
"""
import os, subprocess
def lesscss(app):
@app.before_request
def _render_less_css():
static_dir = app.root_path + app.static_path
less_paths = []
for path, subdirs, filenames in os.walk(static_dir):
less_paths.extend([
os.path.join(path, f)
for f in filenames if os.path.splitext(f)[1] == '.less'
])
for less_path in less_paths:
css_path = os.path.splitext(less_path)[0] + '.css'
if not os.path.isfile(css_path):
css_mtime = -1
else:
css_mtime = os.path.getmtime(css_path)
less_mtime = os.path.getmtime(less_path)
if less_mtime >= css_mtime:
subprocess.call(['lessc', less_path, css_path], shell=False)
|
Fix errors when the css files do not exist.
|
Fix errors when the css files do not exist.
|
Python
|
mit
|
bpollack/flask-lesscss,fitoria/flask-lesscss,b4oshany/flask-lesscss,fitoria/flask-lesscss,sjl/flask-lesscss
|
# -*- coding: utf-8 -*-
"""
flaskext.lesscss
~~~~~~~~~~~~~
A small Flask extension that makes it easy to use LessCSS with your Flask
application.
:copyright: (c) 2010 by Steve Losh.
:license: MIT, see LICENSE for more details.
"""
import os, subprocess
def lesscss(app):
@app.before_request
def _render_less_css():
static_dir = app.root_path + app.static_path
less_paths = []
for path, subdirs, filenames in os.walk(static_dir):
less_paths.extend([
os.path.join(path, f)
for f in filenames if os.path.splitext(f)[1] == '.less'
])
for less_path in less_paths:
css_path = os.path.splitext(less_path)[0] + '.css'
css_mtime, less_mtime = os.path.getmtime(css_path), os.path.getmtime(less_path)
if less_mtime >= css_mtime:
subprocess.call(['lessc', less_path, css_path], shell=False)
Fix errors when the css files do not exist.
|
# -*- coding: utf-8 -*-
"""
flaskext.lesscss
~~~~~~~~~~~~~
A small Flask extension that makes it easy to use LessCSS with your Flask
application.
:copyright: (c) 2010 by Steve Losh.
:license: MIT, see LICENSE for more details.
"""
import os, subprocess
def lesscss(app):
@app.before_request
def _render_less_css():
static_dir = app.root_path + app.static_path
less_paths = []
for path, subdirs, filenames in os.walk(static_dir):
less_paths.extend([
os.path.join(path, f)
for f in filenames if os.path.splitext(f)[1] == '.less'
])
for less_path in less_paths:
css_path = os.path.splitext(less_path)[0] + '.css'
if not os.path.isfile(css_path):
css_mtime = -1
else:
css_mtime = os.path.getmtime(css_path)
less_mtime = os.path.getmtime(less_path)
if less_mtime >= css_mtime:
subprocess.call(['lessc', less_path, css_path], shell=False)
|
<commit_before># -*- coding: utf-8 -*-
"""
flaskext.lesscss
~~~~~~~~~~~~~
A small Flask extension that makes it easy to use LessCSS with your Flask
application.
:copyright: (c) 2010 by Steve Losh.
:license: MIT, see LICENSE for more details.
"""
import os, subprocess
def lesscss(app):
@app.before_request
def _render_less_css():
static_dir = app.root_path + app.static_path
less_paths = []
for path, subdirs, filenames in os.walk(static_dir):
less_paths.extend([
os.path.join(path, f)
for f in filenames if os.path.splitext(f)[1] == '.less'
])
for less_path in less_paths:
css_path = os.path.splitext(less_path)[0] + '.css'
css_mtime, less_mtime = os.path.getmtime(css_path), os.path.getmtime(less_path)
if less_mtime >= css_mtime:
subprocess.call(['lessc', less_path, css_path], shell=False)
<commit_msg>Fix errors when the css files do not exist.<commit_after>
|
# -*- coding: utf-8 -*-
"""
flaskext.lesscss
~~~~~~~~~~~~~
A small Flask extension that makes it easy to use LessCSS with your Flask
application.
:copyright: (c) 2010 by Steve Losh.
:license: MIT, see LICENSE for more details.
"""
import os, subprocess
def lesscss(app):
@app.before_request
def _render_less_css():
static_dir = app.root_path + app.static_path
less_paths = []
for path, subdirs, filenames in os.walk(static_dir):
less_paths.extend([
os.path.join(path, f)
for f in filenames if os.path.splitext(f)[1] == '.less'
])
for less_path in less_paths:
css_path = os.path.splitext(less_path)[0] + '.css'
if not os.path.isfile(css_path):
css_mtime = -1
else:
css_mtime = os.path.getmtime(css_path)
less_mtime = os.path.getmtime(less_path)
if less_mtime >= css_mtime:
subprocess.call(['lessc', less_path, css_path], shell=False)
|
# -*- coding: utf-8 -*-
"""
flaskext.lesscss
~~~~~~~~~~~~~
A small Flask extension that makes it easy to use LessCSS with your Flask
application.
:copyright: (c) 2010 by Steve Losh.
:license: MIT, see LICENSE for more details.
"""
import os, subprocess
def lesscss(app):
@app.before_request
def _render_less_css():
static_dir = app.root_path + app.static_path
less_paths = []
for path, subdirs, filenames in os.walk(static_dir):
less_paths.extend([
os.path.join(path, f)
for f in filenames if os.path.splitext(f)[1] == '.less'
])
for less_path in less_paths:
css_path = os.path.splitext(less_path)[0] + '.css'
css_mtime, less_mtime = os.path.getmtime(css_path), os.path.getmtime(less_path)
if less_mtime >= css_mtime:
subprocess.call(['lessc', less_path, css_path], shell=False)
Fix errors when the css files do not exist.# -*- coding: utf-8 -*-
"""
flaskext.lesscss
~~~~~~~~~~~~~
A small Flask extension that makes it easy to use LessCSS with your Flask
application.
:copyright: (c) 2010 by Steve Losh.
:license: MIT, see LICENSE for more details.
"""
import os, subprocess
def lesscss(app):
@app.before_request
def _render_less_css():
static_dir = app.root_path + app.static_path
less_paths = []
for path, subdirs, filenames in os.walk(static_dir):
less_paths.extend([
os.path.join(path, f)
for f in filenames if os.path.splitext(f)[1] == '.less'
])
for less_path in less_paths:
css_path = os.path.splitext(less_path)[0] + '.css'
if not os.path.isfile(css_path):
css_mtime = -1
else:
css_mtime = os.path.getmtime(css_path)
less_mtime = os.path.getmtime(less_path)
if less_mtime >= css_mtime:
subprocess.call(['lessc', less_path, css_path], shell=False)
|
<commit_before># -*- coding: utf-8 -*-
"""
flaskext.lesscss
~~~~~~~~~~~~~
A small Flask extension that makes it easy to use LessCSS with your Flask
application.
:copyright: (c) 2010 by Steve Losh.
:license: MIT, see LICENSE for more details.
"""
import os, subprocess
def lesscss(app):
@app.before_request
def _render_less_css():
static_dir = app.root_path + app.static_path
less_paths = []
for path, subdirs, filenames in os.walk(static_dir):
less_paths.extend([
os.path.join(path, f)
for f in filenames if os.path.splitext(f)[1] == '.less'
])
for less_path in less_paths:
css_path = os.path.splitext(less_path)[0] + '.css'
css_mtime, less_mtime = os.path.getmtime(css_path), os.path.getmtime(less_path)
if less_mtime >= css_mtime:
subprocess.call(['lessc', less_path, css_path], shell=False)
<commit_msg>Fix errors when the css files do not exist.<commit_after># -*- coding: utf-8 -*-
"""
flaskext.lesscss
~~~~~~~~~~~~~
A small Flask extension that makes it easy to use LessCSS with your Flask
application.
:copyright: (c) 2010 by Steve Losh.
:license: MIT, see LICENSE for more details.
"""
import os, subprocess
def lesscss(app):
@app.before_request
def _render_less_css():
static_dir = app.root_path + app.static_path
less_paths = []
for path, subdirs, filenames in os.walk(static_dir):
less_paths.extend([
os.path.join(path, f)
for f in filenames if os.path.splitext(f)[1] == '.less'
])
for less_path in less_paths:
css_path = os.path.splitext(less_path)[0] + '.css'
if not os.path.isfile(css_path):
css_mtime = -1
else:
css_mtime = os.path.getmtime(css_path)
less_mtime = os.path.getmtime(less_path)
if less_mtime >= css_mtime:
subprocess.call(['lessc', less_path, css_path], shell=False)
|
26e0a0ce2cb8b907ca7ea7ad098c644c2213fa1b
|
usb/tests/test_api.py
|
usb/tests/test_api.py
|
import json
from unittest import TestCase
from usb import create_application
from usb.models import db
class APITestCase(TestCase):
def setUp(self):
self.app = create_application('config/test.py')
self.client = self.app.test_client()
db.app = self.app
db.create_all()
def tearDown(self):
db.session.remove()
db.drop_all()
def test_redirect_from_index_namespace(self):
pass
def test_redirect_from_links_namespace(self):
pass
def test_create_short_link(self):
pass
def test_update_short_link(self):
pass
def test_get_list_of_short_links(self):
pass
def test_get_list_of_short_links_empty_db(self):
response = self.client.get('/links')
self.assertEqual(response.status_code, 200)
data = json.loads(response.data)
self.assertEqual(data, {})
|
import json
from unittest import TestCase
from usb import create_application
from usb.models import db
class APITestCase(TestCase):
def setUp(self):
self.app = create_application('config/test.py')
self.client = self.app.test_client()
db.app = self.app
db.create_all()
def tearDown(self):
db.session.remove()
db.drop_all()
def test_redirect_from_index_namespace(self):
pass
def test_redirect_from_links_namespace(self):
pass
def test_create_short_link(self):
pass
def test_update_short_link(self):
pass
def test_get_list_of_short_links(self):
pass
def test_get_list_of_short_links_empty_db(self):
response = self.client.get('/links')
self.assertEqual(response.status_code, 200)
self.assertEqual(response.headers['Content-Type'], 'application/json')
data = json.loads(response.data)
self.assertEqual(data, {})
|
Test content type for JSON API
|
Test content type for JSON API
|
Python
|
mit
|
dizpers/usb
|
import json
from unittest import TestCase
from usb import create_application
from usb.models import db
class APITestCase(TestCase):
def setUp(self):
self.app = create_application('config/test.py')
self.client = self.app.test_client()
db.app = self.app
db.create_all()
def tearDown(self):
db.session.remove()
db.drop_all()
def test_redirect_from_index_namespace(self):
pass
def test_redirect_from_links_namespace(self):
pass
def test_create_short_link(self):
pass
def test_update_short_link(self):
pass
def test_get_list_of_short_links(self):
pass
def test_get_list_of_short_links_empty_db(self):
response = self.client.get('/links')
self.assertEqual(response.status_code, 200)
data = json.loads(response.data)
self.assertEqual(data, {})
Test content type for JSON API
|
import json
from unittest import TestCase
from usb import create_application
from usb.models import db
class APITestCase(TestCase):
def setUp(self):
self.app = create_application('config/test.py')
self.client = self.app.test_client()
db.app = self.app
db.create_all()
def tearDown(self):
db.session.remove()
db.drop_all()
def test_redirect_from_index_namespace(self):
pass
def test_redirect_from_links_namespace(self):
pass
def test_create_short_link(self):
pass
def test_update_short_link(self):
pass
def test_get_list_of_short_links(self):
pass
def test_get_list_of_short_links_empty_db(self):
response = self.client.get('/links')
self.assertEqual(response.status_code, 200)
self.assertEqual(response.headers['Content-Type'], 'application/json')
data = json.loads(response.data)
self.assertEqual(data, {})
|
<commit_before>import json
from unittest import TestCase
from usb import create_application
from usb.models import db
class APITestCase(TestCase):
def setUp(self):
self.app = create_application('config/test.py')
self.client = self.app.test_client()
db.app = self.app
db.create_all()
def tearDown(self):
db.session.remove()
db.drop_all()
def test_redirect_from_index_namespace(self):
pass
def test_redirect_from_links_namespace(self):
pass
def test_create_short_link(self):
pass
def test_update_short_link(self):
pass
def test_get_list_of_short_links(self):
pass
def test_get_list_of_short_links_empty_db(self):
response = self.client.get('/links')
self.assertEqual(response.status_code, 200)
data = json.loads(response.data)
self.assertEqual(data, {})
<commit_msg>Test content type for JSON API<commit_after>
|
import json
from unittest import TestCase
from usb import create_application
from usb.models import db
class APITestCase(TestCase):
def setUp(self):
self.app = create_application('config/test.py')
self.client = self.app.test_client()
db.app = self.app
db.create_all()
def tearDown(self):
db.session.remove()
db.drop_all()
def test_redirect_from_index_namespace(self):
pass
def test_redirect_from_links_namespace(self):
pass
def test_create_short_link(self):
pass
def test_update_short_link(self):
pass
def test_get_list_of_short_links(self):
pass
def test_get_list_of_short_links_empty_db(self):
response = self.client.get('/links')
self.assertEqual(response.status_code, 200)
self.assertEqual(response.headers['Content-Type'], 'application/json')
data = json.loads(response.data)
self.assertEqual(data, {})
|
import json
from unittest import TestCase
from usb import create_application
from usb.models import db
class APITestCase(TestCase):
def setUp(self):
self.app = create_application('config/test.py')
self.client = self.app.test_client()
db.app = self.app
db.create_all()
def tearDown(self):
db.session.remove()
db.drop_all()
def test_redirect_from_index_namespace(self):
pass
def test_redirect_from_links_namespace(self):
pass
def test_create_short_link(self):
pass
def test_update_short_link(self):
pass
def test_get_list_of_short_links(self):
pass
def test_get_list_of_short_links_empty_db(self):
response = self.client.get('/links')
self.assertEqual(response.status_code, 200)
data = json.loads(response.data)
self.assertEqual(data, {})
Test content type for JSON APIimport json
from unittest import TestCase
from usb import create_application
from usb.models import db
class APITestCase(TestCase):
def setUp(self):
self.app = create_application('config/test.py')
self.client = self.app.test_client()
db.app = self.app
db.create_all()
def tearDown(self):
db.session.remove()
db.drop_all()
def test_redirect_from_index_namespace(self):
pass
def test_redirect_from_links_namespace(self):
pass
def test_create_short_link(self):
pass
def test_update_short_link(self):
pass
def test_get_list_of_short_links(self):
pass
def test_get_list_of_short_links_empty_db(self):
response = self.client.get('/links')
self.assertEqual(response.status_code, 200)
self.assertEqual(response.headers['Content-Type'], 'application/json')
data = json.loads(response.data)
self.assertEqual(data, {})
|
<commit_before>import json
from unittest import TestCase
from usb import create_application
from usb.models import db
class APITestCase(TestCase):
def setUp(self):
self.app = create_application('config/test.py')
self.client = self.app.test_client()
db.app = self.app
db.create_all()
def tearDown(self):
db.session.remove()
db.drop_all()
def test_redirect_from_index_namespace(self):
pass
def test_redirect_from_links_namespace(self):
pass
def test_create_short_link(self):
pass
def test_update_short_link(self):
pass
def test_get_list_of_short_links(self):
pass
def test_get_list_of_short_links_empty_db(self):
response = self.client.get('/links')
self.assertEqual(response.status_code, 200)
data = json.loads(response.data)
self.assertEqual(data, {})
<commit_msg>Test content type for JSON API<commit_after>import json
from unittest import TestCase
from usb import create_application
from usb.models import db
class APITestCase(TestCase):
def setUp(self):
self.app = create_application('config/test.py')
self.client = self.app.test_client()
db.app = self.app
db.create_all()
def tearDown(self):
db.session.remove()
db.drop_all()
def test_redirect_from_index_namespace(self):
pass
def test_redirect_from_links_namespace(self):
pass
def test_create_short_link(self):
pass
def test_update_short_link(self):
pass
def test_get_list_of_short_links(self):
pass
def test_get_list_of_short_links_empty_db(self):
response = self.client.get('/links')
self.assertEqual(response.status_code, 200)
self.assertEqual(response.headers['Content-Type'], 'application/json')
data = json.loads(response.data)
self.assertEqual(data, {})
|
49724932966fc509b202a80b6dcb9b309f0135a7
|
flexget/__init__.py
|
flexget/__init__.py
|
#!/usr/bin/python
from __future__ import unicode_literals, division, absolute_import
import logging
import os
from flexget import logger, plugin
from flexget.manager import Manager
from flexget.options import get_parser
__version__ = '{git}'
log = logging.getLogger('main')
def main(args=None):
"""Main entry point for Command Line Interface"""
logger.initialize()
plugin.load_plugins()
options = get_parser().parse_args(args)
manager = Manager(options)
if options.profile:
try:
import cProfile as profile
except ImportError:
import profile
profile.runctx('manager.start()', globals(), locals(),
os.path.join(manager.config_base, options.profile))
else:
manager.start()
|
#!/usr/bin/python
from __future__ import unicode_literals, division, absolute_import
__version__ = '{git}'
import logging
import os
from flexget import logger, plugin
from flexget.manager import Manager
from flexget.options import get_parser
log = logging.getLogger('main')
def main(args=None):
"""Main entry point for Command Line Interface"""
logger.initialize()
plugin.load_plugins()
options = get_parser().parse_args(args)
manager = Manager(options)
if options.profile:
try:
import cProfile as profile
except ImportError:
import profile
profile.runctx('manager.start()', globals(), locals(),
os.path.join(manager.config_base, options.profile))
else:
manager.start()
|
Move __version__ declaration before imports
|
Move __version__ declaration before imports
|
Python
|
mit
|
lildadou/Flexget,oxc/Flexget,JorisDeRieck/Flexget,tsnoam/Flexget,malkavi/Flexget,oxc/Flexget,crawln45/Flexget,tsnoam/Flexget,grrr2/Flexget,sean797/Flexget,dsemi/Flexget,drwyrm/Flexget,jawilson/Flexget,malkavi/Flexget,malkavi/Flexget,v17al/Flexget,jawilson/Flexget,drwyrm/Flexget,patsissons/Flexget,antivirtel/Flexget,tarzasai/Flexget,tobinjt/Flexget,jacobmetrick/Flexget,LynxyssCZ/Flexget,LynxyssCZ/Flexget,qk4l/Flexget,crawln45/Flexget,poulpito/Flexget,xfouloux/Flexget,offbyone/Flexget,tobinjt/Flexget,grrr2/Flexget,ratoaq2/Flexget,xfouloux/Flexget,tobinjt/Flexget,tobinjt/Flexget,lildadou/Flexget,Flexget/Flexget,Pretagonist/Flexget,ianstalk/Flexget,Pretagonist/Flexget,Flexget/Flexget,Flexget/Flexget,qvazzler/Flexget,Flexget/Flexget,grrr2/Flexget,tarzasai/Flexget,xfouloux/Flexget,sean797/Flexget,LynxyssCZ/Flexget,ZefQ/Flexget,jacobmetrick/Flexget,ratoaq2/Flexget,qk4l/Flexget,vfrc2/Flexget,Danfocus/Flexget,spencerjanssen/Flexget,gazpachoking/Flexget,ianstalk/Flexget,Danfocus/Flexget,malkavi/Flexget,vfrc2/Flexget,jawilson/Flexget,patsissons/Flexget,qvazzler/Flexget,thalamus/Flexget,v17al/Flexget,offbyone/Flexget,thalamus/Flexget,cvium/Flexget,v17al/Flexget,antivirtel/Flexget,jacobmetrick/Flexget,JorisDeRieck/Flexget,offbyone/Flexget,crawln45/Flexget,gazpachoking/Flexget,drwyrm/Flexget,ibrahimkarahan/Flexget,vfrc2/Flexget,oxc/Flexget,qk4l/Flexget,tvcsantos/Flexget,ratoaq2/Flexget,lildadou/Flexget,antivirtel/Flexget,ZefQ/Flexget,Pretagonist/Flexget,ianstalk/Flexget,poulpito/Flexget,ZefQ/Flexget,tsnoam/Flexget,JorisDeRieck/Flexget,camon/Flexget,JorisDeRieck/Flexget,ibrahimkarahan/Flexget,poulpito/Flexget,OmgOhnoes/Flexget,tarzasai/Flexget,thalamus/Flexget,dsemi/Flexget,sean797/Flexget,spencerjanssen/Flexget,cvium/Flexget,patsissons/Flexget,Danfocus/Flexget,dsemi/Flexget,tvcsantos/Flexget,ibrahimkarahan/Flexget,jawilson/Flexget,LynxyssCZ/Flexget,Danfocus/Flexget,crawln45/Flexget,cvium/Flexget,OmgOhnoes/Flexget,qvazzler/Flexget,OmgOhnoes/Flexget,spencerjanssen/Flexget,camon/Flexget
|
#!/usr/bin/python
from __future__ import unicode_literals, division, absolute_import
import logging
import os
from flexget import logger, plugin
from flexget.manager import Manager
from flexget.options import get_parser
__version__ = '{git}'
log = logging.getLogger('main')
def main(args=None):
"""Main entry point for Command Line Interface"""
logger.initialize()
plugin.load_plugins()
options = get_parser().parse_args(args)
manager = Manager(options)
if options.profile:
try:
import cProfile as profile
except ImportError:
import profile
profile.runctx('manager.start()', globals(), locals(),
os.path.join(manager.config_base, options.profile))
else:
manager.start()
Move __version__ declaration before imports
|
#!/usr/bin/python
from __future__ import unicode_literals, division, absolute_import
__version__ = '{git}'
import logging
import os
from flexget import logger, plugin
from flexget.manager import Manager
from flexget.options import get_parser
log = logging.getLogger('main')
def main(args=None):
"""Main entry point for Command Line Interface"""
logger.initialize()
plugin.load_plugins()
options = get_parser().parse_args(args)
manager = Manager(options)
if options.profile:
try:
import cProfile as profile
except ImportError:
import profile
profile.runctx('manager.start()', globals(), locals(),
os.path.join(manager.config_base, options.profile))
else:
manager.start()
|
<commit_before>#!/usr/bin/python
from __future__ import unicode_literals, division, absolute_import
import logging
import os
from flexget import logger, plugin
from flexget.manager import Manager
from flexget.options import get_parser
__version__ = '{git}'
log = logging.getLogger('main')
def main(args=None):
"""Main entry point for Command Line Interface"""
logger.initialize()
plugin.load_plugins()
options = get_parser().parse_args(args)
manager = Manager(options)
if options.profile:
try:
import cProfile as profile
except ImportError:
import profile
profile.runctx('manager.start()', globals(), locals(),
os.path.join(manager.config_base, options.profile))
else:
manager.start()
<commit_msg>Move __version__ declaration before imports<commit_after>
|
#!/usr/bin/python
from __future__ import unicode_literals, division, absolute_import
__version__ = '{git}'
import logging
import os
from flexget import logger, plugin
from flexget.manager import Manager
from flexget.options import get_parser
log = logging.getLogger('main')
def main(args=None):
"""Main entry point for Command Line Interface"""
logger.initialize()
plugin.load_plugins()
options = get_parser().parse_args(args)
manager = Manager(options)
if options.profile:
try:
import cProfile as profile
except ImportError:
import profile
profile.runctx('manager.start()', globals(), locals(),
os.path.join(manager.config_base, options.profile))
else:
manager.start()
|
#!/usr/bin/python
from __future__ import unicode_literals, division, absolute_import
import logging
import os
from flexget import logger, plugin
from flexget.manager import Manager
from flexget.options import get_parser
__version__ = '{git}'
log = logging.getLogger('main')
def main(args=None):
"""Main entry point for Command Line Interface"""
logger.initialize()
plugin.load_plugins()
options = get_parser().parse_args(args)
manager = Manager(options)
if options.profile:
try:
import cProfile as profile
except ImportError:
import profile
profile.runctx('manager.start()', globals(), locals(),
os.path.join(manager.config_base, options.profile))
else:
manager.start()
Move __version__ declaration before imports#!/usr/bin/python
from __future__ import unicode_literals, division, absolute_import
__version__ = '{git}'
import logging
import os
from flexget import logger, plugin
from flexget.manager import Manager
from flexget.options import get_parser
log = logging.getLogger('main')
def main(args=None):
"""Main entry point for Command Line Interface"""
logger.initialize()
plugin.load_plugins()
options = get_parser().parse_args(args)
manager = Manager(options)
if options.profile:
try:
import cProfile as profile
except ImportError:
import profile
profile.runctx('manager.start()', globals(), locals(),
os.path.join(manager.config_base, options.profile))
else:
manager.start()
|
<commit_before>#!/usr/bin/python
from __future__ import unicode_literals, division, absolute_import
import logging
import os
from flexget import logger, plugin
from flexget.manager import Manager
from flexget.options import get_parser
__version__ = '{git}'
log = logging.getLogger('main')
def main(args=None):
"""Main entry point for Command Line Interface"""
logger.initialize()
plugin.load_plugins()
options = get_parser().parse_args(args)
manager = Manager(options)
if options.profile:
try:
import cProfile as profile
except ImportError:
import profile
profile.runctx('manager.start()', globals(), locals(),
os.path.join(manager.config_base, options.profile))
else:
manager.start()
<commit_msg>Move __version__ declaration before imports<commit_after>#!/usr/bin/python
from __future__ import unicode_literals, division, absolute_import
__version__ = '{git}'
import logging
import os
from flexget import logger, plugin
from flexget.manager import Manager
from flexget.options import get_parser
log = logging.getLogger('main')
def main(args=None):
"""Main entry point for Command Line Interface"""
logger.initialize()
plugin.load_plugins()
options = get_parser().parse_args(args)
manager = Manager(options)
if options.profile:
try:
import cProfile as profile
except ImportError:
import profile
profile.runctx('manager.start()', globals(), locals(),
os.path.join(manager.config_base, options.profile))
else:
manager.start()
|
0aa97f39cdc91820385cdda4741802d09c30aa37
|
src/lib/pipeline_tools.py
|
src/lib/pipeline_tools.py
|
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from typing import Iterator, Dict
from lib.constants import SRC
from lib.pipeline import DataPipeline
def get_pipeline_names() -> Iterator[str]:
""" Iterator with all the names of available data pipelines """
for item in (SRC / "pipelines").iterdir():
if not item.name.startswith("_") and not item.is_file() and item.name == "epidemiology":
yield item.name
def get_table_names() -> Iterator[str]:
""" Iterator with all the available table names """
for pipeline_name in get_pipeline_names():
yield pipeline_name.replace("_", "-")
def get_pipelines() -> Iterator[DataPipeline]:
""" Iterator with all the available data pipelines """
for pipeline_name in get_pipeline_names():
yield DataPipeline.load(pipeline_name)
def get_schema() -> Dict[str, type]:
""" Outputs all known column schemas """
schema: Dict[str, type] = {}
for pipeline in get_pipelines():
schema.update(pipeline.schema)
return schema
|
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from typing import Iterator, Dict
from lib.constants import SRC
from lib.pipeline import DataPipeline
def get_pipeline_names() -> Iterator[str]:
""" Iterator with all the names of available data pipelines """
for item in (SRC / "pipelines").iterdir():
if not item.name.startswith("_") and not item.is_file():
yield item.name
def get_table_names() -> Iterator[str]:
""" Iterator with all the available table names """
for pipeline_name in get_pipeline_names():
yield pipeline_name.replace("_", "-")
def get_pipelines() -> Iterator[DataPipeline]:
""" Iterator with all the available data pipelines """
for pipeline_name in get_pipeline_names():
yield DataPipeline.load(pipeline_name)
def get_schema() -> Dict[str, type]:
""" Outputs all known column schemas """
schema: Dict[str, type] = {}
for pipeline in get_pipelines():
schema.update(pipeline.schema)
return schema
|
Fix a debug line in a test lib
|
Fix a debug line in a test lib
|
Python
|
apache-2.0
|
GoogleCloudPlatform/covid-19-open-data,GoogleCloudPlatform/covid-19-open-data
|
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from typing import Iterator, Dict
from lib.constants import SRC
from lib.pipeline import DataPipeline
def get_pipeline_names() -> Iterator[str]:
""" Iterator with all the names of available data pipelines """
for item in (SRC / "pipelines").iterdir():
if not item.name.startswith("_") and not item.is_file() and item.name == "epidemiology":
yield item.name
def get_table_names() -> Iterator[str]:
""" Iterator with all the available table names """
for pipeline_name in get_pipeline_names():
yield pipeline_name.replace("_", "-")
def get_pipelines() -> Iterator[DataPipeline]:
""" Iterator with all the available data pipelines """
for pipeline_name in get_pipeline_names():
yield DataPipeline.load(pipeline_name)
def get_schema() -> Dict[str, type]:
""" Outputs all known column schemas """
schema: Dict[str, type] = {}
for pipeline in get_pipelines():
schema.update(pipeline.schema)
return schema
Fix a debug line in a test lib
|
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from typing import Iterator, Dict
from lib.constants import SRC
from lib.pipeline import DataPipeline
def get_pipeline_names() -> Iterator[str]:
""" Iterator with all the names of available data pipelines """
for item in (SRC / "pipelines").iterdir():
if not item.name.startswith("_") and not item.is_file():
yield item.name
def get_table_names() -> Iterator[str]:
""" Iterator with all the available table names """
for pipeline_name in get_pipeline_names():
yield pipeline_name.replace("_", "-")
def get_pipelines() -> Iterator[DataPipeline]:
""" Iterator with all the available data pipelines """
for pipeline_name in get_pipeline_names():
yield DataPipeline.load(pipeline_name)
def get_schema() -> Dict[str, type]:
""" Outputs all known column schemas """
schema: Dict[str, type] = {}
for pipeline in get_pipelines():
schema.update(pipeline.schema)
return schema
|
<commit_before># Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from typing import Iterator, Dict
from lib.constants import SRC
from lib.pipeline import DataPipeline
def get_pipeline_names() -> Iterator[str]:
""" Iterator with all the names of available data pipelines """
for item in (SRC / "pipelines").iterdir():
if not item.name.startswith("_") and not item.is_file() and item.name == "epidemiology":
yield item.name
def get_table_names() -> Iterator[str]:
""" Iterator with all the available table names """
for pipeline_name in get_pipeline_names():
yield pipeline_name.replace("_", "-")
def get_pipelines() -> Iterator[DataPipeline]:
""" Iterator with all the available data pipelines """
for pipeline_name in get_pipeline_names():
yield DataPipeline.load(pipeline_name)
def get_schema() -> Dict[str, type]:
""" Outputs all known column schemas """
schema: Dict[str, type] = {}
for pipeline in get_pipelines():
schema.update(pipeline.schema)
return schema
<commit_msg>Fix a debug line in a test lib<commit_after>
|
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from typing import Iterator, Dict
from lib.constants import SRC
from lib.pipeline import DataPipeline
def get_pipeline_names() -> Iterator[str]:
""" Iterator with all the names of available data pipelines """
for item in (SRC / "pipelines").iterdir():
if not item.name.startswith("_") and not item.is_file():
yield item.name
def get_table_names() -> Iterator[str]:
""" Iterator with all the available table names """
for pipeline_name in get_pipeline_names():
yield pipeline_name.replace("_", "-")
def get_pipelines() -> Iterator[DataPipeline]:
""" Iterator with all the available data pipelines """
for pipeline_name in get_pipeline_names():
yield DataPipeline.load(pipeline_name)
def get_schema() -> Dict[str, type]:
""" Outputs all known column schemas """
schema: Dict[str, type] = {}
for pipeline in get_pipelines():
schema.update(pipeline.schema)
return schema
|
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from typing import Iterator, Dict
from lib.constants import SRC
from lib.pipeline import DataPipeline
def get_pipeline_names() -> Iterator[str]:
""" Iterator with all the names of available data pipelines """
for item in (SRC / "pipelines").iterdir():
if not item.name.startswith("_") and not item.is_file() and item.name == "epidemiology":
yield item.name
def get_table_names() -> Iterator[str]:
""" Iterator with all the available table names """
for pipeline_name in get_pipeline_names():
yield pipeline_name.replace("_", "-")
def get_pipelines() -> Iterator[DataPipeline]:
""" Iterator with all the available data pipelines """
for pipeline_name in get_pipeline_names():
yield DataPipeline.load(pipeline_name)
def get_schema() -> Dict[str, type]:
""" Outputs all known column schemas """
schema: Dict[str, type] = {}
for pipeline in get_pipelines():
schema.update(pipeline.schema)
return schema
Fix a debug line in a test lib# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from typing import Iterator, Dict
from lib.constants import SRC
from lib.pipeline import DataPipeline
def get_pipeline_names() -> Iterator[str]:
""" Iterator with all the names of available data pipelines """
for item in (SRC / "pipelines").iterdir():
if not item.name.startswith("_") and not item.is_file():
yield item.name
def get_table_names() -> Iterator[str]:
""" Iterator with all the available table names """
for pipeline_name in get_pipeline_names():
yield pipeline_name.replace("_", "-")
def get_pipelines() -> Iterator[DataPipeline]:
""" Iterator with all the available data pipelines """
for pipeline_name in get_pipeline_names():
yield DataPipeline.load(pipeline_name)
def get_schema() -> Dict[str, type]:
""" Outputs all known column schemas """
schema: Dict[str, type] = {}
for pipeline in get_pipelines():
schema.update(pipeline.schema)
return schema
|
<commit_before># Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from typing import Iterator, Dict
from lib.constants import SRC
from lib.pipeline import DataPipeline
def get_pipeline_names() -> Iterator[str]:
""" Iterator with all the names of available data pipelines """
for item in (SRC / "pipelines").iterdir():
if not item.name.startswith("_") and not item.is_file() and item.name == "epidemiology":
yield item.name
def get_table_names() -> Iterator[str]:
""" Iterator with all the available table names """
for pipeline_name in get_pipeline_names():
yield pipeline_name.replace("_", "-")
def get_pipelines() -> Iterator[DataPipeline]:
""" Iterator with all the available data pipelines """
for pipeline_name in get_pipeline_names():
yield DataPipeline.load(pipeline_name)
def get_schema() -> Dict[str, type]:
""" Outputs all known column schemas """
schema: Dict[str, type] = {}
for pipeline in get_pipelines():
schema.update(pipeline.schema)
return schema
<commit_msg>Fix a debug line in a test lib<commit_after># Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from typing import Iterator, Dict
from lib.constants import SRC
from lib.pipeline import DataPipeline
def get_pipeline_names() -> Iterator[str]:
""" Iterator with all the names of available data pipelines """
for item in (SRC / "pipelines").iterdir():
if not item.name.startswith("_") and not item.is_file():
yield item.name
def get_table_names() -> Iterator[str]:
""" Iterator with all the available table names """
for pipeline_name in get_pipeline_names():
yield pipeline_name.replace("_", "-")
def get_pipelines() -> Iterator[DataPipeline]:
""" Iterator with all the available data pipelines """
for pipeline_name in get_pipeline_names():
yield DataPipeline.load(pipeline_name)
def get_schema() -> Dict[str, type]:
""" Outputs all known column schemas """
schema: Dict[str, type] = {}
for pipeline in get_pipelines():
schema.update(pipeline.schema)
return schema
|
4364ffc7efd69a0d85dab6cb2c0efd1d2f4bf612
|
get_sonos_ip.py
|
get_sonos_ip.py
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# author: Benjamin Preisig
import soco
import re
zone_list = list(soco.discover())
for zone in zone_list:
print u"Player: {0} at IP: {1}".format(zone.player_name, zone)
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# author: Benjamin Preisig
import soco
import re
import codecs
zone_list = list(soco.discover())
with codecs.open('discovered.csv', "w", "utf-8-sig") as the_file:
for zone in zone_list:
print u"Player: {0} at IP: {1}".format(zone.player_name, zone)
the_file.write(u"Player: {0},{1}\n".format(zone.player_name, zone))
|
Write Zone Information to File
|
Write Zone Information to File
|
Python
|
mit
|
prebm/SonosRemote,prebm/SonosRemote
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# author: Benjamin Preisig
import soco
import re
zone_list = list(soco.discover())
for zone in zone_list:
print u"Player: {0} at IP: {1}".format(zone.player_name, zone)Write Zone Information to File
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# author: Benjamin Preisig
import soco
import re
import codecs
zone_list = list(soco.discover())
with codecs.open('discovered.csv', "w", "utf-8-sig") as the_file:
for zone in zone_list:
print u"Player: {0} at IP: {1}".format(zone.player_name, zone)
the_file.write(u"Player: {0},{1}\n".format(zone.player_name, zone))
|
<commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
# author: Benjamin Preisig
import soco
import re
zone_list = list(soco.discover())
for zone in zone_list:
print u"Player: {0} at IP: {1}".format(zone.player_name, zone)<commit_msg>Write Zone Information to File<commit_after>
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# author: Benjamin Preisig
import soco
import re
import codecs
zone_list = list(soco.discover())
with codecs.open('discovered.csv', "w", "utf-8-sig") as the_file:
for zone in zone_list:
print u"Player: {0} at IP: {1}".format(zone.player_name, zone)
the_file.write(u"Player: {0},{1}\n".format(zone.player_name, zone))
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# author: Benjamin Preisig
import soco
import re
zone_list = list(soco.discover())
for zone in zone_list:
print u"Player: {0} at IP: {1}".format(zone.player_name, zone)Write Zone Information to File#!/usr/bin/env python
# -*- coding: utf-8 -*-
# author: Benjamin Preisig
import soco
import re
import codecs
zone_list = list(soco.discover())
with codecs.open('discovered.csv', "w", "utf-8-sig") as the_file:
for zone in zone_list:
print u"Player: {0} at IP: {1}".format(zone.player_name, zone)
the_file.write(u"Player: {0},{1}\n".format(zone.player_name, zone))
|
<commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
# author: Benjamin Preisig
import soco
import re
zone_list = list(soco.discover())
for zone in zone_list:
print u"Player: {0} at IP: {1}".format(zone.player_name, zone)<commit_msg>Write Zone Information to File<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-
# author: Benjamin Preisig
import soco
import re
import codecs
zone_list = list(soco.discover())
with codecs.open('discovered.csv', "w", "utf-8-sig") as the_file:
for zone in zone_list:
print u"Player: {0} at IP: {1}".format(zone.player_name, zone)
the_file.write(u"Player: {0},{1}\n".format(zone.player_name, zone))
|
60838c6a1cd1a22b01ab9c4ed8530415c51ac572
|
cvrminer/app/views.py
|
cvrminer/app/views.py
|
"""Views for cvrminer app."""
from flask import Blueprint, current_app, render_template
from ..xbrler import search_for_regnskaber
from ..wikidata import cvr_to_q
main = Blueprint('app', __name__)
@main.route("/")
def index():
"""Return index page of for app."""
return render_template('base.html')
@main.route("/smiley/")
def smiley():
"""Return smiley page of for app."""
if current_app.smiley:
table = current_app.smiley.db.tables.smiley.head(n=10000).to_html()
else:
table = ''
return render_template('smiley.html', table=table)
@main.route("/cvr/<int:cvr>")
def show_cvr(cvr):
"""Return CVR page of for app."""
q = cvr_to_q(cvr)
regnskaber = search_for_regnskaber(cvr=cvr)
return render_template('cvr.html',
cvr=cvr, regnskaber=regnskaber, q=q)
|
"""Views for cvrminer app."""
from flask import Blueprint, current_app, render_template
from ..xbrler import search_for_regnskaber
from ..wikidata import cvr_to_q
main = Blueprint('app', __name__)
@main.route("/")
def index():
"""Return index page of for app."""
return render_template('index.html')
@main.route("/smiley/")
def smiley():
"""Return smiley page of for app."""
if current_app.smiley:
table = current_app.smiley.db.tables.smiley.head(n=10000).to_html()
else:
table = ''
return render_template('smiley.html', table=table)
@main.route("/cvr/<int:cvr>")
def show_cvr(cvr):
"""Return CVR page of for app."""
q = cvr_to_q(cvr)
regnskaber = search_for_regnskaber(cvr=cvr)
return render_template('cvr.html',
cvr=cvr, regnskaber=regnskaber, q=q)
|
Change to use index.html for index page
|
Change to use index.html for index page
|
Python
|
apache-2.0
|
fnielsen/cvrminer,fnielsen/cvrminer,fnielsen/cvrminer
|
"""Views for cvrminer app."""
from flask import Blueprint, current_app, render_template
from ..xbrler import search_for_regnskaber
from ..wikidata import cvr_to_q
main = Blueprint('app', __name__)
@main.route("/")
def index():
"""Return index page of for app."""
return render_template('base.html')
@main.route("/smiley/")
def smiley():
"""Return smiley page of for app."""
if current_app.smiley:
table = current_app.smiley.db.tables.smiley.head(n=10000).to_html()
else:
table = ''
return render_template('smiley.html', table=table)
@main.route("/cvr/<int:cvr>")
def show_cvr(cvr):
"""Return CVR page of for app."""
q = cvr_to_q(cvr)
regnskaber = search_for_regnskaber(cvr=cvr)
return render_template('cvr.html',
cvr=cvr, regnskaber=regnskaber, q=q)
Change to use index.html for index page
|
"""Views for cvrminer app."""
from flask import Blueprint, current_app, render_template
from ..xbrler import search_for_regnskaber
from ..wikidata import cvr_to_q
main = Blueprint('app', __name__)
@main.route("/")
def index():
"""Return index page of for app."""
return render_template('index.html')
@main.route("/smiley/")
def smiley():
"""Return smiley page of for app."""
if current_app.smiley:
table = current_app.smiley.db.tables.smiley.head(n=10000).to_html()
else:
table = ''
return render_template('smiley.html', table=table)
@main.route("/cvr/<int:cvr>")
def show_cvr(cvr):
"""Return CVR page of for app."""
q = cvr_to_q(cvr)
regnskaber = search_for_regnskaber(cvr=cvr)
return render_template('cvr.html',
cvr=cvr, regnskaber=regnskaber, q=q)
|
<commit_before>"""Views for cvrminer app."""
from flask import Blueprint, current_app, render_template
from ..xbrler import search_for_regnskaber
from ..wikidata import cvr_to_q
main = Blueprint('app', __name__)
@main.route("/")
def index():
"""Return index page of for app."""
return render_template('base.html')
@main.route("/smiley/")
def smiley():
"""Return smiley page of for app."""
if current_app.smiley:
table = current_app.smiley.db.tables.smiley.head(n=10000).to_html()
else:
table = ''
return render_template('smiley.html', table=table)
@main.route("/cvr/<int:cvr>")
def show_cvr(cvr):
"""Return CVR page of for app."""
q = cvr_to_q(cvr)
regnskaber = search_for_regnskaber(cvr=cvr)
return render_template('cvr.html',
cvr=cvr, regnskaber=regnskaber, q=q)
<commit_msg>Change to use index.html for index page<commit_after>
|
"""Views for cvrminer app."""
from flask import Blueprint, current_app, render_template
from ..xbrler import search_for_regnskaber
from ..wikidata import cvr_to_q
main = Blueprint('app', __name__)
@main.route("/")
def index():
"""Return index page of for app."""
return render_template('index.html')
@main.route("/smiley/")
def smiley():
"""Return smiley page of for app."""
if current_app.smiley:
table = current_app.smiley.db.tables.smiley.head(n=10000).to_html()
else:
table = ''
return render_template('smiley.html', table=table)
@main.route("/cvr/<int:cvr>")
def show_cvr(cvr):
"""Return CVR page of for app."""
q = cvr_to_q(cvr)
regnskaber = search_for_regnskaber(cvr=cvr)
return render_template('cvr.html',
cvr=cvr, regnskaber=regnskaber, q=q)
|
"""Views for cvrminer app."""
from flask import Blueprint, current_app, render_template
from ..xbrler import search_for_regnskaber
from ..wikidata import cvr_to_q
main = Blueprint('app', __name__)
@main.route("/")
def index():
"""Return index page of for app."""
return render_template('base.html')
@main.route("/smiley/")
def smiley():
"""Return smiley page of for app."""
if current_app.smiley:
table = current_app.smiley.db.tables.smiley.head(n=10000).to_html()
else:
table = ''
return render_template('smiley.html', table=table)
@main.route("/cvr/<int:cvr>")
def show_cvr(cvr):
"""Return CVR page of for app."""
q = cvr_to_q(cvr)
regnskaber = search_for_regnskaber(cvr=cvr)
return render_template('cvr.html',
cvr=cvr, regnskaber=regnskaber, q=q)
Change to use index.html for index page"""Views for cvrminer app."""
from flask import Blueprint, current_app, render_template
from ..xbrler import search_for_regnskaber
from ..wikidata import cvr_to_q
main = Blueprint('app', __name__)
@main.route("/")
def index():
"""Return index page of for app."""
return render_template('index.html')
@main.route("/smiley/")
def smiley():
"""Return smiley page of for app."""
if current_app.smiley:
table = current_app.smiley.db.tables.smiley.head(n=10000).to_html()
else:
table = ''
return render_template('smiley.html', table=table)
@main.route("/cvr/<int:cvr>")
def show_cvr(cvr):
"""Return CVR page of for app."""
q = cvr_to_q(cvr)
regnskaber = search_for_regnskaber(cvr=cvr)
return render_template('cvr.html',
cvr=cvr, regnskaber=regnskaber, q=q)
|
<commit_before>"""Views for cvrminer app."""
from flask import Blueprint, current_app, render_template
from ..xbrler import search_for_regnskaber
from ..wikidata import cvr_to_q
main = Blueprint('app', __name__)
@main.route("/")
def index():
"""Return index page of for app."""
return render_template('base.html')
@main.route("/smiley/")
def smiley():
"""Return smiley page of for app."""
if current_app.smiley:
table = current_app.smiley.db.tables.smiley.head(n=10000).to_html()
else:
table = ''
return render_template('smiley.html', table=table)
@main.route("/cvr/<int:cvr>")
def show_cvr(cvr):
"""Return CVR page of for app."""
q = cvr_to_q(cvr)
regnskaber = search_for_regnskaber(cvr=cvr)
return render_template('cvr.html',
cvr=cvr, regnskaber=regnskaber, q=q)
<commit_msg>Change to use index.html for index page<commit_after>"""Views for cvrminer app."""
from flask import Blueprint, current_app, render_template
from ..xbrler import search_for_regnskaber
from ..wikidata import cvr_to_q
main = Blueprint('app', __name__)
@main.route("/")
def index():
"""Return index page of for app."""
return render_template('index.html')
@main.route("/smiley/")
def smiley():
"""Return smiley page of for app."""
if current_app.smiley:
table = current_app.smiley.db.tables.smiley.head(n=10000).to_html()
else:
table = ''
return render_template('smiley.html', table=table)
@main.route("/cvr/<int:cvr>")
def show_cvr(cvr):
"""Return CVR page of for app."""
q = cvr_to_q(cvr)
regnskaber = search_for_regnskaber(cvr=cvr)
return render_template('cvr.html',
cvr=cvr, regnskaber=regnskaber, q=q)
|
85d3b1203d9861f986356e593a2b79d96c38c1b3
|
utils/aiohttp_wrap.py
|
utils/aiohttp_wrap.py
|
#!/bin/env python
import aiohttp
async def aio_get_text(url, headers=None):
async with aiohttp.ClientSession() as session:
async with session.get(url, headers=headers) as r:
if r.status == 200:
return r.text()
else:
return None
async def aio_get_json(url, headers=None):
async with aiohttp.ClientSession() as session:
async with session.get(url, headers=headers) as r:
if r.status == 200:
return r.json()
else:
return None
|
#!/bin/env python
import aiohttp
async def aio_get(url: str):
async with aiohttp.ClientSession() as session:
<<<<<<< HEAD
async with session.get(url, headers=headers) as r:
if r.status == 200:
return r.text()
else:
return None
async def aio_get_json(url, headers=None):
async with aiohttp.ClientSession() as session:
async with session.get(url, headers=headers) as r:
if r.status == 200:
return r.json()
else:
return None
=======
async with session.get(url) as r:
if r.status == 200:
return r
else:
return None
>>>>>>> parent of 6b6d243... progress on DDG cog & aiohttp wrapper
|
Revert "progress on DDG cog & aiohttp wrapper"
|
Revert "progress on DDG cog & aiohttp wrapper"
This reverts commit 6b6d243e96bd13583e7f02dfe6669578d238a594.
|
Python
|
mit
|
Naught0/qtbot
|
#!/bin/env python
import aiohttp
async def aio_get_text(url, headers=None):
async with aiohttp.ClientSession() as session:
async with session.get(url, headers=headers) as r:
if r.status == 200:
return r.text()
else:
return None
async def aio_get_json(url, headers=None):
async with aiohttp.ClientSession() as session:
async with session.get(url, headers=headers) as r:
if r.status == 200:
return r.json()
else:
return None
Revert "progress on DDG cog & aiohttp wrapper"
This reverts commit 6b6d243e96bd13583e7f02dfe6669578d238a594.
|
#!/bin/env python
import aiohttp
async def aio_get(url: str):
async with aiohttp.ClientSession() as session:
<<<<<<< HEAD
async with session.get(url, headers=headers) as r:
if r.status == 200:
return r.text()
else:
return None
async def aio_get_json(url, headers=None):
async with aiohttp.ClientSession() as session:
async with session.get(url, headers=headers) as r:
if r.status == 200:
return r.json()
else:
return None
=======
async with session.get(url) as r:
if r.status == 200:
return r
else:
return None
>>>>>>> parent of 6b6d243... progress on DDG cog & aiohttp wrapper
|
<commit_before>#!/bin/env python
import aiohttp
async def aio_get_text(url, headers=None):
async with aiohttp.ClientSession() as session:
async with session.get(url, headers=headers) as r:
if r.status == 200:
return r.text()
else:
return None
async def aio_get_json(url, headers=None):
async with aiohttp.ClientSession() as session:
async with session.get(url, headers=headers) as r:
if r.status == 200:
return r.json()
else:
return None
<commit_msg>Revert "progress on DDG cog & aiohttp wrapper"
This reverts commit 6b6d243e96bd13583e7f02dfe6669578d238a594.<commit_after>
|
#!/bin/env python
import aiohttp
async def aio_get(url: str):
async with aiohttp.ClientSession() as session:
<<<<<<< HEAD
async with session.get(url, headers=headers) as r:
if r.status == 200:
return r.text()
else:
return None
async def aio_get_json(url, headers=None):
async with aiohttp.ClientSession() as session:
async with session.get(url, headers=headers) as r:
if r.status == 200:
return r.json()
else:
return None
=======
async with session.get(url) as r:
if r.status == 200:
return r
else:
return None
>>>>>>> parent of 6b6d243... progress on DDG cog & aiohttp wrapper
|
#!/bin/env python
import aiohttp
async def aio_get_text(url, headers=None):
async with aiohttp.ClientSession() as session:
async with session.get(url, headers=headers) as r:
if r.status == 200:
return r.text()
else:
return None
async def aio_get_json(url, headers=None):
async with aiohttp.ClientSession() as session:
async with session.get(url, headers=headers) as r:
if r.status == 200:
return r.json()
else:
return None
Revert "progress on DDG cog & aiohttp wrapper"
This reverts commit 6b6d243e96bd13583e7f02dfe6669578d238a594.#!/bin/env python
import aiohttp
async def aio_get(url: str):
async with aiohttp.ClientSession() as session:
<<<<<<< HEAD
async with session.get(url, headers=headers) as r:
if r.status == 200:
return r.text()
else:
return None
async def aio_get_json(url, headers=None):
async with aiohttp.ClientSession() as session:
async with session.get(url, headers=headers) as r:
if r.status == 200:
return r.json()
else:
return None
=======
async with session.get(url) as r:
if r.status == 200:
return r
else:
return None
>>>>>>> parent of 6b6d243... progress on DDG cog & aiohttp wrapper
|
<commit_before>#!/bin/env python
import aiohttp
async def aio_get_text(url, headers=None):
async with aiohttp.ClientSession() as session:
async with session.get(url, headers=headers) as r:
if r.status == 200:
return r.text()
else:
return None
async def aio_get_json(url, headers=None):
async with aiohttp.ClientSession() as session:
async with session.get(url, headers=headers) as r:
if r.status == 200:
return r.json()
else:
return None
<commit_msg>Revert "progress on DDG cog & aiohttp wrapper"
This reverts commit 6b6d243e96bd13583e7f02dfe6669578d238a594.<commit_after>#!/bin/env python
import aiohttp
async def aio_get(url: str):
async with aiohttp.ClientSession() as session:
<<<<<<< HEAD
async with session.get(url, headers=headers) as r:
if r.status == 200:
return r.text()
else:
return None
async def aio_get_json(url, headers=None):
async with aiohttp.ClientSession() as session:
async with session.get(url, headers=headers) as r:
if r.status == 200:
return r.json()
else:
return None
=======
async with session.get(url) as r:
if r.status == 200:
return r
else:
return None
>>>>>>> parent of 6b6d243... progress on DDG cog & aiohttp wrapper
|
efdcc11678aed558fc464ea9e1b1f9351d6e1f8d
|
Python-practice/fy_print_seq_len_in_fasta.py
|
Python-practice/fy_print_seq_len_in_fasta.py
|
#!/usr/bin/env python
'''
Script: fy_print_seq_len_in_fasta.py
Function: Print sequence length to STDOUT in fasta file
Note: Python3 is not default installed for most computer,
and the extra-installed module like Biopython could
not be directly used by python3. So, it's not the
righ time to use Python3 now.
Date: 2014/11/11
'''
import sys
if len(sys.argv) < 2:
print('Usage: ' + sys.argv[0] + ' <FASTA>')
sys.exit()
from Bio import SeqIO
seqlen = []
num_of_seq = 0
total_len = 0
for record in SeqIO.parse(sys.argv[1], 'fasta'):
print("%s %i" % (record.id, len(record)))
num_of_seq += 1
total_len += len(record)
seqlen.append(len(record))
seqlen.sort()
min_len = seqlen[0]
max_len = seqlen[-1]
print("Number of sequences: " + str(num_of_seq))
print("Total length: " + str(total_len))
print("Max length: " + str(max_len))
print("Min length: " + str(min_len))
|
#!/usr/bin/env python
'''
Script: fy_print_seq_len_in_fasta.py
Function: Print sequence length to STDOUT in fasta file
Note: Python3 is not default installed for most computer,
and the extra-installed module like Biopython could
not be directly used by python3. So, it's not the
righ time to use Python3 now.
Date: 2014/11/11
'''
import sys
if len(sys.argv) < 2:
print('Usage: ' + sys.argv[0] + ' <FASTA>')
sys.exit()
from Bio import SeqIO
seqlen = []
num_of_seq = 0
total_len = 0
for record in SeqIO.parse(sys.argv[1], 'fasta'):
print("%s %i" % (record.id, len(record)))
num_of_seq += 1
total_len += len(record)
seqlen.append(len(record))
seqlen.sort()
min_len = seqlen[0]
max_len = seqlen[-1]
print('Number of sequences: ' + str(num_of_seq))
print('Total length: ' + str(total_len))
print('Max length: ' + str(max_len))
print('Min length: ' + str(min_len))
|
Use single quotes instead of double quotes
|
Use single quotes instead of double quotes
|
Python
|
bsd-2-clause
|
lileiting/gfat
|
#!/usr/bin/env python
'''
Script: fy_print_seq_len_in_fasta.py
Function: Print sequence length to STDOUT in fasta file
Note: Python3 is not default installed for most computer,
and the extra-installed module like Biopython could
not be directly used by python3. So, it's not the
righ time to use Python3 now.
Date: 2014/11/11
'''
import sys
if len(sys.argv) < 2:
print('Usage: ' + sys.argv[0] + ' <FASTA>')
sys.exit()
from Bio import SeqIO
seqlen = []
num_of_seq = 0
total_len = 0
for record in SeqIO.parse(sys.argv[1], 'fasta'):
print("%s %i" % (record.id, len(record)))
num_of_seq += 1
total_len += len(record)
seqlen.append(len(record))
seqlen.sort()
min_len = seqlen[0]
max_len = seqlen[-1]
print("Number of sequences: " + str(num_of_seq))
print("Total length: " + str(total_len))
print("Max length: " + str(max_len))
print("Min length: " + str(min_len))
Use single quotes instead of double quotes
|
#!/usr/bin/env python
'''
Script: fy_print_seq_len_in_fasta.py
Function: Print sequence length to STDOUT in fasta file
Note: Python3 is not default installed for most computer,
and the extra-installed module like Biopython could
not be directly used by python3. So, it's not the
righ time to use Python3 now.
Date: 2014/11/11
'''
import sys
if len(sys.argv) < 2:
print('Usage: ' + sys.argv[0] + ' <FASTA>')
sys.exit()
from Bio import SeqIO
seqlen = []
num_of_seq = 0
total_len = 0
for record in SeqIO.parse(sys.argv[1], 'fasta'):
print("%s %i" % (record.id, len(record)))
num_of_seq += 1
total_len += len(record)
seqlen.append(len(record))
seqlen.sort()
min_len = seqlen[0]
max_len = seqlen[-1]
print('Number of sequences: ' + str(num_of_seq))
print('Total length: ' + str(total_len))
print('Max length: ' + str(max_len))
print('Min length: ' + str(min_len))
|
<commit_before>#!/usr/bin/env python
'''
Script: fy_print_seq_len_in_fasta.py
Function: Print sequence length to STDOUT in fasta file
Note: Python3 is not default installed for most computer,
and the extra-installed module like Biopython could
not be directly used by python3. So, it's not the
righ time to use Python3 now.
Date: 2014/11/11
'''
import sys
if len(sys.argv) < 2:
print('Usage: ' + sys.argv[0] + ' <FASTA>')
sys.exit()
from Bio import SeqIO
seqlen = []
num_of_seq = 0
total_len = 0
for record in SeqIO.parse(sys.argv[1], 'fasta'):
print("%s %i" % (record.id, len(record)))
num_of_seq += 1
total_len += len(record)
seqlen.append(len(record))
seqlen.sort()
min_len = seqlen[0]
max_len = seqlen[-1]
print("Number of sequences: " + str(num_of_seq))
print("Total length: " + str(total_len))
print("Max length: " + str(max_len))
print("Min length: " + str(min_len))
<commit_msg>Use single quotes instead of double quotes<commit_after>
|
#!/usr/bin/env python
'''
Script: fy_print_seq_len_in_fasta.py
Function: Print sequence length to STDOUT in fasta file
Note: Python3 is not default installed for most computer,
and the extra-installed module like Biopython could
not be directly used by python3. So, it's not the
righ time to use Python3 now.
Date: 2014/11/11
'''
import sys
if len(sys.argv) < 2:
print('Usage: ' + sys.argv[0] + ' <FASTA>')
sys.exit()
from Bio import SeqIO
seqlen = []
num_of_seq = 0
total_len = 0
for record in SeqIO.parse(sys.argv[1], 'fasta'):
print("%s %i" % (record.id, len(record)))
num_of_seq += 1
total_len += len(record)
seqlen.append(len(record))
seqlen.sort()
min_len = seqlen[0]
max_len = seqlen[-1]
print('Number of sequences: ' + str(num_of_seq))
print('Total length: ' + str(total_len))
print('Max length: ' + str(max_len))
print('Min length: ' + str(min_len))
|
#!/usr/bin/env python
'''
Script: fy_print_seq_len_in_fasta.py
Function: Print sequence length to STDOUT in fasta file
Note: Python3 is not default installed for most computer,
and the extra-installed module like Biopython could
not be directly used by python3. So, it's not the
righ time to use Python3 now.
Date: 2014/11/11
'''
import sys
if len(sys.argv) < 2:
print('Usage: ' + sys.argv[0] + ' <FASTA>')
sys.exit()
from Bio import SeqIO
seqlen = []
num_of_seq = 0
total_len = 0
for record in SeqIO.parse(sys.argv[1], 'fasta'):
print("%s %i" % (record.id, len(record)))
num_of_seq += 1
total_len += len(record)
seqlen.append(len(record))
seqlen.sort()
min_len = seqlen[0]
max_len = seqlen[-1]
print("Number of sequences: " + str(num_of_seq))
print("Total length: " + str(total_len))
print("Max length: " + str(max_len))
print("Min length: " + str(min_len))
Use single quotes instead of double quotes#!/usr/bin/env python
'''
Script: fy_print_seq_len_in_fasta.py
Function: Print sequence length to STDOUT in fasta file
Note: Python3 is not default installed for most computer,
and the extra-installed module like Biopython could
not be directly used by python3. So, it's not the
righ time to use Python3 now.
Date: 2014/11/11
'''
import sys
if len(sys.argv) < 2:
print('Usage: ' + sys.argv[0] + ' <FASTA>')
sys.exit()
from Bio import SeqIO
seqlen = []
num_of_seq = 0
total_len = 0
for record in SeqIO.parse(sys.argv[1], 'fasta'):
print("%s %i" % (record.id, len(record)))
num_of_seq += 1
total_len += len(record)
seqlen.append(len(record))
seqlen.sort()
min_len = seqlen[0]
max_len = seqlen[-1]
print('Number of sequences: ' + str(num_of_seq))
print('Total length: ' + str(total_len))
print('Max length: ' + str(max_len))
print('Min length: ' + str(min_len))
|
<commit_before>#!/usr/bin/env python
'''
Script: fy_print_seq_len_in_fasta.py
Function: Print sequence length to STDOUT in fasta file
Note: Python3 is not default installed for most computer,
and the extra-installed module like Biopython could
not be directly used by python3. So, it's not the
righ time to use Python3 now.
Date: 2014/11/11
'''
import sys
if len(sys.argv) < 2:
print('Usage: ' + sys.argv[0] + ' <FASTA>')
sys.exit()
from Bio import SeqIO
seqlen = []
num_of_seq = 0
total_len = 0
for record in SeqIO.parse(sys.argv[1], 'fasta'):
print("%s %i" % (record.id, len(record)))
num_of_seq += 1
total_len += len(record)
seqlen.append(len(record))
seqlen.sort()
min_len = seqlen[0]
max_len = seqlen[-1]
print("Number of sequences: " + str(num_of_seq))
print("Total length: " + str(total_len))
print("Max length: " + str(max_len))
print("Min length: " + str(min_len))
<commit_msg>Use single quotes instead of double quotes<commit_after>#!/usr/bin/env python
'''
Script: fy_print_seq_len_in_fasta.py
Function: Print sequence length to STDOUT in fasta file
Note: Python3 is not default installed for most computer,
and the extra-installed module like Biopython could
not be directly used by python3. So, it's not the
righ time to use Python3 now.
Date: 2014/11/11
'''
import sys
if len(sys.argv) < 2:
print('Usage: ' + sys.argv[0] + ' <FASTA>')
sys.exit()
from Bio import SeqIO
seqlen = []
num_of_seq = 0
total_len = 0
for record in SeqIO.parse(sys.argv[1], 'fasta'):
print("%s %i" % (record.id, len(record)))
num_of_seq += 1
total_len += len(record)
seqlen.append(len(record))
seqlen.sort()
min_len = seqlen[0]
max_len = seqlen[-1]
print('Number of sequences: ' + str(num_of_seq))
print('Total length: ' + str(total_len))
print('Max length: ' + str(max_len))
print('Min length: ' + str(min_len))
|
91b55e3377e641cd431d479887bdb12e9d0cbe35
|
napps/kytos/of_core/v0x04/utils.py
|
napps/kytos/of_core/v0x04/utils.py
|
"""Utilities module for of_core OpenFlow v0x04 operations"""
from kytos.core import log
from kytos.core.switch import Interface
def update_flow_list(controller, switch):
"""Method responsible for request stats of flow to switches.
Args:
controller(:class:`~kytos.core.controller.Controller`):
the controller beeing used.
switch(:class:`~kytos.core.switch.Switch`):
target to send a stats request.
"""
log.info("update_flow_list not implemented yet for OF v0x04")
def handle_features_reply(controller, event):
"""Handle OF v0x04 features_reply message events.
This is the end of the Handshake workflow of the OpenFlow Protocol.
Parameters:
controller (Controller): Controller beeing used.
event (KytosEvent): Event with features reply message.
"""
connection = event.source
features_reply = event.content['message']
dpid = features_reply.datapath_id.value
switch = controller.get_switch_or_create(dpid=dpid,
connection=connection)
switch.update_features(features_reply)
return switch
|
"""Utilities module for of_core OpenFlow v0x04 operations"""
from kytos.core import log
from kytos.core.switch import Interface
def update_flow_list(controller, switch):
"""Method responsible for request stats of flow to switches.
Args:
controller(:class:`~kytos.core.controller.Controller`):
the controller beeing used.
switch(:class:`~kytos.core.switch.Switch`):
target to send a stats request.
"""
log.error("update_flow_list not implemented yet for OF v0x04")
def handle_features_reply(controller, event):
"""Handle OF v0x04 features_reply message events.
This is the end of the Handshake workflow of the OpenFlow Protocol.
Parameters:
controller (Controller): Controller beeing used.
event (KytosEvent): Event with features reply message.
"""
connection = event.source
features_reply = event.content['message']
dpid = features_reply.datapath_id.value
switch = controller.get_switch_or_create(dpid=dpid,
connection=connection)
switch.update_features(features_reply)
return switch
|
Change 'not implemented' log INFO to ERROR
|
Change 'not implemented' log INFO to ERROR
|
Python
|
mit
|
kytos/kytos-napps,kytos/kyco-core-napps,cemsbr/kytos-napps
|
"""Utilities module for of_core OpenFlow v0x04 operations"""
from kytos.core import log
from kytos.core.switch import Interface
def update_flow_list(controller, switch):
"""Method responsible for request stats of flow to switches.
Args:
controller(:class:`~kytos.core.controller.Controller`):
the controller beeing used.
switch(:class:`~kytos.core.switch.Switch`):
target to send a stats request.
"""
log.info("update_flow_list not implemented yet for OF v0x04")
def handle_features_reply(controller, event):
"""Handle OF v0x04 features_reply message events.
This is the end of the Handshake workflow of the OpenFlow Protocol.
Parameters:
controller (Controller): Controller beeing used.
event (KytosEvent): Event with features reply message.
"""
connection = event.source
features_reply = event.content['message']
dpid = features_reply.datapath_id.value
switch = controller.get_switch_or_create(dpid=dpid,
connection=connection)
switch.update_features(features_reply)
return switch
Change 'not implemented' log INFO to ERROR
|
"""Utilities module for of_core OpenFlow v0x04 operations"""
from kytos.core import log
from kytos.core.switch import Interface
def update_flow_list(controller, switch):
"""Method responsible for request stats of flow to switches.
Args:
controller(:class:`~kytos.core.controller.Controller`):
the controller beeing used.
switch(:class:`~kytos.core.switch.Switch`):
target to send a stats request.
"""
log.error("update_flow_list not implemented yet for OF v0x04")
def handle_features_reply(controller, event):
"""Handle OF v0x04 features_reply message events.
This is the end of the Handshake workflow of the OpenFlow Protocol.
Parameters:
controller (Controller): Controller beeing used.
event (KytosEvent): Event with features reply message.
"""
connection = event.source
features_reply = event.content['message']
dpid = features_reply.datapath_id.value
switch = controller.get_switch_or_create(dpid=dpid,
connection=connection)
switch.update_features(features_reply)
return switch
|
<commit_before>"""Utilities module for of_core OpenFlow v0x04 operations"""
from kytos.core import log
from kytos.core.switch import Interface
def update_flow_list(controller, switch):
"""Method responsible for request stats of flow to switches.
Args:
controller(:class:`~kytos.core.controller.Controller`):
the controller beeing used.
switch(:class:`~kytos.core.switch.Switch`):
target to send a stats request.
"""
log.info("update_flow_list not implemented yet for OF v0x04")
def handle_features_reply(controller, event):
"""Handle OF v0x04 features_reply message events.
This is the end of the Handshake workflow of the OpenFlow Protocol.
Parameters:
controller (Controller): Controller beeing used.
event (KytosEvent): Event with features reply message.
"""
connection = event.source
features_reply = event.content['message']
dpid = features_reply.datapath_id.value
switch = controller.get_switch_or_create(dpid=dpid,
connection=connection)
switch.update_features(features_reply)
return switch
<commit_msg>Change 'not implemented' log INFO to ERROR<commit_after>
|
"""Utilities module for of_core OpenFlow v0x04 operations"""
from kytos.core import log
from kytos.core.switch import Interface
def update_flow_list(controller, switch):
"""Method responsible for request stats of flow to switches.
Args:
controller(:class:`~kytos.core.controller.Controller`):
the controller beeing used.
switch(:class:`~kytos.core.switch.Switch`):
target to send a stats request.
"""
log.error("update_flow_list not implemented yet for OF v0x04")
def handle_features_reply(controller, event):
"""Handle OF v0x04 features_reply message events.
This is the end of the Handshake workflow of the OpenFlow Protocol.
Parameters:
controller (Controller): Controller beeing used.
event (KytosEvent): Event with features reply message.
"""
connection = event.source
features_reply = event.content['message']
dpid = features_reply.datapath_id.value
switch = controller.get_switch_or_create(dpid=dpid,
connection=connection)
switch.update_features(features_reply)
return switch
|
"""Utilities module for of_core OpenFlow v0x04 operations"""
from kytos.core import log
from kytos.core.switch import Interface
def update_flow_list(controller, switch):
"""Method responsible for request stats of flow to switches.
Args:
controller(:class:`~kytos.core.controller.Controller`):
the controller beeing used.
switch(:class:`~kytos.core.switch.Switch`):
target to send a stats request.
"""
log.info("update_flow_list not implemented yet for OF v0x04")
def handle_features_reply(controller, event):
"""Handle OF v0x04 features_reply message events.
This is the end of the Handshake workflow of the OpenFlow Protocol.
Parameters:
controller (Controller): Controller beeing used.
event (KytosEvent): Event with features reply message.
"""
connection = event.source
features_reply = event.content['message']
dpid = features_reply.datapath_id.value
switch = controller.get_switch_or_create(dpid=dpid,
connection=connection)
switch.update_features(features_reply)
return switch
Change 'not implemented' log INFO to ERROR"""Utilities module for of_core OpenFlow v0x04 operations"""
from kytos.core import log
from kytos.core.switch import Interface
def update_flow_list(controller, switch):
"""Method responsible for request stats of flow to switches.
Args:
controller(:class:`~kytos.core.controller.Controller`):
the controller beeing used.
switch(:class:`~kytos.core.switch.Switch`):
target to send a stats request.
"""
log.error("update_flow_list not implemented yet for OF v0x04")
def handle_features_reply(controller, event):
"""Handle OF v0x04 features_reply message events.
This is the end of the Handshake workflow of the OpenFlow Protocol.
Parameters:
controller (Controller): Controller beeing used.
event (KytosEvent): Event with features reply message.
"""
connection = event.source
features_reply = event.content['message']
dpid = features_reply.datapath_id.value
switch = controller.get_switch_or_create(dpid=dpid,
connection=connection)
switch.update_features(features_reply)
return switch
|
<commit_before>"""Utilities module for of_core OpenFlow v0x04 operations"""
from kytos.core import log
from kytos.core.switch import Interface
def update_flow_list(controller, switch):
"""Method responsible for request stats of flow to switches.
Args:
controller(:class:`~kytos.core.controller.Controller`):
the controller beeing used.
switch(:class:`~kytos.core.switch.Switch`):
target to send a stats request.
"""
log.info("update_flow_list not implemented yet for OF v0x04")
def handle_features_reply(controller, event):
"""Handle OF v0x04 features_reply message events.
This is the end of the Handshake workflow of the OpenFlow Protocol.
Parameters:
controller (Controller): Controller beeing used.
event (KytosEvent): Event with features reply message.
"""
connection = event.source
features_reply = event.content['message']
dpid = features_reply.datapath_id.value
switch = controller.get_switch_or_create(dpid=dpid,
connection=connection)
switch.update_features(features_reply)
return switch
<commit_msg>Change 'not implemented' log INFO to ERROR<commit_after>"""Utilities module for of_core OpenFlow v0x04 operations"""
from kytos.core import log
from kytos.core.switch import Interface
def update_flow_list(controller, switch):
"""Method responsible for request stats of flow to switches.
Args:
controller(:class:`~kytos.core.controller.Controller`):
the controller beeing used.
switch(:class:`~kytos.core.switch.Switch`):
target to send a stats request.
"""
log.error("update_flow_list not implemented yet for OF v0x04")
def handle_features_reply(controller, event):
"""Handle OF v0x04 features_reply message events.
This is the end of the Handshake workflow of the OpenFlow Protocol.
Parameters:
controller (Controller): Controller beeing used.
event (KytosEvent): Event with features reply message.
"""
connection = event.source
features_reply = event.content['message']
dpid = features_reply.datapath_id.value
switch = controller.get_switch_or_create(dpid=dpid,
connection=connection)
switch.update_features(features_reply)
return switch
|
e11b4c299ffedd61d114c058e8ca5d525ffa461f
|
test/unit/staging/test_map_ctp.py
|
test/unit/staging/test_map_ctp.py
|
from nose.tools import *
import os, glob, shutil
import sys
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..', '..', '..'))
from qipipe.staging import CTPPatientIdMap
# The test parent directory.
ROOT = os.path.normpath(os.path.join(os.path.dirname(__file__), '..', '..'))
# The test fixture.
FIXTURE = os.path.join(ROOT, 'fixtures', 'staging', 'fix_dicom', 'sarcoma')
class TestMapCTP:
"""CTP id map unit tests."""
def test_id_map(self):
expected = {'111710': 'QIN-SARCOMA-01-0003'}
id_map = CTPPatientIdMap()
id_map.map_subjects('Sarcoma03', FIXTURE)
assert_equal(expected, id_map, "CTP id map incorrect: %s" % id_map)
if __name__ == "__main__":
import nose
nose.main(defaultTest=__name__)
|
from nose.tools import *
import os, glob, shutil
import logging
logger = logging.getLogger(__name__)
import sys
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..', '..', '..'))
from qipipe.staging.map_ctp import CTPPatientIdMap
COLLECTION = 'Sarcoma'
"""The test collection."""
SUBJECTS = ["Sarcoma%02d" % i for i in range(8, 12)]
PAT = "ptid/(Sarcoma\d{2})\s*=\s*QIN-\w+-\d{2}-(\d{4})"
class TestMapCTP:
"""Map CTP unit tests."""
def test_map_ctp(self):
logger.debug("Testing Map CTP on %s..." % SUBJECTS)
ctp_map = CTPPatientIdMap()
ctp_map.add_subjects(COLLECTION, *SUBJECTS)
for sbj in SUBJECTS:
ctp_id = ctp_map.get(sbj)
assert_is_not_none(ctp_id, "Subject was not mapped: %s" % sbj)
qin_nbr = int(sbj[-2:])
ctp_nbr = int(ctp_id[-4:])
assert_equal(qin_nbr, ctp_nbr, "Patient number incorrect; expected: %d found: %d" % (qin_nbr, ctp_nbr))
if __name__ == "__main__":
import nose
nose.main(defaultTest=__name__)
|
Update test for Map CTP API changes.
|
Update test for Map CTP API changes.
|
Python
|
bsd-2-clause
|
ohsu-qin/qipipe
|
from nose.tools import *
import os, glob, shutil
import sys
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..', '..', '..'))
from qipipe.staging import CTPPatientIdMap
# The test parent directory.
ROOT = os.path.normpath(os.path.join(os.path.dirname(__file__), '..', '..'))
# The test fixture.
FIXTURE = os.path.join(ROOT, 'fixtures', 'staging', 'fix_dicom', 'sarcoma')
class TestMapCTP:
"""CTP id map unit tests."""
def test_id_map(self):
expected = {'111710': 'QIN-SARCOMA-01-0003'}
id_map = CTPPatientIdMap()
id_map.map_subjects('Sarcoma03', FIXTURE)
assert_equal(expected, id_map, "CTP id map incorrect: %s" % id_map)
if __name__ == "__main__":
import nose
nose.main(defaultTest=__name__)
Update test for Map CTP API changes.
|
from nose.tools import *
import os, glob, shutil
import logging
logger = logging.getLogger(__name__)
import sys
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..', '..', '..'))
from qipipe.staging.map_ctp import CTPPatientIdMap
COLLECTION = 'Sarcoma'
"""The test collection."""
SUBJECTS = ["Sarcoma%02d" % i for i in range(8, 12)]
PAT = "ptid/(Sarcoma\d{2})\s*=\s*QIN-\w+-\d{2}-(\d{4})"
class TestMapCTP:
"""Map CTP unit tests."""
def test_map_ctp(self):
logger.debug("Testing Map CTP on %s..." % SUBJECTS)
ctp_map = CTPPatientIdMap()
ctp_map.add_subjects(COLLECTION, *SUBJECTS)
for sbj in SUBJECTS:
ctp_id = ctp_map.get(sbj)
assert_is_not_none(ctp_id, "Subject was not mapped: %s" % sbj)
qin_nbr = int(sbj[-2:])
ctp_nbr = int(ctp_id[-4:])
assert_equal(qin_nbr, ctp_nbr, "Patient number incorrect; expected: %d found: %d" % (qin_nbr, ctp_nbr))
if __name__ == "__main__":
import nose
nose.main(defaultTest=__name__)
|
<commit_before>from nose.tools import *
import os, glob, shutil
import sys
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..', '..', '..'))
from qipipe.staging import CTPPatientIdMap
# The test parent directory.
ROOT = os.path.normpath(os.path.join(os.path.dirname(__file__), '..', '..'))
# The test fixture.
FIXTURE = os.path.join(ROOT, 'fixtures', 'staging', 'fix_dicom', 'sarcoma')
class TestMapCTP:
"""CTP id map unit tests."""
def test_id_map(self):
expected = {'111710': 'QIN-SARCOMA-01-0003'}
id_map = CTPPatientIdMap()
id_map.map_subjects('Sarcoma03', FIXTURE)
assert_equal(expected, id_map, "CTP id map incorrect: %s" % id_map)
if __name__ == "__main__":
import nose
nose.main(defaultTest=__name__)
<commit_msg>Update test for Map CTP API changes.<commit_after>
|
from nose.tools import *
import os, glob, shutil
import logging
logger = logging.getLogger(__name__)
import sys
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..', '..', '..'))
from qipipe.staging.map_ctp import CTPPatientIdMap
COLLECTION = 'Sarcoma'
"""The test collection."""
SUBJECTS = ["Sarcoma%02d" % i for i in range(8, 12)]
PAT = "ptid/(Sarcoma\d{2})\s*=\s*QIN-\w+-\d{2}-(\d{4})"
class TestMapCTP:
"""Map CTP unit tests."""
def test_map_ctp(self):
logger.debug("Testing Map CTP on %s..." % SUBJECTS)
ctp_map = CTPPatientIdMap()
ctp_map.add_subjects(COLLECTION, *SUBJECTS)
for sbj in SUBJECTS:
ctp_id = ctp_map.get(sbj)
assert_is_not_none(ctp_id, "Subject was not mapped: %s" % sbj)
qin_nbr = int(sbj[-2:])
ctp_nbr = int(ctp_id[-4:])
assert_equal(qin_nbr, ctp_nbr, "Patient number incorrect; expected: %d found: %d" % (qin_nbr, ctp_nbr))
if __name__ == "__main__":
import nose
nose.main(defaultTest=__name__)
|
from nose.tools import *
import os, glob, shutil
import sys
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..', '..', '..'))
from qipipe.staging import CTPPatientIdMap
# The test parent directory.
ROOT = os.path.normpath(os.path.join(os.path.dirname(__file__), '..', '..'))
# The test fixture.
FIXTURE = os.path.join(ROOT, 'fixtures', 'staging', 'fix_dicom', 'sarcoma')
class TestMapCTP:
"""CTP id map unit tests."""
def test_id_map(self):
expected = {'111710': 'QIN-SARCOMA-01-0003'}
id_map = CTPPatientIdMap()
id_map.map_subjects('Sarcoma03', FIXTURE)
assert_equal(expected, id_map, "CTP id map incorrect: %s" % id_map)
if __name__ == "__main__":
import nose
nose.main(defaultTest=__name__)
Update test for Map CTP API changes.from nose.tools import *
import os, glob, shutil
import logging
logger = logging.getLogger(__name__)
import sys
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..', '..', '..'))
from qipipe.staging.map_ctp import CTPPatientIdMap
COLLECTION = 'Sarcoma'
"""The test collection."""
SUBJECTS = ["Sarcoma%02d" % i for i in range(8, 12)]
PAT = "ptid/(Sarcoma\d{2})\s*=\s*QIN-\w+-\d{2}-(\d{4})"
class TestMapCTP:
"""Map CTP unit tests."""
def test_map_ctp(self):
logger.debug("Testing Map CTP on %s..." % SUBJECTS)
ctp_map = CTPPatientIdMap()
ctp_map.add_subjects(COLLECTION, *SUBJECTS)
for sbj in SUBJECTS:
ctp_id = ctp_map.get(sbj)
assert_is_not_none(ctp_id, "Subject was not mapped: %s" % sbj)
qin_nbr = int(sbj[-2:])
ctp_nbr = int(ctp_id[-4:])
assert_equal(qin_nbr, ctp_nbr, "Patient number incorrect; expected: %d found: %d" % (qin_nbr, ctp_nbr))
if __name__ == "__main__":
import nose
nose.main(defaultTest=__name__)
|
<commit_before>from nose.tools import *
import os, glob, shutil
import sys
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..', '..', '..'))
from qipipe.staging import CTPPatientIdMap
# The test parent directory.
ROOT = os.path.normpath(os.path.join(os.path.dirname(__file__), '..', '..'))
# The test fixture.
FIXTURE = os.path.join(ROOT, 'fixtures', 'staging', 'fix_dicom', 'sarcoma')
class TestMapCTP:
"""CTP id map unit tests."""
def test_id_map(self):
expected = {'111710': 'QIN-SARCOMA-01-0003'}
id_map = CTPPatientIdMap()
id_map.map_subjects('Sarcoma03', FIXTURE)
assert_equal(expected, id_map, "CTP id map incorrect: %s" % id_map)
if __name__ == "__main__":
import nose
nose.main(defaultTest=__name__)
<commit_msg>Update test for Map CTP API changes.<commit_after>from nose.tools import *
import os, glob, shutil
import logging
logger = logging.getLogger(__name__)
import sys
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..', '..', '..'))
from qipipe.staging.map_ctp import CTPPatientIdMap
COLLECTION = 'Sarcoma'
"""The test collection."""
SUBJECTS = ["Sarcoma%02d" % i for i in range(8, 12)]
PAT = "ptid/(Sarcoma\d{2})\s*=\s*QIN-\w+-\d{2}-(\d{4})"
class TestMapCTP:
"""Map CTP unit tests."""
def test_map_ctp(self):
logger.debug("Testing Map CTP on %s..." % SUBJECTS)
ctp_map = CTPPatientIdMap()
ctp_map.add_subjects(COLLECTION, *SUBJECTS)
for sbj in SUBJECTS:
ctp_id = ctp_map.get(sbj)
assert_is_not_none(ctp_id, "Subject was not mapped: %s" % sbj)
qin_nbr = int(sbj[-2:])
ctp_nbr = int(ctp_id[-4:])
assert_equal(qin_nbr, ctp_nbr, "Patient number incorrect; expected: %d found: %d" % (qin_nbr, ctp_nbr))
if __name__ == "__main__":
import nose
nose.main(defaultTest=__name__)
|
e2934a342e3c825a3baf91724c6344b74d6dd724
|
guides/voice/conference-calls-guide/moderated-conference/moderated-conference.6.x.py
|
guides/voice/conference-calls-guide/moderated-conference/moderated-conference.6.x.py
|
from flask import Flask, request
from twilio.twiml.voice_response import VoiceResponse, Dial
app = Flask(__name__)
# Update with your own phone number in E.164 format
MODERATOR = '+15558675309'
@app.route("/voice", methods=['GET', 'POST'])
def call():
"""Returns TwiML for a moderated conference call"""
# Start our TwiML response
response = VoiceResponse()
# Start with a <Dial> verb
dial = Dial()
# If the caller is our MODERATOR, then start the conference when they
# join and end the conference when they leave
if request.values.get('From') == MODERATOR:
dial.conference(
'My conference',
start_conference_on_enter=True,
end_conference_on_exit=True)
else:
# Otherwise have the caller join as a regular participant
dial.conference('My conference', start_conference_on_enter=False)
return str(response.append(dial))
if __name__ == "__main__":
app.run(debug=True)
|
"""Demonstration of setting up a conference call in Flask with Twilio."""
from flask import Flask, request
from twilio.twiml.voice_response import VoiceResponse, Dial
app = Flask(__name__)
# Update with your own phone number in E.164 format
MODERATOR = '+18005551212'
@app.route("/voice", methods=['GET', 'POST'])
def call():
"""Return TwiML for a moderated conference call."""
# Start our TwiML response
response = VoiceResponse()
# Start with a <Dial> verb
with Dial() as dial:
# If the caller is our MODERATOR, then start the conference when they
# join and end the conference when they leave
if request.values.get('From') == MODERATOR:
dial.conference(
'My conference',
startConferenceOnEnter=True,
endConferenceOnExit=True)
else:
# Otherwise have the caller join as a regular participant
dial.conference('My conference', startConferenceOnEnter=False)
response.append(dial)
return str(response)
if __name__ == "__main__":
app.run(debug=True)
|
Add with back to dial, docstring
|
Add with back to dial, docstring
|
Python
|
mit
|
TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,teoreteetik/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,teoreteetik/api-snippets,teoreteetik/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,teoreteetik/api-snippets,teoreteetik/api-snippets,teoreteetik/api-snippets,teoreteetik/api-snippets,teoreteetik/api-snippets,teoreteetik/api-snippets
|
from flask import Flask, request
from twilio.twiml.voice_response import VoiceResponse, Dial
app = Flask(__name__)
# Update with your own phone number in E.164 format
MODERATOR = '+15558675309'
@app.route("/voice", methods=['GET', 'POST'])
def call():
"""Returns TwiML for a moderated conference call"""
# Start our TwiML response
response = VoiceResponse()
# Start with a <Dial> verb
dial = Dial()
# If the caller is our MODERATOR, then start the conference when they
# join and end the conference when they leave
if request.values.get('From') == MODERATOR:
dial.conference(
'My conference',
start_conference_on_enter=True,
end_conference_on_exit=True)
else:
# Otherwise have the caller join as a regular participant
dial.conference('My conference', start_conference_on_enter=False)
return str(response.append(dial))
if __name__ == "__main__":
app.run(debug=True)
Add with back to dial, docstring
|
"""Demonstration of setting up a conference call in Flask with Twilio."""
from flask import Flask, request
from twilio.twiml.voice_response import VoiceResponse, Dial
app = Flask(__name__)
# Update with your own phone number in E.164 format
MODERATOR = '+18005551212'
@app.route("/voice", methods=['GET', 'POST'])
def call():
"""Return TwiML for a moderated conference call."""
# Start our TwiML response
response = VoiceResponse()
# Start with a <Dial> verb
with Dial() as dial:
# If the caller is our MODERATOR, then start the conference when they
# join and end the conference when they leave
if request.values.get('From') == MODERATOR:
dial.conference(
'My conference',
startConferenceOnEnter=True,
endConferenceOnExit=True)
else:
# Otherwise have the caller join as a regular participant
dial.conference('My conference', startConferenceOnEnter=False)
response.append(dial)
return str(response)
if __name__ == "__main__":
app.run(debug=True)
|
<commit_before>from flask import Flask, request
from twilio.twiml.voice_response import VoiceResponse, Dial
app = Flask(__name__)
# Update with your own phone number in E.164 format
MODERATOR = '+15558675309'
@app.route("/voice", methods=['GET', 'POST'])
def call():
"""Returns TwiML for a moderated conference call"""
# Start our TwiML response
response = VoiceResponse()
# Start with a <Dial> verb
dial = Dial()
# If the caller is our MODERATOR, then start the conference when they
# join and end the conference when they leave
if request.values.get('From') == MODERATOR:
dial.conference(
'My conference',
start_conference_on_enter=True,
end_conference_on_exit=True)
else:
# Otherwise have the caller join as a regular participant
dial.conference('My conference', start_conference_on_enter=False)
return str(response.append(dial))
if __name__ == "__main__":
app.run(debug=True)
<commit_msg>Add with back to dial, docstring<commit_after>
|
"""Demonstration of setting up a conference call in Flask with Twilio."""
from flask import Flask, request
from twilio.twiml.voice_response import VoiceResponse, Dial
app = Flask(__name__)
# Update with your own phone number in E.164 format
MODERATOR = '+18005551212'
@app.route("/voice", methods=['GET', 'POST'])
def call():
"""Return TwiML for a moderated conference call."""
# Start our TwiML response
response = VoiceResponse()
# Start with a <Dial> verb
with Dial() as dial:
# If the caller is our MODERATOR, then start the conference when they
# join and end the conference when they leave
if request.values.get('From') == MODERATOR:
dial.conference(
'My conference',
startConferenceOnEnter=True,
endConferenceOnExit=True)
else:
# Otherwise have the caller join as a regular participant
dial.conference('My conference', startConferenceOnEnter=False)
response.append(dial)
return str(response)
if __name__ == "__main__":
app.run(debug=True)
|
from flask import Flask, request
from twilio.twiml.voice_response import VoiceResponse, Dial
app = Flask(__name__)
# Update with your own phone number in E.164 format
MODERATOR = '+15558675309'
@app.route("/voice", methods=['GET', 'POST'])
def call():
"""Returns TwiML for a moderated conference call"""
# Start our TwiML response
response = VoiceResponse()
# Start with a <Dial> verb
dial = Dial()
# If the caller is our MODERATOR, then start the conference when they
# join and end the conference when they leave
if request.values.get('From') == MODERATOR:
dial.conference(
'My conference',
start_conference_on_enter=True,
end_conference_on_exit=True)
else:
# Otherwise have the caller join as a regular participant
dial.conference('My conference', start_conference_on_enter=False)
return str(response.append(dial))
if __name__ == "__main__":
app.run(debug=True)
Add with back to dial, docstring"""Demonstration of setting up a conference call in Flask with Twilio."""
from flask import Flask, request
from twilio.twiml.voice_response import VoiceResponse, Dial
app = Flask(__name__)
# Update with your own phone number in E.164 format
MODERATOR = '+18005551212'
@app.route("/voice", methods=['GET', 'POST'])
def call():
"""Return TwiML for a moderated conference call."""
# Start our TwiML response
response = VoiceResponse()
# Start with a <Dial> verb
with Dial() as dial:
# If the caller is our MODERATOR, then start the conference when they
# join and end the conference when they leave
if request.values.get('From') == MODERATOR:
dial.conference(
'My conference',
startConferenceOnEnter=True,
endConferenceOnExit=True)
else:
# Otherwise have the caller join as a regular participant
dial.conference('My conference', startConferenceOnEnter=False)
response.append(dial)
return str(response)
if __name__ == "__main__":
app.run(debug=True)
|
<commit_before>from flask import Flask, request
from twilio.twiml.voice_response import VoiceResponse, Dial
app = Flask(__name__)
# Update with your own phone number in E.164 format
MODERATOR = '+15558675309'
@app.route("/voice", methods=['GET', 'POST'])
def call():
"""Returns TwiML for a moderated conference call"""
# Start our TwiML response
response = VoiceResponse()
# Start with a <Dial> verb
dial = Dial()
# If the caller is our MODERATOR, then start the conference when they
# join and end the conference when they leave
if request.values.get('From') == MODERATOR:
dial.conference(
'My conference',
start_conference_on_enter=True,
end_conference_on_exit=True)
else:
# Otherwise have the caller join as a regular participant
dial.conference('My conference', start_conference_on_enter=False)
return str(response.append(dial))
if __name__ == "__main__":
app.run(debug=True)
<commit_msg>Add with back to dial, docstring<commit_after>"""Demonstration of setting up a conference call in Flask with Twilio."""
from flask import Flask, request
from twilio.twiml.voice_response import VoiceResponse, Dial
app = Flask(__name__)
# Update with your own phone number in E.164 format
MODERATOR = '+18005551212'
@app.route("/voice", methods=['GET', 'POST'])
def call():
"""Return TwiML for a moderated conference call."""
# Start our TwiML response
response = VoiceResponse()
# Start with a <Dial> verb
with Dial() as dial:
# If the caller is our MODERATOR, then start the conference when they
# join and end the conference when they leave
if request.values.get('From') == MODERATOR:
dial.conference(
'My conference',
startConferenceOnEnter=True,
endConferenceOnExit=True)
else:
# Otherwise have the caller join as a regular participant
dial.conference('My conference', startConferenceOnEnter=False)
response.append(dial)
return str(response)
if __name__ == "__main__":
app.run(debug=True)
|
e8ed1e7635aa82a6fb7fe00ca00fa3d1bf1cd015
|
djcelery_email/tasks.py
|
djcelery_email/tasks.py
|
from django.conf import settings
from django.core.mail import get_connection, EmailMessage
from celery.task import task
CONFIG = getattr(settings, 'CELERY_EMAIL_TASK_CONFIG', {})
BACKEND = getattr(settings, 'CELERY_EMAIL_BACKEND',
'django.core.mail.backends.smtp.EmailBackend')
TASK_CONFIG = {
'name': 'djcelery_email_send',
'ignore_result': True,
}
TASK_CONFIG.update(CONFIG)
def from_dict(messagedict):
return EmailMessage(**messagedict)
@task(**TASK_CONFIG)
def send_email(message, **kwargs):
logger = send_email.get_logger()
conn = get_connection(backend=BACKEND,
**kwargs.pop('_backend_init_kwargs', {}))
try:
result = conn.send_messages([from_dict(message)])
logger.debug("Successfully sent email message to %r.", message.to)
return result
except Exception as e:
# catching all exceptions b/c it could be any number of things
# depending on the backend
logger.warning("Failed to send email message to %r, retrying.",
message.to)
send_email.retry(exc=e)
# backwards compat
SendEmailTask = send_email
|
from django.conf import settings
from django.core.mail import get_connection, EmailMessage
from celery.task import task
CONFIG = getattr(settings, 'CELERY_EMAIL_TASK_CONFIG', {})
BACKEND = getattr(settings, 'CELERY_EMAIL_BACKEND',
'django.core.mail.backends.smtp.EmailBackend')
TASK_CONFIG = {
'name': 'djcelery_email_send',
'ignore_result': True,
}
TASK_CONFIG.update(CONFIG)
def from_dict(messagedict):
return EmailMessage(**messagedict)
@task(**TASK_CONFIG)
def send_email(message, **kwargs):
logger = send_email.get_logger()
conn = get_connection(backend=BACKEND,
**kwargs.pop('_backend_init_kwargs', {}))
try:
result = conn.send_messages([from_dict(message)])
logger.debug("Successfully sent email message to %r.", message['to'])
return result
except Exception as e:
# catching all exceptions b/c it could be any number of things
# depending on the backend
logger.warning("Failed to send email message to %r, retrying.",
message.to)
send_email.retry(exc=e)
# backwards compat
SendEmailTask = send_email
|
Deal with the fact that message is now a dict, not an object.
|
Logging: Deal with the fact that message is now a dict, not an object.
|
Python
|
bsd-3-clause
|
pmclanahan/django-celery-email,pmclanahan/django-celery-email,andresriancho/django-celery-email
|
from django.conf import settings
from django.core.mail import get_connection, EmailMessage
from celery.task import task
CONFIG = getattr(settings, 'CELERY_EMAIL_TASK_CONFIG', {})
BACKEND = getattr(settings, 'CELERY_EMAIL_BACKEND',
'django.core.mail.backends.smtp.EmailBackend')
TASK_CONFIG = {
'name': 'djcelery_email_send',
'ignore_result': True,
}
TASK_CONFIG.update(CONFIG)
def from_dict(messagedict):
return EmailMessage(**messagedict)
@task(**TASK_CONFIG)
def send_email(message, **kwargs):
logger = send_email.get_logger()
conn = get_connection(backend=BACKEND,
**kwargs.pop('_backend_init_kwargs', {}))
try:
result = conn.send_messages([from_dict(message)])
logger.debug("Successfully sent email message to %r.", message.to)
return result
except Exception as e:
# catching all exceptions b/c it could be any number of things
# depending on the backend
logger.warning("Failed to send email message to %r, retrying.",
message.to)
send_email.retry(exc=e)
# backwards compat
SendEmailTask = send_email
Logging: Deal with the fact that message is now a dict, not an object.
|
from django.conf import settings
from django.core.mail import get_connection, EmailMessage
from celery.task import task
CONFIG = getattr(settings, 'CELERY_EMAIL_TASK_CONFIG', {})
BACKEND = getattr(settings, 'CELERY_EMAIL_BACKEND',
'django.core.mail.backends.smtp.EmailBackend')
TASK_CONFIG = {
'name': 'djcelery_email_send',
'ignore_result': True,
}
TASK_CONFIG.update(CONFIG)
def from_dict(messagedict):
return EmailMessage(**messagedict)
@task(**TASK_CONFIG)
def send_email(message, **kwargs):
logger = send_email.get_logger()
conn = get_connection(backend=BACKEND,
**kwargs.pop('_backend_init_kwargs', {}))
try:
result = conn.send_messages([from_dict(message)])
logger.debug("Successfully sent email message to %r.", message['to'])
return result
except Exception as e:
# catching all exceptions b/c it could be any number of things
# depending on the backend
logger.warning("Failed to send email message to %r, retrying.",
message.to)
send_email.retry(exc=e)
# backwards compat
SendEmailTask = send_email
|
<commit_before>from django.conf import settings
from django.core.mail import get_connection, EmailMessage
from celery.task import task
CONFIG = getattr(settings, 'CELERY_EMAIL_TASK_CONFIG', {})
BACKEND = getattr(settings, 'CELERY_EMAIL_BACKEND',
'django.core.mail.backends.smtp.EmailBackend')
TASK_CONFIG = {
'name': 'djcelery_email_send',
'ignore_result': True,
}
TASK_CONFIG.update(CONFIG)
def from_dict(messagedict):
return EmailMessage(**messagedict)
@task(**TASK_CONFIG)
def send_email(message, **kwargs):
logger = send_email.get_logger()
conn = get_connection(backend=BACKEND,
**kwargs.pop('_backend_init_kwargs', {}))
try:
result = conn.send_messages([from_dict(message)])
logger.debug("Successfully sent email message to %r.", message.to)
return result
except Exception as e:
# catching all exceptions b/c it could be any number of things
# depending on the backend
logger.warning("Failed to send email message to %r, retrying.",
message.to)
send_email.retry(exc=e)
# backwards compat
SendEmailTask = send_email
<commit_msg>Logging: Deal with the fact that message is now a dict, not an object.<commit_after>
|
from django.conf import settings
from django.core.mail import get_connection, EmailMessage
from celery.task import task
CONFIG = getattr(settings, 'CELERY_EMAIL_TASK_CONFIG', {})
BACKEND = getattr(settings, 'CELERY_EMAIL_BACKEND',
'django.core.mail.backends.smtp.EmailBackend')
TASK_CONFIG = {
'name': 'djcelery_email_send',
'ignore_result': True,
}
TASK_CONFIG.update(CONFIG)
def from_dict(messagedict):
return EmailMessage(**messagedict)
@task(**TASK_CONFIG)
def send_email(message, **kwargs):
logger = send_email.get_logger()
conn = get_connection(backend=BACKEND,
**kwargs.pop('_backend_init_kwargs', {}))
try:
result = conn.send_messages([from_dict(message)])
logger.debug("Successfully sent email message to %r.", message['to'])
return result
except Exception as e:
# catching all exceptions b/c it could be any number of things
# depending on the backend
logger.warning("Failed to send email message to %r, retrying.",
message.to)
send_email.retry(exc=e)
# backwards compat
SendEmailTask = send_email
|
from django.conf import settings
from django.core.mail import get_connection, EmailMessage
from celery.task import task
CONFIG = getattr(settings, 'CELERY_EMAIL_TASK_CONFIG', {})
BACKEND = getattr(settings, 'CELERY_EMAIL_BACKEND',
'django.core.mail.backends.smtp.EmailBackend')
TASK_CONFIG = {
'name': 'djcelery_email_send',
'ignore_result': True,
}
TASK_CONFIG.update(CONFIG)
def from_dict(messagedict):
return EmailMessage(**messagedict)
@task(**TASK_CONFIG)
def send_email(message, **kwargs):
logger = send_email.get_logger()
conn = get_connection(backend=BACKEND,
**kwargs.pop('_backend_init_kwargs', {}))
try:
result = conn.send_messages([from_dict(message)])
logger.debug("Successfully sent email message to %r.", message.to)
return result
except Exception as e:
# catching all exceptions b/c it could be any number of things
# depending on the backend
logger.warning("Failed to send email message to %r, retrying.",
message.to)
send_email.retry(exc=e)
# backwards compat
SendEmailTask = send_email
Logging: Deal with the fact that message is now a dict, not an object.from django.conf import settings
from django.core.mail import get_connection, EmailMessage
from celery.task import task
CONFIG = getattr(settings, 'CELERY_EMAIL_TASK_CONFIG', {})
BACKEND = getattr(settings, 'CELERY_EMAIL_BACKEND',
'django.core.mail.backends.smtp.EmailBackend')
TASK_CONFIG = {
'name': 'djcelery_email_send',
'ignore_result': True,
}
TASK_CONFIG.update(CONFIG)
def from_dict(messagedict):
return EmailMessage(**messagedict)
@task(**TASK_CONFIG)
def send_email(message, **kwargs):
logger = send_email.get_logger()
conn = get_connection(backend=BACKEND,
**kwargs.pop('_backend_init_kwargs', {}))
try:
result = conn.send_messages([from_dict(message)])
logger.debug("Successfully sent email message to %r.", message['to'])
return result
except Exception as e:
# catching all exceptions b/c it could be any number of things
# depending on the backend
logger.warning("Failed to send email message to %r, retrying.",
message.to)
send_email.retry(exc=e)
# backwards compat
SendEmailTask = send_email
|
<commit_before>from django.conf import settings
from django.core.mail import get_connection, EmailMessage
from celery.task import task
CONFIG = getattr(settings, 'CELERY_EMAIL_TASK_CONFIG', {})
BACKEND = getattr(settings, 'CELERY_EMAIL_BACKEND',
'django.core.mail.backends.smtp.EmailBackend')
TASK_CONFIG = {
'name': 'djcelery_email_send',
'ignore_result': True,
}
TASK_CONFIG.update(CONFIG)
def from_dict(messagedict):
return EmailMessage(**messagedict)
@task(**TASK_CONFIG)
def send_email(message, **kwargs):
logger = send_email.get_logger()
conn = get_connection(backend=BACKEND,
**kwargs.pop('_backend_init_kwargs', {}))
try:
result = conn.send_messages([from_dict(message)])
logger.debug("Successfully sent email message to %r.", message.to)
return result
except Exception as e:
# catching all exceptions b/c it could be any number of things
# depending on the backend
logger.warning("Failed to send email message to %r, retrying.",
message.to)
send_email.retry(exc=e)
# backwards compat
SendEmailTask = send_email
<commit_msg>Logging: Deal with the fact that message is now a dict, not an object.<commit_after>from django.conf import settings
from django.core.mail import get_connection, EmailMessage
from celery.task import task
CONFIG = getattr(settings, 'CELERY_EMAIL_TASK_CONFIG', {})
BACKEND = getattr(settings, 'CELERY_EMAIL_BACKEND',
'django.core.mail.backends.smtp.EmailBackend')
TASK_CONFIG = {
'name': 'djcelery_email_send',
'ignore_result': True,
}
TASK_CONFIG.update(CONFIG)
def from_dict(messagedict):
return EmailMessage(**messagedict)
@task(**TASK_CONFIG)
def send_email(message, **kwargs):
logger = send_email.get_logger()
conn = get_connection(backend=BACKEND,
**kwargs.pop('_backend_init_kwargs', {}))
try:
result = conn.send_messages([from_dict(message)])
logger.debug("Successfully sent email message to %r.", message['to'])
return result
except Exception as e:
# catching all exceptions b/c it could be any number of things
# depending on the backend
logger.warning("Failed to send email message to %r, retrying.",
message.to)
send_email.retry(exc=e)
# backwards compat
SendEmailTask = send_email
|
04f4c11ff52069475a3818de74b4cd89695cfa2c
|
scrapi/harvesters/tdar/__init__.py
|
scrapi/harvesters/tdar/__init__.py
|
"""
Harvester for the The Digital Archaeological Record (tDAR) for the SHARE project
More information at https://github.com/CenterForOpenScience/SHARE/blob/master/providers/org.tdar.md
Example API call: http://core.tdar.org/oai-pmh/oai?verb=ListRecords&metadataPrefix=oai_dc&from=2014-10-05
"""
from __future__ import unicode_literals
from scrapi.base import OAIHarvester
tdar = OAIHarvester(
name='tdar',
base_url='http://core.tdar.org/oai-pmh/oai',
property_list=['type', 'date', 'setSpec', 'type', 'publisher', 'coverage']
)
harvest = tdar.harvest
normalize = tdar.normalize
|
"""
Harvester for the The Digital Archaeological Record (tDAR) for the SHARE project
More information at https://github.com/CenterForOpenScience/SHARE/blob/master/providers/org.tdar.md
Example API call: http://core.tdar.org/oai-pmh/oai?verb=ListRecords&metadataPrefix=oai_dc&from=2014-10-05
"""
from __future__ import unicode_literals
from scrapi import util
from scrapi.base import OAIHarvester
class tdarHarvester(OAIHarvester):
def get_ids(self, result, doc):
"""
Gather the DOI and url from identifiers, if possible.
Tries to save the DOI alone without a url extension.
Tries to save a link to the original content at the source,
instead of direct to a PDF, which is usually linked with viewcontent.cgi?
in the url field
"""
serviceID = doc.get('docID')
url = 'http://core.tdar.org/document/' + serviceID.replace('oai:tdar.org:Resource:', '')
print(url)
return {
'serviceID': serviceID,
'url': util.copy_to_unicode(url),
'doi': ''
}
tdar = tdarHarvester(
name='tdar',
base_url='http://core.tdar.org/oai-pmh/oai',
property_list=['type', 'date', 'setSpec', 'type', 'publisher', 'coverage']
)
harvest = tdar.harvest
normalize = tdar.normalize
|
Update tdar harvester with custom url gatheriing
|
Update tdar harvester with custom url gatheriing
|
Python
|
apache-2.0
|
icereval/scrapi,ostwald/scrapi,mehanig/scrapi,CenterForOpenScience/scrapi,erinspace/scrapi,erinspace/scrapi,fabianvf/scrapi,CenterForOpenScience/scrapi,alexgarciac/scrapi,mehanig/scrapi,felliott/scrapi,fabianvf/scrapi,felliott/scrapi,jeffreyliu3230/scrapi
|
"""
Harvester for the The Digital Archaeological Record (tDAR) for the SHARE project
More information at https://github.com/CenterForOpenScience/SHARE/blob/master/providers/org.tdar.md
Example API call: http://core.tdar.org/oai-pmh/oai?verb=ListRecords&metadataPrefix=oai_dc&from=2014-10-05
"""
from __future__ import unicode_literals
from scrapi.base import OAIHarvester
tdar = OAIHarvester(
name='tdar',
base_url='http://core.tdar.org/oai-pmh/oai',
property_list=['type', 'date', 'setSpec', 'type', 'publisher', 'coverage']
)
harvest = tdar.harvest
normalize = tdar.normalize
Update tdar harvester with custom url gatheriing
|
"""
Harvester for the The Digital Archaeological Record (tDAR) for the SHARE project
More information at https://github.com/CenterForOpenScience/SHARE/blob/master/providers/org.tdar.md
Example API call: http://core.tdar.org/oai-pmh/oai?verb=ListRecords&metadataPrefix=oai_dc&from=2014-10-05
"""
from __future__ import unicode_literals
from scrapi import util
from scrapi.base import OAIHarvester
class tdarHarvester(OAIHarvester):
def get_ids(self, result, doc):
"""
Gather the DOI and url from identifiers, if possible.
Tries to save the DOI alone without a url extension.
Tries to save a link to the original content at the source,
instead of direct to a PDF, which is usually linked with viewcontent.cgi?
in the url field
"""
serviceID = doc.get('docID')
url = 'http://core.tdar.org/document/' + serviceID.replace('oai:tdar.org:Resource:', '')
print(url)
return {
'serviceID': serviceID,
'url': util.copy_to_unicode(url),
'doi': ''
}
tdar = tdarHarvester(
name='tdar',
base_url='http://core.tdar.org/oai-pmh/oai',
property_list=['type', 'date', 'setSpec', 'type', 'publisher', 'coverage']
)
harvest = tdar.harvest
normalize = tdar.normalize
|
<commit_before>"""
Harvester for the The Digital Archaeological Record (tDAR) for the SHARE project
More information at https://github.com/CenterForOpenScience/SHARE/blob/master/providers/org.tdar.md
Example API call: http://core.tdar.org/oai-pmh/oai?verb=ListRecords&metadataPrefix=oai_dc&from=2014-10-05
"""
from __future__ import unicode_literals
from scrapi.base import OAIHarvester
tdar = OAIHarvester(
name='tdar',
base_url='http://core.tdar.org/oai-pmh/oai',
property_list=['type', 'date', 'setSpec', 'type', 'publisher', 'coverage']
)
harvest = tdar.harvest
normalize = tdar.normalize
<commit_msg>Update tdar harvester with custom url gatheriing<commit_after>
|
"""
Harvester for the The Digital Archaeological Record (tDAR) for the SHARE project
More information at https://github.com/CenterForOpenScience/SHARE/blob/master/providers/org.tdar.md
Example API call: http://core.tdar.org/oai-pmh/oai?verb=ListRecords&metadataPrefix=oai_dc&from=2014-10-05
"""
from __future__ import unicode_literals
from scrapi import util
from scrapi.base import OAIHarvester
class tdarHarvester(OAIHarvester):
def get_ids(self, result, doc):
"""
Gather the DOI and url from identifiers, if possible.
Tries to save the DOI alone without a url extension.
Tries to save a link to the original content at the source,
instead of direct to a PDF, which is usually linked with viewcontent.cgi?
in the url field
"""
serviceID = doc.get('docID')
url = 'http://core.tdar.org/document/' + serviceID.replace('oai:tdar.org:Resource:', '')
print(url)
return {
'serviceID': serviceID,
'url': util.copy_to_unicode(url),
'doi': ''
}
tdar = tdarHarvester(
name='tdar',
base_url='http://core.tdar.org/oai-pmh/oai',
property_list=['type', 'date', 'setSpec', 'type', 'publisher', 'coverage']
)
harvest = tdar.harvest
normalize = tdar.normalize
|
"""
Harvester for the The Digital Archaeological Record (tDAR) for the SHARE project
More information at https://github.com/CenterForOpenScience/SHARE/blob/master/providers/org.tdar.md
Example API call: http://core.tdar.org/oai-pmh/oai?verb=ListRecords&metadataPrefix=oai_dc&from=2014-10-05
"""
from __future__ import unicode_literals
from scrapi.base import OAIHarvester
tdar = OAIHarvester(
name='tdar',
base_url='http://core.tdar.org/oai-pmh/oai',
property_list=['type', 'date', 'setSpec', 'type', 'publisher', 'coverage']
)
harvest = tdar.harvest
normalize = tdar.normalize
Update tdar harvester with custom url gatheriing"""
Harvester for the The Digital Archaeological Record (tDAR) for the SHARE project
More information at https://github.com/CenterForOpenScience/SHARE/blob/master/providers/org.tdar.md
Example API call: http://core.tdar.org/oai-pmh/oai?verb=ListRecords&metadataPrefix=oai_dc&from=2014-10-05
"""
from __future__ import unicode_literals
from scrapi import util
from scrapi.base import OAIHarvester
class tdarHarvester(OAIHarvester):
def get_ids(self, result, doc):
"""
Gather the DOI and url from identifiers, if possible.
Tries to save the DOI alone without a url extension.
Tries to save a link to the original content at the source,
instead of direct to a PDF, which is usually linked with viewcontent.cgi?
in the url field
"""
serviceID = doc.get('docID')
url = 'http://core.tdar.org/document/' + serviceID.replace('oai:tdar.org:Resource:', '')
print(url)
return {
'serviceID': serviceID,
'url': util.copy_to_unicode(url),
'doi': ''
}
tdar = tdarHarvester(
name='tdar',
base_url='http://core.tdar.org/oai-pmh/oai',
property_list=['type', 'date', 'setSpec', 'type', 'publisher', 'coverage']
)
harvest = tdar.harvest
normalize = tdar.normalize
|
<commit_before>"""
Harvester for the The Digital Archaeological Record (tDAR) for the SHARE project
More information at https://github.com/CenterForOpenScience/SHARE/blob/master/providers/org.tdar.md
Example API call: http://core.tdar.org/oai-pmh/oai?verb=ListRecords&metadataPrefix=oai_dc&from=2014-10-05
"""
from __future__ import unicode_literals
from scrapi.base import OAIHarvester
tdar = OAIHarvester(
name='tdar',
base_url='http://core.tdar.org/oai-pmh/oai',
property_list=['type', 'date', 'setSpec', 'type', 'publisher', 'coverage']
)
harvest = tdar.harvest
normalize = tdar.normalize
<commit_msg>Update tdar harvester with custom url gatheriing<commit_after>"""
Harvester for the The Digital Archaeological Record (tDAR) for the SHARE project
More information at https://github.com/CenterForOpenScience/SHARE/blob/master/providers/org.tdar.md
Example API call: http://core.tdar.org/oai-pmh/oai?verb=ListRecords&metadataPrefix=oai_dc&from=2014-10-05
"""
from __future__ import unicode_literals
from scrapi import util
from scrapi.base import OAIHarvester
class tdarHarvester(OAIHarvester):
def get_ids(self, result, doc):
"""
Gather the DOI and url from identifiers, if possible.
Tries to save the DOI alone without a url extension.
Tries to save a link to the original content at the source,
instead of direct to a PDF, which is usually linked with viewcontent.cgi?
in the url field
"""
serviceID = doc.get('docID')
url = 'http://core.tdar.org/document/' + serviceID.replace('oai:tdar.org:Resource:', '')
print(url)
return {
'serviceID': serviceID,
'url': util.copy_to_unicode(url),
'doi': ''
}
tdar = tdarHarvester(
name='tdar',
base_url='http://core.tdar.org/oai-pmh/oai',
property_list=['type', 'date', 'setSpec', 'type', 'publisher', 'coverage']
)
harvest = tdar.harvest
normalize = tdar.normalize
|
0b0664536056c755befae4c5aaa83f100f76e8e8
|
apps/actors/models.py
|
apps/actors/models.py
|
from django.utils.translation import ugettext_lazy as _
from django.db import models
from django.db.models import DateTimeField, BooleanField, OneToOneField
from agenda.models import Calendar
class Actor(models.Model):
"""
An actor is an entity playing a role in your system. It can be anything that
belongs to a user and interact during its workflow.
"""
class meta:
abstract = True
registered_on = DateTimeField(auto_now_add=True,
help_text=_('When it was was registered')
)
last_activity = DateTimeField(auto_now=True,
help_text=_('The last time something happened')
)
owned = BooleanField(default=False,
help_text=_('Wether this actor is owned by at least one user')
)
calendar = OneToOneField(Calendar, null=True, blank=True)
def actor_after_save(sender, instance, created, **kwargs):
"""
Called to ensure the calendar is created for a given actor
"""
if created:
print "eyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy"
cal = Calendar(name='%s' % instance.name)
cal.save()
instance.calendar = cal
instance.save()
|
from django.utils.translation import ugettext_lazy as _
from django.db import models
from django.db.models import DateTimeField, BooleanField, OneToOneField
from agenda.models import Calendar
class Actor(models.Model):
"""
An actor is an entity playing a role in your system. It can be anything that
belongs to a user and interact during its workflow.
"""
class meta:
abstract = True
registered_on = DateTimeField(auto_now_add=True,
help_text=_('When it was was registered'),
editable=False
)
last_activity = DateTimeField(auto_now=True,
help_text=_('The last time something happened'),
editable=False
)
owned = BooleanField(default=False,
help_text=_('Wether this actor is owned by at least one user')
)
calendar = OneToOneField(Calendar, null=True, blank=True, editable=False)
def actor_after_save(sender, instance, created, **kwargs):
"""
Called to ensure the calendar is created for a given actor
"""
if created:
cal = Calendar(name='%s' % instance.name)
cal.save()
instance.calendar = cal
instance.save()
|
Make calendar not editbale for actors
|
Make calendar not editbale for actors
|
Python
|
agpl-3.0
|
SpreadBand/SpreadBand,SpreadBand/SpreadBand
|
from django.utils.translation import ugettext_lazy as _
from django.db import models
from django.db.models import DateTimeField, BooleanField, OneToOneField
from agenda.models import Calendar
class Actor(models.Model):
"""
An actor is an entity playing a role in your system. It can be anything that
belongs to a user and interact during its workflow.
"""
class meta:
abstract = True
registered_on = DateTimeField(auto_now_add=True,
help_text=_('When it was was registered')
)
last_activity = DateTimeField(auto_now=True,
help_text=_('The last time something happened')
)
owned = BooleanField(default=False,
help_text=_('Wether this actor is owned by at least one user')
)
calendar = OneToOneField(Calendar, null=True, blank=True)
def actor_after_save(sender, instance, created, **kwargs):
"""
Called to ensure the calendar is created for a given actor
"""
if created:
print "eyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy"
cal = Calendar(name='%s' % instance.name)
cal.save()
instance.calendar = cal
instance.save()
Make calendar not editbale for actors
|
from django.utils.translation import ugettext_lazy as _
from django.db import models
from django.db.models import DateTimeField, BooleanField, OneToOneField
from agenda.models import Calendar
class Actor(models.Model):
"""
An actor is an entity playing a role in your system. It can be anything that
belongs to a user and interact during its workflow.
"""
class meta:
abstract = True
registered_on = DateTimeField(auto_now_add=True,
help_text=_('When it was was registered'),
editable=False
)
last_activity = DateTimeField(auto_now=True,
help_text=_('The last time something happened'),
editable=False
)
owned = BooleanField(default=False,
help_text=_('Wether this actor is owned by at least one user')
)
calendar = OneToOneField(Calendar, null=True, blank=True, editable=False)
def actor_after_save(sender, instance, created, **kwargs):
"""
Called to ensure the calendar is created for a given actor
"""
if created:
cal = Calendar(name='%s' % instance.name)
cal.save()
instance.calendar = cal
instance.save()
|
<commit_before>from django.utils.translation import ugettext_lazy as _
from django.db import models
from django.db.models import DateTimeField, BooleanField, OneToOneField
from agenda.models import Calendar
class Actor(models.Model):
"""
An actor is an entity playing a role in your system. It can be anything that
belongs to a user and interact during its workflow.
"""
class meta:
abstract = True
registered_on = DateTimeField(auto_now_add=True,
help_text=_('When it was was registered')
)
last_activity = DateTimeField(auto_now=True,
help_text=_('The last time something happened')
)
owned = BooleanField(default=False,
help_text=_('Wether this actor is owned by at least one user')
)
calendar = OneToOneField(Calendar, null=True, blank=True)
def actor_after_save(sender, instance, created, **kwargs):
"""
Called to ensure the calendar is created for a given actor
"""
if created:
print "eyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy"
cal = Calendar(name='%s' % instance.name)
cal.save()
instance.calendar = cal
instance.save()
<commit_msg>Make calendar not editbale for actors<commit_after>
|
from django.utils.translation import ugettext_lazy as _
from django.db import models
from django.db.models import DateTimeField, BooleanField, OneToOneField
from agenda.models import Calendar
class Actor(models.Model):
"""
An actor is an entity playing a role in your system. It can be anything that
belongs to a user and interact during its workflow.
"""
class meta:
abstract = True
registered_on = DateTimeField(auto_now_add=True,
help_text=_('When it was was registered'),
editable=False
)
last_activity = DateTimeField(auto_now=True,
help_text=_('The last time something happened'),
editable=False
)
owned = BooleanField(default=False,
help_text=_('Wether this actor is owned by at least one user')
)
calendar = OneToOneField(Calendar, null=True, blank=True, editable=False)
def actor_after_save(sender, instance, created, **kwargs):
"""
Called to ensure the calendar is created for a given actor
"""
if created:
cal = Calendar(name='%s' % instance.name)
cal.save()
instance.calendar = cal
instance.save()
|
from django.utils.translation import ugettext_lazy as _
from django.db import models
from django.db.models import DateTimeField, BooleanField, OneToOneField
from agenda.models import Calendar
class Actor(models.Model):
"""
An actor is an entity playing a role in your system. It can be anything that
belongs to a user and interact during its workflow.
"""
class meta:
abstract = True
registered_on = DateTimeField(auto_now_add=True,
help_text=_('When it was was registered')
)
last_activity = DateTimeField(auto_now=True,
help_text=_('The last time something happened')
)
owned = BooleanField(default=False,
help_text=_('Wether this actor is owned by at least one user')
)
calendar = OneToOneField(Calendar, null=True, blank=True)
def actor_after_save(sender, instance, created, **kwargs):
"""
Called to ensure the calendar is created for a given actor
"""
if created:
print "eyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy"
cal = Calendar(name='%s' % instance.name)
cal.save()
instance.calendar = cal
instance.save()
Make calendar not editbale for actorsfrom django.utils.translation import ugettext_lazy as _
from django.db import models
from django.db.models import DateTimeField, BooleanField, OneToOneField
from agenda.models import Calendar
class Actor(models.Model):
"""
An actor is an entity playing a role in your system. It can be anything that
belongs to a user and interact during its workflow.
"""
class meta:
abstract = True
registered_on = DateTimeField(auto_now_add=True,
help_text=_('When it was was registered'),
editable=False
)
last_activity = DateTimeField(auto_now=True,
help_text=_('The last time something happened'),
editable=False
)
owned = BooleanField(default=False,
help_text=_('Wether this actor is owned by at least one user')
)
calendar = OneToOneField(Calendar, null=True, blank=True, editable=False)
def actor_after_save(sender, instance, created, **kwargs):
"""
Called to ensure the calendar is created for a given actor
"""
if created:
cal = Calendar(name='%s' % instance.name)
cal.save()
instance.calendar = cal
instance.save()
|
<commit_before>from django.utils.translation import ugettext_lazy as _
from django.db import models
from django.db.models import DateTimeField, BooleanField, OneToOneField
from agenda.models import Calendar
class Actor(models.Model):
"""
An actor is an entity playing a role in your system. It can be anything that
belongs to a user and interact during its workflow.
"""
class meta:
abstract = True
registered_on = DateTimeField(auto_now_add=True,
help_text=_('When it was was registered')
)
last_activity = DateTimeField(auto_now=True,
help_text=_('The last time something happened')
)
owned = BooleanField(default=False,
help_text=_('Wether this actor is owned by at least one user')
)
calendar = OneToOneField(Calendar, null=True, blank=True)
def actor_after_save(sender, instance, created, **kwargs):
"""
Called to ensure the calendar is created for a given actor
"""
if created:
print "eyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy"
cal = Calendar(name='%s' % instance.name)
cal.save()
instance.calendar = cal
instance.save()
<commit_msg>Make calendar not editbale for actors<commit_after>from django.utils.translation import ugettext_lazy as _
from django.db import models
from django.db.models import DateTimeField, BooleanField, OneToOneField
from agenda.models import Calendar
class Actor(models.Model):
"""
An actor is an entity playing a role in your system. It can be anything that
belongs to a user and interact during its workflow.
"""
class meta:
abstract = True
registered_on = DateTimeField(auto_now_add=True,
help_text=_('When it was was registered'),
editable=False
)
last_activity = DateTimeField(auto_now=True,
help_text=_('The last time something happened'),
editable=False
)
owned = BooleanField(default=False,
help_text=_('Wether this actor is owned by at least one user')
)
calendar = OneToOneField(Calendar, null=True, blank=True, editable=False)
def actor_after_save(sender, instance, created, **kwargs):
"""
Called to ensure the calendar is created for a given actor
"""
if created:
cal = Calendar(name='%s' % instance.name)
cal.save()
instance.calendar = cal
instance.save()
|
0f3704a73ec54f015bff9a391d3a6dabc34368cd
|
palette/core/palette_selection.py
|
palette/core/palette_selection.py
|
# -*- coding: utf-8 -*-
## @package palette.core.palette_selection
#
# Implementation of automatic color palette selection.
# @author tody
# @date 2015/08/20
|
# -*- coding: utf-8 -*-
## @package palette.core.palette_selection
#
# Implementation of automatic color palette selection.
# @author tody
# @date 2015/08/20
import os
import numpy as np
from mpl_toolkits.mplot3d import Axes3D
import matplotlib.pyplot as plt
import matplotlib.animation as animation
import cv2
from palette.datasets.google_image import dataFile
from palette.cv.image import to32F
from palette.io_util.image import loadRGB
from palette.plot.window import showMaximize
_root_dir = os.path.dirname(__file__)
## Result directory for SOM results.
def resultDir():
result_dir = os.path.abspath(os.path.join(_root_dir, "../results"))
if not os.path.exists(result_dir):
os.makedirs(result_dir)
return result_dir
def runPaletteSelectionResult(image_file):
image_name = os.path.basename(image_file)
image_name = os.path.splitext(image_name)[0]
C_8U = loadRGB(image_file)
C_32F = to32F(C_8U)
fig = plt.figure(figsize=(10, 8))
fig.subplots_adjust(left=0.05, bottom=0.05, right=0.95, top=0.95, wspace=0.05, hspace=0.05)
plt.title("Automatic Color Palette Selection")
plt.subplot(131)
plt.title("%s" % (image_name))
plt.imshow(C_32F)
plt.axis('off')
showMaximize()
def runPaletteSelectionResults(data_names, data_ids):
for data_name in data_names:
print "Palette Selection: %s" % data_name
for data_id in data_ids:
print "Data ID: %s" % data_id
image_file = dataFile(data_name, data_id)
runPaletteSelectionResult(image_file)
if __name__ == '__main__':
data_names = ["apple", "tulip", "flower"]
data_ids = [0, 1, 2]
runPaletteSelectionResults(data_names, data_ids)
|
Add initial plaette selection code.
|
Add initial plaette selection code.
|
Python
|
mit
|
tody411/PaletteSelection
|
# -*- coding: utf-8 -*-
## @package palette.core.palette_selection
#
# Implementation of automatic color palette selection.
# @author tody
# @date 2015/08/20
Add initial plaette selection code.
|
# -*- coding: utf-8 -*-
## @package palette.core.palette_selection
#
# Implementation of automatic color palette selection.
# @author tody
# @date 2015/08/20
import os
import numpy as np
from mpl_toolkits.mplot3d import Axes3D
import matplotlib.pyplot as plt
import matplotlib.animation as animation
import cv2
from palette.datasets.google_image import dataFile
from palette.cv.image import to32F
from palette.io_util.image import loadRGB
from palette.plot.window import showMaximize
_root_dir = os.path.dirname(__file__)
## Result directory for SOM results.
def resultDir():
result_dir = os.path.abspath(os.path.join(_root_dir, "../results"))
if not os.path.exists(result_dir):
os.makedirs(result_dir)
return result_dir
def runPaletteSelectionResult(image_file):
image_name = os.path.basename(image_file)
image_name = os.path.splitext(image_name)[0]
C_8U = loadRGB(image_file)
C_32F = to32F(C_8U)
fig = plt.figure(figsize=(10, 8))
fig.subplots_adjust(left=0.05, bottom=0.05, right=0.95, top=0.95, wspace=0.05, hspace=0.05)
plt.title("Automatic Color Palette Selection")
plt.subplot(131)
plt.title("%s" % (image_name))
plt.imshow(C_32F)
plt.axis('off')
showMaximize()
def runPaletteSelectionResults(data_names, data_ids):
for data_name in data_names:
print "Palette Selection: %s" % data_name
for data_id in data_ids:
print "Data ID: %s" % data_id
image_file = dataFile(data_name, data_id)
runPaletteSelectionResult(image_file)
if __name__ == '__main__':
data_names = ["apple", "tulip", "flower"]
data_ids = [0, 1, 2]
runPaletteSelectionResults(data_names, data_ids)
|
<commit_before># -*- coding: utf-8 -*-
## @package palette.core.palette_selection
#
# Implementation of automatic color palette selection.
# @author tody
# @date 2015/08/20
<commit_msg>Add initial plaette selection code.<commit_after>
|
# -*- coding: utf-8 -*-
## @package palette.core.palette_selection
#
# Implementation of automatic color palette selection.
# @author tody
# @date 2015/08/20
import os
import numpy as np
from mpl_toolkits.mplot3d import Axes3D
import matplotlib.pyplot as plt
import matplotlib.animation as animation
import cv2
from palette.datasets.google_image import dataFile
from palette.cv.image import to32F
from palette.io_util.image import loadRGB
from palette.plot.window import showMaximize
_root_dir = os.path.dirname(__file__)
## Result directory for SOM results.
def resultDir():
result_dir = os.path.abspath(os.path.join(_root_dir, "../results"))
if not os.path.exists(result_dir):
os.makedirs(result_dir)
return result_dir
def runPaletteSelectionResult(image_file):
image_name = os.path.basename(image_file)
image_name = os.path.splitext(image_name)[0]
C_8U = loadRGB(image_file)
C_32F = to32F(C_8U)
fig = plt.figure(figsize=(10, 8))
fig.subplots_adjust(left=0.05, bottom=0.05, right=0.95, top=0.95, wspace=0.05, hspace=0.05)
plt.title("Automatic Color Palette Selection")
plt.subplot(131)
plt.title("%s" % (image_name))
plt.imshow(C_32F)
plt.axis('off')
showMaximize()
def runPaletteSelectionResults(data_names, data_ids):
for data_name in data_names:
print "Palette Selection: %s" % data_name
for data_id in data_ids:
print "Data ID: %s" % data_id
image_file = dataFile(data_name, data_id)
runPaletteSelectionResult(image_file)
if __name__ == '__main__':
data_names = ["apple", "tulip", "flower"]
data_ids = [0, 1, 2]
runPaletteSelectionResults(data_names, data_ids)
|
# -*- coding: utf-8 -*-
## @package palette.core.palette_selection
#
# Implementation of automatic color palette selection.
# @author tody
# @date 2015/08/20
Add initial plaette selection code.# -*- coding: utf-8 -*-
## @package palette.core.palette_selection
#
# Implementation of automatic color palette selection.
# @author tody
# @date 2015/08/20
import os
import numpy as np
from mpl_toolkits.mplot3d import Axes3D
import matplotlib.pyplot as plt
import matplotlib.animation as animation
import cv2
from palette.datasets.google_image import dataFile
from palette.cv.image import to32F
from palette.io_util.image import loadRGB
from palette.plot.window import showMaximize
_root_dir = os.path.dirname(__file__)
## Result directory for SOM results.
def resultDir():
result_dir = os.path.abspath(os.path.join(_root_dir, "../results"))
if not os.path.exists(result_dir):
os.makedirs(result_dir)
return result_dir
def runPaletteSelectionResult(image_file):
image_name = os.path.basename(image_file)
image_name = os.path.splitext(image_name)[0]
C_8U = loadRGB(image_file)
C_32F = to32F(C_8U)
fig = plt.figure(figsize=(10, 8))
fig.subplots_adjust(left=0.05, bottom=0.05, right=0.95, top=0.95, wspace=0.05, hspace=0.05)
plt.title("Automatic Color Palette Selection")
plt.subplot(131)
plt.title("%s" % (image_name))
plt.imshow(C_32F)
plt.axis('off')
showMaximize()
def runPaletteSelectionResults(data_names, data_ids):
for data_name in data_names:
print "Palette Selection: %s" % data_name
for data_id in data_ids:
print "Data ID: %s" % data_id
image_file = dataFile(data_name, data_id)
runPaletteSelectionResult(image_file)
if __name__ == '__main__':
data_names = ["apple", "tulip", "flower"]
data_ids = [0, 1, 2]
runPaletteSelectionResults(data_names, data_ids)
|
<commit_before># -*- coding: utf-8 -*-
## @package palette.core.palette_selection
#
# Implementation of automatic color palette selection.
# @author tody
# @date 2015/08/20
<commit_msg>Add initial plaette selection code.<commit_after># -*- coding: utf-8 -*-
## @package palette.core.palette_selection
#
# Implementation of automatic color palette selection.
# @author tody
# @date 2015/08/20
import os
import numpy as np
from mpl_toolkits.mplot3d import Axes3D
import matplotlib.pyplot as plt
import matplotlib.animation as animation
import cv2
from palette.datasets.google_image import dataFile
from palette.cv.image import to32F
from palette.io_util.image import loadRGB
from palette.plot.window import showMaximize
_root_dir = os.path.dirname(__file__)
## Result directory for SOM results.
def resultDir():
result_dir = os.path.abspath(os.path.join(_root_dir, "../results"))
if not os.path.exists(result_dir):
os.makedirs(result_dir)
return result_dir
def runPaletteSelectionResult(image_file):
image_name = os.path.basename(image_file)
image_name = os.path.splitext(image_name)[0]
C_8U = loadRGB(image_file)
C_32F = to32F(C_8U)
fig = plt.figure(figsize=(10, 8))
fig.subplots_adjust(left=0.05, bottom=0.05, right=0.95, top=0.95, wspace=0.05, hspace=0.05)
plt.title("Automatic Color Palette Selection")
plt.subplot(131)
plt.title("%s" % (image_name))
plt.imshow(C_32F)
plt.axis('off')
showMaximize()
def runPaletteSelectionResults(data_names, data_ids):
for data_name in data_names:
print "Palette Selection: %s" % data_name
for data_id in data_ids:
print "Data ID: %s" % data_id
image_file = dataFile(data_name, data_id)
runPaletteSelectionResult(image_file)
if __name__ == '__main__':
data_names = ["apple", "tulip", "flower"]
data_ids = [0, 1, 2]
runPaletteSelectionResults(data_names, data_ids)
|
a4a7cdbb6c599d15fa26b0d84c73fdfba27ccf43
|
Markov.py
|
Markov.py
|
from collections import deque, defaultdict
from random import choice
class SequenceGenerator:
def __init__(self, order):
self.order = order
self.table = defaultdict(list)
def addSample(self, sequence):
st = deque([None] * self.order, self.order)
len = 0
for v in sequence:
self.table[tuple(st)].append(v)
st.append(v)
len += 1
self.table[tuple(st)].append(None)
def next(self, state):
return choice(self.table.get(tuple(state)))
def generate(self):
state = deque([None] * self.order, self.order)
while True:
nt = self.next(state)
if nt is None:
raise StopIteration()
state.append(nt)
yield nt
|
from collections import deque, defaultdict
from random import choice
class SequenceGenerator:
def __init__(self, order):
self.order = order
self.table = defaultdict(list)
def addSample(self, sequence):
st = deque([None] * self.order, self.order)
len = 0
for v in sequence:
self.table[tuple(st)].append(v)
st.append(v)
len += 1
self.table[tuple(st)].append(None)
def next(self, state):
return choice(self.table.get(tuple(state), [None]))
def generate(self):
state = deque([None] * self.order, self.order)
while True:
nt = self.next(state)
if nt is None:
raise StopIteration()
state.append(nt)
yield nt
|
Fix crash on empty DB.
|
Fix crash on empty DB.
|
Python
|
mit
|
Fifty-Nine/github_ebooks
|
from collections import deque, defaultdict
from random import choice
class SequenceGenerator:
def __init__(self, order):
self.order = order
self.table = defaultdict(list)
def addSample(self, sequence):
st = deque([None] * self.order, self.order)
len = 0
for v in sequence:
self.table[tuple(st)].append(v)
st.append(v)
len += 1
self.table[tuple(st)].append(None)
def next(self, state):
return choice(self.table.get(tuple(state)))
def generate(self):
state = deque([None] * self.order, self.order)
while True:
nt = self.next(state)
if nt is None:
raise StopIteration()
state.append(nt)
yield nt
Fix crash on empty DB.
|
from collections import deque, defaultdict
from random import choice
class SequenceGenerator:
def __init__(self, order):
self.order = order
self.table = defaultdict(list)
def addSample(self, sequence):
st = deque([None] * self.order, self.order)
len = 0
for v in sequence:
self.table[tuple(st)].append(v)
st.append(v)
len += 1
self.table[tuple(st)].append(None)
def next(self, state):
return choice(self.table.get(tuple(state), [None]))
def generate(self):
state = deque([None] * self.order, self.order)
while True:
nt = self.next(state)
if nt is None:
raise StopIteration()
state.append(nt)
yield nt
|
<commit_before>from collections import deque, defaultdict
from random import choice
class SequenceGenerator:
def __init__(self, order):
self.order = order
self.table = defaultdict(list)
def addSample(self, sequence):
st = deque([None] * self.order, self.order)
len = 0
for v in sequence:
self.table[tuple(st)].append(v)
st.append(v)
len += 1
self.table[tuple(st)].append(None)
def next(self, state):
return choice(self.table.get(tuple(state)))
def generate(self):
state = deque([None] * self.order, self.order)
while True:
nt = self.next(state)
if nt is None:
raise StopIteration()
state.append(nt)
yield nt
<commit_msg>Fix crash on empty DB.<commit_after>
|
from collections import deque, defaultdict
from random import choice
class SequenceGenerator:
def __init__(self, order):
self.order = order
self.table = defaultdict(list)
def addSample(self, sequence):
st = deque([None] * self.order, self.order)
len = 0
for v in sequence:
self.table[tuple(st)].append(v)
st.append(v)
len += 1
self.table[tuple(st)].append(None)
def next(self, state):
return choice(self.table.get(tuple(state), [None]))
def generate(self):
state = deque([None] * self.order, self.order)
while True:
nt = self.next(state)
if nt is None:
raise StopIteration()
state.append(nt)
yield nt
|
from collections import deque, defaultdict
from random import choice
class SequenceGenerator:
def __init__(self, order):
self.order = order
self.table = defaultdict(list)
def addSample(self, sequence):
st = deque([None] * self.order, self.order)
len = 0
for v in sequence:
self.table[tuple(st)].append(v)
st.append(v)
len += 1
self.table[tuple(st)].append(None)
def next(self, state):
return choice(self.table.get(tuple(state)))
def generate(self):
state = deque([None] * self.order, self.order)
while True:
nt = self.next(state)
if nt is None:
raise StopIteration()
state.append(nt)
yield nt
Fix crash on empty DB.from collections import deque, defaultdict
from random import choice
class SequenceGenerator:
def __init__(self, order):
self.order = order
self.table = defaultdict(list)
def addSample(self, sequence):
st = deque([None] * self.order, self.order)
len = 0
for v in sequence:
self.table[tuple(st)].append(v)
st.append(v)
len += 1
self.table[tuple(st)].append(None)
def next(self, state):
return choice(self.table.get(tuple(state), [None]))
def generate(self):
state = deque([None] * self.order, self.order)
while True:
nt = self.next(state)
if nt is None:
raise StopIteration()
state.append(nt)
yield nt
|
<commit_before>from collections import deque, defaultdict
from random import choice
class SequenceGenerator:
def __init__(self, order):
self.order = order
self.table = defaultdict(list)
def addSample(self, sequence):
st = deque([None] * self.order, self.order)
len = 0
for v in sequence:
self.table[tuple(st)].append(v)
st.append(v)
len += 1
self.table[tuple(st)].append(None)
def next(self, state):
return choice(self.table.get(tuple(state)))
def generate(self):
state = deque([None] * self.order, self.order)
while True:
nt = self.next(state)
if nt is None:
raise StopIteration()
state.append(nt)
yield nt
<commit_msg>Fix crash on empty DB.<commit_after>from collections import deque, defaultdict
from random import choice
class SequenceGenerator:
def __init__(self, order):
self.order = order
self.table = defaultdict(list)
def addSample(self, sequence):
st = deque([None] * self.order, self.order)
len = 0
for v in sequence:
self.table[tuple(st)].append(v)
st.append(v)
len += 1
self.table[tuple(st)].append(None)
def next(self, state):
return choice(self.table.get(tuple(state), [None]))
def generate(self):
state = deque([None] * self.order, self.order)
while True:
nt = self.next(state)
if nt is None:
raise StopIteration()
state.append(nt)
yield nt
|
b521317c773b6e5e08a135e2a3fc4a658a981ea8
|
dddp/test/__init__.py
|
dddp/test/__init__.py
|
# This file mainly exists to allow `python setup.py test` to work.
import os
import sys
import dddp
import django
from django.test.utils import get_runner
from django.conf import settings
def run_tests():
os.environ['DJANGO_SETTINGS_MODULE'] = 'dddp.test.test_project.settings'
dddp.greenify()
django.setup()
test_runner = get_runner(settings)()
failures = test_runner.run_tests(['dddp'])
sys.exit(bool(failures))
|
Add test runner for use with `python setup.py test`
|
Add test runner for use with `python setup.py test`
|
Python
|
mit
|
django-ddp/django-ddp,django-ddp/django-ddp,commoncode/django-ddp,commoncode/django-ddp,django-ddp/django-ddp,commoncode/django-ddp,commoncode/django-ddp,django-ddp/django-ddp
|
Add test runner for use with `python setup.py test`
|
# This file mainly exists to allow `python setup.py test` to work.
import os
import sys
import dddp
import django
from django.test.utils import get_runner
from django.conf import settings
def run_tests():
os.environ['DJANGO_SETTINGS_MODULE'] = 'dddp.test.test_project.settings'
dddp.greenify()
django.setup()
test_runner = get_runner(settings)()
failures = test_runner.run_tests(['dddp'])
sys.exit(bool(failures))
|
<commit_before><commit_msg>Add test runner for use with `python setup.py test`<commit_after>
|
# This file mainly exists to allow `python setup.py test` to work.
import os
import sys
import dddp
import django
from django.test.utils import get_runner
from django.conf import settings
def run_tests():
os.environ['DJANGO_SETTINGS_MODULE'] = 'dddp.test.test_project.settings'
dddp.greenify()
django.setup()
test_runner = get_runner(settings)()
failures = test_runner.run_tests(['dddp'])
sys.exit(bool(failures))
|
Add test runner for use with `python setup.py test`# This file mainly exists to allow `python setup.py test` to work.
import os
import sys
import dddp
import django
from django.test.utils import get_runner
from django.conf import settings
def run_tests():
os.environ['DJANGO_SETTINGS_MODULE'] = 'dddp.test.test_project.settings'
dddp.greenify()
django.setup()
test_runner = get_runner(settings)()
failures = test_runner.run_tests(['dddp'])
sys.exit(bool(failures))
|
<commit_before><commit_msg>Add test runner for use with `python setup.py test`<commit_after># This file mainly exists to allow `python setup.py test` to work.
import os
import sys
import dddp
import django
from django.test.utils import get_runner
from django.conf import settings
def run_tests():
os.environ['DJANGO_SETTINGS_MODULE'] = 'dddp.test.test_project.settings'
dddp.greenify()
django.setup()
test_runner = get_runner(settings)()
failures = test_runner.run_tests(['dddp'])
sys.exit(bool(failures))
|
|
f7e80d42ce10e07eac45dad9ccced5818cee56fe
|
examples/terminal_mongo_example.py
|
examples/terminal_mongo_example.py
|
from chatterbot import ChatBot
from chatterbot.filters import LanguageFilter
import logging
# Uncomment the following line to enable verbose logging
# logging.basicConfig(level=logging.INFO)
# Create a new ChatBot instance
bot = ChatBot("Terminal",
storage_adapter="chatterbot.adapters.storage.MongoDatabaseAdapter",
logic_adapters=[
"chatterbot.adapters.logic.ClosestMatchAdapter"
],
filters=(
LanguageFilter,
),
input_adapter="chatterbot.adapters.input.TerminalAdapter",
output_adapter="chatterbot.adapters.output.TerminalAdapter",
database="chatterbot-database"
)
print("Type something to begin...")
while True:
try:
bot_input = bot.get_response(None)
# Press ctrl-c or ctrl-d on the keyboard to exit
except (KeyboardInterrupt, EOFError, SystemExit):
break
|
from chatterbot import ChatBot
from chatterbot.filters import LanguageFilter, RepetitiveResponseFilter
import logging
# Uncomment the following line to enable verbose logging
# logging.basicConfig(level=logging.INFO)
# Create a new ChatBot instance
bot = ChatBot("Terminal",
storage_adapter="chatterbot.adapters.storage.MongoDatabaseAdapter",
logic_adapters=[
"chatterbot.adapters.logic.ClosestMatchAdapter"
],
filters=(
LanguageFilter,
RepetitiveResponseFilter
),
input_adapter="chatterbot.adapters.input.TerminalAdapter",
output_adapter="chatterbot.adapters.output.TerminalAdapter",
database="chatterbot-database"
)
print("Type something to begin...")
while True:
try:
bot_input = bot.get_response(None)
# Press ctrl-c or ctrl-d on the keyboard to exit
except (KeyboardInterrupt, EOFError, SystemExit):
break
|
Add filters to the Mongo DB example.
|
Add filters to the Mongo DB example.
|
Python
|
bsd-3-clause
|
vkosuri/ChatterBot,maclogan/VirtualPenPal,Reinaesaya/OUIRL-ChatBot,davizucon/ChatterBot,gunthercox/ChatterBot,Gustavo6046/ChatterBot,Reinaesaya/OUIRL-ChatBot
|
from chatterbot import ChatBot
from chatterbot.filters import LanguageFilter
import logging
# Uncomment the following line to enable verbose logging
# logging.basicConfig(level=logging.INFO)
# Create a new ChatBot instance
bot = ChatBot("Terminal",
storage_adapter="chatterbot.adapters.storage.MongoDatabaseAdapter",
logic_adapters=[
"chatterbot.adapters.logic.ClosestMatchAdapter"
],
filters=(
LanguageFilter,
),
input_adapter="chatterbot.adapters.input.TerminalAdapter",
output_adapter="chatterbot.adapters.output.TerminalAdapter",
database="chatterbot-database"
)
print("Type something to begin...")
while True:
try:
bot_input = bot.get_response(None)
# Press ctrl-c or ctrl-d on the keyboard to exit
except (KeyboardInterrupt, EOFError, SystemExit):
break
Add filters to the Mongo DB example.
|
from chatterbot import ChatBot
from chatterbot.filters import LanguageFilter, RepetitiveResponseFilter
import logging
# Uncomment the following line to enable verbose logging
# logging.basicConfig(level=logging.INFO)
# Create a new ChatBot instance
bot = ChatBot("Terminal",
storage_adapter="chatterbot.adapters.storage.MongoDatabaseAdapter",
logic_adapters=[
"chatterbot.adapters.logic.ClosestMatchAdapter"
],
filters=(
LanguageFilter,
RepetitiveResponseFilter
),
input_adapter="chatterbot.adapters.input.TerminalAdapter",
output_adapter="chatterbot.adapters.output.TerminalAdapter",
database="chatterbot-database"
)
print("Type something to begin...")
while True:
try:
bot_input = bot.get_response(None)
# Press ctrl-c or ctrl-d on the keyboard to exit
except (KeyboardInterrupt, EOFError, SystemExit):
break
|
<commit_before>from chatterbot import ChatBot
from chatterbot.filters import LanguageFilter
import logging
# Uncomment the following line to enable verbose logging
# logging.basicConfig(level=logging.INFO)
# Create a new ChatBot instance
bot = ChatBot("Terminal",
storage_adapter="chatterbot.adapters.storage.MongoDatabaseAdapter",
logic_adapters=[
"chatterbot.adapters.logic.ClosestMatchAdapter"
],
filters=(
LanguageFilter,
),
input_adapter="chatterbot.adapters.input.TerminalAdapter",
output_adapter="chatterbot.adapters.output.TerminalAdapter",
database="chatterbot-database"
)
print("Type something to begin...")
while True:
try:
bot_input = bot.get_response(None)
# Press ctrl-c or ctrl-d on the keyboard to exit
except (KeyboardInterrupt, EOFError, SystemExit):
break
<commit_msg>Add filters to the Mongo DB example.<commit_after>
|
from chatterbot import ChatBot
from chatterbot.filters import LanguageFilter, RepetitiveResponseFilter
import logging
# Uncomment the following line to enable verbose logging
# logging.basicConfig(level=logging.INFO)
# Create a new ChatBot instance
bot = ChatBot("Terminal",
storage_adapter="chatterbot.adapters.storage.MongoDatabaseAdapter",
logic_adapters=[
"chatterbot.adapters.logic.ClosestMatchAdapter"
],
filters=(
LanguageFilter,
RepetitiveResponseFilter
),
input_adapter="chatterbot.adapters.input.TerminalAdapter",
output_adapter="chatterbot.adapters.output.TerminalAdapter",
database="chatterbot-database"
)
print("Type something to begin...")
while True:
try:
bot_input = bot.get_response(None)
# Press ctrl-c or ctrl-d on the keyboard to exit
except (KeyboardInterrupt, EOFError, SystemExit):
break
|
from chatterbot import ChatBot
from chatterbot.filters import LanguageFilter
import logging
# Uncomment the following line to enable verbose logging
# logging.basicConfig(level=logging.INFO)
# Create a new ChatBot instance
bot = ChatBot("Terminal",
storage_adapter="chatterbot.adapters.storage.MongoDatabaseAdapter",
logic_adapters=[
"chatterbot.adapters.logic.ClosestMatchAdapter"
],
filters=(
LanguageFilter,
),
input_adapter="chatterbot.adapters.input.TerminalAdapter",
output_adapter="chatterbot.adapters.output.TerminalAdapter",
database="chatterbot-database"
)
print("Type something to begin...")
while True:
try:
bot_input = bot.get_response(None)
# Press ctrl-c or ctrl-d on the keyboard to exit
except (KeyboardInterrupt, EOFError, SystemExit):
break
Add filters to the Mongo DB example.from chatterbot import ChatBot
from chatterbot.filters import LanguageFilter, RepetitiveResponseFilter
import logging
# Uncomment the following line to enable verbose logging
# logging.basicConfig(level=logging.INFO)
# Create a new ChatBot instance
bot = ChatBot("Terminal",
storage_adapter="chatterbot.adapters.storage.MongoDatabaseAdapter",
logic_adapters=[
"chatterbot.adapters.logic.ClosestMatchAdapter"
],
filters=(
LanguageFilter,
RepetitiveResponseFilter
),
input_adapter="chatterbot.adapters.input.TerminalAdapter",
output_adapter="chatterbot.adapters.output.TerminalAdapter",
database="chatterbot-database"
)
print("Type something to begin...")
while True:
try:
bot_input = bot.get_response(None)
# Press ctrl-c or ctrl-d on the keyboard to exit
except (KeyboardInterrupt, EOFError, SystemExit):
break
|
<commit_before>from chatterbot import ChatBot
from chatterbot.filters import LanguageFilter
import logging
# Uncomment the following line to enable verbose logging
# logging.basicConfig(level=logging.INFO)
# Create a new ChatBot instance
bot = ChatBot("Terminal",
storage_adapter="chatterbot.adapters.storage.MongoDatabaseAdapter",
logic_adapters=[
"chatterbot.adapters.logic.ClosestMatchAdapter"
],
filters=(
LanguageFilter,
),
input_adapter="chatterbot.adapters.input.TerminalAdapter",
output_adapter="chatterbot.adapters.output.TerminalAdapter",
database="chatterbot-database"
)
print("Type something to begin...")
while True:
try:
bot_input = bot.get_response(None)
# Press ctrl-c or ctrl-d on the keyboard to exit
except (KeyboardInterrupt, EOFError, SystemExit):
break
<commit_msg>Add filters to the Mongo DB example.<commit_after>from chatterbot import ChatBot
from chatterbot.filters import LanguageFilter, RepetitiveResponseFilter
import logging
# Uncomment the following line to enable verbose logging
# logging.basicConfig(level=logging.INFO)
# Create a new ChatBot instance
bot = ChatBot("Terminal",
storage_adapter="chatterbot.adapters.storage.MongoDatabaseAdapter",
logic_adapters=[
"chatterbot.adapters.logic.ClosestMatchAdapter"
],
filters=(
LanguageFilter,
RepetitiveResponseFilter
),
input_adapter="chatterbot.adapters.input.TerminalAdapter",
output_adapter="chatterbot.adapters.output.TerminalAdapter",
database="chatterbot-database"
)
print("Type something to begin...")
while True:
try:
bot_input = bot.get_response(None)
# Press ctrl-c or ctrl-d on the keyboard to exit
except (KeyboardInterrupt, EOFError, SystemExit):
break
|
e09894b92823392891fd0dddb63fd30bfd5bdc2a
|
pyclient/integtest.py
|
pyclient/integtest.py
|
#!/usr/bin/python
from lockd import LockdClient
lockd_client = LockdClient()
# Lock
assert lockd_client.lock("foo")
# Dup lock should fail
assert not lockd_client.lock("foo")
# Lock another entry should work
assert lockd_client.lock("bar")
# Unlock entries
assert lockd_client.unlock("foo")
assert lockd_client.unlock("bar")
# Dup unlock should fail
assert not lockd_client.unlock("bar")
|
#!/usr/bin/python
from lockd import LockdClient
lockd_client = LockdClient()
# Initial state
assert not lockd_client.is_locked("foo")
assert not lockd_client.is_locked("bar")
# Lock
assert lockd_client.lock("foo")
assert lockd_client.is_locked("foo")
# Dup lock should fail
assert not lockd_client.lock("foo")
assert lockd_client.is_locked("foo")
# Lock another entry should work
assert lockd_client.lock("bar")
assert lockd_client.is_locked("bar")
# Unlock entries
assert lockd_client.unlock("foo")
assert lockd_client.unlock("bar")
assert not lockd_client.is_locked("foo")
assert not lockd_client.is_locked("bar")
# Dup unlock should fail
assert not lockd_client.unlock("bar")
assert not lockd_client.is_locked("bar")
|
Add is_locked calls to integration test
|
Add is_locked calls to integration test
|
Python
|
mit
|
divtxt/lockd,divtxt/lockd
|
#!/usr/bin/python
from lockd import LockdClient
lockd_client = LockdClient()
# Lock
assert lockd_client.lock("foo")
# Dup lock should fail
assert not lockd_client.lock("foo")
# Lock another entry should work
assert lockd_client.lock("bar")
# Unlock entries
assert lockd_client.unlock("foo")
assert lockd_client.unlock("bar")
# Dup unlock should fail
assert not lockd_client.unlock("bar")
Add is_locked calls to integration test
|
#!/usr/bin/python
from lockd import LockdClient
lockd_client = LockdClient()
# Initial state
assert not lockd_client.is_locked("foo")
assert not lockd_client.is_locked("bar")
# Lock
assert lockd_client.lock("foo")
assert lockd_client.is_locked("foo")
# Dup lock should fail
assert not lockd_client.lock("foo")
assert lockd_client.is_locked("foo")
# Lock another entry should work
assert lockd_client.lock("bar")
assert lockd_client.is_locked("bar")
# Unlock entries
assert lockd_client.unlock("foo")
assert lockd_client.unlock("bar")
assert not lockd_client.is_locked("foo")
assert not lockd_client.is_locked("bar")
# Dup unlock should fail
assert not lockd_client.unlock("bar")
assert not lockd_client.is_locked("bar")
|
<commit_before>#!/usr/bin/python
from lockd import LockdClient
lockd_client = LockdClient()
# Lock
assert lockd_client.lock("foo")
# Dup lock should fail
assert not lockd_client.lock("foo")
# Lock another entry should work
assert lockd_client.lock("bar")
# Unlock entries
assert lockd_client.unlock("foo")
assert lockd_client.unlock("bar")
# Dup unlock should fail
assert not lockd_client.unlock("bar")
<commit_msg>Add is_locked calls to integration test<commit_after>
|
#!/usr/bin/python
from lockd import LockdClient
lockd_client = LockdClient()
# Initial state
assert not lockd_client.is_locked("foo")
assert not lockd_client.is_locked("bar")
# Lock
assert lockd_client.lock("foo")
assert lockd_client.is_locked("foo")
# Dup lock should fail
assert not lockd_client.lock("foo")
assert lockd_client.is_locked("foo")
# Lock another entry should work
assert lockd_client.lock("bar")
assert lockd_client.is_locked("bar")
# Unlock entries
assert lockd_client.unlock("foo")
assert lockd_client.unlock("bar")
assert not lockd_client.is_locked("foo")
assert not lockd_client.is_locked("bar")
# Dup unlock should fail
assert not lockd_client.unlock("bar")
assert not lockd_client.is_locked("bar")
|
#!/usr/bin/python
from lockd import LockdClient
lockd_client = LockdClient()
# Lock
assert lockd_client.lock("foo")
# Dup lock should fail
assert not lockd_client.lock("foo")
# Lock another entry should work
assert lockd_client.lock("bar")
# Unlock entries
assert lockd_client.unlock("foo")
assert lockd_client.unlock("bar")
# Dup unlock should fail
assert not lockd_client.unlock("bar")
Add is_locked calls to integration test#!/usr/bin/python
from lockd import LockdClient
lockd_client = LockdClient()
# Initial state
assert not lockd_client.is_locked("foo")
assert not lockd_client.is_locked("bar")
# Lock
assert lockd_client.lock("foo")
assert lockd_client.is_locked("foo")
# Dup lock should fail
assert not lockd_client.lock("foo")
assert lockd_client.is_locked("foo")
# Lock another entry should work
assert lockd_client.lock("bar")
assert lockd_client.is_locked("bar")
# Unlock entries
assert lockd_client.unlock("foo")
assert lockd_client.unlock("bar")
assert not lockd_client.is_locked("foo")
assert not lockd_client.is_locked("bar")
# Dup unlock should fail
assert not lockd_client.unlock("bar")
assert not lockd_client.is_locked("bar")
|
<commit_before>#!/usr/bin/python
from lockd import LockdClient
lockd_client = LockdClient()
# Lock
assert lockd_client.lock("foo")
# Dup lock should fail
assert not lockd_client.lock("foo")
# Lock another entry should work
assert lockd_client.lock("bar")
# Unlock entries
assert lockd_client.unlock("foo")
assert lockd_client.unlock("bar")
# Dup unlock should fail
assert not lockd_client.unlock("bar")
<commit_msg>Add is_locked calls to integration test<commit_after>#!/usr/bin/python
from lockd import LockdClient
lockd_client = LockdClient()
# Initial state
assert not lockd_client.is_locked("foo")
assert not lockd_client.is_locked("bar")
# Lock
assert lockd_client.lock("foo")
assert lockd_client.is_locked("foo")
# Dup lock should fail
assert not lockd_client.lock("foo")
assert lockd_client.is_locked("foo")
# Lock another entry should work
assert lockd_client.lock("bar")
assert lockd_client.is_locked("bar")
# Unlock entries
assert lockd_client.unlock("foo")
assert lockd_client.unlock("bar")
assert not lockd_client.is_locked("foo")
assert not lockd_client.is_locked("bar")
# Dup unlock should fail
assert not lockd_client.unlock("bar")
assert not lockd_client.is_locked("bar")
|
5493848ddca54a57a6dceb781bd417a9232cf1c4
|
tests/test_profile.py
|
tests/test_profile.py
|
"""Test the profile listing and creation
Copyright (c) 2015 Francesco Montesano
MIT Licence
"""
import pytest
import dodocs
# fixtures
@pytest.fixture
def profile_list():
"""Execute the command profile list"""
command_line = 'profile list'
dodocs.main(command_line.split())
# profile listing
def test_list_no_exist(tmp_homedir, profile_list, caplog):
"""Test that listing without a dodocs directory fails"""
for record in caplog.records():
assert record.levelname == "CRITICAL"
assert "No dodocs directory found" in caplog.text()
@pytest.mark.skipif("True")
def test_list():
"List profiles"
command_line = 'profile list'
dodocs.main(command_line.split())
@pytest.mark.skipif("True")
def test_create():
"List profiles"
command_line = 'profile create'
# dodocs.main(command_line.split())
|
"""Test the profile listing and creation
Copyright (c) 2015 Francesco Montesano
MIT Licence
"""
import pytest
import dodocs
# fixtures
@pytest.fixture
def profile_list():
"""Execute the command profile list"""
command_line = 'profile list'
dodocs.main(command_line.split())
@pytest.fixture
def profile_rm():
"""Execute the command profile remove"""
command_line = 'profile remove dodocs_pytest'
dodocs.main(command_line.split())
@pytest.fixture
def profile_edit():
"""Execute the command profile edit"""
command_line = 'profile edit dodocs_pytest'
dodocs.main(command_line.split())
# profile listing
def test_list_no_exist(tmp_homedir, profile_list, caplog):
"""Test that listing without a dodocs directory fails"""
record = caplog.records()[0]
assert record.levelname == "CRITICAL"
assert "No dodocs directory found" in record.message
# profile removal
def test_rm_no_exists(tmp_homedir, profile_rm, caplog):
"""Test that removing without a dodocs directory print a warning as first
message"""
record = caplog.records()[0]
assert record.levelname == "WARNING"
assert "Profile does not exist" in record.message
# profile editing
def test_edit_no_exists(tmp_homedir, profile_edit, caplog):
"""Test that removing without a dodocs directory print a warning as first
message"""
record = caplog.records()[0]
assert record.levelname == "CRITICAL"
assert "No dodocs directory found" in record.message
@pytest.mark.skipif("True")
def test_list():
"List profiles"
command_line = 'profile list'
dodocs.main(command_line.split())
@pytest.mark.skipif("True")
def test_create():
"List profiles"
command_line = 'profile create'
# dodocs.main(command_line.split())
|
Add remove and edit on non existing dodocs directories
|
Add remove and edit on non existing dodocs directories
|
Python
|
mit
|
montefra/dodocs
|
"""Test the profile listing and creation
Copyright (c) 2015 Francesco Montesano
MIT Licence
"""
import pytest
import dodocs
# fixtures
@pytest.fixture
def profile_list():
"""Execute the command profile list"""
command_line = 'profile list'
dodocs.main(command_line.split())
# profile listing
def test_list_no_exist(tmp_homedir, profile_list, caplog):
"""Test that listing without a dodocs directory fails"""
for record in caplog.records():
assert record.levelname == "CRITICAL"
assert "No dodocs directory found" in caplog.text()
@pytest.mark.skipif("True")
def test_list():
"List profiles"
command_line = 'profile list'
dodocs.main(command_line.split())
@pytest.mark.skipif("True")
def test_create():
"List profiles"
command_line = 'profile create'
# dodocs.main(command_line.split())
Add remove and edit on non existing dodocs directories
|
"""Test the profile listing and creation
Copyright (c) 2015 Francesco Montesano
MIT Licence
"""
import pytest
import dodocs
# fixtures
@pytest.fixture
def profile_list():
"""Execute the command profile list"""
command_line = 'profile list'
dodocs.main(command_line.split())
@pytest.fixture
def profile_rm():
"""Execute the command profile remove"""
command_line = 'profile remove dodocs_pytest'
dodocs.main(command_line.split())
@pytest.fixture
def profile_edit():
"""Execute the command profile edit"""
command_line = 'profile edit dodocs_pytest'
dodocs.main(command_line.split())
# profile listing
def test_list_no_exist(tmp_homedir, profile_list, caplog):
"""Test that listing without a dodocs directory fails"""
record = caplog.records()[0]
assert record.levelname == "CRITICAL"
assert "No dodocs directory found" in record.message
# profile removal
def test_rm_no_exists(tmp_homedir, profile_rm, caplog):
"""Test that removing without a dodocs directory print a warning as first
message"""
record = caplog.records()[0]
assert record.levelname == "WARNING"
assert "Profile does not exist" in record.message
# profile editing
def test_edit_no_exists(tmp_homedir, profile_edit, caplog):
"""Test that removing without a dodocs directory print a warning as first
message"""
record = caplog.records()[0]
assert record.levelname == "CRITICAL"
assert "No dodocs directory found" in record.message
@pytest.mark.skipif("True")
def test_list():
"List profiles"
command_line = 'profile list'
dodocs.main(command_line.split())
@pytest.mark.skipif("True")
def test_create():
"List profiles"
command_line = 'profile create'
# dodocs.main(command_line.split())
|
<commit_before>"""Test the profile listing and creation
Copyright (c) 2015 Francesco Montesano
MIT Licence
"""
import pytest
import dodocs
# fixtures
@pytest.fixture
def profile_list():
"""Execute the command profile list"""
command_line = 'profile list'
dodocs.main(command_line.split())
# profile listing
def test_list_no_exist(tmp_homedir, profile_list, caplog):
"""Test that listing without a dodocs directory fails"""
for record in caplog.records():
assert record.levelname == "CRITICAL"
assert "No dodocs directory found" in caplog.text()
@pytest.mark.skipif("True")
def test_list():
"List profiles"
command_line = 'profile list'
dodocs.main(command_line.split())
@pytest.mark.skipif("True")
def test_create():
"List profiles"
command_line = 'profile create'
# dodocs.main(command_line.split())
<commit_msg>Add remove and edit on non existing dodocs directories<commit_after>
|
"""Test the profile listing and creation
Copyright (c) 2015 Francesco Montesano
MIT Licence
"""
import pytest
import dodocs
# fixtures
@pytest.fixture
def profile_list():
"""Execute the command profile list"""
command_line = 'profile list'
dodocs.main(command_line.split())
@pytest.fixture
def profile_rm():
"""Execute the command profile remove"""
command_line = 'profile remove dodocs_pytest'
dodocs.main(command_line.split())
@pytest.fixture
def profile_edit():
"""Execute the command profile edit"""
command_line = 'profile edit dodocs_pytest'
dodocs.main(command_line.split())
# profile listing
def test_list_no_exist(tmp_homedir, profile_list, caplog):
"""Test that listing without a dodocs directory fails"""
record = caplog.records()[0]
assert record.levelname == "CRITICAL"
assert "No dodocs directory found" in record.message
# profile removal
def test_rm_no_exists(tmp_homedir, profile_rm, caplog):
"""Test that removing without a dodocs directory print a warning as first
message"""
record = caplog.records()[0]
assert record.levelname == "WARNING"
assert "Profile does not exist" in record.message
# profile editing
def test_edit_no_exists(tmp_homedir, profile_edit, caplog):
"""Test that removing without a dodocs directory print a warning as first
message"""
record = caplog.records()[0]
assert record.levelname == "CRITICAL"
assert "No dodocs directory found" in record.message
@pytest.mark.skipif("True")
def test_list():
"List profiles"
command_line = 'profile list'
dodocs.main(command_line.split())
@pytest.mark.skipif("True")
def test_create():
"List profiles"
command_line = 'profile create'
# dodocs.main(command_line.split())
|
"""Test the profile listing and creation
Copyright (c) 2015 Francesco Montesano
MIT Licence
"""
import pytest
import dodocs
# fixtures
@pytest.fixture
def profile_list():
"""Execute the command profile list"""
command_line = 'profile list'
dodocs.main(command_line.split())
# profile listing
def test_list_no_exist(tmp_homedir, profile_list, caplog):
"""Test that listing without a dodocs directory fails"""
for record in caplog.records():
assert record.levelname == "CRITICAL"
assert "No dodocs directory found" in caplog.text()
@pytest.mark.skipif("True")
def test_list():
"List profiles"
command_line = 'profile list'
dodocs.main(command_line.split())
@pytest.mark.skipif("True")
def test_create():
"List profiles"
command_line = 'profile create'
# dodocs.main(command_line.split())
Add remove and edit on non existing dodocs directories"""Test the profile listing and creation
Copyright (c) 2015 Francesco Montesano
MIT Licence
"""
import pytest
import dodocs
# fixtures
@pytest.fixture
def profile_list():
"""Execute the command profile list"""
command_line = 'profile list'
dodocs.main(command_line.split())
@pytest.fixture
def profile_rm():
"""Execute the command profile remove"""
command_line = 'profile remove dodocs_pytest'
dodocs.main(command_line.split())
@pytest.fixture
def profile_edit():
"""Execute the command profile edit"""
command_line = 'profile edit dodocs_pytest'
dodocs.main(command_line.split())
# profile listing
def test_list_no_exist(tmp_homedir, profile_list, caplog):
"""Test that listing without a dodocs directory fails"""
record = caplog.records()[0]
assert record.levelname == "CRITICAL"
assert "No dodocs directory found" in record.message
# profile removal
def test_rm_no_exists(tmp_homedir, profile_rm, caplog):
"""Test that removing without a dodocs directory print a warning as first
message"""
record = caplog.records()[0]
assert record.levelname == "WARNING"
assert "Profile does not exist" in record.message
# profile editing
def test_edit_no_exists(tmp_homedir, profile_edit, caplog):
"""Test that removing without a dodocs directory print a warning as first
message"""
record = caplog.records()[0]
assert record.levelname == "CRITICAL"
assert "No dodocs directory found" in record.message
@pytest.mark.skipif("True")
def test_list():
"List profiles"
command_line = 'profile list'
dodocs.main(command_line.split())
@pytest.mark.skipif("True")
def test_create():
"List profiles"
command_line = 'profile create'
# dodocs.main(command_line.split())
|
<commit_before>"""Test the profile listing and creation
Copyright (c) 2015 Francesco Montesano
MIT Licence
"""
import pytest
import dodocs
# fixtures
@pytest.fixture
def profile_list():
"""Execute the command profile list"""
command_line = 'profile list'
dodocs.main(command_line.split())
# profile listing
def test_list_no_exist(tmp_homedir, profile_list, caplog):
"""Test that listing without a dodocs directory fails"""
for record in caplog.records():
assert record.levelname == "CRITICAL"
assert "No dodocs directory found" in caplog.text()
@pytest.mark.skipif("True")
def test_list():
"List profiles"
command_line = 'profile list'
dodocs.main(command_line.split())
@pytest.mark.skipif("True")
def test_create():
"List profiles"
command_line = 'profile create'
# dodocs.main(command_line.split())
<commit_msg>Add remove and edit on non existing dodocs directories<commit_after>"""Test the profile listing and creation
Copyright (c) 2015 Francesco Montesano
MIT Licence
"""
import pytest
import dodocs
# fixtures
@pytest.fixture
def profile_list():
"""Execute the command profile list"""
command_line = 'profile list'
dodocs.main(command_line.split())
@pytest.fixture
def profile_rm():
"""Execute the command profile remove"""
command_line = 'profile remove dodocs_pytest'
dodocs.main(command_line.split())
@pytest.fixture
def profile_edit():
"""Execute the command profile edit"""
command_line = 'profile edit dodocs_pytest'
dodocs.main(command_line.split())
# profile listing
def test_list_no_exist(tmp_homedir, profile_list, caplog):
"""Test that listing without a dodocs directory fails"""
record = caplog.records()[0]
assert record.levelname == "CRITICAL"
assert "No dodocs directory found" in record.message
# profile removal
def test_rm_no_exists(tmp_homedir, profile_rm, caplog):
"""Test that removing without a dodocs directory print a warning as first
message"""
record = caplog.records()[0]
assert record.levelname == "WARNING"
assert "Profile does not exist" in record.message
# profile editing
def test_edit_no_exists(tmp_homedir, profile_edit, caplog):
"""Test that removing without a dodocs directory print a warning as first
message"""
record = caplog.records()[0]
assert record.levelname == "CRITICAL"
assert "No dodocs directory found" in record.message
@pytest.mark.skipif("True")
def test_list():
"List profiles"
command_line = 'profile list'
dodocs.main(command_line.split())
@pytest.mark.skipif("True")
def test_create():
"List profiles"
command_line = 'profile create'
# dodocs.main(command_line.split())
|
0d8283a066fd0bdfe278a5516a299971f7492cea
|
auth/src/db/crypto.py
|
auth/src/db/crypto.py
|
from passlib.context import CryptContext
from config import HASH_ROUNDS
crypt_context = CryptContext(
schemes=["pbkdf2_sha512"],
all__vary_rounds=0.1,
pbkdf2_sha512__default_rounds=HASH_ROUNDS
)
encrypt = crypt_context.encrypt
verify = crypt_context.verify
|
from passlib.context import CryptContext
from config import HASH_ROUNDS, HASH_ALGORITHM
crypt_context = CryptContext(
schemes=[HASH_ALGORITHM],
all__vary_rounds=0.1,
pbkdf2_sha512__default_rounds=HASH_ROUNDS
)
encrypt = crypt_context.encrypt
verify = crypt_context.verify
|
Make algorithm configurable, for real this time
|
Make algorithm configurable, for real this time
|
Python
|
mit
|
jackfirth/docker-auth
|
from passlib.context import CryptContext
from config import HASH_ROUNDS
crypt_context = CryptContext(
schemes=["pbkdf2_sha512"],
all__vary_rounds=0.1,
pbkdf2_sha512__default_rounds=HASH_ROUNDS
)
encrypt = crypt_context.encrypt
verify = crypt_context.verify
Make algorithm configurable, for real this time
|
from passlib.context import CryptContext
from config import HASH_ROUNDS, HASH_ALGORITHM
crypt_context = CryptContext(
schemes=[HASH_ALGORITHM],
all__vary_rounds=0.1,
pbkdf2_sha512__default_rounds=HASH_ROUNDS
)
encrypt = crypt_context.encrypt
verify = crypt_context.verify
|
<commit_before>from passlib.context import CryptContext
from config import HASH_ROUNDS
crypt_context = CryptContext(
schemes=["pbkdf2_sha512"],
all__vary_rounds=0.1,
pbkdf2_sha512__default_rounds=HASH_ROUNDS
)
encrypt = crypt_context.encrypt
verify = crypt_context.verify
<commit_msg>Make algorithm configurable, for real this time<commit_after>
|
from passlib.context import CryptContext
from config import HASH_ROUNDS, HASH_ALGORITHM
crypt_context = CryptContext(
schemes=[HASH_ALGORITHM],
all__vary_rounds=0.1,
pbkdf2_sha512__default_rounds=HASH_ROUNDS
)
encrypt = crypt_context.encrypt
verify = crypt_context.verify
|
from passlib.context import CryptContext
from config import HASH_ROUNDS
crypt_context = CryptContext(
schemes=["pbkdf2_sha512"],
all__vary_rounds=0.1,
pbkdf2_sha512__default_rounds=HASH_ROUNDS
)
encrypt = crypt_context.encrypt
verify = crypt_context.verify
Make algorithm configurable, for real this timefrom passlib.context import CryptContext
from config import HASH_ROUNDS, HASH_ALGORITHM
crypt_context = CryptContext(
schemes=[HASH_ALGORITHM],
all__vary_rounds=0.1,
pbkdf2_sha512__default_rounds=HASH_ROUNDS
)
encrypt = crypt_context.encrypt
verify = crypt_context.verify
|
<commit_before>from passlib.context import CryptContext
from config import HASH_ROUNDS
crypt_context = CryptContext(
schemes=["pbkdf2_sha512"],
all__vary_rounds=0.1,
pbkdf2_sha512__default_rounds=HASH_ROUNDS
)
encrypt = crypt_context.encrypt
verify = crypt_context.verify
<commit_msg>Make algorithm configurable, for real this time<commit_after>from passlib.context import CryptContext
from config import HASH_ROUNDS, HASH_ALGORITHM
crypt_context = CryptContext(
schemes=[HASH_ALGORITHM],
all__vary_rounds=0.1,
pbkdf2_sha512__default_rounds=HASH_ROUNDS
)
encrypt = crypt_context.encrypt
verify = crypt_context.verify
|
fce10cb35be29ba265f2ed189198703c718ad479
|
quantecon/__init__.py
|
quantecon/__init__.py
|
"""
Import the main names to top level.
"""
from . import models as models
from .compute_fp import compute_fixed_point
from .discrete_rv import DiscreteRV
from .ecdf import ECDF
from .estspec import smooth, periodogram, ar_periodogram
from .graph_tools import DiGraph
from .gridtools import cartesian, mlinspace
from .gth_solve import gth_solve
from .kalman import Kalman
from .lae import LAE
from .arma import ARMA
from .lqcontrol import LQ
from .lqnash import nnash
from .lss import LinearStateSpace
from .matrix_eqn import solve_discrete_lyapunov, solve_discrete_riccati
from .mc_tools import MarkovChain, mc_compute_stationary, mc_sample_path
from .quadsums import var_quadratic_sum, m_quadratic_sum
from .markov import random_markov_chain, random_stochastic_matrix
from .rank_nullspace import rank_est, nullspace
from .robustlq import RBLQ
from .tauchen import approx_markov
from . import quad as quad
from .util import searchsorted, random_probvec, random_sample_without_replacement
#-Module Imports-#
import util.random as random
#Add Version Attribute
from .version import version as __version__
|
"""
Import the main names to top level.
"""
from . import models as models
from .compute_fp import compute_fixed_point
from .discrete_rv import DiscreteRV
from .ecdf import ECDF
from .estspec import smooth, periodogram, ar_periodogram
from .graph_tools import DiGraph
from .gridtools import cartesian, mlinspace
from .gth_solve import gth_solve
from .kalman import Kalman
from .lae import LAE
from .arma import ARMA
from .lqcontrol import LQ
from .lqnash import nnash
from .lss import LinearStateSpace
from .matrix_eqn import solve_discrete_lyapunov, solve_discrete_riccati
from .mc_tools import MarkovChain, mc_compute_stationary, mc_sample_path
from .quadsums import var_quadratic_sum, m_quadratic_sum
from .markov import random_markov_chain, random_stochastic_matrix
from .rank_nullspace import rank_est, nullspace
from .robustlq import RBLQ
from .tauchen import approx_markov
from . import quad as quad
from .util import searchsorted, random_probvec, random_sample_without_replacement
#-Module Imports-#
from .util import random
#Add Version Attribute
from .version import version as __version__
|
Fix for python 3 relative import statement
|
Fix for python 3 relative import statement
|
Python
|
bsd-3-clause
|
andybrnr/QuantEcon.py,oyamad/QuantEcon.py,agutieda/QuantEcon.py,jviada/QuantEcon.py,QuantEcon/QuantEcon.py,QuantEcon/QuantEcon.py,gxxjjj/QuantEcon.py,agutieda/QuantEcon.py,gxxjjj/QuantEcon.py,oyamad/QuantEcon.py,jviada/QuantEcon.py,andybrnr/QuantEcon.py
|
"""
Import the main names to top level.
"""
from . import models as models
from .compute_fp import compute_fixed_point
from .discrete_rv import DiscreteRV
from .ecdf import ECDF
from .estspec import smooth, periodogram, ar_periodogram
from .graph_tools import DiGraph
from .gridtools import cartesian, mlinspace
from .gth_solve import gth_solve
from .kalman import Kalman
from .lae import LAE
from .arma import ARMA
from .lqcontrol import LQ
from .lqnash import nnash
from .lss import LinearStateSpace
from .matrix_eqn import solve_discrete_lyapunov, solve_discrete_riccati
from .mc_tools import MarkovChain, mc_compute_stationary, mc_sample_path
from .quadsums import var_quadratic_sum, m_quadratic_sum
from .markov import random_markov_chain, random_stochastic_matrix
from .rank_nullspace import rank_est, nullspace
from .robustlq import RBLQ
from .tauchen import approx_markov
from . import quad as quad
from .util import searchsorted, random_probvec, random_sample_without_replacement
#-Module Imports-#
import util.random as random
#Add Version Attribute
from .version import version as __version__
Fix for python 3 relative import statement
|
"""
Import the main names to top level.
"""
from . import models as models
from .compute_fp import compute_fixed_point
from .discrete_rv import DiscreteRV
from .ecdf import ECDF
from .estspec import smooth, periodogram, ar_periodogram
from .graph_tools import DiGraph
from .gridtools import cartesian, mlinspace
from .gth_solve import gth_solve
from .kalman import Kalman
from .lae import LAE
from .arma import ARMA
from .lqcontrol import LQ
from .lqnash import nnash
from .lss import LinearStateSpace
from .matrix_eqn import solve_discrete_lyapunov, solve_discrete_riccati
from .mc_tools import MarkovChain, mc_compute_stationary, mc_sample_path
from .quadsums import var_quadratic_sum, m_quadratic_sum
from .markov import random_markov_chain, random_stochastic_matrix
from .rank_nullspace import rank_est, nullspace
from .robustlq import RBLQ
from .tauchen import approx_markov
from . import quad as quad
from .util import searchsorted, random_probvec, random_sample_without_replacement
#-Module Imports-#
from .util import random
#Add Version Attribute
from .version import version as __version__
|
<commit_before>"""
Import the main names to top level.
"""
from . import models as models
from .compute_fp import compute_fixed_point
from .discrete_rv import DiscreteRV
from .ecdf import ECDF
from .estspec import smooth, periodogram, ar_periodogram
from .graph_tools import DiGraph
from .gridtools import cartesian, mlinspace
from .gth_solve import gth_solve
from .kalman import Kalman
from .lae import LAE
from .arma import ARMA
from .lqcontrol import LQ
from .lqnash import nnash
from .lss import LinearStateSpace
from .matrix_eqn import solve_discrete_lyapunov, solve_discrete_riccati
from .mc_tools import MarkovChain, mc_compute_stationary, mc_sample_path
from .quadsums import var_quadratic_sum, m_quadratic_sum
from .markov import random_markov_chain, random_stochastic_matrix
from .rank_nullspace import rank_est, nullspace
from .robustlq import RBLQ
from .tauchen import approx_markov
from . import quad as quad
from .util import searchsorted, random_probvec, random_sample_without_replacement
#-Module Imports-#
import util.random as random
#Add Version Attribute
from .version import version as __version__
<commit_msg>Fix for python 3 relative import statement<commit_after>
|
"""
Import the main names to top level.
"""
from . import models as models
from .compute_fp import compute_fixed_point
from .discrete_rv import DiscreteRV
from .ecdf import ECDF
from .estspec import smooth, periodogram, ar_periodogram
from .graph_tools import DiGraph
from .gridtools import cartesian, mlinspace
from .gth_solve import gth_solve
from .kalman import Kalman
from .lae import LAE
from .arma import ARMA
from .lqcontrol import LQ
from .lqnash import nnash
from .lss import LinearStateSpace
from .matrix_eqn import solve_discrete_lyapunov, solve_discrete_riccati
from .mc_tools import MarkovChain, mc_compute_stationary, mc_sample_path
from .quadsums import var_quadratic_sum, m_quadratic_sum
from .markov import random_markov_chain, random_stochastic_matrix
from .rank_nullspace import rank_est, nullspace
from .robustlq import RBLQ
from .tauchen import approx_markov
from . import quad as quad
from .util import searchsorted, random_probvec, random_sample_without_replacement
#-Module Imports-#
from .util import random
#Add Version Attribute
from .version import version as __version__
|
"""
Import the main names to top level.
"""
from . import models as models
from .compute_fp import compute_fixed_point
from .discrete_rv import DiscreteRV
from .ecdf import ECDF
from .estspec import smooth, periodogram, ar_periodogram
from .graph_tools import DiGraph
from .gridtools import cartesian, mlinspace
from .gth_solve import gth_solve
from .kalman import Kalman
from .lae import LAE
from .arma import ARMA
from .lqcontrol import LQ
from .lqnash import nnash
from .lss import LinearStateSpace
from .matrix_eqn import solve_discrete_lyapunov, solve_discrete_riccati
from .mc_tools import MarkovChain, mc_compute_stationary, mc_sample_path
from .quadsums import var_quadratic_sum, m_quadratic_sum
from .markov import random_markov_chain, random_stochastic_matrix
from .rank_nullspace import rank_est, nullspace
from .robustlq import RBLQ
from .tauchen import approx_markov
from . import quad as quad
from .util import searchsorted, random_probvec, random_sample_without_replacement
#-Module Imports-#
import util.random as random
#Add Version Attribute
from .version import version as __version__
Fix for python 3 relative import statement"""
Import the main names to top level.
"""
from . import models as models
from .compute_fp import compute_fixed_point
from .discrete_rv import DiscreteRV
from .ecdf import ECDF
from .estspec import smooth, periodogram, ar_periodogram
from .graph_tools import DiGraph
from .gridtools import cartesian, mlinspace
from .gth_solve import gth_solve
from .kalman import Kalman
from .lae import LAE
from .arma import ARMA
from .lqcontrol import LQ
from .lqnash import nnash
from .lss import LinearStateSpace
from .matrix_eqn import solve_discrete_lyapunov, solve_discrete_riccati
from .mc_tools import MarkovChain, mc_compute_stationary, mc_sample_path
from .quadsums import var_quadratic_sum, m_quadratic_sum
from .markov import random_markov_chain, random_stochastic_matrix
from .rank_nullspace import rank_est, nullspace
from .robustlq import RBLQ
from .tauchen import approx_markov
from . import quad as quad
from .util import searchsorted, random_probvec, random_sample_without_replacement
#-Module Imports-#
from .util import random
#Add Version Attribute
from .version import version as __version__
|
<commit_before>"""
Import the main names to top level.
"""
from . import models as models
from .compute_fp import compute_fixed_point
from .discrete_rv import DiscreteRV
from .ecdf import ECDF
from .estspec import smooth, periodogram, ar_periodogram
from .graph_tools import DiGraph
from .gridtools import cartesian, mlinspace
from .gth_solve import gth_solve
from .kalman import Kalman
from .lae import LAE
from .arma import ARMA
from .lqcontrol import LQ
from .lqnash import nnash
from .lss import LinearStateSpace
from .matrix_eqn import solve_discrete_lyapunov, solve_discrete_riccati
from .mc_tools import MarkovChain, mc_compute_stationary, mc_sample_path
from .quadsums import var_quadratic_sum, m_quadratic_sum
from .markov import random_markov_chain, random_stochastic_matrix
from .rank_nullspace import rank_est, nullspace
from .robustlq import RBLQ
from .tauchen import approx_markov
from . import quad as quad
from .util import searchsorted, random_probvec, random_sample_without_replacement
#-Module Imports-#
import util.random as random
#Add Version Attribute
from .version import version as __version__
<commit_msg>Fix for python 3 relative import statement<commit_after>"""
Import the main names to top level.
"""
from . import models as models
from .compute_fp import compute_fixed_point
from .discrete_rv import DiscreteRV
from .ecdf import ECDF
from .estspec import smooth, periodogram, ar_periodogram
from .graph_tools import DiGraph
from .gridtools import cartesian, mlinspace
from .gth_solve import gth_solve
from .kalman import Kalman
from .lae import LAE
from .arma import ARMA
from .lqcontrol import LQ
from .lqnash import nnash
from .lss import LinearStateSpace
from .matrix_eqn import solve_discrete_lyapunov, solve_discrete_riccati
from .mc_tools import MarkovChain, mc_compute_stationary, mc_sample_path
from .quadsums import var_quadratic_sum, m_quadratic_sum
from .markov import random_markov_chain, random_stochastic_matrix
from .rank_nullspace import rank_est, nullspace
from .robustlq import RBLQ
from .tauchen import approx_markov
from . import quad as quad
from .util import searchsorted, random_probvec, random_sample_without_replacement
#-Module Imports-#
from .util import random
#Add Version Attribute
from .version import version as __version__
|
e80169bf4ec40609f768f8c84519824b8a209e44
|
fedoracommunity/mokshaapps/updates/controllers/root.py
|
fedoracommunity/mokshaapps/updates/controllers/root.py
|
from moksha.lib.base import Controller
from moksha.api.widgets import ContextAwareWidget, Grid
from tg import expose, tmpl_context
class UpdatesGrid(Grid, ContextAwareWidget):
template='mako:fedoracommunity.mokshaapps.updates.templates.table_widget'
updates_grid = UpdatesGrid('updates_table')
class RootController(Controller):
# do something for index, this should be the container stuff
@expose()
def index(self):
return {}
@expose('mako:fedoracommunity.mokshaapps.updates.templates.table')
def table(self, uid="", rows_per_page=5, filters={}):
''' table handler
This handler displays the main table by itself
'''
if isinstance(rows_per_page, basestring):
rows_per_page = int(rows_per_page)
tmpl_context.widget = updates_grid
return {'filters': filters, 'uid': uid, 'rows_per_page': rows_per_page}
|
from tg import expose, tmpl_context, validate
from formencode import validators
from moksha.lib.base import Controller
from moksha.api.widgets import ContextAwareWidget, Grid
class UpdatesGrid(Grid, ContextAwareWidget):
template='mako:fedoracommunity.mokshaapps.updates.templates.table_widget'
updates_grid = UpdatesGrid('updates_table')
class RootController(Controller):
# do something for index, this should be the container stuff
@expose()
def index(self):
return {}
@expose('mako:fedoracommunity.mokshaapps.updates.templates.table')
@validate(validators={'rows_per_page': validators.Int()})
def table(self, uid="", rows_per_page=5, filters={}):
''' table handler
This handler displays the main table by itself
'''
tmpl_context.widget = updates_grid
return {'filters': filters, 'uid': uid, 'rows_per_page': rows_per_page}
|
Use formencode validators in our updates app, instead of doing hacks
|
Use formencode validators in our updates app, instead of doing hacks
|
Python
|
agpl-3.0
|
fedora-infra/fedora-packages,Fale/fedora-packages,Fale/fedora-packages,Fale/fedora-packages,fedora-infra/fedora-packages,fedora-infra/fedora-packages,fedora-infra/fedora-packages
|
from moksha.lib.base import Controller
from moksha.api.widgets import ContextAwareWidget, Grid
from tg import expose, tmpl_context
class UpdatesGrid(Grid, ContextAwareWidget):
template='mako:fedoracommunity.mokshaapps.updates.templates.table_widget'
updates_grid = UpdatesGrid('updates_table')
class RootController(Controller):
# do something for index, this should be the container stuff
@expose()
def index(self):
return {}
@expose('mako:fedoracommunity.mokshaapps.updates.templates.table')
def table(self, uid="", rows_per_page=5, filters={}):
''' table handler
This handler displays the main table by itself
'''
if isinstance(rows_per_page, basestring):
rows_per_page = int(rows_per_page)
tmpl_context.widget = updates_grid
return {'filters': filters, 'uid': uid, 'rows_per_page': rows_per_page}Use formencode validators in our updates app, instead of doing hacks
|
from tg import expose, tmpl_context, validate
from formencode import validators
from moksha.lib.base import Controller
from moksha.api.widgets import ContextAwareWidget, Grid
class UpdatesGrid(Grid, ContextAwareWidget):
template='mako:fedoracommunity.mokshaapps.updates.templates.table_widget'
updates_grid = UpdatesGrid('updates_table')
class RootController(Controller):
# do something for index, this should be the container stuff
@expose()
def index(self):
return {}
@expose('mako:fedoracommunity.mokshaapps.updates.templates.table')
@validate(validators={'rows_per_page': validators.Int()})
def table(self, uid="", rows_per_page=5, filters={}):
''' table handler
This handler displays the main table by itself
'''
tmpl_context.widget = updates_grid
return {'filters': filters, 'uid': uid, 'rows_per_page': rows_per_page}
|
<commit_before>from moksha.lib.base import Controller
from moksha.api.widgets import ContextAwareWidget, Grid
from tg import expose, tmpl_context
class UpdatesGrid(Grid, ContextAwareWidget):
template='mako:fedoracommunity.mokshaapps.updates.templates.table_widget'
updates_grid = UpdatesGrid('updates_table')
class RootController(Controller):
# do something for index, this should be the container stuff
@expose()
def index(self):
return {}
@expose('mako:fedoracommunity.mokshaapps.updates.templates.table')
def table(self, uid="", rows_per_page=5, filters={}):
''' table handler
This handler displays the main table by itself
'''
if isinstance(rows_per_page, basestring):
rows_per_page = int(rows_per_page)
tmpl_context.widget = updates_grid
return {'filters': filters, 'uid': uid, 'rows_per_page': rows_per_page}<commit_msg>Use formencode validators in our updates app, instead of doing hacks<commit_after>
|
from tg import expose, tmpl_context, validate
from formencode import validators
from moksha.lib.base import Controller
from moksha.api.widgets import ContextAwareWidget, Grid
class UpdatesGrid(Grid, ContextAwareWidget):
template='mako:fedoracommunity.mokshaapps.updates.templates.table_widget'
updates_grid = UpdatesGrid('updates_table')
class RootController(Controller):
# do something for index, this should be the container stuff
@expose()
def index(self):
return {}
@expose('mako:fedoracommunity.mokshaapps.updates.templates.table')
@validate(validators={'rows_per_page': validators.Int()})
def table(self, uid="", rows_per_page=5, filters={}):
''' table handler
This handler displays the main table by itself
'''
tmpl_context.widget = updates_grid
return {'filters': filters, 'uid': uid, 'rows_per_page': rows_per_page}
|
from moksha.lib.base import Controller
from moksha.api.widgets import ContextAwareWidget, Grid
from tg import expose, tmpl_context
class UpdatesGrid(Grid, ContextAwareWidget):
template='mako:fedoracommunity.mokshaapps.updates.templates.table_widget'
updates_grid = UpdatesGrid('updates_table')
class RootController(Controller):
# do something for index, this should be the container stuff
@expose()
def index(self):
return {}
@expose('mako:fedoracommunity.mokshaapps.updates.templates.table')
def table(self, uid="", rows_per_page=5, filters={}):
''' table handler
This handler displays the main table by itself
'''
if isinstance(rows_per_page, basestring):
rows_per_page = int(rows_per_page)
tmpl_context.widget = updates_grid
return {'filters': filters, 'uid': uid, 'rows_per_page': rows_per_page}Use formencode validators in our updates app, instead of doing hacksfrom tg import expose, tmpl_context, validate
from formencode import validators
from moksha.lib.base import Controller
from moksha.api.widgets import ContextAwareWidget, Grid
class UpdatesGrid(Grid, ContextAwareWidget):
template='mako:fedoracommunity.mokshaapps.updates.templates.table_widget'
updates_grid = UpdatesGrid('updates_table')
class RootController(Controller):
# do something for index, this should be the container stuff
@expose()
def index(self):
return {}
@expose('mako:fedoracommunity.mokshaapps.updates.templates.table')
@validate(validators={'rows_per_page': validators.Int()})
def table(self, uid="", rows_per_page=5, filters={}):
''' table handler
This handler displays the main table by itself
'''
tmpl_context.widget = updates_grid
return {'filters': filters, 'uid': uid, 'rows_per_page': rows_per_page}
|
<commit_before>from moksha.lib.base import Controller
from moksha.api.widgets import ContextAwareWidget, Grid
from tg import expose, tmpl_context
class UpdatesGrid(Grid, ContextAwareWidget):
template='mako:fedoracommunity.mokshaapps.updates.templates.table_widget'
updates_grid = UpdatesGrid('updates_table')
class RootController(Controller):
# do something for index, this should be the container stuff
@expose()
def index(self):
return {}
@expose('mako:fedoracommunity.mokshaapps.updates.templates.table')
def table(self, uid="", rows_per_page=5, filters={}):
''' table handler
This handler displays the main table by itself
'''
if isinstance(rows_per_page, basestring):
rows_per_page = int(rows_per_page)
tmpl_context.widget = updates_grid
return {'filters': filters, 'uid': uid, 'rows_per_page': rows_per_page}<commit_msg>Use formencode validators in our updates app, instead of doing hacks<commit_after>from tg import expose, tmpl_context, validate
from formencode import validators
from moksha.lib.base import Controller
from moksha.api.widgets import ContextAwareWidget, Grid
class UpdatesGrid(Grid, ContextAwareWidget):
template='mako:fedoracommunity.mokshaapps.updates.templates.table_widget'
updates_grid = UpdatesGrid('updates_table')
class RootController(Controller):
# do something for index, this should be the container stuff
@expose()
def index(self):
return {}
@expose('mako:fedoracommunity.mokshaapps.updates.templates.table')
@validate(validators={'rows_per_page': validators.Int()})
def table(self, uid="", rows_per_page=5, filters={}):
''' table handler
This handler displays the main table by itself
'''
tmpl_context.widget = updates_grid
return {'filters': filters, 'uid': uid, 'rows_per_page': rows_per_page}
|
3736b02d3b0004809bafb0a40625e26caffc1beb
|
opal/ddd.py
|
opal/ddd.py
|
"""
DDD Integration for OPAL
"""
from django.conf import settings
import requests
CHANGE_ENDPOINT = settings.DDD_ENDPOINT + 'change/'
OUR_ENDPOINT = settings.DEFAULT_DOMAIN + '/ddd/'
def change(pre, post):
r = requests.post(
CHANGE_ENDPOINT,
params={'pre': pre, 'post': post, 'endpoint': OUR_ENDPOINT}
)
print r.status_code
print r.text
return
|
"""
DDD Integration for OPAL
"""
from django.conf import settings
from django.core.serializers.json import DjangoJSONEncoder
import json
import requests
CHANGE_ENDPOINT = settings.DDD_ENDPOINT + 'change/'
OUR_ENDPOINT = settings.DEFAULT_DOMAIN + '/ddd/'
def change(pre, post):
payload = {
'pre': json.dumps(pre, cls=DjangoJSONEncoder),
'post': json.dumps(post, cls=DjangoJSONEncoder),
'endpoint': OUR_ENDPOINT
}
print payload
r = requests.post(
CHANGE_ENDPOINT,
data=payload
)
print 'status', r.status_code
print 'text', r.text
return
|
Use the real send POST params keyword.
|
Use the real send POST params keyword.
|
Python
|
agpl-3.0
|
khchine5/opal,khchine5/opal,khchine5/opal
|
"""
DDD Integration for OPAL
"""
from django.conf import settings
import requests
CHANGE_ENDPOINT = settings.DDD_ENDPOINT + 'change/'
OUR_ENDPOINT = settings.DEFAULT_DOMAIN + '/ddd/'
def change(pre, post):
r = requests.post(
CHANGE_ENDPOINT,
params={'pre': pre, 'post': post, 'endpoint': OUR_ENDPOINT}
)
print r.status_code
print r.text
return
Use the real send POST params keyword.
|
"""
DDD Integration for OPAL
"""
from django.conf import settings
from django.core.serializers.json import DjangoJSONEncoder
import json
import requests
CHANGE_ENDPOINT = settings.DDD_ENDPOINT + 'change/'
OUR_ENDPOINT = settings.DEFAULT_DOMAIN + '/ddd/'
def change(pre, post):
payload = {
'pre': json.dumps(pre, cls=DjangoJSONEncoder),
'post': json.dumps(post, cls=DjangoJSONEncoder),
'endpoint': OUR_ENDPOINT
}
print payload
r = requests.post(
CHANGE_ENDPOINT,
data=payload
)
print 'status', r.status_code
print 'text', r.text
return
|
<commit_before>"""
DDD Integration for OPAL
"""
from django.conf import settings
import requests
CHANGE_ENDPOINT = settings.DDD_ENDPOINT + 'change/'
OUR_ENDPOINT = settings.DEFAULT_DOMAIN + '/ddd/'
def change(pre, post):
r = requests.post(
CHANGE_ENDPOINT,
params={'pre': pre, 'post': post, 'endpoint': OUR_ENDPOINT}
)
print r.status_code
print r.text
return
<commit_msg>Use the real send POST params keyword.<commit_after>
|
"""
DDD Integration for OPAL
"""
from django.conf import settings
from django.core.serializers.json import DjangoJSONEncoder
import json
import requests
CHANGE_ENDPOINT = settings.DDD_ENDPOINT + 'change/'
OUR_ENDPOINT = settings.DEFAULT_DOMAIN + '/ddd/'
def change(pre, post):
payload = {
'pre': json.dumps(pre, cls=DjangoJSONEncoder),
'post': json.dumps(post, cls=DjangoJSONEncoder),
'endpoint': OUR_ENDPOINT
}
print payload
r = requests.post(
CHANGE_ENDPOINT,
data=payload
)
print 'status', r.status_code
print 'text', r.text
return
|
"""
DDD Integration for OPAL
"""
from django.conf import settings
import requests
CHANGE_ENDPOINT = settings.DDD_ENDPOINT + 'change/'
OUR_ENDPOINT = settings.DEFAULT_DOMAIN + '/ddd/'
def change(pre, post):
r = requests.post(
CHANGE_ENDPOINT,
params={'pre': pre, 'post': post, 'endpoint': OUR_ENDPOINT}
)
print r.status_code
print r.text
return
Use the real send POST params keyword."""
DDD Integration for OPAL
"""
from django.conf import settings
from django.core.serializers.json import DjangoJSONEncoder
import json
import requests
CHANGE_ENDPOINT = settings.DDD_ENDPOINT + 'change/'
OUR_ENDPOINT = settings.DEFAULT_DOMAIN + '/ddd/'
def change(pre, post):
payload = {
'pre': json.dumps(pre, cls=DjangoJSONEncoder),
'post': json.dumps(post, cls=DjangoJSONEncoder),
'endpoint': OUR_ENDPOINT
}
print payload
r = requests.post(
CHANGE_ENDPOINT,
data=payload
)
print 'status', r.status_code
print 'text', r.text
return
|
<commit_before>"""
DDD Integration for OPAL
"""
from django.conf import settings
import requests
CHANGE_ENDPOINT = settings.DDD_ENDPOINT + 'change/'
OUR_ENDPOINT = settings.DEFAULT_DOMAIN + '/ddd/'
def change(pre, post):
r = requests.post(
CHANGE_ENDPOINT,
params={'pre': pre, 'post': post, 'endpoint': OUR_ENDPOINT}
)
print r.status_code
print r.text
return
<commit_msg>Use the real send POST params keyword.<commit_after>"""
DDD Integration for OPAL
"""
from django.conf import settings
from django.core.serializers.json import DjangoJSONEncoder
import json
import requests
CHANGE_ENDPOINT = settings.DDD_ENDPOINT + 'change/'
OUR_ENDPOINT = settings.DEFAULT_DOMAIN + '/ddd/'
def change(pre, post):
payload = {
'pre': json.dumps(pre, cls=DjangoJSONEncoder),
'post': json.dumps(post, cls=DjangoJSONEncoder),
'endpoint': OUR_ENDPOINT
}
print payload
r = requests.post(
CHANGE_ENDPOINT,
data=payload
)
print 'status', r.status_code
print 'text', r.text
return
|
02d65664b44963a6d24ccf4fee59d6b5181a9164
|
zephyr/lib/bulk_create.py
|
zephyr/lib/bulk_create.py
|
from django.conf import settings
# batch_bulk_create should become obsolete with Django 1.5, when the
# Django bulk_create method accepts a batch_size directly.
def batch_bulk_create(cls, cls_list, batch_size=150):
if "sqlite" not in settings.DATABASES["default"]["ENGINE"]:
# We don't need a low batch size with mysql, but we do need
# one to avoid "MySQL Server has gone away" errors
batch_size = 2000
while len(cls_list) > 0:
current_batch = cls_list[0:batch_size]
cls.objects.bulk_create(current_batch)
cls_list = cls_list[batch_size:]
|
from django.conf import settings
# batch_bulk_create should become obsolete with Django 1.5, when the
# Django bulk_create method accepts a batch_size directly.
def batch_bulk_create(cls, cls_list, batch_size=150):
if "sqlite" not in settings.DATABASES["default"]["ENGINE"]:
# We don't need a low batch size with mysql, but we do need
# one to avoid "MySQL Server has gone away" errors
batch_size = 10000
while len(cls_list) > 0:
current_batch = cls_list[0:batch_size]
cls.objects.bulk_create(current_batch)
cls_list = cls_list[batch_size:]
|
Increase MySQL batch size to 10,000.
|
Increase MySQL batch size to 10,000.
This saves 30 seconds in populate_db runtime on MySQL.
(imported from commit 7fe483bf5f32cfa3d09db8ad7a9be79bd0a2a271)
|
Python
|
apache-2.0
|
dnmfarrell/zulip,ryanbackman/zulip,hayderimran7/zulip,aakash-cr7/zulip,adnanh/zulip,praveenaki/zulip,johnny9/zulip,wangdeshui/zulip,moria/zulip,aps-sids/zulip,bitemyapp/zulip,brainwane/zulip,aliceriot/zulip,timabbott/zulip,littledogboy/zulip,wavelets/zulip,TigorC/zulip,hackerkid/zulip,natanovia/zulip,he15his/zulip,krtkmj/zulip,brockwhittaker/zulip,willingc/zulip,suxinde2009/zulip,mohsenSy/zulip,ipernet/zulip,vikas-parashar/zulip,JanzTam/zulip,zachallaun/zulip,Frouk/zulip,zachallaun/zulip,qq1012803704/zulip,RobotCaleb/zulip,codeKonami/zulip,Vallher/zulip,guiquanz/zulip,esander91/zulip,deer-hope/zulip,zachallaun/zulip,Frouk/zulip,Vallher/zulip,KJin99/zulip,glovebx/zulip,babbage/zulip,Suninus/zulip,krtkmj/zulip,technicalpickles/zulip,rht/zulip,Drooids/zulip,hackerkid/zulip,Jianchun1/zulip,wavelets/zulip,Frouk/zulip,bssrdf/zulip,dattatreya303/zulip,natanovia/zulip,eastlhu/zulip,eastlhu/zulip,joshisa/zulip,hengqujushi/zulip,seapasulli/zulip,umkay/zulip,wweiradio/zulip,karamcnair/zulip,wdaher/zulip,johnny9/zulip,Galexrt/zulip,zulip/zulip,rishig/zulip,so0k/zulip,timabbott/zulip,kaiyuanheshang/zulip,Gabriel0402/zulip,jonesgithub/zulip,Galexrt/zulip,kokoar/zulip,wweiradio/zulip,dattatreya303/zulip,zwily/zulip,karamcnair/zulip,tiansiyuan/zulip,m1ssou/zulip,atomic-labs/zulip,ufosky-server/zulip,bitemyapp/zulip,wdaher/zulip,dawran6/zulip,shaunstanislaus/zulip,j831/zulip,glovebx/zulip,Batterfii/zulip,ApsOps/zulip,gigawhitlocks/zulip,joshisa/zulip,nicholasbs/zulip,KJin99/zulip,voidException/zulip,qq1012803704/zulip,kokoar/zulip,dwrpayne/zulip,ericzhou2008/zulip,Frouk/zulip,ikasumiwt/zulip,aliceriot/zulip,jphilipsen05/zulip,bssrdf/zulip,mansilladev/zulip,Batterfii/zulip,umkay/zulip,amanharitsh123/zulip,JPJPJPOPOP/zulip,brockwhittaker/zulip,AZtheAsian/zulip,jessedhillon/zulip,synicalsyntax/zulip,guiquanz/zulip,susansls/zulip,arpith/zulip,shubhamdhama/zulip,bowlofstew/zulip,sharmaeklavya2/zulip,vakila/zulip,thomasboyt/zulip,paxapy/zulip,jrowan/zulip,deer-hope/zulip,technicalpickles/zulip,so0k/zulip,m1ssou/zulip,huangkebo/zulip,joshisa/zulip,gkotian/zulip,niftynei/zulip,susansls/zulip,PhilSk/zulip,RobotCaleb/zulip,joyhchen/zulip,shaunstanislaus/zulip,ahmadassaf/zulip,timabbott/zulip,cosmicAsymmetry/zulip,shaunstanislaus/zulip,jimmy54/zulip,fw1121/zulip,aliceriot/zulip,zachallaun/zulip,dawran6/zulip,wangdeshui/zulip,dxq-git/zulip,suxinde2009/zulip,pradiptad/zulip,wangdeshui/zulip,jackrzhang/zulip,esander91/zulip,Galexrt/zulip,praveenaki/zulip,ryanbackman/zulip,themass/zulip,kou/zulip,PaulPetring/zulip,andersk/zulip,shrikrishnaholla/zulip,avastu/zulip,littledogboy/zulip,moria/zulip,dxq-git/zulip,wangdeshui/zulip,LeeRisk/zulip,Qgap/zulip,codeKonami/zulip,KingxBanana/zulip,fw1121/zulip,developerfm/zulip,AZtheAsian/zulip,ericzhou2008/zulip,paxapy/zulip,qq1012803704/zulip,JanzTam/zulip,fw1121/zulip,aps-sids/zulip,verma-varsha/zulip,levixie/zulip,LAndreas/zulip,MariaFaBella85/zulip,PaulPetring/zulip,synicalsyntax/zulip,gkotian/zulip,wweiradio/zulip,swinghu/zulip,vabs22/zulip,RobotCaleb/zulip,bowlofstew/zulip,hustlzp/zulip,codeKonami/zulip,grave-w-grave/zulip,ahmadassaf/zulip,seapasulli/zulip,easyfmxu/zulip,jackrzhang/zulip,vabs22/zulip,MayB/zulip,susansls/zulip,calvinleenyc/zulip,brainwane/zulip,Batterfii/zulip,willingc/zulip,EasonYi/zulip,easyfmxu/zulip,dawran6/zulip,ahmadassaf/zulip,sup95/zulip,schatt/zulip,esander91/zulip,punchagan/zulip,jackrzhang/zulip,joshisa/zulip,LAndreas/zulip,vabs22/zulip,andersk/zulip,susansls/zulip,aps-sids/zulip,karamcnair/zulip,sharmaeklavya2/zulip,hayderimran7/zulip,eastlhu/zulip,gigawhitlocks/zulip,dnmfarrell/zulip,stamhe/zulip,ipernet/zulip,jimmy54/zulip,zhaoweigg/zulip,sonali0901/zulip,schatt/zulip,lfranchi/zulip,TigorC/zulip,hackerkid/zulip,isht3/zulip,technicalpickles/zulip,zhaoweigg/zulip,technicalpickles/zulip,KJin99/zulip,huangkebo/zulip,jerryge/zulip,xuanhan863/zulip,shrikrishnaholla/zulip,zulip/zulip,Juanvulcano/zulip,Vallher/zulip,saitodisse/zulip,guiquanz/zulip,dotcool/zulip,hayderimran7/zulip,tbutter/zulip,akuseru/zulip,glovebx/zulip,andersk/zulip,hj3938/zulip,dawran6/zulip,dawran6/zulip,willingc/zulip,udxxabp/zulip,yuvipanda/zulip,zwily/zulip,jonesgithub/zulip,susansls/zulip,luyifan/zulip,ryansnowboarder/zulip,m1ssou/zulip,andersk/zulip,jeffcao/zulip,mohsenSy/zulip,sharmaeklavya2/zulip,gkotian/zulip,zofuthan/zulip,zachallaun/zulip,hustlzp/zulip,jonesgithub/zulip,zulip/zulip,sonali0901/zulip,vaidap/zulip,arpith/zulip,aakash-cr7/zulip,tommyip/zulip,wavelets/zulip,EasonYi/zulip,hayderimran7/zulip,itnihao/zulip,synicalsyntax/zulip,jessedhillon/zulip,jrowan/zulip,bastianh/zulip,nicholasbs/zulip,zhaoweigg/zulip,PaulPetring/zulip,bssrdf/zulip,hustlzp/zulip,MariaFaBella85/zulip,hj3938/zulip,Cheppers/zulip,shrikrishnaholla/zulip,proliming/zulip,ApsOps/zulip,Frouk/zulip,babbage/zulip,wangdeshui/zulip,atomic-labs/zulip,LeeRisk/zulip,luyifan/zulip,Batterfii/zulip,he15his/zulip,amyliu345/zulip,Vallher/zulip,saitodisse/zulip,DazWorrall/zulip,Suninus/zulip,yocome/zulip,fw1121/zulip,stamhe/zulip,niftynei/zulip,Gabriel0402/zulip,sup95/zulip,JanzTam/zulip,voidException/zulip,jeffcao/zulip,AZtheAsian/zulip,wdaher/zulip,ufosky-server/zulip,yocome/zulip,schatt/zulip,showell/zulip,guiquanz/zulip,dnmfarrell/zulip,thomasboyt/zulip,so0k/zulip,seapasulli/zulip,Cheppers/zulip,zacps/zulip,LeeRisk/zulip,alliejones/zulip,j831/zulip,synicalsyntax/zulip,rht/zulip,LAndreas/zulip,armooo/zulip,LAndreas/zulip,paxapy/zulip,bastianh/zulip,sharmaeklavya2/zulip,huangkebo/zulip,paxapy/zulip,ryansnowboarder/zulip,peguin40/zulip,mansilladev/zulip,Qgap/zulip,bluesea/zulip,wangdeshui/zulip,hj3938/zulip,noroot/zulip,jessedhillon/zulip,hengqujushi/zulip,aliceriot/zulip,PhilSk/zulip,amanharitsh123/zulip,punchagan/zulip,itnihao/zulip,mohsenSy/zulip,amallia/zulip,wavelets/zulip,isht3/zulip,littledogboy/zulip,zorojean/zulip,ryanbackman/zulip,mohsenSy/zulip,timabbott/zulip,aps-sids/zulip,brainwane/zulip,littledogboy/zulip,zofuthan/zulip,vaidap/zulip,verma-varsha/zulip,Drooids/zulip,nicholasbs/zulip,shubhamdhama/zulip,shrikrishnaholla/zulip,vikas-parashar/zulip,ipernet/zulip,umkay/zulip,schatt/zulip,dotcool/zulip,brainwane/zulip,hengqujushi/zulip,johnnygaddarr/zulip,m1ssou/zulip,hayderimran7/zulip,cosmicAsymmetry/zulip,jainayush975/zulip,MariaFaBella85/zulip,aliceriot/zulip,hafeez3000/zulip,udxxabp/zulip,proliming/zulip,Vallher/zulip,AZtheAsian/zulip,Vallher/zulip,pradiptad/zulip,isht3/zulip,EasonYi/zulip,j831/zulip,adnanh/zulip,littledogboy/zulip,udxxabp/zulip,peiwei/zulip,zwily/zulip,avastu/zulip,zwily/zulip,blaze225/zulip,eeshangarg/zulip,vakila/zulip,wweiradio/zulip,developerfm/zulip,TigorC/zulip,yocome/zulip,Jianchun1/zulip,saitodisse/zulip,johnny9/zulip,bowlofstew/zulip,Diptanshu8/zulip,luyifan/zulip,bastianh/zulip,levixie/zulip,grave-w-grave/zulip,DazWorrall/zulip,glovebx/zulip,mohsenSy/zulip,deer-hope/zulip,shubhamdhama/zulip,dhcrzf/zulip,tbutter/zulip,kaiyuanheshang/zulip,tommyip/zulip,wdaher/zulip,dnmfarrell/zulip,peiwei/zulip,sup95/zulip,arpith/zulip,tiansiyuan/zulip,Suninus/zulip,mansilladev/zulip,synicalsyntax/zulip,peguin40/zulip,hustlzp/zulip,calvinleenyc/zulip,Diptanshu8/zulip,blaze225/zulip,ApsOps/zulip,tdr130/zulip,ApsOps/zulip,johnny9/zulip,ipernet/zulip,saitodisse/zulip,moria/zulip,zachallaun/zulip,timabbott/zulip,kou/zulip,jimmy54/zulip,Diptanshu8/zulip,seapasulli/zulip,atomic-labs/zulip,PhilSk/zulip,dxq-git/zulip,jrowan/zulip,souravbadami/zulip,tdr130/zulip,MayB/zulip,tbutter/zulip,aps-sids/zulip,bastianh/zulip,Gabriel0402/zulip,swinghu/zulip,proliming/zulip,firstblade/zulip,themass/zulip,seapasulli/zulip,Jianchun1/zulip,punchagan/zulip,m1ssou/zulip,ryanbackman/zulip,aliceriot/zulip,themass/zulip,dxq-git/zulip,zulip/zulip,yocome/zulip,akuseru/zulip,Batterfii/zulip,jonesgithub/zulip,bowlofstew/zulip,gigawhitlocks/zulip,jimmy54/zulip,jeffcao/zulip,m1ssou/zulip,jonesgithub/zulip,mahim97/zulip,MayB/zulip,brockwhittaker/zulip,alliejones/zulip,johnnygaddarr/zulip,seapasulli/zulip,j831/zulip,jeffcao/zulip,hayderimran7/zulip,dnmfarrell/zulip,huangkebo/zulip,ApsOps/zulip,arpitpanwar/zulip,esander91/zulip,vikas-parashar/zulip,so0k/zulip,grave-w-grave/zulip,shaunstanislaus/zulip,Qgap/zulip,Suninus/zulip,rht/zulip,Gabriel0402/zulip,mdavid/zulip,zorojean/zulip,lfranchi/zulip,jimmy54/zulip,MariaFaBella85/zulip,itnihao/zulip,LAndreas/zulip,JanzTam/zulip,calvinleenyc/zulip,hustlzp/zulip,KingxBanana/zulip,voidException/zulip,showell/zulip,MariaFaBella85/zulip,dhcrzf/zulip,jerryge/zulip,jerryge/zulip,xuanhan863/zulip,johnnygaddarr/zulip,saitodisse/zulip,jainayush975/zulip,suxinde2009/zulip,DazWorrall/zulip,zofuthan/zulip,noroot/zulip,fw1121/zulip,jainayush975/zulip,sup95/zulip,alliejones/zulip,tiansiyuan/zulip,levixie/zulip,yuvipanda/zulip,Diptanshu8/zulip,tbutter/zulip,krtkmj/zulip,samatdav/zulip,kokoar/zulip,tdr130/zulip,zacps/zulip,ufosky-server/zulip,technicalpickles/zulip,hj3938/zulip,ashwinirudrappa/zulip,esander91/zulip,so0k/zulip,bowlofstew/zulip,ryanbackman/zulip,aakash-cr7/zulip,johnnygaddarr/zulip,dwrpayne/zulip,easyfmxu/zulip,udxxabp/zulip,ApsOps/zulip,arpitpanwar/zulip,ryansnowboarder/zulip,bssrdf/zulip,ipernet/zulip,esander91/zulip,ashwinirudrappa/zulip,shrikrishnaholla/zulip,johnny9/zulip,themass/zulip,mahim97/zulip,rht/zulip,adnanh/zulip,nicholasbs/zulip,thomasboyt/zulip,JanzTam/zulip,xuanhan863/zulip,firstblade/zulip,Qgap/zulip,LAndreas/zulip,ericzhou2008/zulip,synicalsyntax/zulip,ryansnowboarder/zulip,punchagan/zulip,rht/zulip,rishig/zulip,arpith/zulip,mahim97/zulip,dattatreya303/zulip,niftynei/zulip,avastu/zulip,tommyip/zulip,zacps/zulip,itnihao/zulip,xuxiao/zulip,hengqujushi/zulip,developerfm/zulip,Gabriel0402/zulip,ufosky-server/zulip,praveenaki/zulip,avastu/zulip,kaiyuanheshang/zulip,shrikrishnaholla/zulip,firstblade/zulip,johnny9/zulip,willingc/zulip,pradiptad/zulip,joshisa/zulip,dawran6/zulip,wweiradio/zulip,saitodisse/zulip,willingc/zulip,thomasboyt/zulip,jphilipsen05/zulip,noroot/zulip,kaiyuanheshang/zulip,christi3k/zulip,vaidap/zulip,amallia/zulip,jphilipsen05/zulip,dhcrzf/zulip,alliejones/zulip,cosmicAsymmetry/zulip,noroot/zulip,codeKonami/zulip,so0k/zulip,mdavid/zulip,avastu/zulip,mohsenSy/zulip,zorojean/zulip,tdr130/zulip,Suninus/zulip,reyha/zulip,bluesea/zulip,dotcool/zulip,amyliu345/zulip,willingc/zulip,bowlofstew/zulip,hj3938/zulip,nicholasbs/zulip,mahim97/zulip,j831/zulip,xuanhan863/zulip,showell/zulip,paxapy/zulip,dwrpayne/zulip,peiwei/zulip,stamhe/zulip,souravbadami/zulip,TigorC/zulip,krtkmj/zulip,sup95/zulip,firstblade/zulip,bssrdf/zulip,swinghu/zulip,peguin40/zulip,calvinleenyc/zulip,amanharitsh123/zulip,zulip/zulip,zhaoweigg/zulip,mdavid/zulip,KJin99/zulip,DazWorrall/zulip,easyfmxu/zulip,jackrzhang/zulip,vaidap/zulip,bluesea/zulip,arpith/zulip,hayderimran7/zulip,peiwei/zulip,Diptanshu8/zulip,Drooids/zulip,ryansnowboarder/zulip,nicholasbs/zulip,levixie/zulip,karamcnair/zulip,kou/zulip,PhilSk/zulip,gkotian/zulip,sonali0901/zulip,akuseru/zulip,TigorC/zulip,ahmadassaf/zulip,punchagan/zulip,EasonYi/zulip,peiwei/zulip,huangkebo/zulip,wavelets/zulip,Diptanshu8/zulip,hafeez3000/zulip,babbage/zulip,mdavid/zulip,arpitpanwar/zulip,dotcool/zulip,bastianh/zulip,developerfm/zulip,Frouk/zulip,Cheppers/zulip,zulip/zulip,yocome/zulip,joyhchen/zulip,jrowan/zulip,armooo/zulip,hengqujushi/zulip,natanovia/zulip,Cheppers/zulip,stamhe/zulip,cosmicAsymmetry/zulip,zofuthan/zulip,PhilSk/zulip,LeeRisk/zulip,dotcool/zulip,tbutter/zulip,tbutter/zulip,udxxabp/zulip,ufosky-server/zulip,brainwane/zulip,babbage/zulip,MariaFaBella85/zulip,sonali0901/zulip,deer-hope/zulip,synicalsyntax/zulip,voidException/zulip,jessedhillon/zulip,luyifan/zulip,TigorC/zulip,littledogboy/zulip,swinghu/zulip,bluesea/zulip,hafeez3000/zulip,praveenaki/zulip,Vallher/zulip,ericzhou2008/zulip,schatt/zulip,atomic-labs/zulip,vakila/zulip,dattatreya303/zulip,aakash-cr7/zulip,aliceriot/zulip,Qgap/zulip,grave-w-grave/zulip,SmartPeople/zulip,JPJPJPOPOP/zulip,dwrpayne/zulip,jrowan/zulip,zorojean/zulip,hengqujushi/zulip,he15his/zulip,kokoar/zulip,amallia/zulip,j831/zulip,tommyip/zulip,JPJPJPOPOP/zulip,armooo/zulip,nicholasbs/zulip,KJin99/zulip,swinghu/zulip,natanovia/zulip,tiansiyuan/zulip,showell/zulip,mdavid/zulip,johnnygaddarr/zulip,andersk/zulip,amallia/zulip,praveenaki/zulip,easyfmxu/zulip,EasonYi/zulip,johnny9/zulip,zacps/zulip,natanovia/zulip,grave-w-grave/zulip,zhaoweigg/zulip,bluesea/zulip,sharmaeklavya2/zulip,jeffcao/zulip,dhcrzf/zulip,joyhchen/zulip,dnmfarrell/zulip,yuvipanda/zulip,adnanh/zulip,karamcnair/zulip,arpitpanwar/zulip,xuxiao/zulip,grave-w-grave/zulip,dnmfarrell/zulip,wangdeshui/zulip,firstblade/zulip,amyliu345/zulip,Jianchun1/zulip,bitemyapp/zulip,bowlofstew/zulip,aakash-cr7/zulip,armooo/zulip,ufosky-server/zulip,seapasulli/zulip,PaulPetring/zulip,ryansnowboarder/zulip,reyha/zulip,SmartPeople/zulip,shubhamdhama/zulip,kou/zulip,ashwinirudrappa/zulip,joshisa/zulip,schatt/zulip,rht/zulip,johnnygaddarr/zulip,zulip/zulip,babbage/zulip,praveenaki/zulip,ikasumiwt/zulip,xuxiao/zulip,sonali0901/zulip,MayB/zulip,jeffcao/zulip,developerfm/zulip,shaunstanislaus/zulip,kaiyuanheshang/zulip,zorojean/zulip,eastlhu/zulip,swinghu/zulip,krtkmj/zulip,mansilladev/zulip,voidException/zulip,dhcrzf/zulip,ikasumiwt/zulip,christi3k/zulip,shubhamdhama/zulip,jimmy54/zulip,noroot/zulip,amallia/zulip,rishig/zulip,shrikrishnaholla/zulip,bssrdf/zulip,vaidap/zulip,JPJPJPOPOP/zulip,atomic-labs/zulip,ashwinirudrappa/zulip,themass/zulip,dotcool/zulip,glovebx/zulip,eastlhu/zulip,moria/zulip,tdr130/zulip,LAndreas/zulip,alliejones/zulip,gigawhitlocks/zulip,dxq-git/zulip,jerryge/zulip,samatdav/zulip,stamhe/zulip,shaunstanislaus/zulip,karamcnair/zulip,ashwinirudrappa/zulip,joyhchen/zulip,bitemyapp/zulip,jimmy54/zulip,PaulPetring/zulip,gigawhitlocks/zulip,amyliu345/zulip,RobotCaleb/zulip,fw1121/zulip,developerfm/zulip,proliming/zulip,levixie/zulip,zacps/zulip,adnanh/zulip,jackrzhang/zulip,littledogboy/zulip,jainayush975/zulip,zachallaun/zulip,reyha/zulip,alliejones/zulip,niftynei/zulip,zofuthan/zulip,deer-hope/zulip,blaze225/zulip,ikasumiwt/zulip,cosmicAsymmetry/zulip,cosmicAsymmetry/zulip,umkay/zulip,Qgap/zulip,ryansnowboarder/zulip,wweiradio/zulip,moria/zulip,hackerkid/zulip,developerfm/zulip,technicalpickles/zulip,zorojean/zulip,Cheppers/zulip,vikas-parashar/zulip,Cheppers/zulip,joyhchen/zulip,wweiradio/zulip,luyifan/zulip,eastlhu/zulip,huangkebo/zulip,JanzTam/zulip,ufosky-server/zulip,firstblade/zulip,stamhe/zulip,so0k/zulip,christi3k/zulip,hackerkid/zulip,natanovia/zulip,LeeRisk/zulip,aps-sids/zulip,akuseru/zulip,kokoar/zulip,m1ssou/zulip,Jianchun1/zulip,zofuthan/zulip,pradiptad/zulip,moria/zulip,mdavid/zulip,ashwinirudrappa/zulip,amyliu345/zulip,christi3k/zulip,akuseru/zulip,eeshangarg/zulip,noroot/zulip,adnanh/zulip,Gabriel0402/zulip,qq1012803704/zulip,tommyip/zulip,fw1121/zulip,technicalpickles/zulip,vakila/zulip,huangkebo/zulip,JPJPJPOPOP/zulip,luyifan/zulip,MariaFaBella85/zulip,armooo/zulip,eeshangarg/zulip,RobotCaleb/zulip,voidException/zulip,blaze225/zulip,blaze225/zulip,johnnygaddarr/zulip,themass/zulip,lfranchi/zulip,pradiptad/zulip,souravbadami/zulip,peiwei/zulip,peguin40/zulip,thomasboyt/zulip,ahmadassaf/zulip,rishig/zulip,EasonYi/zulip,niftynei/zulip,zhaoweigg/zulip,suxinde2009/zulip,adnanh/zulip,krtkmj/zulip,KJin99/zulip,jrowan/zulip,xuanhan863/zulip,wavelets/zulip,itnihao/zulip,brockwhittaker/zulip,EasonYi/zulip,levixie/zulip,bastianh/zulip,KingxBanana/zulip,krtkmj/zulip,jonesgithub/zulip,Qgap/zulip,RobotCaleb/zulip,MayB/zulip,dxq-git/zulip,lfranchi/zulip,hengqujushi/zulip,bluesea/zulip,guiquanz/zulip,yuvipanda/zulip,atomic-labs/zulip,MayB/zulip,vaidap/zulip,ikasumiwt/zulip,jessedhillon/zulip,mansilladev/zulip,tdr130/zulip,PaulPetring/zulip,amanharitsh123/zulip,dxq-git/zulip,Juanvulcano/zulip,pradiptad/zulip,Galexrt/zulip,eeshangarg/zulip,Galexrt/zulip,KJin99/zulip,JanzTam/zulip,tiansiyuan/zulip,christi3k/zulip,dattatreya303/zulip,themass/zulip,vikas-parashar/zulip,SmartPeople/zulip,peiwei/zulip,Juanvulcano/zulip,souravbadami/zulip,hj3938/zulip,arpitpanwar/zulip,jphilipsen05/zulip,vabs22/zulip,andersk/zulip,yuvipanda/zulip,proliming/zulip,bluesea/zulip,arpith/zulip,thomasboyt/zulip,isht3/zulip,dwrpayne/zulip,peguin40/zulip,arpitpanwar/zulip,mahim97/zulip,brockwhittaker/zulip,zofuthan/zulip,AZtheAsian/zulip,DazWorrall/zulip,verma-varsha/zulip,eeshangarg/zulip,luyifan/zulip,zhaoweigg/zulip,KingxBanana/zulip,Juanvulcano/zulip,tiansiyuan/zulip,dhcrzf/zulip,ashwinirudrappa/zulip,sup95/zulip,blaze225/zulip,alliejones/zulip,jackrzhang/zulip,samatdav/zulip,zwily/zulip,vikas-parashar/zulip,bastianh/zulip,punchagan/zulip,samatdav/zulip,peguin40/zulip,yuvipanda/zulip,hj3938/zulip,hustlzp/zulip,willingc/zulip,gkotian/zulip,suxinde2009/zulip,sonali0901/zulip,samatdav/zulip,udxxabp/zulip,bitemyapp/zulip,kou/zulip,moria/zulip,umkay/zulip,paxapy/zulip,bitemyapp/zulip,jackrzhang/zulip,PaulPetring/zulip,pradiptad/zulip,isht3/zulip,vabs22/zulip,ipernet/zulip,brainwane/zulip,babbage/zulip,kokoar/zulip,hustlzp/zulip,aakash-cr7/zulip,reyha/zulip,PhilSk/zulip,kou/zulip,wdaher/zulip,bitemyapp/zulip,SmartPeople/zulip,gigawhitlocks/zulip,reyha/zulip,susansls/zulip,calvinleenyc/zulip,shaunstanislaus/zulip,Cheppers/zulip,guiquanz/zulip,verma-varsha/zulip,vakila/zulip,brockwhittaker/zulip,saitodisse/zulip,shubhamdhama/zulip,swinghu/zulip,he15his/zulip,AZtheAsian/zulip,atomic-labs/zulip,showell/zulip,jeffcao/zulip,gkotian/zulip,amanharitsh123/zulip,kou/zulip,avastu/zulip,amyliu345/zulip,itnihao/zulip,ikasumiwt/zulip,Frouk/zulip,hafeez3000/zulip,ahmadassaf/zulip,jainayush975/zulip,lfranchi/zulip,vakila/zulip,xuxiao/zulip,andersk/zulip,suxinde2009/zulip,jainayush975/zulip,Galexrt/zulip,tommyip/zulip,hackerkid/zulip,easyfmxu/zulip,vakila/zulip,karamcnair/zulip,amanharitsh123/zulip,yocome/zulip,eastlhu/zulip,udxxabp/zulip,ipernet/zulip,sharmaeklavya2/zulip,kaiyuanheshang/zulip,codeKonami/zulip,showell/zulip,jerryge/zulip,Drooids/zulip,ApsOps/zulip,jessedhillon/zulip,deer-hope/zulip,guiquanz/zulip,rishig/zulip,joyhchen/zulip,DazWorrall/zulip,ikasumiwt/zulip,amallia/zulip,qq1012803704/zulip,dwrpayne/zulip,Suninus/zulip,ericzhou2008/zulip,punchagan/zulip,amallia/zulip,verma-varsha/zulip,stamhe/zulip,levixie/zulip,eeshangarg/zulip,bssrdf/zulip,proliming/zulip,arpitpanwar/zulip,esander91/zulip,hafeez3000/zulip,yuvipanda/zulip,xuxiao/zulip,timabbott/zulip,itnihao/zulip,yocome/zulip,gigawhitlocks/zulip,zwily/zulip,babbage/zulip,Drooids/zulip,Batterfii/zulip,kokoar/zulip,dattatreya303/zulip,samatdav/zulip,he15his/zulip,natanovia/zulip,LeeRisk/zulip,christi3k/zulip,jonesgithub/zulip,SmartPeople/zulip,joshisa/zulip,codeKonami/zulip,KingxBanana/zulip,isht3/zulip,showell/zulip,zorojean/zulip,wdaher/zulip,xuxiao/zulip,RobotCaleb/zulip,Batterfii/zulip,Drooids/zulip,thomasboyt/zulip,umkay/zulip,lfranchi/zulip,easyfmxu/zulip,eeshangarg/zulip,niftynei/zulip,ericzhou2008/zulip,calvinleenyc/zulip,he15his/zulip,Suninus/zulip,zacps/zulip,akuseru/zulip,Drooids/zulip,lfranchi/zulip,verma-varsha/zulip,ryanbackman/zulip,armooo/zulip,deer-hope/zulip,umkay/zulip,jerryge/zulip,qq1012803704/zulip,vabs22/zulip,xuxiao/zulip,tiansiyuan/zulip,mahim97/zulip,dotcool/zulip,tbutter/zulip,jphilipsen05/zulip,MayB/zulip,mansilladev/zulip,glovebx/zulip,hafeez3000/zulip,wdaher/zulip,jphilipsen05/zulip,dhcrzf/zulip,Juanvulcano/zulip,JPJPJPOPOP/zulip,ericzhou2008/zulip,Gabriel0402/zulip,qq1012803704/zulip,xuanhan863/zulip,rishig/zulip,glovebx/zulip,LeeRisk/zulip,zwily/zulip,Galexrt/zulip,rht/zulip,SmartPeople/zulip,hackerkid/zulip,KingxBanana/zulip,armooo/zulip,suxinde2009/zulip,he15his/zulip,xuanhan863/zulip,rishig/zulip,Jianchun1/zulip,Juanvulcano/zulip,souravbadami/zulip,firstblade/zulip,gkotian/zulip,dwrpayne/zulip,souravbadami/zulip,aps-sids/zulip,hafeez3000/zulip,DazWorrall/zulip,shubhamdhama/zulip,tommyip/zulip,avastu/zulip,praveenaki/zulip,akuseru/zulip,codeKonami/zulip,proliming/zulip,ahmadassaf/zulip,wavelets/zulip,mansilladev/zulip,voidException/zulip,jerryge/zulip,reyha/zulip,tdr130/zulip,schatt/zulip,noroot/zulip,jessedhillon/zulip,timabbott/zulip,kaiyuanheshang/zulip,mdavid/zulip,brainwane/zulip
|
from django.conf import settings
# batch_bulk_create should become obsolete with Django 1.5, when the
# Django bulk_create method accepts a batch_size directly.
def batch_bulk_create(cls, cls_list, batch_size=150):
if "sqlite" not in settings.DATABASES["default"]["ENGINE"]:
# We don't need a low batch size with mysql, but we do need
# one to avoid "MySQL Server has gone away" errors
batch_size = 2000
while len(cls_list) > 0:
current_batch = cls_list[0:batch_size]
cls.objects.bulk_create(current_batch)
cls_list = cls_list[batch_size:]
Increase MySQL batch size to 10,000.
This saves 30 seconds in populate_db runtime on MySQL.
(imported from commit 7fe483bf5f32cfa3d09db8ad7a9be79bd0a2a271)
|
from django.conf import settings
# batch_bulk_create should become obsolete with Django 1.5, when the
# Django bulk_create method accepts a batch_size directly.
def batch_bulk_create(cls, cls_list, batch_size=150):
if "sqlite" not in settings.DATABASES["default"]["ENGINE"]:
# We don't need a low batch size with mysql, but we do need
# one to avoid "MySQL Server has gone away" errors
batch_size = 10000
while len(cls_list) > 0:
current_batch = cls_list[0:batch_size]
cls.objects.bulk_create(current_batch)
cls_list = cls_list[batch_size:]
|
<commit_before>from django.conf import settings
# batch_bulk_create should become obsolete with Django 1.5, when the
# Django bulk_create method accepts a batch_size directly.
def batch_bulk_create(cls, cls_list, batch_size=150):
if "sqlite" not in settings.DATABASES["default"]["ENGINE"]:
# We don't need a low batch size with mysql, but we do need
# one to avoid "MySQL Server has gone away" errors
batch_size = 2000
while len(cls_list) > 0:
current_batch = cls_list[0:batch_size]
cls.objects.bulk_create(current_batch)
cls_list = cls_list[batch_size:]
<commit_msg>Increase MySQL batch size to 10,000.
This saves 30 seconds in populate_db runtime on MySQL.
(imported from commit 7fe483bf5f32cfa3d09db8ad7a9be79bd0a2a271)<commit_after>
|
from django.conf import settings
# batch_bulk_create should become obsolete with Django 1.5, when the
# Django bulk_create method accepts a batch_size directly.
def batch_bulk_create(cls, cls_list, batch_size=150):
if "sqlite" not in settings.DATABASES["default"]["ENGINE"]:
# We don't need a low batch size with mysql, but we do need
# one to avoid "MySQL Server has gone away" errors
batch_size = 10000
while len(cls_list) > 0:
current_batch = cls_list[0:batch_size]
cls.objects.bulk_create(current_batch)
cls_list = cls_list[batch_size:]
|
from django.conf import settings
# batch_bulk_create should become obsolete with Django 1.5, when the
# Django bulk_create method accepts a batch_size directly.
def batch_bulk_create(cls, cls_list, batch_size=150):
if "sqlite" not in settings.DATABASES["default"]["ENGINE"]:
# We don't need a low batch size with mysql, but we do need
# one to avoid "MySQL Server has gone away" errors
batch_size = 2000
while len(cls_list) > 0:
current_batch = cls_list[0:batch_size]
cls.objects.bulk_create(current_batch)
cls_list = cls_list[batch_size:]
Increase MySQL batch size to 10,000.
This saves 30 seconds in populate_db runtime on MySQL.
(imported from commit 7fe483bf5f32cfa3d09db8ad7a9be79bd0a2a271)from django.conf import settings
# batch_bulk_create should become obsolete with Django 1.5, when the
# Django bulk_create method accepts a batch_size directly.
def batch_bulk_create(cls, cls_list, batch_size=150):
if "sqlite" not in settings.DATABASES["default"]["ENGINE"]:
# We don't need a low batch size with mysql, but we do need
# one to avoid "MySQL Server has gone away" errors
batch_size = 10000
while len(cls_list) > 0:
current_batch = cls_list[0:batch_size]
cls.objects.bulk_create(current_batch)
cls_list = cls_list[batch_size:]
|
<commit_before>from django.conf import settings
# batch_bulk_create should become obsolete with Django 1.5, when the
# Django bulk_create method accepts a batch_size directly.
def batch_bulk_create(cls, cls_list, batch_size=150):
if "sqlite" not in settings.DATABASES["default"]["ENGINE"]:
# We don't need a low batch size with mysql, but we do need
# one to avoid "MySQL Server has gone away" errors
batch_size = 2000
while len(cls_list) > 0:
current_batch = cls_list[0:batch_size]
cls.objects.bulk_create(current_batch)
cls_list = cls_list[batch_size:]
<commit_msg>Increase MySQL batch size to 10,000.
This saves 30 seconds in populate_db runtime on MySQL.
(imported from commit 7fe483bf5f32cfa3d09db8ad7a9be79bd0a2a271)<commit_after>from django.conf import settings
# batch_bulk_create should become obsolete with Django 1.5, when the
# Django bulk_create method accepts a batch_size directly.
def batch_bulk_create(cls, cls_list, batch_size=150):
if "sqlite" not in settings.DATABASES["default"]["ENGINE"]:
# We don't need a low batch size with mysql, but we do need
# one to avoid "MySQL Server has gone away" errors
batch_size = 10000
while len(cls_list) > 0:
current_batch = cls_list[0:batch_size]
cls.objects.bulk_create(current_batch)
cls_list = cls_list[batch_size:]
|
77704e80a32fbb2f4c9533778565a92dbb346ab6
|
highlander/highlander.py
|
highlander/highlander.py
|
from functools import wraps
from logging import getLogger
from os import getcwd, unlink
from os.path import join, realpath, isfile
from psutil import Process
logger = getLogger(__name__)
def one(f):
@wraps(f)
def decorator():
pid_file = realpath(join(getcwd(), '.pid'))
if _is_running(pid_file):
exit(0)
_set_running(pid_file)
try:
f()
finally:
unlink(pid_file)
return decorator
def _is_running():
pass
def _read_pid_file(filename):
with open(filename, 'r') as f:
pid, create_time = f.read().split(',')
return Process(int(pid))
def _set_running(filename):
p = Process()
with open(filename, 'w') as f:
f.write('{},{}'.format(p.pid, p.create_time()))
def _unlink_pid_file(f):
unlink(f)
|
from functools import wraps
from logging import getLogger
from os import getcwd, unlink
from os.path import join, realpath, isfile
from psutil import Process
logger = getLogger(__name__)
def one(f):
@wraps(f)
def decorator():
pid_file = realpath(join(getcwd(), '.pid'))
if _is_running(pid_file):
exit(0)
_set_running(pid_file)
try:
f()
finally:
unlink(pid_file)
return decorator
def _is_running():
pass
def _read_pid_file(filename):
if not isfile(str(filename)):
return None
with open(filename, 'r') as f:
pid, create_time = f.read().split(',')
return Process(int(pid))
def _set_running(filename):
p = Process()
with open(filename, 'w') as f:
f.write('{},{}'.format(p.pid, p.create_time()))
def _unlink_pid_file(f):
unlink(f)
|
Make sure filename is a string.
|
Make sure filename is a string.
|
Python
|
mit
|
chriscannon/highlander
|
from functools import wraps
from logging import getLogger
from os import getcwd, unlink
from os.path import join, realpath, isfile
from psutil import Process
logger = getLogger(__name__)
def one(f):
@wraps(f)
def decorator():
pid_file = realpath(join(getcwd(), '.pid'))
if _is_running(pid_file):
exit(0)
_set_running(pid_file)
try:
f()
finally:
unlink(pid_file)
return decorator
def _is_running():
pass
def _read_pid_file(filename):
with open(filename, 'r') as f:
pid, create_time = f.read().split(',')
return Process(int(pid))
def _set_running(filename):
p = Process()
with open(filename, 'w') as f:
f.write('{},{}'.format(p.pid, p.create_time()))
def _unlink_pid_file(f):
unlink(f)
Make sure filename is a string.
|
from functools import wraps
from logging import getLogger
from os import getcwd, unlink
from os.path import join, realpath, isfile
from psutil import Process
logger = getLogger(__name__)
def one(f):
@wraps(f)
def decorator():
pid_file = realpath(join(getcwd(), '.pid'))
if _is_running(pid_file):
exit(0)
_set_running(pid_file)
try:
f()
finally:
unlink(pid_file)
return decorator
def _is_running():
pass
def _read_pid_file(filename):
if not isfile(str(filename)):
return None
with open(filename, 'r') as f:
pid, create_time = f.read().split(',')
return Process(int(pid))
def _set_running(filename):
p = Process()
with open(filename, 'w') as f:
f.write('{},{}'.format(p.pid, p.create_time()))
def _unlink_pid_file(f):
unlink(f)
|
<commit_before>from functools import wraps
from logging import getLogger
from os import getcwd, unlink
from os.path import join, realpath, isfile
from psutil import Process
logger = getLogger(__name__)
def one(f):
@wraps(f)
def decorator():
pid_file = realpath(join(getcwd(), '.pid'))
if _is_running(pid_file):
exit(0)
_set_running(pid_file)
try:
f()
finally:
unlink(pid_file)
return decorator
def _is_running():
pass
def _read_pid_file(filename):
with open(filename, 'r') as f:
pid, create_time = f.read().split(',')
return Process(int(pid))
def _set_running(filename):
p = Process()
with open(filename, 'w') as f:
f.write('{},{}'.format(p.pid, p.create_time()))
def _unlink_pid_file(f):
unlink(f)
<commit_msg>Make sure filename is a string.<commit_after>
|
from functools import wraps
from logging import getLogger
from os import getcwd, unlink
from os.path import join, realpath, isfile
from psutil import Process
logger = getLogger(__name__)
def one(f):
@wraps(f)
def decorator():
pid_file = realpath(join(getcwd(), '.pid'))
if _is_running(pid_file):
exit(0)
_set_running(pid_file)
try:
f()
finally:
unlink(pid_file)
return decorator
def _is_running():
pass
def _read_pid_file(filename):
if not isfile(str(filename)):
return None
with open(filename, 'r') as f:
pid, create_time = f.read().split(',')
return Process(int(pid))
def _set_running(filename):
p = Process()
with open(filename, 'w') as f:
f.write('{},{}'.format(p.pid, p.create_time()))
def _unlink_pid_file(f):
unlink(f)
|
from functools import wraps
from logging import getLogger
from os import getcwd, unlink
from os.path import join, realpath, isfile
from psutil import Process
logger = getLogger(__name__)
def one(f):
@wraps(f)
def decorator():
pid_file = realpath(join(getcwd(), '.pid'))
if _is_running(pid_file):
exit(0)
_set_running(pid_file)
try:
f()
finally:
unlink(pid_file)
return decorator
def _is_running():
pass
def _read_pid_file(filename):
with open(filename, 'r') as f:
pid, create_time = f.read().split(',')
return Process(int(pid))
def _set_running(filename):
p = Process()
with open(filename, 'w') as f:
f.write('{},{}'.format(p.pid, p.create_time()))
def _unlink_pid_file(f):
unlink(f)
Make sure filename is a string.from functools import wraps
from logging import getLogger
from os import getcwd, unlink
from os.path import join, realpath, isfile
from psutil import Process
logger = getLogger(__name__)
def one(f):
@wraps(f)
def decorator():
pid_file = realpath(join(getcwd(), '.pid'))
if _is_running(pid_file):
exit(0)
_set_running(pid_file)
try:
f()
finally:
unlink(pid_file)
return decorator
def _is_running():
pass
def _read_pid_file(filename):
if not isfile(str(filename)):
return None
with open(filename, 'r') as f:
pid, create_time = f.read().split(',')
return Process(int(pid))
def _set_running(filename):
p = Process()
with open(filename, 'w') as f:
f.write('{},{}'.format(p.pid, p.create_time()))
def _unlink_pid_file(f):
unlink(f)
|
<commit_before>from functools import wraps
from logging import getLogger
from os import getcwd, unlink
from os.path import join, realpath, isfile
from psutil import Process
logger = getLogger(__name__)
def one(f):
@wraps(f)
def decorator():
pid_file = realpath(join(getcwd(), '.pid'))
if _is_running(pid_file):
exit(0)
_set_running(pid_file)
try:
f()
finally:
unlink(pid_file)
return decorator
def _is_running():
pass
def _read_pid_file(filename):
with open(filename, 'r') as f:
pid, create_time = f.read().split(',')
return Process(int(pid))
def _set_running(filename):
p = Process()
with open(filename, 'w') as f:
f.write('{},{}'.format(p.pid, p.create_time()))
def _unlink_pid_file(f):
unlink(f)
<commit_msg>Make sure filename is a string.<commit_after>from functools import wraps
from logging import getLogger
from os import getcwd, unlink
from os.path import join, realpath, isfile
from psutil import Process
logger = getLogger(__name__)
def one(f):
@wraps(f)
def decorator():
pid_file = realpath(join(getcwd(), '.pid'))
if _is_running(pid_file):
exit(0)
_set_running(pid_file)
try:
f()
finally:
unlink(pid_file)
return decorator
def _is_running():
pass
def _read_pid_file(filename):
if not isfile(str(filename)):
return None
with open(filename, 'r') as f:
pid, create_time = f.read().split(',')
return Process(int(pid))
def _set_running(filename):
p = Process()
with open(filename, 'w') as f:
f.write('{},{}'.format(p.pid, p.create_time()))
def _unlink_pid_file(f):
unlink(f)
|
9178e4d6a8fb54c6124c192765a9ff8cc3a582c6
|
docs/recipe_bridge.py
|
docs/recipe_bridge.py
|
#!/usr/bin/env python
import time
from picraft import World, Vector, Block
world = World(ignore_errors=True)
world.say('Auto-bridge active')
last_pos = None
while True:
this_pos = world.player.pos
if last_pos is not None:
# Has the player moved more than 0.2 units in a horizontal direction?
movement = (this_pos - last_pos).replace(y=0.0)
if movement.magnitude > 0.1:
# Find the next tile they're going to step on
next_pos = (this_pos + movement.unit).floor() - Vector(y=1)
if world.blocks[next_pos] == Block('air'):
world.blocks[next_pos] = Block('diamond_block')
last_pos = this_pos
time.sleep(0.01)
|
#!/usr/bin/env python
from __future__ import unicode_literals
import time
from picraft import World, Vector, Block
from collections import deque
world = World(ignore_errors=True)
world.say('Auto-bridge active')
try:
bridge = deque()
last_pos = None
while True:
this_pos = world.player.pos
if last_pos is not None:
# Has the player moved more than 0.1 units in a horizontal direction?
movement = (this_pos - last_pos).replace(y=0.0)
if movement.magnitude > 0.1:
# Find the next tile they're going to step on
next_pos = (this_pos + movement.unit).floor() - Vector(y=1)
if world.blocks[next_pos] == Block('air'):
with world.connection.batch_start():
bridge.append(next_pos)
world.blocks[next_pos] = Block('diamond_block')
while len(bridge) > 10:
world.blocks[bridge.popleft()] = Block('air')
last_pos = this_pos
time.sleep(0.01)
except KeyboardInterrupt:
world.say('Auto-bridge deactivated')
with world.connection.batch_start():
while bridge:
world.blocks[bridge.popleft()] = Block('air')
|
Update bridge recipe to limit length
|
Update bridge recipe to limit length
Also removes bridge at the end
|
Python
|
bsd-3-clause
|
waveform80/picraft,radames/picraft
|
#!/usr/bin/env python
import time
from picraft import World, Vector, Block
world = World(ignore_errors=True)
world.say('Auto-bridge active')
last_pos = None
while True:
this_pos = world.player.pos
if last_pos is not None:
# Has the player moved more than 0.2 units in a horizontal direction?
movement = (this_pos - last_pos).replace(y=0.0)
if movement.magnitude > 0.1:
# Find the next tile they're going to step on
next_pos = (this_pos + movement.unit).floor() - Vector(y=1)
if world.blocks[next_pos] == Block('air'):
world.blocks[next_pos] = Block('diamond_block')
last_pos = this_pos
time.sleep(0.01)
Update bridge recipe to limit length
Also removes bridge at the end
|
#!/usr/bin/env python
from __future__ import unicode_literals
import time
from picraft import World, Vector, Block
from collections import deque
world = World(ignore_errors=True)
world.say('Auto-bridge active')
try:
bridge = deque()
last_pos = None
while True:
this_pos = world.player.pos
if last_pos is not None:
# Has the player moved more than 0.1 units in a horizontal direction?
movement = (this_pos - last_pos).replace(y=0.0)
if movement.magnitude > 0.1:
# Find the next tile they're going to step on
next_pos = (this_pos + movement.unit).floor() - Vector(y=1)
if world.blocks[next_pos] == Block('air'):
with world.connection.batch_start():
bridge.append(next_pos)
world.blocks[next_pos] = Block('diamond_block')
while len(bridge) > 10:
world.blocks[bridge.popleft()] = Block('air')
last_pos = this_pos
time.sleep(0.01)
except KeyboardInterrupt:
world.say('Auto-bridge deactivated')
with world.connection.batch_start():
while bridge:
world.blocks[bridge.popleft()] = Block('air')
|
<commit_before>#!/usr/bin/env python
import time
from picraft import World, Vector, Block
world = World(ignore_errors=True)
world.say('Auto-bridge active')
last_pos = None
while True:
this_pos = world.player.pos
if last_pos is not None:
# Has the player moved more than 0.2 units in a horizontal direction?
movement = (this_pos - last_pos).replace(y=0.0)
if movement.magnitude > 0.1:
# Find the next tile they're going to step on
next_pos = (this_pos + movement.unit).floor() - Vector(y=1)
if world.blocks[next_pos] == Block('air'):
world.blocks[next_pos] = Block('diamond_block')
last_pos = this_pos
time.sleep(0.01)
<commit_msg>Update bridge recipe to limit length
Also removes bridge at the end<commit_after>
|
#!/usr/bin/env python
from __future__ import unicode_literals
import time
from picraft import World, Vector, Block
from collections import deque
world = World(ignore_errors=True)
world.say('Auto-bridge active')
try:
bridge = deque()
last_pos = None
while True:
this_pos = world.player.pos
if last_pos is not None:
# Has the player moved more than 0.1 units in a horizontal direction?
movement = (this_pos - last_pos).replace(y=0.0)
if movement.magnitude > 0.1:
# Find the next tile they're going to step on
next_pos = (this_pos + movement.unit).floor() - Vector(y=1)
if world.blocks[next_pos] == Block('air'):
with world.connection.batch_start():
bridge.append(next_pos)
world.blocks[next_pos] = Block('diamond_block')
while len(bridge) > 10:
world.blocks[bridge.popleft()] = Block('air')
last_pos = this_pos
time.sleep(0.01)
except KeyboardInterrupt:
world.say('Auto-bridge deactivated')
with world.connection.batch_start():
while bridge:
world.blocks[bridge.popleft()] = Block('air')
|
#!/usr/bin/env python
import time
from picraft import World, Vector, Block
world = World(ignore_errors=True)
world.say('Auto-bridge active')
last_pos = None
while True:
this_pos = world.player.pos
if last_pos is not None:
# Has the player moved more than 0.2 units in a horizontal direction?
movement = (this_pos - last_pos).replace(y=0.0)
if movement.magnitude > 0.1:
# Find the next tile they're going to step on
next_pos = (this_pos + movement.unit).floor() - Vector(y=1)
if world.blocks[next_pos] == Block('air'):
world.blocks[next_pos] = Block('diamond_block')
last_pos = this_pos
time.sleep(0.01)
Update bridge recipe to limit length
Also removes bridge at the end#!/usr/bin/env python
from __future__ import unicode_literals
import time
from picraft import World, Vector, Block
from collections import deque
world = World(ignore_errors=True)
world.say('Auto-bridge active')
try:
bridge = deque()
last_pos = None
while True:
this_pos = world.player.pos
if last_pos is not None:
# Has the player moved more than 0.1 units in a horizontal direction?
movement = (this_pos - last_pos).replace(y=0.0)
if movement.magnitude > 0.1:
# Find the next tile they're going to step on
next_pos = (this_pos + movement.unit).floor() - Vector(y=1)
if world.blocks[next_pos] == Block('air'):
with world.connection.batch_start():
bridge.append(next_pos)
world.blocks[next_pos] = Block('diamond_block')
while len(bridge) > 10:
world.blocks[bridge.popleft()] = Block('air')
last_pos = this_pos
time.sleep(0.01)
except KeyboardInterrupt:
world.say('Auto-bridge deactivated')
with world.connection.batch_start():
while bridge:
world.blocks[bridge.popleft()] = Block('air')
|
<commit_before>#!/usr/bin/env python
import time
from picraft import World, Vector, Block
world = World(ignore_errors=True)
world.say('Auto-bridge active')
last_pos = None
while True:
this_pos = world.player.pos
if last_pos is not None:
# Has the player moved more than 0.2 units in a horizontal direction?
movement = (this_pos - last_pos).replace(y=0.0)
if movement.magnitude > 0.1:
# Find the next tile they're going to step on
next_pos = (this_pos + movement.unit).floor() - Vector(y=1)
if world.blocks[next_pos] == Block('air'):
world.blocks[next_pos] = Block('diamond_block')
last_pos = this_pos
time.sleep(0.01)
<commit_msg>Update bridge recipe to limit length
Also removes bridge at the end<commit_after>#!/usr/bin/env python
from __future__ import unicode_literals
import time
from picraft import World, Vector, Block
from collections import deque
world = World(ignore_errors=True)
world.say('Auto-bridge active')
try:
bridge = deque()
last_pos = None
while True:
this_pos = world.player.pos
if last_pos is not None:
# Has the player moved more than 0.1 units in a horizontal direction?
movement = (this_pos - last_pos).replace(y=0.0)
if movement.magnitude > 0.1:
# Find the next tile they're going to step on
next_pos = (this_pos + movement.unit).floor() - Vector(y=1)
if world.blocks[next_pos] == Block('air'):
with world.connection.batch_start():
bridge.append(next_pos)
world.blocks[next_pos] = Block('diamond_block')
while len(bridge) > 10:
world.blocks[bridge.popleft()] = Block('air')
last_pos = this_pos
time.sleep(0.01)
except KeyboardInterrupt:
world.say('Auto-bridge deactivated')
with world.connection.batch_start():
while bridge:
world.blocks[bridge.popleft()] = Block('air')
|
4b46ecb6304527b38d0c2f8951b996f8d28f0bff
|
config/freetype2/__init__.py
|
config/freetype2/__init__.py
|
import os
from SCons.Script import *
def configure(conf):
env = conf.env
conf.CBCheckHome('freetype2',
inc_suffix=['/include', '/include/freetype2'])
if not 'FREETYPE2_INCLUDE' in os.environ:
try:
env.ParseConfig('pkg-config freetype2 --cflags')
except OSError:
pass
if env['PLATFORM'] == 'darwin' or int(env.get('cross_osx', 0)):
if not conf.CheckOSXFramework('CoreServices'):
raise Exception('Need CoreServices framework')
conf.CBRequireCHeader('ft2build.h')
conf.CBRequireLib('freetype')
conf.CBConfig('zlib')
conf.CBCheckLib('png')
return True
def generate(env):
env.CBAddConfigTest('freetype2', configure)
env.CBLoadTools('osx zlib')
def exists():
return 1
|
import os
from SCons.Script import *
def configure(conf):
env = conf.env
conf.CBCheckHome('freetype2',
inc_suffix=['/include', '/include/freetype2'])
if not 'FREETYPE2_INCLUDE' in os.environ:
try:
env.ParseConfig('pkg-config freetype2 --cflags')
except OSError:
try:
env.ParseConfig('freetype-config --cflags')
except OSError:
pass
if env['PLATFORM'] == 'darwin' or int(env.get('cross_osx', 0)):
if not conf.CheckOSXFramework('CoreServices'):
raise Exception('Need CoreServices framework')
conf.CBRequireCHeader('ft2build.h')
conf.CBRequireLib('freetype')
conf.CBConfig('zlib')
conf.CBCheckLib('png')
return True
def generate(env):
env.CBAddConfigTest('freetype2', configure)
env.CBLoadTools('osx zlib')
def exists():
return 1
|
Add fallback to freetype-config for compatibility.
|
Add fallback to freetype-config for compatibility.
|
Python
|
lgpl-2.1
|
CauldronDevelopmentLLC/cbang,CauldronDevelopmentLLC/cbang,CauldronDevelopmentLLC/cbang,CauldronDevelopmentLLC/cbang
|
import os
from SCons.Script import *
def configure(conf):
env = conf.env
conf.CBCheckHome('freetype2',
inc_suffix=['/include', '/include/freetype2'])
if not 'FREETYPE2_INCLUDE' in os.environ:
try:
env.ParseConfig('pkg-config freetype2 --cflags')
except OSError:
pass
if env['PLATFORM'] == 'darwin' or int(env.get('cross_osx', 0)):
if not conf.CheckOSXFramework('CoreServices'):
raise Exception('Need CoreServices framework')
conf.CBRequireCHeader('ft2build.h')
conf.CBRequireLib('freetype')
conf.CBConfig('zlib')
conf.CBCheckLib('png')
return True
def generate(env):
env.CBAddConfigTest('freetype2', configure)
env.CBLoadTools('osx zlib')
def exists():
return 1
Add fallback to freetype-config for compatibility.
|
import os
from SCons.Script import *
def configure(conf):
env = conf.env
conf.CBCheckHome('freetype2',
inc_suffix=['/include', '/include/freetype2'])
if not 'FREETYPE2_INCLUDE' in os.environ:
try:
env.ParseConfig('pkg-config freetype2 --cflags')
except OSError:
try:
env.ParseConfig('freetype-config --cflags')
except OSError:
pass
if env['PLATFORM'] == 'darwin' or int(env.get('cross_osx', 0)):
if not conf.CheckOSXFramework('CoreServices'):
raise Exception('Need CoreServices framework')
conf.CBRequireCHeader('ft2build.h')
conf.CBRequireLib('freetype')
conf.CBConfig('zlib')
conf.CBCheckLib('png')
return True
def generate(env):
env.CBAddConfigTest('freetype2', configure)
env.CBLoadTools('osx zlib')
def exists():
return 1
|
<commit_before>import os
from SCons.Script import *
def configure(conf):
env = conf.env
conf.CBCheckHome('freetype2',
inc_suffix=['/include', '/include/freetype2'])
if not 'FREETYPE2_INCLUDE' in os.environ:
try:
env.ParseConfig('pkg-config freetype2 --cflags')
except OSError:
pass
if env['PLATFORM'] == 'darwin' or int(env.get('cross_osx', 0)):
if not conf.CheckOSXFramework('CoreServices'):
raise Exception('Need CoreServices framework')
conf.CBRequireCHeader('ft2build.h')
conf.CBRequireLib('freetype')
conf.CBConfig('zlib')
conf.CBCheckLib('png')
return True
def generate(env):
env.CBAddConfigTest('freetype2', configure)
env.CBLoadTools('osx zlib')
def exists():
return 1
<commit_msg>Add fallback to freetype-config for compatibility.<commit_after>
|
import os
from SCons.Script import *
def configure(conf):
env = conf.env
conf.CBCheckHome('freetype2',
inc_suffix=['/include', '/include/freetype2'])
if not 'FREETYPE2_INCLUDE' in os.environ:
try:
env.ParseConfig('pkg-config freetype2 --cflags')
except OSError:
try:
env.ParseConfig('freetype-config --cflags')
except OSError:
pass
if env['PLATFORM'] == 'darwin' or int(env.get('cross_osx', 0)):
if not conf.CheckOSXFramework('CoreServices'):
raise Exception('Need CoreServices framework')
conf.CBRequireCHeader('ft2build.h')
conf.CBRequireLib('freetype')
conf.CBConfig('zlib')
conf.CBCheckLib('png')
return True
def generate(env):
env.CBAddConfigTest('freetype2', configure)
env.CBLoadTools('osx zlib')
def exists():
return 1
|
import os
from SCons.Script import *
def configure(conf):
env = conf.env
conf.CBCheckHome('freetype2',
inc_suffix=['/include', '/include/freetype2'])
if not 'FREETYPE2_INCLUDE' in os.environ:
try:
env.ParseConfig('pkg-config freetype2 --cflags')
except OSError:
pass
if env['PLATFORM'] == 'darwin' or int(env.get('cross_osx', 0)):
if not conf.CheckOSXFramework('CoreServices'):
raise Exception('Need CoreServices framework')
conf.CBRequireCHeader('ft2build.h')
conf.CBRequireLib('freetype')
conf.CBConfig('zlib')
conf.CBCheckLib('png')
return True
def generate(env):
env.CBAddConfigTest('freetype2', configure)
env.CBLoadTools('osx zlib')
def exists():
return 1
Add fallback to freetype-config for compatibility.import os
from SCons.Script import *
def configure(conf):
env = conf.env
conf.CBCheckHome('freetype2',
inc_suffix=['/include', '/include/freetype2'])
if not 'FREETYPE2_INCLUDE' in os.environ:
try:
env.ParseConfig('pkg-config freetype2 --cflags')
except OSError:
try:
env.ParseConfig('freetype-config --cflags')
except OSError:
pass
if env['PLATFORM'] == 'darwin' or int(env.get('cross_osx', 0)):
if not conf.CheckOSXFramework('CoreServices'):
raise Exception('Need CoreServices framework')
conf.CBRequireCHeader('ft2build.h')
conf.CBRequireLib('freetype')
conf.CBConfig('zlib')
conf.CBCheckLib('png')
return True
def generate(env):
env.CBAddConfigTest('freetype2', configure)
env.CBLoadTools('osx zlib')
def exists():
return 1
|
<commit_before>import os
from SCons.Script import *
def configure(conf):
env = conf.env
conf.CBCheckHome('freetype2',
inc_suffix=['/include', '/include/freetype2'])
if not 'FREETYPE2_INCLUDE' in os.environ:
try:
env.ParseConfig('pkg-config freetype2 --cflags')
except OSError:
pass
if env['PLATFORM'] == 'darwin' or int(env.get('cross_osx', 0)):
if not conf.CheckOSXFramework('CoreServices'):
raise Exception('Need CoreServices framework')
conf.CBRequireCHeader('ft2build.h')
conf.CBRequireLib('freetype')
conf.CBConfig('zlib')
conf.CBCheckLib('png')
return True
def generate(env):
env.CBAddConfigTest('freetype2', configure)
env.CBLoadTools('osx zlib')
def exists():
return 1
<commit_msg>Add fallback to freetype-config for compatibility.<commit_after>import os
from SCons.Script import *
def configure(conf):
env = conf.env
conf.CBCheckHome('freetype2',
inc_suffix=['/include', '/include/freetype2'])
if not 'FREETYPE2_INCLUDE' in os.environ:
try:
env.ParseConfig('pkg-config freetype2 --cflags')
except OSError:
try:
env.ParseConfig('freetype-config --cflags')
except OSError:
pass
if env['PLATFORM'] == 'darwin' or int(env.get('cross_osx', 0)):
if not conf.CheckOSXFramework('CoreServices'):
raise Exception('Need CoreServices framework')
conf.CBRequireCHeader('ft2build.h')
conf.CBRequireLib('freetype')
conf.CBConfig('zlib')
conf.CBCheckLib('png')
return True
def generate(env):
env.CBAddConfigTest('freetype2', configure)
env.CBLoadTools('osx zlib')
def exists():
return 1
|
eaf794231853ba74b49ceea7308f40d9bde008dc
|
flowworker/pdmlParse.py
|
flowworker/pdmlParse.py
|
#! /usr/bin/env python2
# vim: set fenc=utf8 ts=4 sw=4 et :
import sys
import json
import xml.sax
class PdmlHandler( xml.sax.ContentHandler ):
def __init__(self):
self.CurrentData = ""
self.type = ""
self.format = ""
self.year = ""
self.rating = ""
self.stars = ""
self.description = ""
# Call when an element starts
def startElement(self, tag, attributes):
self.CurrentData = tag
if tag == "packet":
pkt.clear()
else:
if attributes.has_key("name") and attributes.has_key("showname"):
name = attributes.getValue("name")
showname = attributes.getValue("showname")
pkt[name] = showname
# Call when an elements ends
def endElement(self, tag):
if tag == "packet":
json.dump(pkt,sys.stdout)
sys.stdout.write("\n")
sys.stdout.flush()
# Call when a character is read
def characters(self, content):
pass
if ( __name__ == "__main__"):
#pkt dictionary
pkt = {}
# create an XMLReader
parser = xml.sax.make_parser()
# turn off namepsaces
parser.setFeature(xml.sax.handler.feature_namespaces, 0)
# override the default ContextHandler
Handler = PdmlHandler()
parser.setContentHandler( Handler )
parser.parse(sys.stdin)
|
#! /usr/bin/env python2
# vim: set fenc=utf8 ts=4 sw=4 et :
import sys
import json
import xml.sax
class PdmlHandler( xml.sax.ContentHandler ):
def __init__(self):
self.CurrentData = ""
self.type = ""
self.format = ""
self.year = ""
self.rating = ""
self.stars = ""
self.description = ""
# Call when an element starts
def startElement(self, tag, attributes):
self.CurrentData = tag
if tag == "packet":
pkt.clear()
else:
if attributes.has_key("name") and attributes.has_key("show"):
name = attributes.getValue("name")
showname = attributes.getValue("show")
pkt[name] = showname
# Call when an elements ends
def endElement(self, tag):
if tag == "packet":
json.dump(pkt,sys.stdout)
sys.stdout.write("\n")
sys.stdout.flush()
# Call when a character is read
def characters(self, content):
pass
if ( __name__ == "__main__"):
#pkt dictionary
pkt = {}
# create an XMLReader
parser = xml.sax.make_parser()
# turn off namepsaces
parser.setFeature(xml.sax.handler.feature_namespaces, 0)
# override the default ContextHandler
Handler = PdmlHandler()
parser.setContentHandler( Handler )
parser.parse(sys.stdin)
|
Change value field in json output
|
Change value field in json output
|
Python
|
apache-2.0
|
Enteee/EtherFlows,Enteee/EtherFlows,Enteee/EtherFlows,Enteee/EtherFlows
|
#! /usr/bin/env python2
# vim: set fenc=utf8 ts=4 sw=4 et :
import sys
import json
import xml.sax
class PdmlHandler( xml.sax.ContentHandler ):
def __init__(self):
self.CurrentData = ""
self.type = ""
self.format = ""
self.year = ""
self.rating = ""
self.stars = ""
self.description = ""
# Call when an element starts
def startElement(self, tag, attributes):
self.CurrentData = tag
if tag == "packet":
pkt.clear()
else:
if attributes.has_key("name") and attributes.has_key("showname"):
name = attributes.getValue("name")
showname = attributes.getValue("showname")
pkt[name] = showname
# Call when an elements ends
def endElement(self, tag):
if tag == "packet":
json.dump(pkt,sys.stdout)
sys.stdout.write("\n")
sys.stdout.flush()
# Call when a character is read
def characters(self, content):
pass
if ( __name__ == "__main__"):
#pkt dictionary
pkt = {}
# create an XMLReader
parser = xml.sax.make_parser()
# turn off namepsaces
parser.setFeature(xml.sax.handler.feature_namespaces, 0)
# override the default ContextHandler
Handler = PdmlHandler()
parser.setContentHandler( Handler )
parser.parse(sys.stdin)
Change value field in json output
|
#! /usr/bin/env python2
# vim: set fenc=utf8 ts=4 sw=4 et :
import sys
import json
import xml.sax
class PdmlHandler( xml.sax.ContentHandler ):
def __init__(self):
self.CurrentData = ""
self.type = ""
self.format = ""
self.year = ""
self.rating = ""
self.stars = ""
self.description = ""
# Call when an element starts
def startElement(self, tag, attributes):
self.CurrentData = tag
if tag == "packet":
pkt.clear()
else:
if attributes.has_key("name") and attributes.has_key("show"):
name = attributes.getValue("name")
showname = attributes.getValue("show")
pkt[name] = showname
# Call when an elements ends
def endElement(self, tag):
if tag == "packet":
json.dump(pkt,sys.stdout)
sys.stdout.write("\n")
sys.stdout.flush()
# Call when a character is read
def characters(self, content):
pass
if ( __name__ == "__main__"):
#pkt dictionary
pkt = {}
# create an XMLReader
parser = xml.sax.make_parser()
# turn off namepsaces
parser.setFeature(xml.sax.handler.feature_namespaces, 0)
# override the default ContextHandler
Handler = PdmlHandler()
parser.setContentHandler( Handler )
parser.parse(sys.stdin)
|
<commit_before>#! /usr/bin/env python2
# vim: set fenc=utf8 ts=4 sw=4 et :
import sys
import json
import xml.sax
class PdmlHandler( xml.sax.ContentHandler ):
def __init__(self):
self.CurrentData = ""
self.type = ""
self.format = ""
self.year = ""
self.rating = ""
self.stars = ""
self.description = ""
# Call when an element starts
def startElement(self, tag, attributes):
self.CurrentData = tag
if tag == "packet":
pkt.clear()
else:
if attributes.has_key("name") and attributes.has_key("showname"):
name = attributes.getValue("name")
showname = attributes.getValue("showname")
pkt[name] = showname
# Call when an elements ends
def endElement(self, tag):
if tag == "packet":
json.dump(pkt,sys.stdout)
sys.stdout.write("\n")
sys.stdout.flush()
# Call when a character is read
def characters(self, content):
pass
if ( __name__ == "__main__"):
#pkt dictionary
pkt = {}
# create an XMLReader
parser = xml.sax.make_parser()
# turn off namepsaces
parser.setFeature(xml.sax.handler.feature_namespaces, 0)
# override the default ContextHandler
Handler = PdmlHandler()
parser.setContentHandler( Handler )
parser.parse(sys.stdin)
<commit_msg>Change value field in json output<commit_after>
|
#! /usr/bin/env python2
# vim: set fenc=utf8 ts=4 sw=4 et :
import sys
import json
import xml.sax
class PdmlHandler( xml.sax.ContentHandler ):
def __init__(self):
self.CurrentData = ""
self.type = ""
self.format = ""
self.year = ""
self.rating = ""
self.stars = ""
self.description = ""
# Call when an element starts
def startElement(self, tag, attributes):
self.CurrentData = tag
if tag == "packet":
pkt.clear()
else:
if attributes.has_key("name") and attributes.has_key("show"):
name = attributes.getValue("name")
showname = attributes.getValue("show")
pkt[name] = showname
# Call when an elements ends
def endElement(self, tag):
if tag == "packet":
json.dump(pkt,sys.stdout)
sys.stdout.write("\n")
sys.stdout.flush()
# Call when a character is read
def characters(self, content):
pass
if ( __name__ == "__main__"):
#pkt dictionary
pkt = {}
# create an XMLReader
parser = xml.sax.make_parser()
# turn off namepsaces
parser.setFeature(xml.sax.handler.feature_namespaces, 0)
# override the default ContextHandler
Handler = PdmlHandler()
parser.setContentHandler( Handler )
parser.parse(sys.stdin)
|
#! /usr/bin/env python2
# vim: set fenc=utf8 ts=4 sw=4 et :
import sys
import json
import xml.sax
class PdmlHandler( xml.sax.ContentHandler ):
def __init__(self):
self.CurrentData = ""
self.type = ""
self.format = ""
self.year = ""
self.rating = ""
self.stars = ""
self.description = ""
# Call when an element starts
def startElement(self, tag, attributes):
self.CurrentData = tag
if tag == "packet":
pkt.clear()
else:
if attributes.has_key("name") and attributes.has_key("showname"):
name = attributes.getValue("name")
showname = attributes.getValue("showname")
pkt[name] = showname
# Call when an elements ends
def endElement(self, tag):
if tag == "packet":
json.dump(pkt,sys.stdout)
sys.stdout.write("\n")
sys.stdout.flush()
# Call when a character is read
def characters(self, content):
pass
if ( __name__ == "__main__"):
#pkt dictionary
pkt = {}
# create an XMLReader
parser = xml.sax.make_parser()
# turn off namepsaces
parser.setFeature(xml.sax.handler.feature_namespaces, 0)
# override the default ContextHandler
Handler = PdmlHandler()
parser.setContentHandler( Handler )
parser.parse(sys.stdin)
Change value field in json output#! /usr/bin/env python2
# vim: set fenc=utf8 ts=4 sw=4 et :
import sys
import json
import xml.sax
class PdmlHandler( xml.sax.ContentHandler ):
def __init__(self):
self.CurrentData = ""
self.type = ""
self.format = ""
self.year = ""
self.rating = ""
self.stars = ""
self.description = ""
# Call when an element starts
def startElement(self, tag, attributes):
self.CurrentData = tag
if tag == "packet":
pkt.clear()
else:
if attributes.has_key("name") and attributes.has_key("show"):
name = attributes.getValue("name")
showname = attributes.getValue("show")
pkt[name] = showname
# Call when an elements ends
def endElement(self, tag):
if tag == "packet":
json.dump(pkt,sys.stdout)
sys.stdout.write("\n")
sys.stdout.flush()
# Call when a character is read
def characters(self, content):
pass
if ( __name__ == "__main__"):
#pkt dictionary
pkt = {}
# create an XMLReader
parser = xml.sax.make_parser()
# turn off namepsaces
parser.setFeature(xml.sax.handler.feature_namespaces, 0)
# override the default ContextHandler
Handler = PdmlHandler()
parser.setContentHandler( Handler )
parser.parse(sys.stdin)
|
<commit_before>#! /usr/bin/env python2
# vim: set fenc=utf8 ts=4 sw=4 et :
import sys
import json
import xml.sax
class PdmlHandler( xml.sax.ContentHandler ):
def __init__(self):
self.CurrentData = ""
self.type = ""
self.format = ""
self.year = ""
self.rating = ""
self.stars = ""
self.description = ""
# Call when an element starts
def startElement(self, tag, attributes):
self.CurrentData = tag
if tag == "packet":
pkt.clear()
else:
if attributes.has_key("name") and attributes.has_key("showname"):
name = attributes.getValue("name")
showname = attributes.getValue("showname")
pkt[name] = showname
# Call when an elements ends
def endElement(self, tag):
if tag == "packet":
json.dump(pkt,sys.stdout)
sys.stdout.write("\n")
sys.stdout.flush()
# Call when a character is read
def characters(self, content):
pass
if ( __name__ == "__main__"):
#pkt dictionary
pkt = {}
# create an XMLReader
parser = xml.sax.make_parser()
# turn off namepsaces
parser.setFeature(xml.sax.handler.feature_namespaces, 0)
# override the default ContextHandler
Handler = PdmlHandler()
parser.setContentHandler( Handler )
parser.parse(sys.stdin)
<commit_msg>Change value field in json output<commit_after>#! /usr/bin/env python2
# vim: set fenc=utf8 ts=4 sw=4 et :
import sys
import json
import xml.sax
class PdmlHandler( xml.sax.ContentHandler ):
def __init__(self):
self.CurrentData = ""
self.type = ""
self.format = ""
self.year = ""
self.rating = ""
self.stars = ""
self.description = ""
# Call when an element starts
def startElement(self, tag, attributes):
self.CurrentData = tag
if tag == "packet":
pkt.clear()
else:
if attributes.has_key("name") and attributes.has_key("show"):
name = attributes.getValue("name")
showname = attributes.getValue("show")
pkt[name] = showname
# Call when an elements ends
def endElement(self, tag):
if tag == "packet":
json.dump(pkt,sys.stdout)
sys.stdout.write("\n")
sys.stdout.flush()
# Call when a character is read
def characters(self, content):
pass
if ( __name__ == "__main__"):
#pkt dictionary
pkt = {}
# create an XMLReader
parser = xml.sax.make_parser()
# turn off namepsaces
parser.setFeature(xml.sax.handler.feature_namespaces, 0)
# override the default ContextHandler
Handler = PdmlHandler()
parser.setContentHandler( Handler )
parser.parse(sys.stdin)
|
ef2618e25cc6dfed119da8d0d4d3c26f2832a33b
|
ds/utils/logbuffer.py
|
ds/utils/logbuffer.py
|
from __future__ import absolute_import
from tempfile import NamedTemporaryFile
class LogBuffer(object):
def __init__(self, chunk_size=4096):
self.chunk_size = chunk_size
self.fp = NamedTemporaryFile()
def fileno(self):
return self.fp.fileno()
def write(self, chunk):
self.fp.write(chunk)
self.fp.flush()
def close(self, force=False):
if force:
self.fp.close()
def flush(self):
self.fp.flush()
def iter_chunks(self):
self.flush()
chunk_size = self.chunk_size
result = ''
offset = 0
with open(self.fp.name) as fp:
for chunk in fp:
result += chunk
while len(result) >= chunk_size:
newline_pos = result.rfind('\n', 0, chunk_size)
if newline_pos == -1:
newline_pos = chunk_size
else:
newline_pos += 1
yield (offset, result[:newline_pos])
offset += newline_pos
result = result[newline_pos:]
if result:
yield(offset, result)
self.close(True)
|
from __future__ import absolute_import
from tempfile import NamedTemporaryFile
class LogBuffer(object):
def __init__(self, chunk_size=4096):
self.chunk_size = chunk_size
self.fp = NamedTemporaryFile()
def fileno(self):
return self.fp.fileno()
def write(self, chunk):
self.fp.write(chunk)
self.fp.flush()
def close(self, force=False):
self.fp.flush()
if force:
self.fp.close()
def flush(self):
self.fp.flush()
def iter_chunks(self):
chunk_size = self.chunk_size
result = ''
offset = 0
with open(self.fp.name) as fp:
for chunk in fp:
result += chunk
while len(result) >= chunk_size:
newline_pos = result.rfind('\n', 0, chunk_size)
if newline_pos == -1:
newline_pos = chunk_size
else:
newline_pos += 1
yield (offset, result[:newline_pos])
offset += newline_pos
result = result[newline_pos:]
if result:
yield(offset, result)
self.close(True)
|
Move flush logic into close
|
Move flush logic into close
|
Python
|
apache-2.0
|
jkimbo/freight,jkimbo/freight,getsentry/freight,klynton/freight,jkimbo/freight,getsentry/freight,klynton/freight,klynton/freight,rshk/freight,jkimbo/freight,getsentry/freight,klynton/freight,getsentry/freight,getsentry/freight,rshk/freight,rshk/freight,rshk/freight
|
from __future__ import absolute_import
from tempfile import NamedTemporaryFile
class LogBuffer(object):
def __init__(self, chunk_size=4096):
self.chunk_size = chunk_size
self.fp = NamedTemporaryFile()
def fileno(self):
return self.fp.fileno()
def write(self, chunk):
self.fp.write(chunk)
self.fp.flush()
def close(self, force=False):
if force:
self.fp.close()
def flush(self):
self.fp.flush()
def iter_chunks(self):
self.flush()
chunk_size = self.chunk_size
result = ''
offset = 0
with open(self.fp.name) as fp:
for chunk in fp:
result += chunk
while len(result) >= chunk_size:
newline_pos = result.rfind('\n', 0, chunk_size)
if newline_pos == -1:
newline_pos = chunk_size
else:
newline_pos += 1
yield (offset, result[:newline_pos])
offset += newline_pos
result = result[newline_pos:]
if result:
yield(offset, result)
self.close(True)
Move flush logic into close
|
from __future__ import absolute_import
from tempfile import NamedTemporaryFile
class LogBuffer(object):
def __init__(self, chunk_size=4096):
self.chunk_size = chunk_size
self.fp = NamedTemporaryFile()
def fileno(self):
return self.fp.fileno()
def write(self, chunk):
self.fp.write(chunk)
self.fp.flush()
def close(self, force=False):
self.fp.flush()
if force:
self.fp.close()
def flush(self):
self.fp.flush()
def iter_chunks(self):
chunk_size = self.chunk_size
result = ''
offset = 0
with open(self.fp.name) as fp:
for chunk in fp:
result += chunk
while len(result) >= chunk_size:
newline_pos = result.rfind('\n', 0, chunk_size)
if newline_pos == -1:
newline_pos = chunk_size
else:
newline_pos += 1
yield (offset, result[:newline_pos])
offset += newline_pos
result = result[newline_pos:]
if result:
yield(offset, result)
self.close(True)
|
<commit_before>from __future__ import absolute_import
from tempfile import NamedTemporaryFile
class LogBuffer(object):
def __init__(self, chunk_size=4096):
self.chunk_size = chunk_size
self.fp = NamedTemporaryFile()
def fileno(self):
return self.fp.fileno()
def write(self, chunk):
self.fp.write(chunk)
self.fp.flush()
def close(self, force=False):
if force:
self.fp.close()
def flush(self):
self.fp.flush()
def iter_chunks(self):
self.flush()
chunk_size = self.chunk_size
result = ''
offset = 0
with open(self.fp.name) as fp:
for chunk in fp:
result += chunk
while len(result) >= chunk_size:
newline_pos = result.rfind('\n', 0, chunk_size)
if newline_pos == -1:
newline_pos = chunk_size
else:
newline_pos += 1
yield (offset, result[:newline_pos])
offset += newline_pos
result = result[newline_pos:]
if result:
yield(offset, result)
self.close(True)
<commit_msg>Move flush logic into close<commit_after>
|
from __future__ import absolute_import
from tempfile import NamedTemporaryFile
class LogBuffer(object):
def __init__(self, chunk_size=4096):
self.chunk_size = chunk_size
self.fp = NamedTemporaryFile()
def fileno(self):
return self.fp.fileno()
def write(self, chunk):
self.fp.write(chunk)
self.fp.flush()
def close(self, force=False):
self.fp.flush()
if force:
self.fp.close()
def flush(self):
self.fp.flush()
def iter_chunks(self):
chunk_size = self.chunk_size
result = ''
offset = 0
with open(self.fp.name) as fp:
for chunk in fp:
result += chunk
while len(result) >= chunk_size:
newline_pos = result.rfind('\n', 0, chunk_size)
if newline_pos == -1:
newline_pos = chunk_size
else:
newline_pos += 1
yield (offset, result[:newline_pos])
offset += newline_pos
result = result[newline_pos:]
if result:
yield(offset, result)
self.close(True)
|
from __future__ import absolute_import
from tempfile import NamedTemporaryFile
class LogBuffer(object):
def __init__(self, chunk_size=4096):
self.chunk_size = chunk_size
self.fp = NamedTemporaryFile()
def fileno(self):
return self.fp.fileno()
def write(self, chunk):
self.fp.write(chunk)
self.fp.flush()
def close(self, force=False):
if force:
self.fp.close()
def flush(self):
self.fp.flush()
def iter_chunks(self):
self.flush()
chunk_size = self.chunk_size
result = ''
offset = 0
with open(self.fp.name) as fp:
for chunk in fp:
result += chunk
while len(result) >= chunk_size:
newline_pos = result.rfind('\n', 0, chunk_size)
if newline_pos == -1:
newline_pos = chunk_size
else:
newline_pos += 1
yield (offset, result[:newline_pos])
offset += newline_pos
result = result[newline_pos:]
if result:
yield(offset, result)
self.close(True)
Move flush logic into closefrom __future__ import absolute_import
from tempfile import NamedTemporaryFile
class LogBuffer(object):
def __init__(self, chunk_size=4096):
self.chunk_size = chunk_size
self.fp = NamedTemporaryFile()
def fileno(self):
return self.fp.fileno()
def write(self, chunk):
self.fp.write(chunk)
self.fp.flush()
def close(self, force=False):
self.fp.flush()
if force:
self.fp.close()
def flush(self):
self.fp.flush()
def iter_chunks(self):
chunk_size = self.chunk_size
result = ''
offset = 0
with open(self.fp.name) as fp:
for chunk in fp:
result += chunk
while len(result) >= chunk_size:
newline_pos = result.rfind('\n', 0, chunk_size)
if newline_pos == -1:
newline_pos = chunk_size
else:
newline_pos += 1
yield (offset, result[:newline_pos])
offset += newline_pos
result = result[newline_pos:]
if result:
yield(offset, result)
self.close(True)
|
<commit_before>from __future__ import absolute_import
from tempfile import NamedTemporaryFile
class LogBuffer(object):
def __init__(self, chunk_size=4096):
self.chunk_size = chunk_size
self.fp = NamedTemporaryFile()
def fileno(self):
return self.fp.fileno()
def write(self, chunk):
self.fp.write(chunk)
self.fp.flush()
def close(self, force=False):
if force:
self.fp.close()
def flush(self):
self.fp.flush()
def iter_chunks(self):
self.flush()
chunk_size = self.chunk_size
result = ''
offset = 0
with open(self.fp.name) as fp:
for chunk in fp:
result += chunk
while len(result) >= chunk_size:
newline_pos = result.rfind('\n', 0, chunk_size)
if newline_pos == -1:
newline_pos = chunk_size
else:
newline_pos += 1
yield (offset, result[:newline_pos])
offset += newline_pos
result = result[newline_pos:]
if result:
yield(offset, result)
self.close(True)
<commit_msg>Move flush logic into close<commit_after>from __future__ import absolute_import
from tempfile import NamedTemporaryFile
class LogBuffer(object):
def __init__(self, chunk_size=4096):
self.chunk_size = chunk_size
self.fp = NamedTemporaryFile()
def fileno(self):
return self.fp.fileno()
def write(self, chunk):
self.fp.write(chunk)
self.fp.flush()
def close(self, force=False):
self.fp.flush()
if force:
self.fp.close()
def flush(self):
self.fp.flush()
def iter_chunks(self):
chunk_size = self.chunk_size
result = ''
offset = 0
with open(self.fp.name) as fp:
for chunk in fp:
result += chunk
while len(result) >= chunk_size:
newline_pos = result.rfind('\n', 0, chunk_size)
if newline_pos == -1:
newline_pos = chunk_size
else:
newline_pos += 1
yield (offset, result[:newline_pos])
offset += newline_pos
result = result[newline_pos:]
if result:
yield(offset, result)
self.close(True)
|
adf1fc4646e18db1f4f2ad9c89e6d23799cd3b5f
|
dtoolcore/__init__.py
|
dtoolcore/__init__.py
|
"""Tool for managing (scientific) data.
"""
__version__ = "2.0.0"
|
"""API for creating and interacting with dtool datasets.
"""
__version__ = "2.0.0"
|
Update dtoolcore module summary line
|
Update dtoolcore module summary line
|
Python
|
mit
|
JIC-CSB/dtoolcore
|
"""Tool for managing (scientific) data.
"""
__version__ = "2.0.0"
Update dtoolcore module summary line
|
"""API for creating and interacting with dtool datasets.
"""
__version__ = "2.0.0"
|
<commit_before>"""Tool for managing (scientific) data.
"""
__version__ = "2.0.0"
<commit_msg>Update dtoolcore module summary line<commit_after>
|
"""API for creating and interacting with dtool datasets.
"""
__version__ = "2.0.0"
|
"""Tool for managing (scientific) data.
"""
__version__ = "2.0.0"
Update dtoolcore module summary line"""API for creating and interacting with dtool datasets.
"""
__version__ = "2.0.0"
|
<commit_before>"""Tool for managing (scientific) data.
"""
__version__ = "2.0.0"
<commit_msg>Update dtoolcore module summary line<commit_after>"""API for creating and interacting with dtool datasets.
"""
__version__ = "2.0.0"
|
681379125ca83641e6906318c01b6932e0cb100b
|
whois_search.py
|
whois_search.py
|
from ipwhois import IPWhois
import whois
'''
############################################
# WHOIS #
############################################
'''
def whois_target(host):
# Technically this is still passive recon
# because you still aren't hitting target
w = whois.whois(host)
return w.text, w.emails, w
def whois_ip(ip):
# Default to not found
cidr, range = "Not found"
# Get whois for IP. Returns a list with dictionary
ip_dict = IPWhois(ip).lookup_rws()
if ip_dict['nets'][0].get('cidr')
cidr = ip_dict['nets'][0].get('cidr')
if ip_dict['nets'][0].get('range'):
range = ip_dict['nets'][0].get('range')
return cidr, range
|
from ipwhois import IPWhois
import whois
'''
############################################
# WHOIS #
############################################
'''
def whois_target(host):
# Technically this is still passive recon
# because you still aren't hitting target
w = whois.whois(host)
return w.text, w.emails, w
def whois_ip(ip):
# Default to not found
cidr, ranges = "CIDR not found", "Range not found"
# Get whois for IP. Returns a list with dictionary
ip_dict = IPWhois(ip).lookup_rws()
if ip_dict['nets'][0].get('cidr')
cidr = ip_dict['nets'][0].get('cidr')
if ip_dict['nets'][0].get('range'):
ranges = ip_dict['nets'][0].get('range')
return cidr, ranges
|
Fix whois ip search (rename ranges/mult var)
|
Fix whois ip search (rename ranges/mult var)
|
Python
|
unlicense
|
nethunteros/punter
|
from ipwhois import IPWhois
import whois
'''
############################################
# WHOIS #
############################################
'''
def whois_target(host):
# Technically this is still passive recon
# because you still aren't hitting target
w = whois.whois(host)
return w.text, w.emails, w
def whois_ip(ip):
# Default to not found
cidr, range = "Not found"
# Get whois for IP. Returns a list with dictionary
ip_dict = IPWhois(ip).lookup_rws()
if ip_dict['nets'][0].get('cidr')
cidr = ip_dict['nets'][0].get('cidr')
if ip_dict['nets'][0].get('range'):
range = ip_dict['nets'][0].get('range')
return cidr, rangeFix whois ip search (rename ranges/mult var)
|
from ipwhois import IPWhois
import whois
'''
############################################
# WHOIS #
############################################
'''
def whois_target(host):
# Technically this is still passive recon
# because you still aren't hitting target
w = whois.whois(host)
return w.text, w.emails, w
def whois_ip(ip):
# Default to not found
cidr, ranges = "CIDR not found", "Range not found"
# Get whois for IP. Returns a list with dictionary
ip_dict = IPWhois(ip).lookup_rws()
if ip_dict['nets'][0].get('cidr')
cidr = ip_dict['nets'][0].get('cidr')
if ip_dict['nets'][0].get('range'):
ranges = ip_dict['nets'][0].get('range')
return cidr, ranges
|
<commit_before>from ipwhois import IPWhois
import whois
'''
############################################
# WHOIS #
############################################
'''
def whois_target(host):
# Technically this is still passive recon
# because you still aren't hitting target
w = whois.whois(host)
return w.text, w.emails, w
def whois_ip(ip):
# Default to not found
cidr, range = "Not found"
# Get whois for IP. Returns a list with dictionary
ip_dict = IPWhois(ip).lookup_rws()
if ip_dict['nets'][0].get('cidr')
cidr = ip_dict['nets'][0].get('cidr')
if ip_dict['nets'][0].get('range'):
range = ip_dict['nets'][0].get('range')
return cidr, range<commit_msg>Fix whois ip search (rename ranges/mult var)<commit_after>
|
from ipwhois import IPWhois
import whois
'''
############################################
# WHOIS #
############################################
'''
def whois_target(host):
# Technically this is still passive recon
# because you still aren't hitting target
w = whois.whois(host)
return w.text, w.emails, w
def whois_ip(ip):
# Default to not found
cidr, ranges = "CIDR not found", "Range not found"
# Get whois for IP. Returns a list with dictionary
ip_dict = IPWhois(ip).lookup_rws()
if ip_dict['nets'][0].get('cidr')
cidr = ip_dict['nets'][0].get('cidr')
if ip_dict['nets'][0].get('range'):
ranges = ip_dict['nets'][0].get('range')
return cidr, ranges
|
from ipwhois import IPWhois
import whois
'''
############################################
# WHOIS #
############################################
'''
def whois_target(host):
# Technically this is still passive recon
# because you still aren't hitting target
w = whois.whois(host)
return w.text, w.emails, w
def whois_ip(ip):
# Default to not found
cidr, range = "Not found"
# Get whois for IP. Returns a list with dictionary
ip_dict = IPWhois(ip).lookup_rws()
if ip_dict['nets'][0].get('cidr')
cidr = ip_dict['nets'][0].get('cidr')
if ip_dict['nets'][0].get('range'):
range = ip_dict['nets'][0].get('range')
return cidr, rangeFix whois ip search (rename ranges/mult var)from ipwhois import IPWhois
import whois
'''
############################################
# WHOIS #
############################################
'''
def whois_target(host):
# Technically this is still passive recon
# because you still aren't hitting target
w = whois.whois(host)
return w.text, w.emails, w
def whois_ip(ip):
# Default to not found
cidr, ranges = "CIDR not found", "Range not found"
# Get whois for IP. Returns a list with dictionary
ip_dict = IPWhois(ip).lookup_rws()
if ip_dict['nets'][0].get('cidr')
cidr = ip_dict['nets'][0].get('cidr')
if ip_dict['nets'][0].get('range'):
ranges = ip_dict['nets'][0].get('range')
return cidr, ranges
|
<commit_before>from ipwhois import IPWhois
import whois
'''
############################################
# WHOIS #
############################################
'''
def whois_target(host):
# Technically this is still passive recon
# because you still aren't hitting target
w = whois.whois(host)
return w.text, w.emails, w
def whois_ip(ip):
# Default to not found
cidr, range = "Not found"
# Get whois for IP. Returns a list with dictionary
ip_dict = IPWhois(ip).lookup_rws()
if ip_dict['nets'][0].get('cidr')
cidr = ip_dict['nets'][0].get('cidr')
if ip_dict['nets'][0].get('range'):
range = ip_dict['nets'][0].get('range')
return cidr, range<commit_msg>Fix whois ip search (rename ranges/mult var)<commit_after>from ipwhois import IPWhois
import whois
'''
############################################
# WHOIS #
############################################
'''
def whois_target(host):
# Technically this is still passive recon
# because you still aren't hitting target
w = whois.whois(host)
return w.text, w.emails, w
def whois_ip(ip):
# Default to not found
cidr, ranges = "CIDR not found", "Range not found"
# Get whois for IP. Returns a list with dictionary
ip_dict = IPWhois(ip).lookup_rws()
if ip_dict['nets'][0].get('cidr')
cidr = ip_dict['nets'][0].get('cidr')
if ip_dict['nets'][0].get('range'):
ranges = ip_dict['nets'][0].get('range')
return cidr, ranges
|
514c5c684f314cc4322dfd6ba4ff16eca12796e4
|
scripts/BemsPallet.py
|
scripts/BemsPallet.py
|
#!/usr/bin/env python
# * coding: utf8 *
'''
BemsPallet.py
A module that contains a pallet to update the querable layers behind our UTM basemaps
'''
from forklift.models import Pallet
from os.path import join
class BemsPallet(Pallet):
def __init__(self):
super(BemsPallet, self).__init__()
self.arcgis_services = [('BEMS/Boundaries', 'MapServer')]
self.destination_workspace = 'C:\\Scheduled\\Staging\\SGID.gdb'
self.copy_data = [self.destination_workspace]
def build(self, configuration=None):
self.add_crates(['EMSServiceAreas'], {'source_workspace': join(self.garage, 'SGID10.sde'),
'destination_workspace': self.destination_workspace})
|
#!/usr/bin/env python
# * coding: utf8 *
'''
BemsPallet.py
A module that contains a pallet to update the querable layers behind our UTM basemaps
'''
from forklift.models import Pallet
from os.path import join
class BemsPallet(Pallet):
def __init__(self):
super(BemsPallet, self).__init__()
self.arcgis_services = [('BEMS/Boundaries', 'MapServer')]
self.destination_workspace = 'C:\\Scheduled\\Staging\\Health.gdb'
self.copy_data = [self.destination_workspace]
def build(self, configuration=None):
self.add_crates(['EMSServiceAreas'], {'source_workspace': join(self.garage, 'SGID10.sde'),
'destination_workspace': self.destination_workspace})
|
Move data into owner gdb
|
Move data into owner gdb
|
Python
|
mit
|
agrc/BEMS,agrc/BEMS,agrc/BEMS
|
#!/usr/bin/env python
# * coding: utf8 *
'''
BemsPallet.py
A module that contains a pallet to update the querable layers behind our UTM basemaps
'''
from forklift.models import Pallet
from os.path import join
class BemsPallet(Pallet):
def __init__(self):
super(BemsPallet, self).__init__()
self.arcgis_services = [('BEMS/Boundaries', 'MapServer')]
self.destination_workspace = 'C:\\Scheduled\\Staging\\SGID.gdb'
self.copy_data = [self.destination_workspace]
def build(self, configuration=None):
self.add_crates(['EMSServiceAreas'], {'source_workspace': join(self.garage, 'SGID10.sde'),
'destination_workspace': self.destination_workspace})
Move data into owner gdb
|
#!/usr/bin/env python
# * coding: utf8 *
'''
BemsPallet.py
A module that contains a pallet to update the querable layers behind our UTM basemaps
'''
from forklift.models import Pallet
from os.path import join
class BemsPallet(Pallet):
def __init__(self):
super(BemsPallet, self).__init__()
self.arcgis_services = [('BEMS/Boundaries', 'MapServer')]
self.destination_workspace = 'C:\\Scheduled\\Staging\\Health.gdb'
self.copy_data = [self.destination_workspace]
def build(self, configuration=None):
self.add_crates(['EMSServiceAreas'], {'source_workspace': join(self.garage, 'SGID10.sde'),
'destination_workspace': self.destination_workspace})
|
<commit_before>#!/usr/bin/env python
# * coding: utf8 *
'''
BemsPallet.py
A module that contains a pallet to update the querable layers behind our UTM basemaps
'''
from forklift.models import Pallet
from os.path import join
class BemsPallet(Pallet):
def __init__(self):
super(BemsPallet, self).__init__()
self.arcgis_services = [('BEMS/Boundaries', 'MapServer')]
self.destination_workspace = 'C:\\Scheduled\\Staging\\SGID.gdb'
self.copy_data = [self.destination_workspace]
def build(self, configuration=None):
self.add_crates(['EMSServiceAreas'], {'source_workspace': join(self.garage, 'SGID10.sde'),
'destination_workspace': self.destination_workspace})
<commit_msg>Move data into owner gdb<commit_after>
|
#!/usr/bin/env python
# * coding: utf8 *
'''
BemsPallet.py
A module that contains a pallet to update the querable layers behind our UTM basemaps
'''
from forklift.models import Pallet
from os.path import join
class BemsPallet(Pallet):
def __init__(self):
super(BemsPallet, self).__init__()
self.arcgis_services = [('BEMS/Boundaries', 'MapServer')]
self.destination_workspace = 'C:\\Scheduled\\Staging\\Health.gdb'
self.copy_data = [self.destination_workspace]
def build(self, configuration=None):
self.add_crates(['EMSServiceAreas'], {'source_workspace': join(self.garage, 'SGID10.sde'),
'destination_workspace': self.destination_workspace})
|
#!/usr/bin/env python
# * coding: utf8 *
'''
BemsPallet.py
A module that contains a pallet to update the querable layers behind our UTM basemaps
'''
from forklift.models import Pallet
from os.path import join
class BemsPallet(Pallet):
def __init__(self):
super(BemsPallet, self).__init__()
self.arcgis_services = [('BEMS/Boundaries', 'MapServer')]
self.destination_workspace = 'C:\\Scheduled\\Staging\\SGID.gdb'
self.copy_data = [self.destination_workspace]
def build(self, configuration=None):
self.add_crates(['EMSServiceAreas'], {'source_workspace': join(self.garage, 'SGID10.sde'),
'destination_workspace': self.destination_workspace})
Move data into owner gdb#!/usr/bin/env python
# * coding: utf8 *
'''
BemsPallet.py
A module that contains a pallet to update the querable layers behind our UTM basemaps
'''
from forklift.models import Pallet
from os.path import join
class BemsPallet(Pallet):
def __init__(self):
super(BemsPallet, self).__init__()
self.arcgis_services = [('BEMS/Boundaries', 'MapServer')]
self.destination_workspace = 'C:\\Scheduled\\Staging\\Health.gdb'
self.copy_data = [self.destination_workspace]
def build(self, configuration=None):
self.add_crates(['EMSServiceAreas'], {'source_workspace': join(self.garage, 'SGID10.sde'),
'destination_workspace': self.destination_workspace})
|
<commit_before>#!/usr/bin/env python
# * coding: utf8 *
'''
BemsPallet.py
A module that contains a pallet to update the querable layers behind our UTM basemaps
'''
from forklift.models import Pallet
from os.path import join
class BemsPallet(Pallet):
def __init__(self):
super(BemsPallet, self).__init__()
self.arcgis_services = [('BEMS/Boundaries', 'MapServer')]
self.destination_workspace = 'C:\\Scheduled\\Staging\\SGID.gdb'
self.copy_data = [self.destination_workspace]
def build(self, configuration=None):
self.add_crates(['EMSServiceAreas'], {'source_workspace': join(self.garage, 'SGID10.sde'),
'destination_workspace': self.destination_workspace})
<commit_msg>Move data into owner gdb<commit_after>#!/usr/bin/env python
# * coding: utf8 *
'''
BemsPallet.py
A module that contains a pallet to update the querable layers behind our UTM basemaps
'''
from forklift.models import Pallet
from os.path import join
class BemsPallet(Pallet):
def __init__(self):
super(BemsPallet, self).__init__()
self.arcgis_services = [('BEMS/Boundaries', 'MapServer')]
self.destination_workspace = 'C:\\Scheduled\\Staging\\Health.gdb'
self.copy_data = [self.destination_workspace]
def build(self, configuration=None):
self.add_crates(['EMSServiceAreas'], {'source_workspace': join(self.garage, 'SGID10.sde'),
'destination_workspace': self.destination_workspace})
|
b48e39aafd9ef413216444a6bfb97e867aa40e1c
|
tests/auto/keras/test_constraints.py
|
tests/auto/keras/test_constraints.py
|
import unittest
import numpy as np
from theano import tensor as T
class TestConstraints(unittest.TestCase):
def setUp(self):
self.some_values = [0.1,0.5,3,8,1e-7]
self.example_array = np.random.random((100,100))*100. - 50.
self.example_array[0,0] = 0. # 0 could possibly cause trouble
def test_maxnorm(self):
from keras.constraints import maxnorm
for m in self.some_values:
norm_instance = maxnorm(m)
normed = norm_instance(self.example_array)
assert(np.all(normed.eval() < m))
if __name__ == '__main__':
unittest.main()
|
import unittest
import numpy as np
from theano import tensor as T
class TestConstraints(unittest.TestCase):
def setUp(self):
self.some_values = [0.1,0.5,3,8,1e-7]
self.example_array = np.random.random((100,100))*100. - 50.
self.example_array[0,0] = 0. # 0 could possibly cause trouble
def test_maxnorm(self):
from keras.constraints import maxnorm
for m in self.some_values:
norm_instance = maxnorm(m)
normed = norm_instance(self.example_array)
assert(np.all(normed.eval() < m))
def test_nonneg(self):
from keras.constraints import nonneg
normed = nonneg(self.example_array)
assert(np.all(np.min(normed.eval(),axis=1) == 0.))
def test_identity(self):
from keras.constraints import identity
normed = identity(self.example_array)
assert(np.all(normed == self.example_array))
def test_unitnorm(self):
from keras.constraints import unitnorm
normed = unitnorm(self.example_array)
self.assertAlmostEqual(
np.max(np.abs(np.sqrt(np.sum(normed.eval()**2,axis=1))-1.))
,0.)
if __name__ == '__main__':
unittest.main()
|
Add a test for the identity, non-negative, and unit-norm constraints
|
Add a test for the identity, non-negative, and unit-norm constraints
|
Python
|
mit
|
saurav111/keras,kfoss/keras,Aureliu/keras,stephenbalaban/keras,chenych11/keras,jiumem/keras,cvfish/keras,xiaoda99/keras,rodrigob/keras,iamtrask/keras,wubr2000/keras,navyjeff/keras,keskarnitish/keras,eulerreich/keras,zxytim/keras,tencrance/keras,printedheart/keras,rudaoshi/keras,dribnet/keras,pthaike/keras,cheng6076/keras,nebw/keras,johmathe/keras,harshhemani/keras,llcao/keras,jayhetee/keras,wxs/keras,JasonTam/keras,mikekestemont/keras,DLlearn/keras,zhangxujinsh/keras,fmacias64/keras,jonberliner/keras,ledbetdr/keras,zhmz90/keras,Cadene/keras,pjadzinsky/keras,OlafLee/keras,kod3r/keras,jalexvig/keras,yingzha/keras,abayowbo/keras,vseledkin/keras,ashhher3/keras,ml-lab/keras,kuza55/keras,gamer13/keras,bboalimoe/keras,keras-team/keras,jasonyaw/keras,relh/keras,jbolinge/keras,marchick209/keras,florentchandelier/keras,ogrisel/keras,zxsted/keras,MagicSen/keras,nt/keras,amy12xx/keras,nzer0/keras,why11002526/keras,iScienceLuvr/keras,danielforsyth/keras,dhruvparamhans/keras,bottler/keras,Yingmin-Li/keras,asampat3090/keras,xurantju/keras,3dconv/keras,untom/keras,gavinmh/keras,dolaameng/keras,LIBOTAO/keras,jimgoo/keras,hhaoyan/keras,imcomking/Convolutional-GRU-keras-extension-,dxj19831029/keras,sjuvekar/keras,happyboy310/keras,jhauswald/keras,ekamioka/keras,brainwater/keras,Smerity/keras,rlkelly/keras,kemaswill/keras,ypkang/keras,nehz/keras,meanmee/keras,EderSantana/keras,DeepGnosis/keras,keras-team/keras,daviddiazvico/keras
|
import unittest
import numpy as np
from theano import tensor as T
class TestConstraints(unittest.TestCase):
def setUp(self):
self.some_values = [0.1,0.5,3,8,1e-7]
self.example_array = np.random.random((100,100))*100. - 50.
self.example_array[0,0] = 0. # 0 could possibly cause trouble
def test_maxnorm(self):
from keras.constraints import maxnorm
for m in self.some_values:
norm_instance = maxnorm(m)
normed = norm_instance(self.example_array)
assert(np.all(normed.eval() < m))
if __name__ == '__main__':
unittest.main()
Add a test for the identity, non-negative, and unit-norm constraints
|
import unittest
import numpy as np
from theano import tensor as T
class TestConstraints(unittest.TestCase):
def setUp(self):
self.some_values = [0.1,0.5,3,8,1e-7]
self.example_array = np.random.random((100,100))*100. - 50.
self.example_array[0,0] = 0. # 0 could possibly cause trouble
def test_maxnorm(self):
from keras.constraints import maxnorm
for m in self.some_values:
norm_instance = maxnorm(m)
normed = norm_instance(self.example_array)
assert(np.all(normed.eval() < m))
def test_nonneg(self):
from keras.constraints import nonneg
normed = nonneg(self.example_array)
assert(np.all(np.min(normed.eval(),axis=1) == 0.))
def test_identity(self):
from keras.constraints import identity
normed = identity(self.example_array)
assert(np.all(normed == self.example_array))
def test_unitnorm(self):
from keras.constraints import unitnorm
normed = unitnorm(self.example_array)
self.assertAlmostEqual(
np.max(np.abs(np.sqrt(np.sum(normed.eval()**2,axis=1))-1.))
,0.)
if __name__ == '__main__':
unittest.main()
|
<commit_before>import unittest
import numpy as np
from theano import tensor as T
class TestConstraints(unittest.TestCase):
def setUp(self):
self.some_values = [0.1,0.5,3,8,1e-7]
self.example_array = np.random.random((100,100))*100. - 50.
self.example_array[0,0] = 0. # 0 could possibly cause trouble
def test_maxnorm(self):
from keras.constraints import maxnorm
for m in self.some_values:
norm_instance = maxnorm(m)
normed = norm_instance(self.example_array)
assert(np.all(normed.eval() < m))
if __name__ == '__main__':
unittest.main()
<commit_msg>Add a test for the identity, non-negative, and unit-norm constraints<commit_after>
|
import unittest
import numpy as np
from theano import tensor as T
class TestConstraints(unittest.TestCase):
def setUp(self):
self.some_values = [0.1,0.5,3,8,1e-7]
self.example_array = np.random.random((100,100))*100. - 50.
self.example_array[0,0] = 0. # 0 could possibly cause trouble
def test_maxnorm(self):
from keras.constraints import maxnorm
for m in self.some_values:
norm_instance = maxnorm(m)
normed = norm_instance(self.example_array)
assert(np.all(normed.eval() < m))
def test_nonneg(self):
from keras.constraints import nonneg
normed = nonneg(self.example_array)
assert(np.all(np.min(normed.eval(),axis=1) == 0.))
def test_identity(self):
from keras.constraints import identity
normed = identity(self.example_array)
assert(np.all(normed == self.example_array))
def test_unitnorm(self):
from keras.constraints import unitnorm
normed = unitnorm(self.example_array)
self.assertAlmostEqual(
np.max(np.abs(np.sqrt(np.sum(normed.eval()**2,axis=1))-1.))
,0.)
if __name__ == '__main__':
unittest.main()
|
import unittest
import numpy as np
from theano import tensor as T
class TestConstraints(unittest.TestCase):
def setUp(self):
self.some_values = [0.1,0.5,3,8,1e-7]
self.example_array = np.random.random((100,100))*100. - 50.
self.example_array[0,0] = 0. # 0 could possibly cause trouble
def test_maxnorm(self):
from keras.constraints import maxnorm
for m in self.some_values:
norm_instance = maxnorm(m)
normed = norm_instance(self.example_array)
assert(np.all(normed.eval() < m))
if __name__ == '__main__':
unittest.main()
Add a test for the identity, non-negative, and unit-norm constraintsimport unittest
import numpy as np
from theano import tensor as T
class TestConstraints(unittest.TestCase):
def setUp(self):
self.some_values = [0.1,0.5,3,8,1e-7]
self.example_array = np.random.random((100,100))*100. - 50.
self.example_array[0,0] = 0. # 0 could possibly cause trouble
def test_maxnorm(self):
from keras.constraints import maxnorm
for m in self.some_values:
norm_instance = maxnorm(m)
normed = norm_instance(self.example_array)
assert(np.all(normed.eval() < m))
def test_nonneg(self):
from keras.constraints import nonneg
normed = nonneg(self.example_array)
assert(np.all(np.min(normed.eval(),axis=1) == 0.))
def test_identity(self):
from keras.constraints import identity
normed = identity(self.example_array)
assert(np.all(normed == self.example_array))
def test_unitnorm(self):
from keras.constraints import unitnorm
normed = unitnorm(self.example_array)
self.assertAlmostEqual(
np.max(np.abs(np.sqrt(np.sum(normed.eval()**2,axis=1))-1.))
,0.)
if __name__ == '__main__':
unittest.main()
|
<commit_before>import unittest
import numpy as np
from theano import tensor as T
class TestConstraints(unittest.TestCase):
def setUp(self):
self.some_values = [0.1,0.5,3,8,1e-7]
self.example_array = np.random.random((100,100))*100. - 50.
self.example_array[0,0] = 0. # 0 could possibly cause trouble
def test_maxnorm(self):
from keras.constraints import maxnorm
for m in self.some_values:
norm_instance = maxnorm(m)
normed = norm_instance(self.example_array)
assert(np.all(normed.eval() < m))
if __name__ == '__main__':
unittest.main()
<commit_msg>Add a test for the identity, non-negative, and unit-norm constraints<commit_after>import unittest
import numpy as np
from theano import tensor as T
class TestConstraints(unittest.TestCase):
def setUp(self):
self.some_values = [0.1,0.5,3,8,1e-7]
self.example_array = np.random.random((100,100))*100. - 50.
self.example_array[0,0] = 0. # 0 could possibly cause trouble
def test_maxnorm(self):
from keras.constraints import maxnorm
for m in self.some_values:
norm_instance = maxnorm(m)
normed = norm_instance(self.example_array)
assert(np.all(normed.eval() < m))
def test_nonneg(self):
from keras.constraints import nonneg
normed = nonneg(self.example_array)
assert(np.all(np.min(normed.eval(),axis=1) == 0.))
def test_identity(self):
from keras.constraints import identity
normed = identity(self.example_array)
assert(np.all(normed == self.example_array))
def test_unitnorm(self):
from keras.constraints import unitnorm
normed = unitnorm(self.example_array)
self.assertAlmostEqual(
np.max(np.abs(np.sqrt(np.sum(normed.eval()**2,axis=1))-1.))
,0.)
if __name__ == '__main__':
unittest.main()
|
8b7660193f5a18a2d0addd218f2fd2d77d8f98ac
|
app/grandchallenge/cases/serializers.py
|
app/grandchallenge/cases/serializers.py
|
from rest_framework import serializers
from grandchallenge.cases.models import Image, ImageFile
class ImageFileSerializer(serializers.ModelSerializer):
class Meta:
model = ImageFile
fields = ("pk", "image", "file")
class ImageSerializer(serializers.ModelSerializer):
files = ImageFileSerializer(many=True, read_only=True)
class Meta:
model = Image
fields = (
"pk",
"name",
"study",
"files",
"width",
"height",
"depth",
"color_space",
"modality",
"eye_choice",
"stereoscopic_choice",
"field_of_view",
"shape_without_color",
"shape",
)
|
from rest_framework import serializers
from grandchallenge.cases.models import Image, ImageFile
class ImageFileSerializer(serializers.ModelSerializer):
class Meta:
model = ImageFile
fields = ("pk", "image", "file", "image_type")
class ImageSerializer(serializers.ModelSerializer):
files = ImageFileSerializer(many=True, read_only=True)
class Meta:
model = Image
fields = (
"pk",
"name",
"study",
"files",
"width",
"height",
"depth",
"color_space",
"modality",
"eye_choice",
"stereoscopic_choice",
"field_of_view",
"shape_without_color",
"shape",
)
|
Return image type of file in api
|
Return image type of file in api
|
Python
|
apache-2.0
|
comic/comic-django,comic/comic-django,comic/comic-django,comic/comic-django,comic/comic-django
|
from rest_framework import serializers
from grandchallenge.cases.models import Image, ImageFile
class ImageFileSerializer(serializers.ModelSerializer):
class Meta:
model = ImageFile
fields = ("pk", "image", "file")
class ImageSerializer(serializers.ModelSerializer):
files = ImageFileSerializer(many=True, read_only=True)
class Meta:
model = Image
fields = (
"pk",
"name",
"study",
"files",
"width",
"height",
"depth",
"color_space",
"modality",
"eye_choice",
"stereoscopic_choice",
"field_of_view",
"shape_without_color",
"shape",
)
Return image type of file in api
|
from rest_framework import serializers
from grandchallenge.cases.models import Image, ImageFile
class ImageFileSerializer(serializers.ModelSerializer):
class Meta:
model = ImageFile
fields = ("pk", "image", "file", "image_type")
class ImageSerializer(serializers.ModelSerializer):
files = ImageFileSerializer(many=True, read_only=True)
class Meta:
model = Image
fields = (
"pk",
"name",
"study",
"files",
"width",
"height",
"depth",
"color_space",
"modality",
"eye_choice",
"stereoscopic_choice",
"field_of_view",
"shape_without_color",
"shape",
)
|
<commit_before>from rest_framework import serializers
from grandchallenge.cases.models import Image, ImageFile
class ImageFileSerializer(serializers.ModelSerializer):
class Meta:
model = ImageFile
fields = ("pk", "image", "file")
class ImageSerializer(serializers.ModelSerializer):
files = ImageFileSerializer(many=True, read_only=True)
class Meta:
model = Image
fields = (
"pk",
"name",
"study",
"files",
"width",
"height",
"depth",
"color_space",
"modality",
"eye_choice",
"stereoscopic_choice",
"field_of_view",
"shape_without_color",
"shape",
)
<commit_msg>Return image type of file in api<commit_after>
|
from rest_framework import serializers
from grandchallenge.cases.models import Image, ImageFile
class ImageFileSerializer(serializers.ModelSerializer):
class Meta:
model = ImageFile
fields = ("pk", "image", "file", "image_type")
class ImageSerializer(serializers.ModelSerializer):
files = ImageFileSerializer(many=True, read_only=True)
class Meta:
model = Image
fields = (
"pk",
"name",
"study",
"files",
"width",
"height",
"depth",
"color_space",
"modality",
"eye_choice",
"stereoscopic_choice",
"field_of_view",
"shape_without_color",
"shape",
)
|
from rest_framework import serializers
from grandchallenge.cases.models import Image, ImageFile
class ImageFileSerializer(serializers.ModelSerializer):
class Meta:
model = ImageFile
fields = ("pk", "image", "file")
class ImageSerializer(serializers.ModelSerializer):
files = ImageFileSerializer(many=True, read_only=True)
class Meta:
model = Image
fields = (
"pk",
"name",
"study",
"files",
"width",
"height",
"depth",
"color_space",
"modality",
"eye_choice",
"stereoscopic_choice",
"field_of_view",
"shape_without_color",
"shape",
)
Return image type of file in apifrom rest_framework import serializers
from grandchallenge.cases.models import Image, ImageFile
class ImageFileSerializer(serializers.ModelSerializer):
class Meta:
model = ImageFile
fields = ("pk", "image", "file", "image_type")
class ImageSerializer(serializers.ModelSerializer):
files = ImageFileSerializer(many=True, read_only=True)
class Meta:
model = Image
fields = (
"pk",
"name",
"study",
"files",
"width",
"height",
"depth",
"color_space",
"modality",
"eye_choice",
"stereoscopic_choice",
"field_of_view",
"shape_without_color",
"shape",
)
|
<commit_before>from rest_framework import serializers
from grandchallenge.cases.models import Image, ImageFile
class ImageFileSerializer(serializers.ModelSerializer):
class Meta:
model = ImageFile
fields = ("pk", "image", "file")
class ImageSerializer(serializers.ModelSerializer):
files = ImageFileSerializer(many=True, read_only=True)
class Meta:
model = Image
fields = (
"pk",
"name",
"study",
"files",
"width",
"height",
"depth",
"color_space",
"modality",
"eye_choice",
"stereoscopic_choice",
"field_of_view",
"shape_without_color",
"shape",
)
<commit_msg>Return image type of file in api<commit_after>from rest_framework import serializers
from grandchallenge.cases.models import Image, ImageFile
class ImageFileSerializer(serializers.ModelSerializer):
class Meta:
model = ImageFile
fields = ("pk", "image", "file", "image_type")
class ImageSerializer(serializers.ModelSerializer):
files = ImageFileSerializer(many=True, read_only=True)
class Meta:
model = Image
fields = (
"pk",
"name",
"study",
"files",
"width",
"height",
"depth",
"color_space",
"modality",
"eye_choice",
"stereoscopic_choice",
"field_of_view",
"shape_without_color",
"shape",
)
|
8297ca0006362d6a99fef6d8ad94c9fc094cc3ee
|
oscar/templatetags/form_tags.py
|
oscar/templatetags/form_tags.py
|
from django import template
register = template.Library()
@register.tag
def annotate_form_field(parser, token):
"""
Set an attribute on a form field with the widget type
This means templates can use the widget type to render things differently
if they want to. Django doesn't make this available by default.
"""
args = token.split_contents()
if len(args) < 2:
raise template.TemplateSyntaxError(
"annotate_form_field tag requires a form field to be passed")
return FormFieldNode(args[1])
class FormFieldNode(template.Node):
def __init__(self, field_str):
self.field = template.Variable(field_str)
def render(self, context):
field = self.field.resolve(context)
field.widget_type = field.field.widget.__class__.__name__
return ''
|
from django import template
register = template.Library()
@register.tag
def annotate_form_field(parser, token):
"""
Set an attribute on a form field with the widget type
This means templates can use the widget type to render things differently
if they want to. Django doesn't make this available by default.
"""
args = token.split_contents()
if len(args) < 2:
raise template.TemplateSyntaxError(
"annotate_form_field tag requires a form field to be passed")
return FormFieldNode(args[1])
class FormFieldNode(template.Node):
def __init__(self, field_str):
self.field = template.Variable(field_str)
def render(self, context):
field = self.field.resolve(context)
if hasattr(field, 'field'):
field.widget_type = field.field.widget.__class__.__name__
return ''
|
Adjust form templatetag to handle missing field var
|
Adjust form templatetag to handle missing field var
When a non-existant field gets passed, the templatetag was raising an
unseemly AttributeError. This change checks to see if the passed var is
actually a form field to avoid said error.
|
Python
|
bsd-3-clause
|
WillisXChen/django-oscar,spartonia/django-oscar,solarissmoke/django-oscar,ka7eh/django-oscar,manevant/django-oscar,ademuk/django-oscar,dongguangming/django-oscar,thechampanurag/django-oscar,elliotthill/django-oscar,vovanbo/django-oscar,jlmadurga/django-oscar,lijoantony/django-oscar,spartonia/django-oscar,WadeYuChen/django-oscar,michaelkuty/django-oscar,bnprk/django-oscar,makielab/django-oscar,mexeniz/django-oscar,machtfit/django-oscar,amirrpp/django-oscar,solarissmoke/django-oscar,adamend/django-oscar,taedori81/django-oscar,faratro/django-oscar,adamend/django-oscar,john-parton/django-oscar,WillisXChen/django-oscar,QLGu/django-oscar,taedori81/django-oscar,jinnykoo/wuyisj,lijoantony/django-oscar,eddiep1101/django-oscar,marcoantoniooliveira/labweb,DrOctogon/unwash_ecom,anentropic/django-oscar,Bogh/django-oscar,Jannes123/django-oscar,josesanch/django-oscar,okfish/django-oscar,makielab/django-oscar,bschuon/django-oscar,ahmetdaglarbas/e-commerce,binarydud/django-oscar,jinnykoo/wuyisj.com,WillisXChen/django-oscar,saadatqadri/django-oscar,adamend/django-oscar,QLGu/django-oscar,jmt4/django-oscar,rocopartners/django-oscar,itbabu/django-oscar,ahmetdaglarbas/e-commerce,kapt/django-oscar,jinnykoo/wuyisj,amirrpp/django-oscar,Jannes123/django-oscar,WadeYuChen/django-oscar,binarydud/django-oscar,WillisXChen/django-oscar,saadatqadri/django-oscar,nfletton/django-oscar,jinnykoo/wuyisj,manevant/django-oscar,anentropic/django-oscar,jlmadurga/django-oscar,bnprk/django-oscar,mexeniz/django-oscar,binarydud/django-oscar,django-oscar/django-oscar,michaelkuty/django-oscar,itbabu/django-oscar,spartonia/django-oscar,sasha0/django-oscar,rocopartners/django-oscar,bnprk/django-oscar,dongguangming/django-oscar,ka7eh/django-oscar,Idematica/django-oscar,faratro/django-oscar,amirrpp/django-oscar,lijoantony/django-oscar,ka7eh/django-oscar,Bogh/django-oscar,thechampanurag/django-oscar,Bogh/django-oscar,pasqualguerrero/django-oscar,ademuk/django-oscar,jinnykoo/wuyisj.com,manevant/django-oscar,saadatqadri/django-oscar,Jannes123/django-oscar,okfish/django-oscar,QLGu/django-oscar,django-oscar/django-oscar,elliotthill/django-oscar,nfletton/django-oscar,marcoantoniooliveira/labweb,sasha0/django-oscar,dongguangming/django-oscar,Jannes123/django-oscar,bschuon/django-oscar,monikasulik/django-oscar,nickpack/django-oscar,monikasulik/django-oscar,eddiep1101/django-oscar,rocopartners/django-oscar,ka7eh/django-oscar,WillisXChen/django-oscar,taedori81/django-oscar,marcoantoniooliveira/labweb,binarydud/django-oscar,jinnykoo/christmas,anentropic/django-oscar,sasha0/django-oscar,ahmetdaglarbas/e-commerce,MatthewWilkes/django-oscar,nfletton/django-oscar,MatthewWilkes/django-oscar,WillisXChen/django-oscar,bschuon/django-oscar,john-parton/django-oscar,kapari/django-oscar,ademuk/django-oscar,jlmadurga/django-oscar,nickpack/django-oscar,faratro/django-oscar,mexeniz/django-oscar,taedori81/django-oscar,jinnykoo/christmas,makielab/django-oscar,makielab/django-oscar,amirrpp/django-oscar,mexeniz/django-oscar,pdonadeo/django-oscar,pasqualguerrero/django-oscar,lijoantony/django-oscar,kapt/django-oscar,nickpack/django-oscar,vovanbo/django-oscar,sonofatailor/django-oscar,django-oscar/django-oscar,anentropic/django-oscar,Idematica/django-oscar,machtfit/django-oscar,pdonadeo/django-oscar,michaelkuty/django-oscar,MatthewWilkes/django-oscar,pdonadeo/django-oscar,Bogh/django-oscar,QLGu/django-oscar,DrOctogon/unwash_ecom,pasqualguerrero/django-oscar,marcoantoniooliveira/labweb,solarissmoke/django-oscar,kapt/django-oscar,Idematica/django-oscar,monikasulik/django-oscar,DrOctogon/unwash_ecom,jmt4/django-oscar,faratro/django-oscar,kapari/django-oscar,adamend/django-oscar,machtfit/django-oscar,eddiep1101/django-oscar,michaelkuty/django-oscar,sonofatailor/django-oscar,jlmadurga/django-oscar,elliotthill/django-oscar,ademuk/django-oscar,jmt4/django-oscar,bschuon/django-oscar,sonofatailor/django-oscar,itbabu/django-oscar,manevant/django-oscar,solarissmoke/django-oscar,okfish/django-oscar,sonofatailor/django-oscar,dongguangming/django-oscar,jinnykoo/christmas,john-parton/django-oscar,jinnykoo/wuyisj.com,jmt4/django-oscar,WadeYuChen/django-oscar,thechampanurag/django-oscar,pasqualguerrero/django-oscar,vovanbo/django-oscar,saadatqadri/django-oscar,josesanch/django-oscar,eddiep1101/django-oscar,django-oscar/django-oscar,jinnykoo/wuyisj.com,sasha0/django-oscar,nickpack/django-oscar,kapari/django-oscar,thechampanurag/django-oscar,nfletton/django-oscar,bnprk/django-oscar,ahmetdaglarbas/e-commerce,vovanbo/django-oscar,pdonadeo/django-oscar,john-parton/django-oscar,okfish/django-oscar,MatthewWilkes/django-oscar,WadeYuChen/django-oscar,itbabu/django-oscar,josesanch/django-oscar,jinnykoo/wuyisj,monikasulik/django-oscar,spartonia/django-oscar,rocopartners/django-oscar,kapari/django-oscar
|
from django import template
register = template.Library()
@register.tag
def annotate_form_field(parser, token):
"""
Set an attribute on a form field with the widget type
This means templates can use the widget type to render things differently
if they want to. Django doesn't make this available by default.
"""
args = token.split_contents()
if len(args) < 2:
raise template.TemplateSyntaxError(
"annotate_form_field tag requires a form field to be passed")
return FormFieldNode(args[1])
class FormFieldNode(template.Node):
def __init__(self, field_str):
self.field = template.Variable(field_str)
def render(self, context):
field = self.field.resolve(context)
field.widget_type = field.field.widget.__class__.__name__
return ''
Adjust form templatetag to handle missing field var
When a non-existant field gets passed, the templatetag was raising an
unseemly AttributeError. This change checks to see if the passed var is
actually a form field to avoid said error.
|
from django import template
register = template.Library()
@register.tag
def annotate_form_field(parser, token):
"""
Set an attribute on a form field with the widget type
This means templates can use the widget type to render things differently
if they want to. Django doesn't make this available by default.
"""
args = token.split_contents()
if len(args) < 2:
raise template.TemplateSyntaxError(
"annotate_form_field tag requires a form field to be passed")
return FormFieldNode(args[1])
class FormFieldNode(template.Node):
def __init__(self, field_str):
self.field = template.Variable(field_str)
def render(self, context):
field = self.field.resolve(context)
if hasattr(field, 'field'):
field.widget_type = field.field.widget.__class__.__name__
return ''
|
<commit_before>from django import template
register = template.Library()
@register.tag
def annotate_form_field(parser, token):
"""
Set an attribute on a form field with the widget type
This means templates can use the widget type to render things differently
if they want to. Django doesn't make this available by default.
"""
args = token.split_contents()
if len(args) < 2:
raise template.TemplateSyntaxError(
"annotate_form_field tag requires a form field to be passed")
return FormFieldNode(args[1])
class FormFieldNode(template.Node):
def __init__(self, field_str):
self.field = template.Variable(field_str)
def render(self, context):
field = self.field.resolve(context)
field.widget_type = field.field.widget.__class__.__name__
return ''
<commit_msg>Adjust form templatetag to handle missing field var
When a non-existant field gets passed, the templatetag was raising an
unseemly AttributeError. This change checks to see if the passed var is
actually a form field to avoid said error.<commit_after>
|
from django import template
register = template.Library()
@register.tag
def annotate_form_field(parser, token):
"""
Set an attribute on a form field with the widget type
This means templates can use the widget type to render things differently
if they want to. Django doesn't make this available by default.
"""
args = token.split_contents()
if len(args) < 2:
raise template.TemplateSyntaxError(
"annotate_form_field tag requires a form field to be passed")
return FormFieldNode(args[1])
class FormFieldNode(template.Node):
def __init__(self, field_str):
self.field = template.Variable(field_str)
def render(self, context):
field = self.field.resolve(context)
if hasattr(field, 'field'):
field.widget_type = field.field.widget.__class__.__name__
return ''
|
from django import template
register = template.Library()
@register.tag
def annotate_form_field(parser, token):
"""
Set an attribute on a form field with the widget type
This means templates can use the widget type to render things differently
if they want to. Django doesn't make this available by default.
"""
args = token.split_contents()
if len(args) < 2:
raise template.TemplateSyntaxError(
"annotate_form_field tag requires a form field to be passed")
return FormFieldNode(args[1])
class FormFieldNode(template.Node):
def __init__(self, field_str):
self.field = template.Variable(field_str)
def render(self, context):
field = self.field.resolve(context)
field.widget_type = field.field.widget.__class__.__name__
return ''
Adjust form templatetag to handle missing field var
When a non-existant field gets passed, the templatetag was raising an
unseemly AttributeError. This change checks to see if the passed var is
actually a form field to avoid said error.from django import template
register = template.Library()
@register.tag
def annotate_form_field(parser, token):
"""
Set an attribute on a form field with the widget type
This means templates can use the widget type to render things differently
if they want to. Django doesn't make this available by default.
"""
args = token.split_contents()
if len(args) < 2:
raise template.TemplateSyntaxError(
"annotate_form_field tag requires a form field to be passed")
return FormFieldNode(args[1])
class FormFieldNode(template.Node):
def __init__(self, field_str):
self.field = template.Variable(field_str)
def render(self, context):
field = self.field.resolve(context)
if hasattr(field, 'field'):
field.widget_type = field.field.widget.__class__.__name__
return ''
|
<commit_before>from django import template
register = template.Library()
@register.tag
def annotate_form_field(parser, token):
"""
Set an attribute on a form field with the widget type
This means templates can use the widget type to render things differently
if they want to. Django doesn't make this available by default.
"""
args = token.split_contents()
if len(args) < 2:
raise template.TemplateSyntaxError(
"annotate_form_field tag requires a form field to be passed")
return FormFieldNode(args[1])
class FormFieldNode(template.Node):
def __init__(self, field_str):
self.field = template.Variable(field_str)
def render(self, context):
field = self.field.resolve(context)
field.widget_type = field.field.widget.__class__.__name__
return ''
<commit_msg>Adjust form templatetag to handle missing field var
When a non-existant field gets passed, the templatetag was raising an
unseemly AttributeError. This change checks to see if the passed var is
actually a form field to avoid said error.<commit_after>from django import template
register = template.Library()
@register.tag
def annotate_form_field(parser, token):
"""
Set an attribute on a form field with the widget type
This means templates can use the widget type to render things differently
if they want to. Django doesn't make this available by default.
"""
args = token.split_contents()
if len(args) < 2:
raise template.TemplateSyntaxError(
"annotate_form_field tag requires a form field to be passed")
return FormFieldNode(args[1])
class FormFieldNode(template.Node):
def __init__(self, field_str):
self.field = template.Variable(field_str)
def render(self, context):
field = self.field.resolve(context)
if hasattr(field, 'field'):
field.widget_type = field.field.widget.__class__.__name__
return ''
|
a968cbcd4b5a2aec5e1253221598eb53f9f0c2e9
|
osgtest/tests/test_10_condor.py
|
osgtest/tests/test_10_condor.py
|
import os
import osgtest.library.core as core
import unittest
class TestStartCondor(unittest.TestCase):
def test_01_start_condor(self):
core.config['condor.lockfile'] = '/var/lock/subsys/condor_master'
core.state['condor.started-service'] = False
core.state['condor.running-service'] = False
if core.missing_rpm('condor'):
return
if os.path.exists(core.config['condor.lockfile']):
core.state['condor.running-service'] = True
core.skip('apparently running')
return
command = ('service', 'condor', 'start')
stdout, _, fail = core.check_system(command, 'Start Condor')
self.assert_(stdout.find('error') == -1, fail)
self.assert_(os.path.exists(core.config['condor.lockfile']),
'Condor run lock file missing')
core.state['condor.started-service'] = True
core.state['condor.running-service'] = True
|
import os
from osgtest.library import core, osgunittest
import unittest
class TestStartCondor(osgunittest.OSGTestCase):
def test_01_start_condor(self):
core.config['condor.lockfile'] = '/var/lock/subsys/condor_master'
core.state['condor.started-service'] = False
core.state['condor.running-service'] = False
core.skip_ok_unless_installed('condor')
if os.path.exists(core.config['condor.lockfile']):
core.state['condor.running-service'] = True
self.skip_ok('already running')
command = ('service', 'condor', 'start')
stdout, _, fail = core.check_system(command, 'Start Condor')
self.assert_(stdout.find('error') == -1, fail)
self.assert_(os.path.exists(core.config['condor.lockfile']),
'Condor run lock file missing')
core.state['condor.started-service'] = True
core.state['condor.running-service'] = True
|
Update 10_condor to use OkSkip functionality
|
Update 10_condor to use OkSkip functionality
git-svn-id: 884a03e47e2adb735d896e55bb5ad6bc3421ba19@16522 4e558342-562e-0410-864c-e07659590f8c
|
Python
|
apache-2.0
|
efajardo/osg-test,efajardo/osg-test
|
import os
import osgtest.library.core as core
import unittest
class TestStartCondor(unittest.TestCase):
def test_01_start_condor(self):
core.config['condor.lockfile'] = '/var/lock/subsys/condor_master'
core.state['condor.started-service'] = False
core.state['condor.running-service'] = False
if core.missing_rpm('condor'):
return
if os.path.exists(core.config['condor.lockfile']):
core.state['condor.running-service'] = True
core.skip('apparently running')
return
command = ('service', 'condor', 'start')
stdout, _, fail = core.check_system(command, 'Start Condor')
self.assert_(stdout.find('error') == -1, fail)
self.assert_(os.path.exists(core.config['condor.lockfile']),
'Condor run lock file missing')
core.state['condor.started-service'] = True
core.state['condor.running-service'] = True
Update 10_condor to use OkSkip functionality
git-svn-id: 884a03e47e2adb735d896e55bb5ad6bc3421ba19@16522 4e558342-562e-0410-864c-e07659590f8c
|
import os
from osgtest.library import core, osgunittest
import unittest
class TestStartCondor(osgunittest.OSGTestCase):
def test_01_start_condor(self):
core.config['condor.lockfile'] = '/var/lock/subsys/condor_master'
core.state['condor.started-service'] = False
core.state['condor.running-service'] = False
core.skip_ok_unless_installed('condor')
if os.path.exists(core.config['condor.lockfile']):
core.state['condor.running-service'] = True
self.skip_ok('already running')
command = ('service', 'condor', 'start')
stdout, _, fail = core.check_system(command, 'Start Condor')
self.assert_(stdout.find('error') == -1, fail)
self.assert_(os.path.exists(core.config['condor.lockfile']),
'Condor run lock file missing')
core.state['condor.started-service'] = True
core.state['condor.running-service'] = True
|
<commit_before>import os
import osgtest.library.core as core
import unittest
class TestStartCondor(unittest.TestCase):
def test_01_start_condor(self):
core.config['condor.lockfile'] = '/var/lock/subsys/condor_master'
core.state['condor.started-service'] = False
core.state['condor.running-service'] = False
if core.missing_rpm('condor'):
return
if os.path.exists(core.config['condor.lockfile']):
core.state['condor.running-service'] = True
core.skip('apparently running')
return
command = ('service', 'condor', 'start')
stdout, _, fail = core.check_system(command, 'Start Condor')
self.assert_(stdout.find('error') == -1, fail)
self.assert_(os.path.exists(core.config['condor.lockfile']),
'Condor run lock file missing')
core.state['condor.started-service'] = True
core.state['condor.running-service'] = True
<commit_msg>Update 10_condor to use OkSkip functionality
git-svn-id: 884a03e47e2adb735d896e55bb5ad6bc3421ba19@16522 4e558342-562e-0410-864c-e07659590f8c<commit_after>
|
import os
from osgtest.library import core, osgunittest
import unittest
class TestStartCondor(osgunittest.OSGTestCase):
def test_01_start_condor(self):
core.config['condor.lockfile'] = '/var/lock/subsys/condor_master'
core.state['condor.started-service'] = False
core.state['condor.running-service'] = False
core.skip_ok_unless_installed('condor')
if os.path.exists(core.config['condor.lockfile']):
core.state['condor.running-service'] = True
self.skip_ok('already running')
command = ('service', 'condor', 'start')
stdout, _, fail = core.check_system(command, 'Start Condor')
self.assert_(stdout.find('error') == -1, fail)
self.assert_(os.path.exists(core.config['condor.lockfile']),
'Condor run lock file missing')
core.state['condor.started-service'] = True
core.state['condor.running-service'] = True
|
import os
import osgtest.library.core as core
import unittest
class TestStartCondor(unittest.TestCase):
def test_01_start_condor(self):
core.config['condor.lockfile'] = '/var/lock/subsys/condor_master'
core.state['condor.started-service'] = False
core.state['condor.running-service'] = False
if core.missing_rpm('condor'):
return
if os.path.exists(core.config['condor.lockfile']):
core.state['condor.running-service'] = True
core.skip('apparently running')
return
command = ('service', 'condor', 'start')
stdout, _, fail = core.check_system(command, 'Start Condor')
self.assert_(stdout.find('error') == -1, fail)
self.assert_(os.path.exists(core.config['condor.lockfile']),
'Condor run lock file missing')
core.state['condor.started-service'] = True
core.state['condor.running-service'] = True
Update 10_condor to use OkSkip functionality
git-svn-id: 884a03e47e2adb735d896e55bb5ad6bc3421ba19@16522 4e558342-562e-0410-864c-e07659590f8cimport os
from osgtest.library import core, osgunittest
import unittest
class TestStartCondor(osgunittest.OSGTestCase):
def test_01_start_condor(self):
core.config['condor.lockfile'] = '/var/lock/subsys/condor_master'
core.state['condor.started-service'] = False
core.state['condor.running-service'] = False
core.skip_ok_unless_installed('condor')
if os.path.exists(core.config['condor.lockfile']):
core.state['condor.running-service'] = True
self.skip_ok('already running')
command = ('service', 'condor', 'start')
stdout, _, fail = core.check_system(command, 'Start Condor')
self.assert_(stdout.find('error') == -1, fail)
self.assert_(os.path.exists(core.config['condor.lockfile']),
'Condor run lock file missing')
core.state['condor.started-service'] = True
core.state['condor.running-service'] = True
|
<commit_before>import os
import osgtest.library.core as core
import unittest
class TestStartCondor(unittest.TestCase):
def test_01_start_condor(self):
core.config['condor.lockfile'] = '/var/lock/subsys/condor_master'
core.state['condor.started-service'] = False
core.state['condor.running-service'] = False
if core.missing_rpm('condor'):
return
if os.path.exists(core.config['condor.lockfile']):
core.state['condor.running-service'] = True
core.skip('apparently running')
return
command = ('service', 'condor', 'start')
stdout, _, fail = core.check_system(command, 'Start Condor')
self.assert_(stdout.find('error') == -1, fail)
self.assert_(os.path.exists(core.config['condor.lockfile']),
'Condor run lock file missing')
core.state['condor.started-service'] = True
core.state['condor.running-service'] = True
<commit_msg>Update 10_condor to use OkSkip functionality
git-svn-id: 884a03e47e2adb735d896e55bb5ad6bc3421ba19@16522 4e558342-562e-0410-864c-e07659590f8c<commit_after>import os
from osgtest.library import core, osgunittest
import unittest
class TestStartCondor(osgunittest.OSGTestCase):
def test_01_start_condor(self):
core.config['condor.lockfile'] = '/var/lock/subsys/condor_master'
core.state['condor.started-service'] = False
core.state['condor.running-service'] = False
core.skip_ok_unless_installed('condor')
if os.path.exists(core.config['condor.lockfile']):
core.state['condor.running-service'] = True
self.skip_ok('already running')
command = ('service', 'condor', 'start')
stdout, _, fail = core.check_system(command, 'Start Condor')
self.assert_(stdout.find('error') == -1, fail)
self.assert_(os.path.exists(core.config['condor.lockfile']),
'Condor run lock file missing')
core.state['condor.started-service'] = True
core.state['condor.running-service'] = True
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.