commit stringlengths 40 40 | old_file stringlengths 4 150 | new_file stringlengths 4 150 | old_contents stringlengths 0 3.26k | new_contents stringlengths 1 4.43k | subject stringlengths 15 501 | message stringlengths 15 4.06k | lang stringclasses 4 values | license stringclasses 13 values | repos stringlengths 5 91.5k | diff stringlengths 0 4.35k |
|---|---|---|---|---|---|---|---|---|---|---|
fccf3f1b2eb1a861d8c63aef1bef9ba4ac03a777 | setup.py | setup.py | #-*- encoding: utf-8 -*-
from setuptools import setup
from setuptools.command.test import test as TestCommand
import sys
class Tox(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
#import here, cause outside the eggs aren't loaded
import tox
errno = tox.cmdline(self.test_args)
sys.exit(errno)
setup(name="django-money",
version="0.5.0",
description="Adds support for using money and currency fields in django models and forms. Uses py-moneyed as the money implementation.",
url="https://github.com/jakewins/django-money",
maintainer='Greg Reinbach',
maintainer_email='greg@reinbach.com',
packages=["djmoney",
"djmoney.forms",
"djmoney.models",
"djmoney.templatetags",
"djmoney.tests"],
install_requires=['setuptools',
'Django >= 1.4, < 1.8',
'py-moneyed > 0.4',
'six'],
platforms=['Any'],
keywords=['django', 'py-money', 'money'],
classifiers=["Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Framework :: Django", ],
tests_require=['tox>=1.6.0'],
cmdclass={'test': Tox},
)
| #-*- encoding: utf-8 -*-
from setuptools import setup
from setuptools.command.test import test as TestCommand
import sys
class Tox(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
#import here, cause outside the eggs aren't loaded
import tox
errno = tox.cmdline(self.test_args)
sys.exit(errno)
setup(name="django-money",
version="0.5.0",
description="Adds support for using money and currency fields in django models and forms. Uses py-moneyed as the money implementation.",
url="https://github.com/jakewins/django-money",
maintainer='Greg Reinbach',
maintainer_email='greg@reinbach.com',
packages=["djmoney",
"djmoney.forms",
"djmoney.models",
"djmoney.templatetags",
"djmoney.tests"],
install_requires=['setuptools',
'Django >= 1.4, < 1.8',
'py-moneyed > 0.4',
'six'],
platforms=['Any'],
keywords=['django', 'py-money', 'money'],
classifiers=["Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Framework :: Django", ],
tests_require=['tox>=1.6.0'],
cmdclass={'test': Tox},
)
| Add Python 3 trove classifier | Add Python 3 trove classifier
| Python | bsd-3-clause | rescale/django-money,recklessromeo/django-money,tsouvarev/django-money,AlexRiina/django-money,recklessromeo/django-money,tsouvarev/django-money | ---
+++
@@ -38,6 +38,7 @@
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python",
+ "Programming Language :: Python :: 3",
"Framework :: Django", ],
tests_require=['tox>=1.6.0'],
cmdclass={'test': Tox}, |
fd99c30f1bc03a39fa378cfda0fe6249d4a48722 | setup.py | setup.py | from setuptools import setup, find_packages
import os
name = 'docrepr'
here = os.path.abspath(os.path.dirname(__file__))
version_ns = {}
with open(os.path.join(here, name, '_version.py')) as f:
exec(f.read(), {}, version_ns)
setup(
name=name,
version=version_ns['__version__'],
description='docrepr renders Python docstrings in HTML',
long_description='docrepr renders Python docstrings in HTML. It is based on the sphinxify module developed by Tim Dumol for the Sage Notebook and the utils.inspector developed for ther Spyder IDE.',
packages=find_packages(),
include_package_data=True,
install_requires=['docutils', 'jinja2', 'sphinx'],
url='https://github.com/spyder-ide/docrepr',
author='The Spyder Development Team',
license='BSD',
)
| from setuptools import setup, find_packages
import os
name = 'docrepr'
here = os.path.abspath(os.path.dirname(__file__))
version_ns = {}
with open(os.path.join(here, name, '_version.py')) as f:
exec(f.read(), {}, version_ns)
setup(
name=name,
version=version_ns['__version__'],
description='docrepr renders Python docstrings in HTML',
long_description='docrepr renders Python docstrings in HTML. It is based on the sphinxify module developed by Tim Dumol for the Sage Notebook and the utils.inspector developed for ther Spyder IDE.',
packages=find_packages(),
include_package_data=True,
install_requires=['docutils', 'jinja2', 'sphinx'],
url='https://github.com/spyder-ide/docrepr',
author='Tim Dumol / The Spyder Development Team',
maintainer='The Spyder Development Team',
license='BSD',
)
| Fix author field and maintainer one | Setup.py: Fix author field and maintainer one
| Python | bsd-3-clause | spyder-ide/docrepr,spyder-ide/docrepr,spyder-ide/docrepr | ---
+++
@@ -17,6 +17,7 @@
include_package_data=True,
install_requires=['docutils', 'jinja2', 'sphinx'],
url='https://github.com/spyder-ide/docrepr',
- author='The Spyder Development Team',
+ author='Tim Dumol / The Spyder Development Team',
+ maintainer='The Spyder Development Team',
license='BSD',
) |
c360d62a088dc4ea0722f3ff062bf82422b2c8a6 | setup.py | setup.py | from setuptools import setup
setup(name='dpaw-utils',
version='0.3a12',
description='Utilities for Django/Python apps',
url='https://github.com/parksandwildlife/dpaw-utils',
author='Department of Parks and Wildlife',
author_email='asi@dpaw.wa.gov.au',
license='BSD',
packages=['dpaw_utils', 'dpaw_utils.requests'],
install_requires=[
'django', 'requests', 'bottle', 'django-confy', 'ipython', 'six',
'django-extensions', 'gevent', 'django-uwsgi', 'django-redis', 'psycopg2'],
zip_safe=False)
| from setuptools import setup
setup(name='dpaw-utils',
version='0.3a15',
description='Utilities for Django/Python apps',
url='https://github.com/parksandwildlife/dpaw-utils',
author='Department of Parks and Wildlife',
author_email='asi@dpaw.wa.gov.au',
license='BSD',
packages=['dpaw_utils', 'dpaw_utils.requests'],
install_requires=[
'django', 'requests', 'bottle', 'django-confy', 'ipython', 'six',
'django-extensions', 'gevent', 'django-uwsgi', 'django-redis', 'psycopg2'],
zip_safe=False)
| Increment lib version to 0.3a15. | Increment lib version to 0.3a15.
| Python | apache-2.0 | rockychen-dpaw/dpaw-utils,rockychen-dpaw/dpaw-utils,parksandwildlife/dpaw-utils,parksandwildlife/dpaw-utils | ---
+++
@@ -1,7 +1,7 @@
from setuptools import setup
setup(name='dpaw-utils',
- version='0.3a12',
+ version='0.3a15',
description='Utilities for Django/Python apps',
url='https://github.com/parksandwildlife/dpaw-utils',
author='Department of Parks and Wildlife', |
afc1fb93e8713feecefeb10e77c725b28f09b5f8 | setup.py | setup.py | from setuptools import setup
setup(
maintainer='Adam Grandquist',
maintainer_email='grandquista@gmail.com',
name='libReQL',
url='https://github.com/grandquista/ReQL-Core',
version='0.1.0',
zip_safe=False
)
| from setuptools import setup, Extension
setup(
ext_modules=[Extension('libReQL', [
'ReQL-expr.c',
'ReQL-ast.c',
'ReQL.c',
'ReQL-expr-Python.c',
'ReQL-ast-Python.c',
'ReQL-Python.c'
])],
maintainer='Adam Grandquist',
maintainer_email='grandquista@gmail.com',
name='libReQL',
url='https://github.com/grandquista/ReQL-Core',
version='0.1.0',
zip_safe=False
)
| Make Python try to build extension. | Make Python try to build extension.
| Python | apache-2.0 | grandquista/ReQL-Core,grandquista/ReQL-Core,grandquista/ReQL-Core,grandquista/ReQL-Core | ---
+++
@@ -1,6 +1,14 @@
-from setuptools import setup
+from setuptools import setup, Extension
setup(
+ ext_modules=[Extension('libReQL', [
+ 'ReQL-expr.c',
+ 'ReQL-ast.c',
+ 'ReQL.c',
+ 'ReQL-expr-Python.c',
+ 'ReQL-ast-Python.c',
+ 'ReQL-Python.c'
+ ])],
maintainer='Adam Grandquist',
maintainer_email='grandquista@gmail.com',
name='libReQL', |
1a75bfa255eef976f55d9d08c88697183c8b1e8f | setup.py | setup.py | try:
from setuptools import setup
except ImportError:
from distutils.core import setup
version = "0.0.3"
setup(
name="pyopen",
version=version,
author="Tim O'Donnell",
author_email="timodonnell@gmail.com",
packages=["pyopen", "pyopen.loaders"],
url="https://github.com/timodonnell/pyopen",
license="Apache License",
description="launch an interactive ipython session with specified files opened and parsed",
long_description=open('README.rst').read(),
download_url='https://github.com/timodonnell/pyopen/tarball/%s' % version,
entry_points={
'console_scripts': [
'pyopen = pyopen.command:run',
]
},
classifiers=[
"Development Status :: 1 - Planning",
"Intended Audience :: Developers",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.4",
],
install_requires=[
"humanize",
"traitlets",
"six",
"xlrd",
"pandas>=0.16.1",
"nose>=1.3.1",
]
)
| try:
from setuptools import setup
except ImportError:
from distutils.core import setup
version = "0.0.4"
setup(
name="pyopen",
version=version,
author="Tim O'Donnell",
author_email="timodonnell@gmail.com",
packages=["pyopen", "pyopen.loaders"],
url="https://github.com/timodonnell/pyopen",
license="Apache License",
description="launch an interactive ipython session with specified files opened and parsed",
long_description=open('README.rst').read(),
download_url='https://github.com/timodonnell/pyopen/tarball/%s' % version,
entry_points={
'console_scripts': [
'pyopen = pyopen.command:run',
]
},
classifiers=[
"Development Status :: 1 - Planning",
"Intended Audience :: Developers",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.4",
],
install_requires=[
"humanize",
"traitlets",
"six",
"xlrd",
"requests",
"pandas>=0.16.1",
"nose>=1.3.1",
]
)
| Add requests dependency, bump to 0.0.4 | Add requests dependency, bump to 0.0.4
| Python | apache-2.0 | timodonnell/pyopen | ---
+++
@@ -3,7 +3,7 @@
except ImportError:
from distutils.core import setup
-version = "0.0.3"
+version = "0.0.4"
setup(
name="pyopen",
@@ -34,6 +34,7 @@
"traitlets",
"six",
"xlrd",
+ "requests",
"pandas>=0.16.1",
"nose>=1.3.1",
] |
76efd79df4b996323872dbe48c39d8f21af6a09f | setup.py | setup.py | #!/usr/bin/env python3
import setuptools
import unittest
def discover_tests():
test_loader = unittest.TestLoader()
return test_loader.discover('.', pattern='*_test.py')
setuptools.setup(
name='mesonwrap',
version='0.0.4',
author='The Meson development team',
license='Apache 2',
url='https://github.com/mesonbuild/wrapweb',
packages=['mesonwrap', 'wrapweb'],
scripts=['mesonwrap.py'],
test_suite='setup.discover_tests',
)
| #!/usr/bin/env python3
import setuptools
import unittest
def discover_tests():
test_loader = unittest.TestLoader()
return test_loader.discover('.', pattern='*_test.py')
setuptools.setup(
name='mesonwrap',
version='0.0.4',
author='The Meson development team',
license='Apache 2',
url='https://github.com/mesonbuild/wrapweb',
packages=['mesonwrap', 'wrapweb'],
package_data={
'wrapweb': ['templates/*.html'],
},
scripts=['mesonwrap.py'],
test_suite='setup.discover_tests',
)
| Install templates with wrapweb package | Install templates with wrapweb package
| Python | apache-2.0 | mesonbuild/wrapweb,mesonbuild/wrapweb,mesonbuild/wrapweb | ---
+++
@@ -16,6 +16,9 @@
license='Apache 2',
url='https://github.com/mesonbuild/wrapweb',
packages=['mesonwrap', 'wrapweb'],
+ package_data={
+ 'wrapweb': ['templates/*.html'],
+ },
scripts=['mesonwrap.py'],
test_suite='setup.discover_tests',
) |
44c338e09bcb91003516d9589cf78c1a5896c73a | setup.py | setup.py | import os
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
# Utility function to read the README file.
# Used for the long_description. It's nice, because now 1) we have a top level
# README file and 2) it's easier to type in the README file than to put a raw
# string in below ...
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
config = {
'description': 'A lattice-gas Monte-Carlo simulation tool',
'long_description': read('README.md'),
'author': 'Benjamin J. Morgan',
'author_email': 'b.j.morgan@bath.ac.uk',
'url': 'https://github.com/bjmorgan/lattice_mc',
'download_url': 'https://github.com/bjmorgan/lattice_mc/tarball/1.0.0',
'author_email': 'b.j.morgan@bath.ac.uk',
'version': '1.0.0',
'install_requires': ['numpy, matplotlib, pandas'],
'license': 'MIT',
'packages': ['lattice_mc'],
'scripts': [],
'name': 'lattice_mc'
}
setup(**config)
| import os
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
# Utility function to read the README file.
# Used for the long_description. It's nice, because now 1) we have a top level
# README file and 2) it's easier to type in the README file than to put a raw
# string in below ...
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
config = {
'description': 'A lattice-gas Monte-Carlo simulation tool',
'long_description': read('README.md'),
'author': 'Benjamin J. Morgan',
'author_email': 'b.j.morgan@bath.ac.uk',
'url': 'https://github.com/bjmorgan/lattice_mc',
'download_url': 'https://github.com/bjmorgan/lattice_mc/tarball/0.9.1',
'author_email': 'b.j.morgan@bath.ac.uk',
'version': '1.0.0',
'install_requires': ['numpy, matplotlib, pandas'],
'license': 'MIT',
'packages': ['lattice_mc'],
'scripts': [],
'name': 'lattice_mc'
}
setup(**config)
| Prepare for test PyPI upload | Prepare for test PyPI upload
| Python | mit | bjmorgan/lattice_mc | ---
+++
@@ -18,7 +18,7 @@
'author': 'Benjamin J. Morgan',
'author_email': 'b.j.morgan@bath.ac.uk',
'url': 'https://github.com/bjmorgan/lattice_mc',
- 'download_url': 'https://github.com/bjmorgan/lattice_mc/tarball/1.0.0',
+ 'download_url': 'https://github.com/bjmorgan/lattice_mc/tarball/0.9.1',
'author_email': 'b.j.morgan@bath.ac.uk',
'version': '1.0.0',
'install_requires': ['numpy, matplotlib, pandas'], |
65d6563d22c8500402b23c09d3b8991b79c94dee | setup.py | setup.py | #
# Copyright 2016 BMC Software, Inc.
#
# 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 distutils.core import setup
setup(
name='meterplugin',
version='0.2.3',
url='https://github.com/boundary/meter-plugin-sdk-python',
author='David Gwartney',
author_email='david_gwartney@bmc.com',
packages=['meterplugin', ],
entry_points={
'console_scripts': [
'plugin-runner = meterplugin.plugin_runner:main',
'post-extract = meterplugin.post_extract:main',
],
},
package_data={'meterplugin': ['templates/*']},
license='LICENSE',
description='TrueSight Pulse Meter Plugin SDK for Python',
long_description=open('README.txt').read(),
install_requires=['tinyrpc', 'tspapi',],
setup_requires=['tinyrpc', 'tspapi', ],
)
| #
# Copyright 2016 BMC Software, Inc.
#
# 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 distutils.core import setup
setup(
name='meterplugin',
version='0.2.3',
url='https://github.com/boundary/meter-plugin-sdk-python',
author='David Gwartney',
author_email='david_gwartney@bmc.com',
packages=['meterplugin', ],
entry_points={
'console_scripts': [
'plugin-runner = meterplugin.plugin_runner:main',
'post-extract = meterplugin.post_extract:main',
],
},
package_data={'meterplugin': ['templates/*']},
license='LICENSE',
description='TrueSight Pulse Meter Plugin SDK for Python',
long_description=open('README.txt').read(),
install_requires=[
'tinyrpc >= 0.5',
'tspapi >= 0.3.6',],
)
| Add versions to install requirements | Add versions to install requirements
| Python | apache-2.0 | jdgwartney/meter-plugin-sdk-python,jdgwartney/meter-plugin-sdk-python | ---
+++
@@ -32,6 +32,7 @@
license='LICENSE',
description='TrueSight Pulse Meter Plugin SDK for Python',
long_description=open('README.txt').read(),
- install_requires=['tinyrpc', 'tspapi',],
- setup_requires=['tinyrpc', 'tspapi', ],
+ install_requires=[
+ 'tinyrpc >= 0.5',
+ 'tspapi >= 0.3.6',],
) |
c793efc175d0c5829f7dca1916e35def43f1a9fc | setup.py | setup.py | import sys
from setuptools import find_packages, setup
VERSION = '2.0.dev0'
setup(
name='django-arcutils',
version=VERSION,
url='https://github.com/PSU-OIT-ARC/django-arcutils',
author='PSU - OIT - ARC',
author_email='consultants@pdx.edu',
description='Common utilities used in ARC Django projects',
packages=find_packages(),
include_package_data=True,
zip_safe=False,
install_requires=[
'stashward'
],
extras_require={
'ldap': [
'ldap3',
],
'dev': [
'django>=1.7',
'flake8',
'ldap3',
'mock',
'model_mommy',
],
},
classifiers=[
'Development Status :: 3 - Alpha',
'Framework :: Django',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
],
)
| import sys
from setuptools import find_packages, setup
VERSION = '2.0.dev0'
setup(
name='django-arcutils',
version=VERSION,
url='https://github.com/PSU-OIT-ARC/django-arcutils',
author='PSU - OIT - ARC',
author_email='consultants@pdx.edu',
description='Common utilities used in ARC Django projects',
packages=find_packages(),
include_package_data=True,
zip_safe=False,
install_requires=[
'stashward'
],
extras_require={
'ldap': [
'ldap3>=0.9.9.1',
],
'dev': [
'django>=1.7',
'flake8',
'ldap3',
'mock',
'model_mommy',
],
},
classifiers=[
'Development Status :: 3 - Alpha',
'Framework :: Django',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
],
)
| Add min version of ldap3 | Add min version of ldap3
| Python | mit | wylee/django-arcutils,wylee/django-arcutils,PSU-OIT-ARC/django-arcutils,PSU-OIT-ARC/django-arcutils | ---
+++
@@ -19,7 +19,7 @@
],
extras_require={
'ldap': [
- 'ldap3',
+ 'ldap3>=0.9.9.1',
],
'dev': [
'django>=1.7', |
5d5d9455f801a3279dc450b2cf7203da5dc64f6b | setup.py | setup.py | from setuptools import setup, Extension
from Cython.Build import cythonize
from Cython.Distutils import build_ext
import numpy
ext = Extension('noisily.noise',
sources=['noisily/noise.pyx'],
include_dirs=['noise-c/include', numpy.get_include()],
extra_objects=['noise-c/target/release/libnoise_c.a'],
)
extensions = [ext,]
setup(
name='noisily',
version='0.0.1',
author='Priyank Patel',
author_email='tocubed@gmail.com',
license='MIT',
url='https://github.com/tocubed/noisily',
install_requires=['numpy>=1.11.0'],
ext_modules=cythonize(extensions),
cmdclass={'build_ext': build_ext},
packages=['noisily'],
)
| from setuptools import setup, Extension
from Cython.Build import cythonize
from Cython.Distutils import build_ext
import numpy
import sys
if sys.platform == 'win32':
pass
elif sys.platform == 'darwin':
noise_link_libraries = ['System', 'c', 'm']
else:
noise_link_libraries = ['util', 'dl', 'pthread', 'gcc_s', 'c', 'm', 'rt', 'util']
ext = Extension('noisily.noise',
sources=['noisily/noise.pyx'],
include_dirs=['noise-c/include', numpy.get_include()],
extra_objects=['noise-c/target/release/libnoise_c.a'],
libraries=noise_link_libraries,
)
extensions = [ext,]
setup(
name='noisily',
version='0.0.1',
author='Priyank Patel',
author_email='tocubed@gmail.com',
license='MIT',
url='https://github.com/tocubed/noisily',
install_requires=['numpy>=1.11.0'],
ext_modules=cythonize(extensions),
cmdclass={'build_ext': build_ext},
packages=['noisily'],
)
| Fix missing symbols from static linking | Fix missing symbols from static linking
| Python | apache-2.0 | tocubed/noisily,tocubed/noisily,tocubed/noisily | ---
+++
@@ -5,11 +5,20 @@
import numpy
+import sys
+
+if sys.platform == 'win32':
+ pass
+elif sys.platform == 'darwin':
+ noise_link_libraries = ['System', 'c', 'm']
+else:
+ noise_link_libraries = ['util', 'dl', 'pthread', 'gcc_s', 'c', 'm', 'rt', 'util']
ext = Extension('noisily.noise',
sources=['noisily/noise.pyx'],
include_dirs=['noise-c/include', numpy.get_include()],
extra_objects=['noise-c/target/release/libnoise_c.a'],
+ libraries=noise_link_libraries,
)
extensions = [ext,] |
3e7e6e0742965eef5064be2e669ec91c61324fc5 | setup.py | setup.py | import io
import os
import re
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, 'opencmiss', 'utils', '__init__.py')) as fd:
version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]',
fd.read(), re.MULTILINE).group(1)
if not version:
raise RuntimeError('Cannot find version information')
def readfile(filename, split=False):
with io.open(filename, encoding="utf-8") as stream:
if split:
return stream.read().split("\n")
return stream.read()
readme = readfile("README.rst", split=True)
readme.append('License')
readme.append('=======')
readme.append('')
readme.append('')
requires = ['opencmiss.zinc']
software_licence = readfile("LICENSE")
setup(
name='opencmiss.utils',
version=version,
description='OpenCMISS Utilities for Python.',
long_description='\n'.join(readme) + software_licence,
classifiers=[],
author='Hugh Sorby',
author_email='h.sorby@auckland.ac.nz',
url='https://github.com/OpenCMISS-Bindings/opencmiss.utils',
license='Apache Software License',
packages=find_packages("src"),
package_dir={"": "src"},
include_package_data=True,
zip_safe=False,
install_requires=requires,
)
| import io
import os
import re
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, 'src', 'opencmiss', 'utils', '__init__.py')) as fd:
version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]',
fd.read(), re.MULTILINE).group(1)
if not version:
raise RuntimeError('Cannot find version information')
def readfile(filename, split=False):
with io.open(filename, encoding="utf-8") as stream:
if split:
return stream.read().split("\n")
return stream.read()
readme = readfile("README.rst", split=True)
readme.append('License')
readme.append('=======')
readme.append('')
readme.append('')
requires = ['opencmiss.zinc']
software_licence = readfile("LICENSE")
setup(
name='opencmiss.utils',
version=version,
description='OpenCMISS Utilities for Python.',
long_description='\n'.join(readme) + software_licence,
classifiers=[],
author='Hugh Sorby',
author_email='h.sorby@auckland.ac.nz',
url='https://github.com/OpenCMISS-Bindings/opencmiss.utils',
license='Apache Software License',
packages=find_packages("src"),
package_dir={"": "src"},
include_package_data=True,
zip_safe=False,
install_requires=requires,
)
| Correct definition of path to version information for package. | Correct definition of path to version information for package.
| Python | apache-2.0 | OpenCMISS-Bindings/opencmiss.utils | ---
+++
@@ -7,7 +7,7 @@
here = os.path.abspath(os.path.dirname(__file__))
-with open(os.path.join(here, 'opencmiss', 'utils', '__init__.py')) as fd:
+with open(os.path.join(here, 'src', 'opencmiss', 'utils', '__init__.py')) as fd:
version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]',
fd.read(), re.MULTILINE).group(1)
|
a9542b41af8b3dcc999994c9954dee04414995c7 | setup.py | setup.py | from setuptools import setup
import io
import os
version = '0.2.4'
readme_path = os.path.join(os.path.dirname(__file__), 'README.rst')
with io.open(readme_path, encoding='utf-8') as f:
long_description = f.read()
setup(
name='markdown2ctags',
description='Generates ctags-compatible output for the sections of a '
'Markdown document.',
long_description=long_description,
license='BSD',
author='John Szakmeister',
author_email='john@szakmeister.net',
url='https://github.com/jszakmeister/markdown2ctags',
version=version,
py_modules=['markdown2ctags'],
zip_safe=True,
entry_points={
'console_scripts': [
'markdown2ctags = markdown2ctags:cli_main',
],
},
classifiers=[
'License :: OSI Approved :: BSD License',
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Topic :: Software Development',
'Topic :: Text Processing',
'Topic :: Text Processing :: Indexing',
'Topic :: Utilities',
]
)
| from setuptools import setup
import io
import os
version = '0.2.5'
readme_path = os.path.join(os.path.dirname(__file__), 'README.rst')
with io.open(readme_path, encoding='utf-8') as f:
long_description = f.read()
setup(
name='markdown2ctags',
description='Generates ctags-compatible output for the sections of a '
'Markdown document.',
long_description=long_description,
license='BSD',
author='John Szakmeister',
author_email='john@szakmeister.net',
url='https://github.com/jszakmeister/markdown2ctags',
version=version,
py_modules=['markdown2ctags'],
zip_safe=True,
entry_points={
'console_scripts': [
'markdown2ctags = markdown2ctags:cli_main',
],
},
classifiers=[
'License :: OSI Approved :: BSD License',
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Topic :: Software Development',
'Topic :: Text Processing',
'Topic :: Text Processing :: Indexing',
'Topic :: Utilities',
]
)
| Bump version number for release. | Bump version number for release.
| Python | bsd-3-clause | jszakmeister/markdown2ctags | ---
+++
@@ -4,7 +4,7 @@
import os
-version = '0.2.4'
+version = '0.2.5'
readme_path = os.path.join(os.path.dirname(__file__), 'README.rst') |
e1595a489ef7a5243dd4bf759a393338257e02dd | setup.py | setup.py | from setuptools import setup
from os import path
project_dir = path.abspath(path.dirname(__file__))
def read_from(filename):
with open(path.join(project_dir, filename), encoding='utf-8') as f:
return f.read().strip()
setup(
name='nlist',
version=read_from('VERSION'),
description='A lightweight multidimensional list in Python',
long_description=read_from('README.rst'),
url='https://github.com/swarmer/nlist',
author='Anton Barkovsky',
author_email='anton@swarmer.me',
license='MIT',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Topic :: Software Development :: Libraries :: Python Modules',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
],
keywords='array list container multidimensional',
py_modules=['nlist'],
install_requires=[],
include_package_data=True,
)
| from setuptools import setup
from os import path
project_dir = path.abspath(path.dirname(__file__))
def read_from(filename):
with open(path.join(project_dir, filename), encoding='utf-8') as f:
return f.read().strip()
setup(
name='nlist',
version=read_from('VERSION'),
description='A lightweight multidimensional list in Python',
long_description='\n'.join(read_from('README.rst').splitlines()[3:]),
url='https://github.com/swarmer/nlist',
author='Anton Barkovsky',
author_email='anton@swarmer.me',
license='MIT',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Topic :: Software Development :: Libraries :: Python Modules',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
],
keywords='array list container multidimensional',
py_modules=['nlist'],
install_requires=[],
include_package_data=True,
)
| Remove badges from pypi description | Remove badges from pypi description
| Python | mit | swarmer/nlist,swarmer/nlist | ---
+++
@@ -13,7 +13,7 @@
name='nlist',
version=read_from('VERSION'),
description='A lightweight multidimensional list in Python',
- long_description=read_from('README.rst'),
+ long_description='\n'.join(read_from('README.rst').splitlines()[3:]),
url='https://github.com/swarmer/nlist',
author='Anton Barkovsky',
author_email='anton@swarmer.me', |
5010f46259e7ac9ed70c1eecef454fef2f55fea4 | setup.py | setup.py | """Install Mesh TensorFlow."""
from setuptools import find_packages
from setuptools import setup
setup(
name='mesh-tensorflow',
version='0.0.5',
description='Mesh TensorFlow',
author='Google Inc.',
author_email='no-reply@google.com',
url='http://github.com/tensorflow/mesh',
license='Apache 2.0',
packages=find_packages(),
package_data={},
scripts=[],
install_requires=[
'future',
'six',
],
extras_require={
'auto_mtf': ['ortools>=7.0.6546'],
'gin-config': ['gin-config>=0.2.0'],
'tensorflow': ['tensorflow>=1.9.0'],
'tensorflow_gpu': ['tensorflow-gpu>=1.9.0'],
'tests': [
'absl-py',
'pytest',
'ortools>=7.0.6546',
'tensor2tensor>=1.9.0', # TODO(trandustin): rm dependence
],
},
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: Apache Software License',
'Topic :: Scientific/Engineering :: Artificial Intelligence',
],
keywords='tensorflow machine learning',
)
| """Install Mesh TensorFlow."""
from setuptools import find_packages
from setuptools import setup
setup(
name='mesh-tensorflow',
version='0.0.5',
description='Mesh TensorFlow',
author='Google Inc.',
author_email='no-reply@google.com',
url='http://github.com/tensorflow/mesh',
license='Apache 2.0',
packages=find_packages(),
package_data={},
scripts=[],
install_requires=[
'future',
'gin-config',
'six',
],
extras_require={
'auto_mtf': ['ortools>=7.0.6546'],
'tensorflow': ['tensorflow>=1.9.0'],
'tensorflow_gpu': ['tensorflow-gpu>=1.9.0'],
'tests': [
'absl-py',
'pytest',
'ortools>=7.0.6546',
'tensor2tensor>=1.9.0', # TODO(trandustin): rm dependence
],
},
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: Apache Software License',
'Topic :: Scientific/Engineering :: Artificial Intelligence',
],
keywords='tensorflow machine learning',
)
| Move gin-config to install_requires to fix build. | Move gin-config to install_requires to fix build.
PiperOrigin-RevId: 258563598
| Python | apache-2.0 | tensorflow/mesh,tensorflow/mesh | ---
+++
@@ -16,11 +16,11 @@
scripts=[],
install_requires=[
'future',
+ 'gin-config',
'six',
],
extras_require={
'auto_mtf': ['ortools>=7.0.6546'],
- 'gin-config': ['gin-config>=0.2.0'],
'tensorflow': ['tensorflow>=1.9.0'],
'tensorflow_gpu': ['tensorflow-gpu>=1.9.0'],
'tests': [ |
6255eefafd2dc20e393d955a861fce8f041dfc08 | setup.py | setup.py | from setuptools import setup, find_packages
# Dynamically calculate the version based on dbsettings.VERSION
version_tuple = (0, 8, 1)
if version_tuple[2] is not None:
if type(version_tuple[2]) == int:
version = "%d.%d.%s" % version_tuple
else:
version = "%d.%d_%s" % version_tuple
else:
version = "%d.%d" % version_tuple[:2]
setup(
name='django-dbsettings',
version=version,
description='Application settings whose values can be updated while a project is up and running.',
long_description=open('README.rst').read(),
author='Samuel Cormier-Iijima',
author_email='sciyoshi@gmail.com',
maintainer='Jacek Tomaszewski',
maintainer_email='jacek.tomek@gmail.com',
url='http://github.com/zlorf/django-dbsettings',
packages=find_packages(include=['dbsettings']),
include_package_data=True,
license='BSD',
install_requires=(
'django>=1.4.11',
),
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Utilities'
],
)
| from setuptools import setup
# Dynamically calculate the version based on dbsettings.VERSION
version_tuple = (0, 8, 1)
if version_tuple[2] is not None:
if type(version_tuple[2]) == int:
version = "%d.%d.%s" % version_tuple
else:
version = "%d.%d_%s" % version_tuple
else:
version = "%d.%d" % version_tuple[:2]
setup(
name='django-dbsettings',
version=version,
description='Application settings whose values can be updated while a project is up and running.',
long_description=open('README.rst').read(),
author='Samuel Cormier-Iijima',
author_email='sciyoshi@gmail.com',
maintainer='Jacek Tomaszewski',
maintainer_email='jacek.tomek@gmail.com',
url='http://github.com/zlorf/django-dbsettings',
packages=[
'dbsettings',
'dbsettings.migrations',
],
include_package_data=True,
license='BSD',
install_requires=(
'django>=1.4.11',
),
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Utilities'
],
)
| Include migrations in the sdist package. | Include migrations in the sdist package.
Fixes https://github.com/zlorf/django-dbsettings/issues/18
find_packages(include=...) does not appear to get submodules.
| Python | bsd-3-clause | zlorf/django-dbsettings,sciyoshi/django-dbsettings,johnpaulett/django-dbsettings,DjangoAdminHackers/django-dbsettings,sciyoshi/django-dbsettings,nwaxiomatic/django-dbsettings,helber/django-dbsettings,DjangoAdminHackers/django-dbsettings,zlorf/django-dbsettings,nwaxiomatic/django-dbsettings,helber/django-dbsettings,johnpaulett/django-dbsettings | ---
+++
@@ -1,4 +1,4 @@
-from setuptools import setup, find_packages
+from setuptools import setup
# Dynamically calculate the version based on dbsettings.VERSION
version_tuple = (0, 8, 1)
@@ -20,7 +20,10 @@
maintainer='Jacek Tomaszewski',
maintainer_email='jacek.tomek@gmail.com',
url='http://github.com/zlorf/django-dbsettings',
- packages=find_packages(include=['dbsettings']),
+ packages=[
+ 'dbsettings',
+ 'dbsettings.migrations',
+ ],
include_package_data=True,
license='BSD',
install_requires=( |
2119d75d1115b28fb768dafb2df2e2f13e761310 | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
import os.path as op
from glob import glob
from setuptools import setup
from setup_helper import SetupHelper
name = "goatools"
classifiers = [
'Development Status :: 4 - Beta',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Topic :: Scientific/Engineering :: Bio-Informatics',
]
# Use the helper
h = SetupHelper(initfile="goatools/__init__.py", readmefile="README.md")
setup_dir = op.abspath(op.dirname(__file__))
requirements = ['wget'] + [x.strip() for x in
open(op.join(setup_dir, 'requirements.txt')).readlines()]
setup(
name=name,
version=h.version,
author=h.author,
author_email=h.email,
license=h.license,
long_description=h.long_description,
packages=[name],
scripts=glob('scripts/*.py'),
classifiers=classifiers,
url='http://github.com/tanghaibao/goatools',
description="Python scripts to find enrichment of GO terms",
install_requires=requirements
)
| #!/usr/bin/env python
# -*- coding: UTF-8 -*-
import os.path as op
from glob import glob
from setuptools import setup
from setup_helper import SetupHelper
name = "goatools"
classifiers = [
'Development Status :: 4 - Beta',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Topic :: Scientific/Engineering :: Bio-Informatics',
]
# Use the helper
h = SetupHelper(initfile="goatools/__init__.py", readmefile="README.md")
setup_dir = op.abspath(op.dirname(__file__))
requirements = ['wget'] + [x.strip() for x in
open(op.join(setup_dir, 'requirements.txt')).readlines()]
setup(
name=name,
version=h.version,
author=h.author,
author_email=h.email,
license=h.license,
long_description=h.long_description,
packages=[name, name + ".test_data", name + ".anno"],
scripts=glob('scripts/*.py'),
classifiers=classifiers,
url='http://github.com/tanghaibao/goatools',
description="Python scripts to find enrichment of GO terms",
install_requires=requirements
)
| Include .anno and .test_data in dist | [CI] Include .anno and .test_data in dist
| Python | bsd-2-clause | lileiting/goatools,tanghaibao/goatools,lileiting/goatools,tanghaibao/goatools | ---
+++
@@ -33,7 +33,7 @@
author_email=h.email,
license=h.license,
long_description=h.long_description,
- packages=[name],
+ packages=[name, name + ".test_data", name + ".anno"],
scripts=glob('scripts/*.py'),
classifiers=classifiers,
url='http://github.com/tanghaibao/goatools', |
9049a718f7b4fa6394f5d8b153e91f21daa06888 | setup.py | setup.py | import sys
from setuptools import setup
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
import pytest
errno = pytest.main(self.test_args)
sys.exit(errno)
try:
from atomiclong import ffi
except ImportError:
ext_modules=[]
else:
ext_modules=[ffi.verifier.get_extension()]
with open('README.rst') as r:
README = r.read()
setup(
name='atomiclong',
version='0.1',
author='David Reid',
author_email='dreid@dreid.org',
url='https://github.com/dreid/atomiclong',
long_description=README,
license='MIT',
py_modules=['atomiclong'],
setup_requires=['cffi'],
install_requires=['cffi'],
tests_require=['pytest'],
ext_modules=ext_modules,
zip_safe=False,
cmdclass={"test": PyTest},
)
| import sys
from setuptools import setup
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
import pytest
errno = pytest.main(self.test_args)
sys.exit(errno)
try:
from atomiclong import ffi
except ImportError:
ext_modules=[]
else:
ext_modules=[ffi.verifier.get_extension()]
with open('README.rst') as r:
README = r.read()
setup(
name='atomiclong',
version='0.1.1',
author='David Reid',
author_email='dreid@dreid.org',
url='https://github.com/dreid/atomiclong',
description="An AtomicLong type using CFFI.",
long_description=README,
license='MIT',
py_modules=['atomiclong'],
setup_requires=['cffi'],
install_requires=['cffi'],
tests_require=['pytest'],
ext_modules=ext_modules,
zip_safe=False,
cmdclass={"test": PyTest},
)
| Add a description, because metadata is hard. | Add a description, because metadata is hard.
| Python | mit | dreid/atomiclong,alex/atomiclong | ---
+++
@@ -26,10 +26,11 @@
setup(
name='atomiclong',
- version='0.1',
+ version='0.1.1',
author='David Reid',
author_email='dreid@dreid.org',
url='https://github.com/dreid/atomiclong',
+ description="An AtomicLong type using CFFI.",
long_description=README,
license='MIT',
py_modules=['atomiclong'], |
26a5b169f1cc67911f49c2ba835b078135f57dda | setup.py | setup.py | from distutils.core import setup
setup(
name='Juju XaaS Client Binding',
version='0.1.0',
author='Justin SB',
author_email='justin@fathomdb.com',
packages=['jujuxaas', 'jujuxaas.auth'],
url='http://pypi.python.org/pypi/JujuXaasClient/',
license='LICENSE.txt',
description='Client library for Juju XaaS.',
long_description=open('README.md').read(),
install_requires=[
'requests'
],
) | from distutils.core import setup
setup(
name='Juju XaaS Client Binding',
version='0.1.0',
author='Justin SB',
author_email='justin@fathomdb.com',
packages=['jujuxaas', 'jujuxaas.auth'],
url='http://pypi.python.org/pypi/JujuXaasClient/',
license='LICENSE.txt',
description='Client library for Juju XaaS.',
long_description=open('README.md').read(),
install_requires=[
'requests',
'python-keystoneclient'
],
) | Add python-keystoneclient as a dependency | Add python-keystoneclient as a dependency
| Python | apache-2.0 | jxaas/python-client | ---
+++
@@ -11,6 +11,7 @@
description='Client library for Juju XaaS.',
long_description=open('README.md').read(),
install_requires=[
- 'requests'
+ 'requests',
+ 'python-keystoneclient'
],
) |
b2574f5f4de0d11ab5d4ab8da411ddfca6b7cc5d | setup.py | setup.py | from setuptools import setup, find_packages
import sys, os
version = '0.1'
setup(name='FastPt',
version=version,
description="Really fast well-formed xml templates",
long_description="""Are you tired of the slow performance of Genshi? But
you still long for the assurance that your output is well-formed that you
miss from all those other templating engines? Do you wish you had Jinja's
blocks with Genshi's syntax? Then look no further, FastPt is for you!
FastPt uses lxml to *quickly* compile Genshi-like syntax to *real python
bytecode* that renders with blazing-fast speed! Don't delay! Pick up your
copy of FastPt today!""",
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Text Processing :: Markup :: HTML',
'Topic :: Text Processing :: Markup :: XML'
],
keywords='template xml',
author='Rick Copeland',
author_email='rick446@usa.net',
url='http://bitbucket.org/rick446/fastpt',
license='MIT',
packages=find_packages(exclude=['ez_setup', 'examples', 'tests']),
include_package_data=True,
zip_safe=False,
install_requires=[
'lxml',
],
entry_points="""
# -*- Entry points: -*-
""",
)
| from setuptools import setup, find_packages
import sys, os
version = '0.1'
setup(name='FastPt',
version=version,
description="Really fast well-formed xml templates",
long_description="""Are you tired of the slow performance of Genshi? But
you still long for the assurance that your output is well-formed that you
miss from all those other templating engines? Do you wish you had Jinja's
blocks with Genshi's syntax? Then look no further, FastPt is for you!
FastPt uses lxml to *quickly* compile Genshi-like syntax to *real python
bytecode* that renders with blazing-fast speed! Don't delay! Pick up your
copy of FastPt today!""",
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Text Processing :: Markup :: HTML',
'Topic :: Text Processing :: Markup :: XML'
],
keywords='template xml',
author='Rick Copeland',
author_email='rick446@usa.net',
url='http://bitbucket.org/rick446/fastpt',
license='MIT',
packages=find_packages(exclude=['ez_setup', 'examples', 'tests']),
include_package_data=True,
zip_safe=False,
install_requires=[
# 'lxml',
],
entry_points="""
# -*- Entry points: -*-
""",
)
| Remove lxml requirement b/c it is not easily easy_installable | Remove lxml requirement b/c it is not easily easy_installable
| Python | mit | moreati/kajiki,ollyc/kajiki,moreati/kajiki,ollyc/kajiki,moreati/kajiki,ollyc/kajiki | ---
+++
@@ -31,7 +31,7 @@
include_package_data=True,
zip_safe=False,
install_requires=[
- 'lxml',
+ # 'lxml',
],
entry_points="""
# -*- Entry points: -*- |
daa85b5a66711b1200a13394bf8921a258015c45 | setup.py | setup.py | from setuptools import setup
setup(name='keras_tf_multigpu',
version='0.1',
description='Multi-GPU data-parallel training in Keras/TensorFlow',
url='https://github.com/rossumai/keras-multi-gpu',
author='Bohumir Zamecnik',
author_email='bohumir.zamecnik@gmail.com',
license='MIT',
packages=['keras_tf_multigpu'],
zip_safe=False,
install_requires=[
'Keras>=2.0.8',
'numpy',
'tensorflow-gpu>=1.3',
],
setup_requires=['setuptools-markdown'],
long_description_markdown_filename='README.md',
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
# How mature is this project? Common values are
# 3 - Alpha
# 4 - Beta
# 5 - Production/Stable
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Operating System :: POSIX :: Linux',
])
| from setuptools import setup
setup(name='keras_tf_multigpu',
version='0.1',
description='Multi-GPU data-parallel training in Keras/TensorFlow',
url='https://github.com/rossumai/keras-multi-gpu',
author='Bohumir Zamecnik',
author_email='bohumir.zamecnik@gmail.com',
license='MIT',
packages=['keras_tf_multigpu'],
zip_safe=False,
install_requires=[
'h5py',
'Keras>=2.0.8',
'numpy',
'tensorflow-gpu>=1.3',
],
setup_requires=['setuptools-markdown'],
long_description_markdown_filename='README.md',
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
# How mature is this project? Common values are
# 3 - Alpha
# 4 - Beta
# 5 - Production/Stable
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Operating System :: POSIX :: Linux',
])
| Add missing dependency on h5py. | Add missing dependency on h5py.
| Python | mit | rossumai/keras-multi-gpu,rossumai/keras-multi-gpu | ---
+++
@@ -10,6 +10,7 @@
packages=['keras_tf_multigpu'],
zip_safe=False,
install_requires=[
+ 'h5py',
'Keras>=2.0.8',
'numpy',
'tensorflow-gpu>=1.3', |
8147dab8fffb8d9d9753009f43b27afc1729febc | setup.py | setup.py | from setuptools import setup, find_packages
import os
setup(
name="cpgintegrate",
version="0.2.17-SNAPSHOT",
packages=find_packages(),
include_package_data=True,
install_requires=[
'requests>=2.18.4',
'pandas>=0.23.0',
'xlrd',
'sqlalchemy>=1.0',
'beautifulsoup4',
'lxml<4.0',
'numpy',
'scipy',
],
extras_require={'dev': [
'pytest>=3.2.2',
'apache-airflow>=1.10.0',
],
'win_auto': [
'pywinauto',
'patool',
],
},
data_files=[
(os.path.join(os.environ.get('AIRFLOW_HOME', 'airflow'), 'plugins'),
['cpgintegrate/airflow/cpg_airflow_plugin.py'])
],
)
| from setuptools import setup, find_packages
import os
setup(
name="cpgintegrate",
version="0.2.17",
packages=find_packages(),
include_package_data=True,
install_requires=[
'requests>=2.18.4',
'pandas>=0.23.0',
'xlrd',
'sqlalchemy>=1.0',
'beautifulsoup4',
'lxml<5.0',
'numpy',
'scipy',
],
extras_require={'dev': [
'pytest>=3.2.2',
'apache-airflow>=1.10.0',
],
'win_auto': [
'pywinauto',
'patool',
],
},
data_files=[
(os.path.join(os.environ.get('AIRFLOW_HOME', 'airflow'), 'plugins'),
['cpgintegrate/airflow/cpg_airflow_plugin.py'])
],
)
| Bump version, allow newer lxml | Bump version, allow newer lxml
| Python | agpl-3.0 | PointyShinyBurning/cpgintegrate | ---
+++
@@ -3,7 +3,7 @@
setup(
name="cpgintegrate",
- version="0.2.17-SNAPSHOT",
+ version="0.2.17",
packages=find_packages(),
include_package_data=True,
install_requires=[
@@ -12,7 +12,7 @@
'xlrd',
'sqlalchemy>=1.0',
'beautifulsoup4',
- 'lxml<4.0',
+ 'lxml<5.0',
'numpy',
'scipy',
], |
1766d21c01a5282be5632d6f19889da16ff333e0 | setup.py | setup.py | from setuptools import setup, find_packages
import os
# The version of the wrapped library is the starting point for the
# version number of the python package.
# In bugfix releases of the python package, add a '-' suffix and an
# incrementing integer.
# For example, a packaging bugfix release version 1.4.4 of the
# js.jquery package would be version 1.4.4-1 .
version = '3.3.1'
def read(*rnames):
return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
long_description = (
read('README.rst')
+ '\n' +
read('js', 'amcharts', 'test_amcharts.txt')
+ '\n' +
read('CHANGES.txt'))
setup(
name='js.amcharts',
version=version,
description="Fanstatic packaging of amCharts",
long_description=long_description,
classifiers=[],
keywords='',
author='Fanstatic Developers',
author_email='fanstatic@googlegroups.com',
license='BSD',
packages=find_packages(),namespace_packages=['js'],
include_package_data=True,
zip_safe=False,
install_requires=[
'fanstatic',
'setuptools',
],
entry_points={
'fanstatic.libraries': [
'amcharts = js.amcharts:library',
],
},
)
| from setuptools import setup, find_packages
import os
# The version of the wrapped library is the starting point for the
# version number of the python package.
# In bugfix releases of the python package, add a '-' suffix and an
# incrementing integer.
# For example, a packaging bugfix release version 1.4.4 of the
# js.jquery package would be version 1.4.4-1 .
version = '3.3.1'
def read(*rnames):
return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
long_description = (
read('README.rst')
+ '\n' +
read('js', 'amcharts', 'test_amcharts.txt')
+ '\n' +
read('CHANGES.txt'))
setup(
name='js.amcharts',
version=version,
description="Fanstatic packaging of amCharts",
long_description=long_description,
classifiers=[],
keywords='',
author='Fanstatic Developers',
author_email='fanstatic@googlegroups.com',
license='BSD',
url='https://github.com/securactive/js.amcharts',
packages=find_packages(),namespace_packages=['js'],
include_package_data=True,
zip_safe=False,
install_requires=[
'fanstatic',
'setuptools',
],
entry_points={
'fanstatic.libraries': [
'amcharts = js.amcharts:library',
],
},
)
| Add the repos URL in Metadata | Add the repos URL in Metadata
| Python | bsd-3-clause | vivek8943/js.amcharts,vivek8943/js.amcharts | ---
+++
@@ -30,6 +30,7 @@
author='Fanstatic Developers',
author_email='fanstatic@googlegroups.com',
license='BSD',
+ url='https://github.com/securactive/js.amcharts',
packages=find_packages(),namespace_packages=['js'],
include_package_data=True,
zip_safe=False, |
470458f918df26bf4bebe5a81739831968ea3e2f | setup.py | setup.py | from setuptools import setup, find_packages
with open('README.rst') as f:
long_description = f.read()
setup(
name='xopen',
use_scm_version={'write_to': 'src/xopen/_version.py'},
setup_requires=['setuptools_scm'], # Support pip versions that don't know about pyproject.toml
author='Marcel Martin et al.',
author_email='mail@marcelm.net',
url='https://github.com/pycompression/xopen/',
description='Open compressed files transparently',
long_description=long_description,
license='MIT',
package_dir={'': 'src'},
packages=find_packages('src'),
package_data={"xopen": ["py.typed"]},
extras_require={
'dev': ['pytest'],
':(sys_platform=="linux" or sys_platform=="darwin") and python_implementation != "PyPy"': ['isal>=0.5.0']
},
python_requires='>=3.6',
classifiers=[
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
]
)
| from setuptools import setup, find_packages
with open('README.rst') as f:
long_description = f.read()
setup(
name='xopen',
use_scm_version={'write_to': 'src/xopen/_version.py'},
setup_requires=['setuptools_scm'], # Support pip versions that don't know about pyproject.toml
author='Marcel Martin et al.',
author_email='mail@marcelm.net',
url='https://github.com/pycompression/xopen/',
description='Open compressed files transparently',
long_description=long_description,
license='MIT',
package_dir={'': 'src'},
packages=find_packages('src'),
package_data={"xopen": ["py.typed"]},
extras_require={
'dev': ['pytest'],
':python_implementation != "PyPy"': ['isal>=0.6.0']
},
python_requires='>=3.6',
classifiers=[
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
]
)
| Install isal wheels on windows too. | Install isal wheels on windows too. | Python | mit | marcelm/xopen | ---
+++
@@ -18,7 +18,7 @@
package_data={"xopen": ["py.typed"]},
extras_require={
'dev': ['pytest'],
- ':(sys_platform=="linux" or sys_platform=="darwin") and python_implementation != "PyPy"': ['isal>=0.5.0']
+ ':python_implementation != "PyPy"': ['isal>=0.6.0']
},
python_requires='>=3.6',
classifiers=[ |
841fe3f80e32520600321eb5c986b0ff3e002865 | setup.py | setup.py | from setuptools import setup, find_packages
setup(
name='sgfs',
version='0.1.0b',
description='Translation layer between Shotgun entities and a file structure.',
url='http://github.com/westernx/sgfs',
packages=find_packages(exclude=['build*', 'tests*']),
include_package_data=True,
author='Mike Boers',
author_email='sgfs@mikeboers.com',
license='BSD-3',
entry_points={
'console_scripts': [
# Low-level structure.
'sgfs-tag = sgfs.commands.tag:main',
'sgfs-create-structure = sgfs.commands.create_structure:main',
# Relinking or updating tags.
'sgfs-relink = sgfs.commands.relink:main',
'sgfs-rebuild-cache = gfs.commands.relink:main_rebuild',
'sgfs-update = sgfs.commands.update:main',
# Opening commands.
'sgfs-open = sgfs.commands.open:run_open',
'sgfs-shotgun = sgfs.commands.open:run_shotgun',
'sgfs-path = sgfs.commands.open:run_path',
'sgfs-rv = sgfs.commands.rv:run',
],
},
classifiers=[
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2',
'Topic :: Software Development :: Libraries :: Python Modules',
],
) | from setuptools import setup, find_packages
setup(
name='sgfs',
version='0.1.0b',
description='Translation layer between Shotgun entities and a file structure.',
url='http://github.com/westernx/sgfs',
packages=find_packages(exclude=['build*', 'tests*']),
include_package_data=True,
author='Mike Boers',
author_email='sgfs@mikeboers.com',
license='BSD-3',
entry_points={
'console_scripts': [
# Low-level structure.
'sgfs-tag = sgfs.commands.tag:main',
'sgfs-create-structure = sgfs.commands.create_structure:main',
# Relinking or updating tags.
'sgfs-relink = sgfs.commands.relink:main',
'sgfs-rebuild-cache = sgfs.commands.relink:main_rebuild',
'sgfs-update = sgfs.commands.update:main',
# Opening commands.
'sgfs-open = sgfs.commands.open:run_open',
'sgfs-shotgun = sgfs.commands.open:run_shotgun',
'sgfs-path = sgfs.commands.open:run_path',
'sgfs-rv = sgfs.commands.rv:run',
],
},
classifiers=[
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2',
'Topic :: Software Development :: Libraries :: Python Modules',
],
) | Fix typo in command name | Fix typo in command name
| Python | bsd-3-clause | westernx/sgfs,westernx/sgfs | ---
+++
@@ -22,7 +22,7 @@
# Relinking or updating tags.
'sgfs-relink = sgfs.commands.relink:main',
- 'sgfs-rebuild-cache = gfs.commands.relink:main_rebuild',
+ 'sgfs-rebuild-cache = sgfs.commands.relink:main_rebuild',
'sgfs-update = sgfs.commands.update:main',
# Opening commands. |
1a8bdb4afcdb268af09df1a1abf2ef09f45176f1 | setup.py | setup.py | from setuptools import setup
setup(
name='tangled.contrib',
version='0.1a4.dev0',
description='Tangled namespace for contributed packages',
long_description=open('README.rst').read(),
url='http://tangledframework.org/',
download_url='https://github.com/TangledWeb/tangled.contrib/tags',
author='Wyatt Baldwin',
author_email='self@wyattbaldwin.com',
packages=[
'tangled',
'tangled.contrib',
'tangled.contrib.scaffolds',
'tangled.contrib.tests',
],
include_package_data=True,
install_requires=[
'tangled>=0.1a5',
],
extras_require={
'dev': [
'tangled[dev]>=0.1a5',
],
},
entry_points="""
[tangled.scaffolds]
contrib = tangled.contrib.scaffolds:default
contrib-core = tangled.contrib.scaffolds:core
""",
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
],
)
| from setuptools import setup
setup(
name='tangled.contrib',
version='0.1a4.dev0',
description='Tangled namespace for contributed packages',
long_description=open('README.rst').read(),
url='http://tangledframework.org/',
download_url='https://github.com/TangledWeb/tangled.contrib/tags',
author='Wyatt Baldwin',
author_email='self@wyattbaldwin.com',
packages=[
'tangled',
'tangled.contrib',
'tangled.contrib.scaffolds',
'tangled.contrib.tests',
],
include_package_data=True,
install_requires=[
'tangled>=0.1a8',
],
extras_require={
'dev': [
'tangled[dev]>=0.1a8',
],
},
entry_points="""
[tangled.scaffolds]
contrib = tangled.contrib.scaffolds:default
contrib-core = tangled.contrib.scaffolds:core
""",
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
],
)
| Upgrade tangled from 0.1a5 to 0.1a8 | Upgrade tangled from 0.1a5 to 0.1a8
| Python | mit | TangledWeb/tangled.contrib | ---
+++
@@ -18,11 +18,11 @@
],
include_package_data=True,
install_requires=[
- 'tangled>=0.1a5',
+ 'tangled>=0.1a8',
],
extras_require={
'dev': [
- 'tangled[dev]>=0.1a5',
+ 'tangled[dev]>=0.1a8',
],
},
entry_points=""" |
d26271d67e9ccc3e2d1f2e0e82ed9969688432e6 | setup.py | setup.py | #!/usr/bin/env python
import os
from setuptools import find_packages, setup
def read(*rnames):
return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
setup(
name="django-anonymizer",
version='0.5.0.13-bw',
packages=find_packages(exclude=['*.tests']),
include_package_data=True,
author="Luke Plant",
author_email="L.Plant.98@cantab.net",
url="https://bitbucket.org/spookylukey/django-anonymizer/",
description="App to anonymize data in Django models.",
long_description=(read('README.rst') + "\n\n" + read('CHANGES.rst')),
license="MIT",
keywords="django data database anonymize private",
classifiers=[
"Development Status :: 4 - Beta",
"Environment :: Web Environment",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Framework :: Django",
"Topic :: Software Development :: Testing",
"Topic :: Database"
],
install_requires=[
'faker >= 0.0.4-bw',
'django >= 1.8.0',
'six >= 1.10.0'],
)
| #!/usr/bin/env python
import os
from setuptools import find_packages, setup
def read(*rnames):
return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
setup(
name="django-anonymizer",
version='0.5.0.13-bw',
packages=find_packages(exclude=['*.tests']),
include_package_data=True,
author="Luke Plant",
author_email="L.Plant.98@cantab.net",
maintainer="David Stensland",
maintainer_email="anonymizer@terite.com",
url="https://github.com/betterworks/django-anonymizer",
description="App to anonymize data in Django models.",
long_description=(read('README.rst') + "\n\n" + read('CHANGES.rst')),
license="MIT",
keywords="django data database anonymize private",
classifiers=[
"Development Status :: 4 - Beta",
"Environment :: Web Environment",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Framework :: Django",
"Topic :: Software Development :: Testing",
"Topic :: Database"
],
install_requires=[
'faker >= 0.0.4-bw',
'django >= 1.8.0',
'six >= 1.10.0'],
)
| Add myself as a maintainer & update the url | Add myself as a maintainer & update the url
| Python | mit | BetterWorks/django-anonymizer | ---
+++
@@ -16,7 +16,9 @@
author="Luke Plant",
author_email="L.Plant.98@cantab.net",
- url="https://bitbucket.org/spookylukey/django-anonymizer/",
+ maintainer="David Stensland",
+ maintainer_email="anonymizer@terite.com",
+ url="https://github.com/betterworks/django-anonymizer",
description="App to anonymize data in Django models.",
long_description=(read('README.rst') + "\n\n" + read('CHANGES.rst')),
license="MIT", |
2f155a48bfdae8a603148f4e593d7e49fccc7ddc | setup.py | setup.py | #!/usr/bin/env python
import re
from setuptools import setup, find_packages
with open('rhino/__init__.py') as f:
version = re.findall(r"^__version__ = '(.*)'", f.read(), re.M)[0]
with open('README.rst') as f:
README = f.read()
setup(
name='Rhino',
version=version,
author='Stanis Trendelenburg',
author_email='stanis.trendelenburg@gmail.com',
packages=find_packages(exclude=['test*', 'example*']),
url='https://github.com/trendels/rhino',
license='MIT',
description='A microframework for building RESTful web services',
long_description=README,
classifiers = [
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
],
install_requires=['uritemplate'],
)
| #!/usr/bin/env python
import re
from setuptools import setup, find_packages
with open('rhino/__init__.py') as f:
version = re.findall(r"^__version__ = '(.*)'", f.read(), re.M)[0]
with open('README.rst') as f:
README = f.read()
setup(
name='Rhino',
version=version,
author='Stanis Trendelenburg',
author_email='stanis.trendelenburg@gmail.com',
packages=find_packages(exclude=['test*', 'example*']),
url='https://github.com/trendels/rhino',
license='MIT',
description='A microframework for building RESTful web services',
long_description=README,
classifiers = [
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
],
)
| Remove line added by mistake | Remove line added by mistake
| Python | mit | trendels/rhino | ---
+++
@@ -25,5 +25,4 @@
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
],
- install_requires=['uritemplate'],
) |
19e0c178b924e0db54ab07f71d1e0fd6e02b8a23 | setup.py | setup.py |
try:
from distutils.core import setup
except ImportError:
from setuptools import setup
open('MANIFEST.in', 'w').write("\n".join((
'include *.rst',
'include doc/*',
'include test/*.c'
)))
from mss import __version__
setup(
name='mss',
version=__version__,
author='Tiger-222',
py_modules=['mss'],
author_email='contact@tiger-222.fr',
description='A cross-platform multi-screen shot module in pure python using ctypes',
long_description=open('README.rst').read(),
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Intended Audience :: Information Technology',
'License :: OSI Approved :: zlib/libpng License',
'Natural Language :: English',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.0',
'Programming Language :: Python :: 3.1',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Topic :: Multimedia :: Graphics :: Capture :: Screen Capture',
],
url='https://github.com/BoboTiG/python-mss'
)
|
try:
from distutils.core import setup
except ImportError:
from setuptools import setup
open('MANIFEST.in', 'w').write("\n".join((
'include *.rst',
'include doc/*'
)))
from mss import __version__
setup(
name='mss',
version=__version__,
author='Tiger-222',
py_modules=['mss'],
author_email='contact@tiger-222.fr',
description='A cross-platform multi-screen shot module in pure python using ctypes',
long_description=open('README.rst').read(),
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Intended Audience :: Information Technology',
'License :: OSI Approved :: zlib/libpng License',
'Natural Language :: English',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.0',
'Programming Language :: Python :: 3.1',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Topic :: Multimedia :: Graphics :: Capture :: Screen Capture',
],
url='https://github.com/BoboTiG/python-mss'
)
| Remove C file from package sent to pip env | Remove C file from package sent to pip env
| Python | mit | BoboTiG/python-mss | ---
+++
@@ -6,8 +6,7 @@
open('MANIFEST.in', 'w').write("\n".join((
'include *.rst',
- 'include doc/*',
- 'include test/*.c'
+ 'include doc/*'
)))
from mss import __version__ |
bd78770c589ff2919ce96d0b04127bfceda0583f | setup.py | setup.py | from setuptools import setup
version = '0.5.dev0'
long_description = '\n\n'.join([
open('README.rst').read(),
open('CREDITS.rst').read(),
open('CHANGES.rst').read(),
])
install_requires = [
'Django',
'ddsc-logging',
'ddsc-opendap',
'ddsc-site',
'dikedata-api',
'django-cors-headers',
'django-extensions',
'django-nose',
'gunicorn',
'lizard-auth-client',
'lizard-ui >= 4.0b5',
'lxml >= 3.0',
'pyproj',
'python-magic',
'python-memcached',
'raven',
'tslib',
'werkzeug',
],
setup(name='ddsc-api',
version=version,
description="TODO",
long_description=long_description,
# Get strings from http://www.python.org/pypi?%3Aaction=list_classifiers
classifiers=['Programming Language :: Python',
'Framework :: Django',
],
keywords=[],
author='Reinout van Rees',
author_email='reinout.vanrees@nelen-schuurmans.nl',
url='',
license='MIT',
packages=['ddsc_api'],
include_package_data=True,
zip_safe=False,
install_requires=install_requires,
entry_points={
'console_scripts': [
]},
)
| from setuptools import setup
version = '0.5.dev0'
long_description = '\n\n'.join([
open('README.rst').read(),
open('CREDITS.rst').read(),
open('CHANGES.rst').read(),
])
install_requires = [
'Django',
'ddsc-logging',
'ddsc-core',
'ddsc-opendap',
'ddsc-site',
'dikedata-api',
'django-cors-headers',
'django-extensions',
'django-haystack >= 2.0',
'django-nose',
'gunicorn',
'lizard-security',
'lizard-auth-client',
'lizard-ui >= 4.0b5',
'lxml >= 3.0',
'pyproj',
'python-magic',
'python-memcached',
'raven',
'tslib',
'werkzeug',
],
setup(name='ddsc-api',
version=version,
description="TODO",
long_description=long_description,
# Get strings from http://www.python.org/pypi?%3Aaction=list_classifiers
classifiers=['Programming Language :: Python',
'Framework :: Django',
],
keywords=[],
author='Reinout van Rees',
author_email='reinout.vanrees@nelen-schuurmans.nl',
url='',
license='MIT',
packages=['ddsc_api'],
include_package_data=True,
zip_safe=False,
install_requires=install_requires,
entry_points={
'console_scripts': [
]},
)
| Add missing libraries to the install_requires list (we import from them, so they really should be declared. | Add missing libraries to the install_requires list (we import from them, so they really should be declared.
| Python | mit | ddsc/ddsc-api,ddsc/ddsc-api | ---
+++
@@ -11,13 +11,16 @@
install_requires = [
'Django',
'ddsc-logging',
+ 'ddsc-core',
'ddsc-opendap',
'ddsc-site',
'dikedata-api',
'django-cors-headers',
'django-extensions',
+ 'django-haystack >= 2.0',
'django-nose',
'gunicorn',
+ 'lizard-security',
'lizard-auth-client',
'lizard-ui >= 4.0b5',
'lxml >= 3.0', |
2fe54797df8a7efbcb58e14de72b415069af7eb4 | setup.py | setup.py | from setuptools import setup, find_packages
from django_python3_ldap import __version__
version_str = ".".join(str(n) for n in __version__)
setup(
name = "django-python3-ldap",
version = version_str,
license = "BSD",
description = "Django LDAP user authentication backend for Python 3.",
author = "Dave Hall",
author_email = "dave@etianen.com",
url = "https://github.com/etianen/django-python3-ldap",
packages = find_packages(),
install_requires = [
"django>=1.7",
"python3-ldap==0.9.5.3",
],
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3.2",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
"Framework :: Django",
],
) | from setuptools import setup, find_packages
from django_python3_ldap import __version__
version_str = ".".join(str(n) for n in __version__)
setup(
name = "django-python3-ldap",
version = version_str,
license = "BSD",
description = "Django LDAP user authentication backend for Python 3.",
author = "Dave Hall",
author_email = "dave@etianen.com",
url = "https://github.com/etianen/django-python3-ldap",
packages = find_packages(),
install_requires = [
"django>=1.7",
"ldap3==0.9.8.2",
],
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3.2",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
"Framework :: Django",
],
)
| Fix dependencies with new package ldap3 | Fix dependencies with new package ldap3
Old package 'python3_ldap' is now called 'ldap3'. And 'python3_ldap' version 0.9.5.3 is no more available on pypi | Python | bsd-3-clause | etianen/django-python3-ldap,rbrtslmn/django-python3-ldap,sol33t/django-python3-ldap,NotSqrt/django-python3-ldap,mnach/django-python3-ldap,alanzoppa/django-python3-ldap | ---
+++
@@ -17,7 +17,7 @@
packages = find_packages(),
install_requires = [
"django>=1.7",
- "python3-ldap==0.9.5.3",
+ "ldap3==0.9.8.2",
],
classifiers = [
"Development Status :: 4 - Beta", |
71a717f5166ec52b630507c83b3a67456786b996 | setup.py | setup.py | import codecs
import re
from os import path
from setuptools import setup
def read(*parts):
file_path = path.join(path.dirname(__file__), *parts)
return codecs.open(file_path).read()
def find_version(*parts):
version_file = read(*parts)
version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]",
version_file, re.M)
if version_match:
return version_match.group(1)
raise RuntimeError("Unable to find version string.")
setup(
name='django-predicate',
version=find_version('predicate', '__init__.py'),
description='A predicate class constructed like Django Q objects, used to '
'test whether a new or modified model would match a query',
long_description=read('README.rst'),
author='Preston Holmes',
author_email='preston@ptone.com',
license='BSD',
url='http://github.com/ptone/django-predicate',
packages=[
'predicate',
],
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.5',
'Topic :: Utilities',
],
test_suite='runtests.runtests'
)
| import codecs
import re
from os import path
from setuptools import setup
def read(*parts):
file_path = path.join(path.dirname(__file__), *parts)
return codecs.open(file_path).read()
def find_version(*parts):
version_file = read(*parts)
version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]",
version_file, re.M)
if version_match:
return version_match.group(1)
raise RuntimeError("Unable to find version string.")
setup(
name='django-predicate',
version=find_version('predicate', '__init__.py'),
description='A predicate class constructed like Django Q objects, used to '
'test whether a new or modified model would match a query',
long_description=read('README.rst'),
author='Preston Holmes',
author_email='preston@ptone.com',
license='BSD',
url='http://github.com/ptone/django-predicate',
packages=[
'predicate',
],
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.5',
'Topic :: Utilities',
],
test_suite='runtests.runtests'
)
| Drop python 2.6 support from metadata | Drop python 2.6 support from metadata
| Python | bsd-3-clause | ptone/django-predicate | ---
+++
@@ -39,7 +39,6 @@
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
- 'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.5',
'Topic :: Utilities', |
7fe88d28e2c86a884be81c7757cc8ffadff5aa71 | setup.py | setup.py | import os
import re
import sys
from setuptools import setup, find_packages
if sys.version_info[:2] < (2, 6):
raise RuntimeError('Requires Python 2.6 or better')
here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.txt')).read()
info = open(os.path.join(here, 'inferno', 'lib', '__init__.py')).read()
VERSION = re.compile(r".*__version__ = '(.*?)'", re.S).match(info).group(1)
install_requires = [
'argparse',
'pyyaml',
'setproctitle',
'tornado',
'ujson',
]
tests_require = install_requires + [
'nose',
'mock']
setup(
name='inferno',
version=VERSION,
description=('Inferno: a python map/reduce platform powered by disco.'),
long_description=README,
keywords='inferno discoproject',
author='Chango Inc.',
author_email='dev@chango.com',
url='http://chango.com',
license='MIT License',
packages=find_packages(exclude=['test']),
include_package_data=True,
zip_safe=False,
install_requires=install_requires,
tests_require=tests_require,
test_suite='nose.collector',
entry_points="""
[console_scripts]
inferno=inferno.bin.run:main
""", requires=['disco'])
| import os
import re
import sys
from setuptools import setup, find_packages
if sys.version_info[:2] < (2, 6):
raise RuntimeError('Requires Python 2.6 or better')
here = os.path.abspath(os.path.dirname(__file__))
info = open(os.path.join(here, 'inferno', 'lib', '__init__.py')).read()
VERSION = re.compile(r".*__version__ = '(.*?)'", re.S).match(info).group(1)
install_requires = [
'argparse',
'pyyaml',
'setproctitle',
'tornado',
'ujson',
]
tests_require = install_requires + [
'nose',
'mock']
setup(
name='inferno',
version=VERSION,
description=('Inferno: a python map/reduce platform powered by disco.'),
keywords='inferno discoproject',
author='Chango Inc.',
author_email='dev@chango.com',
url='http://chango.com',
license='MIT License',
packages=find_packages(exclude=['test']),
include_package_data=True,
zip_safe=False,
install_requires=install_requires,
tests_require=tests_require,
test_suite='nose.collector',
entry_points="""
[console_scripts]
inferno=inferno.bin.run:main
""", requires=['disco'])
| Remove the reference to README. | Remove the reference to README. | Python | mit | oldmantaiter/inferno,pombredanne/inferno,chango/inferno | ---
+++
@@ -9,7 +9,6 @@
raise RuntimeError('Requires Python 2.6 or better')
here = os.path.abspath(os.path.dirname(__file__))
-README = open(os.path.join(here, 'README.txt')).read()
info = open(os.path.join(here, 'inferno', 'lib', '__init__.py')).read()
VERSION = re.compile(r".*__version__ = '(.*?)'", re.S).match(info).group(1)
@@ -29,7 +28,6 @@
name='inferno',
version=VERSION,
description=('Inferno: a python map/reduce platform powered by disco.'),
- long_description=README,
keywords='inferno discoproject',
author='Chango Inc.',
author_email='dev@chango.com', |
cb7f4dfb9315c79448f2db52266df0f11aeb6210 | setup.py | setup.py | from setuptools import setup, find_packages
setup(name='coinop',
version='0.0.3',
description='Crypto-currency conveniences',
url='http://github.com/BitVault/coinop-py',
author='Matthew King',
author_email='matthew@bitvault.io',
license='MIT',
packages=find_packages(exclude=[
u'*.tests', u'*.tests.*', u'tests.*', u'tests']),
install_requires=[
# Not listed explicitly to ensure you install PyNaCl by hand--
# see README
#'PyNaCl',
'cffi',
'pytest',
'pycrypto',
'python-bitcoinlib',
'pycoin',
'PyYAML',
'ecdsa'
],
zip_safe=False)
| from setuptools import setup, find_packages
setup(name='coinop',
version='0.1.0',
description='Crypto-currency conveniences',
url='http://github.com/BitVault/coinop-py',
author='Matthew King',
author_email='matthew@bitvault.io',
license='MIT',
packages=find_packages(exclude=[
u'*.tests', u'*.tests.*', u'tests.*', u'tests']),
install_requires=[
# Not listed explicitly to ensure you install PyNaCl by hand--
# see README
#'PyNaCl',
'cffi',
'pytest',
'pycrypto',
'python-bitcoinlib',
'pycoin',
'PyYAML',
'ecdsa'
],
zip_safe=False)
| Make version number match patchboard, bitvault | Make version number match patchboard, bitvault
| Python | mit | GemHQ/coinop-py | ---
+++
@@ -2,7 +2,7 @@
setup(name='coinop',
- version='0.0.3',
+ version='0.1.0',
description='Crypto-currency conveniences',
url='http://github.com/BitVault/coinop-py',
author='Matthew King', |
53727a452f0a6498f02c046f47e24effb81349da | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup
setup(name='pyannotate',
version='1.0.5',
description="PyAnnotate: Auto-generate PEP-484 annotations",
author='Dropbox',
author_email='guido@dropbox.com',
url='https://github.com/dropbox/pyannotate',
license='Apache 2.0',
platforms=['POSIX'],
packages=['pyannotate_runtime', 'pyannotate_tools',
'pyannotate_tools.annotations', 'pyannotate_tools.fixes'],
entry_points={'console_scripts': ['pyannotate=pyannotate_tools.annotations.__main__:main']},
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Operating System :: POSIX',
'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',
'Topic :: Software Development',
],
install_requires = ['six',
'mypy_extensions',
'typing >= 3.5.3; python_version < "3.5"'
],
)
| #!/usr/bin/env python
import os
from setuptools import setup
def get_long_description():
filename = os.path.join(os.path.dirname(__file__), 'README.md')
with open(filename) as f:
return f.read()
setup(name='pyannotate',
version='1.0.5',
description="PyAnnotate: Auto-generate PEP-484 annotations",
long_description=get_long_description(),
author='Dropbox',
author_email='guido@dropbox.com',
url='https://github.com/dropbox/pyannotate',
license='Apache 2.0',
platforms=['POSIX'],
packages=['pyannotate_runtime', 'pyannotate_tools',
'pyannotate_tools.annotations', 'pyannotate_tools.fixes'],
entry_points={'console_scripts': ['pyannotate=pyannotate_tools.annotations.__main__:main']},
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Operating System :: POSIX',
'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',
'Topic :: Software Development',
],
install_requires = ['six',
'mypy_extensions',
'typing >= 3.5.3; python_version < "3.5"'
],
)
| Add long description (from README.md) | Add long description (from README.md)
| Python | apache-2.0 | dropbox/pyannotate | ---
+++
@@ -1,10 +1,17 @@
#!/usr/bin/env python
+import os
from setuptools import setup
+
+def get_long_description():
+ filename = os.path.join(os.path.dirname(__file__), 'README.md')
+ with open(filename) as f:
+ return f.read()
setup(name='pyannotate',
version='1.0.5',
description="PyAnnotate: Auto-generate PEP-484 annotations",
+ long_description=get_long_description(),
author='Dropbox',
author_email='guido@dropbox.com',
url='https://github.com/dropbox/pyannotate', |
78583066f80b4392ad03f37dcee276622ce8223d | setup.py | setup.py | from setuptools import find_packages, setup
with open("README.rst") as readme_file:
readme = readme_file.read()
setup(
name="homebrew",
version="0.2.1",
description="Homebrew wrapper",
long_description=readme,
author="Iwan in 't Groen",
author_email="iwanintgroen@gmail.com",
url="https://github.com/igroen/homebrew",
packages=find_packages(),
tests_require=["pytest"],
setup_requires=["pytest-runner"],
entry_points={"console_scripts": ["hb=homebrew.command_line:main"]},
license="ISCL",
classifiers=[
"License :: OSI Approved :: ISC License (ISCL)",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
],
)
| from setuptools import find_packages, setup
with open("README.rst") as readme_file:
readme = readme_file.read()
setup(
name="homebrew",
version="0.2.1",
description="Homebrew wrapper",
long_description=readme,
author="Iwan in 't Groen",
author_email="iwanintgroen@gmail.com",
url="https://github.com/igroen/homebrew",
packages=find_packages(),
tests_require=["pytest"],
setup_requires=["pytest-runner"],
entry_points={"console_scripts": ["hb=homebrew.command_line:main"]},
license="ISCL",
classifiers=[
"License :: OSI Approved :: ISC License (ISCL)",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
],
)
| Add python 3.9 to trove classifiers | Add python 3.9 to trove classifiers
| Python | isc | igroen/homebrew | ---
+++
@@ -21,5 +21,6 @@
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
+ "Programming Language :: Python :: 3.9",
],
) |
3ee933042e0c02a5a23e69d48e81d3fb5a9fa05b | setup.py | setup.py | import os
import setuptools
requirements = [
"numpy",
"scipy",
"lasagne",
]
def readme():
base_dir = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(base_dir, 'README.md')) as f:
return f.read()
def setup():
setuptools.setup(
name="nn_patterns",
version="0.1",
description=("Implementation of PatternNet and PatternLRP:"
" https://arxiv.org/abs/1705.05598"),
long_description=readme(),
classifiers=[
"License :: OSI Approved :: ",
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Intended Audience :: Science/Research",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.4",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
],
url="https://github.com/pikinder/nn-patterns",
author="Pieter-Jan Kindermans, Maxmilian Alber",
author_email="pieterjankindermans@gmail.com",
license="MIT",
packages=setuptools.find_packages(),
install_requires=requirements,
include_package_data=True,
zip_safe=False,
)
pass
if __name__ == "__main__":
setup()
| import os
import setuptools
requirements = [
"fnmatch",
"future",
"six",
"numpy",
"scipy",
"lasagne",
"theano",
]
def readme():
base_dir = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(base_dir, 'README.md')) as f:
return f.read()
def setup():
setuptools.setup(
name="nn_patterns",
version="0.1",
description=("Implementation of PatternNet and PatternLRP:"
" https://arxiv.org/abs/1705.05598"),
long_description=readme(),
classifiers=[
"License :: OSI Approved :: ",
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Intended Audience :: Science/Research",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.4",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
],
url="https://github.com/pikinder/nn-patterns",
author="Pieter-Jan Kindermans, Maxmilian Alber",
author_email="pieterjankindermans@gmail.com",
license="MIT",
packages=setuptools.find_packages(),
install_requires=requirements,
include_package_data=True,
zip_safe=False,
)
pass
if __name__ == "__main__":
setup()
| Add requirements to package definition. | Add requirements to package definition.
| Python | mit | pikinder/nn-patterns | ---
+++
@@ -3,9 +3,14 @@
requirements = [
+ "fnmatch",
+ "future",
+ "six",
+
"numpy",
"scipy",
"lasagne",
+ "theano",
]
|
123f5a8dd6fc49d3e5f4be09096bdeabe4ffdd24 | setup.py | setup.py | """Setup script for zinnia-theme-bootstrap"""
from setuptools import setup
from setuptools import find_packages
import zinnia_bootstrap
setup(
name='zinnia-theme-bootstrap',
version=zinnia_bootstrap.__version__,
description='Bootstrap theme for django-blog-zinnia',
long_description=open('README.rst').read(),
keywords='django, blog, weblog, zinnia, theme, skin, bootstrap',
author=zinnia_bootstrap.__author__,
author_email=zinnia_bootstrap.__email__,
url=zinnia_bootstrap.__url__,
packages=find_packages(exclude=['demo_zinnia_bootstrap']),
classifiers=[
'Framework :: Django',
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Programming Language :: Python',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'License :: OSI Approved :: BSD License',
'Topic :: Software Development :: Libraries :: Python Modules'],
license=zinnia_bootstrap.__license__,
include_package_data=True,
zip_safe=False
)
| """Setup script for zinnia-theme-bootstrap"""
from setuptools import setup
from setuptools import find_packages
import zinnia_bootstrap
setup(
name='zinnia-theme-bootstrap',
version=zinnia_bootstrap.__version__,
description='Bootstrap theme for django-blog-zinnia',
long_description=open('README.rst').read(),
keywords='django, blog, weblog, zinnia, theme, skin, bootstrap',
author=zinnia_bootstrap.__author__,
author_email=zinnia_bootstrap.__email__,
url=zinnia_bootstrap.__url__,
packages=find_packages(exclude=['demo_zinnia_bootstrap']),
classifiers=[
'Framework :: Django',
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'License :: OSI Approved :: BSD License',
'Topic :: Software Development :: Libraries :: Python Modules'],
license=zinnia_bootstrap.__license__,
include_package_data=True,
zip_safe=False
)
| Add classifier for Python 3 | Add classifier for Python 3
| Python | bsd-3-clause | dwdsolutions/zinnia-theme-hos,django-blog-zinnia/zinnia-theme-bootstrap,django-blog-zinnia/zinnia-theme-bootstrap,dwdsolutions/zinnia-theme-hos | ---
+++
@@ -23,6 +23,7 @@
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Programming Language :: Python',
+ 'Programming Language :: Python :: 3',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'License :: OSI Approved :: BSD License', |
17512492c1fe997e6f19f56901e6a231aea9fced | setup.py | setup.py | import os
from setuptools import find_packages, setup
with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme:
README = readme.read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='otree-redwood',
version='0.0.3',
packages=find_packages(),
include_package_data=True,
license='MIT License',
description='oTree extension for inter-page communication.',
long_description=README,
url='https://github.com/Leeps-Lab/otree-redwood',
author='James Pettit',
author_email='james.l.pettit@gmail.com',
classifiers=[
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
],
install_requires=[
'fasteners>=0.14.1,<1',
'firebase-token-generator>=2.0.1,<3',
'sseclient>0.0.12,<1',
'python-firebase>=1.2.0,<2'
]
)
| import os
from setuptools import find_packages, setup
with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme:
README = readme.read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='otree-redwood',
version='0.1.0',
packages=find_packages(),
include_package_data=True,
license='MIT License',
description='oTree extension for inter-page communication.',
long_description=README,
url='https://github.com/Leeps-Lab/otree-redwood',
author='James Pettit',
author_email='james.l.pettit@gmail.com',
classifiers=[
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
],
install_requires=[
'channel>=1,<2'
]
)
| Update pypi version, update requirements. | Update pypi version, update requirements.
| Python | mit | Leeps-Lab/otree-redwood,Leeps-Lab/otree-redwood,Leeps-Lab/otree-redwood | ---
+++
@@ -9,7 +9,7 @@
setup(
name='otree-redwood',
- version='0.0.3',
+ version='0.1.0',
packages=find_packages(),
include_package_data=True,
license='MIT License',
@@ -32,9 +32,6 @@
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
],
install_requires=[
- 'fasteners>=0.14.1,<1',
- 'firebase-token-generator>=2.0.1,<3',
- 'sseclient>0.0.12,<1',
- 'python-firebase>=1.2.0,<2'
+ 'channel>=1,<2'
]
) |
b87a3601d9575df5180255bc06f5564c77a90eca | setup.py | setup.py | #!/usr/bin/env python
# coding: utf-8
from setuptools import setup, find_packages
setup(
name="bentoo",
description="Benchmarking tools",
version="0.9",
packages=find_packages(),
scripts=["scripts/generator.py", "scripts/runner.py",
"scripts/collector.py", "scripts/analyser.py"],
package_data={
'': ['*.adoc', '*.rst', '*.md']
},
author="Zhang YANG",
author_email="zyangmath@gmail.com",
license="PSF",
keywords="Benchmark;Performance Analysis",
url="http://github.com/ProgramFan/bentoo"
)
| #!/usr/bin/env python
# coding: utf-8
from setuptools import setup, find_packages
setup(
name="bentoo",
description="Benchmarking tools",
version="0.10-dev",
packages=find_packages(),
scripts=["scripts/generator.py", "scripts/runner.py",
"scripts/collector.py", "scripts/analyser.py"],
package_data={
'': ['*.adoc', '*.rst', '*.md']
},
author="Zhang YANG",
author_email="zyangmath@gmail.com",
license="PSF",
keywords="Benchmark;Performance Analysis",
url="http://github.com/ProgramFan/bentoo"
)
| Prepare for next development cycle | Prepare for next development cycle
| Python | mit | ProgramFan/bentoo | ---
+++
@@ -5,7 +5,7 @@
setup(
name="bentoo",
description="Benchmarking tools",
- version="0.9",
+ version="0.10-dev",
packages=find_packages(),
scripts=["scripts/generator.py", "scripts/runner.py",
"scripts/collector.py", "scripts/analyser.py"], |
eda82743b8c572bb9c9c43037f8bc4b75ec66ad6 | setup.py | setup.py | from setuptools import setup, find_packages
setup(
name="LightMatchingEngine",
url="https://github.com/gavincyi/LightMatchingEngine",
license='MIT',
author="Gavin Chan",
author_email="gavincyi@gmail.com",
description="A light matching engine",
packages=find_packages(exclude=('tests',)),
use_scm_version=True,
install_requires=[],
setup_requires=['setuptools_scm'],
tests_require=[
'pytest'
],
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'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, find_packages
setup(
name="lightmatchingengine",
url="https://github.com/gavincyi/LightMatchingEngine",
license='MIT',
author="Gavin Chan",
author_email="gavincyi@gmail.com",
description="A light matching engine",
packages=find_packages(exclude=('tests',)),
use_scm_version=True,
install_requires=[],
setup_requires=['setuptools_scm'],
tests_require=[
'pytest'
],
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'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',
],
)
| Rename package name to lightmatchingengine | Rename package name to lightmatchingengine
| Python | mit | gavincyi/LightMatchingEngine | ---
+++
@@ -1,7 +1,7 @@
from setuptools import setup, find_packages
setup(
- name="LightMatchingEngine",
+ name="lightmatchingengine",
url="https://github.com/gavincyi/LightMatchingEngine",
license='MIT',
|
d155daf76457386661be1f7b93bed6ba6ab448fb | setup.py | setup.py | # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
VERSION = '1.4.0'
setup(
name='tornadoes',
version=VERSION,
description="A tornado-powered python library that provides asynchronous access to elasticsearch.",
long_description="""\
A tornado-powered python library that provides asynchronous access to elasticsearch.""",
author='Team Search of globo.com',
author_email='busca@corp.globo.com',
url='http://github.com/globocom/tornado-es',
download_url='http://github.com/globocom/tornado-es',
license='MIT',
packages=find_packages(exclude=['ez_setup', 'testes']),
include_package_data=True,
zip_safe=True,
install_requires=[
'tornado>=3.0.0,<3.2.0',
],
tests_require=[
'unittest2',
'nose'
],
dependency_links=[],
)
| # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
VERSION = '1.4.1'
setup(
name='tornadoes',
version=VERSION,
description="A tornado-powered python library that provides asynchronous access to elasticsearch.",
long_description="""\
A tornado-powered python library that provides asynchronous access to elasticsearch.""",
author='Team Search of globo.com',
author_email='busca@corp.globo.com',
url='http://github.com/globocom/tornado-es',
download_url='http://github.com/globocom/tornado-es',
license='MIT',
packages=find_packages(exclude=['ez_setup', 'testes']),
include_package_data=True,
zip_safe=True,
install_requires=[
'tornado>=3.0.0,<3.2.0',
],
tests_require=[
'unittest2',
'nose'
],
dependency_links=[],
)
| Improve parameters usage of create_path function. | Improve parameters usage of create_path function.
| Python | mit | scorphus/tornado-es,scorphus/tornado-es,excpt0/tornado-es,globocom/tornado-es,excpt0/tornado-es,globocom/tornado-es | ---
+++
@@ -2,7 +2,7 @@
from setuptools import setup, find_packages
-VERSION = '1.4.0'
+VERSION = '1.4.1'
setup(
name='tornadoes', |
efa6852a86e42557e0c5078e00c090e17f4ae1f8 | setup.py | setup.py | #
# This file is part of ArgProc. ArgProc is free software that is made
# available under the MIT license. Consult the file "LICENSE" that is
# distributed together with this file for the exact licensing terms.
#
# ArgProc is copyright (c) 2010 by the ArgProc authors. See the file
# "AUTHORS" for a complete overview.
import os
from setuptools import setup, Extension, Command
class gentab(Command):
"""Generate the PLY parse tables."""
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
from argproc.parser import RuleParser
RuleParser._write_tables()
setup(
name = 'argproc',
version = '1.4',
description = 'A rule-based arguments processor',
author = 'Geert Jansen',
author_email = 'geert@boskant.nl',
url = 'http://bitbucket.org/geertj/argproc',
license = 'MIT',
classifiers = [
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules' ],
package_dir = {'': 'lib'},
packages = ['argproc', 'argproc.test'],
test_suite = 'nose.collector',
cmdclass = { 'gentab': gentab },
install_requires = ['ply >= 3.3', 'nose'],
use_2to3 = True
)
| #
# This file is part of ArgProc. ArgProc is free software that is made
# available under the MIT license. Consult the file "LICENSE" that is
# distributed together with this file for the exact licensing terms.
#
# ArgProc is copyright (c) 2010 by the ArgProc authors. See the file
# "AUTHORS" for a complete overview.
import os
from setuptools import setup, Extension, Command
class gentab(Command):
"""Generate the PLY parse tables."""
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
from argproc.parser import RuleParser
RuleParser._write_tables()
setup(
name = 'argproc',
version = '1.4',
description = 'A rule-based arguments processor',
author = 'Geert Jansen',
author_email = 'geertj@gmail.com',
url = 'http://github.com/geertj/argproc',
license = 'MIT',
classifiers = [
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules' ],
package_dir = {'': 'lib'},
packages = ['argproc', 'argproc.test'],
test_suite = 'nose.collector',
cmdclass = { 'gentab': gentab },
install_requires = ['ply >= 3.3', 'nose'],
use_2to3 = True
)
| Update email address and home page. | Update email address and home page.
| Python | mit | geertj/argproc | ---
+++
@@ -31,8 +31,8 @@
version = '1.4',
description = 'A rule-based arguments processor',
author = 'Geert Jansen',
- author_email = 'geert@boskant.nl',
- url = 'http://bitbucket.org/geertj/argproc',
+ author_email = 'geertj@gmail.com',
+ url = 'http://github.com/geertj/argproc',
license = 'MIT',
classifiers = [
'Development Status :: 4 - Beta', |
785cbcb8ff92520e0e57fec3634353935b5b030a | setup.py | setup.py | from setuptools import setup
setup(name='depfinder',
version='0.0.1',
author='Eric Dill',
author_email='thedizzle@gmail.com',
py_modules=['depfinder'],
description='Find all the imports in your library',
url='http://github.com/ericdill/depfinder',
platforms='Cross platform (Linux, Mac OSX, Windows)',
install_requires=['stdlib_list', 'setuptools'],
)
| from setuptools import setup
import depfinder
setup(name='depfinder',
version=depfinder.__version__,
author='Eric Dill',
author_email='thedizzle@gmail.com',
py_modules=['depfinder'],
description='Find all the imports in your library',
url='http://github.com/ericdill/depfinder',
platforms='Cross platform (Linux, Mac OSX, Windows)',
install_requires=['stdlib_list', 'setuptools'],
)
| Use the version specified in depfinder.py | MNT: Use the version specified in depfinder.py
| Python | bsd-3-clause | ericdill/depfinder | ---
+++
@@ -1,7 +1,8 @@
from setuptools import setup
+import depfinder
setup(name='depfinder',
- version='0.0.1',
+ version=depfinder.__version__,
author='Eric Dill',
author_email='thedizzle@gmail.com',
py_modules=['depfinder'], |
e30bcefccd5f41a7117afc2d3f7007561ac69af8 | setup.py | setup.py | import sys
from setuptools import find_packages, setup
with open('VERSION') as version_fp:
VERSION = version_fp.read().strip()
install_requires = [
'django-local-settings>=1.0a14',
'stashward',
]
if sys.version_info[:2] < (3, 4):
install_requires.append('enum34')
setup(
name='django-arcutils',
version=VERSION,
url='https://github.com/PSU-OIT-ARC/django-arcutils',
author='PSU - OIT - ARC',
author_email='consultants@pdx.edu',
description='Common utilities used in ARC Django projects',
packages=find_packages(),
include_package_data=True,
zip_safe=False,
install_requires=install_requires,
extras_require={
'ldap': [
'certifi>=2016.2.28',
'ldap3>=1.0.4',
],
'dev': [
'django>=1.7,<1.9',
'djangorestframework>3.3',
'flake8',
'ldap3',
],
},
entry_points="""
[console_scripts]
arcutils = arcutils.__main__:main
""",
classifiers=[
'Development Status :: 3 - Alpha',
'Framework :: Django',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
],
)
| import sys
from setuptools import find_packages, setup
with open('VERSION') as version_fp:
VERSION = version_fp.read().strip()
install_requires = [
'django-local-settings>=1.0a14',
'stashward',
]
if sys.version_info[:2] < (3, 4):
install_requires.append('enum34')
setup(
name='django-arcutils',
version=VERSION,
url='https://github.com/PSU-OIT-ARC/django-arcutils',
author='PSU - OIT - ARC',
author_email='consultants@pdx.edu',
description='Common utilities used in ARC Django projects',
packages=find_packages(),
include_package_data=True,
zip_safe=False,
install_requires=install_requires,
extras_require={
'ldap': [
'certifi>=2016.2.28',
'ldap3>=1.1.2',
],
'dev': [
'django>=1.7,<1.9',
'djangorestframework>3.3',
'flake8',
'ldap3',
],
},
entry_points="""
[console_scripts]
arcutils = arcutils.__main__:main
""",
classifiers=[
'Development Status :: 3 - Alpha',
'Framework :: Django',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
],
)
| Upgrade ldap3 1.0.4 => 1.1.2 | Upgrade ldap3 1.0.4 => 1.1.2
| Python | mit | wylee/django-arcutils,PSU-OIT-ARC/django-arcutils,PSU-OIT-ARC/django-arcutils,wylee/django-arcutils | ---
+++
@@ -30,7 +30,7 @@
extras_require={
'ldap': [
'certifi>=2016.2.28',
- 'ldap3>=1.0.4',
+ 'ldap3>=1.1.2',
],
'dev': [
'django>=1.7,<1.9', |
85f45651e940b86b0e3d1317cbe082cd8c34992c | setup.py | setup.py | #!/usr/bin/env python
import sys
from os.path import join, dirname
from setuptools import setup
sys.path.append(join(dirname(__file__), 'src'))
execfile(join(dirname(__file__), 'src', 'BrowserMobProxyLibrary', 'version.py'))
DESCRIPTION = """
BrowserMobProxyLibrary is a Robot Framework library ro interface with BrowserMob Proxy.
BrowserMob Proxy is a simple utility to capture performance data for web apps (via the HAR format),
as well as manipulate browser behavior and traffic, such as whitelisting and blacklisting content,
simulating network traffic and latency, and rewriting HTTP requests and responses.
"""
setup(name = 'robotframework-browsermobproxylibrary',
version = VERSION,
description = 'BrowserMob Proxy library for Robot Framework',
long_description = DESCRIPTION,
author = 'Marcin Mierzejewski',
author_email = '<mmierz@gmail.com>',
url = 'https://github.com/s4int/robotframework-BrowserMobProxyLibrary',
license = 'Apache License 2.0',
keywords = 'robotframework testing selenium selenium2 webdriver web browsermob proxy',
platforms = 'any',
classifiers = [
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Topic :: Software Development :: Testing"
],
install_requires = [
'robotframework >= 2.6.0',
'browsermob-proxy >= 0.7.1',
],
package_dir = {'': 'src'},
packages = ['BrowserMobProxyLibrary'],
)
| #!/usr/bin/env python
import sys
from os.path import join, dirname
from setuptools import setup
CURDIR = dirname(__file__)
with open(join(CURDIR, 'requirements.txt')) as f:
REQUIREMENTS = f.read().splitlines()
sys.path.append(join(CURDIR, 'src'))
filename = join(CURDIR, 'src', 'BrowserMobProxyLibrary', 'version.py')
if sys.version_info.major >= 3:
exec(compile(open(filename).read(), filename, 'exec'))
else:
execfile(filename)
setup(name = 'robotframework-browsermobproxylibrary',
version = VERSION,
description = 'BrowserMob Proxy library for Robot Framework',
long_description = DESCRIPTION,
author = 'Marcin Mierzejewski',
author_email = '<mmierz@gmail.com>',
url = 'https://github.com/s4int/robotframework-BrowserMobProxyLibrary',
license = 'Apache License 2.0',
keywords = 'robotframework testing selenium selenium2 webdriver web browsermob proxy',
platforms = 'any',
classifiers = [
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Topic :: Software Development :: Testing"
],
install_requires = REQUIREMENTS,
package_dir = {'': 'src'},
packages = ['BrowserMobProxyLibrary'],
)
| Move requirements to separate file | Move requirements to separate file
| Python | apache-2.0 | s4int/robotframework-BrowserMobProxyLibrary | ---
+++
@@ -4,16 +4,18 @@
from os.path import join, dirname
from setuptools import setup
-sys.path.append(join(dirname(__file__), 'src'))
-execfile(join(dirname(__file__), 'src', 'BrowserMobProxyLibrary', 'version.py'))
+CURDIR = dirname(__file__)
+with open(join(CURDIR, 'requirements.txt')) as f:
+ REQUIREMENTS = f.read().splitlines()
-DESCRIPTION = """
-BrowserMobProxyLibrary is a Robot Framework library ro interface with BrowserMob Proxy.
-BrowserMob Proxy is a simple utility to capture performance data for web apps (via the HAR format),
-as well as manipulate browser behavior and traffic, such as whitelisting and blacklisting content,
-simulating network traffic and latency, and rewriting HTTP requests and responses.
-"""
+sys.path.append(join(CURDIR, 'src'))
+
+filename = join(CURDIR, 'src', 'BrowserMobProxyLibrary', 'version.py')
+if sys.version_info.major >= 3:
+ exec(compile(open(filename).read(), filename, 'exec'))
+else:
+ execfile(filename)
setup(name = 'robotframework-browsermobproxylibrary',
version = VERSION,
@@ -32,10 +34,7 @@
"Programming Language :: Python",
"Topic :: Software Development :: Testing"
],
- install_requires = [
- 'robotframework >= 2.6.0',
- 'browsermob-proxy >= 0.7.1',
- ],
+ install_requires = REQUIREMENTS,
package_dir = {'': 'src'},
packages = ['BrowserMobProxyLibrary'],
) |
fcf30e1dfada272d0344ccb9e4054afeda003c8e | setup.py | setup.py | #!/usr/bin/env python
from distutils.core import setup
from os.path import dirname, join
setup(name='hashids',
version='0.8.3',
description='Python implementation of hashids (http://www.hashids.org).'
'Compatible with python 2.5--3.',
long_description=open(join(dirname(__file__), 'README.rst'), 'r', -1, 'utf-8').read(),
author='David Aurelio',
author_email='dev@david-aurelio.com',
url='https://github.com/davidaurelio/hashids-python',
license='MIT License',
py_modules=('hashids',))
| #!/usr/bin/env python
from distutils.core import setup
from os.path import dirname, join
from codecs import open
setup(name='hashids',
version='0.8.3',
description='Python implementation of hashids (http://www.hashids.org).'
'Compatible with python 2.5--3.',
long_description=open(join(dirname(__file__), 'README.rst'), encoding='utf-8').read(),
author='David Aurelio',
author_email='dev@david-aurelio.com',
url='https://github.com/davidaurelio/hashids-python',
license='MIT License',
py_modules=('hashids',))
| Make it work with older python versions as well | Make it work with older python versions as well | Python | mit | davidaurelio/hashids-python,Dubz/hashids-python,pombredanne/hashids-python | ---
+++
@@ -1,12 +1,13 @@
#!/usr/bin/env python
from distutils.core import setup
from os.path import dirname, join
+from codecs import open
setup(name='hashids',
version='0.8.3',
description='Python implementation of hashids (http://www.hashids.org).'
'Compatible with python 2.5--3.',
- long_description=open(join(dirname(__file__), 'README.rst'), 'r', -1, 'utf-8').read(),
+ long_description=open(join(dirname(__file__), 'README.rst'), encoding='utf-8').read(),
author='David Aurelio',
author_email='dev@david-aurelio.com',
url='https://github.com/davidaurelio/hashids-python', |
315bc9ada4452517df245b74b55a96c05209ef8a | setup.py | setup.py | #!/usr/bin/env python
from setuptools import Extension, setup
from Cython.Build import cythonize
import numpy
sourcefiles = [ 'SuchTree/SuchTree.pyx' ]
extensions = [ Extension( 'SuchTree', sourcefiles ) ]
extensions = cythonize( extensions, language_level = "3",
include_path = [ numpy.get_include() ] )
setup(
ext_modules = cythonize( 'SuchTree/SuchTree.pyx' )
)
| #!/usr/bin/env python
from setuptools import Extension, setup
from Cython.Build import cythonize
import numpy
sourcefiles = [ 'SuchTree/SuchTree.pyx' ]
extensions = [ Extension( 'SuchTree', sourcefiles, include_dirs=[numpy.get_include()]) ]
extensions = cythonize( extensions, language_level = "3" )
setup(
ext_modules = extensions
)
| Rework Cython to avoid duplicated build, include numpy headers | Rework Cython to avoid duplicated build, include numpy headers
| Python | bsd-3-clause | ryneches/SuchTree | ---
+++
@@ -6,11 +6,10 @@
sourcefiles = [ 'SuchTree/SuchTree.pyx' ]
-extensions = [ Extension( 'SuchTree', sourcefiles ) ]
+extensions = [ Extension( 'SuchTree', sourcefiles, include_dirs=[numpy.get_include()]) ]
-extensions = cythonize( extensions, language_level = "3",
- include_path = [ numpy.get_include() ] )
+extensions = cythonize( extensions, language_level = "3" )
setup(
- ext_modules = cythonize( 'SuchTree/SuchTree.pyx' )
+ ext_modules = extensions
) |
0e98542f2b703de66dda71fb1b5efb7ae6d5b93d | setup.py | setup.py | #!/usr/bin/env python
from distutils.core import setup
from vaspy import __version__ as version
maintainer = 'Shao-Zheng-Jiang'
maintainer_email = 'shaozhengjiang@gmail.com'
author = maintainer
author_email = maintainer_email
description = __doc__
requires = [
'numpy',
'matplotlib'
]
license = 'LICENSE'
long_description = file('README.md').read()
name = 'python-vaspy'
packages = [
'vaspy',
'scripts',
'unittest',
]
data_files = []
platforms = ['linux']
url = 'https://github.com/PytLab/VASPy'
download_url = ''
setup(
author=author,
author_email=author_email,
description=description,
license=license,
long_description=long_description,
maintainer=maintainer,
name=name,
packages=packages,
data_files=data_files,
platforms=platforms,
url=url,
download_url=download_url,
version=version,
)
| #!/usr/bin/env python
from distutils.core import setup
from vaspy import __version__ as version
maintainer = 'Shao-Zheng-Jiang'
maintainer_email = 'shaozhengjiang@gmail.com'
author = maintainer
author_email = maintainer_email
description = __doc__
requires = [
'numpy',
'matplotlib'
]
license = 'LICENSE'
with open("README.md") as f:
long_descriptio = f.read()
name = 'python-vaspy'
packages = [
'vaspy',
'scripts',
'unittest',
]
data_files = []
platforms = ['linux']
url = 'https://github.com/PytLab/VASPy'
download_url = ''
setup(
author=author,
author_email=author_email,
description=description,
license=license,
long_description=long_description,
maintainer=maintainer,
name=name,
packages=packages,
data_files=data_files,
platforms=platforms,
url=url,
download_url=download_url,
version=version,
)
| Fix bug in getting long_description. | Fix bug in getting long_description.
| Python | mit | PytLab/VASPy,PytLab/VASPy | ---
+++
@@ -15,7 +15,8 @@
]
license = 'LICENSE'
-long_description = file('README.md').read()
+with open("README.md") as f:
+ long_descriptio = f.read()
name = 'python-vaspy'
packages = [
'vaspy', |
5b34711e3f7b2c183ebb4be504c0914f8c55f6e3 | setup.py | setup.py | import sys
from setuptools import setup
extra = {}
if sys.version_info >= (3,):
extra['use_2to3'] = True
setup(name='mockito-edgeware',
version='1.0.0',
packages=['mockito', 'mockito_test', 'mockito_util'],
url='https://github.com/edgeware/mockito-python',
download_url='http://pypi.edgeware.tv/simple/mockito-edgeware',
maintainer='Mockito Maintainers',
maintainer_email='mockito-python@googlegroups.com',
license='MIT',
description='Spying framework',
long_description='Mockito is a spying framework based on Java library with the same name.',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Topic :: Software Development :: Testing',
'Programming Language :: Python :: 2'
'Programming Language :: Python :: 3'
],
test_suite = 'nose.collector',
py_modules = ['distribute_setup'],
setup_requires = ['nose'],
**extra
)
| import sys
from setuptools import setup
extra = {}
if sys.version_info >= (3,):
extra['use_2to3'] = True
setup(name='mockito',
version='0.5.1-edgeware',
packages=['mockito', 'mockito_test', 'mockito_util'],
url='https://github.com/edgeware/mockito-python',
download_url='http://pypi.edgeware.tv/simple/mockito',
maintainer='Mockito Maintainers',
maintainer_email='mockito-python@googlegroups.com',
license='MIT',
description='Spying framework',
long_description=('Mockito is a spying framework based on Java library'
'with the same name.'),
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Topic :: Software Development :: Testing',
'Programming Language :: Python :: 2'
'Programming Language :: Python :: 3'
],
test_suite='nose.collector',
py_modules=['distribute_setup'],
setup_requires=['nose'],
**extra)
| Use version suffix instead of renaming | Use version suffix instead of renaming
| Python | mit | edgeware/mockito-python,edgeware/mockito-python | ---
+++
@@ -4,18 +4,19 @@
extra = {}
if sys.version_info >= (3,):
- extra['use_2to3'] = True
+ extra['use_2to3'] = True
-setup(name='mockito-edgeware',
- version='1.0.0',
+setup(name='mockito',
+ version='0.5.1-edgeware',
packages=['mockito', 'mockito_test', 'mockito_util'],
url='https://github.com/edgeware/mockito-python',
- download_url='http://pypi.edgeware.tv/simple/mockito-edgeware',
+ download_url='http://pypi.edgeware.tv/simple/mockito',
maintainer='Mockito Maintainers',
maintainer_email='mockito-python@googlegroups.com',
license='MIT',
description='Spying framework',
- long_description='Mockito is a spying framework based on Java library with the same name.',
+ long_description=('Mockito is a spying framework based on Java library'
+ 'with the same name.'),
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
@@ -24,8 +25,7 @@
'Programming Language :: Python :: 2'
'Programming Language :: Python :: 3'
],
- test_suite = 'nose.collector',
- py_modules = ['distribute_setup'],
- setup_requires = ['nose'],
- **extra
-)
+ test_suite='nose.collector',
+ py_modules=['distribute_setup'],
+ setup_requires=['nose'],
+ **extra) |
0f8e6c8440f96f5bb5b1da960f290b0c0ac7dcc8 | setup.py | setup.py | import os
from setuptools import setup, find_packages
from wagtailmenus import __version__
with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme:
README = readme.read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name="wagtailmenus",
version=__version__,
author="Andy Babic",
author_email="ababic@rkh.co.uk",
description=(
"Gives you better control over the behaviour of your main menu, and "
"allows you to define flat menus for output in templates."),
long_description=README,
packages=find_packages(),
license="MIT",
keywords="wagtail cms model utility",
download_url="https://github.com/rkhleics/wagailmenus/tarball/0.1",
url="https://github.com/rkhleics/wagailmenus",
include_package_data=True,
zip_safe=False,
classifiers=[
"Environment :: Web Environment",
"Framework :: Django",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python",
'Topic :: Internet :: WWW/HTTP',
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
],
install_requires=[
"wagtail>=1.3.1",
"wagtailmodeladmin>=2.5.7",
],
)
| import os
from setuptools import setup, find_packages
from wagtailmenus import __version__
with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme:
README = readme.read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name="wagtailmenus",
version=__version__,
author="Andy Babic",
author_email="ababic@rkh.co.uk",
description=(
"Gives you better control over the behaviour of your main menu, and "
"allows you to define flat menus for output in templates."),
long_description=README,
packages=find_packages(),
license="MIT",
keywords="wagtail cms model utility",
download_url="https://github.com/rkhleics/wagailmenus/tarball/1.0.0",
url="https://github.com/rkhleics/wagailmenus",
include_package_data=True,
zip_safe=False,
classifiers=[
"Environment :: Web Environment",
"Framework :: Django",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python",
'Topic :: Internet :: WWW/HTTP',
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
],
install_requires=[
"wagtail>=1.3.1",
"wagtailmodeladmin>=2.5.7",
],
)
| Use tarball to match current version | Use tarball to match current version
| Python | mit | ababic/wagtailmenus,frague59/wagtailmenus,rkhleics/wagtailmenus,ababic/wagtailmenus,rkhleics/wagtailmenus,frague59/wagtailmenus,frague59/wagtailmenus,rkhleics/wagtailmenus,ababic/wagtailmenus | ---
+++
@@ -20,7 +20,7 @@
packages=find_packages(),
license="MIT",
keywords="wagtail cms model utility",
- download_url="https://github.com/rkhleics/wagailmenus/tarball/0.1",
+ download_url="https://github.com/rkhleics/wagailmenus/tarball/1.0.0",
url="https://github.com/rkhleics/wagailmenus",
include_package_data=True,
zip_safe=False, |
0452180ce246d86da8b02b0721f11a4346cbd9a5 | cozify/multisensor.py | cozify/multisensor.py | import time
from influxdb import InfluxDBClient
from influxdb import SeriesHelper
from . import config
# expects Cozify devices type json data
def getMultisensorData(data):
out = []
for device in data:
state=data[device]['state']
devtype = state['type']
if devtype == 'STATE_MULTI_SENSOR':
name=data[device]['name']
if 'lastSeen' in state:
timestamp=state['lastSeen']
else:
# if no time of measurement is known we must make a reasonable assumption
# Stored here in milliseconds, influxDB internally stores as nanoseconds
timestamp = time.time() * 1000
if 'temperature' in state:
temperature=state['temperature']
else:
temperature=None
if 'humidity' in state:
humidity=state['humidity']
else:
humidity=None
out.append({
'name': name,
'time': timestamp,
'temperature': temperature,
'humidity': humidity
})
return out
| import time
from influxdb import InfluxDBClient
from influxdb import SeriesHelper
from . import config
# expects Cozify devices type json data
def getMultisensorData(data):
out = []
for device in data:
state=data[device]['state']
devtype = state['type']
if devtype == 'STATE_MULTI_SENSOR':
name=data[device]['name']
if 'lastSeen' in state:
timestamp=state['lastSeen']
else:
# if no time of measurement is known we must make a reasonable assumption
# Stored here in milliseconds to match accuracy of what the hub will give you
timestamp = time.time() * 1000
if 'temperature' in state:
temperature=state['temperature']
else:
temperature=None
if 'humidity' in state:
humidity=state['humidity']
else:
humidity=None
out.append({
'name': name,
'time': timestamp,
'temperature': temperature,
'humidity': humidity
})
return out
| Make comment about time accuracy more universal | Make comment about time accuracy more universal
| Python | mit | Artanicus/python-cozify,Artanicus/python-cozify | ---
+++
@@ -18,7 +18,7 @@
timestamp=state['lastSeen']
else:
# if no time of measurement is known we must make a reasonable assumption
- # Stored here in milliseconds, influxDB internally stores as nanoseconds
+ # Stored here in milliseconds to match accuracy of what the hub will give you
timestamp = time.time() * 1000
if 'temperature' in state:
temperature=state['temperature'] |
d60068060b7b0eb3892b41372d27b9f505a49754 | basic_extras/models.py | basic_extras/models.py | # -*- coding: utf-8 -*-
from django.db import models
from django.utils.translation import ugettext_lazy as _
from basic_extras.utils import now
class MetaBase(models.Model):
"""Abstract base model class that holds some commone metadata fields."""
created = models.DateTimeField(_(u'date created'))
modified = models.DateTimeField(_(u'date modified'))
class Meta:
abstract = True
get_latest_by = 'created'
def save(self, *args, **kwargs):
if not self.id:
self.created = now()
self.modified = now()
return super(MetaBase, self).save(*args, **kwargs)
| # -*- coding: utf-8 -*-
from django.db import models
from django.utils.translation import ugettext_lazy as _
from basic_extras.utils import now
class MetaBase(models.Model):
"""Abstract base model class that holds some common metadata fields."""
created = models.DateTimeField(_(u'date created'))
modified = models.DateTimeField(_(u'date modified'))
class Meta:
abstract = True
get_latest_by = 'created'
def save(self, *args, **kwargs):
if not self.id:
self.created = now()
self.modified = now()
return super(MetaBase, self).save(*args, **kwargs)
| Fix a typo in documentation. | Fix a typo in documentation.
| Python | bsd-3-clause | benspaulding/django-basic-extras | ---
+++
@@ -7,7 +7,7 @@
class MetaBase(models.Model):
- """Abstract base model class that holds some commone metadata fields."""
+ """Abstract base model class that holds some common metadata fields."""
created = models.DateTimeField(_(u'date created'))
modified = models.DateTimeField(_(u'date modified')) |
663e4ca4a0363670d6dd72a512e936d0c47457c0 | tasks.py | tasks.py | from os import mkdir
from os.path import join
from shutil import rmtree, copytree
from invoke import Collection, ctask as task
from invocations.docs import docs, www
from invocations.packaging import publish
# Until we move to spec-based testing
@task
def test(ctx):
ctx.run("python test.py --verbose", pty=True)
@task
def coverage(ctx):
ctx.run("coverage run --source=paramiko test.py --verbose")
# Until we stop bundling docs w/ releases. Need to discover use cases first.
@task
def release(ctx):
# Build docs first. Use terribad workaround pending invoke #146
ctx.run("inv docs")
# Move the built docs into where Epydocs used to live
target = 'docs'
rmtree(target, ignore_errors=True)
copytree(docs_build, target)
# Publish
publish(ctx)
# Remind
print("\n\nDon't forget to update RTD's versions page for new minor releases!")
ns = Collection(test, coverage, release, docs, www)
| from os import mkdir
from os.path import join
from shutil import rmtree, copytree
from invoke import Collection, ctask as task
from invocations.docs import docs, www
from invocations.packaging import publish
# Until we move to spec-based testing
@task
def test(ctx):
ctx.run("python test.py --verbose", pty=True)
@task
def coverage(ctx):
ctx.run("coverage run --source=paramiko test.py --verbose")
# Until we stop bundling docs w/ releases. Need to discover use cases first.
@task
def release(ctx):
# Build docs first. Use terribad workaround pending invoke #146
ctx.run("inv docs")
# Move the built docs into where Epydocs used to live
target = 'docs'
rmtree(target, ignore_errors=True)
# TODO: make it easier to yank out this config val from the docs coll
copytree('sites/docs/_build', target)
# Publish
publish(ctx)
# Remind
print("\n\nDon't forget to update RTD's versions page for new minor releases!")
ns = Collection(test, coverage, release, docs, www)
| Fix dumb bug in release task | Fix dumb bug in release task
| Python | lgpl-2.1 | jaraco/paramiko,ameily/paramiko,SebastianDeiss/paramiko,reaperhulk/paramiko,mirrorcoder/paramiko,paramiko/paramiko,dorianpula/paramiko | ---
+++
@@ -25,7 +25,8 @@
# Move the built docs into where Epydocs used to live
target = 'docs'
rmtree(target, ignore_errors=True)
- copytree(docs_build, target)
+ # TODO: make it easier to yank out this config val from the docs coll
+ copytree('sites/docs/_build', target)
# Publish
publish(ctx)
# Remind |
4446a700fcf057f83645b4861b5655773983511c | tests.py | tests.py | import unittest
import os
from main import generate_files
class WordsTest(unittest.TestCase):
def setUp(self):
for fname in ["test_sequences", "test_words"]:
if os.path.exists(fname):
os.remove(fname)
def test_files_created(self):
self.assertFalse(os.path.exists("test_sequences"))
self.assertFalse(os.path.exists("test_words"))
generate_files([], sequences_fname="test_sequences", words_fname="test_words")
self.assertTrue(os.path.exists("test_sequences"))
self.assertTrue(os.path.exists("test_words"))
if __name__ == '__main__':
unittest.main()
| import unittest
import os
from main import generate_files
class WordsTest(unittest.TestCase):
def setUp(self):
# Make sure the expected files don't exist yet
for fname in ["test_sequences", "test_words"]:
if os.path.exists(fname):
os.remove(fname)
def test_files_created(self):
self.assertFalse(os.path.exists("test_sequences"))
self.assertFalse(os.path.exists("test_words"))
generate_files([], sequences_fname="test_sequences", words_fname="test_words")
self.assertTrue(os.path.exists("test_sequences"))
self.assertTrue(os.path.exists("test_words"))
def tearDown(self):
# So as not to leave a mess
for fname in ["test_sequences", "test_words"]:
if os.path.exists(fname):
os.remove(fname)
if __name__ == '__main__':
unittest.main()
| Add teardown function as well | Add teardown function as well
| Python | mit | orblivion/hellolabs_word_test | ---
+++
@@ -5,6 +5,7 @@
class WordsTest(unittest.TestCase):
def setUp(self):
+ # Make sure the expected files don't exist yet
for fname in ["test_sequences", "test_words"]:
if os.path.exists(fname):
os.remove(fname)
@@ -16,5 +17,11 @@
self.assertTrue(os.path.exists("test_sequences"))
self.assertTrue(os.path.exists("test_words"))
+ def tearDown(self):
+ # So as not to leave a mess
+ for fname in ["test_sequences", "test_words"]:
+ if os.path.exists(fname):
+ os.remove(fname)
+
if __name__ == '__main__':
unittest.main() |
f5abc26cf9e7fa80bc74028e4c5e3552772f2e93 | tasks.py | tasks.py | # Project tasks (for use with invoke task runner)
import subprocess
from invoke import task
@task
def test(cover=False):
# Run tests using nose called with coverage
code = subprocess.call(['coverage', 'run', '-m', 'nose', '--rednose'])
# Also generate coverage reports when --cover flag is given
if cover and code == 0:
# Add blank line between test report and coverage report
print('')
subprocess.call(['coverage', 'report'])
subprocess.call(['coverage', 'html'])
@task
def update(export=False):
proc_args = ['python', '-m', 'utilities.update_workflow']
if export:
proc_args.append('--export')
subprocess.call(proc_args)
| # Project tasks (for use with invoke task runner)
import subprocess
from invoke import task
@task
def test(cover=False):
if cover:
# Run tests via coverage and generate reports if --cover flag is given
code = subprocess.call(['coverage', 'run', '-m', 'nose', '--rednose'])
# Only show coverage report if all tests have passed
if code == 0:
# Add blank line between test report and coverage report
print('')
subprocess.call(['coverage', 'report'])
subprocess.call(['coverage', 'html'])
else:
# Otherwise, run tests via nose (which is faster)
code = subprocess.call(['nosetests', '--rednose'])
@task
def update(export=False):
proc_args = ['python', '-m', 'utilities.update_workflow']
if export:
proc_args.append('--export')
subprocess.call(proc_args)
| Improve performance of 'test' task | Improve performance of 'test' task
| Python | mit | caleb531/youversion-suggest,caleb531/youversion-suggest | ---
+++
@@ -6,14 +6,18 @@
@task
def test(cover=False):
- # Run tests using nose called with coverage
- code = subprocess.call(['coverage', 'run', '-m', 'nose', '--rednose'])
- # Also generate coverage reports when --cover flag is given
- if cover and code == 0:
- # Add blank line between test report and coverage report
- print('')
- subprocess.call(['coverage', 'report'])
- subprocess.call(['coverage', 'html'])
+ if cover:
+ # Run tests via coverage and generate reports if --cover flag is given
+ code = subprocess.call(['coverage', 'run', '-m', 'nose', '--rednose'])
+ # Only show coverage report if all tests have passed
+ if code == 0:
+ # Add blank line between test report and coverage report
+ print('')
+ subprocess.call(['coverage', 'report'])
+ subprocess.call(['coverage', 'html'])
+ else:
+ # Otherwise, run tests via nose (which is faster)
+ code = subprocess.call(['nosetests', '--rednose'])
@task |
393bc0dc82524802c8d548216d4c51b4394e5394 | tests.py | tests.py | #coding:utf8
import unittest
class TestFunctions(unittest.TestCase):
def first(self):
assertEqual('test', 'test')
def second(self):
"""second test"""
assertEqual('2','2')
| # coding: utf-8
import unittest
class TestFunctions(unittest.TestCase):
def first(self):
self.assertEqual('test', 'test')
def second(self):
"""second test"""
self.assertEqual('2','2')
| Add self to test cases | Add self to test cases
Change-Id: Ib8a8fea97fb7390613a5521103f0f9d31615f262
| Python | apache-2.0 | khoser/mini_games | ---
+++
@@ -1,4 +1,4 @@
-#coding:utf8
+# coding: utf-8
import unittest
@@ -6,9 +6,9 @@
class TestFunctions(unittest.TestCase):
def first(self):
- assertEqual('test', 'test')
+ self.assertEqual('test', 'test')
def second(self):
"""second test"""
- assertEqual('2','2')
+ self.assertEqual('2','2')
|
f2ab0c74986881e017199ac8a56dd09334a8b42b | magnum/tests/unit/template/test_template.py | magnum/tests/unit/template/test_template.py | # Copyright 2015 Intel, Inc
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
import os
from glob import glob
from oslo_config import cfg
from yaml import load
from magnum.common import paths
from magnum.tests import base
cfg.CONF.register_opts([cfg.StrOpt('template_path',
default=paths.basedir_def('templates'),
help='Heat template path')])
class TestTemplate(base.TestCase):
def test_template_yaml(self):
for yml in [y for x in os.walk(cfg.CONF.template_path)
for y in glob(os.path.join(x[0], '*.yaml'))]:
with open(yml, 'r') as f:
yml_contents = f.read()
load(yml_contents)
| # Copyright 2015 Intel, Inc
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
import os
import sys
from glob import glob
from oslo_config import cfg
from yaml import load
from magnum.common import paths
from magnum.tests import base
cfg.CONF.register_opts([cfg.StrOpt('template_path',
default=paths.basedir_def('templates'),
help='Heat template path')])
class TestTemplate(base.TestCase):
def test_template_yaml(self):
for yml in [y for x in os.walk(cfg.CONF.template_path)
for y in glob(os.path.join(x[0], '*.yaml'))]:
with open(yml, 'r') as f:
yml_contents = f.read()
try:
load(yml_contents)
except Exception:
error_msg = "file: %s: %s" % (yml, sys.exc_info()[1])
self.fail(error_msg)
| Improve yml template test case. | Improve yml template test case.
Print out yml file name when failed to loading yml.
Change-Id: Ie34282b91ec8101ffa2676e3144acf5a054578b0
| Python | apache-2.0 | ArchiFleKs/magnum,openstack/magnum,ArchiFleKs/magnum,openstack/magnum,jay-lau/magnum | ---
+++
@@ -12,6 +12,7 @@
# License for the specific language governing permissions and limitations
# under the License.
import os
+import sys
from glob import glob
from oslo_config import cfg
@@ -34,4 +35,8 @@
for y in glob(os.path.join(x[0], '*.yaml'))]:
with open(yml, 'r') as f:
yml_contents = f.read()
- load(yml_contents)
+ try:
+ load(yml_contents)
+ except Exception:
+ error_msg = "file: %s: %s" % (yml, sys.exc_info()[1])
+ self.fail(error_msg) |
ae4519a26e372f8a27a7e460fc08d409c5bafe55 | networkx/algorithms/flow/__init__.py | networkx/algorithms/flow/__init__.py | from networkx.algorithms.flow.maxflow import *
from networkx.algorithms.flow.mincost import *
from networkx.algorithms.flow.preflow_push import *
from networkx.algorithms.flow.shortest_augmenting_path import *
del utils
| from . import maxflow, mincost, preflow_push, shortest_augmenting_path
__all__ = sum([maxflow.__all__, mincost.__all__, preflow_push.__all__,
shortest_augmenting_path.__all__], [])
from .maxflow import *
from .mincost import *
from .preflow_push import *
from .shortest_augmenting_path import *
| Modify handling of module conflict in shortest augmenting path maxflow | Modify handling of module conflict in shortest augmenting path maxflow
| Python | bsd-3-clause | nathania/networkx,ionanrozenfeld/networkx,dmoliveira/networkx,aureooms/networkx,kernc/networkx,dmoliveira/networkx,aureooms/networkx,kernc/networkx,harlowja/networkx,jni/networkx,jakevdp/networkx,jni/networkx,jakevdp/networkx,Sixshaman/networkx,RMKD/networkx,RMKD/networkx,ionanrozenfeld/networkx,sharifulgeo/networkx,debsankha/networkx,dmoliveira/networkx,harlowja/networkx,blublud/networkx,goulu/networkx,beni55/networkx,bzero/networkx,jni/networkx,RMKD/networkx,nathania/networkx,bzero/networkx,jcurbelo/networkx,cmtm/networkx,harlowja/networkx,jfinkels/networkx,debsankha/networkx,ghdk/networkx,chrisnatali/networkx,SanketDG/networkx,sharifulgeo/networkx,michaelpacer/networkx,dhimmel/networkx,chrisnatali/networkx,andnovar/networkx,ghdk/networkx,dhimmel/networkx,dhimmel/networkx,farhaanbukhsh/networkx,aureooms/networkx,ionanrozenfeld/networkx,chrisnatali/networkx,debsankha/networkx,farhaanbukhsh/networkx,ltiao/networkx,yashu-seth/networkx,kernc/networkx,sharifulgeo/networkx,ghdk/networkx,blublud/networkx,farhaanbukhsh/networkx,JamesClough/networkx,OrkoHunter/networkx,wasade/networkx,jakevdp/networkx,bzero/networkx,blublud/networkx,NvanAdrichem/networkx,tmilicic/networkx,nathania/networkx | ---
+++
@@ -1,6 +1,9 @@
-from networkx.algorithms.flow.maxflow import *
-from networkx.algorithms.flow.mincost import *
-from networkx.algorithms.flow.preflow_push import *
-from networkx.algorithms.flow.shortest_augmenting_path import *
+from . import maxflow, mincost, preflow_push, shortest_augmenting_path
-del utils
+__all__ = sum([maxflow.__all__, mincost.__all__, preflow_push.__all__,
+ shortest_augmenting_path.__all__], [])
+
+from .maxflow import *
+from .mincost import *
+from .preflow_push import *
+from .shortest_augmenting_path import * |
8a9137ea826a3b8ca8c74be546f1388e81e72b9f | setup.py | setup.py | import os
import shutil
from setuptools import setup, find_packages, Command
import oscrypto
class CleanCommand(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
folder = os.path.dirname(os.path.abspath(__file__))
for sub_folder in ['build', 'dist', 'oscrypto.egg-info']:
full_path = os.path.join(folder, sub_folder)
if os.path.exists(full_path):
shutil.rmtree(full_path)
setup(
name='oscrypto',
version=oscrypto.__version__,
description='Crytographic services provided by the operating system, including key generation, encryption, decryption, signing, verifying and key derivation',
long_description='Docs for this project are maintained at https://github.com/wbond/oscrypto#readme.',
url='https://github.com/wbond/oscrypto',
author='wbond',
author_email='will@wbond.net',
license='MIT',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
],
keywords='crypto',
install_requires=['asn1crypto'],
packages=find_packages(exclude=['tests*', 'dev*']),
cmdclass={
'clean': CleanCommand,
}
)
| import os
import shutil
from setuptools import setup, find_packages, Command
import oscrypto
class CleanCommand(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
folder = os.path.dirname(os.path.abspath(__file__))
for sub_folder in ['build', 'dist', 'oscrypto.egg-info']:
full_path = os.path.join(folder, sub_folder)
if os.path.exists(full_path):
shutil.rmtree(full_path)
setup(
name='oscrypto',
version=oscrypto.__version__,
description='Cryptographic services provided by the operating system, including key generation, encryption, decryption, signing, verifying and key derivation',
long_description='Docs for this project are maintained at https://github.com/wbond/oscrypto#readme.',
url='https://github.com/wbond/oscrypto',
author='wbond',
author_email='will@wbond.net',
license='MIT',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
],
keywords='crypto',
install_requires=['asn1crypto'],
packages=find_packages(exclude=['tests*', 'dev*']),
cmdclass={
'clean': CleanCommand,
}
)
| Fix typo in package description | Fix typo in package description
| Python | mit | wbond/oscrypto | ---
+++
@@ -28,7 +28,7 @@
name='oscrypto',
version=oscrypto.__version__,
- description='Crytographic services provided by the operating system, including key generation, encryption, decryption, signing, verifying and key derivation',
+ description='Cryptographic services provided by the operating system, including key generation, encryption, decryption, signing, verifying and key derivation',
long_description='Docs for this project are maintained at https://github.com/wbond/oscrypto#readme.',
url='https://github.com/wbond/oscrypto', |
e2fb68232df520151f3d4545129150b5d1fcf0ad | setup.py | setup.py | from setuptools import setup
with open('README.md') as f:
long_description = f.read()
setup(
name='abraia',
version='0.3.2',
description='Abraia Python SDK',
long_description=long_description,
long_description_content_type='text/markdown',
url='https://github.com/abraia/abraia-python',
author='Jorge Rodriguez Araujo',
author_email='jorge@abraiasoftware.com',
license='MIT',
zip_safe=False,
packages=['abraia'],
tests_require=['pytest'],
setup_requires=['setuptools>=38.6.0', 'pytest-runner'],
scripts=['scripts/abraia', 'scripts/abraia.bat'],
install_requires=['requests', 'tqdm', 'future']
)
| from setuptools import setup
with open('README.md') as f:
long_description = f.read()
setup(
name='abraia',
version='0.3.3',
description='Abraia Python SDK',
long_description=long_description,
long_description_content_type='text/markdown',
url='https://github.com/abraia/abraia-python',
author='Jorge Rodriguez Araujo',
author_email='jorge@abraiasoftware.com',
license='MIT',
zip_safe=False,
packages=['abraia'],
tests_require=['pytest'],
setup_requires=['setuptools>=38.6.0', 'pytest-runner'],
scripts=['scripts/abraia', 'scripts/abraia.bat'],
install_requires=['requests', 'tqdm', 'future']
)
| Fix last issues with new implementation | Fix last issues with new implementation
| Python | mit | abraia/abraia-python | ---
+++
@@ -5,7 +5,7 @@
setup(
name='abraia',
- version='0.3.2',
+ version='0.3.3',
description='Abraia Python SDK',
long_description=long_description,
long_description_content_type='text/markdown', |
cc9ef459277c6583e8f6fce3f9ab658f74f13559 | setup.py | setup.py | # -*- coding: utf-8 -*-
from distutils.core import setup
setup(
name='sugartensor',
packages=['sugartensor'],
version='0.0.1.4',
description='A slim tensorflow wrapper that provides syntactic sugar for tensor variables.',
author='Namju Kim at Jamonglabs Co.,Ltd.',
author_email='buriburisuri@gmail.com',
url='https://github.com/buriburisuri/sugartensor',
download_url='https://github.com/buriburisuri/sugartensor/tarball/0.0.1.4',
keywords=['tensorflow', 'sugar', 'sugartensor', 'slim', 'wrapper'],
classifiers=[],
license='MIT',
)
| # -*- coding: utf-8 -*-
from distutils.core import setup
setup(
name='sugartensor',
packages=['sugartensor'],
version='0.0.1.5',
description='A slim tensorflow wrapper that provides syntactic sugar for tensor variables.',
author='Namju Kim at Jamonglabs Co.,Ltd.',
author_email='buriburisuri@gmail.com',
url='https://github.com/buriburisuri/sugartensor',
download_url='https://github.com/buriburisuri/sugartensor/tarball/0.0.1.5',
keywords=['tensorflow', 'sugar', 'sugartensor', 'slim', 'wrapper'],
classifiers=[],
license='MIT',
)
| Add console logging option to sg_train_func. | Add console logging option to sg_train_func.
| Python | mit | buriburisuri/sugartensor | ---
+++
@@ -4,12 +4,12 @@
setup(
name='sugartensor',
packages=['sugartensor'],
- version='0.0.1.4',
+ version='0.0.1.5',
description='A slim tensorflow wrapper that provides syntactic sugar for tensor variables.',
author='Namju Kim at Jamonglabs Co.,Ltd.',
author_email='buriburisuri@gmail.com',
url='https://github.com/buriburisuri/sugartensor',
- download_url='https://github.com/buriburisuri/sugartensor/tarball/0.0.1.4',
+ download_url='https://github.com/buriburisuri/sugartensor/tarball/0.0.1.5',
keywords=['tensorflow', 'sugar', 'sugartensor', 'slim', 'wrapper'],
classifiers=[],
license='MIT', |
ea0cb6cc038c071f3160d15ca2167af7ff18096f | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup
def fread(filepath):
with open(filepath, 'r') as f:
return f.read()
setup(
name='GB2260',
version='0.1.0',
author='Hsiaoming Yang',
author_email='me@lepture.com',
url='https://github.com/cn/GB2260',
packages=['gb2260'],
description='The Python implementation for looking up the Chinese '
'administrative divisions.',
long_description=fread('README.rst'),
license='BSD',
include_package_data=True,
classifiers=[
'Development Status :: 3 - Alpha',
'License :: OSI Approved :: BSD License',
'Natural Language :: Chinese (Simplified)',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
]
)
| #!/usr/bin/env python
from setuptools import setup
def fread(filepath):
with open(filepath, 'r') as f:
return f.read()
setup(
name='GB2260',
version='0.1.0',
author='TonySeek',
author_email='tonyseek@gmail.com',
url='https://github.com/cn/GB2260',
packages=['gb2260'],
description='The Python implementation for looking up the Chinese '
'administrative divisions.',
long_description=fread('README.rst'),
license='BSD',
include_package_data=True,
classifiers=[
'Development Status :: 3 - Alpha',
'License :: OSI Approved :: BSD License',
'Natural Language :: Chinese (Simplified)',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
]
)
| Change python module author to @tonyseek | Change python module author to @tonyseek
| Python | bsd-2-clause | cn/GB2260.py | ---
+++
@@ -11,8 +11,8 @@
setup(
name='GB2260',
version='0.1.0',
- author='Hsiaoming Yang',
- author_email='me@lepture.com',
+ author='TonySeek',
+ author_email='tonyseek@gmail.com',
url='https://github.com/cn/GB2260',
packages=['gb2260'],
description='The Python implementation for looking up the Chinese ' |
1faeaaadbd616866d08d85af8277ec0f4c3ac319 | setup.py | setup.py | from setuptools import setup
import imp
def get_version():
ver_file = None
try:
ver_file, pathname, description = imp.find_module('__version__', ['src/wstool'])
vermod = imp.load_module('__version__', ver_file, pathname, description)
version = vermod.version
return version
finally:
if ver_file is not None:
ver_file.close()
setup(name='wstool',
version=get_version(),
packages=['wstool'],
package_dir={'': 'src'},
# rosinstall dependency to be kept in order not to break ros hydro install instructions
install_requires=['vcstools', 'pyyaml'],
scripts=["scripts/wstool"],
author="Tully Foote",
author_email="tfoote@osrfoundation.org",
url="http://wiki.ros.org/wstool",
download_url="http://download.ros.org/downloads/wstool/",
keywords=["ROS"],
classifiers=["Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3",
"License :: OSI Approved :: BSD License"],
description="workspace multi-SCM commands",
long_description="""\
A tool for managing a workspace of multiple heterogenous SCM repositories
""",
license="BSD")
| from setuptools import setup
import imp
def get_version():
ver_file = None
try:
ver_file, pathname, description = imp.find_module('__version__', ['src/wstool'])
vermod = imp.load_module('__version__', ver_file, pathname, description)
version = vermod.version
return version
finally:
if ver_file is not None:
ver_file.close()
setup(name='wstool',
version=get_version(),
packages=['wstool'],
package_dir={'': 'src'},
# rosinstall dependency to be kept in order not to break ros hydro install instructions
install_requires=['vcstools>=0.1.34', 'pyyaml'],
scripts=["scripts/wstool"],
author="Tully Foote",
author_email="tfoote@osrfoundation.org",
url="http://wiki.ros.org/wstool",
download_url="http://download.ros.org/downloads/wstool/",
keywords=["ROS"],
classifiers=["Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3",
"License :: OSI Approved :: BSD License"],
description="workspace multi-SCM commands",
long_description="""\
A tool for managing a workspace of multiple heterogenous SCM repositories
""",
license="BSD")
| Add dependency to vcstools>=0.1.34 (to be released) | Add dependency to vcstools>=0.1.34 (to be released)
| Python | bsd-3-clause | tkruse/wstool,vincentrou/wstool,tkruse/wstool,vincentrou/wstool,wkentaro/wstool | ---
+++
@@ -20,7 +20,7 @@
packages=['wstool'],
package_dir={'': 'src'},
# rosinstall dependency to be kept in order not to break ros hydro install instructions
- install_requires=['vcstools', 'pyyaml'],
+ install_requires=['vcstools>=0.1.34', 'pyyaml'],
scripts=["scripts/wstool"],
author="Tully Foote",
author_email="tfoote@osrfoundation.org", |
d9aeb09cbe0c2311c0f2bdd5177dd9f4a036631e | setup.py | setup.py | from setuptools import find_packages, setup
from channels import __version__
setup(
name='channels',
version=__version__,
url='http://github.com/django/channels',
author='Django Software Foundation',
author_email='foundation@djangoproject.com',
description="Brings async, event-driven capabilities to Django. Django 2.2 and up only.",
license='BSD',
packages=find_packages(exclude=['tests']),
include_package_data=True,
python_requires='>=3.6',
install_requires=[
'Django>=2.2',
'asgiref~=3.2',
'daphne~=2.3',
],
extras_require={
'tests': [
"pytest",
"pytest-django",
"pytest-asyncio",
"async_generator",
"async-timeout",
"coverage~=4.5",
],
},
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'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',
'Topic :: Internet :: WWW/HTTP',
],
)
| from setuptools import find_packages, setup
from channels import __version__
setup(
name='channels',
version=__version__,
url='http://github.com/django/channels',
author='Django Software Foundation',
author_email='foundation@djangoproject.com',
description="Brings async, event-driven capabilities to Django. Django 2.2 and up only.",
license='BSD',
packages=find_packages(exclude=['tests']),
include_package_data=True,
python_requires='>=3.6',
install_requires=[
'Django>=2.2',
'asgiref~=3.2',
'daphne~=2.3',
],
extras_require={
'tests': [
"pytest",
"pytest-django",
"pytest-asyncio",
"async_generator",
"async-timeout",
"coverage~=4.5",
],
},
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'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',
'Framework :: Django',
'Topic :: Internet :: WWW/HTTP',
],
)
| Add base trove classifier for Django. | Add base trove classifier for Django.
Implying "currently supported versions".
| Python | bsd-3-clause | andrewgodwin/django-channels,andrewgodwin/channels,django/channels | ---
+++
@@ -40,6 +40,7 @@
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
+ 'Framework :: Django',
'Topic :: Internet :: WWW/HTTP',
],
) |
a2637bc28477dff53a5fd836b0aab42b7dee5c30 | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
from setuptools import setup
from glob import glob
classifiers = [
'Development Status :: 4 - Beta',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Topic :: Scientific/Engineering :: Bio-Informatics',
]
exec(open("goatools/version.py").read())
setup(
name="goatools",
version=__version__,
author='Haibao Tang',
author_email='tanghaibao@gmail.com',
packages=['goatools'],
scripts=glob('scripts/*.py'),
license='BSD',
classifiers=classifiers,
url='http://github.com/tanghaibao/goatools',
description="Python scripts to find enrichment of GO terms",
long_description=open("README.rst").read(),
install_requires=['fisher', 'wget', 'xlsxwriter', 'statsmodels']
)
| #!/usr/bin/env python
# -*- coding: UTF-8 -*-
from setuptools import setup
from glob import glob
classifiers = [
'Development Status :: 4 - Beta',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Topic :: Scientific/Engineering :: Bio-Informatics',
]
exec(open("goatools/version.py").read())
setup(
name="goatools",
version=__version__,
author='Haibao Tang',
author_email='tanghaibao@gmail.com',
packages=['goatools'],
scripts=glob('scripts/*.py'),
license='BSD',
classifiers=classifiers,
url='http://github.com/tanghaibao/goatools',
description="Python scripts to find enrichment of GO terms",
long_description=open("README.rst").read(),
install_requires=['fisher', 'wget', 'collections', 'xlsxwriter', 'statsmodels']
)
| Add collections package to required list. | Add collections package to required list.
| Python | bsd-2-clause | lileiting/goatools,lileiting/goatools,tanghaibao/goatools,tanghaibao/goatools | ---
+++
@@ -26,5 +26,5 @@
url='http://github.com/tanghaibao/goatools',
description="Python scripts to find enrichment of GO terms",
long_description=open("README.rst").read(),
- install_requires=['fisher', 'wget', 'xlsxwriter', 'statsmodels']
+ install_requires=['fisher', 'wget', 'collections', 'xlsxwriter', 'statsmodels']
) |
d1cb4a227c97369938f93a40afbee2ff4f0e1cc0 | setup.py | setup.py | from setuptools import setup, find_packages
import os, sys
version = '0.0.1'
here = os.path.abspath(os.path.dirname(__file__))
try:
README = open(os.path.join(here, 'README.rst')).read()
except IOError:
README = ''
TEST_DEPENDENCIES = ['mock', 'pymongo >= 2.7', 'sqlalchemy']
py_version = sys.version_info[:2]
if py_version[0] == 2:
TEST_DEPENDENCIES += ['boto']
setup(name='filedepot',
version=version,
description="Toolkit for storing files and attachments in web applications",
long_description=README,
# Get more strings from http://www.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
"Environment :: Web Environment",
"Topic :: Software Development :: Libraries :: Python Modules",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 2"
],
keywords='storage files s3 gridfs mongodb aws sqlalchemy wsgi',
author='Alessandro Molina',
author_email='alessandro.molina@axant.it',
url='https://github.com/amol-/depot',
license='MIT',
packages=find_packages(exclude=['ez_setup']),
include_package_data=True,
tests_require=TEST_DEPENDENCIES,
test_suite='nose.collector',
zip_safe=False,
)
| from setuptools import setup, find_packages
import os, sys
version = '0.0.1'
here = os.path.abspath(os.path.dirname(__file__))
try:
README = open(os.path.join(here, 'README.rst')).read()
except IOError:
README = ''
TEST_DEPENDENCIES = ['mock', 'pymongo >= 2.7', 'sqlalchemy', 'pillow']
py_version = sys.version_info[:2]
if py_version[0] == 2:
TEST_DEPENDENCIES += ['boto']
setup(name='filedepot',
version=version,
description="Toolkit for storing files and attachments in web applications",
long_description=README,
# Get more strings from http://www.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
"Environment :: Web Environment",
"Topic :: Software Development :: Libraries :: Python Modules",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 2"
],
keywords='storage files s3 gridfs mongodb aws sqlalchemy wsgi',
author='Alessandro Molina',
author_email='alessandro.molina@axant.it',
url='https://github.com/amol-/depot',
license='MIT',
packages=find_packages(exclude=['ez_setup']),
include_package_data=True,
tests_require=TEST_DEPENDENCIES,
test_suite='nose.collector',
zip_safe=False,
)
| Add also Pillow as a test depdenency | Add also Pillow as a test depdenency
| Python | mit | miraculixx/depot,rlam3/depot,miraculixx/depot,eprikazc/depot,amol-/depot | ---
+++
@@ -9,7 +9,7 @@
except IOError:
README = ''
-TEST_DEPENDENCIES = ['mock', 'pymongo >= 2.7', 'sqlalchemy']
+TEST_DEPENDENCIES = ['mock', 'pymongo >= 2.7', 'sqlalchemy', 'pillow']
py_version = sys.version_info[:2]
if py_version[0] == 2: |
7140111a5a326d8d065110079e59b5f90aa700bb | setup.py | setup.py | #! /usr/bin/env python
from setuptools import find_packages, setup
setup(name='oemof.db',
version='0.0.2',
description='The oemof database extension',
namespace_package = ['oemof'],
packages=find_packages(),
package_dir={'oemof': 'oemof'},
install_requires=['sqlalchemy >= 1.0',
'keyring >= 4.0',
'shapely'])
| #! /usr/bin/env python
from setuptools import find_packages, setup
setup(name='oemof.db',
version='0.0.2',
description='The oemof database extension',
namespace_package = ['oemof'],
packages=find_packages(),
package_dir={'oemof': 'oemof'},
install_requires=['sqlalchemy >= 1.0',
'keyring >= 4.0',
'shapely',
'psycopg2'])
| Add missing required package: psycopg2 | Add missing required package: psycopg2 | Python | mit | oemof/oemof.db | ---
+++
@@ -10,4 +10,5 @@
package_dir={'oemof': 'oemof'},
install_requires=['sqlalchemy >= 1.0',
'keyring >= 4.0',
- 'shapely'])
+ 'shapely',
+ 'psycopg2']) |
6a5609dc518897d94d71a3611b890a3364b8917a | setup.py | setup.py | # -*- coding: utf-8 -*-
"""
A text interface to Taiga.
"""
from taiga_ncurses import __name__, __description__, __version__
from setuptools import setup, find_packages
REQUIREMENTS = [
"requests==2.5.0",
"urwid>=1.3.0",
"x256==0.0.3"
]
NAME = __name__
DESCRIPTION = __description__
VERSION = "{0}.{1}".format(*__version__)
setup(name=NAME,
version=VERSION,
description=DESCRIPTION,
packages=find_packages(),
entry_points={
"console_scripts": ["taiga-ncurses = taiga_ncurses.cli:main"]
},
classifiers=[
"Development Status :: 3 - Alpha",
"Environment :: Console :: Curses",
"Intended Audience :: End Users/Desktop",
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS",
"Programming Language :: Python :: 3.3",
],
install_requires=REQUIREMENTS,)
| # -*- coding: utf-8 -*-
"""
A text interface to Taiga.
"""
from __future__ import print_function
import sys
if sys.version_info[0] < 3 or sys.version_info[1] < 3:
print("Sorry, taiga-ncurses needs python >= 3.3", file=sys.stderr)
sys.exit(-1)
from taiga_ncurses import __name__, __description__, __version__
from setuptools import setup, find_packages
REQUIREMENTS = [
"requests==2.5.0",
"urwid>=1.3.0",
"x256==0.0.3"
]
NAME = __name__
DESCRIPTION = __description__
VERSION = "{0}.{1}".format(*__version__)
setup(name=NAME,
version=VERSION,
description=DESCRIPTION,
packages=find_packages(),
entry_points={
"console_scripts": ["taiga-ncurses = taiga_ncurses.cli:main"]
},
classifiers=[
"Development Status :: 3 - Alpha",
"Environment :: Console :: Curses",
"Intended Audience :: End Users/Desktop",
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS",
"Programming Language :: Python :: 3.3",
],
install_requires=REQUIREMENTS,)
| Check if you are using python 3.3+ | Check if you are using python 3.3+
| Python | apache-2.0 | taigaio/taiga-ncurses,battlemidget/taiga-ncurses,wweiradio/taiga-ncurses | ---
+++
@@ -3,6 +3,13 @@
"""
A text interface to Taiga.
"""
+
+from __future__ import print_function
+import sys
+if sys.version_info[0] < 3 or sys.version_info[1] < 3:
+ print("Sorry, taiga-ncurses needs python >= 3.3", file=sys.stderr)
+ sys.exit(-1)
+
from taiga_ncurses import __name__, __description__, __version__
|
5f68c9eeeb32f67d52ac3f804a0239d323d44a05 | setup.py | setup.py | #!/usr/bin/env python
import sys
assert sys.version >= '2.5', "Requires Python v2.5 or above."
from setuptools import setup
classifiers = [
"Programming Language :: Python",
"Programming Language :: Python :: 2.5",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.2",
"Programming Language :: Python :: 3.3",
]
setup(
name = "shortuuid",
version = "0.3.1",
author = "Stochastic Technologies",
author_email = "info@stochastictechnologies.com",
url = "https://github.com/stochastic-technologies/shortuuid/",
description = "A generator library for concise, unambiguous and URL-safe UUIDs.",
long_description = "A library that generates short, pretty, unambiguous unique IDs "
" by using an extensive, case-sensitive alphabet and omitting "
"similar-looking letters and numbers.",
license = "BSD",
classifiers=classifiers,
packages = ["shortuuid"],
)
| #!/usr/bin/env python
import sys
assert sys.version >= '2.5', "Requires Python v2.5 or above."
from setuptools import setup
classifiers = [
"License :: OSI Approved :: BSD License",
"Programming Language :: Python",
"Programming Language :: Python :: 2.5",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.2",
"Programming Language :: Python :: 3.3",
"Topic :: Software Development :: Libraries :: Python Modules",
]
setup(
name = "shortuuid",
version = "0.3.1",
author = "Stochastic Technologies",
author_email = "info@stochastictechnologies.com",
url = "https://github.com/stochastic-technologies/shortuuid/",
description = "A generator library for concise, unambiguous and URL-safe UUIDs.",
long_description = "A library that generates short, pretty, unambiguous unique IDs "
" by using an extensive, case-sensitive alphabet and omitting "
"similar-looking letters and numbers.",
license = "BSD",
classifiers=classifiers,
packages = ["shortuuid"],
)
| Append License, Topic to classifiers. | Append License, Topic to classifiers.
Signed-off-by: Kouhei Maeda <c9f1823971fa1a4c79cdb50b3311094021cee31e@palmtb.net>
| Python | bsd-3-clause | stochastic-technologies/shortuuid,skorokithakis/shortuuid | ---
+++
@@ -5,12 +5,14 @@
from setuptools import setup
classifiers = [
+ "License :: OSI Approved :: BSD License",
"Programming Language :: Python",
"Programming Language :: Python :: 2.5",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.2",
"Programming Language :: Python :: 3.3",
+ "Topic :: Software Development :: Libraries :: Python Modules",
]
setup( |
8e06061e59d7443de00648d6a7e14f32d5b7ad2f | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup
setup(name = "medea",
license = "Apache",
version = "0.0",
install_requires = ["protobuf"],
description = "Mesos containerization hooks for Docker",
author = "Jason Dusek",
author_email = "jason.dusek@gmail.com",
maintainer = "Mesosphere",
maintainer_email = "support@mesosphere.io",
url = "https://github.com/mesosphere/medea",
packages = ["medea"],
entry_points = { "console_scripts": ["medea = medea:cli"] })
| #!/usr/bin/env python
from setuptools import setup
setup(name = "medea",
license = "Apache",
version = "0.0.0",
install_requires = ["protobuf"],
description = "Mesos containerization hooks for Docker",
author = "Jason Dusek",
author_email = "jason.dusek@gmail.com",
maintainer = "Mesosphere",
maintainer_email = "support@mesosphere.io",
url = "https://github.com/mesosphere/medea",
packages = ["medea"],
entry_points = { "console_scripts": ["medea = medea:cli"] },
classifiers = [ "Environment :: Console",
"Intended Audience :: Developers",
"Operating System :: Unix",
"Operating System :: POSIX",
"Programming Language :: Python",
"Topic :: System",
"Topic :: System :: Systems Administration",
"Topic :: Software Development",
"License :: OSI Approved :: Apache Software License",
"Development Status :: 4 - Beta" ])
| Add classifiers and a fuller version number. | Add classifiers and a fuller version number.
| Python | apache-2.0 | solidsnack/deimos,davidbliu/deimos-etcd-mod,solidsnack/deimos,mesosphere/deimos,midonet/mcp,midonet/mcp,mesosphere/deimos,davidbliu/deimos-etcd-mod | ---
+++
@@ -4,7 +4,7 @@
setup(name = "medea",
license = "Apache",
- version = "0.0",
+ version = "0.0.0",
install_requires = ["protobuf"],
description = "Mesos containerization hooks for Docker",
author = "Jason Dusek",
@@ -13,4 +13,14 @@
maintainer_email = "support@mesosphere.io",
url = "https://github.com/mesosphere/medea",
packages = ["medea"],
- entry_points = { "console_scripts": ["medea = medea:cli"] })
+ entry_points = { "console_scripts": ["medea = medea:cli"] },
+ classifiers = [ "Environment :: Console",
+ "Intended Audience :: Developers",
+ "Operating System :: Unix",
+ "Operating System :: POSIX",
+ "Programming Language :: Python",
+ "Topic :: System",
+ "Topic :: System :: Systems Administration",
+ "Topic :: Software Development",
+ "License :: OSI Approved :: Apache Software License",
+ "Development Status :: 4 - Beta" ]) |
22d72a2daf1cd7ba46ded5f75a2322357762a86c | fireplace/cards/gvg/druid.py | fireplace/cards/gvg/druid.py | from ..utils import *
##
# Minions
# Druid of the Fang
class GVG_080:
def action(self):
if self.poweredUp:
self.morph("GVG_080t")
| from ..utils import *
##
# Minions
# Attack Mode (Anodized Robo Cub)
class GVG_030a:
action = buffSelf("GVG_030ae")
# Tank Mode (Anodized Robo Cub)
class GVG_030b:
action = buffSelf("GVG_030be")
# Gift of Mana (Grove Tender)
class GVG_032a:
def action(self):
for player in self.game.players:
player.maxMana += 1
player.usedMana -= 1
# Gift of Cards (Grove Tender)
class GVG_032b:
def action(self):
for player in self.game.players:
player.draw()
# Druid of the Fang
class GVG_080:
def action(self):
if self.poweredUp:
self.morph("GVG_080t")
| Implement Anodized Robo Cub, Grove Tender | Implement Anodized Robo Cub, Grove Tender
| Python | agpl-3.0 | Ragowit/fireplace,liujimj/fireplace,Ragowit/fireplace,Meerkov/fireplace,beheh/fireplace,butozerca/fireplace,oftc-ftw/fireplace,jleclanche/fireplace,amw2104/fireplace,liujimj/fireplace,NightKev/fireplace,amw2104/fireplace,butozerca/fireplace,smallnamespace/fireplace,Meerkov/fireplace,oftc-ftw/fireplace,smallnamespace/fireplace | ---
+++
@@ -4,6 +4,29 @@
##
# Minions
+# Attack Mode (Anodized Robo Cub)
+class GVG_030a:
+ action = buffSelf("GVG_030ae")
+
+# Tank Mode (Anodized Robo Cub)
+class GVG_030b:
+ action = buffSelf("GVG_030be")
+
+
+# Gift of Mana (Grove Tender)
+class GVG_032a:
+ def action(self):
+ for player in self.game.players:
+ player.maxMana += 1
+ player.usedMana -= 1
+
+# Gift of Cards (Grove Tender)
+class GVG_032b:
+ def action(self):
+ for player in self.game.players:
+ player.draw()
+
+
# Druid of the Fang
class GVG_080:
def action(self): |
5cb584cba4c968c7c366d51d8fc3c61cc71d80b0 | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup
# Version info -- read without importing
_locals = {}
with open('releases/_version.py') as fp:
exec(fp.read(), None, _locals)
version = _locals['__version__']
setup(
name='releases',
version=version,
description='A Sphinx extension for changelog manipulation',
author='Jeff Forcier',
author_email='jeff@bitprophet.org',
url='https://github.com/bitprophet/releases',
packages=['releases'],
install_requires=['semantic_version<3.0', 'sphinx>=1.3,<1.5'],
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Unix',
'Operating System :: POSIX',
'Operating System :: Microsoft :: Windows',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Topic :: Software Development',
'Topic :: Software Development :: Documentation',
'Topic :: Documentation',
'Topic :: Documentation :: Sphinx',
],
)
| #!/usr/bin/env python
from setuptools import setup
# Version info -- read without importing
_locals = {}
with open('releases/_version.py') as fp:
exec(fp.read(), None, _locals)
version = _locals['__version__']
setup(
name='releases',
version=version,
description='A Sphinx extension for changelog manipulation',
author='Jeff Forcier',
author_email='jeff@bitprophet.org',
url='https://github.com/bitprophet/releases',
packages=['releases'],
install_requires=['semantic_version<3.0', 'sphinx>=1.3'],
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Unix',
'Operating System :: POSIX',
'Operating System :: Microsoft :: Windows',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Topic :: Software Development',
'Topic :: Software Development :: Documentation',
'Topic :: Documentation',
'Topic :: Documentation :: Sphinx',
],
)
| Remove upper-bound on required Sphinx version | Remove upper-bound on required Sphinx version | Python | bsd-2-clause | bitprophet/releases | ---
+++
@@ -16,7 +16,7 @@
author_email='jeff@bitprophet.org',
url='https://github.com/bitprophet/releases',
packages=['releases'],
- install_requires=['semantic_version<3.0', 'sphinx>=1.3,<1.5'],
+ install_requires=['semantic_version<3.0', 'sphinx>=1.3'],
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers', |
dcbd1e485e095771c8e607bc380bc7742d36ea7e | setup.py | setup.py | try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(
name="clrsvsim",
version="0.1.0",
description="Color Genomics Structural Variant Simulator",
author="Color Genomics",
author_email="dev@color.com",
url="https://github.com/ColorGenomics/clrsvsim",
packages=["clrsvsim"],
install_requires=[
"cigar>=0.1.3",
"numpy>=1.10.1",
"preconditions>=0.1",
"pyfasta>=0.5.2",
"pysam>=0.10.0",
],
tests_require=[
# NOTE: `mock` is not actually needed in Python 3.
# `unittest.mock` can be used instead.
"mock>=2.0.0",
"nose>=1.3.7",
],
license="Apache-2.0",
)
| try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(
name="clrsvsim",
version="0.1.0",
description="Color Genomics Structural Variant Simulator",
author="Color",
author_email="dev@color.com",
url="https://github.com/color/clrsvsim",
packages=["clrsvsim"],
install_requires=[
"cigar>=0.1.3",
"numpy>=1.10.1",
"preconditions>=0.1",
"pyfasta>=0.5.2",
"pysam>=0.10.0",
],
tests_require=[
# NOTE: `mock` is not actually needed in Python 3.
# `unittest.mock` can be used instead.
"mock>=2.0.0",
"nose>=1.3.7",
],
license="Apache-2.0",
)
| Update author & use Color's new GH repo | Update author & use Color's new GH repo
| Python | apache-2.0 | color/clrsvsim | ---
+++
@@ -8,9 +8,9 @@
name="clrsvsim",
version="0.1.0",
description="Color Genomics Structural Variant Simulator",
- author="Color Genomics",
+ author="Color",
author_email="dev@color.com",
- url="https://github.com/ColorGenomics/clrsvsim",
+ url="https://github.com/color/clrsvsim",
packages=["clrsvsim"],
install_requires=[
"cigar>=0.1.3", |
b4ea3835e901af0b3bf70cc886f9c93eb7c65f98 | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup
setup(
name='mockldap',
version='0.1',
description=u"A simple mock implementation of python-ldap.",
long_description=open('README').read(),
url='http://bitbucket.org/psagers/mockldap/',
author='Peter Sagerson',
author_email='psagers.pypi@ignorare.net',
license='BSD',
packages=['mockldap'],
package_dir={'': 'src/'},
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Programming Language :: Python',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: BSD License',
'Topic :: Internet :: WWW/HTTP',
'Topic :: System :: Systems Administration :: Authentication/Directory :: LDAP',
'Topic :: Software Development :: Libraries :: Python Modules',
],
keywords=['mock', 'ldap'],
install_requires=[
'python-ldap',
'funcparserlib==0.3.6',
'mock',
],
extras_require={
'passlib': ['passlib>=1.6.1'],
},
setup_requires=[
'setuptools>=0.6c11',
],
test_suite='mockldap.tests',
)
| #!/usr/bin/env python
from setuptools import setup
try:
import unittest2
except ImportError:
test_loader = 'unittest:TestLoader'
else:
test_loader = 'unittest2:TestLoader'
setup(
name='mockldap',
version='0.1',
description=u"A simple mock implementation of python-ldap.",
long_description=open('README').read(),
url='http://bitbucket.org/psagers/mockldap/',
author='Peter Sagerson',
author_email='psagers.pypi@ignorare.net',
license='BSD',
packages=['mockldap'],
package_dir={'': 'src/'},
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Programming Language :: Python',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: BSD License',
'Topic :: Internet :: WWW/HTTP',
'Topic :: System :: Systems Administration :: Authentication/Directory :: LDAP',
'Topic :: Software Development :: Libraries :: Python Modules',
],
keywords=['mock', 'ldap'],
install_requires=[
'python-ldap',
'funcparserlib==0.3.6',
'mock',
],
extras_require={
'passlib': ['passlib>=1.6.1'],
},
setup_requires=[
'setuptools>=0.6c11',
],
test_loader=test_loader,
test_suite='mockldap.tests',
)
| Use unittest2 test loader when available. | Use unittest2 test loader when available.
When default setuptools test loader is used, tests are collected into
unittest.TestSuite instead of unittest2.TestSuite. As a result,
setUpClass() methods are not called and tests fail on Python 2.6.
Instead, use unittest2 test loader when available. Fallback to plain
unittest loader which is fine for newer Python versions.
| Python | bsd-2-clause | sttts/mockldap,sttts/mockldap | ---
+++
@@ -1,6 +1,14 @@
#!/usr/bin/env python
from setuptools import setup
+
+try:
+ import unittest2
+except ImportError:
+ test_loader = 'unittest:TestLoader'
+else:
+ test_loader = 'unittest2:TestLoader'
+
setup(
name='mockldap',
@@ -36,5 +44,6 @@
setup_requires=[
'setuptools>=0.6c11',
],
+ test_loader=test_loader,
test_suite='mockldap.tests',
) |
3e0c76bef538ac1f4cc0415491b4b73574403777 | setup.py | setup.py | # -*- coding: utf-8 -*
import os
from setuptools import setup, find_packages
readme = os.path.join(os.path.dirname(__file__), 'README.md')
long_description = open(readme).read()
setup(
name='python-mandrill-inbound',
version='0.0.2',
packages=find_packages(),
author='José Padilla',
author_email='jpadilla@webapplicate.com',
description='Python wrapper for Mandrill Inbound',
long_description=long_description,
license='MIT License',
url='https://github.com/jpadilla/mandrill-inbound-python',
download_url='https://github.com/jpadilla/mandrill-inbound-python/tarball/master',
)
| # -*- coding: utf-8 -*
import os
from setuptools import setup, find_packages
readme_md = os.path.join(os.path.dirname(__file__), 'README.md')
try:
import pandoc
pandoc.core.PANDOC_PATH = '/usr/local/bin/pandoc'
doc = pandoc.Document()
doc.markdown = open(readme_md).read()
long_description = doc.rst
except (IOError, ImportError):
long_description = open(readme_md).read()
setup(
name='python-mandrill-inbound',
version='0.0.2',
packages=find_packages(),
author='José Padilla',
author_email='jpadilla@webapplicate.com',
description='Python wrapper for Mandrill Inbound',
long_description=long_description,
license='MIT License',
url='https://github.com/jpadilla/mandrill-inbound-python',
download_url='https://github.com/jpadilla/mandrill-inbound-python/tarball/master',
)
| Create optional README in rst for pypi | Create optional README in rst for pypi
| Python | mit | jpadilla/mandrill-inbound-python | ---
+++
@@ -3,8 +3,16 @@
import os
from setuptools import setup, find_packages
-readme = os.path.join(os.path.dirname(__file__), 'README.md')
-long_description = open(readme).read()
+readme_md = os.path.join(os.path.dirname(__file__), 'README.md')
+
+try:
+ import pandoc
+ pandoc.core.PANDOC_PATH = '/usr/local/bin/pandoc'
+ doc = pandoc.Document()
+ doc.markdown = open(readme_md).read()
+ long_description = doc.rst
+except (IOError, ImportError):
+ long_description = open(readme_md).read()
setup(
name='python-mandrill-inbound', |
d62ac35483eb1685562566b918050218e57c7e1b | setup.py | setup.py | """A setuptools based setup module.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""
# Always prefer setuptools over distutils
from setuptools import setup, find_packages
# To use a consistent encoding
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
# Get the long description from the README file
with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='class_namespaces',
version='0.3.5',
description='Class Namespaces',
long_description=long_description,
url='https://github.com/mwchase/class-namespaces',
author='Max Woerner Chase',
author_email='max.chase@gmail.com',
license='MIT',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Topic :: Software Development :: Libraries',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
],
keywords='class namespaces',
packages=find_packages(exclude=['contrib', 'docs', 'tests']),
extras_require={
'test': ['coverage', 'pytest'],
},
)
| """A setuptools based setup module.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""
# Always prefer setuptools over distutils
from setuptools import setup, find_packages
# To use a consistent encoding
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
# Get the long description from the README file
with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='class_namespaces',
version='0.3.6',
description='Class Namespaces',
long_description=long_description,
url='https://github.com/mwchase/class-namespaces',
author='Max Woerner Chase',
author_email='max.chase@gmail.com',
license='MIT',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Topic :: Software Development :: Libraries',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
],
keywords='class namespaces',
packages=find_packages(exclude=['contrib', 'docs', 'tests']),
extras_require={
'test': ['coverage', 'pytest'],
},
)
| Cut a new version to update the README on PyPi. | Cut a new version to update the README on PyPi.
| Python | mit | mwchase/class-namespaces,mwchase/class-namespaces | ---
+++
@@ -19,7 +19,7 @@
setup(
name='class_namespaces',
- version='0.3.5',
+ version='0.3.6',
description='Class Namespaces',
long_description=long_description, |
26aa4b483dfb40a9351badc6a98e68097d8ebb80 | setup.py | setup.py | from setuptools import setup
setup(
name='simpleblogging',
version='2.0.13',
packages=['simple'],
url='http://github.com/orf/simple',
license='MIT',
author='Orf',
author_email='tom@tomforb.es',
description='A simple markdown based blog.',
include_package_data=True,
install_requires=["flask", "flask_seasurf", "pony", "markdown", "python_dateutil",
"flask_basicauth", 'requests', 'flask_script'],
entry_points={
'console_scripts': ['simple=simple.commands:main']
},
classifiers=[
"License :: OSI Approved :: MIT License"
]
)
| from setuptools import setup
setup(
name='simpleblogging',
version='2.0.13',
packages=['simple'],
url='https://github.com/orf/simple',
license='MIT',
author='Orf',
author_email='tom@tomforb.es',
description='A simple markdown based blog.',
include_package_data=True,
install_requires=["flask", "flask_seasurf", "pony", "markdown", "python_dateutil",
"flask_basicauth", 'requests', 'flask_script'],
entry_points={
'console_scripts': ['simple=simple.commands:main']
},
classifiers=[
"License :: OSI Approved :: MIT License"
]
)
| Change url protocol to https for secure access | Change url protocol to https for secure access | Python | mit | orf/simple,orf/simple,orf/simple | ---
+++
@@ -4,7 +4,7 @@
name='simpleblogging',
version='2.0.13',
packages=['simple'],
- url='http://github.com/orf/simple',
+ url='https://github.com/orf/simple',
license='MIT',
author='Orf',
author_email='tom@tomforb.es', |
c6f946d47fafbd01c5d607fc797cef88f85f0055 | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup
setup(name='hyppocratic',
version='0.1',
description='Software to convert text files to EpiDoc compatible XML.',
author='Johathan Boyle, Nicolas Gruel',
packages=['CommentaryToEpidoc'],
install_requires=['docopt'],
entry_points={
'console_scripts': [
'CommentaryToEpidoc = hyppocratic.driver:main']
}
)
| #!/usr/bin/env python
#TODO: add data in the installation for the default xml_template.txt
from setuptools import setup
setup(name='hyppocratic',
version='0.1',
description='Software to convert text files to EpiDoc compatible XML.',
author='Johathan Boyle, Nicolas Gruel',
packages=['hyppocratic'],
install_requires=['docopt'],
entry_points={
'console_scripts': [
'CommentaryToEpidoc = hyppocratic.driver:main']
}
)
| Correct installation script to use the correct name for the package. | Correct installation script to use the correct name for the package.
Bug solved
| Python | bsd-3-clause | gruel/AphorismToTEI | ---
+++
@@ -1,4 +1,6 @@
#!/usr/bin/env python
+
+#TODO: add data in the installation for the default xml_template.txt
from setuptools import setup
@@ -6,7 +8,7 @@
version='0.1',
description='Software to convert text files to EpiDoc compatible XML.',
author='Johathan Boyle, Nicolas Gruel',
- packages=['CommentaryToEpidoc'],
+ packages=['hyppocratic'],
install_requires=['docopt'],
entry_points={
'console_scripts': [ |
9297c0e672f8500f71c2279deb5fd5662aa60dd9 | setup.py | setup.py | # -*- coding: utf-8 -*-
import codecs
import re
from os import path
from distutils.core import setup
from setuptools import find_packages
def read(*parts):
return codecs.open(path.join(path.dirname(__file__), *parts),
encoding='utf-8').read()
def find_version(*file_paths):
version_file = read(*file_paths)
version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]",
version_file, re.M)
if version_match:
return version_match.group(1)
raise RuntimeError("Unable to find version string.")
setup(
name='django-floppyforms',
version=find_version('floppyforms', '__init__.py'),
author=u'Bruno Renié',
author_email='bruno@renie.fr',
packages=find_packages(),
include_package_data=True,
url='https://github.com/gregmuellegger/django-floppyforms',
license='BSD licence, see LICENSE file',
description='Full control of form rendering in the templates',
long_description=u'\n\n'.join((
read('README.rst'),
read('CHANGES.rst'))),
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
],
zip_safe=False,
)
| # -*- coding: utf-8 -*-
import codecs
import re
from os import path
from distutils.core import setup
from setuptools import find_packages
def read(*parts):
return codecs.open(path.join(path.dirname(__file__), *parts),
encoding='utf-8').read()
def find_version(*file_paths):
version_file = read(*file_paths)
version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]",
version_file, re.M)
if version_match:
return version_match.group(1)
raise RuntimeError("Unable to find version string.")
setup(
name='django-floppyforms',
version=find_version('floppyforms', '__init__.py'),
author=u'Bruno Renié',
author_email='bruno@renie.fr',
packages=find_packages(exclude=["tests.*", "tests"]),
include_package_data=True,
url='https://github.com/gregmuellegger/django-floppyforms',
license='BSD licence, see LICENSE file',
description='Full control of form rendering in the templates',
long_description=u'\n\n'.join((
read('README.rst'),
read('CHANGES.rst'))),
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
],
zip_safe=False,
)
| Exclude tests from being installed. | Exclude tests from being installed.
They would polute global package namespace.
| Python | bsd-3-clause | gregmuellegger/django-floppyforms,gregmuellegger/django-floppyforms,gregmuellegger/django-floppyforms | ---
+++
@@ -25,7 +25,7 @@
version=find_version('floppyforms', '__init__.py'),
author=u'Bruno Renié',
author_email='bruno@renie.fr',
- packages=find_packages(),
+ packages=find_packages(exclude=["tests.*", "tests"]),
include_package_data=True,
url='https://github.com/gregmuellegger/django-floppyforms',
license='BSD licence, see LICENSE file', |
55d033219350dbb2288d71cb3e8f5d355fe6fe02 | setup.py | setup.py | """
Flask-GoogleLogin
-----------------
Flask-GoogleLogin extends Flask-Login to use Google's OAuth2 authorization
Links
`````
* `documentation <http://packages.python.org/Flask-GoogleLogin>`_
* `development version <https://github.com/marksteve/flask-googlelogin>`_
"""
from setuptools import setup
setup(
name='Flask-GoogleLogin',
version='0.1.5',
url='https://github.com/marksteve/flask-googlelogin',
license='MIT',
author="Mark Steve Samson",
author_email='hello@marksteve.com',
description="Extends Flask-Login to use Google's OAuth2 authorization",
long_description=__doc__,
py_modules=['flask_googlelogin'],
zip_safe=False,
platforms='any',
install_requires=[
'requests<1.0',
'Flask-Login==0.1.3',
],
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules',
],
)
| """
Flask-GoogleLogin
-----------------
Flask-GoogleLogin extends Flask-Login to use Google's OAuth2 authorization
Links
`````
* `documentation <http://packages.python.org/Flask-GoogleLogin>`_
* `development version <https://github.com/marksteve/flask-googlelogin>`_
"""
from setuptools import setup
setup(
name='Flask-GoogleLogin',
version='0.1.6',
url='https://github.com/marksteve/flask-googlelogin',
license='MIT',
author="Mark Steve Samson",
author_email='hello@marksteve.com',
description="Extends Flask-Login to use Google's OAuth2 authorization",
long_description=__doc__,
py_modules=['flask_googlelogin'],
zip_safe=False,
platforms='any',
install_requires=[
'requests<1.0',
'Flask-Login==0.2.2',
],
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules',
],
)
| Update to Flask-Login 0.2.2 and bump version number | Update to Flask-Login 0.2.2 and bump version number
| Python | mit | insynchq/flask-googlelogin,insynchq/flask-googlelogin | ---
+++
@@ -13,7 +13,7 @@
setup(
name='Flask-GoogleLogin',
- version='0.1.5',
+ version='0.1.6',
url='https://github.com/marksteve/flask-googlelogin',
license='MIT',
author="Mark Steve Samson",
@@ -25,7 +25,7 @@
platforms='any',
install_requires=[
'requests<1.0',
- 'Flask-Login==0.1.3',
+ 'Flask-Login==0.2.2',
],
classifiers=[
'Development Status :: 4 - Beta', |
5b2de46ac3c21278f1ab2c7620d3f31dc7d98530 | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup
version = '0.6.0.dev'
required = open('requirements.txt').read().split('\n')
extra = {'all': ['mist', 'rime']}
setup(
name='thunder-python',
version=version,
description='large-scale image and time series analysis',
author='freeman-lab',
author_email='the.freeman.lab@gmail.com',
url='https://github.com/thunder-project/thunder',
packages=[
'thunder',
'thunder',
'thunder.blocks',
'thunder.series',
'thunder.images'
],
package_data={'thunder.lib': ['thunder_python-' + version + '-py2.7.egg']},
install_requires=required,
extra_requires=extra,
long_description='See https://github.com/thunder-project/thunder'
)
| #!/usr/bin/env python
from setuptools import setup
version = '0.6.0.dev'
required = open('requirements.txt').read().split('\n')
extra = {'all': ['mist', 'rime']}
setup(
name='thunder-python',
version=version,
description='large-scale image and time series analysis',
author='freeman-lab',
author_email='the.freeman.lab@gmail.com',
url='https://github.com/thunder-project/thunder',
packages=[
'thunder',
'thunder',
'thunder.blocks',
'thunder.series',
'thunder.images'
],
package_data={'thunder.lib': ['thunder_python-' + version + '-py2.7.egg']},
install_requires=required,
extras_require=extra,
long_description='See https://github.com/thunder-project/thunder'
)
| Fix name for extra arguments | Fix name for extra arguments
| Python | apache-2.0 | thunder-project/thunder,jwittenbach/thunder,j-friedrich/thunder,j-friedrich/thunder | ---
+++
@@ -23,6 +23,6 @@
],
package_data={'thunder.lib': ['thunder_python-' + version + '-py2.7.egg']},
install_requires=required,
- extra_requires=extra,
+ extras_require=extra,
long_description='See https://github.com/thunder-project/thunder'
) |
8126a93ec002c3cbff8f9cd7bfe996de740f4bef | setup.py | setup.py | from distutils.core import setup
setup(
name='buqeyemodel',
# packages=['buqeyemodel'],
py_modules=['buqeyemodel'],
version='0.1',
description='A statistical model of EFT convergence.',
author='Jordan Melendez',
author_email='jmelendez1992@gmail.com',
license='MIT',
url='https://github.com/jordan-melendez/buqeyemodel',
download_url='https://github.com/jordan-melendez/buqeyemodel/archive/v0.1.tar.gz',
keywords='EFT nuclear model gaussian process uncertainty quantification buqeyemodel buqeye',
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Intended Audience :: Science/Research',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Mathematics',
'Topic :: Scientific/Engineering :: Physics'
]
)
| from distutils.core import setup
setup(
name='buqeyemodel',
packages=['buqeyemodel'],
# py_modules=['buqeyemodel', 'pymc3_additions'],
version='0.1',
description='A statistical model of EFT convergence.',
author='Jordan Melendez',
author_email='jmelendez1992@gmail.com',
license='MIT',
url='https://github.com/jordan-melendez/buqeyemodel',
download_url='https://github.com/jordan-melendez/buqeyemodel/archive/v0.1.tar.gz',
keywords='EFT nuclear model gaussian process uncertainty quantification buqeyemodel buqeye',
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Intended Audience :: Science/Research',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Mathematics',
'Topic :: Scientific/Engineering :: Physics'
]
)
| Put buqeyemodel back in folder for multi-file use | Put buqeyemodel back in folder for multi-file use
| Python | mit | jordan-melendez/buqeyemodel,jordan-melendez/buqeyemodel | ---
+++
@@ -2,8 +2,8 @@
setup(
name='buqeyemodel',
- # packages=['buqeyemodel'],
- py_modules=['buqeyemodel'],
+ packages=['buqeyemodel'],
+ # py_modules=['buqeyemodel', 'pymc3_additions'],
version='0.1',
description='A statistical model of EFT convergence.',
author='Jordan Melendez', |
d098503ee2be36af86c85527c80b6526f474b4b1 | setup.py | setup.py | # -*- coding: utf-8 -*-
"""Build and installation routines for CMSocial.
"""
from __future__ import absolute_import
from __future__ import print_function
# setuptools doesn't seem to like this:
# from __future__ import unicode_literals
import os
from setuptools import setup, find_packages
setup(
name="cmsocial",
version="0.1.0",
author="algorithm-ninja",
author_email="algorithm@ninja",
url="https://github.com/algorithm-ninja/cmsocial",
download_url="https://github.com/algorithm-ninja/cmsocial/archive/master.tar.gz",
description="A web application that builds a social coding platform upon CMS",
packages=find_packages(),
entry_points={
"console_scripts": [
"cmsocialServer=cmsocial.server.pws:main",
"cmsocialInitDB=cmsocial.db:init_db",
"cmsocialSyncTasks=cmsocial.scripts.synctasks:main",
"cmsocialSyncUsers=cmsocial.scripts.syncusers:main"
]
},
keywords="ioi programming contest grader management system",
license="Affero General Public License v3",
classifiers=[
"Development Status :: 3 - Alpha",
"Natural Language :: English",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 2",
"License :: OSI Approved :: "
"GNU Affero General Public License v3",
]
)
| # -*- coding: utf-8 -*-
"""Build and installation routines for CMSocial.
"""
from __future__ import absolute_import
from __future__ import print_function
# setuptools doesn't seem to like this:
# from __future__ import unicode_literals
import os
from setuptools import setup, find_packages
setup(
name="cmsocial",
version="0.1.0",
author="algorithm-ninja",
author_email="algorithm@ninja",
url="https://github.com/algorithm-ninja/cmsocial",
download_url="https://github.com/algorithm-ninja/cmsocial/archive/master.tar.gz",
description="A web application that builds a social coding platform upon CMS",
packages=find_packages(),
entry_points={
"console_scripts": [
# "cmsocialServer=cmsocial.server.pws:main", # we must rename this because of CMS's ResourceService
"cmsPracticeWebServer=cmsocial.server.pws:main",
"cmsocialInitDB=cmsocial.db:init_db",
"cmsocialSyncTasks=cmsocial.scripts.synctasks:main",
"cmsocialSyncUsers=cmsocial.scripts.syncusers:main"
]
},
keywords="ioi programming contest grader management system",
license="Affero General Public License v3",
classifiers=[
"Development Status :: 3 - Alpha",
"Natural Language :: English",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 2",
"License :: OSI Approved :: "
"GNU Affero General Public License v3",
]
)
| Rename cmsocialServer to cmsPracticeWebServer, to avoid problems | Rename cmsocialServer to cmsPracticeWebServer, to avoid problems
| Python | agpl-3.0 | algorithm-ninja/cmsocial,elsantodel90/oia-juez,algorithm-ninja/cmsocial,elsantodel90/oia-juez,algorithm-ninja/cmsocial,elsantodel90/oia-juez,algorithm-ninja/cmsocial,elsantodel90/oia-juez,algorithm-ninja/cmsocial | ---
+++
@@ -24,7 +24,8 @@
packages=find_packages(),
entry_points={
"console_scripts": [
- "cmsocialServer=cmsocial.server.pws:main",
+# "cmsocialServer=cmsocial.server.pws:main", # we must rename this because of CMS's ResourceService
+ "cmsPracticeWebServer=cmsocial.server.pws:main",
"cmsocialInitDB=cmsocial.db:init_db",
"cmsocialSyncTasks=cmsocial.scripts.synctasks:main",
"cmsocialSyncUsers=cmsocial.scripts.syncusers:main" |
e0bbdbcd3c0f4fb1a6893471f5480b1b32a74fe1 | setup.py | setup.py | from setuptools import setup
setup(name='fntools',
description='Functional programming tools for data processing',
author=u'Taurus Olson',
author_email=u'taurusolson@gmail.com',
url='https://github.com/TaurusOlson/fntools',
version='1.0.4',
packages=['fntools'],
zip_safe=False
)
| from setuptools import setup
def readme():
with open('README.rst') as f:
return f.read()
setup(name='fntools',
version='1.0.4',
description='Functional programming tools for data processing',
long_description=readme(),
classifiers=[
'Programming Language :: Python :: 2.7',
'Topic :: Utilities',
],
author=u'Taurus Olson',
author_email=u'taurusolson@gmail.com',
url='https://github.com/TaurusOlson/fntools',
packages=['fntools'],
keywords='functional programming tools data processing',
license='MIT',
include_package_data=True,
zip_safe=False
)
| Add more metadata for the package on PyPi | Add more metadata for the package on PyPi
| Python | mit | TaurusOlson/fntools | ---
+++
@@ -1,12 +1,25 @@
from setuptools import setup
+def readme():
+ with open('README.rst') as f:
+ return f.read()
+
+
setup(name='fntools',
+ version='1.0.4',
description='Functional programming tools for data processing',
+ long_description=readme(),
+ classifiers=[
+ 'Programming Language :: Python :: 2.7',
+ 'Topic :: Utilities',
+ ],
author=u'Taurus Olson',
author_email=u'taurusolson@gmail.com',
url='https://github.com/TaurusOlson/fntools',
- version='1.0.4',
packages=['fntools'],
+ keywords='functional programming tools data processing',
+ license='MIT',
+ include_package_data=True,
zip_safe=False
) |
ddba8aea13cad32dcb3d33943498dfc746702924 | tests/__init__.py | tests/__init__.py | import logging
import random
import os
from unittest import TestLoader, TestSuite
import unittest.util
from exchangelib.util import PrettyXmlHandler
class RandomTestSuite(TestSuite):
def __iter__(self):
tests = list(super().__iter__())
random.shuffle(tests)
return iter(tests)
# Execute test classes in random order
TestLoader.suiteClass = RandomTestSuite
# Execute test methods in random order within each test class
TestLoader.sortTestMethodsUsing = lambda _, x, y: random.choice((1, -1))
# Always show full repr() output for object instances in unittest error messages
unittest.util._MAX_LENGTH = 2000
if os.environ.get('DEBUG', '').lower() in ('1', 'yes', 'true'):
logging.basicConfig(level=logging.DEBUG, handlers=[PrettyXmlHandler()])
else:
logging.basicConfig(level=logging.CRITICAL)
| import logging
import random
import os
from unittest import TestLoader, TestSuite
import unittest.util
from exchangelib.util import PrettyXmlHandler
class RandomTestSuite(TestSuite):
def __iter__(self):
tests = list(super().__iter__())
random.shuffle(tests)
return iter(tests)
# Execute test classes in random order
TestLoader.suiteClass = RandomTestSuite
# Execute test methods in random order within each test class
TestLoader.sortTestMethodsUsing = lambda _, x, y: random.choice((1, -1))
# Make sure we're also random in multiprocess test runners
random.seed()
# Always show full repr() output for object instances in unittest error messages
unittest.util._MAX_LENGTH = 2000
if os.environ.get('DEBUG', '').lower() in ('1', 'yes', 'true'):
logging.basicConfig(level=logging.DEBUG, handlers=[PrettyXmlHandler()])
else:
logging.basicConfig(level=logging.CRITICAL)
| Make sure random values are random across processes | Make sure random values are random across processes
| Python | bsd-2-clause | ecederstrand/exchangelib | ---
+++
@@ -18,6 +18,8 @@
TestLoader.suiteClass = RandomTestSuite
# Execute test methods in random order within each test class
TestLoader.sortTestMethodsUsing = lambda _, x, y: random.choice((1, -1))
+# Make sure we're also random in multiprocess test runners
+random.seed()
# Always show full repr() output for object instances in unittest error messages
unittest.util._MAX_LENGTH = 2000 |
6c67d06a691be8a930c0e82fcf404057580645d8 | tests/conftest.py | tests/conftest.py | import os
import sys
from pathlib import Path
import pytest
if sys.version_info < (3, 4):
print("Requires Python 3.4+")
sys.exit(1)
TESTS_ROOT = os.path.abspath(os.path.dirname(__file__))
PROJECT_ROOT = os.path.dirname(TESTS_ROOT)
@pytest.fixture
def resources():
return Path(TESTS_ROOT) / 'resources'
@pytest.fixture(scope="function")
def outdir(tmp_path):
return tmp_path
@pytest.fixture(scope="function")
def outpdf(tmp_path):
return tmp_path / 'out.pdf'
| import os
import sys
from pathlib import Path
import pytest
if sys.version_info < (3, 4):
print("Requires Python 3.4+")
sys.exit(1)
TESTS_ROOT = os.path.abspath(os.path.dirname(__file__))
PROJECT_ROOT = os.path.dirname(TESTS_ROOT)
@pytest.fixture(scope="session")
def resources():
return Path(TESTS_ROOT) / 'resources'
@pytest.fixture(scope="function")
def outdir(tmp_path):
return tmp_path
@pytest.fixture(scope="function")
def outpdf(tmp_path):
return tmp_path / 'out.pdf'
| Fix warning from hypothesis above scope of resources() fixture | Fix warning from hypothesis above scope of resources() fixture
| Python | mpl-2.0 | pikepdf/pikepdf,pikepdf/pikepdf,pikepdf/pikepdf | ---
+++
@@ -3,7 +3,6 @@
from pathlib import Path
import pytest
-
if sys.version_info < (3, 4):
print("Requires Python 3.4+")
@@ -14,7 +13,7 @@
PROJECT_ROOT = os.path.dirname(TESTS_ROOT)
-@pytest.fixture
+@pytest.fixture(scope="session")
def resources():
return Path(TESTS_ROOT) / 'resources'
|
34977275dc0502896846e937097d18d31103bcb0 | tests/conftest.py | tests/conftest.py | """Global test configuration"""
import os
from pathlib import Path
import betamax
import pytest
from mccurse import curse
# Ensure cassete dir
CASSETE_DIR = 'tests/cassetes/'
if not os.path.exists(CASSETE_DIR):
os.makedirs(CASSETE_DIR)
record_mode = 'none' if os.environ.get('TRAVIS_BUILD') else 'once'
with betamax.Betamax.configure() as config:
config.cassette_library_dir = CASSETE_DIR
config.default_cassette_options.update({
'record_mode': record_mode,
'preserve_exact_body_bytes': True,
})
# Shared fixtures
@pytest.fixture
def file_database(tmpdir) -> curse.Database:
"""Database potentially located in temp dir."""
return curse.Database('test', Path(str(tmpdir)))
| """Global test configuration"""
import os
from pathlib import Path
import betamax
import pytest
from mccurse import addon, curse
# Ensure cassete dir
CASSETE_DIR = 'tests/cassetes/'
if not os.path.exists(CASSETE_DIR):
os.makedirs(CASSETE_DIR)
record_mode = 'none' if os.environ.get('TRAVIS_BUILD') else 'once'
with betamax.Betamax.configure() as config:
config.cassette_library_dir = CASSETE_DIR
config.default_cassette_options.update({
'record_mode': record_mode,
'preserve_exact_body_bytes': True,
})
# Shared fixtures
@pytest.fixture
def file_database(tmpdir) -> curse.Database:
"""Database potentially located in temp dir."""
return curse.Database('test', Path(str(tmpdir)))
@pytest.fixture
def tinkers_construct() -> addon.Mod:
"""Tinkers Construct project data"""
data = {
'name': 'Tinkers Construct',
'id': 74072,
'summary': 'Modify all the things, then do it again!',
}
return addon.Mod(**data)
@pytest.fixture
def minecraft() -> curse.Game:
"""Minecraft version for testing."""
data = {
'name': 'Minecraft',
'id': 432,
'version': '1.10.2',
}
return curse.Game(**data)
| Add shared fixtures for Mod and Game | Add shared fixtures for Mod and Game
| Python | agpl-3.0 | khardix/mccurse | ---
+++
@@ -7,7 +7,7 @@
import betamax
import pytest
-from mccurse import curse
+from mccurse import addon, curse
# Ensure cassete dir
@@ -31,3 +31,27 @@
"""Database potentially located in temp dir."""
return curse.Database('test', Path(str(tmpdir)))
+
+
+@pytest.fixture
+def tinkers_construct() -> addon.Mod:
+ """Tinkers Construct project data"""
+
+ data = {
+ 'name': 'Tinkers Construct',
+ 'id': 74072,
+ 'summary': 'Modify all the things, then do it again!',
+ }
+ return addon.Mod(**data)
+
+
+@pytest.fixture
+def minecraft() -> curse.Game:
+ """Minecraft version for testing."""
+
+ data = {
+ 'name': 'Minecraft',
+ 'id': 432,
+ 'version': '1.10.2',
+ }
+ return curse.Game(**data) |
ef695f9bbd24c88fd3b802c8964313c5a182fed5 | accelerator/tests/test_program_cycle.py | accelerator/tests/test_program_cycle.py | # MIT License
# Copyright (c) 2017 MassChallenge, Inc.
from __future__ import unicode_literals
from django.test import TestCase
from accelerator.tests.factories import ProgramCycleFactory
class TestProgramCycle(TestCase):
def test_display_name_no_short_name(self):
cycle = ProgramCycleFactory(short_name=None)
assert cycle.name in str(cycle)
# def test_program_cycle_has_default_application_type(self):
# cycle = ProgramCycleFactory()
# if (cycle.applications_open and
# not cycle.default_application_type):
# self.assertRaises("Open applications must have"
# "a default application type.")
# def test_program_cycle_cannot_remove_default_application_type(self):
# cycle = ProgramCycleFactory()
# if (cycle.applications_open and
# not cycle.default_application_type
# and cycle.programs.exists()):
# self.assertRaises("Default application type can’t be removed"
# "from the cycle until the program cycle is"
# "disassociated with all programs")
| # MIT License
# Copyright (c) 2017 MassChallenge, Inc.
from __future__ import unicode_literals
from django.test import TestCase
from accelerator.tests.factories import ProgramCycleFactory
class TestProgramCycle(TestCase):
def test_display_name_no_short_name(self):
cycle = ProgramCycleFactory(short_name=None)
assert cycle.name in str(cycle)
def test_program_cycle_has_default_application_type(self):
cycle = ProgramCycleFactory()
if (cycle.applications_open and
not cycle.default_application_type):
self.assertRaises("Open applications must have"
"a default application type.")
def test_program_cycle_cannot_remove_default_application_type(self):
cycle = ProgramCycleFactory()
if (cycle.applications_open and
not cycle.default_application_type
and cycle.programs.exists()):
self.assertRaises("Default application type can’t be removed"
"from the cycle until the program cycle is"
"disassociated with all programs")
| Add tests for the functionality added | [AC-7049] Add tests for the functionality added
| Python | mit | masschallenge/django-accelerator,masschallenge/django-accelerator | ---
+++
@@ -13,18 +13,18 @@
cycle = ProgramCycleFactory(short_name=None)
assert cycle.name in str(cycle)
- # def test_program_cycle_has_default_application_type(self):
- # cycle = ProgramCycleFactory()
- # if (cycle.applications_open and
- # not cycle.default_application_type):
- # self.assertRaises("Open applications must have"
- # "a default application type.")
+ def test_program_cycle_has_default_application_type(self):
+ cycle = ProgramCycleFactory()
+ if (cycle.applications_open and
+ not cycle.default_application_type):
+ self.assertRaises("Open applications must have"
+ "a default application type.")
- # def test_program_cycle_cannot_remove_default_application_type(self):
- # cycle = ProgramCycleFactory()
- # if (cycle.applications_open and
- # not cycle.default_application_type
- # and cycle.programs.exists()):
- # self.assertRaises("Default application type can’t be removed"
- # "from the cycle until the program cycle is"
- # "disassociated with all programs")
+ def test_program_cycle_cannot_remove_default_application_type(self):
+ cycle = ProgramCycleFactory()
+ if (cycle.applications_open and
+ not cycle.default_application_type
+ and cycle.programs.exists()):
+ self.assertRaises("Default application type can’t be removed"
+ "from the cycle until the program cycle is"
+ "disassociated with all programs") |
753aba188bcd8afa195c76886f11423e5761cf68 | pollirio/confreader.py | pollirio/confreader.py | from ConfigParser import SafeConfigParser
class ConfReader(object):
def __init__(self, fn):
defaults = {
'nick': 'pollirio',
'channel': '#polloalforno',
'server_addr': 'calvino.freenode.net',
'server_port': 6667
}
self.__slots__ = defaults.keys()
config = SafeConfigParser(defaults)
config.read(fn)
for name, default in defaults.iteritems():
if type(default) == int:
self.__dict__[name] = config.getint('global', name)
elif type(default) == float:
self.__dict__[name] = config.getfloat('global', name)
else:
self.__dict__[name] = config.get('global', name)
| from ConfigParser import SafeConfigParser
class ConfReader(object):
def __init__(self, fn):
defaults = {
'nickname': 'pollirio',
'channel': '#polloalforno',
'server_addr': 'calvino.freenode.net',
'server_port': 6667
}
self.__slots__ = defaults.keys()
config = SafeConfigParser(defaults)
config.read(fn)
for name, default in defaults.iteritems():
if type(default) == int:
self.__dict__[name] = config.getint('global', name)
elif type(default) == float:
self.__dict__[name] = config.getfloat('global', name)
else:
self.__dict__[name] = config.get('global', name)
| Fix bug in nick configuration | Fix bug in nick configuration
| Python | mit | dpaleino/pollirio,dpaleino/pollirio | ---
+++
@@ -3,7 +3,7 @@
class ConfReader(object):
def __init__(self, fn):
defaults = {
- 'nick': 'pollirio',
+ 'nickname': 'pollirio',
'channel': '#polloalforno',
'server_addr': 'calvino.freenode.net',
'server_port': 6667 |
ba3d399c8c959dcfbf2d507a8b2767b26625f9ae | app/models/compare.py | app/models/compare.py | # This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program 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 Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
"""Model and fields for the delta/comparison."""
import models
JOB_DELTA_COMPARE_TO_VALID_KEYS = [
models.JOB_ID_KEY,
models.JOB_KEY,
models.KERNEL_KEY
]
JOB_DELTA_VALID_KEYS = {
"POST": [
models.COMPARE_TO_KEY,
models.JOB_ID_KEY,
models.JOB_KEY,
models.KERNEL_KEY
]
}
COMPARE_VALID_KEYS = {
models.JOB_COLLECTION: JOB_DELTA_VALID_KEYS
}
# Matching between compare resources and their real database collection.
# This is used for GET operations.
COMPARE_RESOURCE_COLLECTIONS = {
models.JOB_COLLECTION: models.JOB_DELTA_COLLECTION
}
| # This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program 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 Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
"""Model and fields for the delta/comparison."""
import models
JOB_DELTA_COMPARE_TO_VALID_KEYS = [
models.JOB_ID_KEY,
models.JOB_KEY,
models.KERNEL_KEY
]
JOB_DELTA_VALID_KEYS = {
"POST": [
models.COMPARE_TO_KEY,
models.JOB_ID_KEY,
models.JOB_KEY,
models.KERNEL_KEY
]
}
BUILD_DELTA_VALID_KEYS = {
"POST": [
models.ARCHITECTURE_KEY,
models.COMPARE_TO_KEY,
models.DEFCONFIG_FULL_KEY,
models.DEFCONFIG_KEY,
models.JOB_KEY,
models.KERNEL_KEY
]
}
COMPARE_VALID_KEYS = {
models.BUILD_COLLECTION: BUILD_DELTA_VALID_KEYS,
models.JOB_COLLECTION: JOB_DELTA_VALID_KEYS
}
# Matching between compare resources and their real database collection.
# This is used for GET operations.
COMPARE_RESOURCE_COLLECTIONS = {
models.BUILD_COLLECTION: models.BUILD_DELTA_COLLECTION,
models.JOB_COLLECTION: models.JOB_DELTA_COLLECTION
}
| Add build comparison model keys | Add build comparison model keys
| Python | lgpl-2.1 | kernelci/kernelci-backend,kernelci/kernelci-backend | ---
+++
@@ -30,12 +30,25 @@
]
}
+BUILD_DELTA_VALID_KEYS = {
+ "POST": [
+ models.ARCHITECTURE_KEY,
+ models.COMPARE_TO_KEY,
+ models.DEFCONFIG_FULL_KEY,
+ models.DEFCONFIG_KEY,
+ models.JOB_KEY,
+ models.KERNEL_KEY
+ ]
+}
+
COMPARE_VALID_KEYS = {
+ models.BUILD_COLLECTION: BUILD_DELTA_VALID_KEYS,
models.JOB_COLLECTION: JOB_DELTA_VALID_KEYS
}
# Matching between compare resources and their real database collection.
# This is used for GET operations.
COMPARE_RESOURCE_COLLECTIONS = {
+ models.BUILD_COLLECTION: models.BUILD_DELTA_COLLECTION,
models.JOB_COLLECTION: models.JOB_DELTA_COLLECTION
} |
8564a355473afe76c307701c5c347d58d0f7ca18 | test_ir.py | test_ir.py | import unittest
import kerneltest
class IRkernelTests(kerneltest.KernelTests):
kernel_name = "ir"
language_name = "R"
code_hello_world = "print('hello, world')"
completion_samples = [
{
'text': 'zi',
'matches': {'zip'},
},
]
if __name__ == '__main__':
unittest.main()
| import unittest
import kerneltest
class IRkernelTests(kerneltest.KernelTests):
kernel_name = "ir"
language_name = "R"
code_hello_world = "print('hello, world')"
completion_samples = [
{
'text': 'zi',
'matches': {'zip'},
},
]
complete_code_samples = ['1', "print('hello, world')", "f <- function(x) {\n x*2\n}"]
incomplete_code_samples = ["print('hello", "f <- function(x) {\n x*2"]
if __name__ == '__main__':
unittest.main()
| Add tests for is_complete requests | Add tests for is_complete requests
| Python | mit | ibm-et/IRkernel,ibm-et/IRkernel | ---
+++
@@ -15,5 +15,8 @@
},
]
+ complete_code_samples = ['1', "print('hello, world')", "f <- function(x) {\n x*2\n}"]
+ incomplete_code_samples = ["print('hello", "f <- function(x) {\n x*2"]
+
if __name__ == '__main__':
unittest.main() |
f852fb6a8b0a64d6385cba32fd911cb8bad7f300 | src/classifiers/itfidf_classifier.py | src/classifiers/itfidf_classifier.py | # Headers
__author__ = 'Somsubhra Bairi'
__email__ = 'somsubhra.bairi@gmail.com'
# All imports
from extras import Logger
from nltk import PorterStemmer
# Classify according to document frequency
class ITFIDFClassifier:
# Constructor for the ITFIDFClassifier
def __init__(self, dict_file):
dictionary_file = open(dict_file)
self.itfidf_dictionary = {}
self.avg_itfidf = 0
# Construct the document frequency dictionary
for line in dictionary_file.readlines():
cols = line.split(";")
self.itfidf_dictionary[cols[0]] = int(cols[1])
self.avg_itfidf += int(cols[1])
self.avg_itfidf /= len(self.itfidf_dictionary)
dictionary_file.close()
# Classify the word
def is_difficult(self, word):
if word.isdigit():
return False
sanitized_word = ''.join(e for e in word if e.isalnum()).lower()
stemmed_word = PorterStemmer().stem_word(sanitized_word)
if stemmed_word in self.itfidf_dictionary:
return self.itfidf_dictionary[stemmed_word] > self.avg_itfidf * 1
else:
return True | # Headers
__author__ = 'Somsubhra Bairi'
__email__ = 'somsubhra.bairi@gmail.com'
# All imports
from extras import Logger
from nltk import PorterStemmer
# Classify according to document frequency
class ITFIDFClassifier:
# Constructor for the ITFIDFClassifier
def __init__(self, dict_file):
dictionary_file = open(dict_file)
self.itfidf_dictionary = {}
self.avg_itfidf = 0
# Construct the document frequency dictionary
for line in dictionary_file.readlines():
cols = line.split(";")
self.itfidf_dictionary[cols[0]] = int(cols[1])
self.avg_itfidf += int(cols[1])
self.avg_itfidf /= len(self.itfidf_dictionary)
dictionary_file.close()
# Classify the word
def is_difficult(self, word):
if word.isdigit():
return False
sanitized_word = ''.join(e for e in word if e.isalnum()).lower()
stemmed_word = PorterStemmer().stem_word(sanitized_word)
if stemmed_word in self.itfidf_dictionary:
return self.itfidf_dictionary[stemmed_word] > self.avg_itfidf / 16
else:
return True | Adjust the coefficient of classifiers | Adjust the coefficient of classifiers
| Python | mit | Somsubhra/Enrich,Somsubhra/Enrich,Somsubhra/Enrich | ---
+++
@@ -38,6 +38,6 @@
stemmed_word = PorterStemmer().stem_word(sanitized_word)
if stemmed_word in self.itfidf_dictionary:
- return self.itfidf_dictionary[stemmed_word] > self.avg_itfidf * 1
+ return self.itfidf_dictionary[stemmed_word] > self.avg_itfidf / 16
else:
return True |
05f6eb49cd16b56324606afe525fe4476db4a998 | setup.py | setup.py | #-*- coding: utf-8 -*-
#
# setup.py
# anytop
#
# Created by Lars Yencken on 2011-10-09.
# Copyright 2011 Lars Yencken. All rights reserved.
#
from setuptools import setup
setup(
name='anytop',
version='0.2.1',
description='Streaming frequency distribution viewer.',
long_description=open('README.rst').read(),
author='Lars Yencken',
author_email='lars@yencken.org',
url='http://bitbucket.org/larsyencken/anytop',
scripts=['anytop', 'anyhist'],
packages=['anyutil'],
license='ISC',
)
| #-*- coding: utf-8 -*-
#
# setup.py
# anytop
#
# Created by Lars Yencken on 2011-10-09.
# Copyright 2011 Lars Yencken. All rights reserved.
#
from setuptools import setup
setup(
name='anytop',
version='0.2.1',
description='Streaming frequency distribution viewer.',
long_description=open('README.rst').read(),
author='Lars Yencken',
author_email='lars@yencken.org',
url='http://github.com/larsyencken/anytop',
scripts=['anytop', 'anyhist'],
packages=['anyutil'],
license='ISC',
)
| Update package url to github. | Update package url to github.
| Python | isc | larsyencken/anytop | ---
+++
@@ -16,9 +16,8 @@
long_description=open('README.rst').read(),
author='Lars Yencken',
author_email='lars@yencken.org',
- url='http://bitbucket.org/larsyencken/anytop',
+ url='http://github.com/larsyencken/anytop',
scripts=['anytop', 'anyhist'],
packages=['anyutil'],
license='ISC',
)
- |
f6dca8d01660c77f64ea1ed0e004fb6e14f69115 | setup.py | setup.py | import os
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(name='windpowerlib',
version='0.1.2dev',
description='Creating time series of wind power plants.',
url='http://github.com/wind-python/windpowerlib',
author='oemof developer group',
author_email='windpowerlib@rl-institut.de',
license=None,
packages=['windpowerlib'],
package_data={
'windpowerlib': [os.path.join('data', '*.csv')]},
long_description=read('README.rst'),
zip_safe=False,
install_requires=['pandas >= 0.19.1',
'requests'],
extras_require={
'dev': ['sphinx_rtd_theme', 'pytest']})
| import os
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(name='windpowerlib',
version='0.1.2dev',
description='Creating time series of wind power plants.',
url='http://github.com/wind-python/windpowerlib',
author='oemof developer group',
author_email='windpowerlib@rl-institut.de',
license=None,
packages=['windpowerlib'],
package_data={
'windpowerlib': [os.path.join('data', '*.csv')]},
long_description=read('README.rst'),
zip_safe=False,
install_requires=['pandas >= 0.19.1',
'requests'],
extras_require={
'dev': ['pytest', 'jupyter', 'sphinx_rtd_theme', 'nbformat']})
| Add requirements for developers necessary for tests | Add requirements for developers necessary for tests
| Python | mit | wind-python/windpowerlib | ---
+++
@@ -21,4 +21,4 @@
install_requires=['pandas >= 0.19.1',
'requests'],
extras_require={
- 'dev': ['sphinx_rtd_theme', 'pytest']})
+ 'dev': ['pytest', 'jupyter', 'sphinx_rtd_theme', 'nbformat']}) |
c4dd53c2d476a9daaed5c630c95c7e558a347ce3 | setup.py | setup.py | from setuptools import setup
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
# Get the long description from the README file
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='flask-swagger-ui',
version='0.0.1',
description='SwaggerUI blueprint for Flask',
long_description=long_description,
url='https://github.com/sveint/flask-swagger-ui',
author='Svein Tore Koksrud Seljebotn',
author_email='sveint@gmail.com',
license='MIT',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
],
keywords='flask swagger',
packages=['flask_swagger_ui'],
package_data={
'flask_swagger_ui': [
'README.md',
'templates/*.html',
'dist/VERSION',
'dist/LICENSE',
'dist/README.md',
'dist/*.html',
'dist/*.js',
'dist/*/*.js',
'dist/*/*.css',
'dist/*/*.gif',
'dist/*/*.png',
'dist/*/*.ico',
'dist/*/*.ttf',
],
}
)
| from setuptools import setup
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
# Get the long description from the README file
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='flask-swagger-ui',
version='0.0.1a',
description='Swagger UI blueprint for Flask',
long_description=long_description,
url='https://github.com/sveint/flask-swagger-ui',
author='Svein Tore Koksrud Seljebotn',
author_email='sveint@gmail.com',
license='MIT',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
],
keywords='flask swagger',
packages=['flask_swagger_ui'],
package_data={
'flask_swagger_ui': [
'README.md',
'templates/*.html',
'dist/VERSION',
'dist/LICENSE',
'dist/README.md',
'dist/*.html',
'dist/*.js',
'dist/*/*.js',
'dist/*/*.css',
'dist/*/*.gif',
'dist/*/*.png',
'dist/*/*.ico',
'dist/*/*.ttf',
],
}
)
| Create release fix for fixing readme on Pypi | Create release fix for fixing readme on Pypi
| Python | mit | sveint/flask-swagger-ui,sveint/flask-swagger-ui,sveint/flask-swagger-ui | ---
+++
@@ -10,8 +10,8 @@
setup(
name='flask-swagger-ui',
- version='0.0.1',
- description='SwaggerUI blueprint for Flask',
+ version='0.0.1a',
+ description='Swagger UI blueprint for Flask',
long_description=long_description,
url='https://github.com/sveint/flask-swagger-ui', |
c092a9a836046aa098b8ac10f63bc60f70da9e76 | tests/test_str.py | tests/test_str.py | import pytest
from hypothesis import given
from hypothesis.strategies import integers, text
from datatyping.datatyping import validate
@given(string=text())
def test_simple(string):
assert validate(str, string) is None
@given(not_string=integers())
def test_simple_error(not_string):
with pytest.raises(TypeError):
validate(str, not_string)
| import pytest
from hypothesis import given
from hypothesis.strategies import integers, text, lists, iterables, one_of
from datatyping.datatyping import validate
@given(string=text())
def test_simple(string):
assert validate(str, string) is None
@given(not_string=one_of(integers(), lists(integers()), iterables(integers())))
def test_simple_error(not_string):
with pytest.raises(TypeError):
validate(str, not_string)
| Improve the str tests by adding bad types | Improve the str tests by adding bad types
| Python | mit | Zaab1t/datatyping | ---
+++
@@ -1,6 +1,6 @@
import pytest
from hypothesis import given
-from hypothesis.strategies import integers, text
+from hypothesis.strategies import integers, text, lists, iterables, one_of
from datatyping.datatyping import validate
@@ -10,7 +10,7 @@
assert validate(str, string) is None
-@given(not_string=integers())
+@given(not_string=one_of(integers(), lists(integers()), iterables(integers())))
def test_simple_error(not_string):
with pytest.raises(TypeError):
validate(str, not_string) |
0c1220aae6e95e6ec8d93f0605819aa4a29959ad | setup.py | setup.py | import os
from setuptools import setup
setup(
name = "prometheus_client",
version = "0.0.18",
author = "Brian Brazil",
author_email = "brian.brazil@robustperception.io",
description = ("Python client for the Prometheus monitoring system."),
long_description = ("See https://github.com/prometheus/client_python/blob/master/README.md for documentation."),
license = "Apache Software License 2.0",
keywords = "prometheus monitoring instrumentation client",
url = "https://github.com/prometheus/client_python",
packages=['prometheus_client', 'prometheus_client.bridge', 'prometheus_client.twisted'],
extras_requires={
'twisted': ['twisted'],
},
test_suite="tests",
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"Intended Audience :: System Administrators",
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: System :: Monitoring",
"License :: OSI Approved :: Apache Software License",
],
)
| import os
from setuptools import setup
setup(
name = "prometheus_client",
version = "0.0.18",
author = "Brian Brazil",
author_email = "brian.brazil@robustperception.io",
description = ("Python client for the Prometheus monitoring system."),
long_description = ("See https://github.com/prometheus/client_python/blob/master/README.md for documentation."),
license = "Apache Software License 2.0",
keywords = "prometheus monitoring instrumentation client",
url = "https://github.com/prometheus/client_python",
packages=['prometheus_client', 'prometheus_client.bridge', 'prometheus_client.twisted', 'prometheus_client.handlers'],
extras_requires={
'twisted': ['twisted'],
},
test_suite="tests",
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"Intended Audience :: System Administrators",
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: System :: Monitoring",
"License :: OSI Approved :: Apache Software License",
],
)
| Add 'handlers' package to distribution. | Add 'handlers' package to distribution.
| Python | apache-2.0 | prometheus/client_python | ---
+++
@@ -11,7 +11,7 @@
license = "Apache Software License 2.0",
keywords = "prometheus monitoring instrumentation client",
url = "https://github.com/prometheus/client_python",
- packages=['prometheus_client', 'prometheus_client.bridge', 'prometheus_client.twisted'],
+ packages=['prometheus_client', 'prometheus_client.bridge', 'prometheus_client.twisted', 'prometheus_client.handlers'],
extras_requires={
'twisted': ['twisted'],
}, |
4e8c3e66b6956c88adcf275d771d06fad0c0bb34 | mrbelvedereci/build/utils.py | mrbelvedereci/build/utils.py | from django.core.paginator import EmptyPage
from django.core.paginator import PageNotAnInteger
from django.core.paginator import Paginator
from mrbelvedereci.build.models import Build
def paginate(build_list, request):
page = request.GET.get('page')
per_page = request.GET.get('per_page', '25')
paginator = Paginator(build_list, int(per_page))
try:
builds = paginator.page(page)
except PageNotAnInteger:
# If page is not an integer, deliver first page.
builds = paginator.page(1)
except EmptyPage:
# If page is out of range (e.g. 9999), deliver last page of results.
builds = paginator.page(paginator.num_pages)
return builds
def view_queryset(request, query=None):
if not query:
query = {}
if not request.user.is_staff:
query['plan__public'] = True
builds = Build.objects.all()
if query:
builds = builds.filter(**query)
builds = paginate(builds, request)
return builds
| from django.core.paginator import EmptyPage
from django.core.paginator import PageNotAnInteger
from django.core.paginator import Paginator
from mrbelvedereci.build.models import Build
def paginate(build_list, request):
page = request.GET.get('page')
per_page = request.GET.get('per_page', '25')
paginator = Paginator(build_list, int(per_page))
try:
builds = paginator.page(page)
except PageNotAnInteger:
# If page is not an integer, deliver first page.
builds = paginator.page(1)
except EmptyPage:
# If page is out of range (e.g. 9999), deliver last page of results.
builds = paginator.page(paginator.num_pages)
return builds
def view_queryset(request, query=None):
if not query:
query = {}
if not request.user.is_staff:
query['plan__public'] = True
builds = Build.objects.all()
if query:
builds = builds.filter(**query)
order_by = request.GET.get('order_by', '-time_queue')
order_by = order_by.split(',')
builds = builds.order_by(*order_by)
builds = paginate(builds, request)
return builds
| Change build listings to sort by -time_queue instead of -id so that rebuilds show up higher in the listing | Change build listings to sort by -time_queue instead of -id so that
rebuilds show up higher in the listing
| Python | bsd-3-clause | SalesforceFoundation/mrbelvedereci,SalesforceFoundation/mrbelvedereci,SalesforceFoundation/mrbelvedereci,SalesforceFoundation/mrbelvedereci | ---
+++
@@ -28,5 +28,9 @@
if query:
builds = builds.filter(**query)
+ order_by = request.GET.get('order_by', '-time_queue')
+ order_by = order_by.split(',')
+ builds = builds.order_by(*order_by)
+
builds = paginate(builds, request)
return builds |
ae5626eaf36c6be94860d2a9570a777ff7f4e148 | apps/client_config.py | apps/client_config.py |
import superdesk
from flask import current_app as app
from superdesk.utils import ListCursor
class ClientConfigResource(superdesk.Resource):
item_methods = []
public_methods = ['GET']
resource_methods = ['GET']
class ClientConfigService(superdesk.Service):
def get(self, req, lookup):
return ListCursor()
def on_fetched(self, docs):
docs['config'] = getattr(app, 'client_config', {})
def init_app(app):
superdesk.register_resource('client_config', ClientConfigResource, ClientConfigService, _app=app)
app.client_config.update({
'schema': app.config.get('SCHEMA'),
'editor': app.config.get('EDITOR'),
})
|
import superdesk
from flask import current_app as app
from superdesk.utils import ListCursor
class ClientConfigResource(superdesk.Resource):
item_methods = []
public_methods = ['GET']
resource_methods = ['GET']
class ClientConfigService(superdesk.Service):
def get(self, req, lookup):
return ListCursor()
def on_fetched(self, docs):
docs['config'] = getattr(app, 'client_config', {})
def init_app(app):
superdesk.register_resource('client_config', ClientConfigResource, ClientConfigService, _app=app)
app.client_config.update({
'schema': app.config.get('SCHEMA'),
'editor': app.config.get('EDITOR'),
'feedback_url': app.config.get('FEEDBACK_URL'),
})
| Add feedback url to served client configuration | [SDESK-2128] Add feedback url to served client configuration
| Python | agpl-3.0 | superdesk/superdesk-core,petrjasek/superdesk-core,mugurrus/superdesk-core,mdhaman/superdesk-core,ioanpocol/superdesk-core,ioanpocol/superdesk-core,mugurrus/superdesk-core,ioanpocol/superdesk-core,superdesk/superdesk-core,mdhaman/superdesk-core,petrjasek/superdesk-core,petrjasek/superdesk-core,hlmnrmr/superdesk-core,mugurrus/superdesk-core,superdesk/superdesk-core,superdesk/superdesk-core,mdhaman/superdesk-core,hlmnrmr/superdesk-core,petrjasek/superdesk-core | ---
+++
@@ -25,4 +25,5 @@
app.client_config.update({
'schema': app.config.get('SCHEMA'),
'editor': app.config.get('EDITOR'),
+ 'feedback_url': app.config.get('FEEDBACK_URL'),
}) |
ab98637aa949a02618f6b119983f40bcbde80d43 | examples/play_series_montecarlo_vs_random.py | examples/play_series_montecarlo_vs_random.py | from capstone.game import TicTacToe
from capstone.player import MonteCarlo, RandPlayer
from capstone.util import play_series
game = TicTacToe()
players = [MonteCarlo(), RandPlayer()]
n_matches = 10
play_series(game, players, n_matches)
players.reverse()
play_series(game, players, n_matches)
| from capstone.game import TicTacToe
from capstone.player import MonteCarlo, RandPlayer
from capstone.util import play_series
game = TicTacToe()
players = [MonteCarlo(), RandPlayer()]
n_matches = 10
play_series(game, players, n_matches)
print('')
players.reverse()
play_series(game, players, n_matches)
| Add line break to play series monte carlo | Add line break to play series monte carlo
| Python | mit | davidrobles/mlnd-capstone-code | ---
+++
@@ -6,5 +6,6 @@
players = [MonteCarlo(), RandPlayer()]
n_matches = 10
play_series(game, players, n_matches)
+print('')
players.reverse()
play_series(game, players, n_matches) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.