commit stringlengths 40 40 | subject stringlengths 4 1.73k | repos stringlengths 5 127k | old_file stringlengths 2 751 | new_file stringlengths 2 751 | new_contents stringlengths 1 8.98k | old_contents stringlengths 0 6.59k | license stringclasses 13
values | lang stringclasses 23
values |
|---|---|---|---|---|---|---|---|---|
bc5ebc9aa6c77ca309efb9efeafd788fbe55be15 | Bump version | scott-w/rest-framework-latex,mypebble/rest-framework-latex | setup.py | setup.py | from setuptools import setup, find_packages
setup(
name='rest-framework-latex',
version='0.0.4',
description="A LaTeX renderer for Django REST Framework",
author="SF Software limited t/a Pebble",
author_email="sysadmin@mypebble.co.uk",
url="https://github.com/mypebble/rest-framework-latex",
packages=find_packages(),
include_package_data=True,
zip_safe=False,
)
| from setuptools import setup, find_packages
setup(
name='rest-framework-latex',
version='0.0.3',
description="A LaTeX renderer for Django REST Framework",
author="SF Software limited t/a Pebble",
author_email="sysadmin@mypebble.co.uk",
url="https://github.com/mypebble/rest-framework-latex",
packages=find_packages(),
include_package_data=True,
zip_safe=False,
)
| mit | Python |
dcf861b51cd0e1bd77918c4372c1b3cfd0f0710b | remove utility dependency, inherits from pyon | ooici/marine-integrations | setup.py | setup.py | #!/usr/bin/env python
try:
from setuptools import setup, find_packages
except ImportError:
from distutils.core import setup
import os
import sys
# Add /usr/local/include to the path for macs, fixes easy_install for several packages (like gevent and pyyaml)
if sys.platform == 'darwin':
os.environ['C_INCLUDE_PATH'] = '/usr/local/include'
version = '0.2.1'
setup( name = 'marine-integrations',
version = version,
description = 'OOI ION Marine Integrations',
url = 'https://github.com/ooici/marine-integrations',
download_url = 'http://sddevrepo.oceanobservatories.org/releases/',
license = 'Apache 2.0',
author = 'Michael Meisinger',
author_email = 'mmeisinger@ucsd.edu',
keywords = ['ooici','ioncore', 'pyon', 'coi'],
packages = find_packages(),
dependency_links = [
'http://sddevrepo.oceanobservatories.org/releases/',
'https://github.com/ooici/pyon/tarball/master#egg=pyon',
#'https://github.com/ooici/utilities/tarball/v2012.12.12#egg=utilities-2012.12.12',
],
test_suite = 'pyon',
entry_points = {
'console_scripts' : [
'package_driver=ion.idk.scripts.package_driver:run',
'start_driver=ion.idk.scripts.start_driver:run',
'test_driver=ion.idk.scripts.test_driver:run',
],
},
install_requires = [
'gitpy==0.6.0',
'snakefood==1.4',
'ntplib>=0.1.9',
'apscheduler==2.1.0',
#'utilities',
],
)
| #!/usr/bin/env python
try:
from setuptools import setup, find_packages
except ImportError:
from distutils.core import setup
import os
import sys
# Add /usr/local/include to the path for macs, fixes easy_install for several packages (like gevent and pyyaml)
if sys.platform == 'darwin':
os.environ['C_INCLUDE_PATH'] = '/usr/local/include'
version = '0.2.1'
setup( name = 'marine-integrations',
version = version,
description = 'OOI ION Marine Integrations',
url = 'https://github.com/ooici/marine-integrations',
download_url = 'http://sddevrepo.oceanobservatories.org/releases/',
license = 'Apache 2.0',
author = 'Michael Meisinger',
author_email = 'mmeisinger@ucsd.edu',
keywords = ['ooici','ioncore', 'pyon', 'coi'],
packages = find_packages(),
dependency_links = [
'http://sddevrepo.oceanobservatories.org/releases/',
'https://github.com/ooici/pyon/tarball/master#egg=pyon',
'https://github.com/ooici/utilities/tarball/v2012.12.12#egg=utilities-2012.12.12',
],
test_suite = 'pyon',
entry_points = {
'console_scripts' : [
'package_driver=ion.idk.scripts.package_driver:run',
'start_driver=ion.idk.scripts.start_driver:run',
'test_driver=ion.idk.scripts.test_driver:run',
],
},
install_requires = [
'gitpy==0.6.0',
'snakefood==1.4',
'ntplib>=0.1.9',
'apscheduler==2.1.0',
'utilities',
],
)
| bsd-2-clause | Python |
b0cf1b470ae724f02f6619ff4898d83567b9339a | Add python_requires | spatialaudio/jackclient-python | setup.py | setup.py | from setuptools import setup
__version__ = 'unknown'
# "import" __version__
for line in open('src/jack.py'):
if line.startswith('__version__'):
exec(line)
break
setup(
name='JACK-Client',
version=__version__,
package_dir={'': 'src'},
py_modules=['jack'],
setup_requires=['CFFI>=1.0'],
install_requires=['CFFI>=1.0'],
python_requires='>=2.6',
extras_require={'NumPy': ['NumPy']},
cffi_modules=['jack_build.py:ffibuilder'],
author='Matthias Geier',
author_email='Matthias.Geier@gmail.com',
description='JACK Audio Connection Kit (JACK) Client for Python',
long_description=open('README.rst').read(),
license='MIT',
keywords='JACK audio low-latency multi-channel'.split(),
url='http://jackclient-python.readthedocs.io/',
platforms='any',
classifiers=[
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Topic :: Multimedia :: Sound/Audio',
],
zip_safe=True,
)
| from setuptools import setup
__version__ = 'unknown'
# "import" __version__
for line in open('src/jack.py'):
if line.startswith('__version__'):
exec(line)
break
setup(
name='JACK-Client',
version=__version__,
package_dir={'': 'src'},
py_modules=['jack'],
setup_requires=['CFFI>=1.0'],
install_requires=['CFFI>=1.0'],
extras_require={'NumPy': ['NumPy']},
cffi_modules=['jack_build.py:ffibuilder'],
author='Matthias Geier',
author_email='Matthias.Geier@gmail.com',
description='JACK Audio Connection Kit (JACK) Client for Python',
long_description=open('README.rst').read(),
license='MIT',
keywords='JACK audio low-latency multi-channel'.split(),
url='http://jackclient-python.readthedocs.io/',
platforms='any',
classifiers=[
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Topic :: Multimedia :: Sound/Audio',
],
zip_safe=True,
)
| mit | Python |
283f573dcedcab267290eb740ba241750c14258d | update command line in setup | karec/oct,TheGhouls/oct,TheGhouls/oct,TheGhouls/oct,karec/oct | setup.py | setup.py | __author__ = 'manu'
import os
from setuptools import setup
from oct import __version__
BASE_DIR = os.path.abspath(os.path.dirname(__file__))
with open('README.rst') as f:
long_description = f.read()
setup(
name='oct',
version=__version__,
author='Emmanuel Valette',
author_email='manu.valette@gmail.com',
packages=['oct', 'oct.core', 'oct.multimechanize', 'oct.testing',
'oct.multimechanize.utilities', 'oct.utilities', 'oct.tools', 'oct.results'],
package_data={'oct.utilities': ['templates/css/*']},
description="A library based on multi-mechanize for performances testing, using custom browser for writing tests",
long_description=long_description,
url='https://github.com/karec/oct',
download_url='https://github.com/karec/oct/archive/master.zip',
keywords=['testing', 'multi-mechanize', 'perfs', 'webscrapper', 'browser', 'web', 'performances', 'lxml'],
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.4'
],
install_requires=[
'argparse',
'requests',
'lxml',
'celery',
'cssselect',
'pygal',
'cairosvg',
'tinycss',
'octbrowser'
],
entry_points={'console_scripts': [
'multimech-run = oct.multimechanize.utilities.run:main',
'multimech-newproject = oct.multimechanize.utilities.newproject:main',
'multimech-gridgui = oct.multimechanize.utilities.gridgui:main',
'oct-run = oct.utilities.run:main',
'oct-newproject = oct.utilities.newproject:main',
'octtools-sitemap-to-csv = oct.tools.xmltocsv:sitemap_to_csv',
'octtools-user-generator = oct.tools.email_generator:email_generator',
'oct-tocsv = oct.tools.results_to_csv:main'
]},
)
| __author__ = 'manu'
import os
from setuptools import setup
from oct import __version__
BASE_DIR = os.path.abspath(os.path.dirname(__file__))
with open('README.rst') as f:
long_description = f.read()
setup(
name='oct',
version=__version__,
author='Emmanuel Valette',
author_email='manu.valette@gmail.com',
packages=['oct', 'oct.core', 'oct.multimechanize', 'oct.testing',
'oct.multimechanize.utilities', 'oct.utilities', 'oct.tools', 'oct.results'],
package_data={'oct.utilities': ['templates/css/*']},
description="A library based on multi-mechanize for performances testing, using custom browser for writing tests",
long_description=long_description,
url='https://github.com/karec/oct',
download_url='https://github.com/karec/oct/archive/master.zip',
keywords=['testing', 'multi-mechanize', 'perfs', 'webscrapper', 'browser', 'web', 'performances', 'lxml'],
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.4'
],
install_requires=[
'argparse',
'requests',
'lxml',
'celery',
'cssselect',
'pygal',
'cairosvg',
'tinycss',
'octbrowser'
],
entry_points={'console_scripts': [
'multimech-run = oct.multimechanize.utilities.run:main',
'multimech-newproject = oct.multimechanize.utilities.newproject:main',
'multimech-gridgui = oct.multimechanize.utilities.gridgui:main',
'oct-run = oct.utilities.run:main',
'oct-newproject = oct.utilities.newproject:main',
'octtools-sitemap-to-csv = oct.tools.xmltocsv:sitemap_to_csv',
'octtools-user-generator = oct.tools.email_generator:email_generator',
'oct-tocsv = oct.tools.results_to_csv:results_to_csv'
]},
)
| mit | Python |
ad1a8d13a0ef13b2a53d0da7a929c4a7a244d2d1 | Update versions for mega-release. | googleapis/python-storage,googleapis/python-storage | setup.py | setup.py | # Copyright 2016 Google 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 setuptools import find_packages
from setuptools import setup
PACKAGE_ROOT = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(PACKAGE_ROOT, 'README.rst')) as file_obj:
README = file_obj.read()
# NOTE: This is duplicated throughout and we should try to
# consolidate.
SETUP_BASE = {
'author': 'Google Cloud Platform',
'author_email': 'jjg+google-cloud-python@google.com',
'scripts': [],
'url': 'https://github.com/GoogleCloudPlatform/google-cloud-python',
'license': 'Apache 2.0',
'platforms': 'Posix; MacOS X; Windows',
'include_package_data': True,
'zip_safe': False,
'classifiers': [
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Topic :: Internet',
],
}
REQUIREMENTS = [
'google-cloud-core >= 0.22.1, < 0.23dev',
]
setup(
name='google-cloud-storage',
version='0.22.0',
description='Python Client for Google Cloud Storage',
long_description=README,
namespace_packages=[
'google',
'google.cloud',
],
packages=find_packages(),
install_requires=REQUIREMENTS,
**SETUP_BASE
)
| # Copyright 2016 Google 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 setuptools import find_packages
from setuptools import setup
PACKAGE_ROOT = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(PACKAGE_ROOT, 'README.rst')) as file_obj:
README = file_obj.read()
# NOTE: This is duplicated throughout and we should try to
# consolidate.
SETUP_BASE = {
'author': 'Google Cloud Platform',
'author_email': 'jjg+google-cloud-python@google.com',
'scripts': [],
'url': 'https://github.com/GoogleCloudPlatform/google-cloud-python',
'license': 'Apache 2.0',
'platforms': 'Posix; MacOS X; Windows',
'include_package_data': True,
'zip_safe': False,
'classifiers': [
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Topic :: Internet',
],
}
REQUIREMENTS = [
'google-cloud-core >= 0.21.0, < 0.22dev',
]
setup(
name='google-cloud-storage',
version='0.21.0',
description='Python Client for Google Cloud Storage',
long_description=README,
namespace_packages=[
'google',
'google.cloud',
],
packages=find_packages(),
install_requires=REQUIREMENTS,
**SETUP_BASE
)
| apache-2.0 | Python |
c54467577ff6d324db19138b80234a4b99a3956f | Add optional dependency on html5-parser | python-mechanize/mechanize,python-mechanize/mechanize | setup.py | setup.py | #!/usr/bin/env python
"""Stateful programmatic web browsing.
Stateful programmatic web browsing, after Andy Lester's Perl module
WWW::Mechanize.
mechanize.Browser implements the urllib2.OpenerDirector interface. Browser
objects have state, including navigation history, HTML form state, cookies,
etc. The set of features and URL schemes handled by Browser objects is
configurable. The library also provides an API that is mostly compatible with
urllib2: your urllib2 program will likely still work if you replace "urllib2"
with "mechanize" everywhere.
Features include: ftp:, http: and file: URL schemes, browser history, hyperlink
and HTML form support, HTTP cookies, HTTP-EQUIV and Refresh, Referer [sic]
header, robots.txt, redirections, proxies, and Basic and Digest HTTP
authentication.
Much of the code originally derived from Perl code by Gisle Aas (libwww-perl),
Johnny Lee (MSIE Cookie support) and last but not least Andy Lester
(WWW::Mechanize). urllib2 was written by Jeremy Hylton.
"""
import os
import setuptools
import sys
if sys.version_info < (2, 7):
raise SystemExit('mechanize requires python >= 2.7')
if sys.version_info.major > 2:
raise SystemExit('mechanize only works on python 2.x')
VERSION = open(os.path.join("mechanize", "_version.py")).\
readlines()[0].strip(' "\n')
CLASSIFIERS = """\
Development Status :: 5 - Production/Stable
Intended Audience :: Developers
Intended Audience :: System Administrators
License :: OSI Approved :: BSD License
Natural Language :: English
Operating System :: OS Independent
Programming Language :: Python
Programming Language :: Python :: 2
Programming Language :: Python :: 2.7
Programming Language :: Python :: 2 :: Only
Topic :: Internet
Topic :: Internet :: File Transfer Protocol (FTP)
Topic :: Internet :: WWW/HTTP
Topic :: Internet :: WWW/HTTP :: Browsers
Topic :: Internet :: WWW/HTTP :: Indexing/Search
Topic :: Internet :: WWW/HTTP :: Site Management
Topic :: Internet :: WWW/HTTP :: Site Management :: Link Checking
Topic :: Software Development :: Libraries
Topic :: Software Development :: Libraries :: Python Modules
Topic :: Software Development :: Testing
Topic :: Software Development :: Testing :: Traffic Generation
Topic :: System :: Archiving :: Mirroring
Topic :: System :: Networking :: Monitoring
Topic :: System :: Systems Administration
Topic :: Text Processing
Topic :: Text Processing :: Markup
Topic :: Text Processing :: Markup :: HTML
Topic :: Text Processing :: Markup :: XML
"""
def main():
setuptools.setup(
name="mechanize",
version=VERSION,
license="BSD",
platforms=["any"],
install_requires=['html5lib>=0.999999999'],
extras_require={'fast': ['html5-parser>=0.4.4']},
classifiers=[c for c in CLASSIFIERS.split("\n") if c],
zip_safe=True,
author="Kovid Goyal",
author_email='no@no.no',
description=__doc__.split("\n", 1)[0],
long_description=__doc__.split("\n", 2)[-1],
url="https://github.com/python-mechanize/mechanize",
download_url=("https://pypi.python.org/packages/source/m/mechanize/"
"mechanize-%s.tar.gz" % VERSION),
packages=["mechanize"],
)
if __name__ == "__main__":
main()
| #!/usr/bin/env python
"""Stateful programmatic web browsing.
Stateful programmatic web browsing, after Andy Lester's Perl module
WWW::Mechanize.
mechanize.Browser implements the urllib2.OpenerDirector interface. Browser
objects have state, including navigation history, HTML form state, cookies,
etc. The set of features and URL schemes handled by Browser objects is
configurable. The library also provides an API that is mostly compatible with
urllib2: your urllib2 program will likely still work if you replace "urllib2"
with "mechanize" everywhere.
Features include: ftp:, http: and file: URL schemes, browser history, hyperlink
and HTML form support, HTTP cookies, HTTP-EQUIV and Refresh, Referer [sic]
header, robots.txt, redirections, proxies, and Basic and Digest HTTP
authentication.
Much of the code originally derived from Perl code by Gisle Aas (libwww-perl),
Johnny Lee (MSIE Cookie support) and last but not least Andy Lester
(WWW::Mechanize). urllib2 was written by Jeremy Hylton.
"""
import os
import setuptools
import sys
if sys.version_info < (2, 7):
raise SystemExit('mechanize requires python >= 2.7')
if sys.version_info.major > 2:
raise SystemExit('mechanize only works on python 2.x')
VERSION = open(os.path.join("mechanize", "_version.py")).\
readlines()[0].strip(' "\n')
CLASSIFIERS = """\
Development Status :: 5 - Production/Stable
Intended Audience :: Developers
Intended Audience :: System Administrators
License :: OSI Approved :: BSD License
Natural Language :: English
Operating System :: OS Independent
Programming Language :: Python
Programming Language :: Python :: 2
Programming Language :: Python :: 2.7
Programming Language :: Python :: 2 :: Only
Topic :: Internet
Topic :: Internet :: File Transfer Protocol (FTP)
Topic :: Internet :: WWW/HTTP
Topic :: Internet :: WWW/HTTP :: Browsers
Topic :: Internet :: WWW/HTTP :: Indexing/Search
Topic :: Internet :: WWW/HTTP :: Site Management
Topic :: Internet :: WWW/HTTP :: Site Management :: Link Checking
Topic :: Software Development :: Libraries
Topic :: Software Development :: Libraries :: Python Modules
Topic :: Software Development :: Testing
Topic :: Software Development :: Testing :: Traffic Generation
Topic :: System :: Archiving :: Mirroring
Topic :: System :: Networking :: Monitoring
Topic :: System :: Systems Administration
Topic :: Text Processing
Topic :: Text Processing :: Markup
Topic :: Text Processing :: Markup :: HTML
Topic :: Text Processing :: Markup :: XML
"""
def main():
setuptools.setup(
name="mechanize",
version=VERSION,
license="BSD",
platforms=["any"],
install_requires=['html5lib>=0.999999999'],
classifiers=[c for c in CLASSIFIERS.split("\n") if c],
zip_safe=True,
author="Kovid Goyal",
author_email='no@no.no',
description=__doc__.split("\n", 1)[0],
long_description=__doc__.split("\n", 2)[-1],
url="https://github.com/python-mechanize/mechanize",
download_url=("https://pypi.python.org/packages/source/m/mechanize/"
"mechanize-%s.tar.gz" % VERSION),
packages=["mechanize"],
)
if __name__ == "__main__":
main()
| bsd-3-clause | Python |
ad2e4b07c8ab14464b663e0cd4015fb702e0ae39 | bump to 0.0.2 to test cipublish script | nhanb/fundoshi | setup.py | setup.py | import os
from setuptools import setup, find_packages
def read(*paths):
"""Build a file path from *paths* and return the contents."""
with open(os.path.join(*paths), 'r') as f:
return f.read()
setup(
name='fundoshi',
version='0.0.2',
description='Get manga series & chapter data from various reader sites.',
long_description=read('README.rst'),
url='http://github.com/nhanb/fundoshi',
license='MIT',
author='Bùi Thành Nhân',
author_email='nhan@nerdyweekly.com',
packages=find_packages(exclude=['tests*']),
install_requires=['beautifulsoup4', 'requests'],
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Intended Audience :: Developers',
'Natural Language :: English',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Topic :: Software Development :: Libraries :: Python Modules',
],
)
| import os
from setuptools import setup, find_packages
def read(*paths):
"""Build a file path from *paths* and return the contents."""
with open(os.path.join(*paths), 'r') as f:
return f.read()
setup(
name='fundoshi',
version='0.0.1',
description='Get manga series & chapter data from various reader sites.',
long_description=read('README.rst'),
url='http://github.com/nhanb/fundoshi',
license='MIT',
author='Bùi Thành Nhân',
author_email='nhan@nerdyweekly.com',
packages=find_packages(exclude=['tests*']),
install_requires=['beautifulsoup4', 'requests'],
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Intended Audience :: Developers',
'Natural Language :: English',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Topic :: Software Development :: Libraries :: Python Modules',
],
)
| mit | Python |
b506cad9aa9cd325cbc6bf2b0ddf418901a89ad1 | bump version to 1.9.8 | rjeschmi/vsc-base,rjeschmi/vsc-base | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: latin-1 -*-
#
# Copyright 2009-2014 Ghent University
#
# This file is part of vsc-base,
# originally created by the HPC team of Ghent University (http://ugent.be/hpc/en),
# with support of Ghent University (http://ugent.be/hpc),
# the Flemish Supercomputer Centre (VSC) (https://vscentrum.be/nl/en),
# the Hercules foundation (http://www.herculesstichting.be/in_English)
# and the Department of Economy, Science and Innovation (EWI) (http://www.ewi-vlaanderen.be/en).
#
# http://github.com/hpcugent/vsc-base
#
# vsc-base is free software: you can redistribute it and/or modify
# it under the terms of the GNU Library General Public License as
# published by the Free Software Foundation, either version 2 of
# the License, or (at your option) any later version.
#
# vsc-base 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 Library General Public License for more details.
#
# You should have received a copy of the GNU Library General Public License
# along with vsc-base. If not, see <http://www.gnu.org/licenses/>.
#
"""
vsc-base base distribution setup.py
@author: Stijn De Weirdt (Ghent University)
@author: Andy Georges (Ghent University)
"""
import os
import sys
sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)), "lib"))
import vsc.install.shared_setup as shared_setup
from vsc.install.shared_setup import ag, jt, sdw
def remove_bdist_rpm_source_file():
"""List of files to remove from the (source) RPM."""
return []
shared_setup.remove_extra_bdist_rpm_files = remove_bdist_rpm_source_file
shared_setup.SHARED_TARGET.update({
'url': 'https://github.com/hpcugent/vsc-base',
'download_url': 'https://github.com/hpcugent/vsc-base'
})
PACKAGE = {
'name': 'vsc-base',
'version': '1.9.8',
'author': [sdw, jt, ag],
'maintainer': [sdw, jt, ag],
'packages': ['vsc', 'vsc.utils', 'vsc.install'],
'scripts': ['bin/logdaemon.py', 'bin/startlogdaemon.sh', 'bin/bdist_rpm.sh', 'bin/optcomplete.bash'],
'install_requires' : ['setuptools'],
}
if __name__ == '__main__':
shared_setup.action_target(PACKAGE)
| #!/usr/bin/env python
# -*- coding: latin-1 -*-
#
# Copyright 2009-2014 Ghent University
#
# This file is part of vsc-base,
# originally created by the HPC team of Ghent University (http://ugent.be/hpc/en),
# with support of Ghent University (http://ugent.be/hpc),
# the Flemish Supercomputer Centre (VSC) (https://vscentrum.be/nl/en),
# the Hercules foundation (http://www.herculesstichting.be/in_English)
# and the Department of Economy, Science and Innovation (EWI) (http://www.ewi-vlaanderen.be/en).
#
# http://github.com/hpcugent/vsc-base
#
# vsc-base is free software: you can redistribute it and/or modify
# it under the terms of the GNU Library General Public License as
# published by the Free Software Foundation, either version 2 of
# the License, or (at your option) any later version.
#
# vsc-base 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 Library General Public License for more details.
#
# You should have received a copy of the GNU Library General Public License
# along with vsc-base. If not, see <http://www.gnu.org/licenses/>.
#
"""
vsc-base base distribution setup.py
@author: Stijn De Weirdt (Ghent University)
@author: Andy Georges (Ghent University)
"""
import os
import sys
sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)), "lib"))
import vsc.install.shared_setup as shared_setup
from vsc.install.shared_setup import ag, jt, sdw
def remove_bdist_rpm_source_file():
"""List of files to remove from the (source) RPM."""
return []
shared_setup.remove_extra_bdist_rpm_files = remove_bdist_rpm_source_file
shared_setup.SHARED_TARGET.update({
'url': 'https://github.com/hpcugent/vsc-base',
'download_url': 'https://github.com/hpcugent/vsc-base'
})
PACKAGE = {
'name': 'vsc-base',
'version': '1.9.7',
'author': [sdw, jt, ag],
'maintainer': [sdw, jt, ag],
'packages': ['vsc', 'vsc.utils', 'vsc.install'],
'scripts': ['bin/logdaemon.py', 'bin/startlogdaemon.sh', 'bin/bdist_rpm.sh', 'bin/optcomplete.bash'],
'install_requires' : ['setuptools'],
}
if __name__ == '__main__':
shared_setup.action_target(PACKAGE)
| lgpl-2.1 | Python |
f21f190ccadccb5eb312ccd28e9e41dff106f905 | bump version 0.3.6 | williballenthin/viv-utils | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import setuptools
requirements = [
"funcy",
"argparse",
"pefile",
"ipython",
"vivisect",
"intervaltree",
]
setuptools.setup(
name='viv_utils',
version='0.3.6',
description="Utilities for binary analysis using vivisect.",
long_description="Utilities for binary analysis using vivisect.",
author="Willi Ballenthin",
author_email='william.ballenthin@mandiant.com',
url='https://github.mandiant.com/wballenthin/viv-utils',
packages=setuptools.find_packages(),
package_dir={'viv_utils':'viv_utils'},
package_data={'viv_utils': ['data/*.py']},
entry_points={
"console_scripts": [
"trace_function_emulation=viv_utils.scripts.trace_function_emulation:main",
"get_function_args=viv_utils.scripts.get_function_args:main"
]
},
include_package_data=True,
install_requires=requirements,
zip_safe=False,
keywords='viv_utils',
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Intended Audience :: Developers',
'Natural Language :: English',
"Programming Language :: Python :: 2",
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
],
)
| #!/usr/bin/env python
# -*- coding: utf-8 -*-
import setuptools
requirements = [
"funcy",
"argparse",
"pefile",
"ipython",
"vivisect",
"intervaltree",
]
setuptools.setup(
name='viv_utils',
version='0.3.5',
description="Utilities for binary analysis using vivisect.",
long_description="Utilities for binary analysis using vivisect.",
author="Willi Ballenthin",
author_email='william.ballenthin@mandiant.com',
url='https://github.mandiant.com/wballenthin/viv-utils',
packages=setuptools.find_packages(),
package_dir={'viv_utils':'viv_utils'},
package_data={'viv_utils': ['data/*.py']},
entry_points={
"console_scripts": [
"trace_function_emulation=viv_utils.scripts.trace_function_emulation:main",
"get_function_args=viv_utils.scripts.get_function_args:main"
]
},
include_package_data=True,
install_requires=requirements,
zip_safe=False,
keywords='viv_utils',
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Intended Audience :: Developers',
'Natural Language :: English',
"Programming Language :: Python :: 2",
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
],
)
| apache-2.0 | Python |
5238cf3b52cafa6b6ab40bc32cef0f8082e58182 | Fix email address in setup | orokusaki/pycard | setup.py | setup.py | from setuptools import setup, find_packages
# Calculate the version based on pycard.VERSION
version = '.'.join([str(v) for v in __import__('pycard').VERSION])
setup(
name='captain-pycard',
description='A simple library for payment card validation',
version=version,
author='Michael Angeletti',
author_email='michael@angelettigroup.com',
url='https://github.com/orokusaki/pycard/',
classifiers=[
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Development Status :: 4 - Beta',
'Topic :: Utilities'
],
packages=find_packages(),
)
| from setuptools import setup, find_packages
# Calculate the version based on pycard.VERSION
version = '.'.join([str(v) for v in __import__('pycard').VERSION])
setup(
name='captain-pycard',
description='A simple library for payment card validation',
version=version,
author='Michael Angeletti',
author_email='michael [at] angelettigroup [dot] com',
url='https://github.com/orokusaki/pycard/',
classifiers=[
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Development Status :: 4 - Beta',
'Topic :: Utilities'
],
packages=find_packages(),
)
| mit | Python |
2e5e653588c40e0817e7fdf5f02edec2c22e33f8 | Remove setuptools | codingsmartschool/PyMaIn | setup.py | setup.py | #!/usr/bin/python
import os
def plus(os):
os.system("plus.py")
def minus(os):
os.system("minus.py")
def divide(os):
os.system("divide.py")
def multi(os):
os.system("multi.py")
def modulos(os):
os.system("modulos.py") | #!/usr/bin/python
from setup
import os
import setuptools
def plus(os):
os.system("plus.py")
def minus(os):
os.system("minus.py")
def divide(os):
os.system("divide.py")
def multi(os):
os.system("multi.py")
def modulos(os):
os.system("modulos.py") | mit | Python |
5ba554af56858bb5e2427c3fca4da1d5eff986ba | Bump version to 0.6.1 | kbussell/django-auditlog | setup.py | setup.py | from distutils.core import setup
setup(
name='django-auditlog',
version='0.6.1',
packages=['auditlog', 'auditlog.migrations', 'auditlog.management', 'auditlog.management.commands'],
package_dir={'': 'src'},
url='https://github.com/MacmillanPlatform/django-auditlog/',
license='MIT',
author='Jan-Jelle Kester',
maintainer='Alieh Rymašeŭski',
description='Audit log app for Django',
install_requires=[
'django-jsonfield>=1.0.0',
'python-dateutil==2.6.0',
],
zip_safe=False,
classifiers=[
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'License :: OSI Approved :: MIT License',
],
)
| from distutils.core import setup
setup(
name='django-auditlog',
version='0.6.0',
packages=['auditlog', 'auditlog.migrations', 'auditlog.management', 'auditlog.management.commands'],
package_dir={'': 'src'},
url='https://github.com/MacmillanPlatform/django-auditlog/',
license='MIT',
author='Jan-Jelle Kester',
maintainer='Alieh Rymašeŭski',
description='Audit log app for Django',
install_requires=[
'django-jsonfield>=1.0.0',
'python-dateutil==2.6.0',
],
zip_safe=False,
classifiers=[
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'License :: OSI Approved :: MIT License',
],
)
| mit | Python |
691c0c2babe2e954cde9f0a59f4945fabc8e4443 | fix long description. | mocobeta/janome,mocobeta/janome,nakagami/janome,nakagami/janome | setup.py | setup.py | from setuptools import setup
import os
from zipfile import ZipFile
from janome.dic import *
dicdir = 'ipadic'
if not os.path.exists('sysdic') and os.path.exists(os.path.join('ipadic', 'sysdic.zip')):
print('Unzip dictionary data...')
with ZipFile(os.path.join(dicdir, 'sysdic.zip')) as zf:
zf.extractall()
version = '0.2.1'
name = 'janome'
short_description = '`janome` is a package for Japanese Morphological Analysis.'
long_description = """\
`janome` is a package for Japanese Morphological Analysis.
Requirements
------------
* Python 2.7 and Python 3.4+
Features and history
--------------------
See http://mocobeta.github.io/janome/ (for Japanese)
"""
classifiers = [
"Development Status :: 3 - Alpha",
"License :: OSI Approved :: Apache License 2.0",
"Programming Language :: Python",
"Topic :: Natural Language :: Japanese",
]
setup(
name='Janome',
version='0.2.1',
description='Japanese morphological analysis engine.',
author='Tomoko Uchida',
author_email='tomoko.uchida.1111@gmail.com',
url='http://mocobeta.github.io/janome/',
packages=['janome','sysdic'],
package_data={'sysdic': ['fst.data', 'connections.data']},
py_modules=['janome.dic','janome.fst','janome.lattice','janome.tokenizer']
)
| from setuptools import setup
import os
from zipfile import ZipFile
from janome.dic import *
dicdir = 'ipadic'
if not os.path.exists('sysdic') and os.path.exists(os.path.join('ipadic', 'sysdic.zip')):
print('Unzip dictionary data...')
with ZipFile(os.path.join(dicdir, 'sysdic.zip')) as zf:
zf.extractall()
version = '0.2.1'
name = 'janome'
short_description = '`janome` is a package for Japanese Morphological Analysis.'
classifiers = [
"Development Status :: 3 - Alpha",
"License :: OSI Approved :: Apache License 2.0",
"Programming Language :: Python",
"Topic :: Natural Language :: Japanese",
]
setup(
name='Janome',
version='0.2.1',
description='Japanese morphological analysis engine.',
author='Tomoko Uchida',
author_email='tomoko.uchida.1111@gmail.com',
url='http://mocobeta.github.io/janome/',
packages=['janome','sysdic'],
package_data={'sysdic': ['fst.data', 'connections.data']},
py_modules=['janome.dic','janome.fst','janome.lattice','janome.tokenizer']
)
| apache-2.0 | Python |
3ea6596db839331e63e5cbc89a1c20750d350c2c | make "python setup.py test" work | red-hat-storage/rhcephpkg,red-hat-storage/rhcephpkg | setup.py | setup.py | import os
import re
import sys
from setuptools.command.test import test as TestCommand
readme = os.path.join(os.path.dirname(__file__), 'README.rst')
LONG_DESCRIPTION = open(readme).read()
module_file = open("rhcephpkg/__init__.py").read()
metadata = dict(re.findall("__([a-z]+)__\s*=\s*'([^']+)'", module_file))
class PyTest(TestCommand):
user_options = [('pytest-args=', 'a', "Arguments to pass to py.test")]
def initialize_options(self):
TestCommand.initialize_options(self)
self.pytest_args = ''
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
#import here, cause outside the eggs aren't loaded
import pytest
errno = pytest.main('rhcephpkg/tests ' + self.pytest_args)
sys.exit(errno)
from setuptools import setup
setup(
name = 'rhcephpkg',
description = 'Packaging tool for Red Hat Ceph Storage product',
packages = ['rhcephpkg'],
author = 'Ken Dreyer',
author_email = 'kdreyer [at] redhat.com',
url = 'https://github.com/red-hat-storage/rhcephpkg',
version = metadata['version'],
license = 'MIT',
zip_safe = False,
keywords = 'packaging, build, rpkg',
long_description = LONG_DESCRIPTION,
scripts = ['bin/rhcephpkg'],
install_requires = [
'python-jenkins',
'six',
'tambo>=0.1.0',
],
tests_require = [
'pytest',
'httpretty',
],
cmdclass = {'test': PyTest},
)
| import os
import re
readme = os.path.join(os.path.dirname(__file__), 'README.rst')
LONG_DESCRIPTION = open(readme).read()
module_file = open("rhcephpkg/__init__.py").read()
metadata = dict(re.findall("__([a-z]+)__\s*=\s*'([^']+)'", module_file))
from setuptools import setup
setup(
name = 'rhcephpkg',
description = 'Packaging tool for Red Hat Ceph Storage product',
packages = ['rhcephpkg'],
author = 'Ken Dreyer',
author_email = 'kdreyer [at] redhat.com',
url = 'https://github.com/red-hat-storage/rhcephpkg',
version = metadata['version'],
license = 'MIT',
zip_safe = False,
keywords = 'packaging, build, rpkg',
long_description = LONG_DESCRIPTION,
scripts = ['bin/rhcephpkg'],
install_requires = [
'python-jenkins',
'six',
'tambo>=0.1.0',
],
tests_require = [
'pytest',
'httpretty',
]
)
| mit | Python |
4df366170968e498101df41e4f71f32c3a3b0d7f | fix setup to include subpackage | dschep/django-xor-formfields,dschep/django-xor-formfields | setup.py | setup.py | from setuptools import setup, find_packages
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
# Get the long description from the relevant file
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='django-xor-formfields',
version='0.0.1',
description='Mutually Exclusive form field wigets for Django',
long_description=long_description,
url='https://github.com/dschep/django-mutuallyexclusive-formfields',
author='Daniel Schep',
author_email='dschep@gmail.com',
license='MIT',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2',
#'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
#'Programming Language :: Python :: 3',
#'Programming Language :: Python :: 3.2',
#'Programming Language :: Python :: 3.3',
#'Programming Language :: Python :: 3.4',
],
keywords='django development forms',
packages=['xorformfields', 'xorformfields.forms'],
install_requires=['django', 'requests'],
# If there are data files included in your packages that need to be
# installed, specify them here. If using Python 2.6 or less, then these
# have to be included in MANIFEST.in as well.
package_data={
#'sample': ['package_data.dat'],
},
)
| from setuptools import setup, find_packages
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
# Get the long description from the relevant file
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='django-xor-formfields',
version='0.0.1',
description='Mutually Exclusive form field wigets for Django',
long_description=long_description,
url='https://github.com/dschep/django-mutuallyexclusive-formfields',
author='Daniel Schep',
author_email='dschep@gmail.com',
license='MIT',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2',
#'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
#'Programming Language :: Python :: 3',
#'Programming Language :: Python :: 3.2',
#'Programming Language :: Python :: 3.3',
#'Programming Language :: Python :: 3.4',
],
keywords='django development forms',
packages=['xorformfields'],
install_requires=['django', 'requests'],
# If there are data files included in your packages that need to be
# installed, specify them here. If using Python 2.6 or less, then these
# have to be included in MANIFEST.in as well.
package_data={
#'sample': ['package_data.dat'],
},
)
| mit | Python |
7ba330e714a768136260cd1191fe0379e7a75318 | set `description`; add trove classifiers | lookup/lu-dj-utils,lookup/lu-dj-utils | setup.py | setup.py | #!/usr/bin/env python
from __future__ import absolute_import, print_function, unicode_literals
from setuptools import find_packages, setup
import lu_dj_utils
with open('README.rst') as f:
readme = f.read()
packages = find_packages()
classifiers = (
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Intended Audience :: Developers',
# the FSF refers to it as "Modified BSD License". Other names include
# "New BSD", "revised BSD", "BSD-3", or "3-clause BSD"
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Framework :: Django',
)
setup(
name="lu-dj-utils",
version=lu_dj_utils.__version__,
description="LookUP.cl's open source utilities for use in Django projects",
long_description=readme,
author='German Larrain',
author_email='glarrain@users.noreply.github.com',
url='https://github.com/lookup/lu-dj-utils',
packages=packages,
license='3-clause BSD', # TODO: verify name is correct
zip_safe=False,
classifiers=classifiers,
)
| #!/usr/bin/env python
from __future__ import absolute_import, print_function, unicode_literals
from setuptools import find_packages, setup
import lu_dj_utils
with open('README.rst') as f:
readme = f.read()
packages = find_packages()
classifiers = (
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
# the FSF refers to it as "Modified BSD License". Other names include
# "New BSD", "revised BSD", "BSD-3", or "3-clause BSD"
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
)
setup(
name="lu-dj-utils",
version=lu_dj_utils.__version__,
description='',
long_description=readme,
author='German Larrain',
author_email='glarrain@users.noreply.github.com',
url='https://github.com/lookup/lu-dj-utils',
packages=packages,
license='3-clause BSD', # TODO: verify name is correct
zip_safe=False,
classifiers=classifiers,
)
| bsd-3-clause | Python |
32a6e9b55147874d5dfd560126c92d774bf14bf6 | Update setup.py to develop version | theherk/figgypy | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup, find_packages
import sys
try:
import pypandoc
readme = pypandoc.convert('README.md', 'rst')
except(IOError, ImportError):
with open('README.md') as f:
readme = f.read()
install_requires = [
'boto3',
'future',
'gnupg>=2.0.2',
'seria',
'python-gnupg',
'pyyaml'
]
setup(
name='figgypy',
version='1.2.dev',
description='Simple configuration tool. Get config from yaml, json, or xml.',
long_description=readme,
author='Herkermer Sherwood',
author_email='theherk@gmail.com',
url='https://github.com/theherk/figgypy',
download_url='https://github.com/theherk/figgypy/archive/1.2.dev.zip',
packages=find_packages(),
platforms=['all'],
license='MIT',
install_requires=install_requires,
setup_requires=['pytest-runner',],
tests_require=['pytest'],
classifiers=[
'Development Status :: 4 - Beta',
'License :: Other/Proprietary License',
'License :: OSI Approved :: MIT License',
'Environment :: Console',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Unix',
'Operating System :: POSIX',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Topic :: Utilities',
],
)
| #!/usr/bin/env python
from setuptools import setup, find_packages
import sys
try:
import pypandoc
readme = pypandoc.convert('README.md', 'rst')
except(IOError, ImportError):
with open('README.md') as f:
readme = f.read()
install_requires = [
'boto3',
'future',
'gnupg>=2.0.2',
'seria',
'python-gnupg',
'pyyaml'
]
setup(
name='figgypy',
version='1.1.4',
description='Simple configuration tool. Get config from yaml, json, or xml.',
long_description=readme,
author='Herkermer Sherwood',
author_email='theherk@gmail.com',
url='https://github.com/theherk/figgypy',
download_url='https://github.com/theherk/figgypy/archive/1.1.4.zip',
packages=find_packages(),
platforms=['all'],
license='MIT',
install_requires=install_requires,
setup_requires=['pytest-runner',],
tests_require=['pytest'],
classifiers=[
'Development Status :: 4 - Beta',
'License :: Other/Proprietary License',
'License :: OSI Approved :: MIT License',
'Environment :: Console',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Unix',
'Operating System :: POSIX',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Topic :: Utilities',
],
)
| mit | Python |
6c89e9a2eb6c429f9faf8f8fdbb7360239b15a61 | Remove namespace_packages argument which works with declare_namespace. | OpenCMISS-Bindings/opencmiss.utils | setup.py | setup.py | from setuptools import setup, find_packages
import io
# List all of your Python package dependencies in the
# requirements.txt file
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)[3:] # skip title
requires = readfile("requirements.txt", split=True)
software_licence = readfile("LICENSE")
setup(
name='opencmiss.utils',
version='0.1.1',
description='OpenCMISS Utilities for Python.',
long_description='\n'.join(readme) + software_licence,
classifiers=[],
author='Hugh Sorby',
author_email='',
url='',
license='APACHE',
packages=find_packages(exclude=['ez_setup',]),
include_package_data=True,
zip_safe=False,
install_requires=requires,
)
| from setuptools import setup, find_packages
import io
# List all of your Python package dependencies in the
# requirements.txt file
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)[3:] # skip title
requires = readfile("requirements.txt", split=True)
software_licence = readfile("LICENSE")
setup(
name='opencmiss.utils',
version='0.1.1',
description='OpenCMISS Utilities for Python.',
long_description='\n'.join(readme) + software_licence,
classifiers=[],
author='Hugh Sorby',
author_email='',
url='',
license='APACHE',
packages=find_packages(exclude=['ez_setup',]),
namespace_packages=['opencmiss'],
include_package_data=True,
zip_safe=False,
install_requires=requires,
)
| apache-2.0 | Python |
181d13b506377b501af623cf59202a75d816fdc7 | Make log colorization an optional package feature. | rjeschmi/vsc-base,rjeschmi/vsc-base | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: latin-1 -*-
#
# Copyright 2009-2014 Ghent University
#
# This file is part of vsc-base,
# originally created by the HPC team of Ghent University (http://ugent.be/hpc/en),
# with support of Ghent University (http://ugent.be/hpc),
# the Flemish Supercomputer Centre (VSC) (https://vscentrum.be/nl/en),
# the Flemish Research Foundation (FWO) (http://www.fwo.be/en)
# and the Department of Economy, Science and Innovation (EWI) (http://www.ewi-vlaanderen.be/en).
#
# http://github.com/hpcugent/vsc-base
#
# vsc-base is free software: you can redistribute it and/or modify
# it under the terms of the GNU Library General Public License as
# published by the Free Software Foundation, either version 2 of
# the License, or (at your option) any later version.
#
# vsc-base 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 Library General Public License for more details.
#
# You should have received a copy of the GNU Library General Public License
# along with vsc-base. If not, see <http://www.gnu.org/licenses/>.
#
"""
vsc-base base distribution setup.py
@author: Stijn De Weirdt (Ghent University)
@author: Andy Georges (Ghent University)
@author: Kenneth Hoste (Ghent University)
"""
import vsc.install.shared_setup as shared_setup
from vsc.install.shared_setup import ag, kh, jt, sdw
VSC_INSTALL_REQ_VERSION = '0.10.1'
PACKAGE = {
'version': '2.5.2',
'author': [sdw, jt, ag, kh],
'maintainer': [sdw, jt, ag, kh],
# as long as 1.0.0 is not out, vsc-base should still provide vsc.fancylogger
# setuptools must become a requirement for shared namespaces if vsc-install is removed as requirement
'install_requires': ['vsc-install >= %s' % VSC_INSTALL_REQ_VERSION],
'extras_require': {
'coloredlogs': [
'coloredlogs', # automatic log colorizer
'humanfriendly', # detect if terminal has colors
],
},
'setup_requires': ['vsc-install >= %s' % VSC_INSTALL_REQ_VERSION],
}
if __name__ == '__main__':
shared_setup.action_target(PACKAGE)
| #!/usr/bin/env python
# -*- coding: latin-1 -*-
#
# Copyright 2009-2014 Ghent University
#
# This file is part of vsc-base,
# originally created by the HPC team of Ghent University (http://ugent.be/hpc/en),
# with support of Ghent University (http://ugent.be/hpc),
# the Flemish Supercomputer Centre (VSC) (https://vscentrum.be/nl/en),
# the Flemish Research Foundation (FWO) (http://www.fwo.be/en)
# and the Department of Economy, Science and Innovation (EWI) (http://www.ewi-vlaanderen.be/en).
#
# http://github.com/hpcugent/vsc-base
#
# vsc-base is free software: you can redistribute it and/or modify
# it under the terms of the GNU Library General Public License as
# published by the Free Software Foundation, either version 2 of
# the License, or (at your option) any later version.
#
# vsc-base 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 Library General Public License for more details.
#
# You should have received a copy of the GNU Library General Public License
# along with vsc-base. If not, see <http://www.gnu.org/licenses/>.
#
"""
vsc-base base distribution setup.py
@author: Stijn De Weirdt (Ghent University)
@author: Andy Georges (Ghent University)
@author: Kenneth Hoste (Ghent University)
"""
import vsc.install.shared_setup as shared_setup
from vsc.install.shared_setup import ag, kh, jt, sdw
VSC_INSTALL_REQ_VERSION = '0.10.1'
PACKAGE = {
'version': '2.5.2',
'author': [sdw, jt, ag, kh],
'maintainer': [sdw, jt, ag, kh],
# as long as 1.0.0 is not out, vsc-base should still provide vsc.fancylogger
# setuptools must become a requirement for shared namespaces if vsc-install is removed as requirement
'install_requires': [
'vsc-install >= %s' % VSC_INSTALL_REQ_VERSION,
'coloredlogs', # automatic log colorizer
'humanfriendly', # detect if terminal has colors
],
'setup_requires': ['vsc-install >= %s' % VSC_INSTALL_REQ_VERSION],
}
if __name__ == '__main__':
shared_setup.action_target(PACKAGE)
| lgpl-2.1 | Python |
64e213d45c84c0ca08045fdb6a157a0291e65108 | Make setup.py py3 compatible | JorisDeRieck/Flexget,jawilson/Flexget,oxc/Flexget,drwyrm/Flexget,jawilson/Flexget,malkavi/Flexget,ianstalk/Flexget,Flexget/Flexget,LynxyssCZ/Flexget,Flexget/Flexget,jacobmetrick/Flexget,poulpito/Flexget,LynxyssCZ/Flexget,Danfocus/Flexget,Flexget/Flexget,LynxyssCZ/Flexget,Danfocus/Flexget,JorisDeRieck/Flexget,tobinjt/Flexget,jacobmetrick/Flexget,gazpachoking/Flexget,qk4l/Flexget,ianstalk/Flexget,poulpito/Flexget,qvazzler/Flexget,oxc/Flexget,drwyrm/Flexget,sean797/Flexget,crawln45/Flexget,malkavi/Flexget,malkavi/Flexget,JorisDeRieck/Flexget,gazpachoking/Flexget,tarzasai/Flexget,Flexget/Flexget,tarzasai/Flexget,OmgOhnoes/Flexget,Danfocus/Flexget,crawln45/Flexget,tobinjt/Flexget,Danfocus/Flexget,qvazzler/Flexget,tobinjt/Flexget,drwyrm/Flexget,qk4l/Flexget,dsemi/Flexget,qk4l/Flexget,JorisDeRieck/Flexget,sean797/Flexget,dsemi/Flexget,tarzasai/Flexget,qvazzler/Flexget,jacobmetrick/Flexget,LynxyssCZ/Flexget,OmgOhnoes/Flexget,crawln45/Flexget,oxc/Flexget,jawilson/Flexget,tobinjt/Flexget,ianstalk/Flexget,poulpito/Flexget,OmgOhnoes/Flexget,dsemi/Flexget,crawln45/Flexget,jawilson/Flexget,sean797/Flexget,malkavi/Flexget | setup.py | setup.py | from __future__ import print_function
import io
import sys
from setuptools import setup, find_packages
with io.open('README.rst', encoding='utf-8') as readme:
long_description = readme.read()
# Populates __version__ without importing the package
__version__ = None
with io.open('flexget/_version.py', encoding='utf-8')as ver_file:
exec(ver_file.read())
if not __version__:
print('Could not find __version__ from flexget/_version.py')
sys.exit(1)
def load_requirements(filename):
with io.open(filename, encoding='utf-8') as reqfile:
return [line.strip() for line in reqfile if not line.startswith('#')]
setup(
name='FlexGet',
version=__version__,
description='FlexGet is a program aimed to automate downloading or processing content (torrents, podcasts, etc.) '
'from different sources like RSS-feeds, html-pages, various sites and more.',
long_description=long_description,
author='Marko Koivusalo',
author_email='marko.koivusalo@gmail.com',
license='MIT',
url='http://flexget.com',
download_url='http://download.flexget.com',
packages=find_packages(exclude=['tests']),
include_package_data=True,
zip_safe=False,
install_requires=load_requirements('requirements.txt'),
tests_require=['pytest'],
extras_require={
':python_version=="2.6"': ['argparse'],
'dev_tools': load_requirements('dev-requirements.txt')
},
entry_points={
'console_scripts': ['flexget = flexget:main'],
'gui_scripts': ['flexget-headless = flexget:main'] # This is useful on Windows to avoid a cmd popup
},
classifiers=[
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
)
| from __future__ import print_function
import io
import sys
from setuptools import setup, find_packages
with io.open('README.rst', encoding='utf-8') as readme:
long_description = readme.read()
# Populates __version__ without importing the package
__version__ = None
execfile('flexget/_version.py')
if not __version__:
print('Could not find __version__ from flexget/_version.py')
sys.exit(1)
def load_requirements(filename):
with io.open(filename, encoding='utf-8') as reqfile:
return [line.strip() for line in reqfile if not line.startswith('#')]
setup(
name='FlexGet',
version=__version__,
description='FlexGet is a program aimed to automate downloading or processing content (torrents, podcasts, etc.) '
'from different sources like RSS-feeds, html-pages, various sites and more.',
long_description=long_description,
author='Marko Koivusalo',
author_email='marko.koivusalo@gmail.com',
license='MIT',
url='http://flexget.com',
download_url='http://download.flexget.com',
packages=find_packages(exclude=['tests']),
include_package_data=True,
zip_safe=False,
install_requires=load_requirements('requirements.txt'),
tests_require=['pytest'],
extras_require={
':python_version=="2.6"': ['argparse'],
'dev_tools': load_requirements('dev-requirements.txt')
},
entry_points={
'console_scripts': ['flexget = flexget:main'],
'gui_scripts': ['flexget-headless = flexget:main'] # This is useful on Windows to avoid a cmd popup
},
classifiers=[
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
)
| mit | Python |
1703f196ea52d89f486952d584683b21b8f380e8 | Update setup.py | Brobin/django-seed,henocdz/django-seed,dchoruzy/django-seed,joke2k/django-faker,ar45/django-seed,joke2k/django-faker | setup.py | setup.py | import os
from setuptools import setup, find_packages
def read_file(filename):
"""Read a file into a string"""
path = os.path.abspath(os.path.dirname(__file__))
filepath = os.path.join(path, filename)
try:
return open(filepath).read()
except IOError:
return ''
setup(
name='django-faker',
version=__import__('django_faker').__version__,
author='joke2k',
author_email='joke2k@gmail.com',
packages=find_packages(),
include_package_data=True,
url='http://github.com/joke2k/django-faker',
license='MIT',
description=u' '.join(__import__('django_faker').__doc__.splitlines()).strip(),
classifiers=[
# Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers
'Development Status :: 3 - Alpha',
'Intended Audience :: Information Technology',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Software Development :: Testing',
'Topic :: Software Development :: Widget Sets',
'Topic :: Utilities',
'License :: OSI Approved :: MIT License',
'Framework :: Django'
],
keywords='faker fixtures data test django',
long_description=read_file('README.rst'),
install_requires=['django','fake-factory==0.2'],
tests_require=['django','fake-factory==0.2'],
test_suite="runtests.runtests",
zip_safe=False,
)
| import os
from setuptools import setup, find_packages
def read_file(filename):
"""Read a file into a string"""
path = os.path.abspath(os.path.dirname(__file__))
filepath = os.path.join(path, filename)
try:
return open(filepath).read()
except IOError:
return ''
setup(
name='django-faker',
version=__import__('django_faker').__version__,
author='joke2k',
author_email='joke2k@gmail.com',
packages=find_packages(),
include_package_data=True,
url='http://github.com/joke2k/django-faker',
license='MIT',
description=u' '.join(__import__('django_faker').__doc__.splitlines()).strip(),
classifiers=[
# Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers
'Development Status :: 3 - Alpha',
'Intended Audience :: Information Technology',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Software Development :: Testing',
'Topic :: Software Development :: Widget Sets',
'Topic :: Utilities',
'License :: OSI Approved :: MIT License',
'Framework :: Django'
],
keywords='faker fixtures data test django',
long_description=read_file('README.rst'),
install_requires=['django','fake-factory>=0.2'],
tests_require=['django','fake-factory>=0.2'],
test_suite="runtests.runtests",
zip_safe=False,
) | mit | Python |
185249b7fb8ea5373e0d5373332d7e2887bd4476 | Add hello world test for Parser. | Tanner/twttr | parser_test.py | parser_test.py | #! /usr/bin/env python
import StringIO
import sys
import unittest
from parser import Instruction, Parser
class TestInstruction(unittest.TestCase):
def test_construction(self):
with self.assertRaises(ValueError):
instruction = Instruction("Random string of characters that is not the right format")
with self.assertRaises(ValueError):
instruction = Instruction("tannerld: A very long tweet that is much longer than 140 characters I think I will run out of breath. Maybe we should go out to dinner later, but I'm not really sure.")
instruction = Instruction("tannerld: I love cats. Maybe.")
self.assertEqual(instruction.author, "tannerld")
self.assertEqual(instruction.status, "I love cats. Maybe.")
def test_extract_hashtags(self):
instruction = Instruction("tannerld: I love #cats. Maybe. #kitty")
self.assertEqual(instruction.hashtags, ["cats", "kitty"])
instruction = Instruction("tannerld: I love cats.")
self.assertEqual(instruction.hashtags, [])
def test_value(self):
self.assertEqual(Instruction("tannerld: I love cats. Maybe.").value(), 2)
self.assertEqual(Instruction("tannerld: I love cats.").value(), 3)
self.assertEqual(Instruction("tannerld: Hmm. That darn cat.").value(), -2)
self.assertEqual(Instruction("tannerld: I love you. That darn cat.").value(), 0)
self.assertEqual(Instruction("tannerld: Is this right... No.").value(), 2)
self.assertEqual(Instruction("tannerld: I'm not sure. This is mine.").value(), 0)
def test_input(self):
self.assertTrue(Instruction("tannerld: Is this life?").is_input())
self.assertFalse(Instruction("tannerld: Is this life? No.").is_input())
def test_output(self):
self.assertTrue(Instruction("tannerld: Is this life!").is_output())
self.assertFalse(Instruction("tannerld: Is this life! No.").is_output())
class TestParser(unittest.TestCase):
def setUp(self):
sys.stdout = self.output = StringIO.StringIO()
def tearDown(self):
self.output.close()
sys.stdout = sys.__stdout__
def test_hello_world(self):
parser = Parser.from_file("hello_world.twttr")
parser.run()
self.assertEqual(self.output.getvalue(), "Hello World!\n")
if __name__ == '__main__':
unittest.main() | #! /usr/bin/env python
import unittest
from parser import Instruction
class TestInstruction(unittest.TestCase):
def test_construction(self):
with self.assertRaises(ValueError):
instruction = Instruction("Random string of characters that is not the right format")
with self.assertRaises(ValueError):
instruction = Instruction("tannerld: A very long tweet that is much longer than 140 characters I think I will run out of breath. Maybe we should go out to dinner later, but I'm not really sure.")
instruction = Instruction("tannerld: I love cats. Maybe.")
self.assertEqual(instruction.author, "tannerld")
self.assertEqual(instruction.status, "I love cats. Maybe.")
def test_extract_hashtags(self):
instruction = Instruction("tannerld: I love #cats. Maybe. #kitty")
self.assertEqual(instruction.hashtags, ["cats", "kitty"])
instruction = Instruction("tannerld: I love cats.")
self.assertEqual(instruction.hashtags, [])
def test_value(self):
self.assertEqual(Instruction("tannerld: I love cats. Maybe.").value(), 2)
self.assertEqual(Instruction("tannerld: I love cats.").value(), 3)
self.assertEqual(Instruction("tannerld: Hmm. That darn cat.").value(), -2)
self.assertEqual(Instruction("tannerld: I love you. That darn cat.").value(), 0)
self.assertEqual(Instruction("tannerld: Is this right... No.").value(), 2)
self.assertEqual(Instruction("tannerld: I'm not sure. This is mine.").value(), 0)
def test_input(self):
self.assertTrue(Instruction("tannerld: Is this life?").is_input())
self.assertFalse(Instruction("tannerld: Is this life? No.").is_input())
def test_output(self):
self.assertTrue(Instruction("tannerld: Is this life!").is_output())
self.assertFalse(Instruction("tannerld: Is this life! No.").is_output())
if __name__ == '__main__':
unittest.main() | mit | Python |
09e2bb06e54c6c9c5f1de9282b05bacbcc5728c8 | include migrations for health_check_db in egg distribution. | mspeedy/django-health-check,KristianOellegaard/django-health-check,mspeedy/django-health-check,KristianOellegaard/django-health-check | setup.py | setup.py | import os
from setuptools import setup
from health_check import __version__
# 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()
setup(
name="django-health-check",
version=__version__,
author="Kristian Ollegaard",
author_email="kristian@oellegaard.com",
description=("a pluggable app that runs a full check on the deployment,"
" using a number of plugins to check e.g. database, queue server, celery processes, etc."),
license="BSD",
keywords="django health check monitoring",
url="https://github.com/KristianOellegaard/django-health-check",
packages=[
'health_check',
'health_check_celery',
'health_check_celery3',
'health_check_db',
'health_check_db.migrations',
'health_check_cache',
'health_check.backends',
'health_check_storage',
],
long_description=read('README.md'),
classifiers=[
'Topic :: Utilities',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
],
install_requires=[
'Django>=1.4',
],
include_package_data=True,
zip_safe=False,
)
| import os
from setuptools import setup
from health_check import __version__
# 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()
setup(
name="django-health-check",
version=__version__,
author="Kristian Ollegaard",
author_email="kristian@oellegaard.com",
description=("a pluggable app that runs a full check on the deployment,"
" using a number of plugins to check e.g. database, queue server, celery processes, etc."),
license="BSD",
keywords="django health check monitoring",
url="https://github.com/KristianOellegaard/django-health-check",
packages=[
'health_check',
'health_check_celery',
'health_check_celery3',
'health_check_db',
'health_check_cache',
'health_check.backends',
'health_check_storage',
],
long_description=read('README.md'),
classifiers=[
'Topic :: Utilities',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
],
install_requires=[
'Django>=1.4',
],
include_package_data=True,
zip_safe=False,
)
| mit | Python |
a409431d1923d91dee8c9ed5181bd924b22adb6f | Bump version | letmaik/lensfunpy,letmaik/lensfunpy | lensfunpy/_version.py | lensfunpy/_version.py | __version__ = "1.11.0"
| __version__ = "1.10.0" | mit | Python |
5920da980515fd58410801f7af27d591a3c53183 | bump version. | peerchemist/cryptotik | setup.py | setup.py | from setuptools import setup
setup(name='cryptotik',
version='0.2.5',
description='Standardized common API for several cryptocurrency exchanges.',
url='https://github.com/peerchemist/cryptotik',
author='Peerchemist',
author_email='peerchemist@protonmail.ch',
license='GLP',
packages=['cryptotik'],
install_requires=['requests'],
tests_require=['pytest'],
zip_safe=False)
| from setuptools import setup
setup(name='cryptotik',
version='0.2.4',
description='Standardized common API for several cryptocurrency exchanges.',
url='https://github.com/peerchemist/cryptotik',
author='Peerchemist',
author_email='peerchemist@protonmail.ch',
license='GLP',
packages=['cryptotik'],
install_requires=['requests'],
tests_require=['pytest'],
zip_safe=False)
| bsd-3-clause | Python |
9357d163e13a0e7bff481e6453a0dec7ebd95a72 | bump version | BlackstoneEngineering/yotta,stevenewey/yotta,ntoll/yotta,autopulated/yotta,autopulated/yotta,BlackstoneEngineering/yotta,stevenewey/yotta,iriark01/yotta,theotherjimmy/yotta,ARMmbed/yotta,ntoll/yotta,eyeye/yotta,iriark01/yotta,eyeye/yotta,theotherjimmy/yotta,bridadan/yotta,ARMmbed/yotta,bridadan/yotta | setup.py | setup.py | import os
from setuptools import setup, find_packages
# Utility function to cat in a file (used for the README)
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name = "yotta",
version = "0.0.24",
author = "James Crosby",
author_email = "James.Crosby@arm.com",
description = ("Re-usable components for embedded software."),
license = "Proprietary",
keywords = "embedded package module dependency management",
url = "about:blank",
packages=find_packages(),
long_description=read('readme.md'),
classifiers=[
"Development Status :: 3 - Alpha",
"Topic :: Utilities",
"License :: Proprietary",
"Environment :: Console",
],
entry_points={
"console_scripts": [
"yotta=yotta:main",
"yt=yotta:main",
],
},
test_suite = 'test',
install_requires=['semantic_version', 'restkit', 'PyGithub', 'colorama', 'hgapi', 'cheetah']
)
| import os
from setuptools import setup, find_packages
# Utility function to cat in a file (used for the README)
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name = "yotta",
version = "0.0.23",
author = "James Crosby",
author_email = "James.Crosby@arm.com",
description = ("Re-usable components for embedded software."),
license = "Proprietary",
keywords = "embedded package module dependency management",
url = "about:blank",
packages=find_packages(),
long_description=read('readme.md'),
classifiers=[
"Development Status :: 3 - Alpha",
"Topic :: Utilities",
"License :: Proprietary",
"Environment :: Console",
],
entry_points={
"console_scripts": [
"yotta=yotta:main",
"yt=yotta:main",
],
},
test_suite = 'test',
install_requires=['semantic_version', 'restkit', 'PyGithub', 'colorama', 'hgapi', 'cheetah']
)
| apache-2.0 | Python |
759f58d875f6fa5caabb09a5f730e2d3e2ea8b2b | Bump version id | crashlytics/riemann-sumd | setup.py | setup.py | #!/usr/bin/env python
from distutils.core import setup
version = "0.3.0"
setup(name="riemann-sumd",
version=version,
description="Python agent for scheduling event generating processes and sending the results to Riemann",
author="Brian Hatfield",
author_email="bmhatfield@gmail.com",
url="https://github.com/bmhatfield/riemann-sumd",
package_dir={'': 'lib'},
py_modules=['event', 'loader', 'scheduler', 'sender', 'task'],
data_files=[('/etc/init/', ["init/ubuntu/sumd.conf"]),
('/etc/sumd', ['examples/etc/sumd/sumd.conf']),
('/etc/sumd/tasks.d', ['examples/etc/sumd/tasks.d/simple.task.example']),
('/etc/sumd/tags.d', ['examples/etc/sumd/tags.d/simple.tag.example'])],
scripts=["bin/sumd"],
install_requires=[
"pyyaml",
"python-daemon",
"bernhard>=0.0.5",
"requests"
]
)
| #!/usr/bin/env python
from distutils.core import setup
version = "0.2.2"
setup(name="riemann-sumd",
version=version,
description="Python agent for scheduling event generating processes and sending the results to Riemann",
author="Brian Hatfield",
author_email="bmhatfield@gmail.com",
url="https://github.com/bmhatfield/riemann-sumd",
package_dir={'': 'lib'},
py_modules=['event', 'loader', 'scheduler', 'sender', 'task'],
data_files=[('/etc/init/', ["init/ubuntu/sumd.conf"]),
('/etc/sumd', ['examples/etc/sumd/sumd.conf']),
('/etc/sumd/tasks.d', ['examples/etc/sumd/tasks.d/simple.task.example']),
('/etc/sumd/tags.d', ['examples/etc/sumd/tags.d/simple.tag.example'])],
scripts=["bin/sumd"],
install_requires=[
"pyyaml",
"python-daemon",
"bernhard>=0.0.5",
"requests"
]
)
| mit | Python |
70abc0c81f7cedb5e54f30ee3d2da617ecb6e3f1 | fix setup | chromakode/karmabot | setup.py | setup.py | # Copyright the Karmabot authors and contributors.
# All rights reserved. See AUTHORS.
#
# This file is part of 'karmabot' and is distributed under the BSD license.
# See LICENSE for more details.
"""
Karmabot
--------
A highly extensible IRC karma+information bot
Features include, thing storage, karma tracking
Links
`````
* `development version
<http://github.com/dcolish/karmabot/zipball/master#egg=Karmabot-dev>`_
"""
from setuptools import setup, find_packages
setup(
name="karmabot",
version="dev",
packages=find_packages(),
namespace_packages=['karmabot'],
include_package_data=True,
author="Max Goodman",
author_email="",
description="A highly extensible IRC karma+information bot",
long_description=__doc__,
zip_safe=False,
platforms='any',
license='BSD',
url='http://www.github.com/dcolish/karmabot',
classifiers=[
'Development Status :: 4 - Beta ',
'Environment :: Console',
'Framework :: Twisted',
'Intended Audience :: Developers',
'License :: OSI Approved :: ',
'Programming Language :: Python',
'Topic :: Communications :: Chat :: Internet Relay Chat',
],
entry_points={
'console_scripts': [
'karmabot=karmabot.scripts.runserver:main',
'migrate=karmabot.scripts.migrate:main',
'reinkarnate=karmabot.scripts.reinkarnate:main',
],
},
install_requires=[
'blinker',
'pyopenssl',
'twisted',
'redis',
'BeautifulSoup',
],
)
| # Copyright the Karmabot authors and contributors.
# All rights reserved. See AUTHORS.
#
# This file is part of 'karmabot' and is distributed under the BSD license.
# See LICENSE for more details.
"""
Karmabot
--------
A highly extensible IRC karma+information bot
Features include, thing storage, karma tracking
Links
`````
* `development version
<http://github.com/dcolish/karmabot/zipball/master#egg=Karmabot-dev>`_
"""
from setuptools import setup, find_packages
setup(
name="karmabot",
version="dev",
packages=find_packages(),
namespace_packages=['karmabot'],
include_package_data=True,
author="Max Goodman",
author_email="",
description="A highly extensible IRC karma+information bot",
long_description=__doc__,
zip_safe=False,
platforms='any',
license='BSD',
url='http://www.github.com/dcolish/karmabot',
classifiers=[
'Development Status :: 4 - Beta ',
'Environment :: Console',
'Framework :: Twisted',
'Intended Audience :: Developers',
'License :: OSI Approved :: ',
'Programming Language :: Python',
'Topic :: Communications :: Chat :: Internet Relay Chat',
],
entry_points={
'console_scripts': [
'karmabot=karmabot.scripts.runserver:main',
'migrate=karmabot.scripts.migrate:main',
'reinkarnate=karmabot.scripts.reinkarnate:main',
],
},
install_requires=[
'blinker'
'pyopenssl',
'twisted',
'redis',
'BeautifulSoup',
],
)
| bsd-3-clause | Python |
74593323d5ae5a087b01bbd58f74c1aa22ce3937 | Add test for get_filter_period | aptivate/kashana,daniell/kashana,daniell/kashana,aptivate/alfie,daniell/kashana,daniell/kashana,aptivate/kashana,aptivate/kashana,aptivate/alfie,aptivate/alfie,aptivate/kashana,aptivate/alfie | django/website/logframe/tests/test_api.py | django/website/logframe/tests/test_api.py | from datetime import date, timedelta
from django.contrib.auth.models import Permission
from django.test.client import RequestFactory
from django_dynamic_fixture import G
import mock
import pytest
from rest_framework.request import Request
from contacts.models import User
from contacts.group_permissions import GroupPermissions
from ..api import CanEditOrReadOnly, IDFilterBackend, get_period_filter
from inspect import isfunction
@pytest.mark.django_db
def test_default_user_can_read_data():
gp = GroupPermissions()
gp.setup_groups_and_permissions()
u1 = G(User)
request = mock.Mock(method="GET", user=u1)
perm_obj = CanEditOrReadOnly()
assert perm_obj.has_object_permission(request, None, None) is True
@pytest.mark.django_db
def test_default_user_can_not_change_data():
gp = GroupPermissions()
gp.setup_groups_and_permissions()
u1 = G(User)
request = mock.Mock(method="POST", user=u1)
perm_obj = CanEditOrReadOnly()
assert perm_obj.has_object_permission(request, None, None) is False
@pytest.mark.django_db
def test_editor_can_change_data():
gp = GroupPermissions()
gp.setup_groups_and_permissions()
u1 = G(User)
edit_perm = Permission.objects.get(codename='edit_logframe')
u1.user_permissions.add(edit_perm)
request = mock.Mock(method="POST", user=u1)
perm_obj = CanEditOrReadOnly()
assert perm_obj.has_object_permission(request, None, None) is True
def test_id_filter_backend_filter_queryset_filters_on_ids():
request = RequestFactory().get('/?id=1&id=2&id=3')
request = Request(request)
id_filter_backend = IDFilterBackend()
mock_queryset = mock.Mock(filter=mock.Mock())
id_filter_backend.filter_queryset(request, mock_queryset, None)
mock_queryset.filter.assert_called_with(id__in=[1, 2, 3])
def test_get_period_filter_returns_function():
yesterday = date.today() - timedelta(days=1)
today = date.today()
ret_val = get_period_filter(yesterday, today, 'start_date', 'end_date')
assert isfunction(ret_val)
| from django.contrib.auth.models import Permission
from django.test.client import RequestFactory
from django_dynamic_fixture import G
import mock
import pytest
from rest_framework.request import Request
from contacts.models import User
from contacts.group_permissions import GroupPermissions
from ..api import CanEditOrReadOnly, IDFilterBackend
@pytest.mark.django_db
def test_default_user_can_read_data():
gp = GroupPermissions()
gp.setup_groups_and_permissions()
u1 = G(User)
request = mock.Mock(method="GET", user=u1)
perm_obj = CanEditOrReadOnly()
assert perm_obj.has_object_permission(request, None, None) is True
@pytest.mark.django_db
def test_default_user_can_not_change_data():
gp = GroupPermissions()
gp.setup_groups_and_permissions()
u1 = G(User)
request = mock.Mock(method="POST", user=u1)
perm_obj = CanEditOrReadOnly()
assert perm_obj.has_object_permission(request, None, None) is False
@pytest.mark.django_db
def test_editor_can_change_data():
gp = GroupPermissions()
gp.setup_groups_and_permissions()
u1 = G(User)
edit_perm = Permission.objects.get(codename='edit_logframe')
u1.user_permissions.add(edit_perm)
request = mock.Mock(method="POST", user=u1)
perm_obj = CanEditOrReadOnly()
assert perm_obj.has_object_permission(request, None, None) is True
def test_id_filter_backend_filter_queryset_filters_on_ids():
request = RequestFactory().get('/?id=1&id=2&id=3')
request = Request(request)
id_filter_backend = IDFilterBackend()
mock_queryset = mock.Mock(filter=mock.Mock())
id_filter_backend.filter_queryset(request, mock_queryset, None)
mock_queryset.filter.assert_called_with(id__in=[1, 2, 3])
| agpl-3.0 | Python |
f9f54a90a8bc7ba4c7583529590a413b1482aa1e | Bump version (2.0.0) | renstrom/python-jump-consistent-hash,renstrom/python-jump-consistent-hash,renstrom/python-jump-consistent-hash | setup.py | setup.py | # -*- coding: utf-8 -*-
"""
Jump Consistent Hash
--------------------
Python implementation of the jump consistent hash algorithm by John Lamping and
Eric Veach[1]. Requires Python 2.6-2.7 or 3.2+.
Usage
`````
.. code:: python
>>> import jump
>>> jump.hash(256, 1024)
520
Or if you want to use the C++ extension:
.. code:: python
>>> jump.fasthash(256, 1024)
520
Links
`````
[1] http://arxiv.org/pdf/1406.2294v1.pdf
"""
from setuptools import setup, find_packages, Extension
setup(name='jump_consistent_hash',
version='2.0.0',
description='Implementation of the Jump Consistent Hash algorithm',
long_description=__doc__,
author='Peter Renström',
license='MIT',
url='https://github.com/renstrom/python-jump-consistent-hash',
packages=find_packages(),
ext_modules=[
Extension('_jump', sources=[
'jump/jump.cpp',
'jump/jumpmodule.c'
])
],
test_suite='jump.tests',
keywords=[
'jump hash',
'jumphash',
'jump consistent hash',
'consistent hash',
'hash algorithm',
'hash'
],
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'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'
])
| # -*- coding: utf-8 -*-
"""
Jump Consistent Hash
--------------------
Python implementation of the jump consistent hash algorithm by John Lamping and
Eric Veach[1]. Requires Python 2.6-2.7 or 3.2+.
Usage
`````
.. code:: python
>>> import jump
>>> jump.hash(256, 1024)
520
Or if you want to use the C++ extension:
.. code:: python
>>> jump.fasthash(256, 1024)
520
Links
`````
[1] http://arxiv.org/pdf/1406.2294v1.pdf
"""
from setuptools import setup, find_packages, Extension
setup(name='jump_consistent_hash',
version='1.1.1',
description='Implementation of the Jump Consistent Hash algorithm',
long_description=__doc__,
author='Peter Renström',
license='MIT',
url='https://github.com/renstrom/python-jump-consistent-hash',
packages=find_packages(),
ext_modules=[
Extension('_jump', sources=[
'jump/jump.cpp',
'jump/jumpmodule.c'
])
],
test_suite='jump.tests',
keywords=[
'jump hash',
'jumphash',
'jump consistent hash',
'consistent hash',
'hash algorithm',
'hash'
],
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'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'
])
| mit | Python |
e698f2dd90e9ea40814800ab6614c926f71b0416 | Update version | jpulec/django-protractor,penguin359/django-protractor | setup.py | setup.py | import os
from setuptools import find_packages, setup
with open(os.path.join(os.path.dirname(__file__), 'README.rst')) 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='django-protractor',
version='0.2',
packages=find_packages(),
include_package_data=True,
install_requires=['django>=1.4'],
license='MIT License', # example license
description='Easily integrate your protractor tests with django',
long_description=README,
author='James Pulec',
author_email='jpulec@gmail.com',
classifiers=[
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
],
)
| import os
from setuptools import find_packages, setup
with open(os.path.join(os.path.dirname(__file__), 'README.rst')) 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='django-protractor',
version='0.1',
packages=find_packages(),
include_package_data=True,
install_requires=['django>=1.4'],
license='MIT License', # example license
description='Easily integrate your protractor tests with django',
long_description=README,
author='James Pulec',
author_email='jpulec@gmail.com',
classifiers=[
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
],
)
| mit | Python |
e56b79484ac8277769e641a9b5cf72bda9bd8ebf | Fix the setup.py | greggy/django-registration | setup.py | setup.py | from distutils.core import setup
setup(name='registration',
version='0.1',
description='User-registration application for Django',
author='James Bennett',
author_email='james@b-list.org',
url='http://code.google.com/p/django-registration/',
packages=['registration'],
package_dir={ 'registration': 'registration' },
package_data={ 'registration': ['templates/registration/*.*'] },
classifiers=['Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Utilities'],
)
| from distutils.core import setup
setup(name='registration',
version='0.1',
description='User-registration application for Django',
author='James Bennett',
author_email='james@b-list.org',
url='http://code.google.com/p/django-registration/',
packages=['registration'],
classifiers=['Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Utilities'],
)
| bsd-3-clause | Python |
894804df76f1ecde4acb17d705c5daaca7d757d5 | Bump version. | iMedicare/python-callfire | setup.py | setup.py | # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
with open('README.rst') as f:
readme = f.read()
setup(
name='python-callfire',
version='0.9.2',
description='CallFire API thin wrapper.',
long_description=readme,
author='Alexander Shchapov',
author_email='sasha@imedicare.com',
packages=find_packages(exclude=('tests', 'swagger'))
)
| # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
with open('README.rst') as f:
readme = f.read()
setup(
name='python-callfire',
version='0.9.1',
description='CallFire API thin wrapper.',
long_description=readme,
author='Alexander Shchapov',
author_email='sasha@imedicare.com',
packages=find_packages(exclude=('tests', 'swagger'))
)
| mit | Python |
994fb3b3f3b2fa4e8da05fab7268eef14ca020b7 | Fix bad script name | darkpixel/openmesher,darkpixel/openmesher,heyaaron/openmesher,heyaaron/openmesher | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(name='openmesher',
version='0.6.1',
description='OpenMesher: Router OpenVPN p2p Mesh Link Generator',
author='Aaron C. de Bruyn',
author_email='aaron@heyaaron.com',
url='https://github.com/darkpixel/openmesher',
requires=['ipaddr', 'probstat', 'IPy', 'Yapsy', 'Jinja2'],
packages=find_packages(),
scripts=['openmesher.py'],
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: System Administrators',
'Operating System :: POSIX',
'Programming Language :: Python',
],
include_package_data=True,
zip_safe=False,
)
| #!/usr/bin/env python
from setuptools import setup, find_packages
setup(name='openmesher',
version='0.6.1',
description='OpenMesher: Router OpenVPN p2p Mesh Link Generator',
author='Aaron C. de Bruyn',
author_email='aaron@heyaaron.com',
url='https://github.com/darkpixel/openmesher',
requires=['ipaddr', 'probstat', 'IPy', 'Yapsy', 'Jinja2'],
packages=find_packages(),
scripts=['mesher.py'],
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: System Administrators',
'Operating System :: POSIX',
'Programming Language :: Python',
],
include_package_data=True,
zip_safe=False,
)
| bsd-3-clause | Python |
ef30348ddaf7cd1f283d6ae7a008018f27ba1c71 | use Cython to build | douban/python-libmemcached,douban/python-libmemcached | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup, Extension
from Cython.Distutils import build_ext
setup(
name = "python-libmemcached",
version = "1.0",
description="python memcached client wrapped on libmemcached",
maintainer="davies",
maintainer_email="davies.liu@gmail.com",
install_requires = ['cython'],
cmdclass = {'build_ext': build_ext},
ext_modules=[Extension('cmemcached_imp',
['cmemcached_imp.pyx', 'split_mc.c'],
libraries=['memcached'],
#extra_link_args=['--no-undefined', '-Wl,-rpath=/usr/local/lib'],
#include_dirs = ["/usr/local/include"],
#library_dirs = ["/usr/local/lib"],
)],
py_modules=['cmemcached'],
test_suite="cmemcached_test",
)
| #!/usr/bin/env python
from setuptools import setup, Extension
setup(
name = "python-libmemcached",
version = "0.40",
description="python memcached client wrapped on libmemcached",
maintainer="davies",
maintainer_email="davies.liu@gmail.com",
install_requires = ['pyrex'],
ext_modules=[Extension('cmemcached_imp',
['cmemcached_imp.pyx', 'split_mc.c'],
libraries=['memcached'],
#extra_link_args=['--no-undefined', '-Wl,-rpath=/usr/local/lib'],
#include_dirs = ["/usr/local/include"],
#library_dirs = ["/usr/local/lib"],
)],
py_modules=['cmemcached'],
test_suite="cmemcached_test",
)
| bsd-3-clause | Python |
4932f85d656e501bea688ec483f30fd8ab907a8c | Add Python 3.6 classifier to packaging | vkosuri/ChatterBot,gunthercox/ChatterBot | setup.py | setup.py | #!/usr/bin/env python
"""
ChatterBot setup file.
"""
from setuptools import setup
# Dynamically retrieve the version information from the chatterbot module
CHATTERBOT = __import__('chatterbot')
VERSION = CHATTERBOT.__version__
AUTHOR = CHATTERBOT.__author__
AUTHOR_EMAIL = CHATTERBOT.__email__
URL = CHATTERBOT.__url__
DESCRIPTION = CHATTERBOT.__doc__
LONG_DESCRIPTION = '''
ChatterBot
==========
ChatterBot is a machine-learning based conversational dialog engine build in
Python which makes it possible to generate responses based on collections of
known conversations. The language independent design of ChatterBot allows it
to be trained to speak any language.
An example of typical input would be something like this:
| **user:** Good morning! How are you doing?
| **bot:** I am doing very well, thank you for asking.
| **user:** You're welcome.
| **bot:** Do you like hats?
'''
with open('requirements.txt') as requirements:
REQUIREMENTS = requirements.readlines()
setup(
name='ChatterBot',
version=VERSION,
url=URL,
download_url='{}/tarball/{}'.format(URL, VERSION),
description=DESCRIPTION,
long_description=LONG_DESCRIPTION,
author=AUTHOR,
author_email=AUTHOR_EMAIL,
packages=[
'chatterbot',
'chatterbot.input',
'chatterbot.output',
'chatterbot.storage',
'chatterbot.logic',
'chatterbot.ext',
'chatterbot.ext.sqlalchemy_app',
'chatterbot.ext.django_chatterbot',
'chatterbot.ext.django_chatterbot.migrations',
'chatterbot.ext.django_chatterbot.management',
'chatterbot.ext.django_chatterbot.management.commands'
],
package_dir={'chatterbot': 'chatterbot'},
include_package_data=True,
install_requires=REQUIREMENTS,
license='BSD',
zip_safe=True,
platforms=['any'],
keywords=['ChatterBot', 'chatbot', 'chat', 'bot'],
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Environment :: Console',
'Environment :: Web Environment',
'Operating System :: OS Independent',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Communications :: Chat',
'Topic :: Internet',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
],
test_suite='tests',
tests_require=['mock']
)
| #!/usr/bin/env python
"""
ChatterBot setup file.
"""
from setuptools import setup
# Dynamically retrieve the version information from the chatterbot module
CHATTERBOT = __import__('chatterbot')
VERSION = CHATTERBOT.__version__
AUTHOR = CHATTERBOT.__author__
AUTHOR_EMAIL = CHATTERBOT.__email__
URL = CHATTERBOT.__url__
DESCRIPTION = CHATTERBOT.__doc__
LONG_DESCRIPTION = '''
ChatterBot
==========
ChatterBot is a machine-learning based conversational dialog engine build in
Python which makes it possible to generate responses based on collections of
known conversations. The language independent design of ChatterBot allows it
to be trained to speak any language.
An example of typical input would be something like this:
| **user:** Good morning! How are you doing?
| **bot:** I am doing very well, thank you for asking.
| **user:** You're welcome.
| **bot:** Do you like hats?
'''
with open('requirements.txt') as requirements:
REQUIREMENTS = requirements.readlines()
setup(
name='ChatterBot',
version=VERSION,
url=URL,
download_url='{}/tarball/{}'.format(URL, VERSION),
description=DESCRIPTION,
long_description=LONG_DESCRIPTION,
author=AUTHOR,
author_email=AUTHOR_EMAIL,
packages=[
'chatterbot',
'chatterbot.input',
'chatterbot.output',
'chatterbot.storage',
'chatterbot.logic',
'chatterbot.ext',
'chatterbot.ext.sqlalchemy_app',
'chatterbot.ext.django_chatterbot',
'chatterbot.ext.django_chatterbot.migrations',
'chatterbot.ext.django_chatterbot.management',
'chatterbot.ext.django_chatterbot.management.commands'
],
package_dir={'chatterbot': 'chatterbot'},
include_package_data=True,
install_requires=REQUIREMENTS,
license='BSD',
zip_safe=True,
platforms=['any'],
keywords=['ChatterBot', 'chatbot', 'chat', 'bot'],
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Environment :: Console',
'Environment :: Web Environment',
'Operating System :: OS Independent',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Communications :: Chat',
'Topic :: Internet',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
],
test_suite='tests',
tests_require=['mock']
)
| bsd-3-clause | Python |
7cbe3db336ad4d75f556f0cda8a6ddf15cd3f8b4 | add plots to local binary pattern example | bsipocz/scikit-image,keflavich/scikit-image,ofgulban/scikit-image,jwiggins/scikit-image,emmanuelle/scikits.image,emmanuelle/scikits.image,dpshelio/scikit-image,almarklein/scikit-image,blink1073/scikit-image,SamHames/scikit-image,almarklein/scikit-image,emon10005/scikit-image,ajaybhat/scikit-image,bsipocz/scikit-image,paalge/scikit-image,Britefury/scikit-image,michaelaye/scikit-image,rjeli/scikit-image,chriscrosscutler/scikit-image,michaelpacer/scikit-image,GaZ3ll3/scikit-image,youprofit/scikit-image,blink1073/scikit-image,WarrenWeckesser/scikits-image,pratapvardhan/scikit-image,oew1v07/scikit-image,ofgulban/scikit-image,dpshelio/scikit-image,Hiyorimi/scikit-image,chintak/scikit-image,GaZ3ll3/scikit-image,ajaybhat/scikit-image,michaelaye/scikit-image,vighneshbirodkar/scikit-image,SamHames/scikit-image,almarklein/scikit-image,newville/scikit-image,almarklein/scikit-image,emon10005/scikit-image,Midafi/scikit-image,ClinicalGraphics/scikit-image,vighneshbirodkar/scikit-image,pratapvardhan/scikit-image,jwiggins/scikit-image,paalge/scikit-image,emmanuelle/scikits.image,rjeli/scikit-image,SamHames/scikit-image,michaelpacer/scikit-image,Hiyorimi/scikit-image,ofgulban/scikit-image,ClinicalGraphics/scikit-image,juliusbierk/scikit-image,warmspringwinds/scikit-image,bennlich/scikit-image,WarrenWeckesser/scikits-image,emmanuelle/scikits.image,bennlich/scikit-image,Britefury/scikit-image,robintw/scikit-image,SamHames/scikit-image,rjeli/scikit-image,juliusbierk/scikit-image,chintak/scikit-image,keflavich/scikit-image,chriscrosscutler/scikit-image,paalge/scikit-image,robintw/scikit-image,chintak/scikit-image,Midafi/scikit-image,vighneshbirodkar/scikit-image,chintak/scikit-image,warmspringwinds/scikit-image,newville/scikit-image,youprofit/scikit-image,oew1v07/scikit-image | doc/examples/plot_local_binary_pattern.py | doc/examples/plot_local_binary_pattern.py | """
===============================================
Local Binary Pattern for texture classification
===============================================
In this example, we will see how to classify textures based on LBP (Local Binary
Pattern). The histogram of the LBP result is a good measure to classify
textures. For simplicity the histogram distributions are then tested against
each other using the Kullback-Leibler-Divergence.
"""
import os
import glob
import numpy as np
import matplotlib
import matplotlib.pyplot as plt
import scipy.ndimage as nd
import skimage.feature as ft
from skimage.io import imread
from skimage import data
# settings for LBP
METHOD = 'uniform'
P = 16
R = 2
def kullback_leibler_divergence(p, q):
p = np.asarray(p)
q = np.asarray(q)
filt = np.logical_and(p != 0, q != 0)
return np.sum(p[filt] * np.log2(p[filt] / q[filt]))
def match(refs, img):
best_score = 10
best_name = None
lbp = ft.local_binary_pattern(img, P, R, METHOD)
hist, _ = np.histogram(lbp, normed=True, bins=P + 2, range=(0, P + 2))
for name, ref in refs.items():
ref_hist, _ = np.histogram(ref, normed=True, bins=P + 2,
range=(0, P + 2))
score = kullback_leibler_divergence(hist, ref_hist)
if score < best_score:
best_score = score
best_name = name
return best_name
brick = data.load('brick.png')
grass = data.load('grass.png')
wall = data.load('rough-wall.png')
refs = {
'brick': ft.local_binary_pattern(brick, P, R, METHOD),
'grass': ft.local_binary_pattern(grass, P, R, METHOD),
'wall': ft.local_binary_pattern(wall, P, R, METHOD)
}
# classify rotated textures
print match(refs, nd.rotate(brick, angle=30, reshape=False))
print match(refs, nd.rotate(brick, angle=70, reshape=False))
print match(refs, nd.rotate(grass, angle=145, reshape=False))
# plot histograms of LBP of textures
matplotlib.rcParams['font.size'] = 9
plt.figure(figsize=(9, 6))
plt.subplot(231)
plt.imshow(brick)
plt.axis('off')
plt.gray()
plt.subplot(234)
plt.hist(refs['brick'].ravel(), normed=True, bins=P + 2, range=(0, P + 2))
plt.subplot(232)
plt.imshow(grass)
plt.axis('off')
plt.gray()
plt.subplot(235)
plt.hist(refs['grass'].ravel(), normed=True, bins=P + 2, range=(0, P + 2))
plt.subplot(233)
plt.imshow(wall)
plt.axis('off')
plt.gray()
plt.subplot(236)
plt.hist(refs['wall'].ravel(), normed=True, bins=P + 2, range=(0, P + 2))
plt.show()
| """
===============================================
Local Binary Pattern for texture classification
===============================================
In this example, we will see how to classify textures based on LBP (Local Binary
Pattern). The histogram of the LBP result is a good measure to classify
textures. For simplicity the histogram distributions are then tested against
each other using the Kullback-Leibler-Divergence.
"""
import os
import glob
import numpy as np
import pylab
import scipy.ndimage as nd
import skimage.feature as ft
from skimage.io import imread
from skimage import data
# settings for LBP
METHOD = 'uniform'
P = 16
R = 2
def kullback_leibler_divergence(p, q):
p = np.asarray(p)
q = np.asarray(q)
filt = np.logical_and(p != 0, q != 0)
return np.sum(p[filt] * np.log2(p[filt] / q[filt]))
def match(refs, img):
best_score = 10
best_name = None
lbp = ft.local_binary_pattern(img, P, R, METHOD)
hist, _ = np.histogram(lbp, normed=True, bins=P + 2, range=(0, P + 2))
for name, ref in refs.items():
ref_hist, _ = np.histogram(ref, normed=True, bins=P + 2,
range=(0, P + 2))
score = kullback_leibler_divergence(hist, ref_hist)
if score < best_score:
best_score = score
best_name = name
return best_name
brick = data.load('brick.png')
grass = data.load('grass.png')
wall = data.load('rough-wall.png')
refs = {
'brick': ft.local_binary_pattern(brick, P, R, METHOD),
'grass': ft.local_binary_pattern(grass, P, R, METHOD),
'wall': ft.local_binary_pattern(wall, P, R, METHOD)
}
print match(refs, nd.rotate(brick, angle=30, reshape=False))
print match(refs, nd.rotate(brick, angle=70, reshape=False))
print match(refs, nd.rotate(grass, angle=145, reshape=False))
| bsd-3-clause | Python |
7c7b8a8688de576b144336cb27b812865d91506a | Bump version number to 0.9.6b7 | samuell/sciluigi,pharmbio/sciluigi,pharmbio/sciluigi | setup.py | setup.py | import os
import sys
try:
from setuptools import setup
except:
from distutils.core import setup
readme_note = '''\
.. note::
For the latest source, issues and discussion, etc, please visit the
`GitHub repository <https://github.com/samuell/sciluigi>`_\n\n
'''
with open('README.rst') as fobj:
long_description = readme_note + fobj.read()
setup(
name='sciluigi',
version='0.9.6b7',
description='Helper library for writing dynamic, flexible workflows in luigi',
long_description=long_description,
author='Samuel Lampa',
author_email='samuel.lampa@farmbio.uu.se',
url='https://github.com/pharmbio/sciluigi',
license='MIT',
keywords='workflows workflow pipeline luigi',
packages=[
'sciluigi',
],
install_requires=[
'luigi'
],
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.4',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Bio-Informatics',
'Topic :: Scientific/Engineering :: Chemistry',
],
)
| import os
import sys
try:
from setuptools import setup
except:
from distutils.core import setup
readme_note = '''\
.. note::
For the latest source, issues and discussion, etc, please visit the
`GitHub repository <https://github.com/samuell/sciluigi>`_\n\n
'''
with open('README.rst') as fobj:
long_description = readme_note + fobj.read()
setup(
name='sciluigi',
version='0.9.5b6',
description='Helper library for writing dynamic, flexible workflows in luigi',
long_description=long_description,
author='Samuel Lampa',
author_email='samuel.lampa@farmbio.uu.se',
url='https://github.com/pharmbio/sciluigi',
license='MIT',
keywords='workflows workflow pipeline luigi',
packages=[
'sciluigi',
],
install_requires=[
'luigi'
],
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.4',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Bio-Informatics',
'Topic :: Scientific/Engineering :: Chemistry',
],
)
| mit | Python |
416ec194c42092dd9fd28d8b71a77c403e14aa55 | Bump version number to v2.1.0 | GTG3000/Red_Star,medeor413/Red_Star | red_star/rs_version.py | red_star/rs_version.py | from collections import namedtuple
__all__ = ['version_tuple', 'version']
_VersionInfo = namedtuple("VersionInfo", 'major minor patch releaselevel')
version_tuple = _VersionInfo(major=2, minor=1, patch=0, releaselevel="release")
version = f"{version_tuple.major}.{version_tuple.minor}.{version_tuple.patch}"
if version_tuple.releaselevel != "release":
version += f"-{version_tuple.releaselevel}"
| from collections import namedtuple
__all__ = ['version_tuple', 'version']
_VersionInfo = namedtuple("VersionInfo", 'major minor patch releaselevel')
version_tuple = _VersionInfo(major=2, minor=0, patch=1, releaselevel="release")
version = f"{version_tuple.major}.{version_tuple.minor}.{version_tuple.patch}"
if version_tuple.releaselevel != "release":
version += f"-{version_tuple.releaselevel}"
| mit | Python |
d041ab4a09da6a2181e1b14f3d0f323ed9c29c6f | Make scored_by_user filter call model method | DjangoGirls/djangogirls,patjouk/djangogirls,DjangoGirls/djangogirls,DjangoGirls/djangogirls,patjouk/djangogirls,patjouk/djangogirls,patjouk/djangogirls | applications/templatetags/applications_tags.py | applications/templatetags/applications_tags.py | # -*- encoding: utf-8 -*-
from django import template
register = template.Library()
@register.filter
def scored_by_user(application, user):
return application.is_scored_by_user(user)
@register.simple_tag
def display_sorting_arrow(name, current_order):
is_reversed = False
if '-{}'.format(name) == current_order:
is_reversed = True
if is_reversed:
return '<a href="?order={}">▼</a>'.format(name)
else:
return '<a href="?order=-{}">▲</a>'.format(name)
| # -*- encoding: utf-8 -*-
from django import template
from applications.models import Score
register = template.Library()
@register.filter
def scored_by_user(value, arg):
try:
score = Score.objects.get(application=value, user=arg)
return True if score.score else False
except Score.DoesNotExist:
return False
@register.simple_tag
def display_sorting_arrow(name, current_order):
is_reversed = False
if '-{}'.format(name) == current_order:
is_reversed = True
if is_reversed:
return '<a href="?order={}">▼</a>'.format(name)
else:
return '<a href="?order=-{}">▲</a>'.format(name)
| bsd-3-clause | Python |
4cf729fe916157e97fb5e6cd527147c816246fa3 | Drop privileges before starting other services | asottile/pushmanager,Yelp/pushmanager,imbstack/pushmanager,imbstack/pushmanager,Yelp/pushmanager,YelpArchive/pushmanager,YelpArchive/pushmanager,asottile/pushmanager,YelpArchive/pushmanager,bis12/pushmanager,asottile/pushmanager,bis12/pushmanager,Yelp/pushmanager,YelpArchive/pushmanager,bis12/pushmanager,imbstack/pushmanager,Yelp/pushmanager | core/application.py | core/application.py | from abc import ABCMeta
from abc import abstractmethod
import daemon
import logging
import os
from optparse import OptionParser
import pwd
import sys
import time
import tornado.ioloop
from core import pid
from core.settings import Settings
logging.basicConfig(
level=logging.WARNING,
format="%(asctime)-15s [%(process)d|%(threadName)s] %(message)s",
)
class Application:
__metaclass__ = ABCMeta
name = "NONE"
def __init__(self):
self.port = Settings['%s_app' % self.name]['port']
self.pid_file = os.path.join(Settings['log_path'], '%s.%d.pid' % (self.name, self.port))
self.log_file = os.path.join(Settings['log_path'], '%s.%d.log' % (self.name, self.port))
self.log = open(self.log_file, 'a+')
self.command = self.parse_command()
self.clean_pids()
if self.command == "stop":
sys.exit()
def parse_command(self):
usage = "Usage: %prog start|stop"
parser = OptionParser(usage=usage)
_, args = parser.parse_args()
if len(args) != 1 and args[0] not in ('start', 'stop'):
parser.print_help()
sys.exit(1)
return args[0]
def clean_pids(self):
if os.path.exists(self.pid_file):
pid.check(self.pid_file)
os.unlink(self.pid_file)
time.sleep(1)
@abstractmethod
def start_services(self):
pass
def run(self):
daemon_context = daemon.DaemonContext(stdout=self.log, stderr=self.log, working_directory=os.getcwd())
with daemon_context:
pid.write(self.pid_file)
try:
# Drop privileges
uid = pwd.getpwnam(Settings.get("username", "www-data"))[2]
os.setuid(uid)
self.start_services()
pid.write(self.pid_file, append=True)
tornado.ioloop.IOLoop.instance().start()
finally:
pid.remove(self.pid_file)
| from abc import ABCMeta
from abc import abstractmethod
import daemon
import logging
import os
from optparse import OptionParser
import pwd
import sys
import time
import tornado.ioloop
from core import pid
from core.settings import Settings
logging.basicConfig(
level=logging.WARNING,
format="%(asctime)-15s [%(process)d|%(threadName)s] %(message)s",
)
class Application:
__metaclass__ = ABCMeta
name = "NONE"
def __init__(self):
self.port = Settings['%s_app' % self.name]['port']
self.pid_file = os.path.join(Settings['log_path'], '%s.%d.pid' % (self.name, self.port))
self.log_file = os.path.join(Settings['log_path'], '%s.%d.log' % (self.name, self.port))
self.log = open(self.log_file, 'a+')
self.command = self.parse_command()
self.clean_pids()
if self.command == "stop":
sys.exit()
def parse_command(self):
usage = "Usage: %prog start|stop"
parser = OptionParser(usage=usage)
_, args = parser.parse_args()
if len(args) != 1 and args[0] not in ('start', 'stop'):
parser.print_help()
sys.exit(1)
return args[0]
def clean_pids(self):
if os.path.exists(self.pid_file):
pid.check(self.pid_file)
os.unlink(self.pid_file)
time.sleep(1)
@abstractmethod
def start_services(self):
pass
def run(self):
daemon_context = daemon.DaemonContext(stdout=self.log, stderr=self.log, working_directory=os.getcwd())
with daemon_context:
pid.write(self.pid_file)
try:
self.start_services()
pid.write(self.pid_file, append=True)
# Drop privileges
uid = pwd.getpwnam(Settings.get("username", "www-data"))[2]
os.setuid(uid)
tornado.ioloop.IOLoop.instance().start()
finally:
pid.remove(self.pid_file)
| apache-2.0 | Python |
51274bd196dbde19d89d68c83b0cc7814b77d8ab | fix with exception for python3 | catinello/time-tracker,catinello/time-tracker | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup
import sys
if sys.version_info[:2] != (2, 7):
raise Exception("Need Python 2.7.x")
setup (
name = "tt",
version = "0.2",
description="(tt) - time tracker",
long_description="lightweight command line tool to track time for projects",
author="Antonino Catinello",
author_email="ac@antoo.org",
url="http://antonino.catinello.eu",
license = "MIT",
packages = ['tt'],
classifiers=[
"Topic :: Utilities",
"License :: OSI Approved :: MIT License",
],
download_url = "https://github.com/catinello/tt.git",
zip_safe = True,
entry_points = {
'console_scripts': ['tt = tt.core:main']
}
)
| #!/usr/bin/env python
from setuptools import setup
import sys
if sys.version_info[:2] != (2, 7):
print "Need Python 2.7.x"
sys.exit(1)
setup (
name = "tt",
version = "0.2",
description="(tt) - time tracker",
long_description="lightweight command line tool to track time for projects",
author="Antonino Catinello",
author_email="ac@antoo.org",
url="http://antonino.catinello.eu",
license = "MIT",
packages = ['tt'],
classifiers=[
"Topic :: Utilities",
"License :: OSI Approved :: MIT License",
],
download_url = "https://github.com/catinello/tt.git",
zip_safe = True,
entry_points = {
'console_scripts': ['tt = tt.core:main']
}
)
| mit | Python |
360128c41dfe73f2d229a751bbe4611b4337d71a | Add invoke >= 0.8 to setup.py | Parsely/streamparse,Parsely/streamparse,codywilbourn/streamparse,codywilbourn/streamparse | setup.py | setup.py | #!/usr/bin/env python
"""
Copyright 2014-2015 Parsely, 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 re
import sys
from setuptools import setup, find_packages
# Get version without importing, which avoids dependency issues
def get_version():
with open('streamparse/version.py') as version_file:
return re.search(r"""__version__\s+=\s+(['"])(?P<version>.+?)\1""",
version_file.read()).group('version')
def readme():
''' Returns README.rst contents as str '''
with open('README.rst') as f:
return f.read()
install_requires = [
'invoke>=0.8',
'fabric',
'jinja2',
'requests',
'prettytable',
'six>=1.5',
'simplejson'
]
if sys.version_info.major < 3:
install_requires.append('contextlib2')
lint_requires = [
'pep8',
'pyflakes'
]
if sys.version_info.major < 3:
tests_require = ['mock', 'nose', 'unittest2']
else:
tests_require = ['mock', 'nose']
dependency_links = []
setup_requires = []
if 'nosetests' in sys.argv[1:]:
setup_requires.append('nose')
setup(
name='streamparse',
version=get_version(),
author='Parsely, Inc.',
author_email='hello@parsely.com',
url='https://github.com/Parsely/streamparse',
description=('streamparse lets you run Python code against real-time '
'streams of data. Integrates with Apache Storm.'),
long_description=readme(),
license='Apache License 2.0',
packages=find_packages(),
entry_points={
'console_scripts': [
'sparse = streamparse.cli.sparse:main',
'streamparse = streamparse.cli.sparse:main'
]
},
install_requires=install_requires,
tests_require=tests_require,
setup_requires=setup_requires,
extras_require={
'test': tests_require,
'all': install_requires + tests_require,
'docs': ['sphinx'] + tests_require,
'lint': lint_requires
},
dependency_links=dependency_links,
zip_safe=False,
test_suite='nose.collector',
include_package_data=True,
)
| #!/usr/bin/env python
"""
Copyright 2014-2015 Parsely, 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 re
import sys
from setuptools import setup, find_packages
# Get version without importing, which avoids dependency issues
def get_version():
with open('streamparse/version.py') as version_file:
return re.search(r"""__version__\s+=\s+(['"])(?P<version>.+?)\1""",
version_file.read()).group('version')
def readme():
''' Returns README.rst contents as str '''
with open('README.rst') as f:
return f.read()
install_requires = [
'invoke<0.8',
'fabric',
'jinja2',
'requests',
'prettytable',
'six>=1.5',
'simplejson'
]
if sys.version_info.major < 3:
install_requires.append('contextlib2')
lint_requires = [
'pep8',
'pyflakes'
]
if sys.version_info.major < 3:
tests_require = ['mock', 'nose', 'unittest2']
else:
tests_require = ['mock', 'nose']
dependency_links = []
setup_requires = []
if 'nosetests' in sys.argv[1:]:
setup_requires.append('nose')
setup(
name='streamparse',
version=get_version(),
author='Parsely, Inc.',
author_email='hello@parsely.com',
url='https://github.com/Parsely/streamparse',
description=('streamparse lets you run Python code against real-time '
'streams of data. Integrates with Apache Storm.'),
long_description=readme(),
license='Apache License 2.0',
packages=find_packages(),
entry_points={
'console_scripts': [
'sparse = streamparse.cli.sparse:main',
'streamparse = streamparse.cli.sparse:main'
]
},
install_requires=install_requires,
tests_require=tests_require,
setup_requires=setup_requires,
extras_require={
'test': tests_require,
'all': install_requires + tests_require,
'docs': ['sphinx'] + tests_require,
'lint': lint_requires
},
dependency_links=dependency_links,
zip_safe=False,
test_suite='nose.collector',
include_package_data=True,
)
| apache-2.0 | Python |
b1d55ec6069f24729abb6b7bf304dca966b515fb | Change homepage in setup.py from github to readthedocs | lev-veshnyakov/django-import-data,lev-veshnyakov/django-import-data | 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.md'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='django-import-data',
# Versions should comply with PEP440. For a discussion on single-sourcing
# the version across setup.py and the project code, see
# https://packaging.python.org/en/latest/single_source_version.html
version='0.1.1',
description='A Django command line tool for importing HTML, XML and JSON data to models via XSLT mapping',
long_description=long_description,
# The project's main homepage.
url='http://django-import-data.readthedocs.org',
# Author details
author='Lev Veshnyakov',
author_email='lev@lev.website',
# Choose your license
license='MIT',
# 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',
# Indicate who your project is intended for
'Intended Audience :: Developers',
'Topic :: Software Development :: Build Tools',
# Pick your license as you wish (should match "license" above)
'License :: OSI Approved :: MIT License',
# Specify the Python versions you support here. In particular, ensure
# that you indicate whether you support Python 2, Python 3 or both.
'Programming Language :: Python :: 2.7',
],
# What does your project relate to?
keywords='django import mapping parser xml xslt',
# You can just specify the packages manually here if your project is
# simple. Or you can use find_packages().
packages=find_packages(exclude=['import_data.migrations']),
# Alternatively, if you want to distribute just a my_module.py, uncomment
# this:
# py_modules=["my_module"],
# List run-time dependencies here. These will be installed by pip when
# your project is installed. For an analysis of "install_requires" vs pip's
# requirements files see:
# https://packaging.python.org/en/latest/requirements.html
install_requires=['lxml'],
# If there are data files included in your packages that need to be
# installed, specify them here. If using Python 2.6 or less, then these
# have to be included in MANIFEST.in as well.
package_data={
'import_data': ['schema.rng'],
},
) | """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.md'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='django-import-data',
# Versions should comply with PEP440. For a discussion on single-sourcing
# the version across setup.py and the project code, see
# https://packaging.python.org/en/latest/single_source_version.html
version='0.1.0',
description='A Django command line tool for importing HTML, XML and JSON data to models via XSLT mapping',
long_description=long_description,
# The project's main homepage.
url='https://github.com/lev-veshnyakov/django-import-data',
# Author details
author='Lev Veshnyakov',
author_email='lev@lev.website',
# Choose your license
license='MIT',
# 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',
# Indicate who your project is intended for
'Intended Audience :: Developers',
'Topic :: Software Development :: Build Tools',
# Pick your license as you wish (should match "license" above)
'License :: OSI Approved :: MIT License',
# Specify the Python versions you support here. In particular, ensure
# that you indicate whether you support Python 2, Python 3 or both.
'Programming Language :: Python :: 2.7',
],
# What does your project relate to?
keywords='django import mapping parser xml xslt',
# You can just specify the packages manually here if your project is
# simple. Or you can use find_packages().
packages=find_packages(exclude=['import_data.migrations']),
# Alternatively, if you want to distribute just a my_module.py, uncomment
# this:
# py_modules=["my_module"],
# List run-time dependencies here. These will be installed by pip when
# your project is installed. For an analysis of "install_requires" vs pip's
# requirements files see:
# https://packaging.python.org/en/latest/requirements.html
install_requires=['lxml'],
# If there are data files included in your packages that need to be
# installed, specify them here. If using Python 2.6 or less, then these
# have to be included in MANIFEST.in as well.
package_data={
'import_data': ['schema.rng'],
},
) | mit | Python |
403f00464801db437dbec6682a847b6479853f12 | Remove Python 2.5 as supported because I haven't actually tested this with it | andrewguy9/docopts,andrewguy9/docopts | setup.py | setup.py | # -*- coding: utf-8 -*-
import os
from setuptools import setup
def file_get_contents(name):
with open(os.path.join(os.path.dirname(__file__), name)) as f:
return f.read()
setup(name = "docopts",
version = "0.5.0+fix",
author = "Lari Rasku",
author_email = "raskug@lavabit.com",
url = "https://github.com/docopt/docopts",
license = "MIT",
description = "Shell interface for docopt, the command-line "
"interface description language.",
keywords = "shell bash docopt command-line",
long_description = file_get_contents('README.rst'),
scripts = ["docopts"],
install_requires = ["docopt == 0.5.0"],
classifiers = ["Development Status :: 3 - Alpha",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.1",
"Programming Language :: Python :: 3.2",
"Topic :: Software Development :: User Interfaces"])
| # -*- coding: utf-8 -*-
import os
from setuptools import setup
def file_get_contents(name):
with open(os.path.join(os.path.dirname(__file__), name)) as f:
return f.read()
setup(name = "docopts",
version = "0.5.0+fix",
author = "Lari Rasku",
author_email = "raskug@lavabit.com",
url = "https://github.com/docopt/docopts",
license = "MIT",
description = "Shell interface for docopt, the command-line "
"interface description language.",
keywords = "shell bash docopt command-line",
long_description = file_get_contents('README.rst'),
scripts = ["docopts"],
install_requires = ["docopt == 0.5.0"],
classifiers = ["Development Status :: 3 - Alpha",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 2.5",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.1",
"Programming Language :: Python :: 3.2",
"Topic :: Software Development :: User Interfaces"])
| mit | Python |
c0490aaa47507bd6ba9b34f3b27bd8ba96c339d7 | Fix setup entry point | Deepwalker/pundler | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup
import os.path
def read(fname):
try:
return open(os.path.join(os.path.dirname(__file__), fname)).read()
except IOError:
return ''
setupconf = dict(
name='pundle',
version='0.2.5',
license='BSD',
url='https://github.com/Deepwalker/pundler/',
author='Deepwalker',
author_email='krivushinme@gmail.com',
description=('Requirements management tool.'),
long_description=read('README.md'),
keywords='bundler virtualenv pip install package setuptools',
py_modules=['pundle'],
entry_points=dict(
console_scripts=[
'pundle = pundle:CmdRegister.main'
]
),
classifiers=[
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
]
)
if __name__ == '__main__':
setup(**setupconf)
| #!/usr/bin/env python
from setuptools import setup
import os.path
def read(fname):
try:
return open(os.path.join(os.path.dirname(__file__), fname)).read()
except IOError:
return ''
setupconf = dict(
name='pundle',
version='0.2.5',
license='BSD',
url='https://github.com/Deepwalker/pundler/',
author='Deepwalker',
author_email='krivushinme@gmail.com',
description=('Requirements management tool.'),
long_description=read('README.md'),
keywords='bundler virtualenv pip install package setuptools',
py_modules=['pundle'],
entry_points=dict(
console_scripts=[
'pundle = pundle:main'
]
),
classifiers=[
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
]
)
if __name__ == '__main__':
setup(**setupconf)
| bsd-2-clause | Python |
fb8839cbd3c7829584dd8cc9d2282614b9a6e3c2 | Cut 0.0.4 | bitprophet/pytest-relaxed | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='pytest-relaxed',
version='0.0.4',
description='Relaxed test discovery/organization for pytest',
license='BSD',
url="https://github.com/bitprophet/pytest-relaxed",
author='Jeff Forcier',
author_email='jeff@bitprophet.org',
long_description="\n" + open('README.rst').read(),
packages=find_packages(),
entry_points={
# TODO: do we need to name the LHS 'pytest_relaxed' too? meh
'pytest11': ['relaxed = pytest_relaxed.plugin'],
},
# TODO: is it worth tightening/loosening this? At the moment I don't know
# of any specific pytest releases/bugs/features that limit me besides
# presumable major version API compat concerns.
install_requires=['pytest>=3,<4'],
classifiers=[
'Development Status :: 3 - Alpha',
'Framework :: Pytest',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python',
'Topic :: Software Development :: Testing',
],
)
| #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='pytest-relaxed',
version='0.0.3',
description='Relaxed test discovery/organization for pytest',
license='BSD',
url="https://github.com/bitprophet/pytest-relaxed",
author='Jeff Forcier',
author_email='jeff@bitprophet.org',
long_description="\n" + open('README.rst').read(),
packages=find_packages(),
entry_points={
# TODO: do we need to name the LHS 'pytest_relaxed' too? meh
'pytest11': ['relaxed = pytest_relaxed.plugin'],
},
# TODO: is it worth tightening/loosening this? At the moment I don't know
# of any specific pytest releases/bugs/features that limit me besides
# presumable major version API compat concerns.
install_requires=['pytest>=3,<4'],
classifiers=[
'Development Status :: 3 - Alpha',
'Framework :: Pytest',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python',
'Topic :: Software Development :: Testing',
],
)
| bsd-2-clause | Python |
6c1e355b7229977a6fc028cb72d6cbde0cb0289d | Update studio_object.py | tyrylu/pyfmodex | pyfmodex/studio/studio_object.py | pyfmodex/studio/studio_object.py | """Parent class for most other classes related to FMOD Stdio."""
from ..utils import ckresult
from .library import get_library
class StudioObject:
"""A base FMOD studio object."""
function_prefix = '' # to be overridden in subclasses
def __init__(self, ptr):
"""Constructor.
:param ptr: The pointer representing this object.
"""
self._ptr = ptr
self._lib = get_library()
def _call(self, specific_function_suffix, *args):
func_name = "%s_%s" % (self.function_prefix, specific_function_suffix)
result = getattr(self._lib, func_name)(self._ptr, *args)
ckresult(result)
def __eq__(self, other):
if isinstance(other, self.__class__):
return self._ptr.value == other._ptr.value
return False
@property
def is_valid(self):
"""Check that the System reference is valid and has been initialized.
"""
func_name = "%s_%s" % (self.function_prefix, "IsValid")
result = getattr(self._lib, func_name)(self._ptr)
return bool(result)
| """Parent class for most other classes related to FMOD Stdio."""
from ..utils import ckresult
from .library import get_library
class StudioObject:
"""A base FMOD studio object."""
function_prefix = '' # to be overridden in subclasses
def __init__(self, ptr):
"""Constructor.
:param ptr: The pointer representing this object.
"""
self._ptr = ptr
self._lib = get_library()
def _call(self, specific_function_suffix, *args):
func_name = "%s_%s" % (self.function_prefix, specific_function_suffix)
print(func_name)
result = getattr(self._lib, func_name)(self._ptr, *args)
ckresult(result)
def __eq__(self, other):
if isinstance(other, self.__class__):
return self._ptr.value == other._ptr.value
return False
@property
def is_valid(self):
"""Check that the System reference is valid and has been initialized.
"""
func_name = "%s_%s" % (self.function_prefix, "IsValid")
result = getattr(self._lib, func_name)(self._ptr)
return bool(result)
| mit | Python |
639d784eebba9aa6c88dd4c275790508c17ffde4 | Bump version | andreroggeri/pynubank | setup.py | setup.py | import os
from setuptools import setup, find_packages
def read(fname):
with open(os.path.join(os.path.dirname(__file__), fname)) as f:
return f.read()
setup(
name='pynubank',
version='2.8.0',
url='https://github.com/andreroggeri/pynubank',
author='André Roggeri Campos',
author_email='a.roggeri.c@gmail.com',
license='MIT',
packages=find_packages(),
package_data={'pynubank': ['queries/*.gql', 'utils/mocked_responses/*.json']},
install_requires=['requests', 'qrcode', 'pyOpenSSL', 'colorama', 'requests-pkcs12'],
long_description=read("README.md"),
long_description_content_type="text/markdown",
entry_points={
'console_scripts': [
'pynubank = pynubank.cli:main'
]
},
classifiers=[
'Programming Language :: Python',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
]
)
| from setuptools import setup, find_packages
setup(
name='pynubank',
version='2.7.2',
url='https://github.com/andreroggeri/pynubank',
author='André Roggeri Campos',
author_email='a.roggeri.c@gmail.com',
license='MIT',
packages=find_packages(),
package_data={'pynubank': ['queries/*.gql', 'utils/mocked_responses/*.json']},
install_requires=['requests', 'qrcode', 'pyOpenSSL', 'colorama', 'requests-pkcs12'],
entry_points={
'console_scripts': [
'pynubank = pynubank.cli:main'
]
},
classifiers=[
'Programming Language :: Python',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
]
)
| mit | Python |
2f54c01fb6666beada00535a1b8ee5346a1a7ff0 | Prepare release v1.0.1 | GeoscienceAustralia/fetch,GeoscienceAustralia/fetch | setup.py | setup.py | #!/usr/bin/env python2.7
from __future__ import print_function
from distutils.core import setup
import os
version = '1.0.1'
# Append TeamCity build number if it gives us one.
if 'TC_BUILD_NUMBER' in os.environ and version.endswith('b'):
version += '' + os.environ['TC_BUILD_NUMBER']
setup(name='fetch',
maintainer='Jeremy Hooke',
maintainer_email='jeremy.hooke@ga.gov.au',
version=version,
description='Automatic retrieval of ancillary and data',
packages=[
'fetch',
],
scripts=[
'bin/fetch-service'
],
requires=[
'arrow',
'croniter',
'feedparser',
'lxml',
'neocommon',
'pathlib',
'pyyaml',
'requests',
'setproctitle',
]
)
| #!/usr/bin/env python2.7
from __future__ import print_function
from distutils.core import setup
import os
version = '1.0.1b'
# Append TeamCity build number if it gives us one.
if 'TC_BUILD_NUMBER' in os.environ and version.endswith('b'):
version += '' + os.environ['TC_BUILD_NUMBER']
setup(name='fetch',
maintainer='Jeremy Hooke',
maintainer_email='jeremy.hooke@ga.gov.au',
version=version,
description='Automatic retrieval of ancillary and data',
packages=[
'fetch',
],
scripts=[
'bin/fetch-service'
],
requires=[
'arrow',
'croniter',
'feedparser',
'lxml',
'neocommon',
'pathlib',
'pyyaml',
'requests',
'setproctitle',
]
)
| apache-2.0 | Python |
853c41b02ffa80d7ea41b01d85761c79d8c72595 | Bump version -- in the right place | generalov/django-moneyfield | setup.py | setup.py | from distutils.core import setup
DESCRIPTION="""
"""
setup(
name="django-moneyfield",
description="Django Money Model Field",
long_description=DESCRIPTION,
version="0.3.1",
author="Carlos Palol",
author_email="carlos.palol@awarepixel.com",
url="https://github.com/carlospalol/django-moneyfield",
packages=[
'moneyfield'
],
requires=[
'django (>=1.5)',
'money',
],
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3.3',
'Topic :: Software Development :: Libraries',
]
)
| from distutils.core import setup
DESCRIPTION="""
"""
setup(
name="django-moneyfield",
description="Django Money Model Field",
long_description=DESCRIPTION,
version="0.2.1",
author="Carlos Palol",
author_email="carlos.palol@awarepixel.com",
url="https://github.com/carlospalol/django-moneyfield",
packages=[
'moneyfield'
],
requires=[
'django (>=1.5)',
'money',
],
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3.3',
'Topic :: Software Development :: Libraries',
]
)
| mit | Python |
935aa0ff545254dbd43069a2173898f5138d7d63 | Remove deprecated plugin | poliastro/poliastro.github.io,poliastro/poliastro.github.io,poliastro/poliastro.github.io | pelicanconf.py | pelicanconf.py | #!/usr/bin/env python
AUTHOR = 'poliastro developer team'
SITENAME = 'poliastro'
SITESUBTITLE = u'poliastro website'
SITEURL = ''
PATH = 'content'
TIMEZONE = 'Europe/Madrid'
DEFAULT_LANG = 'en'
LOCALE = 'en_US.UTF-8'
# Feed generation is usually not desired when developing
FEED_ALL_ATOM = None
CATEGORY_FEED_ATOM = None
TRANSLATION_FEED_ATOM = None
AUTHOR_FEED_ATOM = 'feeds/{slug}.atom.xml'
AUTHOR_FEED_RSS = 'feeds/{slug}.rss.xml'
# Set the article URL
ARTICLE_URL = 'blog/{date:%Y}/{date:%m}/{date:%d}/{slug}/'
ARTICLE_SAVE_AS = 'blog/{date:%Y}/{date:%m}/{date:%d}/{slug}/index.html'
INDEX_SAVE_AS = "blog/index.html"
DEFAULT_PAGINATION = 10
#SUMMARY_USE_FIRST_PARAGRAPH = True
SUMMARY_MAX_LENGTH = 140
# Uncomment following line if you want document-relative URLs when developing
#RELATIVE_URLS = True
#MARKUP = ('md', 'ipynb')
#PLUGINS = ['ipynb.markup']
MARKUP = ['md']
PLUGIN_PATHS = ['./plugins', './plugins/pelican-plugins']
PLUGINS = [
'summary', # auto-summarizing articles
'pelican.plugins.liquid_tags',
]
IGNORE_FILES = ['.ipynb_checkpoints']
# for liquid tags
CODE_DIR = 'downloads/code'
NOTEBOOK_DIR = 'downloads/notebooks'
# THEME SETTINGS
THEME = './theme/'
# HEAD MENU PAGES
DOCS_PAGE = 'https://docs.poliastro.space/en/latest/'
COMMUNITY_PAGE = 'http://chat.poliastro.space/'
TUTORIALS_PAGE = 'https://beta.mybinder.org/v2/gh/poliastro/poliastro/master?filepath=index.ipynb'
BLOG_PAGE = 'blog/index.html'
CODE_PAGE = 'https://github.com/poliastro/poliastro'
ARCHIVES_PAGE = 'archives.html'
ABOUT_PAGE = 'pages/about-poliastro.html'
TWITTER_USERNAME = 'poliastro_py'
GITHUB_USERNAME = 'poliastro'
SHOW_ARCHIVES = True
SHOW_FEED = False # Need to address large feeds
ISSO_HOST = 'localhost:1234'
ENABLE_MATHJAX = True
STATIC_PATHS = ['images', 'figures', 'videos', 'downloads', 'favicon.ico', 'extra/CNAME']
EXTRA_PATH_METADATA = {'extra/CNAME': {'path': 'CNAME'},}
# Footer info
LICENSE_URL = "https://github.com/poliastro/poliastro.github.io/blob/sources/LICENSE"
LICENSE = "CC-BY for content and MIT for code"
| #!/usr/bin/env python
AUTHOR = 'poliastro developer team'
SITENAME = 'poliastro'
SITESUBTITLE = u'poliastro website'
SITEURL = ''
PATH = 'content'
TIMEZONE = 'Europe/Madrid'
DEFAULT_LANG = 'en'
LOCALE = 'en_US.UTF-8'
# Feed generation is usually not desired when developing
FEED_ALL_ATOM = None
CATEGORY_FEED_ATOM = None
TRANSLATION_FEED_ATOM = None
AUTHOR_FEED_ATOM = 'feeds/{slug}.atom.xml'
AUTHOR_FEED_RSS = 'feeds/{slug}.rss.xml'
# Set the article URL
ARTICLE_URL = 'blog/{date:%Y}/{date:%m}/{date:%d}/{slug}/'
ARTICLE_SAVE_AS = 'blog/{date:%Y}/{date:%m}/{date:%d}/{slug}/index.html'
INDEX_SAVE_AS = "blog/index.html"
DEFAULT_PAGINATION = 10
#SUMMARY_USE_FIRST_PARAGRAPH = True
SUMMARY_MAX_LENGTH = 140
# Uncomment following line if you want document-relative URLs when developing
#RELATIVE_URLS = True
#MARKUP = ('md', 'ipynb')
#PLUGINS = ['ipynb.markup']
MARKUP = ['md']
PLUGIN_PATHS = ['./plugins', './plugins/pelican-plugins']
PLUGINS = [
'summary', # auto-summarizing articles
'feed_summary', # use summaries for RSS, not full articles
'pelican.plugins.liquid_tags',
]
IGNORE_FILES = ['.ipynb_checkpoints']
# for liquid tags
CODE_DIR = 'downloads/code'
NOTEBOOK_DIR = 'downloads/notebooks'
# THEME SETTINGS
THEME = './theme/'
# HEAD MENU PAGES
DOCS_PAGE = 'https://docs.poliastro.space/en/latest/'
COMMUNITY_PAGE = 'http://chat.poliastro.space/'
TUTORIALS_PAGE = 'https://beta.mybinder.org/v2/gh/poliastro/poliastro/master?filepath=index.ipynb'
BLOG_PAGE = 'blog/index.html'
CODE_PAGE = 'https://github.com/poliastro/poliastro'
ARCHIVES_PAGE = 'archives.html'
ABOUT_PAGE = 'pages/about-poliastro.html'
TWITTER_USERNAME = 'poliastro_py'
GITHUB_USERNAME = 'poliastro'
SHOW_ARCHIVES = True
SHOW_FEED = False # Need to address large feeds
ISSO_HOST = 'localhost:1234'
ENABLE_MATHJAX = True
STATIC_PATHS = ['images', 'figures', 'videos', 'downloads', 'favicon.ico', 'extra/CNAME']
EXTRA_PATH_METADATA = {'extra/CNAME': {'path': 'CNAME'},}
# Footer info
LICENSE_URL = "https://github.com/poliastro/poliastro.github.io/blob/sources/LICENSE"
LICENSE = "CC-BY for content and MIT for code"
| mit | Python |
0d31d032754287ae10aef3e056cea00ea1cc4ac6 | Fix version bump | datasciencebr/serenata-toolbox | setup.py | setup.py | from setuptools import setup
REPO_URL = 'http://github.com/datasciencebr/serenata-toolbox'
setup(
author='Serenata de Amor',
author_email='op.serenatadeamor@gmail.com',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3.5',
'Topic :: Utilities',
],
description='Toolbox for Serenata de Amor project',
zip_safe=False,
install_requires=[
'aiofiles',
'aiohttp',
'boto3',
'beautifulsoup4>=4.4',
'lxml>=3.6',
'pandas>=0.18',
'tqdm'
],
keywords='serenata de amor, data science, brazil, corruption',
license='MIT',
long_description='Check `Serenata Toolbox at GitHub <{}>`_.'.format(REPO_URL),
name='serenata-toolbox',
packages=[
'serenata_toolbox.federal_senate',
'serenata_toolbox.chamber_of_deputies',
'serenata_toolbox.datasets'
],
url=REPO_URL,
version='12.1.2'
)
| from setuptools import setup
REPO_URL = 'http://github.com/datasciencebr/serenata-toolbox'
setup(
author='Serenata de Amor',
author_email='op.serenatadeamor@gmail.com',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3.5',
'Topic :: Utilities',
],
description='Toolbox for Serenata de Amor project',
zip_safe=False,
install_requires=[
'aiofiles',
'aiohttp',
'boto3',
'beautifulsoup4>=4.4',
'lxml>=3.6',
'pandas>=0.18',
'tqdm'
],
keywords='serenata de amor, data science, brazil, corruption',
license='MIT',
long_description='Check `Serenata Toolbox at GitHub <{}>`_.'.format(REPO_URL),
name='serenata-toolbox',
packages=[
'serenata_toolbox.federal_senate',
'serenata_toolbox.chamber_of_deputies',
'serenata_toolbox.datasets'
],
url=REPO_URL,
version='12.1.1'
)
| mit | Python |
a3637c8520beb5dd9505bdc04cad131e0a8357db | Fix runtime_lib_dirs on Linux and macOS | ampl/amplpy,ampl/amplpy,ampl/amplpy | setup.py | setup.py | # -*- coding: utf-8 -*-
from setuptools import setup, Extension
import platform
import os
with open('README.md') as f:
readme = f.read()
def ls_dir(base_dir):
"""List files recursively."""
base_dir = os.path.join(base_dir, "")
return [
os.path.join(dirpath.replace(base_dir, "", 1), f)
for (dirpath, dirnames, files) in os.walk(base_dir)
for f in files
]
x64 = platform.architecture()[0] == '64bit'
libdir = 'lib64' if x64 else 'lib32'
ostype = platform.system()
if ostype == 'Linux':
runtime_lib_dirs = [
os.path.join('$ORIGIN', 'amplpy', 'amplpython', libdir)
]
elif ostype == 'Darwin':
runtime_lib_dirs = [
os.path.join('@loader_path', 'amplpy', 'amplpython', libdir)
]
else:
runtime_lib_dirs = []
setup(
name='amplpy',
version='0.1.0a3',
description='Python API for AMPL',
long_description=readme,
author='Filipe Brandao',
author_email='fdabrandao@ampl.com',
url='https://github.com/ampl/amplpy',
license='BSD',
platforms='any',
classifiers=[
'Development Status :: 1 - Planning',
'Environment :: Console',
'Operating System :: OS Independent',
'Intended Audience :: Science/Research',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Topic :: Scientific/Engineering',
],
packages=['amplpy'],
ext_modules=[Extension(
'_amplpython',
libraries=['ampl'],
library_dirs=[os.path.join('amplpy', 'amplpython', libdir)],
include_dirs=[os.path.join('amplpy', 'amplpython', 'include')],
runtime_library_dirs=runtime_lib_dirs,
sources=[
os.path.join('amplpy', 'amplpython', 'amplpythonPYTHON_wrap.cxx')
],
)],
package_data={"": ls_dir("amplpy/")},
)
| # -*- coding: utf-8 -*-
from setuptools import setup, Extension
import platform
import os
with open('README.md') as f:
readme = f.read()
def ls_dir(base_dir):
"""List files recursively."""
base_dir = os.path.join(base_dir, "")
return [
os.path.join(dirpath.replace(base_dir, "", 1), f)
for (dirpath, dirnames, files) in os.walk(base_dir)
for f in files
]
x64 = platform.architecture()[0] == '64bit'
libdir = 'lib64' if x64 else 'lib32'
setup(
name='amplpy',
version='0.1.0a3',
description='Python API for AMPL',
long_description=readme,
author='Filipe Brandao',
author_email='fdabrandao@ampl.com',
url='https://github.com/ampl/amplpy',
license='BSD',
platforms='any',
classifiers=[
'Development Status :: 1 - Planning',
'Environment :: Console',
'Operating System :: OS Independent',
'Intended Audience :: Science/Research',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Topic :: Scientific/Engineering',
],
packages=['amplpy'],
ext_modules=[Extension(
'amplpy.amplpython._amplpython',
libraries=['ampl'],
library_dirs=[os.path.join('amplpy', 'amplpython', libdir)],
include_dirs=[os.path.join('amplpy', 'amplpython', 'include')],
runtime_library_dirs=[os.path.join('amplpy', 'amplpython', libdir)],
sources=[
os.path.join('amplpy', 'amplpython', 'amplpythonPYTHON_wrap.cxx')
],
)],
package_data={"": ls_dir("amplpy/")},
)
| bsd-3-clause | Python |
7686e645434a414629d12c8a73b98cfb16efdbe4 | upgrade dependencies : coop_html_editor 1.0.0 | ljean/coop_cms,ljean/coop_cms,ljean/coop_cms | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""package the lib"""
try:
from setuptools import setup, find_packages
except ImportError:
import ez_setup
ez_setup.use_setuptools()
from setuptools import setup, find_packages
VERSION = __import__('coop_cms').__version__
import os
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='apidev-coop_cms',
version=VERSION,
description='Small CMS built around a tree navigation open to any django models',
packages=find_packages(),
include_package_data=True,
author='Luc Jean',
author_email='ljean@apidev.fr',
license='BSD',
zip_safe=False,
install_requires=[
'django >= 1.6, <1.10',
'django-floppyforms',
'django-extensions',
'sorl-thumbnail',
'apidev-coop_colorbox >= 1.2.0',
'apidev-coop_bar >= 1.3.2',
'coop_html_editor >= 1.0.0',
'feedparser',
'beautifulsoup4',
'django-filetransfers',
'model_mommy',
'Pillow',
],
dependency_links=[
'git+https://github.com/ljean/coop_html_editor.git@73e067b3505a193c6244015fe606c30d98bb18de#egg=coop_html_editor',
],
long_description=open('README.rst').read(),
url='https://github.com/ljean/coop_cms/',
download_url='https://github.com/ljean/coop_cms/tarball/master',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Framework :: Django',
'Natural Language :: English',
'Natural Language :: French',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Internet :: WWW/HTTP :: WSGI :: Application',
],
)
| #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""package the lib"""
try:
from setuptools import setup, find_packages
except ImportError:
import ez_setup
ez_setup.use_setuptools()
from setuptools import setup, find_packages
VERSION = __import__('coop_cms').__version__
import os
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='apidev-coop_cms',
version=VERSION,
description='Small CMS built around a tree navigation open to any django models',
packages=find_packages(),
include_package_data=True,
author='Luc Jean',
author_email='ljean@apidev.fr',
license='BSD',
zip_safe=False,
install_requires=[
'django >= 1.6, <1.10',
'django-floppyforms',
'django-extensions',
'sorl-thumbnail',
'apidev-coop_colorbox >= 1.2.0',
'apidev-coop_bar >= 1.3.2',
'coop_html_editor >= 0.1.0',
'feedparser',
'beautifulsoup4',
'django-filetransfers',
'model_mommy',
'Pillow',
],
dependency_links=[
'git+https://github.com/ljean/coop_html_editor.git@73e067b3505a193c6244015fe606c30d98bb18de#egg=coop_html_editor',
],
long_description=open('README.rst').read(),
url='https://github.com/ljean/coop_cms/',
download_url='https://github.com/ljean/coop_cms/tarball/master',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Framework :: Django',
'Natural Language :: English',
'Natural Language :: French',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Internet :: WWW/HTTP :: WSGI :: Application',
],
)
| bsd-3-clause | Python |
9f73f4f32b5bff9ca2708d1ac78e1eb976becbbe | add classes to init | interrogator/corpkit,interrogator/corpkit | corpkit/__init__.py | corpkit/__init__.py | __all__ = ["interrogator",
"editor",
"plotter",
"conc",
"save",
"quickview",
"load",
"load_all_results",
"as_regex",
"new_project",
"make_corpus",
"flatten_treestring",
"interroplot",
"Corpus",
"Interrogation"]
__version__ = "1.77"
__author__ = "Daniel McDonald"
__license__ = "MIT"
import sys
import os
import inspect
# probably not needed, but adds corpkit to path for tregex.sh
corpath = inspect.getfile(inspect.currentframe())
baspat = os.path.dirname(corpath)
dicpath = os.path.join(baspat, 'dictionaries')
for p in [corpath, baspat, dicpath]:
if p not in sys.path:
sys.path.append(p)
if p not in os.environ["PATH"].split(':'):
os.environ["PATH"] += os.pathsep + p
from interrogator import interrogator
from editor import editor
from plotter import plotter
from conc import conc
from other import save
from other import load
from other import load_all_results
from other import quickview
from other import as_regex
from other import new_project
from other import interroplot
from make import make_corpus
from build import flatten_treestring
from corpus import Corpus
from interrogation import Interrogation
| __all__ = ["interrogator",
"editor",
"plotter",
"conc",
"save",
"quickview",
"load",
"load_all_results",
"as_regex",
"new_project",
"make_corpus",
"flatten_treestring",
"interroplot"]
__version__ = "1.77"
__author__ = "Daniel McDonald"
__license__ = "MIT"
import sys
import os
import inspect
# probably not needed, but adds corpkit to path for tregex.sh
corpath = inspect.getfile(inspect.currentframe())
baspat = os.path.dirname(corpath)
dicpath = os.path.join(baspat, 'dictionaries')
for p in [corpath, baspat, dicpath]:
if p not in sys.path:
sys.path.append(p)
if p not in os.environ["PATH"].split(':'):
os.environ["PATH"] += os.pathsep + p
from interrogator import interrogator
from editor import editor
from plotter import plotter
from conc import conc
from other import save
from other import load
from other import load_all_results
from other import quickview
from other import as_regex
from other import new_project
from other import interroplot
from make import make_corpus
from build import flatten_treestring
| mit | Python |
806d64ecf8d5e009dc7f31d1af873ff32fe84425 | Update version to 1.0 | regulusweb/django-oscar-api,crgwbr/django-oscar-api | setup.py | setup.py | from setuptools import setup, find_packages
__version__ = "1.0"
setup(
# package name in pypi
name='django-oscar-api',
# extract version from module.
version=__version__,
description="REST API module for django-oscar",
long_description=open('README.rst').read(),
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: Unix',
'Programming Language :: Python'
],
keywords='',
author='Lars van de Kerkhof, Martijn Jacobs',
author_email='lars@permanentmarkers.nl, martijn@devopsconsulting.nl',
url='https://github.com/tangentlabs/django-oscar-api',
license='BSD',
# include all packages in the egg, except the test package.
packages=find_packages(exclude=['ez_setup', 'examples', '*tests', '*fixtures', 'sandbox']),
# for avoiding conflict have one namespace for all apc related eggs.
namespace_packages=[],
# include non python files
include_package_data=True,
zip_safe=False,
# specify dependencies
install_requires=[
'setuptools',
'django-oscar>=1.1',
'djangorestframework>=3.1.0'
],
# mark test target to require extras.
extras_require={
'test': ['django-nose', 'coverage']
},
)
| from setuptools import setup, find_packages
__version__ = "0.0.37"
setup(
# package name in pypi
name='django-oscar-api',
# extract version from module.
version=__version__,
description="REST API module for django-oscar",
long_description=open('README.rst').read(),
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: Unix',
'Programming Language :: Python'
],
keywords='',
author='Lars van de Kerkhof, Martijn Jacobs',
author_email='lars@permanentmarkers.nl, martijn@devopsconsulting.nl',
url='https://github.com/tangentlabs/django-oscar-api',
license='BSD',
# include all packages in the egg, except the test package.
packages=find_packages(exclude=['ez_setup', 'examples', '*tests', '*fixtures', 'sandbox']),
# for avoiding conflict have one namespace for all apc related eggs.
namespace_packages=[],
# include non python files
include_package_data=True,
zip_safe=False,
# specify dependencies
install_requires=[
'setuptools',
'django-oscar>=1.1',
'djangorestframework>=3.1.0'
],
# mark test target to require extras.
extras_require={
'test': ['django-nose', 'coverage']
},
)
| bsd-3-clause | Python |
95077753702ac3441f5da07a2ee8f6a6f48e0890 | Fix wx backend for Py3 | ponty/pyscreenshot,ponty/pyscreenshot,ponty/pyscreenshot | pyscreenshot/plugins/wxscreen.py | pyscreenshot/plugins/wxscreen.py | import logging
import sys
from PIL import Image
PY3 = sys.version_info[0] >= 3
to_bytes = bytes if PY3 else buffer
log = logging.getLogger(__name__)
# based on:
# http://stackoverflow.com/questions/69645/take-a-screenshot-via-a-python-script-linux
class WxScreen(object):
name = 'wx'
childprocess = False
def __init__(self):
import wx
self.wx = wx
self.app = None
def grab(self, bbox=None):
wx = self.wx
if not self.app:
self.app = wx.App()
screen = wx.ScreenDC()
size = screen.GetSize()
if wx.__version__ >= '4':
bmp = wx.Bitmap(size[0], size[1])
else:
bmp = wx.EmptyBitmap(size[0], size[1])
mem = wx.MemoryDC(bmp)
mem.Blit(0, 0, size[0], size[1], screen, 0, 0)
del mem
if hasattr(bmp, 'ConvertToImage'):
myWxImage = bmp.ConvertToImage()
else:
myWxImage = wx.ImageFromBitmap(bmp)
im = Image.new('RGB', (myWxImage.GetWidth(), myWxImage.GetHeight()))
if hasattr(Image, 'frombytes'):
# for Pillow
im.frombytes(to_bytes(myWxImage.GetData()))
else:
# for PIL
im.fromstring(myWxImage.GetData())
if bbox:
im = im.crop(bbox)
return im
def grab_to_file(self, filename, bbox=None):
# bmp.SaveFile('screenshot.png', wx.BITMAP_TYPE_PNG)
im = self.grab(bbox)
im.save(filename)
def backend_version(self):
return self.wx.__version__
| from PIL import Image
import logging
log = logging.getLogger(__name__)
# based on:
# http://stackoverflow.com/questions/69645/take-a-screenshot-via-a-python-script-linux
class WxScreen(object):
name = 'wx'
childprocess = False
def __init__(self):
import wx
self.wx = wx
self.app = None
def grab(self, bbox=None):
wx = self.wx
if not self.app:
self.app = wx.App()
screen = wx.ScreenDC()
size = screen.GetSize()
if wx.__version__ >= '4':
bmp = wx.Bitmap(size[0], size[1])
else:
bmp = wx.EmptyBitmap(size[0], size[1])
mem = wx.MemoryDC(bmp)
mem.Blit(0, 0, size[0], size[1], screen, 0, 0)
del mem
if hasattr(bmp, 'ConvertToImage'):
myWxImage = bmp.ConvertToImage()
else:
myWxImage = wx.ImageFromBitmap(bmp)
im = Image.new('RGB', (myWxImage.GetWidth(), myWxImage.GetHeight()))
if hasattr(Image, 'frombytes'):
# for Pillow
im.frombytes(buffer(myWxImage.GetData()))
else:
# for PIL
im.fromstring(myWxImage.GetData())
if bbox:
im = im.crop(bbox)
return im
def grab_to_file(self, filename, bbox=None):
# bmp.SaveFile('screenshot.png', wx.BITMAP_TYPE_PNG)
im = self.grab(bbox)
im.save(filename)
def backend_version(self):
return self.wx.__version__
| bsd-2-clause | Python |
58fa7de8caf0061cfc1a5c86aca25855ffd29b04 | Update contact email. | etesync/journal-manager | 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='django-etesync-journal',
version='0.2.0',
packages=find_packages(),
include_package_data=True,
license='AGPLv3',
description='The server side implementation of the EteSync protocol.',
long_description=README,
url='https://www.etesync.com/',
author='EteSync',
author_email='development@etesync.com',
classifiers=[
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: AGPLv3',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
],
)
| 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='django-etesync-journal',
version='0.2.0',
packages=find_packages(),
include_package_data=True,
license='AGPLv3',
description='The server side implementation of the EteSync protocol.',
long_description=README,
url='https://www.etesync.com/',
author='EteSync',
author_email='contact.journal@etesync.com',
classifiers=[
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: AGPLv3',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
],
)
| agpl-3.0 | Python |
196baa9c2824c5d0409282f3b5cbe7c2f2ef01d5 | bump version number and update author | hmrc/service-manager,hmrc/service-manager,hmrc/service-manager,hmrc/service-manager | setup.py | setup.py |
from setuptools import setup
setup(name='servicemanager',
version='0.2.0',
description='A python tool to manage developing and testing with lots of microservices',
url='https://github.com/hmrc/service-manager',
author='hmrc-web-operations',
license='Apache Licence 2.0',
packages=['servicemanager', 'servicemanager.actions', 'servicemanager.server', 'servicemanager.service', 'servicemanager.thirdparty'],
install_requires=['requests==2.2.1','pymongo==3.0.1','bottle==0.12.4','pytest==2.5.2','argcomplete==0.8.1'],
scripts=['bin/sm', 'bin/smserver'],
zip_safe=False)
|
from setuptools import setup
setup(name='servicemanager',
version='0.1.0',
description='A python tool to manage developing and testing with lots of microservices',
url='https://github.com/hmrc/service-manager',
author='vaughansharman',
license='Apache Licence 2.0',
packages=['servicemanager', 'servicemanager.actions', 'servicemanager.server', 'servicemanager.service', 'servicemanager.thirdparty'],
install_requires=['requests==2.2.1','pymongo==3.0.1','bottle==0.12.4','pytest==2.5.2','argcomplete==0.8.1'],
scripts=['bin/sm', 'bin/smserver'],
zip_safe=False)
| apache-2.0 | Python |
decb2c611e3920855ff26a8eed53e125879a0019 | Fix the build | wandb/client,wandb/client,wandb/client | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup
with open('README.md') as readme_file:
readme = readme_file.read()
requirements = [
'Click>=6.0',
'gql>=0.1.0',
'requests>=2.0.0',
'inquirer>=2.1.11',
'six>=1.10.0',
'psutil>=5.2.2',
'watchdog>=0.8.3'
]
test_requirements = [
'mock>=2.0.0',
'tox-pyenv>=1.0.3'
]
setup(
name='wandb',
version='0.4.2',
description="A CLI and library for interacting with the Weights and Biases API.",
long_description=readme,
author="Chris Van Pelt",
author_email='vanpelt@gmail.co',
url='https://github.com/wandb/client',
packages=[
'wandb',
],
package_dir={'wandb':
'wandb'},
entry_points={
'console_scripts': [
'wandb=wandb.cli:cli',
'wb=wandb.cli:cli',
'wanbd=wandb.cli:cli'
]
},
include_package_data=True,
install_requires=requirements,
license="MIT license",
zip_safe=False,
keywords='wandb',
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
"Programming Language :: Python :: 2",
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
],
test_suite='tests',
tests_require=test_requirements
)
| #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup
with open('README.rst') as readme_file:
readme = readme_file.read()
with open('HISTORY.rst') as history_file:
history = history_file.read()
requirements = [
'Click>=6.0',
'gql>=0.1.0',
'requests>=2.0.0',
'inquirer>=2.1.11',
'six>=1.10.0',
'psutil>=5.2.2',
'watchdog>=0.8.3'
]
test_requirements = [
'mock>=2.0.0',
'tox-pyenv>=1.0.3'
]
setup(
name='wandb',
version='0.4.2',
description="A CLI and library for interacting with the Weights and Biases API.",
long_description=readme + '\n\n' + history,
author="Chris Van Pelt",
author_email='vanpelt@gmail.co',
url='https://github.com/wandb/client',
packages=[
'wandb',
],
package_dir={'wandb':
'wandb'},
entry_points={
'console_scripts': [
'wandb=wandb.cli:cli',
'wb=wandb.cli:cli',
'wanbd=wandb.cli:cli'
]
},
include_package_data=True,
install_requires=requirements,
license="MIT license",
zip_safe=False,
keywords='wandb',
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
"Programming Language :: Python :: 2",
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
],
test_suite='tests',
tests_require=test_requirements
)
| mit | Python |
4ecbec96d65b32be24ff9494982325f5fd40a2d6 | Add classifiers to setup.py | dave-shawley/helper,gmr/helper,gmr/helper | setup.py | setup.py | from setuptools import setup
setup(name='clihelper',
version='1.0.0',
description='Internal Command-Line Application Wrapper',
long_description=('clihelper is a wrapper for command-line daemons '
'providing a core Controller class and methods for '
'starting the application and setting configuration.'),
author='Gavin M. Roy',
author_email='gmr@meetme.com',
url='https://github.com/gmr/clihelper',
py_modules=['clihelper'],
install_requires=['couchconfig',
'logging-config',
'python-daemon',
'pyyaml'],
tests_requires=['mock', 'unittest2'],
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Topic :: Software Development :: Libraries',
'Topic :: Software Development :: Libraries :: Python Modules',
'License :: OSI Approved :: BSD License'],
zip_safe=True)
| from setuptools import setup
setup(name='clihelper',
version='1.0.0',
description='Internal Command-Line Application Wrapper',
long_description=('clihelper is a wrapper for command-line daemons '
'providing a core Controller class and methods for '
'starting the application and setting configuration.'),
author='Gavin M. Roy',
author_email='gmr@meetme.com',
url='https://github.com/gmr/clihelper',
py_modules=['clihelper'],
install_requires=['couchconfig',
'logging-config',
'python-daemon',
'pyyaml'],
tests_requires=['mock', 'unittest2'],
zip_safe=True)
| bsd-3-clause | Python |
a806077d98df37094caae91839e316152a7c660d | Update package metadata release status to 'Stable' (#5031) | googleapis/python-spanner,googleapis/python-spanner | setup.py | setup.py | # Copyright 2018 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import io
import os
import setuptools
# Package metadata.
name = 'google-cloud-spanner'
description = 'Cloud Spanner API client library'
version = '1.1.0'
# Should be one of:
# 'Development Status :: 3 - Alpha'
# 'Development Status :: 4 - Beta'
# 'Development Status :: 5 - Stable'
release_status = 'Development Status :: 5 - Stable'
dependencies = [
'google-cloud-core<0.29dev,>=0.28.0',
'google-api-core[grpc]<2.0.0dev,>=1.1.0',
'grpc-google-iam-v1<0.12dev,>=0.11.4',
]
extras = {
}
# Setup boilerplate below this line.
package_root = os.path.abspath(os.path.dirname(__file__))
readme_filename = os.path.join(package_root, 'README.rst')
with io.open(readme_filename, encoding='utf-8') as readme_file:
readme = readme_file.read()
# Only include packages under the 'google' namespace. Do not include tests,
# benchmarks, etc.
packages = [
package for package in setuptools.find_packages()
if package.startswith('google')]
# Determine which namespaces are needed.
namespaces = ['google']
if 'google.cloud' in packages:
namespaces.append('google.cloud')
setuptools.setup(
name=name,
version=version,
description=description,
long_description=readme,
author='Google LLC',
author_email='googleapis-packages@google.com',
license='Apache 2.0',
url='https://github.com/GoogleCloudPlatform/google-cloud-python',
classifiers=[
release_status,
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software 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',
'Operating System :: OS Independent',
'Topic :: Internet',
],
platforms='Posix; MacOS X; Windows',
packages=packages,
namespace_packages=namespaces,
install_requires=dependencies,
extras_require=extras,
include_package_data=True,
zip_safe=False,
)
| # Copyright 2018 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import io
import os
import setuptools
# Package metadata.
name = 'google-cloud-spanner'
description = 'Cloud Spanner API client library'
version = '1.1.0'
# Should be one of:
# 'Development Status :: 3 - Alpha'
# 'Development Status :: 4 - Beta'
# 'Development Status :: 5 - Stable'
release_status = 'Development Status :: 4 - Beta'
dependencies = [
'google-cloud-core<0.29dev,>=0.28.0',
'google-api-core[grpc]<2.0.0dev,>=1.1.0',
'grpc-google-iam-v1<0.12dev,>=0.11.4',
]
extras = {
}
# Setup boilerplate below this line.
package_root = os.path.abspath(os.path.dirname(__file__))
readme_filename = os.path.join(package_root, 'README.rst')
with io.open(readme_filename, encoding='utf-8') as readme_file:
readme = readme_file.read()
# Only include packages under the 'google' namespace. Do not include tests,
# benchmarks, etc.
packages = [
package for package in setuptools.find_packages()
if package.startswith('google')]
# Determine which namespaces are needed.
namespaces = ['google']
if 'google.cloud' in packages:
namespaces.append('google.cloud')
setuptools.setup(
name=name,
version=version,
description=description,
long_description=readme,
author='Google LLC',
author_email='googleapis-packages@google.com',
license='Apache 2.0',
url='https://github.com/GoogleCloudPlatform/google-cloud-python',
classifiers=[
release_status,
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software 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',
'Operating System :: OS Independent',
'Topic :: Internet',
],
platforms='Posix; MacOS X; Windows',
packages=packages,
namespace_packages=namespaces,
install_requires=dependencies,
extras_require=extras,
include_package_data=True,
zip_safe=False,
)
| apache-2.0 | Python |
67b138bc83bc5caa7f8337287a3349fbc86705f5 | edit version | kyungtaekLIM/regexXML | setup.py | setup.py | from distutils.core import setup
setup(
name='regexXML',
version='0.2dev',
packages=['regexXML',],
license='Apache 2.0',
long_description=open('README.md').read(),
)
| from distutils.core import setup
setup(
name='regexXML',
version='0.1dev',
packages=['regexXML',],
license='Apache 2.0',
long_description=open('README.md').read(),
)
| apache-2.0 | Python |
86f3c75ff996a42da29125cc57dcf78bfe196caf | Fix typo | fedora-infra/bugzilla2fedmsg | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='bugzilla2fedmsg',
version='1.0.0',
description='Consume Bugzilla messages over STOMP and republish to Fedora Messaging',
license='LGPLv2+',
author='Ralph Bean',
author_email='rbean@redhat.com',
url='https://github.com/fedora-infra/bugzilla2fedmsg',
# Possible options are at https://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
],
install_requires=[
"fedora_messaging",
"python-dateutil",
"stompest",
"pyasn1",
"click",
],
packages=find_packages(),
entry_points={
"console_scripts": ["bugzilla2fedmsg=bugzilla2fedmsg:cli"],
"fedora.messages": [
"bugzilla2fedmsg.messageV1bz4=bugzilla2fedmsg_schema.schema:MessageV1BZ4",
"bugzilla2fedmsg.messageV1=bugzilla2fedmsg_schema.schema:MessageV1",
],
},
)
| #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='bugzilla2fedmsg',
version='1.0.0',
description='Consume Bugzilla messages over STOMP and republish to Fedora Messaging',
license='LGPLv2+',
author='Ralph Bean',
author_email='rbean@redhat.com',
url='https://github.com/fedora-infra/bugzilla2fedmsg',
# Possible options are at https://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
],
install_requires=[
"fedora_messaging",
"python-dateutil",
"stompest",
"pyasn1",
"click",
],
packages=find_packages(),
entry_points={
"console_scripts": ["bugzilla2fedmsg=bugzilla2fedmsg:cli"],
"fedora.messages": [
"bugzilla2fedmsg.messageV1bz4=bugzilla2fedmsg_schema.schema:MessageV1BZ4",
"bugzilla2fedmsg.messageV1=bugzilla2fedmsg_schema.schema:MessageV1",
],
},
)
| lgpl-2.1 | Python |
51c777a29b9b6fcc07459ad894f6c256db8e6c78 | Update setup.py. | zl352773277/django-redis,lucius-feng/django-redis,GetAmbassador/django-redis,yanheng/django-redis,smahs/django-redis | setup.py | setup.py | from setuptools import setup
description = """
Redis Cache Backend for Django. (This is fork of django-redis-cache)
"""
setup(
name = "django-redis",
url = "https://github.com/niwibe/django-redis",
author = "Andrei Antoukh",
author_email = "niwi@niwi.be",
version='3.0',
packages = [
"redis_cache",
"redis_cache.stats"
],
description = description.strip(),
install_requires=[
'redis>=2.7.0',
],
zip_safe=False,
include_package_data = True,
package_data = {
'': ['*.html'],
},
classifiers = [
"Development Status :: 5 - Production/Stable",
"Operating System :: OS Independent",
"Environment :: Web Environment",
"Framework :: Django",
"License :: OSI Approved :: BSD License",
"Intended Audience :: Developers",
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.2",
"Programming Language :: Python :: 3.3",
"Topic :: Software Development :: Libraries",
"Topic :: Utilities",
],
)
| from setuptools import setup
description = """
Redis Cache Backend for Django. (This is fork of django-redis-cache)
"""
setup(
name = "django-redis",
url = "https://github.com/niwibe/django-redis",
author = "Andrei Antoukh",
author_email = "niwi@niwi.be",
version=':versiontools:redis_cache:',
packages = [
"redis_cache",
"redis_cache.stats"
],
description = description.strip(),
install_requires=[
'redis>=2.4.5',
],
setup_requires = [
'versiontools >= 1.8',
],
zip_safe=False,
include_package_data = True,
package_data = {
'': ['*.html'],
},
classifiers = [
"Development Status :: 5 - Production/Stable",
"Programming Language :: Python",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries",
"Topic :: Utilities",
"Environment :: Web Environment",
"Framework :: Django",
],
)
| bsd-3-clause | Python |
46a32359974f47d2fd0097d8a2cf29c678914575 | rename distribution to ecreall_dace | ecreall/dace | setup.py | setup.py | import os
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.rst')).read()
CHANGES = open(os.path.join(here, 'CHANGES.rst')).read()
requires = [
'BTrees',
'pyramid',
'pyramid_tm',
'pyzmq',
'rwproperty',
'substanced',
'tornado',
'zope.processlifetime',
]
setup(name='ecreall_dace',
version='0.0',
description='Data-centric engine',
long_description=README + '\n\n' + CHANGES,
classifiers=[
"Programming Language :: Python",
"Programming Language :: Python :: 3.4",
"Framework :: Pylons",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
],
author='',
author_email='',
url='',
keywords='',
packages=find_packages(),
include_package_data=True,
zip_safe=False,
install_requires=requires,
tests_require=requires,
test_suite="dace",
extras_require = dict(
test=[],
),
entry_points="""\
""",
)
| import os
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.rst')).read()
CHANGES = open(os.path.join(here, 'CHANGES.rst')).read()
requires = [
'BTrees',
'pyramid',
'pyramid_tm',
'pyzmq',
'rwproperty',
'substanced',
'tornado',
'zope.processlifetime',
]
setup(name='dace',
version='0.0',
description='Data-centric engine',
long_description=README + '\n\n' + CHANGES,
classifiers=[
"Programming Language :: Python",
"Programming Language :: Python :: 3.4",
"Framework :: Pylons",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
],
author='',
author_email='',
url='',
keywords='',
packages=find_packages(),
include_package_data=True,
zip_safe=False,
install_requires=requires,
tests_require=requires,
test_suite="dace",
extras_require = dict(
test=[],
),
entry_points="""\
""",
)
| agpl-3.0 | Python |
521e3448160625d598330f55edf6149c79c56c51 | set license in setup script | byteweaver/django-posts,byteweaver/django-posts | setup.py | setup.py | import os
from setuptools import setup, find_packages
import posts
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='django-posts',
version=posts.__version__,
description='A generic posts app for django',
long_description=read('README.md'),
license='BSD',
author='noxan',
author_email='noxan@redmoonstudios.de',
url='https://github.com/noxan/django-posts',
packages=find_packages(),
include_package_data=True,
install_requires=[
'Django',
],
)
| import os
from setuptools import setup, find_packages
import posts
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='django-posts',
version=posts.__version__,
description='A generic posts app for django',
long_description=read('README.md'),
author='noxan',
author_email='noxan@redmoonstudios.de',
url='https://github.com/noxan/django-posts',
packages=find_packages(),
include_package_data=True,
install_requires=[
'Django',
],
)
| bsd-3-clause | Python |
60e823d1e8f1272c171e1bf9b5bc510173304ba6 | update setup.py | JDReutt/BayesDB,poppingtonic/BayesDB,JDReutt/BayesDB,JDReutt/BayesDB,JDReutt/BayesDB,poppingtonic/BayesDB,poppingtonic/BayesDB,JDReutt/BayesDB,poppingtonic/BayesDB,poppingtonic/BayesDB | setup.py | setup.py | #!/usr/bin/env python
from distutils.core import setup
setup(
name='BayesDB',
version='0.1',
author='MIT Probabilistic Computing Project',
author_email = 'bayesdb@mit.edu',
url='probcomp.csail.mit.edu/bayesdb',
long_description='BayesDB',
packages=['bayesdb', 'bayesdb.tests']
ext_modules=ext_modules,
)
| #!/usr/bin/python
import os
from distutils.core import setup, Extension
ext_modules = []
packages = ['bayesdb', 'bayesdb.tests']
setup(
name='BayesDB',
version='0.1',
author='MIT.PCP',
author_email = 'bayesdb@mit.edu',
url='probcomp.csail.mit.edu/bayesdb',
long_description='BayesDB',
packages=packages,
package_dir={'bayesdb':'bayesdb/'},
ext_modules=ext_modules,
)
| apache-2.0 | Python |
16ef3b173e357ec22d2b3f0e601b40be634886c6 | Bump version | locationlabs/jsonschema-types | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup, find_packages
__version__ = '0.5'
__build__ = ''
setup(name='jsonschematypes',
version=__version__ + __build__,
description='JSON Schema type generator',
author='Location Labs',
author_email='info@locationlabs.com',
url='http://www.locationlabs.com',
packages=find_packages(exclude=['*.tests']),
setup_requires=[
'nose>=1.0'
],
install_requires=[
'jsonschema>=2.4.0',
'inflection>=0.3.1',
'python-magic>=0.4.6',
],
tests_require=[
'coverage>=3.7.1',
'PyHamcrest>=1.8.3',
],
test_suite='jsonschematypes.tests',
)
| #!/usr/bin/env python
from setuptools import setup, find_packages
__version__ = '0.4'
__build__ = ''
setup(name='jsonschematypes',
version=__version__ + __build__,
description='JSON Schema type generator',
author='Location Labs',
author_email='info@locationlabs.com',
url='http://www.locationlabs.com',
packages=find_packages(exclude=['*.tests']),
setup_requires=[
'nose>=1.0'
],
install_requires=[
'jsonschema>=2.4.0',
'inflection>=0.3.1',
'python-magic>=0.4.6',
],
tests_require=[
'coverage>=3.7.1',
'PyHamcrest>=1.8.3',
],
test_suite='jsonschematypes.tests',
)
| apache-2.0 | Python |
06def4497b3472acda42cf215ca7d30f30d39c6f | Bump minimum 'api_core' version for all GAPIC libs to 1.4.1. (#6391) | googleapis/python-language,googleapis/python-language | setup.py | setup.py | # Copyright 2018 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import io
import os
import setuptools
# Package metadata.
name = 'google-cloud-language'
description = 'Google Cloud Natural Language API client library'
version = '1.1.0'
# Should be one of:
# 'Development Status :: 3 - Alpha'
# 'Development Status :: 4 - Beta'
# 'Development Status :: 5 - Production/Stable'
release_status = 'Development Status :: 5 - Production/Stable'
dependencies = [
'google-api-core[grpc] >= 1.4.1, < 2.0.0dev',
'enum34;python_version<"3.4"'
]
extras = {
}
# Setup boilerplate below this line.
package_root = os.path.abspath(os.path.dirname(__file__))
readme_filename = os.path.join(package_root, 'README.rst')
with io.open(readme_filename, encoding='utf-8') as readme_file:
readme = readme_file.read()
# Only include packages under the 'google' namespace. Do not include tests,
# benchmarks, etc.
packages = [
package for package in setuptools.find_packages()
if package.startswith('google')]
# Determine which namespaces are needed.
namespaces = ['google']
if 'google.cloud' in packages:
namespaces.append('google.cloud')
setuptools.setup(
name=name,
version=version,
description=description,
long_description=readme,
author='Google LLC',
author_email='googleapis-packages@google.com',
license='Apache 2.0',
url='https://github.com/GoogleCloudPlatform/google-cloud-python',
classifiers=[
release_status,
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software 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',
'Operating System :: OS Independent',
'Topic :: Internet',
],
platforms='Posix; MacOS X; Windows',
packages=packages,
namespace_packages=namespaces,
install_requires=dependencies,
extras_require=extras,
include_package_data=True,
zip_safe=False,
)
| # Copyright 2018 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import io
import os
import setuptools
# Package metadata.
name = 'google-cloud-language'
description = 'Google Cloud Natural Language API client library'
version = '1.1.0'
# Should be one of:
# 'Development Status :: 3 - Alpha'
# 'Development Status :: 4 - Beta'
# 'Development Status :: 5 - Production/Stable'
release_status = 'Development Status :: 5 - Production/Stable'
dependencies = [
'google-api-core[grpc]<2.0.0dev,>=0.1.1',
'enum34;python_version<"3.4"'
]
extras = {
}
# Setup boilerplate below this line.
package_root = os.path.abspath(os.path.dirname(__file__))
readme_filename = os.path.join(package_root, 'README.rst')
with io.open(readme_filename, encoding='utf-8') as readme_file:
readme = readme_file.read()
# Only include packages under the 'google' namespace. Do not include tests,
# benchmarks, etc.
packages = [
package for package in setuptools.find_packages()
if package.startswith('google')]
# Determine which namespaces are needed.
namespaces = ['google']
if 'google.cloud' in packages:
namespaces.append('google.cloud')
setuptools.setup(
name=name,
version=version,
description=description,
long_description=readme,
author='Google LLC',
author_email='googleapis-packages@google.com',
license='Apache 2.0',
url='https://github.com/GoogleCloudPlatform/google-cloud-python',
classifiers=[
release_status,
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software 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',
'Operating System :: OS Independent',
'Topic :: Internet',
],
platforms='Posix; MacOS X; Windows',
packages=packages,
namespace_packages=namespaces,
install_requires=dependencies,
extras_require=extras,
include_package_data=True,
zip_safe=False,
)
| apache-2.0 | Python |
204994603fa5350a12617e508e0097a3586d8f59 | fix dependencies, bump to 0.3.0 | abrasive/nxBender | setup.py | setup.py | from setuptools import setup
setup(name='nxBender',
version='0.3.0',
packages=['nxbender'],
entry_points={
'console_scripts': [
'nxBender = nxbender:main'
]
},
install_requires=[
'ConfigArgParse',
'ipaddress',
'pyroute2',
'requests',
'colorlog',
],
)
| from setuptools import setup
setup(name='nxBender',
version='0.2.0',
packages=['nxbender'],
entry_points={
'console_scripts': [
'nxBender = nxbender:main'
]
},
install_requires=[
'ConfigArgParse',
'ipaddress',
'pyroute2',
],
)
| bsd-3-clause | Python |
00601a57f00703cef2fb9a8031b14222b6aec21c | add minimum lower version for tileforge dependency | tsauerwein/c2cgeoportal,tsauerwein/c2cgeoportal,tsauerwein/c2cgeoportal,tsauerwein/c2cgeoportal | setup.py | setup.py | import os
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
README = "c2cgeoportal, generic gis protail made by camptocamp"
requires = [
'pyramid',
'WebError',
'psycopg2',
'sqlalchemy',
'sqlalchemy-migrate',
'sqlahelper',
'pyramid_tm',
'papyrus',
'papyrus_ogcproxy',
'httplib2',
'Babel',
'pyramid_formalchemy>=0.4.2',
'fa.jquery>=0.9.5',
'fanstatic>=0.11.3',
'GeoFormAlchemy>=0.4',
'OWSLib',
'tileforge>=0.2',
'JSTools',
'nose',
'nosexcover'
]
tests_require = requires + [
'mock',
]
setup(name='c2cgeoportal',
version='0.2',
description='c2cgeoportal',
long_description=README,
classifiers=[
"Programming Language :: Python",
"Framework :: Pylons",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
],
author='camptocamp',
author_email='info@camptocamp.com',
url='http://www.camptocamp.com/geospatial-solutions',
keywords='web gis geoportail c2cgeoportal geocommune pyramid',
packages=find_packages(),
include_package_data=True,
message_extractors={'c2cgeoportal': [
('static/**', 'ignore', None),
('**.py', 'python', None),
('templates/**', 'mako', {'input_encoding': 'utf-8'})]},
zip_safe=False,
install_requires=requires,
tests_require=tests_require,
test_suite="c2cgeoportal",
entry_points = {
'console_scripts': [
'print_tpl = c2cgeoportal.scripts.print_tpl:main',
'manage_users = c2cgeoportal.scripts.manage_users:main',
],
'paste.paster_create_template': [
'c2cgeoportal_create = paste_templates:TemplateCreate',
'c2cgeoportal_update = paste_templates:TemplateUpdate',
],
'fanstatic.libraries': [
'admin = c2cgeoportal.forms:fanstatic_lib',
],
}
)
| import os
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
README = "c2cgeoportal, generic gis protail made by camptocamp"
requires = [
'pyramid',
'WebError',
'psycopg2',
'sqlalchemy',
'sqlalchemy-migrate',
'sqlahelper',
'pyramid_tm',
'papyrus',
'papyrus_ogcproxy',
'httplib2',
'Babel',
'pyramid_formalchemy>=0.4.2',
'fa.jquery>=0.9.5',
'fanstatic>=0.11.3',
'GeoFormAlchemy>=0.4',
'OWSLib',
'tileforge',
'JSTools',
'nose',
'nosexcover'
]
tests_require = requires + [
'mock',
]
setup(name='c2cgeoportal',
version='0.2',
description='c2cgeoportal',
long_description=README,
classifiers=[
"Programming Language :: Python",
"Framework :: Pylons",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
],
author='camptocamp',
author_email='info@camptocamp.com',
url='http://www.camptocamp.com/geospatial-solutions',
keywords='web gis geoportail c2cgeoportal geocommune pyramid',
packages=find_packages(),
include_package_data=True,
message_extractors={'c2cgeoportal': [
('static/**', 'ignore', None),
('**.py', 'python', None),
('templates/**', 'mako', {'input_encoding': 'utf-8'})]},
zip_safe=False,
install_requires=requires,
tests_require=tests_require,
test_suite="c2cgeoportal",
entry_points = {
'console_scripts': [
'print_tpl = c2cgeoportal.scripts.print_tpl:main',
'manage_users = c2cgeoportal.scripts.manage_users:main',
],
'paste.paster_create_template': [
'c2cgeoportal_create = paste_templates:TemplateCreate',
'c2cgeoportal_update = paste_templates:TemplateUpdate',
],
'fanstatic.libraries': [
'admin = c2cgeoportal.forms:fanstatic_lib',
],
}
)
| bsd-2-clause | Python |
eee5008d5e8f7ae29405491962d3adb1af375e44 | Add hypothesis as test requirement. | drvinceknight/Nashpy | setup.py | setup.py | from setuptools import setup, find_packages
import unittest
import doctest
# Read in the version number
exec(open('src/nash/version.py', 'r').read())
requirements = ["numpy==1.11.2"]
test_requirements = ['hypothesis>=3.6.0']
def test_suite():
"""Discover all tests in the tests dir"""
test_loader = unittest.TestLoader()
# Read in unit tests
test_suite = test_loader.discover('tests')
# Read in doctests from README
test_suite.addTests(doctest.DocFileSuite('README.md',
optionflags=doctest.ELLIPSIS))
return test_suite
setup(
name='nashpy',
version=__version__,
install_requires=requirements,
tests_require=test_requirements,
author='Vince Knight, James Campbell',
author_email=('knightva@cardiff.ac.uk'),
packages=find_packages('src'),
package_dir={"": "src"},
test_suite='setup.test_suite',
url='',
license='The MIT License (MIT)',
description='A library to compute equilibria of 2 player normal form games',
)
| from setuptools import setup, find_packages
import unittest
import doctest
# Read in the version number
exec(open('src/nash/version.py', 'r').read())
requirements = ["numpy==1.11.2"]
def test_suite():
"""Discover all tests in the tests dir"""
test_loader = unittest.TestLoader()
# Read in unit tests
test_suite = test_loader.discover('tests')
# Read in doctests from README
test_suite.addTests(doctest.DocFileSuite('README.md',
optionflags=doctest.ELLIPSIS))
return test_suite
setup(
name='nashpy',
version=__version__,
install_requires=requirements,
author='Vince Knight, James Campbell',
author_email=('knightva@cardiff.ac.uk'),
packages=find_packages('src'),
package_dir={"": "src"},
test_suite='setup.test_suite',
url='',
license='The MIT License (MIT)',
description='A library to compute equilibria of 2 player normal form games',
)
| mit | Python |
428c827cef10c4677a4af592d1dfaafce6480087 | Install require beautifulsoup4 | Fantomas42/django-emoticons,Fantomas42/django-emoticons | setup.py | setup.py | """Setup script for django-emoticons"""
import os
from setuptools import setup
from setuptools import find_packages
import emoticons
setup(
name='django-emoticons',
version=emoticons.__version__,
description=('A usefull and incredible Django application '
'that allow you to use emoticons in your templates :)'),
long_description=open(os.path.join('README.rst')).read(),
keywords='django, emoticons, smiley',
author=emoticons.__author__,
author_email=emoticons.__email__,
url=emoticons.__url__,
license=emoticons.__license__,
zip_safe=False,
include_package_data=True,
packages=find_packages(exclude=['emoticons.demo']),
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'],
install_requires=['beautifulsoup4']
)
| """Setup script for django-emoticons"""
import os
from setuptools import setup
from setuptools import find_packages
import emoticons
setup(
name='django-emoticons',
version=emoticons.__version__,
description=('A usefull and incredible Django application '
'that allow you to use emoticons in your templates :)'),
long_description=open(os.path.join('README.rst')).read(),
keywords='django, emoticons, smiley',
author=emoticons.__author__,
author_email=emoticons.__email__,
url=emoticons.__url__,
license=emoticons.__license__,
zip_safe=False,
include_package_data=True,
packages=find_packages(exclude=['emoticons.demo']),
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'],
)
| bsd-3-clause | Python |
6467e33ebf66a162afb83f33a3245f08a76ee24b | bump version 1.5.2 | christophmark/bayesloop | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup
setup(
name='bayesloop',
packages=['bayesloop'],
version='1.5.2',
description='Probabilistic programming framework that facilitates objective model selection for time-varying parameter models.',
url='http://bayesloop.com',
download_url = 'https://github.com/christophmark/bayesloop/tarball/1.5.2',
author='Christoph Mark',
author_email='christoph.mark@fau.de',
license='The MIT License (MIT)',
install_requires=['numpy>=1.11.0', 'scipy>=0.17.1', 'sympy>=1.0', 'matplotlib>=1.5.1', 'tqdm>=4.10.0', 'dill>=0.2.5'],
keywords=['bayes', 'inference', 'fitting', 'model selection', 'hypothesis testing', 'time series', 'time-varying', 'marginal likelihood'],
classifiers=[],
)
| #!/usr/bin/env python
from setuptools import setup
setup(
name='bayesloop',
packages=['bayesloop'],
version='1.5.1',
description='Probabilistic programming framework that facilitates objective model selection for time-varying parameter models.',
url='http://bayesloop.com',
download_url = 'https://github.com/christophmark/bayesloop/tarball/1.5.1',
author='Christoph Mark',
author_email='christoph.mark@fau.de',
license='The MIT License (MIT)',
install_requires=['numpy>=1.11.0', 'scipy>=0.17.1', 'sympy>=1.0', 'matplotlib>=1.5.1', 'tqdm>=4.10.0', 'dill>=0.2.5'],
keywords=['bayes', 'inference', 'fitting', 'model selection', 'hypothesis testing', 'time series', 'time-varying', 'marginal likelihood'],
classifiers=[],
)
| mit | Python |
972205aded6a5a6bc2300e154f65f0ccaef8262b | fix #4320 use explicit Flask and Werkzeug versions (#4358) | radiasoft/sirepo,radiasoft/sirepo,radiasoft/sirepo,radiasoft/sirepo,radiasoft/sirepo | setup.py | setup.py | # -*- coding: utf-8 -*-
u"""Sirepo setup script
:copyright: Copyright (c) 2015-2018 RadiaSoft LLC. All Rights Reserved.
:license: http://www.apache.org/licenses/LICENSE-2.0.html
"""
import pykern.pksetup
pykern.pksetup.setup(
author='RadiaSoft LLC.',
author_email='pip@sirepo.com',
description='accelerator code gui',
install_requires=[
'Flask==2.0.3',
'SQLAlchemy',
'aenum',
'asyncssh',
'cryptography>=2.8',
'futures',
'numconv',
'numpy',
'pyIsEmail',
'pykern',
'pytz',
'requests',
'tornado',
'user-agents',
'uwsgi',
'werkzeug==2.0.3',
# Optional dependencies
# required for email login and smtp
'Authlib>=0.13',
'dnspython',
# required for sbatch agent
'asyncssh',
],
license='http://www.apache.org/licenses/LICENSE-2.0.html',
name='sirepo',
url='http://sirepo.com',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Framework :: Flask',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: Apache Software License',
'Natural Language :: English',
'Operating System :: POSIX :: Linux',
'Programming Language :: JavaScript',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.7',
'Topic :: Scientific/Engineering :: Physics',
'Topic :: Software Development :: Libraries :: Application Frameworks',
],
)
| # -*- coding: utf-8 -*-
u"""Sirepo setup script
:copyright: Copyright (c) 2015-2018 RadiaSoft LLC. All Rights Reserved.
:license: http://www.apache.org/licenses/LICENSE-2.0.html
"""
import pykern.pksetup
pykern.pksetup.setup(
author='RadiaSoft LLC.',
author_email='pip@sirepo.com',
description='accelerator code gui',
install_requires=[
'Flask>=1.1',
'SQLAlchemy',
'aenum',
'asyncssh',
'cryptography>=2.8',
'futures',
'numconv',
'numpy',
'pyIsEmail',
'pykern',
'pytz',
'requests',
'tornado',
'user-agents',
'uwsgi',
'werkzeug',
# Optional dependencies
# required for email login and smtp
'Authlib>=0.13',
'dnspython',
# required for sbatch agent
'asyncssh',
],
license='http://www.apache.org/licenses/LICENSE-2.0.html',
name='sirepo',
url='http://sirepo.com',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Framework :: Flask',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: Apache Software License',
'Natural Language :: English',
'Operating System :: POSIX :: Linux',
'Programming Language :: JavaScript',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.7',
'Topic :: Scientific/Engineering :: Physics',
'Topic :: Software Development :: Libraries :: Application Frameworks',
],
)
| apache-2.0 | Python |
9e8d9bebfa3aad823cba5bf7cbf822d432e155cf | Update Licence in setup.py to AGPLv3 | fdroidtravis/fdroidserver,f-droid/fdroid-server,f-droid/fdroidserver,f-droid/fdroid-server,f-droid/fdroidserver,fdroidtravis/fdroidserver,f-droid/fdroid-server,f-droid/fdroidserver,f-droid/fdroidserver,fdroidtravis/fdroidserver,f-droid/fdroidserver,fdroidtravis/fdroidserver,f-droid/fdroid-server,f-droid/fdroid-server | setup.py | setup.py | #!/usr/bin/env python2
from setuptools import setup
import sys
# workaround issue on OSX, where sys.prefix is not an installable location
if sys.platform == 'darwin' and sys.prefix.startswith('/System'):
data_prefix = '.'
else:
data_prefix = sys.prefix
setup(name='fdroidserver',
version='0.4.0',
description='F-Droid Server Tools',
long_description=open('README.md').read(),
author='The F-Droid Project',
author_email='team@f-droid.org',
url='https://f-droid.org',
packages=['fdroidserver'],
scripts=['fdroid', 'fd-commit'],
data_files=[
(data_prefix + '/share/doc/fdroidserver/examples',
['buildserver/config.buildserver.py',
'examples/config.py',
'examples/makebs.config.py',
'examples/opensc-fdroid.cfg',
'examples/fdroid-icon.png']),
],
install_requires=[
'mwclient',
'paramiko',
'Pillow',
'apache-libcloud >= 0.14.1',
'pyasn1',
'pyasn1-modules',
'PyYAML',
'requests',
],
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)'
'Operating System :: POSIX',
'Topic :: Utilities',
],
)
| #!/usr/bin/env python2
from setuptools import setup
import sys
# workaround issue on OSX, where sys.prefix is not an installable location
if sys.platform == 'darwin' and sys.prefix.startswith('/System'):
data_prefix = '.'
else:
data_prefix = sys.prefix
setup(name='fdroidserver',
version='0.4.0',
description='F-Droid Server Tools',
long_description=open('README.md').read(),
author='The F-Droid Project',
author_email='team@f-droid.org',
url='https://f-droid.org',
packages=['fdroidserver'],
scripts=['fdroid', 'fd-commit'],
data_files=[
(data_prefix + '/share/doc/fdroidserver/examples',
['buildserver/config.buildserver.py',
'examples/config.py',
'examples/makebs.config.py',
'examples/opensc-fdroid.cfg',
'examples/fdroid-icon.png']),
],
install_requires=[
'mwclient',
'paramiko',
'Pillow',
'apache-libcloud >= 0.14.1',
'pyasn1',
'pyasn1-modules',
'PyYAML',
'requests',
],
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
'Operating System :: POSIX',
'Topic :: Utilities',
],
)
| agpl-3.0 | Python |
6d24a10171fccea49a73782d79d098620dada62f | add remote init to scripts | ondrejsika/deploy,ondrejsika/deploy | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
setup(
name = "deploy",
version = "1.1.0",
url = 'http://ondrejsika.com/docs/deploy',
download_url = 'https://github.com/sikaondrej/deploy',
license = 'GNU LGPL v.3',
description = "Easy deploy Python WSGI apps",
author = 'Ondrej Sika',
author_email = 'dev@ondrejsika.com',
packages = find_packages(),
scripts = [
"deploy/bin/deploy",
"deploy/bin/deploy-startserver",
"deploy/bin/deploy-init",
"deploy/bin/deploy-remote",
"deploy/bin/deploy-remote-init",
],
install_requires = ["cryptedserver"],
include_package_data = True,
)
| #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
setup(
name = "deploy",
version = "1.1.0",
url = 'http://ondrejsika.com/docs/deploy',
download_url = 'https://github.com/sikaondrej/deploy',
license = 'GNU LGPL v.3',
description = "Easy deploy Python WSGI apps",
author = 'Ondrej Sika',
author_email = 'dev@ondrejsika.com',
packages = find_packages(),
scripts = ["deploy/bin/deploy", "deploy/bin/deploy-startserver", "deploy/bin/deploy-init", "deploy/bin/deploy-remote"],
install_requires = ["cryptedserver"],
include_package_data = True,
)
| mit | Python |
93c49b328b97aaac3f9fbfbccd872a48fae852f0 | bump version to 0.3.0 | rdeits/meshcat-python | setup.py | setup.py | import sys
from setuptools import setup, find_packages
setup(name="meshcat",
version="0.3.0",
description="WebGL-based visualizer for 3D geometries and scenes",
url="https://github.com/rdeits/meshcat-python",
download_url="https://github.com/rdeits/meshcat-python/archive/v0.3.0.tar.gz",
author="Robin Deits",
author_email="mail@robindeits.com",
license="MIT",
packages=find_packages("src"),
package_dir={"": "src"},
test_suite="meshcat",
entry_points={
"console_scripts": [
"meshcat-server=meshcat.servers.zmqserver:main"
]
},
install_requires=[
"ipython >= 5",
"u-msgpack-python >= 2.4.1",
"numpy >= 1.14.0",
"tornado >= 4.0.0",
"pyzmq >= 17.0.0",
"pyngrok >= 4.1.6",
"pillow >= 7.0.0"
],
zip_safe=False,
include_package_data=True
)
| import sys
from setuptools import setup, find_packages
setup(name="meshcat",
version="0.2.0",
description="WebGL-based visualizer for 3D geometries and scenes",
url="https://github.com/rdeits/meshcat-python",
download_url="https://github.com/rdeits/meshcat-python/archive/v0.2.0.tar.gz",
author="Robin Deits",
author_email="mail@robindeits.com",
license="MIT",
packages=find_packages("src"),
package_dir={"": "src"},
test_suite="meshcat",
entry_points={
"console_scripts": [
"meshcat-server=meshcat.servers.zmqserver:main"
]
},
install_requires=[
"ipython >= 5",
"u-msgpack-python >= 2.4.1",
"numpy >= 1.14.0",
"tornado >= 4.0.0",
"pyzmq >= 17.0.0",
"pyngrok >= 4.1.6",
"pillow >= 7.0.0"
],
zip_safe=False,
include_package_data=True
)
| mit | Python |
c447d41dea2a5ccc2c3afc772d4791591b9a3365 | Prepare release 1.2.0 | icometrix/dicom2nifti,icometrix/dicom2nifti | setup.py | setup.py | import os
from distutils.core import setup
from setuptools import find_packages
version = '1.2.0'
long_description = """
With this package you can convert dicom images to nifti files.
There is support for most anatomical CT and MR data.
For MR specifically there is support for most 4D data (like DTI and fMRI)
"""
setup(
name='dicom2nifti',
packages=find_packages(exclude=['contrib', 'docs', 'tests*']),
version=version,
description='package for converting dicom files to nifti',
long_description=long_description,
license='MIT',
author='icometrix NV',
author_email='dicom2nifti@icometrix.com',
maintainer="icometrix NV",
maintainer_email="dicom2nifti@icometrix.com",
url='https://github.com/icometrix/dicom2nifti',
download_url='https://github.com/icometrix/dicom2nifti/tarball/%s' % version,
keywords=['dicom', 'nifti', 'medical imaging'],
scripts=['scripts/dicom2nifti'],
# https://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Healthcare Industry',
'Intended Audience :: Science/Research',
'Topic :: Scientific/Engineering :: Medical Science Apps.',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Operating System :: MacOS :: MacOS X',
'Operating System :: POSIX :: Linux'],
install_requires=['nibabel', 'pydicom', 'numpy', 'six', 'future'],
setup_requires=['nose', 'coverage']
)
| import os
from distutils.core import setup
from setuptools import find_packages
version = '1.1.13'
long_description = """
With this package you can convert dicom images to nifti files.
There is support for most anatomical CT and MR data.
For MR specifically there is support for most 4D data (like DTI and fMRI)
"""
setup(
name='dicom2nifti',
packages=find_packages(exclude=['contrib', 'docs', 'tests*']),
version=version,
description='package for converting dicom files to nifti',
long_description=long_description,
license='MIT',
author='icometrix NV',
author_email='dicom2nifti@icometrix.com',
maintainer="icometrix NV",
maintainer_email="dicom2nifti@icometrix.com",
url='https://github.com/icometrix/dicom2nifti',
download_url='https://github.com/icometrix/dicom2nifti/tarball/%s' % version,
keywords=['dicom', 'nifti', 'medical imaging'],
scripts=['scripts/dicom2nifti'],
# https://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Healthcare Industry',
'Intended Audience :: Science/Research',
'Topic :: Scientific/Engineering :: Medical Science Apps.',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Operating System :: MacOS :: MacOS X',
'Operating System :: POSIX :: Linux'],
install_requires=['nibabel', 'pydicom', 'numpy', 'six', 'future'],
setup_requires=['nose', 'coverage']
)
| mit | Python |
dee4287e18dfe6720ec06dfd0fe5b589249b541f | add long description to setup.py | tommorris/mf2py,tommorris/mf2py | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup
import os.path
ns = {}
with open(os.path.join(os.path.dirname(__file__), 'mf2py/version.py'))\
as version_file:
exec(version_file.read(), ns)
setup(name='mf2py',
version=ns['__version__'],
description='Python Microformats2 parser',
long_description=open('README.md').read(),
long_description_content_type='text/markdown',
author='Tom Morris',
author_email='tom@tommorris.org',
url='http://microformats.org/wiki/mf2py',
install_requires=[
# Keep in sync with requirements.txt!
'html5lib>=1.0.1',
'requests>=2.18.4',
'BeautifulSoup4>=4.6.0',
],
tests_require=['nose', 'mock'],
packages=['mf2py'],
package_data={'mf2py': ['backcompat-rules/*.json']},
test_suite='nose.collector',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Topic :: Text Processing :: Markup :: HTML'
])
| #!/usr/bin/env python
from setuptools import setup
import os.path
ns = {}
with open(os.path.join(os.path.dirname(__file__), 'mf2py/version.py'))\
as version_file:
exec(version_file.read(), ns)
setup(name='mf2py',
version=ns['__version__'],
description='Python Microformats2 parser',
author='Tom Morris',
author_email='tom@tommorris.org',
url='http://microformats.org/wiki/mf2py',
install_requires=[
# Keep in sync with requirements.txt!
'html5lib>=1.0.1',
'requests>=2.18.4',
'BeautifulSoup4>=4.6.0',
],
tests_require=['nose', 'mock'],
packages=['mf2py'],
package_data={'mf2py': ['backcompat-rules/*.json']},
test_suite='nose.collector',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Topic :: Text Processing :: Markup :: HTML'
])
| mit | Python |
bc03fffe86adc528cb404c7b9f7131f30c275c25 | Upgrade to Oscar 1.6. | django-oscar/django-oscar-adyen,oscaro/django-oscar-adyen | setup.py | setup.py | from setuptools import setup, find_packages
setup(
name='django-oscar-adyen',
version='0.8.0',
url='https://github.com/oscaro/django-oscar-adyen',
author='Oscaro',
description='Adyen HPP payment module for django-oscar',
long_description=open('README.rst').read(),
keywords='payment, django, oscar, adyen',
license='BSD',
packages=find_packages(),
include_package_data=True,
install_requires=[
'iptools==0.6.1',
'django-oscar>=1.6',
],
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Topic :: Office/Business :: Financial :: Point-Of-Sale',
'Topic :: Software Development :: Libraries :: Python Modules',
]
)
| from setuptools import setup, find_packages
setup(
name='django-oscar-adyen',
version='0.8.0',
url='https://github.com/oscaro/django-oscar-adyen',
author='Oscaro',
description='Adyen HPP payment module for django-oscar',
long_description=open('README.rst').read(),
keywords='payment, django, oscar, adyen',
license='BSD',
packages=find_packages(),
include_package_data=True,
install_requires=[
'iptools==0.6.1',
'django-oscar>=1.4',
],
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Topic :: Office/Business :: Financial :: Point-Of-Sale',
'Topic :: Software Development :: Libraries :: Python Modules',
]
)
| bsd-3-clause | Python |
1e9fb2ff2529836ec1f01f85650cc8f680dc0d95 | Add django as dependency | Pithikos/django-compressor-postcss,Pithikos/django-compressor-postcss | setup.py | setup.py | from setuptools import setup
import os
import io
def file_content(fname):
return io.open(os.path.join(os.path.dirname(__file__), fname), encoding="UTF-8").read()
dist = setup(
name='django-compressor-postcss',
version='0.8',
description='PostCSS support for django-compressor',
long_description=file_content('docs/README.rst'),
author='Johan Hanssen Seferidis',
author_email='manossef@gmail.com',
url='https://github.com/pithikos/django-compressor-postcss',
license='MIT',
classifiers=[
'Intended Audience :: Developers'
'License :: OSI Approved :: MIT License',
],
keywords='django-compressor django postcss post-processing css ' +
'web-development autoprefixer',
# Package
packages=['compressor_postcss'],
install_requires=[
'django'
'django-compressor',
],
data_files=[('', ['LICENSE', 'README.md'])],
)
| from setuptools import setup
import os
import io
def file_content(fname):
return io.open(os.path.join(os.path.dirname(__file__), fname), encoding="UTF-8").read()
dist = setup(
name='django-compressor-postcss',
version='0.8',
description='PostCSS support for django-compressor',
long_description=file_content('docs/README.rst'),
author='Johan Hanssen Seferidis',
author_email='manossef@gmail.com',
url='https://github.com/pithikos/django-compressor-postcss',
license='MIT',
classifiers=[
'Intended Audience :: Developers'
'License :: OSI Approved :: MIT License',
],
keywords='django-compressor django postcss post-processing css ' +
'web-development autoprefixer',
# Package
packages=['compressor_postcss'],
install_requires=[
'django-compressor',
],
data_files=[('', ['LICENSE', 'README.md'])],
)
| mit | Python |
2140adcb8a10718be2bce32721ff553e1d42b8e9 | Bump version. | FelixLoether/flask-image-upload-thing,FelixLoether/flask-uploads | setup.py | setup.py | from setuptools import setup, Command
import subprocess
class PyTest(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
errno = subprocess.call(['py.test'])
raise SystemExit(errno)
setup(
name='Flask-Uploads',
version='0.1.2',
url='http://github.com/FelixLoether/flask-uploads',
author='Oskari Hiltunen',
author_email='flask-uploads@loethr.net',
description='A Flask extension to help you add file uploading '
'functionality to your site.',
long_description=open('README.rst').read(),
packages=['flask_uploads'],
platforms='any',
cmdclass={'test': PyTest},
classifiers=[
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Operating System :: OS Independent',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
]
)
| from setuptools import setup, Command
import subprocess
class PyTest(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
errno = subprocess.call(['py.test'])
raise SystemExit(errno)
setup(
name='Flask-Uploads',
version='0.1.1',
url='http://github.com/FelixLoether/flask-uploads',
author='Oskari Hiltunen',
author_email='flask-uploads@loethr.net',
description='A Flask extension to help you add file uploading '
'functionality to your site.',
long_description=open('README.rst').read(),
packages=['flask_uploads'],
platforms='any',
cmdclass={'test': PyTest},
classifiers=[
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Operating System :: OS Independent',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
]
)
| mit | Python |
83d5098bc671d7602e4e7cde9222b687480e9b9b | update the package description | blockstack/pybitcoin | setup.py | setup.py | """
pybitcoin
==============
"""
from setuptools import setup, find_packages
setup(
name='pybitcoin',
version='0.9.3',
url='https://github.com/blockstack/pybitcoin',
license='MIT',
author='Blockstack Developers',
author_email='hello@onename.com',
description="""Library for Bitcoin & other cryptocurrencies. Tools are provided for blockchain transactions, RPC calls, and private keys, public keys, and addresses.""",
keywords='bitcoin btc litecoin namecoin dogecoin cryptocurrency',
packages=find_packages(),
zip_safe=False,
install_requires=[
'commontools==0.1.0',
'ecdsa==0.11',
'utilitybelt>=0.2.1',
'requests>=2.4.3',
'pybitcointools==1.1.15',
'python-bitcoinrpc==0.1'
],
classifiers=[
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Internet',
'Topic :: Security :: Cryptography',
'Topic :: Software Development :: Libraries :: Python Modules',
],
)
| """
pybitcoin
==============
"""
from setuptools import setup, find_packages
setup(
name='pybitcoin',
version='0.9.2',
url='https://github.com/blockstack/pybitcoin',
license='MIT',
author='Blockstack Developers',
author_email='hello@onename.com',
description=("Tools for Bitcoin & other cryptocurrencies (private & ",
"public keys, addresses, transactions, RPC, etc.)."),
keywords='bitcoin btc litecoin namecoin dogecoin cryptocurrency',
packages=find_packages(),
zip_safe=False,
install_requires=[
'commontools==0.1.0',
'ecdsa==0.11',
'utilitybelt>=0.2.1',
'requests>=2.4.3',
'pybitcointools==1.1.15',
'python-bitcoinrpc==0.1'
],
classifiers=[
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Internet',
'Topic :: Security :: Cryptography',
'Topic :: Software Development :: Libraries :: Python Modules',
],
)
| mit | Python |
eed77fc13e84cbab9d5e911ba39c25ff883fdc7c | fix list of exported packages | open-io/oio-swift,jkasarherou/oio-swift,open-io/oio-swift | setup.py | setup.py | from setuptools import setup
from oioswift import __version__
setup(
name='oioswift',
version=__version__,
author='OpenIO',
author_email='support@openio.io',
description='OpenIO Swift Gateway',
url='https://github.com/open-io/oio-swift',
license='Apache License (2.0)',
classifiers=[
'Development Status :: 3 - Alpha',
'Programming Language :: Python :: 2.7',
'License :: OSI Approved :: Apache Software License',
'Intended Audience :: Information Technology',
'Operating System :: OS Independent',
],
packages=[
'oioswift',
'oioswift.common',
'oioswift.proxy',
'oioswift.proxy.controllers'],
entry_points={
'paste.app_factory': [
'main=oioswift.server:app_factory'
],
},
install_requires=['swift>=2.7.0', 'oio>=2.0.0']
)
| from setuptools import setup
from oioswift import __version__
setup(
name='oioswift',
version=__version__,
author='OpenIO',
author_email='support@openio.io',
description='OpenIO Swift Gateway',
url='https://github.com/open-io/oio-swift',
license='Apache License (2.0)',
classifiers=[
'Development Status :: 3 - Alpha',
'Programming Language :: Python :: 2.7',
'License :: OSI Approved :: Apache Software License',
'Intended Audience :: Information Technology',
'Operating System :: OS Independent',
],
packages=['oioswift', 'oioswift.proxy', 'oioswift.proxy.controllers'],
entry_points={
'paste.app_factory': [
'main=oioswift.server:app_factory'
],
},
install_requires=['swift>=2.7.0', 'oio>=2.0.0']
)
| apache-2.0 | Python |
d54794e71969b711a6aea3cbbf13ff43d202cffa | bump version number to 1.5.0 | ojengwa/paystack | setup.py | setup.py | # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
from codecs import open
from os import path
from paystack.version import VERSION
here = path.abspath(path.dirname(__file__))
print(here)
# 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='paystack',
version=VERSION,
description='A Paystack API wrapper in Python',
long_description=long_description,
url='https://github.com/ojengwa/paystack',
download_url='https://github.com/ojengwa/paystack/tarball/' + VERSION,
license='BSD',
classifiers=[
"Development Status :: 5 - Production/Stable",
'Intended Audience :: Developers',
'Topic :: Software Development :: Libraries',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
],
keywords='',
packages=find_packages(exclude=['docs', 'tests', 'site']),
package_data={
'paystack': [
'data/paystack.crt',
'data/paystack.key'
]
},
include_package_data=True,
author='Bernard Ojengwa',
install_requires=[
'requests',
'simplejson'
],
author_email='bernardojengwa@gmail.com'.encode('utf-8')
)
| # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
from codecs import open
from os import path
from paystack.version import VERSION
here = path.abspath(path.dirname(__file__))
print(here)
# 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='paystack',
version=VERSION,
description='A Paystack API wrapper in Python',
long_description=long_description,
url='https://github.com/ojengwa/paystack',
download_url='https://github.com/ojengwa/paystack/tarball/' + VERSION,
license='BSD',
classifiers=[
"Development Status :: 5 - Production/Stable",
'Intended Audience :: Developers',
'Topic :: Software Development :: Libraries',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
],
keywords='',
packages=find_packages(exclude=['docs', 'tests', 'site']),
package_data={
'paystack': [
'data/paystack.crt',
'data/paystack.key'
]
},
include_package_data=True,
author='Bernard Ojengwa',
install_requires=[
'requests',
'simplejson'
],
author_email="bernardojengwa@gmail.com"
)
| bsd-3-clause | Python |
07e1deb781659c080813e54ca8fd07325f89312f | fix vertica error message handling | LocusEnergy/sqlalchemy-vertica-python | setup.py | setup.py | from setuptools import setup
setup(
name='sqlalchemy-vertica-python',
version='0.1.1',
description='Vertica dialect for sqlalchemy using vertica_python',
long_description=open("README.rst").read(),
license="MIT",
url='https://github.com/LocusEnergy/sqlalchemy-vertica-python',
download_url = 'https://github.com/LocusEnergy/sqlalchemy-vertica-python/tarball/0.1.1',
author='Locus Energy',
author_email='dbio@locusenergy.com',
packages=[
'sqla_vertica_python',
],
entry_points="""
[sqlalchemy.dialects]
vertica.vertica_python = sqla_vertica_python.vertica_python:VerticaDialect
""",
install_requires=[
'vertica_python'
],
)
| from setuptools import setup
setup(
name='sqlalchemy-vertica-python',
version='0.1.0',
description='Vertica dialect for sqlalchemy using vertica_python',
long_description=open("README.rst").read(),
license="MIT",
url='https://github.com/LocusEnergy/https://github.com/LocusEnergy/sqlalchemy-vertica-python',
download_url = 'https://github.com/LocusEnergy/sqlalchemy-vertica-python/tarball/0.1.0',
author='Locus Energy',
author_email='dbio@locusenergy.com',
packages=[
'sqla_vertica_python',
],
entry_points="""
[sqlalchemy.dialects]
vertica.vertica_python = sqla_vertica_python.vertica_python:VerticaDialect
""",
install_requires=[
'vertica_python'
],
)
| mit | Python |
6afe13e3a259505e55c5a34a790c8f77efb1bedc | Add python-3.7 to setup.py; remove python 3.4 | deschler/django-modeltranslation,deschler/django-modeltranslation | setup.py | setup.py | #!/usr/bin/env python
from distutils.core import setup
# Dynamically calculate the version based on modeltranslation.VERSION.
version = __import__('modeltranslation').get_version()
setup(
name='django-modeltranslation',
version=version,
description='Translates Django models using a registration approach.',
long_description=(
'The modeltranslation application can be used to translate dynamic '
'content of existing models to an arbitrary number of languages '
'without having to change the original model classes. It uses a '
'registration approach (comparable to Django\'s admin app) to be able '
'to add translations to existing or new projects and is fully '
'integrated into the Django admin backend.'),
author='Peter Eschler',
author_email='peschler@gmail.com',
maintainer='Dirk Eschler',
maintainer_email='eschler@gmail.com',
url='https://github.com/deschler/django-modeltranslation',
packages=['modeltranslation', 'modeltranslation.management',
'modeltranslation.management.commands'],
package_data={'modeltranslation': ['static/modeltranslation/css/*.css',
'static/modeltranslation/js/*.js']},
requires=['Django(>=1.11)'],
download_url='https://github.com/deschler/django-modeltranslation/archive/%s.tar.gz' % version,
classifiers=[
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Operating System :: OS Independent',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'Framework :: Django',
'License :: OSI Approved :: BSD License'],
license='New BSD')
| #!/usr/bin/env python
from distutils.core import setup
# Dynamically calculate the version based on modeltranslation.VERSION.
version = __import__('modeltranslation').get_version()
setup(
name='django-modeltranslation',
version=version,
description='Translates Django models using a registration approach.',
long_description=(
'The modeltranslation application can be used to translate dynamic '
'content of existing models to an arbitrary number of languages '
'without having to change the original model classes. It uses a '
'registration approach (comparable to Django\'s admin app) to be able '
'to add translations to existing or new projects and is fully '
'integrated into the Django admin backend.'),
author='Peter Eschler',
author_email='peschler@gmail.com',
maintainer='Dirk Eschler',
maintainer_email='eschler@gmail.com',
url='https://github.com/deschler/django-modeltranslation',
packages=['modeltranslation', 'modeltranslation.management',
'modeltranslation.management.commands'],
package_data={'modeltranslation': ['static/modeltranslation/css/*.css',
'static/modeltranslation/js/*.js']},
requires=['Django(>=1.11)'],
download_url='https://github.com/deschler/django-modeltranslation/archive/%s.tar.gz' % version,
classifiers=[
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Operating System :: OS Independent',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'Framework :: Django',
'License :: OSI Approved :: BSD License'],
license='New BSD')
| bsd-3-clause | Python |
7fe3001030075f825a2274fdd336a4dd0834e078 | Prepare openprocurement.auctions.dgf 1.0.5. | prozorro-sale/openprocurement.auctions.dgf,openprocurement/openprocurement.auctions.dgf | setup.py | setup.py | from setuptools import setup, find_packages
import os
version = '1.0.5'
entry_points = {
'openprocurement.auctions.core.plugins': [
'auctions.dgf = openprocurement.auctions.dgf:includeme'
]
}
requires = [
'setuptools',
'openprocurement.api',
'openprocurement.auctions.core',
'openprocurement.auctions.flash',
]
docs_requires = requires + [
'sphinxcontrib-httpdomain',
]
setup(name='openprocurement.auctions.dgf',
version=version,
description="",
long_description=open("README.rst").read() + "\n" +
open(os.path.join("docs", "HISTORY.txt")).read(),
# Get more strings from
# http://pypi.python.org/pypi?:action=list_classifiers
classifiers=[
"Programming Language :: Python",
],
keywords='',
author='Quintagroup, Ltd.',
author_email='info@quintagroup.com',
license='Apache License 2.0',
url='https://github.com/openprocurement/openprocurement.auctions.dgf',
packages=find_packages(exclude=['ez_setup']),
namespace_packages=['openprocurement', 'openprocurement.auctions'],
include_package_data=True,
zip_safe=False,
extras_require={'docs': docs_requires},
install_requires=requires,
entry_points=entry_points,
)
| from setuptools import setup, find_packages
import os
version = '1.0.4'
entry_points = {
'openprocurement.auctions.core.plugins': [
'auctions.dgf = openprocurement.auctions.dgf:includeme'
]
}
requires = [
'setuptools',
'openprocurement.api',
'openprocurement.auctions.core',
'openprocurement.auctions.flash',
]
docs_requires = requires + [
'sphinxcontrib-httpdomain',
]
setup(name='openprocurement.auctions.dgf',
version=version,
description="",
long_description=open("README.rst").read() + "\n" +
open(os.path.join("docs", "HISTORY.txt")).read(),
# Get more strings from
# http://pypi.python.org/pypi?:action=list_classifiers
classifiers=[
"Programming Language :: Python",
],
keywords='',
author='Quintagroup, Ltd.',
author_email='info@quintagroup.com',
license='Apache License 2.0',
url='https://github.com/openprocurement/openprocurement.auctions.dgf',
packages=find_packages(exclude=['ez_setup']),
namespace_packages=['openprocurement', 'openprocurement.auctions'],
include_package_data=True,
zip_safe=False,
extras_require={'docs': docs_requires},
install_requires=requires,
entry_points=entry_points,
)
| apache-2.0 | Python |
158c8e5625659ddb0f98b7fa847143544925720e | Bump version to 0.1.16 | jaredly/django-colorfield,jaredly/django-colorfield,jaredly/django-colorfield | setup.py | setup.py | from setuptools import find_packages, setup
version = '0.1.16'
setup(
name='django-colorfield',
packages=find_packages(),
include_package_data=True,
license='MIT License',
version=version,
description='A small app providing a colorpicker field for django',
long_description='A small app providing a colorpicker field for django',
author='Jared Forsyth',
author_email='jared@jaredforsyth.com',
url='https://github.com/jaredly/django-colorfield',
download_url='https://github.com/jaredly/django-colorfield/archive/%s.tar.gz' % version,
keywords=['django', 'color', 'field', 'admin'],
requires=['django (>=1.2)'],
classifiers=['License :: OSI Approved :: MIT License']
)
| from setuptools import find_packages, setup
version = '0.1.15'
setup(
name='django-colorfield',
packages=find_packages(),
include_package_data=True,
license='MIT License',
version=version,
description='A small app providing a colorpicker field for django',
long_description='A small app providing a colorpicker field for django',
author='Jared Forsyth',
author_email='jared@jaredforsyth.com',
url='https://github.com/jaredly/django-colorfield',
download_url='https://github.com/jaredly/django-colorfield/archive/%s.tar.gz' % version,
keywords=['django', 'color', 'field', 'admin'],
requires=['django (>=1.2)'],
classifiers=['License :: OSI Approved :: MIT License']
)
| mit | Python |
3dd48e878c7c79210d23f4880f9a07a712297f9d | Add requirement | adriangoe/afkmc2 | setup.py | setup.py | from distutils.core import setup
setup(
name = 'afkmc2',
packages = ['afkmc2'],
version = '0.1',
description = 'Assumption Free and Efficient K-Means Seeding',
author = 'Adrian Goedeckemeyer',
author_email = 'adrian@minerva.kgi.edu',
url = 'https://github.com/adriangoe/afkmc2',
download_url = 'https://github.com/adriangoe/afkmc2/archive/0.1.tar.gz',
keywords = ['kmeans', 'seeding', 'sklearn', 'numpy'],
classifiers = [],
install_requires=[
"numpy",
],
) | from distutils.core import setup
setup(
name = 'afkmc2',
packages = ['afkmc2'],
version = '0.1',
description = 'Assumption Free and Efficient K-Means Seeding',
author = 'Adrian Goedeckemeyer',
author_email = 'adrian@minerva.kgi.edu',
url = 'https://github.com/adriangoe/afkmc2',
download_url = 'https://github.com/adriangoe/afkmc2/archive/0.1.tar.gz',
keywords = ['kmeans', 'seeding', 'sklearn', 'numpy'],
classifiers = [],
) | mit | Python |
ffca159de5f822440f52ff45ca6d037f578b5764 | Remove strict deps. | hellysmile/django-activeurl,hellysmile/django-activeurl | setup.py | setup.py | from io import open
from setuptools import setup
classifiers = '''\
Framework :: Django
Environment :: Web Environment
Intended Audience :: Developers
Topic :: Internet :: WWW/HTTP
License :: OSI Approved :: Apache Software License
Development Status :: 5 - Production/Stable
Natural Language :: English
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.2
Programming Language :: Python :: 3.3
Programming Language :: Python :: 3.4
Programming Language :: Python :: 3.5
Programming Language :: Python :: Implementation :: CPython
Programming Language :: Python :: Implementation :: PyPy
Operating System :: MacOS :: MacOS X
Operating System :: Microsoft :: Windows
Operating System :: POSIX
Operating System :: Unix
'''
description = 'Easy to use active URL highlighting for django'
packages = [
'django_activeurl',
'django_activeurl.templatetags',
'django_activeurl.ext'
]
def long_description():
f = open('README.rst', encoding='utf-8')
rst = f.read()
f.close()
return rst
setup(
name='django-activeurl',
version='0.1.9',
packages=packages,
description=description,
long_description=long_description(),
author='hellysmile',
author_email='hellysmile@gmail.com',
url='https://github.com/hellysmile/django-activeurl/',
zip_safe=False,
install_requires=[
'django',
'lxml',
'django-classy-tags',
'django_appconf',
],
license='http://www.apache.org/licenses/LICENSE-2.0',
classifiers=list(filter(None, classifiers.split('\n'))),
keywords=[
'django', 'url', 'link', 'active', 'css', 'templatetag', 'jinja2'
]
)
| from io import open
from setuptools import setup
classifiers = '''\
Framework :: Django
Environment :: Web Environment
Intended Audience :: Developers
Topic :: Internet :: WWW/HTTP
License :: OSI Approved :: Apache Software License
Development Status :: 5 - Production/Stable
Natural Language :: English
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.2
Programming Language :: Python :: 3.3
Programming Language :: Python :: 3.4
Programming Language :: Python :: 3.5
Programming Language :: Python :: Implementation :: CPython
Programming Language :: Python :: Implementation :: PyPy
Operating System :: MacOS :: MacOS X
Operating System :: Microsoft :: Windows
Operating System :: POSIX
Operating System :: Unix
'''
description = 'Easy to use active URL highlighting for django'
packages = [
'django_activeurl',
'django_activeurl.templatetags',
'django_activeurl.ext'
]
def long_description():
f = open('README.rst', encoding='utf-8')
rst = f.read()
f.close()
return rst
setup(
name='django-activeurl',
version='0.1.9',
packages=packages,
description=description,
long_description=long_description(),
author='hellysmile',
author_email='hellysmile@gmail.com',
url='https://github.com/hellysmile/django-activeurl/',
zip_safe=False,
install_requires=[
'django >= 1.3',
'lxml >= 2.3.5',
'django-classy-tags >= 0.4',
'django_appconf >= 0.6'
],
license='http://www.apache.org/licenses/LICENSE-2.0',
classifiers=list(filter(None, classifiers.split('\n'))),
keywords=[
'django', 'url', 'link', 'active', 'css', 'templatetag', 'jinja2'
]
)
| apache-2.0 | Python |
7eb26159f633c0b8138e1c3f9031c168aecf4e94 | Bump version for release | tylerdave/devpi-plumber | setup.py | setup.py | # coding=utf-8
import multiprocessing # avoid crash on teardown
from setuptools import setup, find_packages
with open('README.md') as f:
readme = f.read()
setup(
name='devpi-plumber',
version='0.1.0',
packages=find_packages(exclude=['tests']),
author='Stephan Erb',
author_email='stephan.erb@blue-yonder.com',
url='https://github.com/blue-yonder/devpi-plumber',
description='Mario, the devpi-plumber, helps to automate and test large devpi installations.',
long_description=readme,
license='new BSD',
install_requires=[
'devpi-client',
'devpi-server',
'twitter.common.contextutil',
'six'
],
setup_requires=[
'nose'
],
tests_require=[
'nose',
'mock',
'coverage',
],
test_suite='nose.collector',
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: BSD License',
'Topic :: System :: Archiving :: Packaging',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
],
)
| # coding=utf-8
import multiprocessing # avoid crash on teardown
from setuptools import setup, find_packages
with open('README.md') as f:
readme = f.read()
setup(
name='devpi-plumber',
version='0.1.0dev',
packages=find_packages(exclude=['tests']),
author='Stephan Erb',
author_email='stephan.erb@blue-yonder.com',
url='https://github.com/blue-yonder/devpi-plumber',
description='Mario, the devpi-plumber, helps to automate and test large devpi installations.',
long_description=readme,
license='new BSD',
install_requires=[
'devpi-client',
'devpi-server',
'twitter.common.contextutil',
'six'
],
setup_requires=[
'nose'
],
tests_require=[
'nose',
'mock',
'coverage',
],
test_suite='nose.collector',
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: BSD License',
'Topic :: System :: Archiving :: Packaging',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
],
)
| bsd-3-clause | Python |
efe28fd251a399229156d1a0a1d2abf96dc288fe | Bump requests from 2.5.1 to 2.20.0 | Alkemic/scrapper,Alkemic/scrapper | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup
setup(
name='Scrapper',
version='0.9.5',
url='https://github.com/Alkemic/scrapper',
license='MIT',
author='Daniel Alkemic Czuba',
author_email='alkemic7@gmail.com',
description='Scrapper is small, Python web scraping library',
py_modules=['scrapper'],
keywords='scrapper,scraping,webscraping',
install_requires=[
'lxml == 3.6.1',
'requests == 2.20.0',
],
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Internet :: WWW/HTTP :: Indexing/Search',
'Topic :: Software Development :: Libraries :: Python Modules',
],
)
| #!/usr/bin/env python
from setuptools import setup
setup(
name='Scrapper',
version='0.9.5',
url='https://github.com/Alkemic/scrapper',
license='MIT',
author='Daniel Alkemic Czuba',
author_email='alkemic7@gmail.com',
description='Scrapper is small, Python web scraping library',
py_modules=['scrapper'],
keywords='scrapper,scraping,webscraping',
install_requires=[
'lxml == 3.6.1',
'requests == 2.5.1',
],
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Internet :: WWW/HTTP :: Indexing/Search',
'Topic :: Software Development :: Libraries :: Python Modules',
],
)
| mit | Python |
9863ea0c6e637551f538d076df6ee34a205115bb | bump version | henriquebastos/django-test-without-migrations,henriquebastos/django-test-without-migrations | setup.py | setup.py | # coding: utf-8
from setuptools import setup
import os
setup(name='django-test-without-migrations',
version='0.2',
description='Disable migrations when running your Django tests.',
long_description=open(os.path.join(os.path.dirname(__file__), "README.rst")).read(),
author="Henrique Bastos", author_email="henrique@bastos.net",
license="MIT",
packages=[
'test_without_migrations',
'test_without_migrations.management',
'test_without_migrations.management.commands',
],
install_requires=[],
zip_safe=True,
platforms='any',
include_package_data=True,
classifiers=[
'Development Status :: 5 - Production/Stable',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Topic :: Software Development :: Libraries',
],
url='http://github.com/henriquebastos/django-test-without-migrations/',
)
| # coding: utf-8
from setuptools import setup
import os
setup(name='django-test-without-migrations',
version='0.1',
description='Disable migrations when running your Django tests.',
long_description=open(os.path.join(os.path.dirname(__file__), "README.rst")).read(),
author="Henrique Bastos", author_email="henrique@bastos.net",
license="MIT",
packages=[
'test_without_migrations',
'test_without_migrations.management',
'test_without_migrations.management.commands',
],
install_requires=[],
zip_safe=True,
platforms='any',
include_package_data=True,
classifiers=[
'Development Status :: 5 - Production/Stable',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Topic :: Software Development :: Libraries',
],
url='http://github.com/henriquebastos/django-test-without-migrations/',
)
| mit | Python |
aca3cadb0da202e9b2ccb499a1662a6291b50985 | fix packages | craigsander/evergreen,craigsander/evergreen | setup.py | setup.py | #!/usr/bin/env python
from distutils.core import setup
setup(name='Evergreen',
version='1.0',
description='Lightweight Django CMS',
author='Craig Sander',
author_email='csander@centriole-solutions.com',
url='',
packages=['website', 'utils'],
)
| #!/usr/bin/env python
from distutils.core import setup
setup(name='Evergreen',
version='1.0',
description='Lightweight Django CMS',
author='Craig Sander',
author_email='csander@centriole-solutions.com',
url='',
packages=['evergreen'],
)
| mit | Python |
428b333dbb937808c42cc01050b280b6f17cafce | Tidy setup.py (#376) | ottoyiu/django-cors-headers,ottoyiu/django-cors-headers | setup.py | setup.py | from __future__ import absolute_import
import codecs
import os
import re
from setuptools import setup
def get_version(filename):
with codecs.open(filename, 'r', 'utf-8') as fp:
contents = fp.read()
return re.search(r"__version__ = ['\"]([^'\"]+)['\"]", contents).group(1)
version = get_version(os.path.join('corsheaders', '__init__.py'))
with codecs.open('README.rst', 'r', 'utf-8') as readme_file:
readme = readme_file.read()
with codecs.open('HISTORY.rst', 'r', 'utf-8') as history_file:
history = history_file.read()
setup(
name='django-cors-headers',
version=version,
description=(
'django-cors-headers is a Django application for handling the server '
'headers required for Cross-Origin Resource Sharing (CORS).'
),
long_description=readme + '\n\n' + history,
author='Otto Yiu',
author_email='otto@live.ca',
url='https://github.com/ottoyiu/django-cors-headers',
packages=['corsheaders'],
license='MIT License',
keywords=['django', 'cors', 'middleware', 'rest', 'api'],
install_requires=[],
python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Framework :: Django',
'Framework :: Django :: 1.8',
'Framework :: Django :: 1.9',
'Framework :: Django :: 1.10',
'Framework :: Django :: 1.11',
'Framework :: Django :: 2.0',
'Framework :: Django :: 2.1',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Topic :: Software Development :: Libraries :: Application Frameworks',
'Topic :: Software Development :: Libraries :: Python Modules',
],
)
| from __future__ import absolute_import
import codecs
import os
import re
from setuptools import setup
def get_version(filename):
with codecs.open(filename, 'r', 'utf-8') as fp:
contents = fp.read()
return re.search(r"__version__ = ['\"]([^'\"]+)['\"]", contents).group(1)
version = get_version(os.path.join('corsheaders', '__init__.py'))
with codecs.open('README.rst', 'r', 'utf-8') as readme_file:
readme = readme_file.read()
with codecs.open('HISTORY.rst', 'r', 'utf-8') as history_file:
history = history_file.read()
setup(
name='django-cors-headers',
version=version,
description=(
'django-cors-headers is a Django application for handling the server '
'headers required for Cross-Origin Resource Sharing (CORS).'
),
long_description=readme + '\n\n' + history,
author='Otto Yiu',
author_email='otto@live.ca',
url='https://github.com/ottoyiu/django-cors-headers',
packages=['corsheaders'],
license='MIT License',
keywords='django cors middleware rest api',
platforms=['any'],
install_requires=[],
python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Framework :: Django',
'Framework :: Django :: 1.8',
'Framework :: Django :: 1.9',
'Framework :: Django :: 1.10',
'Framework :: Django :: 1.11',
'Framework :: Django :: 2.0',
'Framework :: Django :: 2.1',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Topic :: Software Development :: Libraries :: Application Frameworks',
'Topic :: Software Development :: Libraries :: Python Modules',
],
)
| mit | Python |
9a943f370f23b854f4ad653f8511800e64066ca5 | Bump version. | georgemarshall/django-composite-field | setup.py | setup.py | #!/usr/bin/env python
from distutils.core import setup
setup(name='django-composite-field',
version='0.2',
description='CompositeField implementation for Django',
keywords='django composite field',
author='Michael P. Jung',
author_email='mpjung@terreon.de',
url='http://bitbucket.org/mp/django-composite-field',
packages=['composite_field'],
)
| #!/usr/bin/env python
from distutils.core import setup
setup(name='django-composite-field',
version='0.1',
description='CompositeField implementation for Django',
keywords='django composite field',
author='Michael P. Jung',
author_email='mpjung@terreon.de',
url='http://bitbucket.org/mp/django-composite-field',
packages=['composite_field'],
)
| bsd-2-clause | Python |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.