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 |
|---|---|---|---|---|---|---|---|---|
caf0e4b9166a0108e8545ec27610215c0f0245ce | add classifiers to setup.py | anossov/ppmongo | setup.py | setup.py | from setuptools import setup
import codecs
def readme(fn):
with codecs.open(fn, encoding='utf-8') as f:
return unicode(f.read())
setup(name='ppmongo',
version='0.1.0',
packages=[
'ppmongo',
],
scripts=[
'bin/ppmongo',
],
author='Pavel Anossov',
author_email='anossov@gmail.com',
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Programming Language :: Python :: 2.7',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Topic :: Utilities',
'Topic :: Database'
],
url='https://github.com/anossov/ppmongo',
license='LICENSE.txt',
description='Retrieve and pretty-print data from mongo',
long_description=readme('README.txt'),
install_requires=[
'pymongo'
]
)
| from setuptools import setup
import codecs
def readme(fn):
with codecs.open(fn, encoding='utf-8') as f:
return unicode(f.read())
setup(name='ppmongo',
version='0.1.0',
packages=[
'ppmongo',
],
scripts=[
'bin/ppmongo',
],
author='Pavel Anossov',
author_email='anossov@gmail.com',
classifiers=[
'Development Status :: 3 - Alpha',
'Programming Language :: Python :: 2.7',
],
url='https://github.com/anossov/ppmongo',
license='LICENSE.txt',
description='Retrieve and pretty-print data from mongo',
long_description=readme('README.txt'),
install_requires=[
'pymongo'
]
)
| bsd-2-clause | Python |
d6aaf2b8f37cee7a07b5907bda6f6350e7d9c129 | Remove argparse and entry_points. | seanfisk/ecs,seanfisk/ecs | setup.py | setup.py | import os
import sys
from setuptools import setup, find_packages
sys.path.append('.')
from ecs import metadata
def read(filename):
with open(os.path.join(os.path.dirname(__file__), filename)) as f:
return f.read()
# See here for more options:
# <http://pythonhosted.org/setuptools/setuptools.html>
setup_dict = dict(
name=metadata.package,
version=metadata.version,
author=metadata.authors[0],
author_email=metadata.emails[0],
maintainer=metadata.authors[0],
maintainer_email=metadata.emails[0],
url=metadata.url,
description=metadata.description,
long_description=read('README.md'),
download_url=metadata.url,
# Find a list of classifiers here:
# <http://pypi.python.org/pypi?%3Aaction=list_classifiers>
classifiers=[
'Development Status :: 1 - Planning',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: Implementation :: PyPy',
'Topic :: Documentation',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: System :: Installation/Setup',
'Topic :: System :: Software Distribution',
],
packages=find_packages(),
install_requires=[],
zip_safe=False, # don't use eggs
)
def main():
setup(**setup_dict)
if __name__ == '__main__':
main()
| import os
import sys
from setuptools import setup, find_packages
sys.path.append('.')
from ecs import metadata
def read(filename):
with open(os.path.join(os.path.dirname(__file__), filename)) as f:
return f.read()
# define install_requires for specific Python versions
python_version_specific_requires = []
# as of Python >= 2.7 and >= 3.2, the argparse module is maintained within
# the Python standard library, otherwise we install it as a separate package
if sys.version_info < (2, 7) or (3, 0) <= sys.version_info < (3, 3):
python_version_specific_requires.append('argparse')
# See here for more options:
# <http://pythonhosted.org/setuptools/setuptools.html>
setup_dict = dict(
name=metadata.package,
version=metadata.version,
author=metadata.authors[0],
author_email=metadata.emails[0],
maintainer=metadata.authors[0],
maintainer_email=metadata.emails[0],
url=metadata.url,
description=metadata.description,
long_description=read('README.md'),
download_url=metadata.url,
# Find a list of classifiers here:
# <http://pypi.python.org/pypi?%3Aaction=list_classifiers>
classifiers=[
'Development Status :: 1 - Planning',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: Implementation :: PyPy',
'Topic :: Documentation',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: System :: Installation/Setup',
'Topic :: System :: Software Distribution',
],
packages=find_packages(),
install_requires=[
# your module dependencies
] + python_version_specific_requires,
zip_safe=False, # don't use eggs
entry_points={
'console_scripts': [
'ecs_cli = ecs.main:entry_point'
],
# if you have a gui, use this
# 'gui_scripts': [
# 'ecs_gui = ecs.gui:entry_point'
# ]
}
)
def main():
setup(**setup_dict)
if __name__ == '__main__':
main()
| mit | Python |
40690fc6ad0126816270788f6cf334e3706db21e | Add raven to setup.py | kfdm/promgen,kfdm/promgen,kfdm/promgen,kfdm/promgen | setup.py | setup.py | from setuptools import find_packages, setup
from promgen.version import __version__
setup(
name='Promgen',
author='Paul Traylor',
packages=find_packages(exclude=['test']),
version=__version__,
classifiers=[
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3',
'Programming Language :: Python',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Internet :: WWW/HTTP',
],
install_requires=[
'atomicwrites',
'celery[redis]==4.0.2',
'dj_database_url',
'Django >= 1.10, < 1.11',
'envdir',
'pyyaml',
'raven',
'requests',
],
extras_require={
'dev': [
'django-nose',
'nose-cov',
]
},
entry_points={
'console_scripts': [
'promgen = promgen.manage:main',
],
'promgen.server': [
'default = promgen.remote',
],
'promgen.sender': [
'ikasan = promgen.sender.ikasan:SenderIkasan',
'email = promgen.sender.email:SenderEmail',
'linenotify = promgen.sender.linenotify:SenderLineNotify',
'webhook = promgen.sender.webhook:SenderWebhook',
],
}
)
| from setuptools import find_packages, setup
from promgen.version import __version__
setup(
name='Promgen',
author='Paul Traylor',
packages=find_packages(exclude=['test']),
version=__version__,
classifiers=[
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3',
'Programming Language :: Python',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Internet :: WWW/HTTP',
],
install_requires=[
'atomicwrites',
'celery[redis]==4.0.2',
'dj_database_url',
'Django >= 1.10, < 1.11',
'envdir',
'pyyaml',
'requests',
],
extras_require={
'dev': [
'django-nose',
'nose-cov',
]
},
entry_points={
'console_scripts': [
'promgen = promgen.manage:main',
],
'promgen.server': [
'default = promgen.remote',
],
'promgen.sender': [
'ikasan = promgen.sender.ikasan:SenderIkasan',
'email = promgen.sender.email:SenderEmail',
'linenotify = promgen.sender.linenotify:SenderLineNotify',
'webhook = promgen.sender.webhook:SenderWebhook',
],
}
)
| mit | Python |
48dc523d438425b2aae9820e835f535b8783d661 | Add JavaScript files as package data. | eddieantonio/paperpal,eddieantonio/paperpal | setup.py | setup.py | from setuptools import setup, find_packages
from paperpal import __version__ as version
def slurp(filename):
with open(filename) as opened_file:
return opened_file.read()
setup(name='paperpal',
version=version,
description='Paper management with Zotero',
long_description=slurp('README.rst'),
url='http://github.com/eddieantonio/paperpal',
entry_points = {
'console_scripts': ['paperpal=paperpal.__main__:main'],
},
author='Eddie Antonio Santos',
author_email='easantos@ualberta.ca',
install_requires=slurp('./requirements.txt').split('\n')[:-1],
license='Apache 2.0',
packages=['paperpal'],
package_data={'paperpal': ['*.js']},
classifiers=[
'Development Status :: 4 - Beta',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python :: 2.7',
'Topic :: Text Processing :: Indexing',
]
)
| from paperpal import __version__ as version
def slurp(filename):
with open(filename) as opened_file:
return opened_file.read()
from setuptools import setup
setup(name='paperpal',
version=version,
description='Helper to export Zotero data',
long_description=slurp('README.rst'),
url='http://github.com/eddieantonio/paperpal',
entry_points = {
'console_scripts': ['paperpal=paperpal.__main__:main'],
},
author='Eddie Antonio Santos',
author_email='easantos@ualberta.ca',
install_requires=slurp('./requirements.txt').split('\n')[:-1],
license='Apache 2.0',
packages=['paperpal'],
classifiers=[
'Development Status :: 4 - Beta',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python :: 2.7',
'Topic :: Text Processing :: Indexing',
]
)
| apache-2.0 | Python |
dc4a3e7cb1d3d76ea600e4ce2b1e751273993d93 | Add Py3 to setup tags | funkybob/antfarm | setup.py | setup.py | from setuptools import setup, find_packages
setup(
name='antfarm',
version='0.0.1',
description='An ultra-light-weight web framework',
author='Curtis Maloney',
author_email='curtis@tinbrain.net',
url='http://github.com/funkybob/antfarm',
keywords=['wsgi'],
packages = find_packages(exclude=('tests*',)),
zip_safe=False,
classifiers = [
'Environment :: Web Environment',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
],
)
| from setuptools import setup, find_packages
setup(
name='antfarm',
version='0.0.1',
description='An ultra-light-weight web framework',
author='Curtis Maloney',
author_email='curtis@tinbrain.net',
url='http://github.com/funkybob/antfarm',
keywords=['wsgi'],
packages = find_packages(exclude=('tests*',)),
zip_safe=False,
classifiers = [
'Environment :: Web Environment',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
],
)
| mit | Python |
e05bf7b383573f14c58bbaaec3a975eb3dbb5a5b | Update setup.py, add exclude for test package (#554) | XKNX/xknx,XKNX/xknx | setup.py | setup.py | """Setup for XKNX python package."""
from os import path
from setuptools import find_packages, setup
THIS_DIRECTORY = path.abspath(path.dirname(__file__))
with open(path.join(THIS_DIRECTORY, "README.md"), encoding="utf-8") as f:
LONG_DESCRIPTION = f.read()
VERSION = {}
# pylint: disable=exec-used
with open(path.join(THIS_DIRECTORY, "xknx/__version__.py")) as fp:
exec(fp.read(), VERSION)
REQUIRES = ["pyyaml>=5.1", "netifaces>=0.10.9", "voluptuous>=0.12.0"]
setup(
name="xknx",
description="An Asynchronous Library for the KNX protocol. Documentation: https://xknx.io/",
version=VERSION["__version__"],
long_description=LONG_DESCRIPTION,
long_description_content_type="text/markdown",
download_url="https://github.com/XKNX/xknx/archive/{}.zip".format(
VERSION["__version__"]
),
url="https://xknx.io/",
author="Julius Mittenzwei",
author_email="julius@mittenzwei.com",
license="MIT",
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: End Users/Desktop",
"Intended Audience :: Developers",
"Topic :: System :: Hardware :: Hardware Drivers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
],
packages=find_packages(include=["xknx", "xknx.*"]),
install_requires=REQUIRES,
keywords="knx ip knxip eib home automation",
zip_safe=False,
)
| """Setup for XKNX python package."""
from os import path
from setuptools import find_packages, setup
THIS_DIRECTORY = path.abspath(path.dirname(__file__))
with open(path.join(THIS_DIRECTORY, "README.md"), encoding="utf-8") as f:
LONG_DESCRIPTION = f.read()
VERSION = {}
# pylint: disable=exec-used
with open(path.join(THIS_DIRECTORY, "xknx/__version__.py")) as fp:
exec(fp.read(), VERSION)
REQUIRES = ["pyyaml>=5.1", "netifaces>=0.10.9", "voluptuous>=0.12.0"]
setup(
name="xknx",
description="An Asynchronous Library for the KNX protocol. Documentation: https://xknx.io/",
version=VERSION["__version__"],
long_description=LONG_DESCRIPTION,
long_description_content_type="text/markdown",
download_url="https://github.com/XKNX/xknx/archive/{}.zip".format(
VERSION["__version__"]
),
url="https://xknx.io/",
author="Julius Mittenzwei",
author_email="julius@mittenzwei.com",
license="MIT",
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: End Users/Desktop",
"Intended Audience :: Developers",
"Topic :: System :: Hardware :: Hardware Drivers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
],
packages=find_packages(),
install_requires=REQUIRES,
keywords="knx ip knxip eib home automation",
zip_safe=False,
)
| mit | Python |
de494854e618d662ea78e1cb9abab4aa7047957d | bump mypy from 0.930 to 0.942 | malwarefrank/dnfile | setup.py | setup.py | #!/usr/bin/env python
"""The setup script."""
from setuptools import setup, find_packages
with open("README.rst") as readme_file:
readme = readme_file.read()
with open("HISTORY.rst") as history_file:
history = history_file.read()
requirements = ["pefile>=2019.4.18"]
setup_requirements = [
"pytest-runner",
]
test_requirements = [
"pytest>=3",
"isort==5.10.1",
"pycodestyle==2.8.0",
"mypy==0.942",
]
setup(
author="MalwareFrank",
python_requires=">=3.5",
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
],
description="Parse .NET executable files.",
install_requires=requirements,
license="MIT license",
long_description=readme + "\n\n" + history,
include_package_data=True,
keywords="dnfile",
name="dnfile",
packages=find_packages(where="src", include=["dnfile", "dnfile.*"]),
package_dir={"": "src"},
package_data={"dnfile": ["py.typed"]},
setup_requires=setup_requirements,
test_suite="tests",
tests_require=test_requirements,
extras_require={'test': test_requirements},
url="https://github.com/malwarefrank/dnfile",
version="0.9.0",
zip_safe=False,
)
| #!/usr/bin/env python
"""The setup script."""
from setuptools import setup, find_packages
with open("README.rst") as readme_file:
readme = readme_file.read()
with open("HISTORY.rst") as history_file:
history = history_file.read()
requirements = ["pefile>=2019.4.18"]
setup_requirements = [
"pytest-runner",
]
test_requirements = [
"pytest>=3",
"isort==5.10.1",
"pycodestyle==2.8.0",
"mypy==0.930",
]
setup(
author="MalwareFrank",
python_requires=">=3.5",
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
],
description="Parse .NET executable files.",
install_requires=requirements,
license="MIT license",
long_description=readme + "\n\n" + history,
include_package_data=True,
keywords="dnfile",
name="dnfile",
packages=find_packages(where="src", include=["dnfile", "dnfile.*"]),
package_dir={"": "src"},
package_data={"dnfile": ["py.typed"]},
setup_requires=setup_requirements,
test_suite="tests",
tests_require=test_requirements,
extras_require={'test': test_requirements},
url="https://github.com/malwarefrank/dnfile",
version="0.9.0",
zip_safe=False,
)
| mit | Python |
39d5186ad4930086e48151c6d2d7b14468aa2ac4 | Update setup.py | ambitioninc/django-narrative,ambitioninc/django-narrative | setup.py | setup.py | from setuptools import setup
setup(
name='django-narrative',
version='0.5.8',
packages=[
'narrative',
'narrative.batteries',
'narrative.migrations',
'narrative.management',
'narrative.management.commands',
],
url='https://github.com/',
description='Django narrative',
install_requires=[
'django>=1.4',
'django-manager-utils>=0.3.6',
'django-tastypie>=0.11.0',
'pytz>=2012h',
]
)
| from setuptools import setup
setup(
name='django-narrative',
version='0.5.7.9',
packages=[
'narrative',
'narrative.batteries',
'narrative.migrations',
'narrative.management',
'narrative.management.commands',
],
url='https://github.com/',
description='Django narrative',
install_requires=[
'django>=1.4',
'django-manager-utils>=0.3.6',
'django-tastypie>=0.11.0',
'pytz>=2012h',
]
)
| mit | Python |
b9c8a68dd83f753997c562646bb9352a5e5b63f5 | Fix model Article.last_modifid | invzhi/invzhi.me,invzhi/invzhi.me | mysite/article/models.py | mysite/article/models.py | from django.db import models
class Tag(models.Model):
name = models.CharField(max_length=10)
def __str__(self):
return self.name
class Article(models.Model):
title = models.CharField(max_length=50)
tags = models.ManyToManyField(Tag)
content = models.TextField()
views = models.PositiveIntegerField(default=0)
likes = models.PositiveIntegerField(default=0)
# DateTime
first_commit = models.DateTimeField(auto_now_add=True)
last_modified = models.DateTimeField(auto_now_add=True) # TODO: admin save() update time
def __str__(self):
return self.title
def summary(self):
return self.content[:self.content.find('\n')]
def reading_time(self):
return len(self.content) // 1000
def increase_views(self):
self.views += 1
self.save()
| from django.db import models
class Tag(models.Model):
name = models.CharField(max_length=10)
def __str__(self):
return self.name
class Article(models.Model):
title = models.CharField(max_length=50)
tags = models.ManyToManyField(Tag)
content = models.TextField()
views = models.PositiveIntegerField(default=0)
likes = models.PositiveIntegerField(default=0)
# DateTime
first_commit = models.DateTimeField(auto_now_add=True)
last_modified = models.DateTimeField() # TODO: admin save() update time
def __str__(self):
return self.title
def summary(self):
return self.content[:self.content.find('\n')]
def reading_time(self):
return len(self.content) // 1000
def increase_views(self):
self.views += 1
self.save()
| bsd-3-clause | Python |
a584fab6d94eac7d2362459254c375338bc91012 | Increment release. | chevah/pocket-lint,chevah/pocket-lint | setup.py | setup.py | #!/usr/bin/python
import subprocess
from distutils.core import setup
from distutils.command.sdist import sdist
class SignedSDistCommand(sdist):
"""Sign the source archive with a detached signature."""
description = "Sign the source archive after it is generated."
def run(self):
sdist.run(self)
gpg_args = [
'gpg', '--armor', '--sign', '--detach-sig', self.archive_files[0]]
gpg = subprocess.Popen(
gpg_args, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
gpg.communicate()
setup(
name="pocketlint",
description="Pocket-lint a composite linter and style checker.",
version="0.5.26",
maintainer="Curtis C. Hovey",
maintainer_email="sinzui.is@verizon.net",
url="https://launchpad.net/pocket-lint",
packages=[
'pocketlint', 'pocketlint/contrib', 'pocketlint/contrib/pyflakes'],
package_dir={
'pocketlint': 'pocketlint',
'pocketlint/contrib': 'pocketlint/contrib'},
package_data={
'pocketlint': ['jsreporter.js'],
'pocketlint/contrib': ['fulljslint.js'],
},
scripts=['scripts/pocketlint'],
cmdclass={
'signed_sdist': SignedSDistCommand,
},
)
| #!/usr/bin/python
import subprocess
from distutils.core import setup
from distutils.command.sdist import sdist
class SignedSDistCommand(sdist):
"""Sign the source archive with a detached signature."""
description = "Sign the source archive after it is generated."
def run(self):
sdist.run(self)
gpg_args = [
'gpg', '--armor', '--sign', '--detach-sig', self.archive_files[0]]
gpg = subprocess.Popen(
gpg_args, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
gpg.communicate()
setup(
name="pocketlint",
description="Pocket-lint a composite linter and style checker.",
version="0.5.25",
maintainer="Curtis C. Hovey",
maintainer_email="sinzui.is@verizon.net",
url="https://launchpad.net/pocket-lint",
packages=[
'pocketlint', 'pocketlint/contrib', 'pocketlint/contrib/pyflakes'],
package_dir={
'pocketlint': 'pocketlint',
'pocketlint/contrib': 'pocketlint/contrib'},
package_data={
'pocketlint': ['jsreporter.js'],
'pocketlint/contrib': ['fulljslint.js'],
},
scripts=['scripts/pocketlint'],
cmdclass={
'signed_sdist': SignedSDistCommand,
},
)
| mit | Python |
0f193ca138b1a202ea3a4e54585c05410ae7263d | increase timeout | contactless/wirenboard,contactless/wirenboard,contactless/wirenboard,contactless/wirenboard,contactless/wirenboard,contactless/wirenboard,contactless/wirenboard | examples/test_suite/common/wbmqtt.py | examples/test_suite/common/wbmqtt.py | #!/usr/bin/python
import mosquitto
import time
import sys
from collections import defaultdict
VALUES_MASK = "/devices/+/controls/+"
class WBMQTT(object):
def __init__(self):
self.control_values = defaultdict(lambda: None)
self.client = mosquitto.Mosquitto()
self.client.connect('localhost',1883)
self.client.on_message = self.on_mqtt_message
self.client.loop_start()
self.client.subscribe(VALUES_MASK)
def on_mqtt_message(self, arg0, arg1, arg2=None):
if arg2 is None:
mosq, obj, msg = None, arg0, arg1
else:
mosq, obj, msg = arg0, arg1, arg2
if mosquitto.topic_matches_sub(VALUES_MASK, msg.topic):
parts = msg.topic.split('/')
device_id = parts[2]
control_id = parts[4]
self.control_values[(device_id, control_id)] = msg.payload
def clear_values(self):
self.control_values.clear()
def get_last_value(self, device_id, control_id):
return self.control_values[(device_id, control_id)]
def get_next_value(self, device_id, control_id, timeout = 10):
self.control_values[(device_id, control_id)] = None
ts_start = time.time()
while 1:
if (time.time() - ts_start) > timeout:
return
value = self.get_last_value(device_id, control_id)
if value is not None:
return value
time.sleep(0.01)
def send_value(self, device_id, control_id, new_value, retain=False):
self.client.publish("/devices/%s/controls/%s/on" % (device_id, control_id), new_value, retain=retain)
def close(self):
self.client.loop_stop()
def __del__(self):
self.close()
if __name__ == '__main__':
time.sleep(1)
print wbmqtt.get_last_value('wb-adc', 'A1')
wbmqtt.close()
| #!/usr/bin/python
import mosquitto
import time
import sys
from collections import defaultdict
VALUES_MASK = "/devices/+/controls/+"
class WBMQTT(object):
def __init__(self):
self.control_values = defaultdict(lambda: None)
self.client = mosquitto.Mosquitto()
self.client.connect('localhost',1883)
self.client.on_message = self.on_mqtt_message
self.client.loop_start()
self.client.subscribe(VALUES_MASK)
def on_mqtt_message(self, arg0, arg1, arg2=None):
if arg2 is None:
mosq, obj, msg = None, arg0, arg1
else:
mosq, obj, msg = arg0, arg1, arg2
if mosquitto.topic_matches_sub(VALUES_MASK, msg.topic):
parts = msg.topic.split('/')
device_id = parts[2]
control_id = parts[4]
self.control_values[(device_id, control_id)] = msg.payload
def clear_values(self):
self.control_values.clear()
def get_last_value(self, device_id, control_id):
return self.control_values[(device_id, control_id)]
def get_next_value(self, device_id, control_id, timeout = 1):
self.control_values[(device_id, control_id)] = None
ts_start = time.time()
while 1:
if (time.time() - ts_start) > timeout:
return
value = self.get_last_value(device_id, control_id)
if value is not None:
return value
time.sleep(0.01)
def send_value(self, device_id, control_id, new_value, retain=False):
self.client.publish("/devices/%s/controls/%s/on" % (device_id, control_id), new_value, retain=retain)
def close(self):
self.client.loop_stop()
def __del__(self):
self.close()
if __name__ == '__main__':
time.sleep(1)
print wbmqtt.get_last_value('wb-adc', 'A1')
wbmqtt.close()
| mit | Python |
72d8d1a491d2c778b6febca25d20d66c3455765a | add dependency on pythonlsf | genome/flow-core,genome/flow-core,genome/flow-core | setup.py | setup.py | import distribute_setup
distribute_setup.use_setuptools()
from setuptools import setup, find_packages
entry_points = '''
[flow.protocol.message_classes]
submit_command = flow.protocol._messages.command_line:SubmitCommandLineMessage
'''
setup(
name = 'flow',
version = '0.1',
packages = find_packages(),
entry_points = entry_points,
install_requires = [
'amqp_manager',
'pythonlsf',
],
test_suite = 'unit_tests',
)
| import distribute_setup
distribute_setup.use_setuptools()
from setuptools import setup, find_packages
entry_points = '''
[flow.protocol.message_classes]
submit_command = flow.protocol._messages.command_line:SubmitCommandLineMessage
'''
setup(
name = 'flow',
version = '0.1',
packages = find_packages(),
entry_points = entry_points,
install_requires = [
'amqp_manager',
],
test_suite = 'unit_tests',
)
| agpl-3.0 | Python |
657d7bcf177a86170d776511769712a344e010b1 | Update setup.py and change version to 0.1.0 | hallazzang/asyncio-throttle | setup.py | setup.py | import os
from setuptools import setup
def get_long_description(path):
path = os.path.join(os.path.dirname(os.path.abspath(__file__)), path)
with open(path) as f:
return f.read()
setup(
name='asyncio-throttle',
version='0.1.0',
url='https://github.com/hallazzang/asyncio-throttle',
license='MIT',
author='hallazzang',
author_email='hallazzang@gmail.com',
description='Simple, easy-to-use throttler for asyncio',
long_description=get_long_description('README.rst'),
py_modules=['asyncio_throttle'],
zip_safe=False,
platforms='any',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Topic :: Software Development :: Libraries :: Python Modules',
]
)
| from setuptools import setup
"""
================
asyncio-throttle
================
|travis-ci| |pypi-version| |pypi-license|
Simple, easy-to-use throttler for asyncio.
Example
-------
.. code:: python
import time
import random
import asyncio
from asyncio_throttle import Throttler
async def worker(no, throttler, n):
for _ in range(n):
await asyncio.sleep(random.random() * 2)
async with throttler:
print(time.time(), 'Worker #%d: Bang!' % no)
async def main():
throttler = Throttler(rate_limit=5)
tasks = [
loop.create_task(worker(no, throttler, 10))
for no in range(5)
]
await asyncio.wait(tasks)
loop = asyncio.get_event_loop()
loop.run_until_complete(main())
loop.close()
Here I limited work rate to 5/sec while there are 5 workers.
Installation
------------
.. code:: bash
$ pip install asyncio-throttle
Usage
-----
``asyncio_throttle.Throttler`` introduces simple APIs:
``flush()`` and ``acquire()``. But you will not be interested in those
because you can just use it within ``with`` statement and it looks nicer.
First, create a throttler given desired rate limit.
For example if you want to limit rate to 500/min, you can make it as:
.. code:: python
from asyncio_throttle import Throttler
throttler = Throttler(rate_limit=500, period=60)
Then whenever you want to do some jobs which should have limited
rate(e.g. sending request to server), Put it in ``async with`` statement:
.. code:: python
async with throttler:
send_a_request()
It's that easy. ``asyncio_throttler`` can be easily integrated
with ``aiohttp`` too:
.. code:: python
async def worker(throttler, session):
while True:
async with throttler:
async with session.get('http://example.com') as resp:
do_some_job_with(await resp.text())
await asyncio.sleep(0.05)
.. |pypi-version| image:: https://img.shields.io/pypi/v/asyncio-throttle.svg?style=flat-square
:target: https://pypi.python.org/pypi/asyncio-throttle/
.. |pypi-license| image:: https://img.shields.io/pypi/l/asyncio-throttle.svg?style=flat-square
:target: https://pypi.python.org/pypi/asyncio-throttle/
.. |travis-ci| image:: https://travis-ci.org/hallazzang/asyncio-throttle.svg?branch=master
:target: https://travis-ci.org/hallazzang/asyncio-throttle
"""
setup(
name='asyncio-throttle',
version='0.0.2',
url='https://github.com/hallazzang/asyncio-throttle',
license='MIT',
author='hallazzang',
author_email='hallazzang@gmail.com',
description='Simple, easy-to-use throttler for asyncio',
long_description=__doc__,
py_modules=['asyncio_throttle'],
zip_safe=False,
platforms='any',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Topic :: Software Development :: Libraries :: Python Modules',
]
)
| mit | Python |
20d0f9dba2e6d193d53f2e0337304db5617ba411 | Bump South version in setup.py - it's old! | khchine5/opal,khchine5/opal,khchine5/opal | setup.py | setup.py | import os
import re
from setuptools import setup
README = open(os.path.join(os.path.dirname(__file__), 'README.md')).read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
HERE = os.path.realpath(os.path.dirname(__file__))
VERSION_FILE = os.path.join(HERE, "opal/_version.py")
verstrline = open(VERSION_FILE, "rt").read()
VSRE = r'^__version__ = [\'"]([^\'"]*)[\'"]'
mo = re.search(VSRE, verstrline, re.M)
if mo:
VERSION = mo.group(1)
else:
raise RuntimeError("Unable to find version string in {0}".format(VERSION_FILE))
setup(
name='opal',
version=VERSION,
packages=['opal', 'opal.utils'],
include_package_data=True,
license='GPL3', # example license
description='Clinical Transactional Digital Services Framework.',
long_description=README,
url='http://opal.openhealthcare.org.uk/',
author='Open Health Care UK',
author_email='hello@openhealthcare.org.uk',
scripts=['bin/opal'],
install_requires=[
'ffs',
'letter',
'jinja2',
'requests',
'django==1.6.11',
'South==1.0.2',
'django-reversion==1.8.0',
'django-axes==1.3.4',
'djangorestframework',
'django-compressor==1.5'
]
)
| import os
import re
from setuptools import setup
README = open(os.path.join(os.path.dirname(__file__), 'README.md')).read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
HERE = os.path.realpath(os.path.dirname(__file__))
VERSION_FILE = os.path.join(HERE, "opal/_version.py")
verstrline = open(VERSION_FILE, "rt").read()
VSRE = r'^__version__ = [\'"]([^\'"]*)[\'"]'
mo = re.search(VSRE, verstrline, re.M)
if mo:
VERSION = mo.group(1)
else:
raise RuntimeError("Unable to find version string in {0}".format(VERSION_FILE))
setup(
name='opal',
version=VERSION,
packages=['opal', 'opal.utils'],
include_package_data=True,
license='GPL3', # example license
description='Clinical Transactional Digital Services Framework.',
long_description=README,
url='http://opal.openhealthcare.org.uk/',
author='Open Health Care UK',
author_email='hello@openhealthcare.org.uk',
scripts=['bin/opal'],
install_requires=[
'ffs',
'letter',
'jinja2',
'requests',
'django==1.6.11',
'South==0.8.1',
'django-reversion==1.8.0',
'django-axes==1.3.4',
'djangorestframework',
'django-compressor==1.5'
]
)
| agpl-3.0 | Python |
db815a76fbf67eda9121cb5940fc9eae528df5d5 | Revise err msg. | uw-it-aca/myuw,uw-it-aca/myuw,uw-it-aca/myuw,uw-it-aca/myuw | myuw/dao/applications.py | myuw/dao/applications.py | import logging
from uw_sdbmyuw import get_app_status
from myuw.dao import get_userids
from myuw.dao.pws import get_student_system_key_of_current_user
logger = logging.getLogger(__name__)
def get_applications(request):
response = []
system_key = get_student_system_key_of_current_user(request)
if system_key is not None:
applications = get_app_status(system_key)
for application in applications:
response.append(application.json_data())
else:
logger.error("Student system key not found. {}".format(get_userids()))
return response
| import logging
from uw_sdbmyuw import get_app_status
from myuw.dao import get_userids
from myuw.dao.pws import get_student_system_key_of_current_user
logger = logging.getLogger(__name__)
def get_applications(request):
response = []
system_key = get_student_system_key_of_current_user(request)
if system_key is not None:
applications = get_app_status(system_key)
for application in applications:
response.append(application.json_data())
else:
logger.error("Missing system key. {}".format(get_userids()))
return response
| apache-2.0 | Python |
41133c63eb7432d35a2b14ce8c9b58c0bac60eed | Bump version | treyhunner/django-email-log,treyhunner/django-email-log | setup.py | setup.py | from setuptools import setup, find_packages
setup(
name='django-email-log',
version='0.1.0.post1',
author='Trey Hunner',
author_email='trey@treyhunner.com',
description='Django email backend that logs all emails',
long_description='\n\n'.join((
open('README.rst').read(),
open('CHANGES.rst').read(),
)),
url='https://github.com/treyhunner/django-email-log',
license='LICENSE',
packages=find_packages(),
install_requires=['Django >= 1.4.2'],
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Framework :: Django',
],
tests_require=['Django >= 1.4.2'],
include_package_data=True,
test_suite='runtests.runtests',
)
| from setuptools import setup, find_packages
setup(
name='django-email-log',
version='0.1.0',
author='Trey Hunner',
author_email='trey@treyhunner.com',
description='Django email backend that logs all emails',
long_description='\n\n'.join((
open('README.rst').read(),
open('CHANGES.rst').read(),
)),
url='https://github.com/treyhunner/django-email-log',
license='LICENSE',
packages=find_packages(),
install_requires=['Django >= 1.4.2'],
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Framework :: Django',
],
tests_require=['Django >= 1.4.2'],
include_package_data=True,
test_suite='runtests.runtests',
)
| mit | Python |
377ca155a74e3c0a4fe1335b8d0235b8327edf63 | Clean setup file | opps/opps,jeanmask/opps,YACOWS/opps,williamroot/opps,opps/opps,opps/opps,williamroot/opps,YACOWS/opps,opps/opps,williamroot/opps,williamroot/opps,jeanmask/opps,jeanmask/opps,jeanmask/opps,YACOWS/opps,YACOWS/opps | setup.py | setup.py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
from setuptools import setup, find_packages
import opps
install_requires = ["Django>=1.5",
"south>=0.7",
"Pillow==1.7.8",
"django-filebrowser==3.5.1",
"django-redis",
"django-redactor"]
classifiers = ["Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Framework :: Django",
'Programming Language :: Python',
"Programming Language :: Python :: 2.7",
"Operating System :: OS Independent",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
'Topic :: Software Development :: Libraries :: Python Modules',]
try:
long_description = open('README.md').read()
except:
long_description = opps.__description__
setup(name='opps',
version = opps.__version__,
description = opps.__description__,
long_description = long_description,
classifiers = classifiers,
keywords = 'opps cms django apps magazines websites',
author = opps.__author__,
author_email = opps.__email__,
url = 'http://oppsproject.org',
download_url = "https://github.com/avelino/opps/tarball/master",
license = opps.__license__,
packages = find_packages(exclude=('doc',)),
package_dir = {'opps': 'opps'},
install_requires = install_requires,
include_package_data = True,
)
| #!/usr/bin/env python
# -*- coding:utf-8 -*-
from setuptools import setup, find_packages
import opps
install_requires = ["Django>=1.5",
"south>=0.7",
"Pillow==1.7.8",
"django-filebrowser==3.5.1",
"django-redis",
"django-redactor"]
classifiers = ["Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Framework :: Django",
'Programming Language :: Python',
"Programming Language :: Python :: 2.7",
"Operating System :: OS Independent",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
'Topic :: Software Development :: Libraries :: Python Modules',]
try:
long_description = open('README.md').read()
except:
long_description = opps.__description__
setup(name='opps',
version = opps.__version__,
description = opps.__description__,
long_description = long_description,
classifiers = classifiers,
keywords = 'opps cms django apps magazines websites',
author = opps.__author__,
author_email = opps.__email__,
url = 'http://oppsproject.org',
download_url = "https://github.com/avelino/opps/tarball/master",
license = opps.__license__,
packages = find_packages(exclude=('doc',)),
package_dir = {'opps': 'opps'},
install_requires = install_requires,
include_package_data = True,
)
| mit | Python |
798b7976084748d7966b3fc3e4ae2e9a634c99de | Use compatible release versions for all dependencies | remind101/stacker,remind101/stacker,mhahn/stacker,mhahn/stacker | setup.py | setup.py | import os
from setuptools import setup, find_packages
import glob
VERSION = "0.6.3"
src_dir = os.path.dirname(__file__)
install_requires = [
"troposphere~=1.8.0",
"boto3~=1.3.1",
"botocore~=1.4.38",
"PyYAML~=3.11",
"awacs~=0.6.0",
"colorama~=0.3.7",
]
tests_require = [
"nose~=1.0",
"mock~=2.0.0",
"stacker_blueprints~=0.6.0",
"moto~=0.4.25",
"testfixtures~=4.10.0",
]
def read(filename):
full_path = os.path.join(src_dir, filename)
with open(full_path) as fd:
return fd.read()
if __name__ == "__main__":
setup(
name="stacker",
version=VERSION,
author="Michael Barrett",
author_email="loki77@gmail.com",
license="New BSD license",
url="https://github.com/remind101/stacker",
description="Opinionated AWS CloudFormation Stack manager",
long_description=read("README.rst"),
packages=find_packages(),
scripts=glob.glob(os.path.join(src_dir, "scripts", "*")),
install_requires=install_requires,
tests_require=tests_require,
test_suite="nose.collector",
)
| import os
from setuptools import setup, find_packages
import glob
VERSION = "0.6.3"
src_dir = os.path.dirname(__file__)
install_requires = [
"troposphere>=1.8.0",
"boto3>=1.3.1",
"botocore>=1.4.38",
"PyYAML>=3.11",
"awacs>=0.6.0",
"colorama==0.3.7",
]
tests_require = [
"nose>=1.0",
"mock==1.0.1",
"stacker_blueprints",
"moto",
"testfixtures",
]
def read(filename):
full_path = os.path.join(src_dir, filename)
with open(full_path) as fd:
return fd.read()
if __name__ == "__main__":
setup(
name="stacker",
version=VERSION,
author="Michael Barrett",
author_email="loki77@gmail.com",
license="New BSD license",
url="https://github.com/remind101/stacker",
description="Opinionated AWS CloudFormation Stack manager",
long_description=read("README.rst"),
packages=find_packages(),
scripts=glob.glob(os.path.join(src_dir, "scripts", "*")),
install_requires=install_requires,
tests_require=tests_require,
test_suite="nose.collector",
)
| bsd-2-clause | Python |
7e4480cc61854f18f3420a56ec10173964f91838 | add whitespace after class definition | red-hat-storage/rhcephcompose,red-hat-storage/rhcephcompose | setup.py | setup.py | import os
import re
import sys
import subprocess
from setuptools.command.test import test as TestCommand
from setuptools import setup, Command
readme = os.path.join(os.path.dirname(__file__), 'README.rst')
LONG_DESCRIPTION = open(readme).read()
module_file = open('rhcephcompose/__init__.py').read()
metadata = dict(re.findall(r"__([a-z]+)__\s*=\s*'([^']+)'", module_file))
version = metadata['version']
class ReleaseCommand(Command):
""" Tag and push a new release. """
user_options = [('sign', 's', 'GPG-sign the Git tag and release files')]
def initialize_options(self):
self.sign = False
def finalize_options(self):
pass
def run(self):
# Create Git tag
tag_name = 'v%s' % version
cmd = ['git', 'tag', '-a', tag_name, '-m', 'version %s' % version]
if self.sign:
cmd.append('-s')
print(' '.join(cmd))
subprocess.check_call(cmd)
# Push Git tag to origin remote
cmd = ['git', 'push', 'origin', tag_name]
print(' '.join(cmd))
subprocess.check_call(cmd)
# Push package to pypi
cmd = ['python', 'setup.py', 'sdist', 'upload']
if self.sign:
cmd.append('--sign')
print(' '.join(cmd))
subprocess.check_call(cmd)
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 pytest
errno = pytest.main('rhcephcompose ' + self.pytest_args)
sys.exit(errno)
setup(
name='rhcephcompose',
description='Distribution compose tool',
packages=['rhcephcompose'],
author='Ken Dreyer',
author_email='kdreyer@redhat.com',
version=version,
license='MIT',
zip_safe=False,
keywords='compose, pungi',
long_description=LONG_DESCRIPTION,
scripts=['bin/rhcephcompose'],
install_requires=[
'kobo',
'requests',
],
tests_require=[
'pytest',
],
cmdclass={'test': PyTest, 'release': ReleaseCommand},
)
| import os
import re
import sys
import subprocess
from setuptools.command.test import test as TestCommand
from setuptools import setup, Command
readme = os.path.join(os.path.dirname(__file__), 'README.rst')
LONG_DESCRIPTION = open(readme).read()
module_file = open('rhcephcompose/__init__.py').read()
metadata = dict(re.findall(r"__([a-z]+)__\s*=\s*'([^']+)'", module_file))
version = metadata['version']
class ReleaseCommand(Command):
""" Tag and push a new release. """
user_options = [('sign', 's', 'GPG-sign the Git tag and release files')]
def initialize_options(self):
self.sign = False
def finalize_options(self):
pass
def run(self):
# Create Git tag
tag_name = 'v%s' % version
cmd = ['git', 'tag', '-a', tag_name, '-m', 'version %s' % version]
if self.sign:
cmd.append('-s')
print(' '.join(cmd))
subprocess.check_call(cmd)
# Push Git tag to origin remote
cmd = ['git', 'push', 'origin', tag_name]
print(' '.join(cmd))
subprocess.check_call(cmd)
# Push package to pypi
cmd = ['python', 'setup.py', 'sdist', 'upload']
if self.sign:
cmd.append('--sign')
print(' '.join(cmd))
subprocess.check_call(cmd)
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 pytest
errno = pytest.main('rhcephcompose ' + self.pytest_args)
sys.exit(errno)
setup(
name='rhcephcompose',
description='Distribution compose tool',
packages=['rhcephcompose'],
author='Ken Dreyer',
author_email='kdreyer@redhat.com',
version=version,
license='MIT',
zip_safe=False,
keywords='compose, pungi',
long_description=LONG_DESCRIPTION,
scripts=['bin/rhcephcompose'],
install_requires=[
'kobo',
'requests',
],
tests_require=[
'pytest',
],
cmdclass={'test': PyTest, 'release': ReleaseCommand},
)
| mit | Python |
44686cb9e235b74a7031cf7d7e14195ee4155d52 | Bump version to 6.0.0 | incuna/incuna-auth,incuna/incuna-auth | setup.py | setup.py | from setuptools import find_packages, setup
install_requires = ('django-admin-sso', 'django-crispy-forms')
setup(
name='incuna-auth',
version='6.0.0',
url='http://github.com/incuna/incuna-auth',
packages=find_packages(),
include_package_data=True,
install_requires=install_requires,
description='Provides authentication parts.',
long_description=open('README.rst').read(),
author='Incuna Ltd',
author_email='admin@incuna.com',
)
| from setuptools import find_packages, setup
install_requires = ('django-admin-sso', 'django-crispy-forms')
setup(
name='incuna-auth',
version='5.0.0',
url='http://github.com/incuna/incuna-auth',
packages=find_packages(),
include_package_data=True,
install_requires=install_requires,
description='Provides authentication parts.',
long_description=open('README.rst').read(),
author='Incuna Ltd',
author_email='admin@incuna.com',
)
| bsd-2-clause | Python |
25f1a89a901b865046c99f79455dca9d4c2c6b57 | Bump version to 0.4.1. | quantopian/coal-mine | setup.py | setup.py | import sys
from setuptools import setup, find_packages
if sys.version_info[0] < 3:
sys.exit("This package does not work with Python 2.")
# You can't just put `from pypandoc import convert` at the top of your
# setup.py and then put `description=convert("README.md", "rst")` in
# your `setup()` invocation, because even if you list list `pypandoc`
# in `setup_requires`, it won't be interpreted and installed until
# after the keyword argument values of the `setup()` invocation have
# been evaluated. Therefore, we define a `lazy_convert` class which
# impersonates a string but doesn't actually import or use `pypandoc`
# until the value of the string is needed. This defers the use of
# `pypandoc` until after setuptools has figured out that it is needed
# and made it available.
class lazy_convert(object):
def __init__(self, *args, **kwargs):
self.args = args
self.kwargs = kwargs
def __str__(self):
from pypandoc import convert
return str(convert(*self.args, **self.kwargs))
def __repr__(self):
return repr(str(self))
def split(self, *args, **kwargs):
return str(self).split(*args, **kwargs)
def replace(self, *args, **kwargs):
return str(self).replace(*args, **kwargs)
setup(
name="coal_mine",
version='0.4.1',
author='Quantopian Inc.',
author_email='opensource@quantopian.com',
description="Coal Mine - Periodic task execution monitor",
url='https://github.com/quantopian/coal-mine',
long_description=lazy_convert('README.md', 'rst'),
license='Apache 2.0',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: Apache Software License',
'Natural Language :: English',
'Programming Language :: Python',
'Programming Language :: Python :: 3 :: Only',
'Topic :: Internet :: WWW/HTTP :: WSGI :: Server',
'Topic :: System :: Monitoring',
'Topic :: System :: Systems Administration',
],
packages=find_packages(),
setup_requires=['pypandoc'],
install_requires=open('requirements.txt').read(),
entry_points={
'console_scripts': [
"coal-mine = coal_mine.server:main",
"cmcli = coal_mine.cli:main"
]
},
zip_safe=True,
)
| import sys
from setuptools import setup, find_packages
if sys.version_info[0] < 3:
sys.exit("This package does not work with Python 2.")
# You can't just put `from pypandoc import convert` at the top of your
# setup.py and then put `description=convert("README.md", "rst")` in
# your `setup()` invocation, because even if you list list `pypandoc`
# in `setup_requires`, it won't be interpreted and installed until
# after the keyword argument values of the `setup()` invocation have
# been evaluated. Therefore, we define a `lazy_convert` class which
# impersonates a string but doesn't actually import or use `pypandoc`
# until the value of the string is needed. This defers the use of
# `pypandoc` until after setuptools has figured out that it is needed
# and made it available.
class lazy_convert(object):
def __init__(self, *args, **kwargs):
self.args = args
self.kwargs = kwargs
def __str__(self):
from pypandoc import convert
return str(convert(*self.args, **self.kwargs))
def __repr__(self):
return repr(str(self))
def split(self, *args, **kwargs):
return str(self).split(*args, **kwargs)
def replace(self, *args, **kwargs):
return str(self).replace(*args, **kwargs)
setup(
name="coal_mine",
version='0.4',
author='Quantopian Inc.',
author_email='opensource@quantopian.com',
description="Coal Mine - Periodic task execution monitor",
url='https://github.com/quantopian/coal-mine',
long_description=lazy_convert('README.md', 'rst'),
license='Apache 2.0',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: Apache Software License',
'Natural Language :: English',
'Programming Language :: Python',
'Programming Language :: Python :: 3 :: Only',
'Topic :: Internet :: WWW/HTTP :: WSGI :: Server',
'Topic :: System :: Monitoring',
'Topic :: System :: Systems Administration',
],
packages=find_packages(),
setup_requires=['pypandoc'],
install_requires=open('requirements.txt').read(),
entry_points={
'console_scripts': [
"coal-mine = coal_mine.server:main",
"cmcli = coal_mine.cli:main"
]
},
zip_safe=True,
)
| apache-2.0 | Python |
8e856cc2b5a63d2cc6fb50c00d2c404d67606ea0 | Change author in setup.py | sdu-cfei/modest-py | setup.py | setup.py | from setuptools import setup
setup(
name='modestpy',
version='0.1',
description='FMI-compliant model identification package',
url='https://github.com/sdu-cfei/modest-py',
keywords='fmi fmu optimization model identification estimation',
author='Center for Energy Informatics SDU',
author_email='veje@mmmi.sdu.dk',
license='BSD',
platforms=['Windows', 'Linux'],
packages=[
'modestpy',
'modestpy.estim',
'modestpy.estim.ga_parallel',
'modestpy.estim.ga',
'modestpy.estim.ps',
'modestpy.estim.scipy',
'modestpy.fmi',
'modestpy.utilities',
'modestpy.test'],
include_package_data=True,
install_requires=[
'fmpy[complete]',
'scipy',
'pandas',
'matplotlib',
'numpy',
'pyDOE',
'modestga'
],
classifiers=[
'Programming Language :: Python :: 3'
]
)
| from setuptools import setup
setup(
name='modestpy',
version='0.1',
description='FMI-compliant model identification package',
url='https://github.com/sdu-cfei/modest-py',
keywords='fmi fmu optimization model identification estimation',
author='Krzysztof Arendt',
author_email='krzysztof.arendt@gmail.com',
license='BSD',
platforms=['Windows', 'Linux'],
packages=[
'modestpy',
'modestpy.estim',
'modestpy.estim.ga_parallel',
'modestpy.estim.ga',
'modestpy.estim.ps',
'modestpy.estim.scipy',
'modestpy.fmi',
'modestpy.utilities',
'modestpy.test'],
include_package_data=True,
install_requires=[
'fmpy[complete]',
'scipy',
'pandas',
'matplotlib',
'numpy',
'pyDOE',
'modestga'
],
classifiers=[
'Programming Language :: Python :: 3'
]
)
| bsd-2-clause | Python |
44893a36364323699b29db55c61d34f15b08af5c | Clean up setup.py | dirn/When.py | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup
settings = dict()
setup(
name='whenpy',
version='0.4.0',
description='Friendly Dates and Times',
long_description=open('README.rst').read(),
author='Andy Dirnberger',
author_email='dirn@dirnonline.com',
url='https://github.com/dirn/When.py',
py_modules=['when'],
package_data={'': ['LICENSE', 'README.rst']},
include_package_data=True,
install_requires=['pytz'],
tests_require=['coverage', 'mock', 'nose'],
license=open('LICENSE').read(),
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
'Topic :: Software Development :: Libraries :: Python Modules',
],
)
| #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
settings = dict()
settings.update(
name='whenpy',
version='0.4.0',
description='Friendly Dates and Times',
long_description=open('README.rst').read(),
author='Andy Dirnberger',
author_email='dirn@dirnonline.com',
url='https://github.com/dirn/When.py',
py_modules=['when'],
package_data={'': ['LICENSE']},
include_package_data=True,
install_requires=['pytz'],
tests_require=['coverage', 'mock', 'nose'],
license=open('LICENSE').read(),
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
'Topic :: Software Development :: Libraries :: Python Modules',
],
)
setup(**settings)
| bsd-3-clause | Python |
bdafcacd481b15fd53cc0bdf0fc0193b32afd08a | Bump version to 3.1m5 | cloudify-cosmo/cloudify-rest-client,aria-tosca/cloudify-rest-client,codilime/cloudify-rest-client | setup.py | setup.py | ########
# Copyright (c) 2013 GigaSpaces Technologies Ltd. All rights reserved
#
# 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.
__author__ = 'ran'
from setuptools import setup
setup(
name='cloudify-rest-client',
version='3.1a5',
author='ran',
author_email='ran@gigaspaces.com',
packages=['cloudify_rest_client'],
license='LICENSE',
description='Cloudify REST client',
install_requires=[
'requests',
]
)
| ########
# Copyright (c) 2013 GigaSpaces Technologies Ltd. All rights reserved
#
# 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.
__author__ = 'ran'
from setuptools import setup
setup(
name='cloudify-rest-client',
version='3.1a4',
author='ran',
author_email='ran@gigaspaces.com',
packages=['cloudify_rest_client'],
license='LICENSE',
description='Cloudify REST client',
install_requires=[
'requests',
]
)
| apache-2.0 | Python |
c687e10d7db9bdbcfaf8219d397c96a9b6c0cce5 | Update to 2.5.0 | jasedit/scriptorium,jasedit/papers_base | setup.py | setup.py | """Setuptools file for a MultiMarkdown Python wrapper."""
from codecs import open
from os import path
from distutils.core import setup
from setuptools import find_packages
import pypandoc
here = path.abspath(path.dirname(__file__))
long_description = pypandoc.convert_file('README.md', 'rst')
setup(
name='scriptorium',
version='2.5.0',
description='Multimarkdown and LaTeX framework for academic papers.',
long_description=long_description,
license='MIT',
author='Jason Ziglar',
author_email='jasedit@gmail.com',
url="https://github.com/jasedit/scriptorium",
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Topic :: Text Processing :: Markup',
'Topic :: Text Processing :: Filters',
'Topic :: Software Development :: Libraries :: Python Modules',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3'
],
packages=find_packages(),
entry_points = {
'console_scripts': ['scriptorium = scriptorium:main'],
},
package_data={'scriptorium': ['data/gitignore']},
install_requires=['pyyaml', 'argcomplete', 'pymmd']
)
| """Setuptools file for a MultiMarkdown Python wrapper."""
from codecs import open
from os import path
from distutils.core import setup
from setuptools import find_packages
import pypandoc
here = path.abspath(path.dirname(__file__))
long_description = pypandoc.convert_file('README.md', 'rst')
setup(
name='scriptorium',
version='2.4.0',
description='Multimarkdown and LaTeX framework for academic papers.',
long_description=long_description,
license='MIT',
author='Jason Ziglar',
author_email='jasedit@gmail.com',
url="https://github.com/jasedit/scriptorium",
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Topic :: Text Processing :: Markup',
'Topic :: Text Processing :: Filters',
'Topic :: Software Development :: Libraries :: Python Modules',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3'
],
packages=find_packages(),
entry_points = {
'console_scripts': ['scriptorium = scriptorium:main'],
},
package_data={'scriptorium': ['data/gitignore']},
install_requires=['pyyaml', 'argcomplete', 'pymmd']
)
| mit | Python |
3677a91625fa56f57fa0bb79303467e48a9f57aa | increment version and set requests to greater than 2 | meyersj/geotweet,meyersj/geotweet,meyersj/geotweet | setup.py | setup.py | from setuptools import setup
setup(
name='geotweet',
version='0.2.1',
description='Fetch geographic tweets from Twitter Streaming API',
author='Jeffrey Alan Meyers',
author_email='jeffrey.alan.meyers@gmail.com',
url='https://github.com/meyersj/geotweet',
packages=[
'geotweet',
'geotweet.twitter',
'geotweet.geomongo',
'geotweet.mapreduce',
'geotweet.mapreduce.utils'
],
scripts=['bin/geotweet'],
include_package_data=True,
install_requires=[
'setuptools>=7.0',
'argparse',
'boto3',
'mrjob',
'requests>=2.0',
'python-twitter',
'pymongo',
'Geohash',
'Shapely',
'Rtree',
'pyproj',
'imposm.parser'
]
)
| from setuptools import setup
setup(
name='geotweet',
version='0.1.23',
description='Fetch geographic tweets from Twitter Streaming API',
author='Jeffrey Alan Meyers',
author_email='jeffrey.alan.meyers@gmail.com',
url='https://github.com/meyersj/geotweet',
packages=[
'geotweet',
'geotweet.twitter',
'geotweet.geomongo',
'geotweet.mapreduce',
'geotweet.mapreduce.utils'
],
scripts=['bin/geotweet'],
include_package_data=True,
install_requires=[
'setuptools>=7.0',
'argparse',
'boto3',
'mrjob',
'requests',
'python-twitter',
'pymongo',
'Geohash',
'Shapely',
'Rtree',
'pyproj',
'imposm.parser'
]
)
| mit | Python |
04e2f647be2ff87585fdc44e441b35323721169e | Use moz.com email. | seomoz/qless-py,seomoz/qless-py | setup.py | setup.py | #! /usr/bin/env python
from setuptools import setup
setup(
name = 'qless-py',
version = '0.11.0-dev',
description = 'Redis-based Queue Management',
long_description = '''
Redis-based queue management, with heartbeating, job tracking,
stats, notifications, and a whole lot more.''',
url = 'http://github.com/seomoz/qless-py',
author = 'Dan Lecocq',
author_email = 'dan@moz.com',
license = "MIT License",
keywords = 'redis, qless, job',
packages = [
'qless',
'qless.workers'
],
package_dir = {
'qless': 'qless',
'qless.workers': 'qless/workers'
},
package_data = {
'qless': [
'qless-core/*.lua'
]
},
include_package_data = True,
scripts = [
'bin/qless-py-worker'
],
extras_require = {
'ps': [
'setproctitle'
]
},
install_requires = [
'argparse',
'decorator',
'hiredis',
'redis',
'psutil',
'six',
'simplejson'
],
tests_requires = [
'coverage',
'mock',
'nose',
'setuptools>=17.1'
],
classifiers = [
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Intended Audience :: Developers',
'Operating System :: OS Independent'
]
)
| #! /usr/bin/env python
from setuptools import setup
setup(
name = 'qless-py',
version = '0.11.0-dev',
description = 'Redis-based Queue Management',
long_description = '''
Redis-based queue management, with heartbeating, job tracking,
stats, notifications, and a whole lot more.''',
url = 'http://github.com/seomoz/qless-py',
author = 'Dan Lecocq',
author_email = 'dan@seomoz.org',
license = "MIT License",
keywords = 'redis, qless, job',
packages = [
'qless',
'qless.workers'
],
package_dir = {
'qless': 'qless',
'qless.workers': 'qless/workers'
},
package_data = {
'qless': [
'qless-core/*.lua'
]
},
include_package_data = True,
scripts = [
'bin/qless-py-worker'
],
extras_require = {
'ps': [
'setproctitle'
]
},
install_requires = [
'argparse',
'decorator',
'hiredis',
'redis',
'psutil',
'six',
'simplejson'
],
tests_requires = [
'coverage',
'mock',
'nose',
'setuptools>=17.1'
],
classifiers = [
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Intended Audience :: Developers',
'Operating System :: OS Independent'
]
)
| mit | Python |
d5d006dff6a263321099b4094187a6b64c9e25d9 | Remove the Arch init scripts from the setup.py, init scripts should be installed with the distribution package | saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt | setup.py | setup.py | #!/usr/bin/python2
'''
The setup script for salt
'''
from distutils.core import setup
setup(name='salt',
version='0.6.9',
description='Portable, distrubuted, remote execution system',
author='Thomas S Hatch',
author_email='thatch45@gmail.com',
url='https://github.com/thatch45/salt',
packages=['salt', 'salt.modules', 'salt.cli'],
scripts=['scripts/salt-master',
'scripts/salt-minion',
'scripts/saltkey',
'scripts/salt'],
data_files=[('/etc/salt',
['conf/master',
'conf/minion',
]),
('share/man/man1',
['man/salt-master.1',
'man/saltkey.1',
'man/salt.1',
'man/salt-minion.1',
])
('share/man/man7',
['salt.7',
])
],
)
| #!/usr/bin/python2
'''
The setup script for salt
'''
from distutils.core import setup
setup(name='salt',
version='0.6.9',
description='Portable, distrubuted, remote execution system',
author='Thomas S Hatch',
author_email='thatch45@gmail.com',
url='https://github.com/thatch45/salt',
packages=['salt', 'salt.modules', 'salt.cli'],
scripts=['scripts/salt-master',
'scripts/salt-minion',
'scripts/saltkey',
'scripts/salt'],
data_files=[('/etc/salt',
['conf/master',
'conf/minion',
]),
('/etc/rc.d/',
['init/salt-minion',
'init/salt-master',
]),
('share/man/man1',
['man/salt-master.1',
'man/saltkey.1',
'man/salt.1',
'man/salt-minion.1',
])
('share/man/man7',
['salt.7',
])
],
)
| apache-2.0 | Python |
6f57d653f0d7d01e0b805c193db7a165e35d4e4a | Bump Version to 2.0.47-dev | ooici/coi-services,ooici/coi-services,ooici/coi-services,ooici/coi-services,ooici/coi-services | 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 = '2.0.47-dev'
setup( name = 'coi-services',
version = version,
description = 'OOI ION COI Services',
url = 'https://github.com/ooici/coi-services',
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/',
],
test_suite = 'pyon',
install_requires = [
'pyzmq==2.2.0',
'coverage-model',
'ion-functions',
'pyon',
'Flask==0.9',
'python-dateutil==1.5',
'WebTest==1.4.0',
'seawater==2.0.1',
'pygsw==0.0.9',
'matplotlib==1.1.1',
'Pydap==3.1.RC1',
'netCDF4>=1.0',
'elasticpy==0.12',
'pyparsing==1.5.6',
'ntplib',
'xlrd==0.8.0',
'apscheduler==2.1.0',
'pyproj==1.9.3',
'udunitspy==0.0.6',
],
entry_points = """
[pydap.handler]
coverage = ion.util.pydap.handlers.coverage:Handler
""",
)
| #!/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 = '2.0.46'
setup( name = 'coi-services',
version = version,
description = 'OOI ION COI Services',
url = 'https://github.com/ooici/coi-services',
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/',
],
test_suite = 'pyon',
install_requires = [
'pyzmq==2.2.0',
'coverage-model',
'ion-functions',
'pyon',
'Flask==0.9',
'python-dateutil==1.5',
'WebTest==1.4.0',
'seawater==2.0.1',
'pygsw==0.0.9',
'matplotlib==1.1.1',
'Pydap==3.1.RC1',
'netCDF4>=1.0',
'elasticpy==0.12',
'pyparsing==1.5.6',
'ntplib',
'xlrd==0.8.0',
'apscheduler==2.1.0',
'pyproj==1.9.3',
'udunitspy==0.0.6',
],
entry_points = """
[pydap.handler]
coverage = ion.util.pydap.handlers.coverage:Handler
""",
)
| bsd-2-clause | Python |
a2bd15575f6799a6d473c7fef9bfd4a629a8350a | Upgrade to Flask 0.12.3 to fix CVE-2018-1000656 | Antojitos/guacamole | setup.py | setup.py | from setuptools import setup
with open('README.md') as file:
long_description = file.read()
setup(
name="guacamole-files",
version="0.1.0",
author="Antonin Messinger",
author_email="antonin.messinger@gmail.com",
description=" Upload any file, get a URL back",
long_description=long_description,
license="MIT License",
url="https://github.com/Antojitos/guacamole",
download_url="https://github.com/Antojitos/guacamole/archive/0.1.0.tar.gz",
keywords=["guacamole", "url", "files"],
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Framework :: Flask',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Topic :: Internet :: WWW/HTTP',
],
packages=['guacamole'],
install_requires=[
'Flask==0.12.3',
'Flask-PyMongo==0.4.0',
],
test_suite='tests.main'
)
| from setuptools import setup
with open('README.md') as file:
long_description = file.read()
setup(
name="guacamole-files",
version="0.1.0",
author="Antonin Messinger",
author_email="antonin.messinger@gmail.com",
description=" Upload any file, get a URL back",
long_description=long_description,
license="MIT License",
url="https://github.com/Antojitos/guacamole",
download_url="https://github.com/Antojitos/guacamole/archive/0.1.0.tar.gz",
keywords=["guacamole", "url", "files"],
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Framework :: Flask',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Topic :: Internet :: WWW/HTTP',
],
packages=['guacamole'],
install_requires=[
'Flask==0.10.1',
'Flask-PyMongo==0.4.0',
],
test_suite='tests.main'
)
| mit | Python |
c921cf81a21edbd4917d7f802a54e6d1eee54191 | bump version number | jbernhard/george,andres-jordan/george,migueldvb/george,migueldvb/george,jbernhard/george,jbernhard/george,dfm/george,karenyyng/george,andres-jordan/george,karenyyng/george,dfm/george,karenyyng/george,migueldvb/george,andres-jordan/george | setup.py | setup.py | #!/usr/bin/env python
import os
import sys
if "publish" in sys.argv[-1]:
os.system("python setup.py sdist upload")
sys.exit()
try:
from setuptools import setup, Extension
setup, Extension
except ImportError:
from distutils.core import setup
from distutils.extension import Extension
setup, Extension
import numpy
include_dirs = [
"george",
numpy.get_include(),
"/usr/include/eigen3",
"/usr/local/include/eigen3",
"/usr/local/homebrew/include",
"/usr/local/homebrew/include/eigen3",
"/opt/local/var/macports/software/eigen3/opt/local/include/eigen3",
]
sources = [
os.path.join("george", "_george.cpp"),
]
gp_ext = Extension("george._george",
sources=sources,
include_dirs=include_dirs)
setup(
name="george",
version="0.3.0",
author="Daniel Foreman-Mackey",
author_email="danfm@nyu.edu",
url="https://github.com/dfm/george",
packages=["george"],
ext_modules=[gp_ext],
description="Blazingly fast Gaussian Processes.",
long_description=open("README.rst").read(),
package_data={"": ["README.rst", "LICENSE.rst"],
"george": ["george.h"]},
include_package_data=True,
classifiers=[
# "Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
],
)
| #!/usr/bin/env python
import os
import sys
if "publish" in sys.argv[-1]:
os.system("python setup.py sdist upload")
sys.exit()
try:
from setuptools import setup, Extension
setup, Extension
except ImportError:
from distutils.core import setup
from distutils.extension import Extension
setup, Extension
import numpy
include_dirs = [
"george",
numpy.get_include(),
"/usr/include/eigen3",
"/usr/local/include/eigen3",
"/usr/local/homebrew/include",
"/usr/local/homebrew/include/eigen3",
"/opt/local/var/macports/software/eigen3/opt/local/include/eigen3",
]
sources = [
os.path.join("george", "_george.cpp"),
]
gp_ext = Extension("george._george",
sources=sources,
include_dirs=include_dirs)
setup(
name="george",
version="0.2.2",
author="Daniel Foreman-Mackey",
author_email="danfm@nyu.edu",
url="https://github.com/dfm/george",
packages=["george"],
ext_modules=[gp_ext],
description="Blazingly fast Gaussian Processes.",
long_description=open("README.rst").read(),
package_data={"": ["README.rst", "LICENSE.rst"],
"george": ["george.h"]},
include_package_data=True,
classifiers=[
# "Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
],
)
| mit | Python |
7134041557a14f7fb80135af2ba54a3ee084db84 | Update setup.py | ymyzk/python-gyazo | setup.py | setup.py | #!/usr/bin/env python
try:
from setuptools import setup
except:
from distutils.core import setup
setup(name='python-gyazo',
version='0.2.0',
description='A Python wrapper for Gyazo API',
author='Yusuke Miyazaki',
author_email='miyazaki.dev@gmail.com',
url='https://github.com/litesystems/python-gyazo',
packages=['gyazo'],
test_suite='tests',
install_requires=[
'requests>=2.3.0',
'python-dateutil>=2.2'
],
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Topic :: Internet',
'Topic :: Software Development :: Libraries :: Python Modules'
]
)
| #!/usr/bin/env python
try:
from setuptools import setup
except:
from distutils.core import setup
setup(name='python-gyazo',
version='0.2.0',
description='A Python wrapper for Gyazo API',
author='Yusuke Miyazaki',
author_email='miyazaki.dev@gmail.com',
url='https://github.com/litesystems/python-gyazo',
packages=['gyazo'],
test_suite='tests',
install_requires=[
'requests>=2.3.0',
'python-dateutil>=2.2'
],
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Topic :: Internet',
'Topic :: Software Development :: Libraries :: Python Modules'
]
)
| mit | Python |
26586a33b7b0dcf64bf5ae9b221e320c01f0c748 | Update travis and appveyor config V2 | CalebBell/ht | setup.py | setup.py | # -*- coding: utf-8 -*-
'''Chemical Engineering Design Library (ChEDL). Utilities for process modeling.
Copyright (C) 2016, Caleb Bell <Caleb.Andrew.Bell@gmail.com>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.'''
from distutils.core import setup
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Intended Audience :: Education',
'Intended Audience :: Manufacturing',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Operating System :: MacOS',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'Operating System :: POSIX :: BSD',
'Operating System :: POSIX :: Linux',
'Operating System :: Unix',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: Implementation :: CPython',
'Topic :: Education',
'Topic :: Scientific/Engineering :: Atmospheric Science',
'Topic :: Scientific/Engineering :: Chemistry',
'Topic :: Scientific/Engineering :: Physics',
]
setup(
name = 'ht',
packages = ['ht'],
license='MIT',
version = '0.1.52',
description = 'Heat transfer component of Chemical Engineering Design Library (ChEDL)',
author = 'Caleb Bell',
long_description = open('README.rst').read(),
platforms=["Windows", "Linux", "Mac OS", "Unix"],
author_email = 'Caleb.Andrew.Bell@gmail.com',
url = 'https://github.com/CalebBell/ht',
download_url = 'https://github.com/CalebBell/ht/tarball/0.1.52',
keywords = ['chemical engineering', 'heat transfer', 'mechanical engineering'],
classifiers = classifiers,
install_requires=['fluids>=0.1.64', 'numpy>=1.5.0', 'scipy>=0.9.0'],
package_data={'ht': ['data/*']},
extras_require = {
'Coverage documentation': ['wsgiref>=0.1.2', 'coverage>=4.0.3', 'pint']
},
)
| # -*- coding: utf-8 -*-
'''Chemical Engineering Design Library (ChEDL). Utilities for process modeling.
Copyright (C) 2016, Caleb Bell <Caleb.Andrew.Bell@gmail.com>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.'''
from distutils.core import setup
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Intended Audience :: Education',
'Intended Audience :: Manufacturing',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Operating System :: MacOS',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'Operating System :: POSIX :: BSD',
'Operating System :: POSIX :: Linux',
'Operating System :: Unix',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: Implementation :: CPython',
'Topic :: Education',
'Topic :: Scientific/Engineering :: Atmospheric Science',
'Topic :: Scientific/Engineering :: Chemistry',
'Topic :: Scientific/Engineering :: Physics',
]
setup(
name = 'ht',
packages = ['ht'],
license='MIT',
version = '0.1.52',
description = 'Heat transfer component of Chemical Engineering Design Library (ChEDL)',
author = 'Caleb Bell',
long_description = open('README.rst').read(),
platforms=["Windows", "Linux", "Mac OS", "Unix"],
author_email = 'Caleb.Andrew.Bell@gmail.com',
url = 'https://github.com/CalebBell/ht',
download_url = 'https://github.com/CalebBell/ht/tarball/0.1.52',
keywords = ['chemical engineering', 'heat transfer', 'mechanical engineering'],
classifiers = classifiers,
install_requires=['fluids>=0.1.64', 'numpy>=1.5.0', 'scipy>=0.9.0'],
package_data={'fluids': ['data/*']},
extras_require = {
'Coverage documentation': ['wsgiref>=0.1.2', 'coverage>=4.0.3', 'pint']
},
)
| mit | Python |
0b4d467a483beff90ba6ccea489f6e0767d95487 | fix for readthedocs | gdementen/xlwings,ston380/xlwings,Juanlu001/xlwings,alekz112/xlwings,gdementen/xlwings,Juanlu001/xlwings | setup.py | setup.py | import os
import sys
import re
from distutils.core import setup
# long_description: Take from README file
with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as f:
readme = f.read()
# Version Number
with open(os.path.join(os.path.dirname(__file__), 'xlwings', '__init__.py')) as f:
version = re.compile(r".*__version__ = '(.*?)'", re.S).match(f.read()).group(1)
# Dependencies
if sys.platform.startswith('win'):
install_requires = ['comtypes'] # pywin32 can't be installed (yet) with pip
# This places dlls next to python.exe for standard setup and in the parent folder for virtualenv
data_files = [('', ['xlwings32.dll', 'xlwings64.dll'])]
elif sys.platform.startswith('darwin'):
install_requires = ['psutil >= 2.0.0', 'appscript >= 1.0.1']
data_files =[]
else:
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
data_files = []
if not on_rtd:
raise OSError("currently only Windows and OSX are supported.")
setup(
name='xlwings',
version=version,
url='http://xlwings.org',
license='BSD 3-clause',
author='Zoomer Analytics LLC',
author_email='felix.zumstein@zoomeranalytics.com',
description='Make Excel fly: Interact with Excel from Python and vice versa.',
long_description=readme,
data_files=data_files,
packages=['xlwings', 'xlwings.tests'],
package_data={'xlwings': ['*.bas', 'tests/*.xlsx', 'xlwings_template.xltm']},
keywords=['xls', 'excel', 'spreadsheet', 'workbook', 'vba', 'macro'],
install_requires=install_requires,
classifiers=[
'Development Status :: 4 - Beta',
'Operating System :: Microsoft :: Windows',
'Operating System :: MacOS :: MacOS X',
'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.1',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Topic :: Office/Business :: Financial :: Spreadsheet',
'License :: OSI Approved :: BSD License'],
platforms=['Windows', 'Mac OS X'],
)
| import os
import sys
import re
from distutils.core import setup
# long_description: Take from README file
with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as f:
readme = f.read()
# Version Number
with open(os.path.join(os.path.dirname(__file__), 'xlwings', '__init__.py')) as f:
version = re.compile(r".*__version__ = '(.*?)'", re.S).match(f.read()).group(1)
# Dependencies
if sys.platform.startswith('win'):
install_requires = ['comtypes'] # pywin32 can't be installed (yet) with pip
# This places dlls next to python.exe for standard setup and in the parent folder for virtualenv
data_files = [('', ['xlwings32.dll', 'xlwings64.dll'])]
elif sys.platform.startswith('darwin'):
install_requires = ['psutil >= 2.0.0', 'appscript >= 1.0.1']
data_files =[]
else:
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
if not on_rtd:
raise OSError("currently only Windows and OSX are supported.")
setup(
name='xlwings',
version=version,
url='http://xlwings.org',
license='BSD 3-clause',
author='Zoomer Analytics LLC',
author_email='felix.zumstein@zoomeranalytics.com',
description='Make Excel fly: Interact with Excel from Python and vice versa.',
long_description=readme,
data_files=data_files,
packages=['xlwings', 'xlwings.tests'],
package_data={'xlwings': ['*.bas', 'tests/*.xlsx', 'xlwings_template.xltm']},
keywords=['xls', 'excel', 'spreadsheet', 'workbook', 'vba', 'macro'],
install_requires=install_requires,
classifiers=[
'Development Status :: 4 - Beta',
'Operating System :: Microsoft :: Windows',
'Operating System :: MacOS :: MacOS X',
'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.1',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Topic :: Office/Business :: Financial :: Spreadsheet',
'License :: OSI Approved :: BSD License'],
platforms=['Windows', 'Mac OS X'],
)
| bsd-3-clause | Python |
8ed470f474b2cac84a18fe3709e67b3a160cfdc6 | Move lib dependency to nexmo | thibault/django-nexmo | setup.py | setup.py | import os
from setuptools import setup
README = open(os.path.join(os.path.dirname(__file__), 'README.md')).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-nexmo',
version='2.0.0',
packages=['djexmo'],
include_package_data=True,
license='MIT',
description='A simple Django app to send text messages using the Nexmo api.',
long_description=README,
url='https://github.com/thibault/django-nexmo',
author='Thibault Jouannic',
author_email='thibault@miximum.fr',
setup_requires=('setuptools'),
install_requires=[
'nexmo',
],
classifiers=[
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
],
)
| import os
from setuptools import setup
README = open(os.path.join(os.path.dirname(__file__), 'README.md')).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-nexmo',
version='2.0.0',
packages=['djexmo'],
include_package_data=True,
license='MIT',
description='A simple Django app to send text messages using the Nexmo api.',
long_description=README,
url='https://github.com/thibault/django-nexmo',
author='Thibault Jouannic',
author_email='thibault@miximum.fr',
setup_requires=('setuptools'),
install_requires=[
'libnexmo',
],
classifiers=[
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
],
)
| mit | Python |
1d080245f125e0b57e6f074679aeb57ee80fb598 | Update setup metadata | briandilley/ebs-deploy | setup.py | setup.py | from setuptools import setup
setup(
# general meta
name='ebs-deploy',
version='2.0.0',
author='Brian C. Dilley (Python 3 fixes by Erik Wallentinsen)',
author_email='brian.dilley@gmail.com',
description='Python based command line tools for managing '
'Amazon Elastic Beanstalk applications. Python 3 '
'version by Erik Wallentinsen',
platforms='any',
url='https://github.com/erikwt/briandilley/ebs-deploy',
download_url='https://github.com/erikwt/ebs-deploy',
# packages
packages=[
'ebs_deploy',
'ebs_deploy.commands'
],
# dependencies
install_requires=[
'boto>=2.32.0',
'pyyaml>=3.10'
],
# additional files to include
include_package_data=True,
# the scripts
scripts=['scripts/ebs-deploy'],
# wut?
classifiers=['Intended Audience :: Developers']
)
| from setuptools import setup
setup(
# general meta
name='ebs-deploy',
version='1.9.9',
author='Brian C. Dilley',
author_email='brian.dilley@gmail.com',
description='Python based command line tools for managing '
'Amazon Elastic Beanstalk applications.',
platforms='any',
url='https://github.com/briandilley/ebs-deploy',
download_url='https://github.com/briandilley/ebs-deploy',
# packages
packages=[
'ebs_deploy',
'ebs_deploy.commands'
],
# dependencies
install_requires=[
'boto>=2.32.0',
'pyyaml>=3.10'
],
# additional files to include
include_package_data=True,
# the scripts
scripts=['scripts/ebs-deploy'],
# wut?
classifiers=['Intended Audience :: Developers']
)
| mit | Python |
d9164704bf8237d1722572d94a5ba2e8fe04b0be | Update setup.py classifiers | yprez/django-logentry-admin,yprez/django-logentry-admin | setup.py | setup.py | from setuptools import setup
with open('README.rst') as f:
readme = f.read()
with open('CHANGELOG.rst') as f:
changelog = f.read()
setup(
name='django-logentry-admin',
author='Yuri Prezument',
author_email='y@yprez.com',
version='1.0.3a',
packages=['logentry_admin'],
package_data={
'logentry_admin': ['templates/admin/admin/logentry/change_form.html']
},
license='ISC',
url='https://github.com/yprez/django-logentry-admin',
description='Show all LogEntry objects in the Django admin site.',
long_description='\n\n'.join([readme, changelog]),
install_requires=[
'Django>=1.7',
],
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Framework :: Django',
'Framework :: Django :: 1.7',
'Framework :: Django :: 1.8',
'Framework :: Django :: 1.9',
'Framework :: Django :: 1.10',
'Framework :: Django :: 1.11',
'Framework :: Django :: 2.0',
'Intended Audience :: Developers',
'License :: OSI Approved :: ISC License (ISCL)',
'Natural Language :: English',
'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',
],
)
| from setuptools import setup
with open('README.rst') as f:
readme = f.read()
with open('CHANGELOG.rst') as f:
changelog = f.read()
setup(
name='django-logentry-admin',
author='Yuri Prezument',
author_email='y@yprez.com',
version='1.0.3a',
packages=['logentry_admin'],
package_data={
'logentry_admin': ['templates/admin/admin/logentry/change_form.html']
},
license='ISC',
url='https://github.com/yprez/django-logentry-admin',
description='Show all LogEntry objects in the Django admin site.',
long_description='\n\n'.join([readme, changelog]),
install_requires=[
'Django>=1.7',
],
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Framework :: Django',
'Framework :: Django :: 1.7',
'Framework :: Django :: 1.8',
'Framework :: Django :: 1.9',
'Framework :: Django :: 1.10',
'Framework :: Django :: 1.11',
'Intended Audience :: Developers',
'License :: OSI Approved :: ISC License (ISCL)',
'Natural Language :: English',
'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',
],
)
| isc | Python |
5cd3c4199f4a8f30174c4e4b1d7c430b7309f5c9 | Bump version | educreations/python-iap | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup
with open("README.md", "r") as fh:
long_description = fh.read()
setup(
name="iap",
version="2.3",
description="Python utilities for working with Apple In-App Purchases (IAP)",
long_description=long_description,
long_description_content_type="text/markdown",
license="MIT",
keywords="iap appstore django",
author="Educreations Engineering",
author_email="engineering@educreations.com",
url="https://github.com/educreations/python-iap",
classifiers=[
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
packages=["iap"],
package_dir={"iap": "iap"},
install_requires=[
"Django>=1.9",
"pytz",
"asn1crypto",
"pyopenssl>=17.0.0",
"requests",
],
extras_require={"test": ["pytest", "pytest-django", "responses", "flake8"]},
tests_require=["iap[test]"],
)
| #!/usr/bin/env python
from setuptools import setup
with open("README.md", "r") as fh:
long_description = fh.read()
setup(
name="iap",
version="2.2.8",
description="Python utilities for working with Apple In-App Purchases (IAP)",
long_description=long_description,
long_description_content_type="text/markdown",
license="MIT",
keywords="iap appstore django",
author="Educreations Engineering",
author_email="engineering@educreations.com",
url="https://github.com/educreations/python-iap",
classifiers=[
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
packages=["iap"],
package_dir={"iap": "iap"},
install_requires=[
"Django>=1.9",
"pytz",
"asn1crypto",
"pyopenssl>=17.0.0",
"requests",
],
extras_require={"test": ["pytest", "pytest-django", "responses", "flake8"]},
tests_require=["iap[test]"],
)
| mit | Python |
06a42316c3beef5431703f4a81c171dabbd23f91 | update dev status to stable (#142) | googleapis/google-resumable-media-python,googleapis/google-resumable-media-python | setup.py | setup.py | # Copyright 2017 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
import setuptools
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()
REQUIREMENTS = [
'six',
'google-crc32c >= 1.0, < 2.0dev; python_version>="3.5"',
'crcmod >= 1.7; python_version=="2.7"',
]
EXTRAS_REQUIRE = {
'requests': [
'requests >= 2.18.0, < 3.0.0dev',
],
}
setuptools.setup(
name='google-resumable-media',
version = "0.7.1",
description='Utilities for Google Media Downloads and Resumable Uploads',
author='Google Cloud Platform',
author_email='googleapis-publisher@google.com',
long_description=README,
namespace_packages=['google'],
scripts=[],
url='https://github.com/googleapis/google-resumable-media-python',
packages=setuptools.find_packages(exclude=('tests*',)),
license='Apache 2.0',
platforms='Posix; MacOS X; Windows',
include_package_data=True,
zip_safe=False,
install_requires=REQUIREMENTS,
extras_require=EXTRAS_REQUIRE,
python_requires='>=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*',
classifiers=[
'Development Status :: 5 - Production/Stable',
'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.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Topic :: Internet',
],
)
| # Copyright 2017 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
import setuptools
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()
REQUIREMENTS = [
'six',
'google-crc32c >= 1.0, < 2.0dev; python_version>="3.5"',
'crcmod >= 1.7; python_version=="2.7"',
]
EXTRAS_REQUIRE = {
'requests': [
'requests >= 2.18.0, < 3.0.0dev',
],
}
setuptools.setup(
name='google-resumable-media',
version = "0.7.1",
description='Utilities for Google Media Downloads and Resumable Uploads',
author='Google Cloud Platform',
author_email='googleapis-publisher@google.com',
long_description=README,
namespace_packages=['google'],
scripts=[],
url='https://github.com/googleapis/google-resumable-media-python',
packages=setuptools.find_packages(exclude=('tests*',)),
license='Apache 2.0',
platforms='Posix; MacOS X; Windows',
include_package_data=True,
zip_safe=False,
install_requires=REQUIREMENTS,
extras_require=EXTRAS_REQUIRE,
python_requires='>=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*',
classifiers=[
'Development Status :: 3 - Alpha',
'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.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Topic :: Internet',
],
)
| apache-2.0 | Python |
4c2e465ff59f5e03f2b50b86c2b8620843ea909e | Fix clear | mayhem/led-chandelier,mayhem/led-chandelier,mayhem/led-chandelier | software/bin/count_off.py | software/bin/count_off.py | #!/usr/bin/python
import os
import sys
import math
import random
from time import sleep, time
from hippietrap.chandelier import Chandelier, BROADCAST, NUM_NODES
from hippietrap.color import Color
device = "/dev/serial0"
ch = Chandelier()
ch.open(device)
ch.clear(BROADCAST)
start = int(sys.argv[1])
for id in range(start,NUM_NODES+1):
ch.set_color(id, Color(0,0,0))
for id in range(start,NUM_NODES+1):
print id
ch.set_color(id, Color(0,0,255))
sleep(.25)
| #!/usr/bin/python
import os
import sys
import math
import random
from time import sleep, time
from hippietrap.chandelier import Chandelier, BROADCAST, NUM_NODES
from hippietrap.color import Color
device = "/dev/serial0"
ch = Chandelier()
ch.open(device)
ch.off(BROADCAST)
start = int(sys.argv[1])
for id in range(start,NUM_NODES+1):
ch.set_color(id, Color(0,0,0))
for id in range(start,NUM_NODES+1):
print id
ch.set_color(id, Color(0,0,255))
sleep(.25)
| mit | Python |
43076531cfa27006d1f3d8a55b57333c122b07a8 | Add Framework::Pytest to list of classifiers | pytest-dev/pytest-qt,The-Compiler/pytest-qt | setup.py | setup.py | import sys
import re
from setuptools import setup
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
"""
Overrides setup "test" command, taken from here:
http://pytest.org/latest/goodpractises.html
"""
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([])
sys.exit(errno)
with open('pytestqt/__init__.py') as f:
m = re.search("version = '(.*)'", f.read())
assert m is not None
version = m.group(1)
setup(
name="pytest-qt",
version=version,
packages=['pytestqt'],
entry_points={
'pytest11': ['pytest-qt = pytestqt.plugin'],
},
install_requires=['pytest>=2.7.0'],
# metadata for upload to PyPI
author="Bruno Oliveira",
author_email="nicoddemus@gmail.com",
description='pytest support for PyQt and PySide applications',
long_description=open('README.rst').read(),
license="LGPL",
keywords="pytest qt test unittest",
url="http://github.com/pytest-dev/pytest-qt",
classifiers=[
'Development Status :: 5 - Production/Stable',
'Framework :: Pytest',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Topic :: Desktop Environment :: Window Managers',
'Topic :: Software Development :: Quality Assurance',
'Topic :: Software Development :: Testing',
'Topic :: Software Development :: User Interfaces',
],
tests_require=['pytest'],
cmdclass={'test': PyTest},
)
| import sys
import re
from setuptools import setup
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
"""
Overrides setup "test" command, taken from here:
http://pytest.org/latest/goodpractises.html
"""
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([])
sys.exit(errno)
with open('pytestqt/__init__.py') as f:
m = re.search("version = '(.*)'", f.read())
assert m is not None
version = m.group(1)
setup(
name="pytest-qt",
version=version,
packages=['pytestqt'],
entry_points={
'pytest11': ['pytest-qt = pytestqt.plugin'],
},
install_requires=['pytest>=2.7.0'],
# metadata for upload to PyPI
author="Bruno Oliveira",
author_email="nicoddemus@gmail.com",
description='pytest support for PyQt and PySide applications',
long_description=open('README.rst').read(),
license="LGPL",
keywords="pytest qt test unittest",
url="http://github.com/pytest-dev/pytest-qt",
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Topic :: Desktop Environment :: Window Managers',
'Topic :: Software Development :: Quality Assurance',
'Topic :: Software Development :: Testing',
'Topic :: Software Development :: User Interfaces',
],
tests_require=['pytest'],
cmdclass={'test': PyTest},
)
| mit | Python |
751ca37e12dc36f26ce9c65857bc0a91b42cf5b6 | Update yamllint requirement from <1.15,>=1.11.1 to >=1.11.1,<1.16 | openfisca/senegal | setup.py | setup.py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
setup(
name='OpenFisca-Senegal',
version='0.7.4',
author='OpenFisca Team',
author_email='contact@openfisca.fr',
description=u'Senegalese tax and benefit system for OpenFisca',
keywords='benefit microsimulation senegal social tax',
license='http://www.fsf.org/licensing/licenses/agpl-3.0.html',
url='https://github.com/openfisca/senegal',
data_files=[
('share/openfisca/openfisca-senegal',
['CHANGELOG.md', 'LICENSE', 'README.md']),
],
extras_require={
'notebook': [
'matplotlib',
'notebook',
'OpenFisca-Survey-Manager >= 0.17.5',
'openpyxl',
'pandas',
'scipy',
'xlrd',
'xlwt',
],
'survey': [
'OpenFisca-Survey-Manager >= 0.17.5',
'scipy',
],
'dev': [
"autopep8 ==1.4.3",
"flake8 >= 3.5.0, < 3.6.0",
"flake8-print",
"pycodestyle >= 2.3.0, < 2.4.0", # To avoid incompatibility with flake
"pytest <5.0",
"openfisca-survey-manager >= 0.17.5",
"yamllint >=1.11.1,<1.16",
]
},
include_package_data = True, # Will read MANIFEST.in
install_requires=[
'OpenFisca-Core >= 25.2.6, < 26.0',
],
packages=find_packages(exclude=['openfisca_senegal.tests*']),
)
| #! /usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
setup(
name='OpenFisca-Senegal',
version='0.7.4',
author='OpenFisca Team',
author_email='contact@openfisca.fr',
description=u'Senegalese tax and benefit system for OpenFisca',
keywords='benefit microsimulation senegal social tax',
license='http://www.fsf.org/licensing/licenses/agpl-3.0.html',
url='https://github.com/openfisca/senegal',
data_files=[
('share/openfisca/openfisca-senegal',
['CHANGELOG.md', 'LICENSE', 'README.md']),
],
extras_require={
'notebook': [
'matplotlib',
'notebook',
'OpenFisca-Survey-Manager >= 0.17.5',
'openpyxl',
'pandas',
'scipy',
'xlrd',
'xlwt',
],
'survey': [
'OpenFisca-Survey-Manager >= 0.17.5',
'scipy',
],
'dev': [
"autopep8 ==1.4.3",
"flake8 >= 3.5.0, < 3.6.0",
"flake8-print",
"pycodestyle >= 2.3.0, < 2.4.0", # To avoid incompatibility with flake
"pytest <5.0",
"openfisca-survey-manager >= 0.17.5",
"yamllint >=1.11.1,<1.15",
]
},
include_package_data = True, # Will read MANIFEST.in
install_requires=[
'OpenFisca-Core >= 25.2.6, < 26.0',
],
packages=find_packages(exclude=['openfisca_senegal.tests*']),
)
| agpl-3.0 | Python |
f37efa70b18a1b29d3b7dea167e32a1c93e5df23 | bump version | noisyboiler/wampy | setup.py | setup.py | # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
from setuptools import setup, find_packages
from os import path
here = path.abspath(path.dirname(__file__))
# Get the long description from the README file
with open(path.join(here, 'README.rst')) as f:
long_description = f.read()
setup(
name='wampy',
version='0.9.11',
description='WAMP RPC and Pub/Sub for python apps and microservices',
long_description=long_description,
url='https://github.com/noisyboiler/wampy',
author='Simon Harrison',
author_email='noisyboiler@googlemail.com',
license='Mozilla Public License 2.0',
classifiers=[
'Development Status :: 4 - Beta',
'License :: OSI Approved :: Mozilla Public License 2.0',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
],
keywords='WAMP RPC',
packages=find_packages(),
install_requires=[
"six==1.10.0",
],
extras_require={
':python_version == "2.7"': [
"eventlet<0.21.0",
],
':python_version >= "3"': [
"eventlet>=0.21.0",
],
'dev': [
"crossbar==0.15.0",
"autobahn==0.17.2",
"pytest==3.1.3",
"mock==1.3.0",
"pytest==2.9.1",
"pytest-capturelog==0.7",
"simplejson==3.11.1",
"colorlog",
"flake8==3.5.0",
],
'docs': [
"Sphinx==1.4.5",
"guzzle_sphinx_theme",
],
},
entry_points={
'console_scripts': [
'wampy=wampy.cli.main:main',
],
# pytest looks up the pytest11 entrypoint to discover its plugins
'pytest11': [
'pytest_wampy=wampy.testing.pytest_plugin',
]
},
)
| # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
from setuptools import setup, find_packages
from os import path
here = path.abspath(path.dirname(__file__))
# Get the long description from the README file
with open(path.join(here, 'README.rst')) as f:
long_description = f.read()
setup(
name='wampy',
version='0.9.10',
description='WAMP RPC and Pub/Sub for python apps and microservices',
long_description=long_description,
url='https://github.com/noisyboiler/wampy',
author='Simon Harrison',
author_email='noisyboiler@googlemail.com',
license='Mozilla Public License 2.0',
classifiers=[
'Development Status :: 4 - Beta',
'License :: OSI Approved :: Mozilla Public License 2.0',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
],
keywords='WAMP RPC',
packages=find_packages(),
install_requires=[
"six==1.10.0",
],
extras_require={
':python_version == "2.7"': [
"eventlet<0.21.0",
],
':python_version >= "3"': [
"eventlet>=0.21.0",
],
'dev': [
"crossbar==0.15.0",
"autobahn==0.17.2",
"pytest==3.1.3",
"mock==1.3.0",
"pytest==2.9.1",
"pytest-capturelog==0.7",
"simplejson==3.11.1",
"colorlog",
"flake8==3.5.0",
],
'docs': [
"Sphinx==1.4.5",
"guzzle_sphinx_theme",
],
},
entry_points={
'console_scripts': [
'wampy=wampy.cli.main:main',
],
# pytest looks up the pytest11 entrypoint to discover its plugins
'pytest11': [
'pytest_wampy=wampy.testing.pytest_plugin',
]
},
)
| mpl-2.0 | Python |
59761e83b240fe7573370f542ea6e877c5850907 | Add json to from vdf scripts | ynsta/steamcontroller,oneru/steamcontroller,oneru/steamcontroller,ynsta/steamcontroller | setup.py | setup.py | #!/usr/bin/env python
from distutils.core import setup, Extension
uinput = Extension('libuinput',
sources = ['src/uinput.c'])
setup(name='python-steamcontroller',
version='1.0',
description='Steam Controller userland driver',
author='Stany MARCEL',
author_email='stanypub@gmail.com',
url='https://github.com/ynsta/steamcontroller',
package_dir={'steamcontroller': 'src'},
packages=['steamcontroller'],
scripts=['scripts/sc-dump.py',
'scripts/sc-xbox.py',
'scripts/vdf2json.py',
'scripts/json2vdf.py'],
license='MIT',
platforms=['Linux'],
ext_modules=[uinput, ])
| #!/usr/bin/env python
from distutils.core import setup, Extension
uinput = Extension('libuinput',
sources = ['src/uinput.c'])
setup(name='python-steamcontroller',
version='1.0',
description='Steam Controller userland driver',
author='Stany MARCEL',
author_email='stanypub@gmail.com',
url='https://github.com/ynsta/steamcontroller',
package_dir={'steamcontroller': 'src'},
packages=['steamcontroller'],
scripts=['scripts/sc-dump.py',
'scripts/sc-xbox.py'],
license='MIT',
platforms=['Linux'],
ext_modules=[uinput, ])
| mit | Python |
69a49a5ada371f42aafefdf72034b90f28bcde0d | Bump version | YarnSeemannsgarn/pyshorteners | setup.py | setup.py | # coding: utf8
from __future__ import unicode_literals
from setuptools import setup, find_packages
setup(
name='pyshorteners',
version='0.3',
license='MIT',
description=('A simple URL shortening Python Lib, implementing '
'the most famous shorteners.'),
long_description=open('README.rst').read(),
author='Ellison Leão',
author_email='ellisonleao@gmail.com',
url='https://github.com/ellisonleao/pyshorteners/',
platforms='any',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules',
],
install_requires=['requests', ],
packages=find_packages(exclude=['*tests*']),
namespace_packages=['pyshorteners'],
)
| # coding: utf8
from __future__ import unicode_literals
from setuptools import setup, find_packages
setup(
name='pyshorteners',
version='0.2.10',
license='MIT',
description=('A simple URL shortening Python Lib, implementing '
'the most famous shorteners.'),
long_description=open('README.rst').read(),
author='Ellison Leão',
author_email='ellisonleao@gmail.com',
url='https://github.com/ellisonleao/pyshorteners/',
platforms='any',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules',
],
install_requires=['requests', ],
packages=find_packages(exclude=['*tests*']),
namespace_packages=['pyshorteners'],
)
| mit | Python |
f23a95df8cbadc09b388375942466b5ad110ad53 | Read README as UTF-8 | blancltd/django-latest-tweets | setup.py | setup.py | #!/usr/bin/env python
from codecs import open
from setuptools import find_packages, setup
with open('README.rst', 'r', 'utf-8') as f:
readme = f.read()
# Use latest_tweets.VERSION for version numbers
version_tuple = __import__('latest_tweets').VERSION
version = '.'.join([str(v) for v in version_tuple])
setup(
name='django-latest-tweets',
version=version,
description='Latest Tweets for Django',
long_description=readme,
url='https://github.com/blancltd/django-latest-tweets',
maintainer='Blanc Ltd',
maintainer_email='studio@blanc.ltd.uk',
platforms=['any'],
install_requires=[
'twitter>=1.9.1',
],
packages=find_packages(),
classifiers=[
'Environment :: Web Environment',
'Framework :: Django',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
],
license='BSD',
)
| #!/usr/bin/env python
from setuptools import find_packages, setup
# Use latest_tweets.VERSION for version numbers
version_tuple = __import__('latest_tweets').VERSION
version = '.'.join([str(v) for v in version_tuple])
setup(
name='django-latest-tweets',
version=version,
description='Latest Tweets for Django',
long_description=open('README.rst').read(),
url='https://github.com/blancltd/django-latest-tweets',
maintainer='Blanc Ltd',
maintainer_email='studio@blanc.ltd.uk',
platforms=['any'],
install_requires=[
'twitter>=1.9.1',
],
packages=find_packages(),
classifiers=[
'Environment :: Web Environment',
'Framework :: Django',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
],
license='BSD',
)
| bsd-3-clause | Python |
e2a30e91f3681bddb63f632db9a2234022381c8a | Bump version to 0.8 | harlowja/zk_shell,rgs1/zk_shell,harlowja/zk_shell,rgs1/zk_shell | setup.py | setup.py | from setuptools import setup
def readme():
with open('README.md') as f:
return f.read()
setup(name='zk_shell',
version='0.8',
description='A Python - Kazoo based - shell for ZooKeeper',
long_description=readme(),
classifiers=[
'Development Status :: 3 - Alpha',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python :: 2.7',
"Topic :: System :: Distributed Computing",
"Topic :: System :: Networking",
],
keywords='ZooKeeper Kazoo shell',
url='https://github.com/rgs1/zk_shell',
author='Raul Gutierrez Segales',
author_email='rgs@itevenworks.net',
license='Apache',
packages=['zk_shell'],
scripts=['bin/zk-shell'],
install_requires=[
'kazoo',
],
include_package_data=True,
zip_safe=False)
| from setuptools import setup
def readme():
with open('README.md') as f:
return f.read()
setup(name='zk_shell',
version='0.7',
description='A Python - Kazoo based - shell for ZooKeeper',
long_description=readme(),
classifiers=[
'Development Status :: 3 - Alpha',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python :: 2.7',
"Topic :: System :: Distributed Computing",
"Topic :: System :: Networking",
],
keywords='ZooKeeper Kazoo shell',
url='https://github.com/rgs1/zk_shell',
author='Raul Gutierrez Segales',
author_email='rgs@itevenworks.net',
license='Apache',
packages=['zk_shell'],
scripts=['bin/zk-shell'],
install_requires=[
'kazoo',
],
include_package_data=True,
zip_safe=False)
| apache-2.0 | Python |
e257f4864e316c6542b5b3750552cf5cb76d36ac | Bump version. | iloob/python-periods | setup.py | setup.py | # coding=utf-8
from setuptools import setup
import os
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name="python-periods",
version="0.1.2",
description="Some convenient classes and methods for working with time periods",
author="Johanna Eriksson",
author_email="johanna.eriksson@booli.se",
maintainer="Olof Sjöbergh",
maintainer_email="olofsj@gmail.com",
url="https://github.com/iloob/python-periods",
license="MIT",
packages=[
"periods",
],
long_description=read("README.md"),
install_requires=read("requirements.txt"),
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
],
test_suite="unittests",
)
| # coding=utf-8
from setuptools import setup
import os
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name="python-periods",
version="0.1.1",
description="Some convenient classes and methods for working with time periods",
author="Johanna Eriksson",
author_email="johanna.eriksson@booli.se",
maintainer="Olof Sjöbergh",
maintainer_email="olofsj@gmail.com",
url="https://github.com/iloob/python-periods",
license="MIT",
packages=[
"periods",
],
long_description=read("README.md"),
install_requires=read("requirements.txt"),
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
],
test_suite="unittests",
)
| mit | Python |
7fa2124e7eb7cfecb4014876da3a6970c9e2d9bc | test exist and delete | vperron/django-storages,vperron/django-storages | storages/tests/s3boto.py | storages/tests/s3boto.py | from django.test import TestCase
from django.core.files.base import ContentFile
from django.conf import settings
from django.core.files.storage import FileSystemStorage
from uuid import uuid4
import os
from storages.backends.s3boto import S3BotoStorage
class S3BotoStorageTests(TestCase):
def setUp(self):
self.storage = S3BotoStorage()
# use a unique folder namespace for tests
path_prefix = "test-subfolder/"
dirs, files = self.storage.listdir(path_prefix)
while dirs or files:
path_prefix = "test-subfolder-%s/" % uuid4()
dirs, files = self.storage.listdir(path_prefix)
self.path_prefix = path_prefix
def tearDown(self):
# delete all files created during each test
name = self.storage._normalize_name(self.storage._clean_name(self.path_prefix))
dirlist = self.storage.bucket.list(self.storage._encode_name(name))
names = [x.name for x in dirlist]
for name in names:
self.storage.delete(name)
def prefix_path(self, path):
return "%s%s" % (self.path_prefix, path)
def test_storage_save(self):
name = self.prefix_path('test_storage_save.txt')
content = 'new content'
self.storage.save(name, ContentFile(content))
self.assertEqual(self.storage.open(name).read(), content)
def test_storage_open(self):
name = self.prefix_path('test_open_for_writing.txt')
content = 'new content'
file = self.storage.open(name, 'w')
file.write(content)
file.close()
self.assertEqual(self.storage.open(name, 'r').read(), content)
def test_storage_exists_and_delete(self):
# show file does not exist
name = self.prefix_path('test_exists.txt')
self.assertFalse(self.storage.exists(name))
# create the file
content = 'new content'
file = self.storage.open(name, 'w')
file.write(content)
file.close()
# show file exists
self.assertTrue(self.storage.exists(name))
# delete the file
self.storage.delete(name)
# show file does not exist
self.assertFalse(self.storage.exists(name))
| from django.test import TestCase
from django.core.files.base import ContentFile
from django.conf import settings
from django.core.files.storage import FileSystemStorage
from uuid import uuid4
import os
from storages.backends.s3boto import S3BotoStorage
class S3BotoStorageTests(TestCase):
def setUp(self):
self.storage = S3BotoStorage()
# use a unique folder namespace for tests
path_prefix = "test-subfolder/"
dirs, files = self.storage.listdir(path_prefix)
while dirs or files:
path_prefix = "test-subfolder-%s/" % uuid4()
dirs, files = self.storage.listdir(path_prefix)
self.path_prefix = path_prefix
def tearDown(self):
# delete all files created during each test
name = self.storage._normalize_name(self.storage._clean_name(self.path_prefix))
dirlist = self.storage.bucket.list(self.storage._encode_name(name))
names = [x.name for x in dirlist]
for name in names:
self.storage.delete(name)
def prefix_path(self, path):
return "%s%s" % (self.path_prefix, path)
def test_storage_save(self):
name = self.prefix_path('test_storage_save.txt')
content = 'new content'
self.storage.save(name, ContentFile(content))
self.assertEqual(self.storage.open(name).read(), content)
def test_storage_open(self):
name = self.prefix_path('test_open_for_writing.txt')
content = 'new content'
file = self.storage.open(name, 'w')
file.write(content)
file.close()
self.assertEqual(self.storage.open(name, 'r').read(), content)
| bsd-3-clause | Python |
30b19eb23e61d14ed0145aa95c481f7cbc5b6270 | Remove extraneous comma | wardi/ckanapi,eawag-rdm/ckanapi,perceptron-XYZ/ckanapi,xingyz/ckanapi,LaurentGoderre/ckanapi,metaodi/ckanapi | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup
import sys
install_requires=[
'setuptools',
'docopt',
'requests',
]
if sys.version_info <= (3,):
install_requires.append('simplejson')
setup(
name='ckanapi',
version='3.3-dev',
description=
'A command line interface and Python module for '
'accessing the CKAN Action API',
license='MIT',
author='Ian Ward',
author_email='ian@excess.org',
url='https://github.com/ckan/ckanapi',
packages=[
'ckanapi',
'ckanapi.tests',
'ckanapi.tests.mock',
'ckanapi.cli',
],
install_requires=install_requires,
test_suite='ckanapi.tests',
zip_safe=False,
entry_points = """
[console_scripts]
ckanapi=ckanapi.cli.main:main
[paste.paster_command]
ckanapi=ckanapi.cli.paster:CKANAPICommand
"""
)
| #!/usr/bin/env python
from setuptools import setup
import sys
install_requires=[
'setuptools',
'docopt',
'requests',
],
if sys.version_info <= (3,):
install_requires.append('simplejson')
setup(
name='ckanapi',
version='3.3-dev',
description=
'A command line interface and Python module for '
'accessing the CKAN Action API',
license='MIT',
author='Ian Ward',
author_email='ian@excess.org',
url='https://github.com/ckan/ckanapi',
packages=[
'ckanapi',
'ckanapi.tests',
'ckanapi.tests.mock',
'ckanapi.cli',
],
install_requires=install_requires,
test_suite='ckanapi.tests',
zip_safe=False,
entry_points = """
[console_scripts]
ckanapi=ckanapi.cli.main:main
[paste.paster_command]
ckanapi=ckanapi.cli.paster:CKANAPICommand
"""
)
| mit | Python |
294b415066d2873d215650677e9a883b7e3430ef | Bump the version to 0.6.7 | moskytw/zipcodetw,moskytw/zipcodetw,moskytw/zipcodetw | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function
import sys
import zipcodetw.builder
from setuptools.command.install import install
class zipcodetw_install(install):
def run(self):
print('Building ZIP code index ... ')
sys.stdout.flush()
zipcodetw.builder.build()
install.run(self)
import zipcodetw
from setuptools import setup, find_packages
setup(
name = 'zipcodetw',
version = '0.6.7',
description = 'Find Taiwan ZIP code by address fuzzily.',
long_description = open('README.rst', encoding='UTF-8').read(),
author = 'Mosky',
url = 'https://github.com/moskytw/zipcodetw',
author_email = 'mosky.tw@gmail.com',
license = 'MIT',
platforms = 'any',
classifiers = [
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Topic :: Utilities',
'Topic :: Software Development :: Libraries :: Python Modules',
],
packages = find_packages(),
install_requires = ['six', 'unicodecsv'],
package_data = {'zipcodetw': ['*.csv', '*.db']},
cmdclass = {'install': zipcodetw_install},
)
| #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function
import sys
import zipcodetw.builder
from setuptools.command.install import install
class zipcodetw_install(install):
def run(self):
print('Building ZIP code index ... ')
sys.stdout.flush()
zipcodetw.builder.build()
install.run(self)
import zipcodetw
from setuptools import setup, find_packages
setup(
name = 'zipcodetw',
version = '0.6.6',
description = 'Find Taiwan ZIP code by address fuzzily.',
long_description = open('README.rst', encoding='UTF-8').read(),
author = 'Mosky',
url = 'https://github.com/moskytw/zipcodetw',
author_email = 'mosky.tw@gmail.com',
license = 'MIT',
platforms = 'any',
classifiers = [
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Topic :: Utilities',
'Topic :: Software Development :: Libraries :: Python Modules',
],
packages = find_packages(),
install_requires = ['six', 'unicodecsv'],
package_data = {'zipcodetw': ['*.csv', '*.db']},
cmdclass = {'install': zipcodetw_install},
)
| mit | Python |
54796bc8d814f2f0a898be96ae908905d2d88e32 | fix email style to satisfy new rule | shibukawa/imagesize_py | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup
#from distutils.core import setup
setup(name='imagesize',
version='1.0.0',
description='Getting image size from png/jpeg/jpeg2000/gif file',
long_description='''
It parses image files' header and return image size.
* PNG
* JPEG
* JPEG2000
* GIF
This is a pure Python library.
''',
author='Yoshiki Shibukawa',
author_email='yoshiki@shibu.jp',
url='https://github.com/shibukawa/imagesize_py',
license="MIT",
py_modules=['imagesize'],
test_suite='test',
classifiers = [
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
'Topic :: Multimedia :: Graphics'
]
)
| #!/usr/bin/env python
from setuptools import setup
#from distutils.core import setup
setup(name='imagesize',
version='1.0.0',
description='Getting image size from png/jpeg/jpeg2000/gif file',
long_description='''
It parses image files' header and return image size.
* PNG
* JPEG
* JPEG2000
* GIF
This is a pure Python library.
''',
author='Yoshiki Shibukawa',
author_email='yoshiki at shibu.jp',
url='https://github.com/shibukawa/imagesize_py',
license="MIT",
py_modules=['imagesize'],
test_suite='test',
classifiers = [
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
'Topic :: Multimedia :: Graphics'
]
)
| mit | Python |
5247f01987c33f65646c57e4aa3b66b613169d68 | Fix setup.py | soofaloofa/datastoredict,sookocheff/datastoredict | 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().strip()
version = read('datastoredict/VERSION')
setup(
name='datastoredict',
version=version,
description='A durabledict implementation for AppEngine.',
url='https://github.com/soofaloofa/datastoredict',
license='MIT',
author='Kevin Sookocheff',
author_email='kevin.sookocheff@gmail.com',
packages=find_packages(exclude=['tests*']),
package_data={
'datastoredict': ['VERSION'],
},
install_requires=['durabledict'],
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Natural Language :: English',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'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().strip()
version = read('datastoredict/VERSION')
setup(
name='datastoredict',
version=version,
description='A durabledict implementation for AppEngine.',
url='https://github.com/vendasta/datastoredict',
license='Apache 2.0',
author='Kevin Sookocheff',
author_email='ksookocheff@vendasta.com',
packages=find_packages(exclude=['tests*']),
package_data={
'datastoredict': ['VERSION'],
},
install_requires=['durabledict'],
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Natural Language :: English',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Topic :: Software Development :: Libraries :: Python Modules',
],
)
| mit | Python |
4e1ea81255c4b3aec7a863815482a4de0279372d | Rename "events" parameter into "event" parameter | pyofwave/PyOfWave,pyofwave/PyOfWave | pyofwave_server/pyofwave/core/operation.py | pyofwave_server/pyofwave/core/operation.py | """
Standard interface for connecting client protocols to the operation extensions.
"""
from delta import DeltaObserverPool as dop
import opdev, delta
# Perform operation
def _getChildren(tag):
rep = [tag.text, ]
for child in tag:
rep.append(child)
rep.append(child.tail)
return rep
def performOperation(event, operation):
""" Execute a operation."""
rep = opdev._receive[operation.tag](event, *_getChildren(operation), **operation.attrib)
Events.trigger(operation)
return rep
# Events
def get(obj, prop, default = {}):
if not obj.get(prop):
obj[prop] = default
return obj[prop]
_handlers = {}
class Events(object):
"""Keeps track of all the events a user registers to."""
def __init__(self, user, callback):
self.user = user
self._callback = callback
def _handlers(self, url, operation):
# XXX : Why is it a list that is associated to an operation ?
# XXX : Is it possible to assign several callback to an operation ?
return get(get(_handlers, url), operation, [])
def register(self, url, operation):
# XXX: All registered operations will have the save callback
self._handlers(url, operation).append(self._callback)
def unregister(self, url, operation="*"):
url_handlers = get(_handlers, url)
if operation == "*":
for operation in url_handlers.keys():
operation_callback = self._handlers(url, operation)
if self._callback in operation_callback:
operation_callback.remove(self._callback)
else:
self._handlers(url, operation).remove(self._callback)
@staticmethod
def trigger(operation, src = None):
if src == None:
src = operation.get("href", operation.get("src", ""))
for handler in _handlers.get(src, {}).get(operation.tag, []):
dop.apply_async(handler, (operation.tag))
@delta.alphaDeltaObservable.addObserver
@staticmethod
def applyDelta(doc, delta):
""" Calculate and send events. """
| """
Standard interface for connecting client protocols to the operation extensions.
"""
from delta import DeltaObserverPool as dop
import opdev, delta
# Perform operation
def _getChildren(tag):
rep = [tag.text, ]
for child in tag:
rep.append(child)
rep.append(child.tail)
return rep
def performOperation(events, operation):
""" Execute a operation."""
rep = opdev._receive[operation.tag](events, *_getChildren(operation), **operation.attrib)
Events.trigger(operation)
return rep
# Events
def get(obj, prop, default = {}):
if not obj.get(prop):
obj[prop] = default
return obj[prop]
_handlers = {}
class Events(object):
"""Keeps track of all the events a user registers to."""
def __init__(self, user, callback):
self.user = user
self._callback = callback
def _handlers(self, url, operation):
# XXX : Why is it a list that is associated to an operation ?
# XXX : Is it possible to assign several callback to an operation ?
return get(get(_handlers, url), operation, [])
def register(self, url, operation):
# XXX: All registered operations will have the save callback
self._handlers(url, operation).append(self._callback)
def unregister(self, url, operation="*"):
url_handlers = get(_handlers, url)
if operation == "*":
for operation in url_handlers.keys():
operation_callback = self._handlers(url, operation)
if self._callback in operation_callback:
operation_callback.remove(self._callback)
else:
self._handlers(url, operation).remove(self._callback)
@staticmethod
def trigger(operation, src = None):
if src == None:
src = operation.get("href", operation.get("src", ""))
for handler in _handlers.get(src, {}).get(operation.tag, []):
dop.apply_async(handler, (operation.tag))
@delta.alphaDeltaObservable.addObserver
@staticmethod
def applyDelta(doc, delta):
""" Calculate and send events. """
| mpl-2.0 | Python |
9ed75c89c510d8ba17e4f753acd17475404eb615 | ADD autoinstall to adhoc base setup | csrocha/account_journal_payment_subtype,csrocha/account_voucher_payline | adhoc_base_setup/__openerp__.py | adhoc_base_setup/__openerp__.py | # -*- coding: utf-8 -*-
{
'name': 'ADHOC Modules Configuration',
'version': '1.0',
'category': 'ADHOC Modules',
'sequence': 14,
'summary': 'extra, addons, modules',
'description': """
ADHOC Modules Configuration
===============================================================================
Here, you can configure the whole business suite based on your requirements. You'll be provided different configuration options in the Settings where by only selecting some booleans you will be able to install several modules and apply access rights in just one go.
Repositories required:
---------------------
* lp:server-env-tools (web_export_view da error por ahora)
* lp:account-financial-report
* lp:account-financial-tools
* lp:openerp-reporting-engines
* lp:web-addons
* lp:~ingenieria-adhoc/openerp-adhoc-project/trunk
* lp:~ingenieria-adhoc/openerp-adhoc-sale-purchase/trunk
* lp:~ingenieria-adhoc/openerp-adhoc-product/trunk
* lp:~ingenieria-adhoc/openerp-adhoc-misc/trunk
* lp:~ingenieria-adhoc/openerp-adhoc-account/trunk
* lp:~ingenieria-adhoc/openerp-adhoc-reports/trunk
* lp:~ingenieria-adhoc/openerp-adhoc-documentation/trunk
* lp:~ingenieria-adhoc/openerp-adhoc-stock/trunk
Features
+++++++++++++++
Product Features
--------------------
TODO
Warehouse Features
------------------------
TODO
Sales Features
--------------------
TODO
* TODO1
* TODO2
* TODO3
Purchase Features
-------------------------
TODO
* TODO1
* TODO2
Finance Features
------------------
TODO
Extra Tools
-------------
TODO
* TODO1
* TODO2
""",
'author': 'Ingenieria ADHOC',
'website': 'www.ingadhoc.com',
'images': [
],
'depends': [
'base_setup'
],
'data': [
'res_config_view.xml',
],
'demo': [
],
'test': [
],
'installable': True,
'auto_install': True,
'application': True,
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: | # -*- coding: utf-8 -*-
{
'name': 'ADHOC Modules Configuration',
'version': '1.0',
'category': 'ADHOC Modules',
'sequence': 14,
'summary': 'extra, addons, modules',
'description': """
ADHOC Modules Configuration
===============================================================================
Here, you can configure the whole business suite based on your requirements. You'll be provided different configuration options in the Settings where by only selecting some booleans you will be able to install several modules and apply access rights in just one go.
Repositories required:
---------------------
* lp:server-env-tools (web_export_view da error por ahora)
* lp:account-financial-report
* lp:account-financial-tools
* lp:openerp-reporting-engines
* lp:web-addons
* lp:~ingenieria-adhoc/openerp-adhoc-project/trunk
* lp:~ingenieria-adhoc/openerp-adhoc-sale-purchase/trunk
* lp:~ingenieria-adhoc/openerp-adhoc-product/trunk
* lp:~ingenieria-adhoc/openerp-adhoc-misc/trunk
* lp:~ingenieria-adhoc/openerp-adhoc-account/trunk
* lp:~ingenieria-adhoc/openerp-adhoc-reports/trunk
* lp:~ingenieria-adhoc/openerp-adhoc-documentation/trunk
* lp:~ingenieria-adhoc/openerp-adhoc-stock/trunk
Features
+++++++++++++++
Product Features
--------------------
TODO
Warehouse Features
------------------------
TODO
Sales Features
--------------------
TODO
* TODO1
* TODO2
* TODO3
Purchase Features
-------------------------
TODO
* TODO1
* TODO2
Finance Features
------------------
TODO
Extra Tools
-------------
TODO
* TODO1
* TODO2
""",
'author': 'Ingenieria ADHOC',
'website': 'www.ingadhoc.com',
'images': [
],
'depends': [
'base_setup'
],
'data': [
'res_config_view.xml',
],
'demo': [
],
'test': [
],
'installable': True,
'auto_install': False,
'application': True,
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: | agpl-3.0 | Python |
2be776c2e543dcafbe268b9f18e17f08a5e1466f | Add OpenStack trove classifier for PyPI | VyacheslavHashov/python-swiftclient,ironsmile/python-swiftclient,citrix-openstack-build/python-swiftclient,sohonetlabs/python-swiftclient,iostackproject/IO-Bandwidth-Differentiation-Client,citrix-openstack/build-python-swiftclient,openstack/python-swiftclient,krnflake/python-hubicclient,varunarya10/python-swiftclient,pratikmallya/python-swiftclient,VyacheslavHashov/python-swiftclient,openstack/python-swiftclient,jeseem/python-swiftclient,zackmdavis/python-swiftclient,pratikmallya/python-swiftclient,jeseem/python-swiftclient,cbrucks/Federated_Python-Swiftclient,citrix-openstack/build-python-swiftclient,citrix-openstack-build/python-swiftclient,citrix-openstack/build-python-swiftclient,cbrucks/Federated_Python-Swiftclient,JioCloud/python-swiftclient,varunarya10/python-swiftclient,iostackproject/IO-Bandwidth-Differentiation-Client,sohonetlabs/python-swiftclient,cbrucks/Federated_Python-Swiftclient,JioCloud/python-swiftclient,zackmdavis/python-swiftclient,ironsmile/python-swiftclient | setup.py | setup.py | #!/usr/bin/python
# -*- encoding: utf-8 -*-
# Copyright (c) 2010 OpenStack, 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 os
import setuptools
import sys
from swiftclient.openstack.common import setup
name = 'python-swiftclient'
requires = setup.parse_requirements()
depend_links = setup.parse_dependency_links()
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setuptools.setup(
name=name,
version=setup.get_post_version('swiftclient'),
description='Client Library for OpenStack Object Storage API',
long_description=read('README.rst'),
url='https://github.com/openstack/python-swiftclient',
license='Apache License (2.0)',
author='OpenStack, LLC.',
author_email='openstack-admins@lists.launchpad.net',
packages=setuptools.find_packages(exclude=['tests', 'tests.*']),
cmdclass=setup.get_cmdclass(),
install_requires=requires,
dependency_links=depend_links,
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Environment :: OpenStack',
'Intended Audience :: Developers',
'Intended Audience :: Information Technology',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.6',
'Environment :: No Input/Output (Daemon)',
],
test_suite='nose.collector',
scripts=[
'bin/swift',
],
)
| #!/usr/bin/python
# -*- encoding: utf-8 -*-
# Copyright (c) 2010 OpenStack, 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 os
import setuptools
import sys
from swiftclient.openstack.common import setup
name = 'python-swiftclient'
requires = setup.parse_requirements()
depend_links = setup.parse_dependency_links()
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setuptools.setup(
name=name,
version=setup.get_post_version('swiftclient'),
description='Client Library for OpenStack Object Storage API',
long_description=read('README.rst'),
url='https://github.com/openstack/python-swiftclient',
license='Apache License (2.0)',
author='OpenStack, LLC.',
author_email='openstack-admins@lists.launchpad.net',
packages=setuptools.find_packages(exclude=['tests', 'tests.*']),
cmdclass=setup.get_cmdclass(),
install_requires=requires,
dependency_links=depend_links,
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Developers',
'Intended Audience :: Information Technology',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.6',
'Environment :: No Input/Output (Daemon)',
],
test_suite='nose.collector',
scripts=[
'bin/swift',
],
)
| apache-2.0 | Python |
ba07246a0e9d64ca94101c1ac83ff792fdc0da9c | Bump to v0.3.0 | bradleyayers/django-attest | setup.py | setup.py | # -*- coding: utf8 -*-
from setuptools import setup, find_packages
setup(
name='django-attest',
version='0.3.0',
description = 'Provides Django specific testing helpers to Attest',
author='Bradley Ayers',
author_email='bradley.ayers@gmail.com',
license='Simplified BSD',
url='https://github.com/bradleyayers/django-attest/',
packages=['django_attest'],
install_requires=['Django >=1.2', 'Attest >=0.5', 'distribute'],
test_loader='tests:loader',
test_suite='tests.suite',
classifiers = [
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules',
],
)
| # -*- coding: utf8 -*-
from setuptools import setup, find_packages
setup(
name='django-attest',
version='0.2.5',
description = 'Provides Django specific testing helpers to Attest',
author='Bradley Ayers',
author_email='bradley.ayers@gmail.com',
license='Simplified BSD',
url='https://github.com/bradleyayers/django-attest/',
packages=['django_attest'],
install_requires=['Django >=1.2', 'Attest >=0.5', 'distribute'],
test_loader='tests:loader',
test_suite='tests.suite',
classifiers = [
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules',
],
)
| bsd-2-clause | Python |
de0e8bb5da0fe487a84424beda6dfb0e5a0108e5 | correct player script loading | SuddenDevs/SuddenDev,SuddenDevs/SuddenDev,SuddenDevs/SuddenDev,SuddenDevs/SuddenDev | suddendev/game/player.py | suddendev/game/player.py | from .entity import Entity
from .vector import Vector
import math
import random
DEFAULT_SCRIPT = """
timer = 1
def update(self, delta):
self.locals['timer'] += delta
if self.locals['timer'] > 0.5:
self.vel = Vector.Normalize(Vector(random.random()-0.5, random.random()-0.5)) * self.speed
"""
class Player(Entity):
def __init__(self, name, color, game, script):
super().__init__()
self.name = name
self.color = color
self.vel = Vector(random.random(), random.random())
self.game = game
self.speed = 15
if not self.try_apply_script(script, game):
self.try_apply_script(DEFAULT_SCRIPT, game)
def try_apply_script(self, script, game):
if script is None:
return False
self.scope = {
'math' : math,
'Vector' : Vector,
'core' : game.core,
'random' : random,
'enemies' : game.enemies
}
self.locals = {}
#Compile supplied script
self.script = compile(script, str(self.name), 'exec')
#Execute in the context of the special namespace
exec(self.script, self.scope, self.locals)
return 'update' in self.locals
def update(self, delta):
#Perform player-specific movement calculation
self.locals['update'](self, delta)
#Check for sanity (restrict velocity)
# target = self.game.core.pos
# to = target - self.pos
# dist = Vector.Length(to)
# self.vel = Vector.Normalize(to) * min(dist, self.speed)
#Apply Motion
super().update(delta)
def __str__(self):
return str(self.name) + ":" + str(self.pos)
| from .entity import Entity
from .vector import Vector
import math
import random
DEFAULT_SCRIPT = """
something = 1
someparam = 2
def update(self, delta):
centre = core.pos
fromCentre = Vector.Normalize(self.pos - centre) * self.speed
self.vel = Vector.Normalize(Vector(1,1)) * self.speed
"""
class Player(Entity):
def __init__(self, name, color, game, script):
super().__init__()
self.name = name
self.color = color
self.vel = Vector(random.random(), random.random())
self.game = game
self.speed = 15
if not self.try_apply_script(script, game):
self.try_apply_script(DEFAULT_SCRIPT, game)
def try_apply_script(self, script, game):
if script is None:
return False
self.scope = {
'Math' : math,
'Vector' : Vector,
'core' : game.core,
'enemies' : game.enemies
}
self.locals = {}
#Compile supplied script
self.script = compile(script, str(self.name), 'exec')
#Execute in the context of the special namespace
exec(self.script, self.scope, self.locals)
return 'update' in self.scope
def update(self, delta):
#Perform player-specific movement calculation
self.locals['update'](self, delta)
#Check for sanity (restrict velocity)
# target = self.game.core.pos
# to = target - self.pos
# dist = Vector.Length(to)
# self.vel = Vector.Normalize(to) * min(dist, self.speed)
#Apply Motion
super().update(delta)
def __str__(self):
return str(self.name) + ":" + str(self.pos)
| mit | Python |
1322f75c0ba11bca44cd92d47406881837c5a48d | Update to use cffi 1.15.0rc2 | viblo/pymunk,viblo/pymunk | setup.py | setup.py | from setuptools import setup # type: ignore
# todo: add/remove/think about this list
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Topic :: Games/Entertainment",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: pygame",
"Programming Language :: Python :: 3",
]
with (open("README.rst")) as f:
long_description = f.read()
setup(
name="pymunk",
url="http://www.pymunk.org",
author="Victor Blomqvist",
author_email="vb@viblo.se",
version="6.2.0", # remember to change me for new versions!
description="Pymunk is a easy-to-use pythonic 2d physics library",
long_description=long_description,
packages=["pymunk", "pymunk.tests"],
include_package_data=True,
license="MIT License",
classifiers=classifiers,
command_options={
"build_sphinx": {
"build_dir": ("setup.py", "docs"),
"source_dir": ("setup.py", "docs/src"),
}
},
python_requires=">=3.6",
# Require >1.14.0 since that (and older) has problem with returing structs from functions.
setup_requires=["cffi == 1.15.0rc2"],
install_requires=["cffi == 1.15.0rc2"],
cffi_modules=["pymunk/pymunk_extension_build.py:ffibuilder"],
extras_require={
"dev": ["pyglet", "pygame", "sphinx", "aafigure", "wheel", "matplotlib"]
},
test_suite="pymunk.tests",
)
| from setuptools import setup # type: ignore
# todo: add/remove/think about this list
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Topic :: Games/Entertainment",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: pygame",
"Programming Language :: Python :: 3",
]
with (open("README.rst")) as f:
long_description = f.read()
setup(
name="pymunk",
url="http://www.pymunk.org",
author="Victor Blomqvist",
author_email="vb@viblo.se",
version="6.2.0", # remember to change me for new versions!
description="Pymunk is a easy-to-use pythonic 2d physics library",
long_description=long_description,
packages=["pymunk", "pymunk.tests"],
include_package_data=True,
license="MIT License",
classifiers=classifiers,
command_options={
"build_sphinx": {
"build_dir": ("setup.py", "docs"),
"source_dir": ("setup.py", "docs/src"),
}
},
python_requires=">=3.6",
# Require >1.14.0 since that (and older) has problem with returing structs from functions.
setup_requires=["cffi == 1.15.0rc1"],
install_requires=["cffi == 1.15.0rc1"],
cffi_modules=["pymunk/pymunk_extension_build.py:ffibuilder"],
extras_require={
"dev": ["pyglet", "pygame", "sphinx", "aafigure", "wheel", "matplotlib"]
},
test_suite="pymunk.tests",
)
| mit | Python |
ce6924deba35b25e21df4b29ccf7ad735433edc8 | bump to version 0.0.3 | cosmicBboy/themis-ml,cosmicBboy/themis-ml | setup.py | setup.py | from setuptools import setup
setup(
name="themis-ml",
version="0.0.3",
description="Fairness-aware Machine Learning",
author="Niels Bantilan",
author_email="niels.bantilan@gmail.com",
url="https://github.com/cosmicBboy/themis-ml",
download_url="https://github.com/cosmicBboy/themis-ml/archive/0.0.2.tar.gz",
keywords=["machine-learning", "fairness-aware", "social-bias"],
license="MIT",
packages=[
"themis_ml",
"themis_ml.datasets",
"themis_ml.linear_model",
"themis_ml.preprocessing",
"themis_ml.postprocessing",
],
package_data={
"themis_ml": [
"datasets/data/german_credit.csv",
"datasets/data/census_income_1994_1995_train.csv",
"datasets/data/census_income_1994_1995_test.csv"
]
},
include_package_data=True,
install_requires=[
"scikit-learn >= 0.19.1",
"numpy >= 1.9.0",
"pandas >= 0.22.0",
"pathlib2",
]
)
| from setuptools import setup
setup(
name="themis-ml",
version="0.0.2",
description="Fairness-aware Machine Learning",
author="Niels Bantilan",
author_email="niels.bantilan@gmail.com",
url="https://github.com/cosmicBboy/themis-ml",
download_url="https://github.com/cosmicBboy/themis-ml/archive/0.0.2.tar.gz",
keywords=["machine-learning", "fairness-aware", "social-bias"],
license="MIT",
packages=[
"themis_ml",
"themis_ml.datasets",
"themis_ml.linear_model",
"themis_ml.preprocessing",
"themis_ml.postprocessing",
],
package_data={
"themis_ml": [
"datasets/data/german_credit.csv",
"datasets/data/census_income_1994_1995_train.csv",
"datasets/data/census_income_1994_1995_test.csv"
]
},
include_package_data=True,
install_requires=[
"scikit-learn >= 0.19.1",
"numpy >= 1.9.0",
"pandas >= 0.22.0",
"pathlib2",
]
)
| mit | Python |
ac2f4f1bba2feb12f79818ff5d66c776313b52fb | add install_requirements | asrozar/perception | setup.py | setup.py | from setuptools import setup, find_packages
setup(
# Application name:
name="Perception",
# Version number (initial):
version="0.5",
# Application author details:
author="Avery Rozar",
author_email="avery.rozar@critical-sec.com",
# Packages
packages=find_packages(),
# Include additional files into the package
include_package_data=True,
# Details
url="https://www.critical-sec/com/perception",
#
license="LICENSE.txt",
description="",
long_description=open("README.md").read(),
# Dependent packages (distributions)
install_requires=['alembic',
'sqlalchemy',
'scapy',
'pyOpenSSL',
'psycopg2',
'cryptography',
'pexpect',
'pika',
'xlsxwriter',
'splunk-sdk',
'elasticsearch',
],
)
| from setuptools import setup, find_packages
setup(
# Application name:
name="Perception",
# Version number (initial):
version="0.5",
# Application author details:
author="Avery Rozar",
author_email="avery.rozar@critical-sec.com",
# Packages
packages=find_packages(),
# Include additional files into the package
include_package_data=True,
# Details
url="https://www.critical-sec/com/perception",
#
license="LICENSE.txt",
description="",
long_description=open("README.md").read(),
)
| mit | Python |
45b03b1bc38ac2f536a136e285fcf87857673e7b | Drop the verbose flag. | robot-tools/iconograph,robot-tools/iconograph,robot-tools/iconograph,robot-tools/iconograph | util/fetch_archive.py | util/fetch_archive.py | #!/usr/bin/python3
import argparse
import os
import requests
import shutil
import subprocess
parser = argparse.ArgumentParser(description='iconograph fetch_archive')
parser.add_argument(
'--dest-dir',
dest='dest_dir',
action='store',
default='.')
parser.add_argument(
'--https-ca-cert',
dest='https_ca_cert',
action='store')
parser.add_argument(
'--https-client-cert',
dest='https_client_cert',
action='store')
parser.add_argument(
'--https-client-key',
dest='https_client_key',
action='store')
parser.add_argument(
'--url',
dest='url',
action='store',
required=True)
FLAGS = parser.parse_args()
class ArchiveFetcher(object):
_BUF_SIZE = 2 ** 16
def __init__(self, https_ca_cert, https_client_cert, https_client_key):
self._session = requests.Session()
if https_ca_cert:
self._session.verify = https_ca_cert
if https_client_cert and https_client_key:
self._session.cert = (https_client_cert, https_client_key)
def Fetch(self, url, dest_dir='.'):
resp = self._session.get(url, stream=True)
tar = subprocess.Popen(
['tar', '--extract'],
stdin=subprocess.PIPE,
cwd=dest_dir)
for data in resp.iter_content(self._BUF_SIZE):
tar.stdin.write(data)
tar.wait()
def main():
fetcher = ArchiveFetcher(
FLAGS.https_ca_cert,
FLAGS.https_client_cert,
FLAGS.https_client_key)
fetcher.Fetch(
FLAGS.url,
FLAGS.dest_dir)
if __name__ == '__main__':
main()
| #!/usr/bin/python3
import argparse
import os
import requests
import shutil
import subprocess
parser = argparse.ArgumentParser(description='iconograph fetch_archive')
parser.add_argument(
'--dest-dir',
dest='dest_dir',
action='store',
default='.')
parser.add_argument(
'--https-ca-cert',
dest='https_ca_cert',
action='store')
parser.add_argument(
'--https-client-cert',
dest='https_client_cert',
action='store')
parser.add_argument(
'--https-client-key',
dest='https_client_key',
action='store')
parser.add_argument(
'--url',
dest='url',
action='store',
required=True)
FLAGS = parser.parse_args()
class ArchiveFetcher(object):
_BUF_SIZE = 2 ** 16
def __init__(self, https_ca_cert, https_client_cert, https_client_key):
self._session = requests.Session()
if https_ca_cert:
self._session.verify = https_ca_cert
if https_client_cert and https_client_key:
self._session.cert = (https_client_cert, https_client_key)
def Fetch(self, url, dest_dir='.'):
resp = self._session.get(url, stream=True)
tar = subprocess.Popen(
['tar', '--extract', '--verbose'],
stdin=subprocess.PIPE,
cwd=dest_dir)
for data in resp.iter_content(self._BUF_SIZE):
tar.stdin.write(data)
tar.wait()
def main():
fetcher = ArchiveFetcher(
FLAGS.https_ca_cert,
FLAGS.https_client_cert,
FLAGS.https_client_key)
fetcher.Fetch(
FLAGS.url,
FLAGS.dest_dir)
if __name__ == '__main__':
main()
| apache-2.0 | Python |
1add8048d4eeb54bd284b9fd5ec6f98cc9c0a86e | Bump version for release | kirberich/djangae,asendecka/djangae,kirberich/djangae,armirusco/djangae,potatolondon/djangae,asendecka/djangae,grzes/djangae,asendecka/djangae,armirusco/djangae,kirberich/djangae,grzes/djangae,grzes/djangae,potatolondon/djangae,armirusco/djangae | setup.py | setup.py | import os
from setuptools import setup, find_packages
NAME = 'djangae'
PACKAGES = find_packages()
DESCRIPTION = 'Django integration with Google App Engine'
URL = "https://github.com/potatolondon/djangae"
LONG_DESCRIPTION = open(os.path.join(os.path.dirname(__file__), 'README.md')).read()
AUTHOR = 'Potato London Ltd.'
EXTRAS = {
"test": ["webtest"],
}
setup(
name=NAME,
version='0.9.2',
packages=PACKAGES,
# metadata for upload to PyPI
author=AUTHOR,
description=DESCRIPTION,
long_description=LONG_DESCRIPTION,
keywords=["django", "Google App Engine", "GAE"],
url=URL,
classifiers=[
'Development Status :: 4 - Beta',
'Framework :: Django',
'Framework :: Django :: 1.7',
'Framework :: Django :: 1.8',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
],
include_package_data=True,
# dependencies
extras_require=EXTRAS,
tests_require=EXTRAS['test'],
)
| import os
from setuptools import setup, find_packages
NAME = 'djangae'
PACKAGES = find_packages()
DESCRIPTION = 'Django integration with Google App Engine'
URL = "https://github.com/potatolondon/djangae"
LONG_DESCRIPTION = open(os.path.join(os.path.dirname(__file__), 'README.md')).read()
AUTHOR = 'Potato London Ltd.'
EXTRAS = {
"test": ["webtest"],
}
setup(
name=NAME,
version='0.9.1',
packages=PACKAGES,
# metadata for upload to PyPI
author=AUTHOR,
description=DESCRIPTION,
long_description=LONG_DESCRIPTION,
keywords=["django", "Google App Engine", "GAE"],
url=URL,
classifiers=[
'Development Status :: 3 - Alpha',
'Framework :: Django',
'Framework :: Django :: 1.7',
'Framework :: Django :: 1.8',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
],
include_package_data=True,
# dependencies
extras_require=EXTRAS,
tests_require=EXTRAS['test'],
)
| bsd-3-clause | Python |
045cb4a62cc3db673e3f2840f1f3847dde08ae2b | update setup.py | r-m-n/click-help-colors | setup.py | setup.py | # -*- coding: utf-8 -*-
from setuptools import setup
setup(
name='click-help-colors',
version=0.2,
packages=['click_help_colors'],
description='Colorization of help messages in Click',
url='https://github.com/r-m-n/click-help-colors',
download_url='https://github.com/r-m-n/click-help-colors/archive/0.1.zip',
keywords=['click'],
license='MIT',
install_requires=[
'click'
]
)
| # -*- coding: utf-8 -*-
from setuptools import setup
setup(
name='click-help-colors',
version=0.1,
packages=['click_help_colors'],
description='Colorization of help messages in Click',
url='https://github.com/r-m-n/click-help-colors',
download_url='https://github.com/r-m-n/click-help-colors/tarball/0.1',
keywords=['click'],
license='MIT',
install_requires=[
'click'
]
)
| mit | Python |
ee9509b2eee48c5f73351cfba4ed525c133e3898 | Use absolute path in setup.py | whtsky/bencoder.pyx | setup.py | setup.py | import os.path
import platform
from setuptools import setup
from setuptools.extension import Extension
version = platform.python_version_tuple()
install_requires = []
if version < ('2', '7'):
install_requires.append('ordereddict>=1.1')
base_path = os.path.dirname(os.path.abspath(__file__))
try:
from Cython.Build import cythonize
ext_modules = cythonize(os.path.join(base_path, "bencoder.pyx"))
except ImportError:
ext_modules = [Extension(
'bencoder',
[os.path.join(base_path, 'bencoder.c')]
)]
setup(
name='bencoder.pyx',
version='1.1.1',
description='Yet another bencode implementation in Cython',
long_description=open('README.rst', 'r').read(),
author='whtsky',
author_email='whtsky@gmail.com',
url='https://github.com/whtsky/bencoder.pyx',
license='BSDv3',
platforms=['POSIX', 'Windows'],
zip_safe=False,
include_package_data=True,
keywords=['bencoding', 'encode', 'decode', 'bittorrent', 'bencode', 'bencoder', 'cython'],
classifiers=[
'Environment :: Other Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Cython',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
'Topic :: Software Development :: Libraries :: Python Modules',
],
ext_modules=ext_modules,
install_requires=install_requires,
tests_require=['nose'],
test_suite='nose.collector',
)
| import platform
from setuptools import setup
from setuptools.extension import Extension
version = platform.python_version_tuple()
install_requires = []
if version < ('2', '7'):
install_requires.append('ordereddict>=1.1')
try:
from Cython.Build import cythonize
ext_modules = cythonize("bencoder.pyx")
except ImportError:
ext_modules = [Extension('bencoder', ['bencoder.c'])]
setup(
name='bencoder.pyx',
version='1.1.1',
description='Yet another bencode implementation in Cython',
long_description=open('README.rst', 'r').read(),
author='whtsky',
author_email='whtsky@gmail.com',
url='https://github.com/whtsky/bencoder.pyx',
license='BSDv3',
platforms=['POSIX', 'Windows'],
zip_safe=False,
include_package_data=True,
keywords=['bencoding', 'encode', 'decode', 'bittorrent', 'bencode', 'bencoder', 'cython'],
classifiers=[
'Environment :: Other Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Cython',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
'Topic :: Software Development :: Libraries :: Python Modules',
],
ext_modules=ext_modules,
install_requires=install_requires,
tests_require=['nose'],
test_suite='nose.collector',
)
| bsd-3-clause | Python |
0345bce84010fda6e3e449253652af935f521e99 | add coverage | osallou/codetesting-with-python-training | setup.py | setup.py | try:
from setuptools import setup, find_packages
except ImportError:
from distutils.core import setup
config = {
'description': 'sample code for code testing',
'author': 'Olivier Sallou',
'author_email': 'olivier.sallou@irisa.fr',
'version': '0.1',
'classifiers': [
# How mature is this project? Common values are
# 3 - Alpha
# 4 - Beta
# 5 - Production/Stable
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Natural Language :: English',
'Operating System :: POSIX :: Linux',
# Indicate who your project is intended for
'Intended Audience :: Science/Research',
# Pick your license as you wish (should match "license" above)
'License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)',
# 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',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4'
],
'install_requires': ['nose',
'coverage',
'ldap3',
'mock'],
'packages': find_packages(),
'include_package_data': True,
'scripts': ['bin/test.py'],
'name': 'samplecode'
}
setup(**config)
| try:
from setuptools import setup, find_packages
except ImportError:
from distutils.core import setup
config = {
'description': 'sample code for code testing',
'author': 'Olivier Sallou',
'author_email': 'olivier.sallou@irisa.fr',
'version': '0.1',
'classifiers': [
# How mature is this project? Common values are
# 3 - Alpha
# 4 - Beta
# 5 - Production/Stable
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Natural Language :: English',
'Operating System :: POSIX :: Linux',
# Indicate who your project is intended for
'Intended Audience :: Science/Research',
# Pick your license as you wish (should match "license" above)
'License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)',
# 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',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4'
],
'install_requires': ['nose',
'ldap3',
'mock'],
'packages': find_packages(),
'include_package_data': True,
'scripts': ['bin/test.py'],
'name': 'samplecode'
}
setup(**config)
| apache-2.0 | Python |
9fea6231062f62888bebfd6ed31c387546bc548f | Fix automated dependency installation | sjl/django-hoptoad,sjl/django-hoptoad | setup.py | setup.py | import os
from setuptools import setup, find_packages
setup(
name='django-hoptoad',
version='0.2',
description='django-hoptoad is some simple Middleware for letting Django-driven websites report their errors to Hoptoad.',
long_description=open(os.path.join(os.path.abspath(os.path.dirname(__file__)), 'README.rst')).read(),
author='Steve Losh',
author_email='steve@stevelosh.com',
url='http://stevelosh.com/projects/django-hoptoad/',
packages=find_packages(),
install_requires=['pyyaml'],
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved',
'Operating System :: OS Independent',
'Framework :: Django',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
],
) | import os
from setuptools import setup, find_packages
setup(
name='django-hoptoad',
version='0.2',
description='django-hoptoad is some simple Middleware for letting Django-driven websites report their errors to Hoptoad.',
long_description=open(os.path.join(os.path.abspath(os.path.dirname(__file__)), 'README')).read(),
author='Steve Losh',
author_email='steve@stevelosh.com',
url='http://stevelosh.com/projects/django-hoptoad/',
packages=find_packages(),
requires='pyyaml',
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved',
'Operating System :: OS Independent',
'Framework :: Django',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
],
) | mit | Python |
94935da8ce413ca1071c317fdf448551cb0a70e8 | update txaio dep to 2.2.1 as other deps now require | mozilla-services/ap-loadtester | setup.py | setup.py | from setuptools import setup
from aplt import __version__
setup(
name='aplt',
version=__version__,
description='Autopush Load-Tester',
url='http://github.com/mozilla-services/ap-loadtester',
author='Ben Bangert',
author_email='bbangert@mozilla.com',
license='MPL2',
packages=['aplt'],
zip_safe=False,
install_requires=[
"autobahn>=0.10.9",
"Twisted>=15.5.0",
"docopt>=0.6.2",
"service-identity>=14.0.0",
"treq>=15.0.0",
"pyOpenSSL>=0.15.1",
"txaio==2.2.1",
"txStatsD==1.0.0",
],
entry_points="""
[console_scripts]
aplt_scenario = aplt.runner:run_scenario
aplt_testplan = aplt.runner:run_testplan
"""
)
| from setuptools import setup
from aplt import __version__
setup(
name='aplt',
version=__version__,
description='Autopush Load-Tester',
url='http://github.com/mozilla-services/ap-loadtester',
author='Ben Bangert',
author_email='bbangert@mozilla.com',
license='MPL2',
packages=['aplt'],
zip_safe=False,
install_requires=[
"autobahn>=0.10.9",
"Twisted>=15.5.0",
"docopt>=0.6.2",
"service-identity>=14.0.0",
"treq>=15.0.0",
"pyOpenSSL>=0.15.1",
"txaio==2.2.0",
"txStatsD==1.0.0",
],
entry_points="""
[console_scripts]
aplt_scenario = aplt.runner:run_scenario
aplt_testplan = aplt.runner:run_testplan
"""
)
| mpl-2.0 | Python |
e3ba5e614517339af9642f7961da6ded94f1d439 | Change setup.py for plot extras | lmcinnes/umap,lmcinnes/umap | setup.py | setup.py | from setuptools import setup
def readme():
try:
with open("README.rst", encoding="UTF-8") as readme_file:
return readme_file.read()
except TypeError:
# Python 2.7 doesn't support encoding argument in builtin open
import io
with io.open("README.rst", encoding="UTF-8") as readme_file:
return readme_file.read()
configuration = {
"name": "umap-learn",
"version": "0.4.0.rc3",
"description": "Uniform Manifold Approximation and Projection",
"long_description": readme(),
"long_description_content_type": "text/x-rst",
"classifiers": [
"Development Status :: 3 - Alpha",
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
"License :: OSI Approved",
"Programming Language :: C",
"Programming Language :: Python",
"Topic :: Software Development",
"Topic :: Scientific/Engineering",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"Operating System :: Unix",
"Operating System :: MacOS",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.8",
],
"keywords": "dimension reduction t-sne manifold",
"url": "http://github.com/lmcinnes/umap",
"maintainer": "Leland McInnes",
"maintainer_email": "leland.mcinnes@gmail.com",
"license": "BSD",
"packages": ["umap"],
"install_requires": [
"numpy >= 1.13",
"scikit-learn >= 0.20",
"scipy >= 1.0",
"numba >= 0.42, != 0.47",
"tbb >= 2019.0",
],
"extras_require": {
"plot": ["matplotlib", "datashader", "bokeh", "holoviews", "colorcet"],
"performance": ["pynndescent >= 0.4"],
},
"ext_modules": [],
"cmdclass": {},
"test_suite": "nose.collector",
"tests_require": ["nose"],
"data_files": (),
"zip_safe": False,
}
setup(**configuration)
| from setuptools import setup
def readme():
try:
with open("README.rst", encoding="UTF-8") as readme_file:
return readme_file.read()
except TypeError:
# Python 2.7 doesn't support encoding argument in builtin open
import io
with io.open("README.rst", encoding="UTF-8") as readme_file:
return readme_file.read()
configuration = {
"name": "umap-learn",
"version": "0.4.0.rc3",
"description": "Uniform Manifold Approximation and Projection",
"long_description": readme(),
"long_description_content_type": "text/x-rst",
"classifiers": [
"Development Status :: 3 - Alpha",
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
"License :: OSI Approved",
"Programming Language :: C",
"Programming Language :: Python",
"Topic :: Software Development",
"Topic :: Scientific/Engineering",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"Operating System :: Unix",
"Operating System :: MacOS",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.8",
],
"keywords": "dimension reduction t-sne manifold",
"url": "http://github.com/lmcinnes/umap",
"maintainer": "Leland McInnes",
"maintainer_email": "leland.mcinnes@gmail.com",
"license": "BSD",
"packages": ["umap"],
"install_requires": [
"numpy >= 1.13",
"scikit-learn >= 0.20",
"scipy >= 1.0",
"numba >= 0.42, != 0.47",
"tbb >= 2019.0",
],
"extras_require": {
"plot": ["matplotlib", "datashader", "bokeh", "holoviews", "seaborn"],
"performance": ["pynndescent >= 0.4"],
},
"ext_modules": [],
"cmdclass": {},
"test_suite": "nose.collector",
"tests_require": ["nose"],
"data_files": (),
"zip_safe": False,
}
setup(**configuration)
| bsd-3-clause | Python |
a7d5fe9d70183eed5d0715dcc64ac76d21617adc | Fix path to package.json | plone/mockup,termitnjak/mockup,derFreitag/mockup,derFreitag/mockup,domruf/mockup,domruf/mockup,domruf/mockup,domruf/mockup,termitnjak/mockup,plone/mockup,termitnjak/mockup,derFreitag/mockup,termitnjak/mockup,plone/mockup,derFreitag/mockup | setup.py | setup.py | from setuptools import setup, find_packages
import json
package_json = json.load(open('mockup/package.json'))
version = package_json['version']
setup(
name='mockup',
version=version,
description="A collection of client side patterns for faster and easier "
"web development",
long_description=open("README.rst").read(),
classifiers=[
"Framework :: Plone",
"Programming Language :: Python",
"Topic :: Software Development :: Libraries :: Python Modules",
],
keywords='plone mockup',
author='Plone Foundation',
author_email='plone-developers@lists.sourceforge.net',
url='https://github.com/plone/mockup',
license='MIT',
packages=find_packages(),
include_package_data=True,
zip_safe=False,
install_requires=[],
entry_points='''
[z3c.autoinclude.plugin]
target = mockup
''',
)
| from setuptools import setup, find_packages
import json
package_json = json.load(open('package.json'))
version = package_json['version']
setup(
name='mockup',
version=version,
description="A collection of client side patterns for faster and easier "
"web development",
long_description=open("README.rst").read(),
classifiers=[
"Framework :: Plone",
"Programming Language :: Python",
"Topic :: Software Development :: Libraries :: Python Modules",
],
keywords='plone mockup',
author='Plone Foundation',
author_email='plone-developers@lists.sourceforge.net',
url='https://github.com/plone/mockup',
license='MIT',
packages=find_packages(),
include_package_data=True,
zip_safe=False,
install_requires=[],
entry_points='''
[z3c.autoinclude.plugin]
target = mockup
''',
)
| bsd-3-clause | Python |
ca06378b83a2cef1902bff1204cb3f506433f974 | Add authors to long description. | jwass/mplleaflet,ocefpaf/mplleaflet,jwass/mplleaflet,ocefpaf/mplleaflet | setup.py | setup.py | try:
from setuptools import setup, find_packages
except ImportError:
from distutils.core import setup, find_packages
with open('AUTHORS.md') as f:
authors = f.read()
description = "Convert Matplotlib plots into Leaflet web maps"
long_description = description + "\n\n" + authors
NAME = "mplleaflet"
AUTHOR = "Jacob Wasserman"
AUTHOR_EMAIL = "jwasserman@gmail.com"
MAINTAINER = "Jacob Wasserman"
MAINTAINER_EMAIL = "jwasserman@gmail.com"
DOWNLOAD_URL = 'http://github.com/jwass/mplleaflet'
LICENSE = 'BSD 3-clause'
VERSION = '0.0.3'
setup(
name=NAME,
version=VERSION,
description=description,
long_description=long_description,
author=AUTHOR,
author_email=AUTHOR_EMAIL,
maintainer=MAINTAINER,
maintainer_email=MAINTAINER_EMAIL,
url=DOWNLOAD_URL,
download_url=DOWNLOAD_URL,
license=LICENSE,
packages=find_packages(),
package_data={'': ['*.html']}, # Include the templates
install_requires=[
"jinja2",
"six",
],
)
| try:
from setuptools import setup, find_packages
except ImportError:
from distutils.core import setup, find_packages
DESCRIPTION = "Convert Matplotlib plots into Leaflet web maps"
LONG_DESCRIPTION = DESCRIPTION
NAME = "mplleaflet"
AUTHOR = "Jacob Wasserman"
AUTHOR_EMAIL = "jwasserman@gmail.com"
MAINTAINER = "Jacob Wasserman"
MAINTAINER_EMAIL = "jwasserman@gmail.com"
DOWNLOAD_URL = 'http://github.com/jwass/mplleaflet'
LICENSE = 'BSD 3-clause'
VERSION = '0.0.2'
setup(
name=NAME,
version=VERSION,
description=DESCRIPTION,
long_description=LONG_DESCRIPTION,
author=AUTHOR,
author_email=AUTHOR_EMAIL,
maintainer=MAINTAINER,
maintainer_email=MAINTAINER_EMAIL,
url=DOWNLOAD_URL,
download_url=DOWNLOAD_URL,
license=LICENSE,
packages=find_packages(),
package_data={'': ['*.html']}, # Include the templates
install_requires=[
"jinja2",
"six",
],
)
| bsd-3-clause | Python |
4536bd3456f16c39219ab19982ef479880faab42 | correct py_modules name and add a test_suite value | rduplain/wsgi_party,rduplain/wsgi_party | setup.py | setup.py | from setuptools import setup
setup(
name='wsgi_party',
version='0.1-dev',
url='http://github.com/rduplain/wsgi_party',
license='BSD',
author='Ron DuPlain',
author_email='ron.duplain@gmail.com',
description='A partyline middleware for WSGI with good intentions.',
long_description=open('README.rst').read(),
py_modules=['wsgi_party'],
include_package_data=True,
zip_safe=False,
platforms='any',
install_requires=[
# Werkzeug is convenient to get us started. Could potentially remove.
'Werkzeug',
],
test_suite='tests',
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.5',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules'
],
)
| from setuptools import setup
setup(
name='wsgi_party',
version='0.1-dev',
url='http://github.com/rduplain/wsgi_party',
license='BSD',
author='Ron DuPlain',
author_email='ron.duplain@gmail.com',
description='A partyline middleware for WSGI with good intentions.',
long_description=open('README.rst').read(),
pymodules=['wsgi_party'],
include_package_data=True,
zip_safe=False,
platforms='any',
install_requires=[
# Werkzeug is convenient to get us started. Could potentially remove.
'Werkzeug',
],
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.5',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules'
],
)
| bsd-3-clause | Python |
f18e291a4ebfb51c6eec18c9c64a8d928fd3aa9e | Fix for md to rst | PyBossa/pbs,PyBossa/pbs,PyBossa/pbs | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup
try:
from pypandoc import convert
long_description = convert('README.md', 'md', format='rst')
except IOError:
print("warning: README.md not found")
long_description = ""
except ImportError:
print("warning: pypandoc module not found, could not convert Markdown to RST")
long_description = ""
setup(
name="pybossa-pbs",
version="1.1",
author="Daniel Lombraña González",
author_email="info@pybossa.com",
description="PyBossa command line client",
long_description=long_description,
license="AGPLv3",
url="https://github.com/PyBossa/pbs",
classifiers = ['Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)',
'Operating System :: OS Independent',
'Programming Language :: Python',],
py_modules=['pbs', 'helpers'],
install_requires=['Click', 'pybossa-client', 'requests', 'nose', 'mock', 'coverage',
'rednose', 'pypandoc'],
entry_points='''
[console_scripts]
pbs=pbs:cli
'''
)
| #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup
try:
from pypandoc import convert
read_md = lambda f: convert(f, 'rst')
long_description = read_md('README.md')
except IOError:
print("warning: README.md not found")
long_description = ""
except ImportError:
print("warning: pypandoc module not found, could not convert Markdown to RST")
long_description = ""
setup(
name="pybossa-pbs",
version="1.1",
author="Daniel Lombraña González",
author_email="info@pybossa.com",
description="PyBossa command line client",
long_description=long_description,
license="AGPLv3",
url="https://github.com/PyBossa/pbs",
classifiers = ['Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)',
'Operating System :: OS Independent',
'Programming Language :: Python',],
py_modules=['pbs', 'helpers'],
install_requires=['Click', 'pybossa-client', 'requests', 'nose', 'mock', 'coverage',
'rednose', 'pypandoc'],
entry_points='''
[console_scripts]
pbs=pbs:cli
'''
)
| agpl-3.0 | Python |
45b0e9889b336a84c18ee695c92345530da9179c | Bump version to 0.3.8 | polyaxon/polyaxon,polyaxon/polyaxon,polyaxon/polyaxon | setup.py | setup.py | #!/usr/bin/env python
import sys
from setuptools import find_packages, setup
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
import pytest
errcode = pytest.main(self.test_args)
sys.exit(errcode)
setup(name='rhea',
version='0.3.8',
description='Efficient environment variables management and typing for python.',
maintainer='Mourad Mourafiq',
maintainer_email='mourad.mourafiq@gmail.com',
author='Mourad Mourafiq',
author_email='mourad.mourafiq@gmail.com',
url='https://github.com/polyaxon/rhea',
license='MIT',
platforms='any',
packages=find_packages(),
keywords=[
'polyaxon',
'dotenv',
'environ',
'environment',
'env-vars',
'.env',
'django',
],
install_requires=[
'PyYAML==3.13',
'six==1.11.0',
],
classifiers=[
'Programming Language :: Python',
'Operating System :: OS Independent',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'Topic :: Scientific/Engineering :: Artificial Intelligence',
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Topic :: Internet :: WWW/HTTP',
],
tests_require=[
"pytest",
],
cmdclass={'test': PyTest})
| #!/usr/bin/env python
import sys
from setuptools import find_packages, setup
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
import pytest
errcode = pytest.main(self.test_args)
sys.exit(errcode)
setup(name='rhea',
version='0.3.7',
description='Efficient environment variables management and typing for python.',
maintainer='Mourad Mourafiq',
maintainer_email='mourad.mourafiq@gmail.com',
author='Mourad Mourafiq',
author_email='mourad.mourafiq@gmail.com',
url='https://github.com/polyaxon/rhea',
license='MIT',
platforms='any',
packages=find_packages(),
keywords=[
'polyaxon',
'dotenv',
'environ',
'environment',
'env-vars',
'.env',
'django',
],
install_requires=[
'PyYAML==3.13',
'six==1.11.0',
],
classifiers=[
'Programming Language :: Python',
'Operating System :: OS Independent',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'Topic :: Scientific/Engineering :: Artificial Intelligence',
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Topic :: Internet :: WWW/HTTP',
],
tests_require=[
"pytest",
],
cmdclass={'test': PyTest})
| apache-2.0 | Python |
e07ccf557a986ed70f917e86ae8388d6a2bc5280 | Bump up version number on trunk. | davidfraser/genshi,dag/genshi,dag/genshi,dag/genshi,davidfraser/genshi,dag/genshi,davidfraser/genshi,davidfraser/genshi | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2006 Edgewall Software
# All rights reserved.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution. The terms
# are also available at http://markup.edgewall.org/wiki/License.
#
# This software consists of voluntary contributions made by many
# individuals. For the exact contribution history, see the revision
# history and logs, available at http://markup.edgewall.org/log/.
try:
from setuptools import setup, find_packages
except ImportError:
from distutils.core import setup
setup(
name='Markup', version='0.2',
description='Toolkit for stream-based generation of markup for the web',
author='Edgewall Software', author_email='info@edgewall.org',
license='BSD', url='http://markup.edgewall.org/',
download_url='http://markup.edgewall.org/wiki/MarkupDownload',
classifiers = [
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Text Processing :: Markup :: HTML',
'Topic :: Text Processing :: Markup :: XML'
],
packages=['markup'],
test_suite = 'markup.tests.suite',
zip_safe = True,
entry_points = """
[python.templating.engines]
markup = markup.plugin:TemplateEnginePlugin
""",
)
| #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2006 Edgewall Software
# All rights reserved.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution. The terms
# are also available at http://markup.edgewall.org/wiki/License.
#
# This software consists of voluntary contributions made by many
# individuals. For the exact contribution history, see the revision
# history and logs, available at http://markup.edgewall.org/log/.
try:
from setuptools import setup, find_packages
except ImportError:
from distutils.core import setup
setup(
name='Markup', version='0.1',
description='Toolkit for stream-based generation of markup for the web',
author='Edgewall Software', author_email='info@edgewall.org',
license='BSD', url='http://markup.edgewall.org/',
download_url='http://markup.edgewall.org/wiki/MarkupDownload',
classifiers = [
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Text Processing :: Markup :: HTML',
'Topic :: Text Processing :: Markup :: XML'
],
packages=['markup'],
test_suite = 'markup.tests.suite',
zip_safe = True,
entry_points = """
[python.templating.engines]
markup = markup.plugin:TemplateEnginePlugin
""",
)
| bsd-3-clause | Python |
f966ab48cf0ca9bc8b7ea4ffd7471dce99df20a3 | Fix licence | Bearle/django-private-chat,Bearle/django-private-chat,Bearle/django-private-chat | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import re
import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
def get_version(*file_paths):
"""Retrieves the version from django_private_chat/__init__.py"""
filename = os.path.join(os.path.dirname(__file__), *file_paths)
version_file = open(filename).read()
version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]",
version_file, re.M)
if version_match:
return version_match.group(1)
raise RuntimeError('Unable to find version string.')
version = get_version("django_private_chat", "__init__.py")
if sys.argv[-1] == 'publish':
try:
import wheel
print("Wheel version: ", wheel.__version__)
except ImportError:
print('Wheel library missing. Please run "pip install wheel"')
sys.exit()
os.system('python setup.py sdist upload')
os.system('python setup.py bdist_wheel upload')
sys.exit()
if sys.argv[-1] == 'tag':
print("Tagging the version on git:")
os.system("git tag -a %s -m 'version %s'" % (version, version))
os.system("git push --tags")
sys.exit()
readme = open('README.rst').read()
history = open('HISTORY.rst').read().replace('.. :changelog:', '')
setup(
name='django-private-chat',
version=version,
description="""Django one-to-one Websocket-based Asyncio-handled chat, developed by Bearle team""",
long_description=readme + '\n\n' + history,
author='Bearle',
author_email='tech@bearle.ru',
url='https://github.com/Bearle/django-private-chat',
packages=[
'django_private_chat',
],
include_package_data=True,
install_requires=["django-model-utils>=2.6.1","django-braces>=1.10.0",
"websockets==3.2","websockets==3.2","uvloop==0.7.2"],
license="ISCL",
zip_safe=False,
keywords='django-private-chat',
classifiers=[
'Development Status :: 3 - Alpha',
'Framework :: Django',
'Framework :: Django :: 1.8',
'Framework :: Django :: 1.9',
'Framework :: Django :: 1.10',
'Intended Audience :: Developers',
'License :: OSI Approved :: ISC License (ISCL)',
'Natural Language :: English',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
],
)
| #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import re
import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
def get_version(*file_paths):
"""Retrieves the version from django_private_chat/__init__.py"""
filename = os.path.join(os.path.dirname(__file__), *file_paths)
version_file = open(filename).read()
version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]",
version_file, re.M)
if version_match:
return version_match.group(1)
raise RuntimeError('Unable to find version string.')
version = get_version("django_private_chat", "__init__.py")
if sys.argv[-1] == 'publish':
try:
import wheel
print("Wheel version: ", wheel.__version__)
except ImportError:
print('Wheel library missing. Please run "pip install wheel"')
sys.exit()
os.system('python setup.py sdist upload')
os.system('python setup.py bdist_wheel upload')
sys.exit()
if sys.argv[-1] == 'tag':
print("Tagging the version on git:")
os.system("git tag -a %s -m 'version %s'" % (version, version))
os.system("git push --tags")
sys.exit()
readme = open('README.rst').read()
history = open('HISTORY.rst').read().replace('.. :changelog:', '')
setup(
name='django-private-chat',
version=version,
description="""Django one-to-one Websocket-based Asyncio-handled chat, developed by Bearle team""",
long_description=readme + '\n\n' + history,
author='Bearle',
author_email='tech@bearle.ru',
url='https://github.com/Bearle/django-private-chat',
packages=[
'django_private_chat',
],
include_package_data=True,
install_requires=["django-model-utils>=2.6.1","django-braces>=1.10.0",
"websockets==3.2","websockets==3.2","uvloop==0.7.2"],
license="ISCL",
zip_safe=False,
keywords='django-private-chat',
classifiers=[
'Development Status :: 3 - Alpha',
'Framework :: Django',
'Framework :: Django :: 1.8',
'Framework :: Django :: 1.9',
'Framework :: Django :: 1.10',
'Intended Audience :: Developers',
'License :: OSI Approved :: ISCL Licence',
'Natural Language :: English',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
],
)
| isc | Python |
073c7036d71c447111dc9cb518e588e608496c93 | remove distribute | thiagosm/pyboleto,thiagosm/pyboleto | setup.py | setup.py | # -*- coding: utf-8 -*-
import sys
import os
import re
from setuptools import setup, find_packages
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
def get_version(package):
"""Return package version as listed in `__version__` in `__init__.py`."""
init_py = open(os.path.join(os.path.dirname(__file__),
package, '__init__.py'),
'r').read()
return re.search("^__version__ = ['\"]([^'\"]+)['\"]",
init_py, re.MULTILINE
).group(1)
setup(
name='pyboleto',
version=get_version('pyboleto'),
author='Eduardo Cereto Carvalho',
author_email='eduardocereto@gmail.com',
url='https://github.com/eduardocereto/pyboleto',
packages=find_packages(),
package_data={
'': ['LICENSE'],
'pyboleto': ['media/*.jpg','templates/*.html'],
},
zip_safe=False,
provides=[
'pyboleto'
],
license='BSD',
description='Python Library to create "boletos de cobrança bancária" for \
several Brazilian banks',
long_description=read('README.rst'),
download_url='http://pypi.python.org/pypi/pyboleto',
scripts=[
'bin/html_pyboleto_sample.py',
'bin/pdf_pyboleto_sample.py'
],
classifiers=[
'Development Status :: 4 - Beta',
'Operating System :: OS Independent',
'Intended Audience :: Developers',
'Intended Audience :: Financial and Insurance Industry',
'Operating System :: OS Independent',
'License :: OSI Approved :: BSD License',
'Natural Language :: Portuguese (Brazilian)',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 2.6',
'Topic :: Office/Business :: Financial',
'Topic :: Software Development :: Libraries :: Python Modules',
'Framework :: Django',
],
platforms='any',
test_suite='tests.alltests.suite',
install_requires=[
'reportlab'
],
tests_require=[
'pylint',
'tox',
'coverage',
'pep8',
'sphinx-pypi-upload',
'sphinx'
]
)
| # -*- coding: utf-8 -*-
import sys
import os
import re
from setuptools import setup, find_packages
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
def get_version(package):
"""Return package version as listed in `__version__` in `__init__.py`."""
init_py = open(os.path.join(os.path.dirname(__file__),
package, '__init__.py'),
'r').read()
return re.search("^__version__ = ['\"]([^'\"]+)['\"]",
init_py, re.MULTILINE
).group(1)
setup(
name='pyboleto',
version=get_version('pyboleto'),
author='Eduardo Cereto Carvalho',
author_email='eduardocereto@gmail.com',
url='https://github.com/eduardocereto/pyboleto',
packages=find_packages(),
package_data={
'': ['LICENSE'],
'pyboleto': ['media/*.jpg','templates/*.html'],
},
zip_safe=False,
provides=[
'pyboleto'
],
license='BSD',
description='Python Library to create "boletos de cobrança bancária" for \
several Brazilian banks',
long_description=read('README.rst'),
download_url='http://pypi.python.org/pypi/pyboleto',
scripts=[
'bin/html_pyboleto_sample.py',
'bin/pdf_pyboleto_sample.py'
],
classifiers=[
'Development Status :: 4 - Beta',
'Operating System :: OS Independent',
'Intended Audience :: Developers',
'Intended Audience :: Financial and Insurance Industry',
'Operating System :: OS Independent',
'License :: OSI Approved :: BSD License',
'Natural Language :: Portuguese (Brazilian)',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 2.6',
'Topic :: Office/Business :: Financial',
'Topic :: Software Development :: Libraries :: Python Modules',
'Framework :: Django',
],
platforms='any',
test_suite='tests.alltests.suite',
install_requires=[
'distribute',
'reportlab'
],
tests_require=[
'pylint',
'tox',
'coverage',
'pep8',
'sphinx-pypi-upload',
'sphinx'
]
)
| bsd-3-clause | Python |
55950487cbd5ca5648a1997a9528d4342f46396b | add classifiers | tombiasz/django-hibpwned | setup.py | setup.py | from setuptools import setup
setup(
name='django-hibpwned',
version='0.1',
description='Django password validator based on haveibeenpwned.com API',
url='https://github.com/tombiasz/django-hibpwned',
author='tombiasz',
author_email='',
license='MIT',
packages=['haveibeenpwned'],
zip_safe=False,
install_requires=[
'Django>=1.9',
'requests>=2'
],
classifiers=[
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Framework :: Django',
'Programming Language :: Python :: 3 :: Only',
]
)
| from setuptools import setup
setup(
name='django-hibpwned',
version='0.1',
description='Django password validator based on haveibeenpwned.com API',
url='https://github.com/tombiasz/django-hibpwned',
author='tombiasz',
author_email='',
license='MIT',
packages=['haveibeenpwned'],
zip_safe=False,
install_requires=[
'Django>=1.9',
'requests>=2'
]
)
| mit | Python |
dc562bb678a7b899cbe835fdc5d9fc52a41069e7 | update version only | losalamos/Pavilion,losalamos/Pavilion,losalamos/Pavilion | setup.py | setup.py | try:
from setuptools import setup
except ImportError:
from distutils.core import setup
config = {
'description': 'Pavilion - High Performance Cluster Testing Framework',
'long_description': 'Software framework for testing and analyzing HPC system health',
'author': 'LANL',
'url': 'git.lanl.gov/cwi/pavilion',
'download_url': 'git@git.lanl.gov/cwi/pavilion',
'author_email': 'cwi@lanl.gov',
'version': '0.61',
'packages': ['PAV'],
'packages': ['test'],
'name': 'pavilion'
}
setup(**config)
| try:
from setuptools import setup
except ImportError:
from distutils.core import setup
config = {
'description': 'Pavilion - High Performance Cluster Testing Framework',
'long_description': 'Software framework for testing and analyzing HPC system health',
'author': 'LANL',
'url': 'git.lanl.gov/cwi/pavilion',
'download_url': 'git@git.lanl.gov/cwi/pavilion',
'author_email': 'cwi@lanl.gov',
'version': '0.60',
'packages': ['PAV'],
'packages': ['test'],
'name': 'pavilion'
}
setup(**config)
| bsd-3-clause | Python |
cfec870e9435ba1c32278b8ce8a0743f4f9a97ab | Add list-jobs script to list buildable jobs from a nitor-deploy-tools targeted repo | NitorCreations/nitor-deploy-tools,NitorCreations/nitor-deploy-tools,NitorCreations/nitor-deploy-tools | setup.py | setup.py | # Copyright 2016-2017 Nitor Creations Oy
#
# 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 sys
from setuptools import setup
from n_utils import SCRIPTS, CONSOLESCRIPTS
setup(name='nitor_deploy_tools',
version='0.102',
description='Utilities for deploying with Nitor aws-utils',
url='http://github.com/NitorCreations/nitor-deploy-tools',
download_url='https://github.com/NitorCreations/nitor-deploy-tools/tarball/0.102',
author='Pasi Niemi',
author_email='pasi@nitor.com',
license='Apache 2.0',
packages=['n_utils'],
include_package_data=True,
scripts=SCRIPTS,
entry_points={
'console_scripts': CONSOLESCRIPTS,
},
install_requires=[
'pyaml',
'boto3',
'awscli',
'pycrypto',
'requests',
'termcolor',
'ipaddr',
'argcomplete',
'nitor-vault',
'psutil',
'Pygments'
] + ([
'win-unicode-console',
'wmi',
'pypiwin32'
] if sys.platform.startswith('win') else []),
zip_safe=False)
| # Copyright 2016-2017 Nitor Creations Oy
#
# 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 sys
from setuptools import setup
from n_utils import SCRIPTS, CONSOLESCRIPTS
setup(name='nitor_deploy_tools',
version='0.101',
description='Utilities for deploying with Nitor aws-utils',
url='http://github.com/NitorCreations/nitor-deploy-tools',
download_url='https://github.com/NitorCreations/nitor-deploy-tools/tarball/0.101',
author='Pasi Niemi',
author_email='pasi@nitor.com',
license='Apache 2.0',
packages=['n_utils'],
include_package_data=True,
scripts=SCRIPTS,
entry_points={
'console_scripts': CONSOLESCRIPTS,
},
install_requires=[
'pyaml',
'boto3',
'awscli',
'pycrypto',
'requests',
'termcolor',
'ipaddr',
'argcomplete',
'nitor-vault',
'psutil',
'Pygments'
] + ([
'win-unicode-console',
'wmi',
'pypiwin32'
] if sys.platform.startswith('win') else []),
zip_safe=False)
| apache-2.0 | Python |
b3b26bd674e0e7c2f9a3339c9539cc6f58d3114d | Update release version | tianhao64/pyvmomi,vmware/pyvmomi | setup.py | setup.py | # VMware vSphere Python SDK
# Copyright (c) 2009-2016 VMware, Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from setuptools import setup
import os
def read(fname):
with open(os.path.join(os.path.dirname(__file__), fname)) as fn:
return fn.read()
with open('requirements.txt') as f:
required = f.read().splitlines()
with open('test-requirements.txt') as f:
required_for_tests = f.read().splitlines()
setup(
name='pyvmomi',
version='6.5.0.2017.5',
description='VMware vSphere Python SDK',
# NOTE: pypi prefers the use of RST to render docs
long_description=read('README.rst'),
url='https://github.com/vmware/pyvmomi',
author='VMware, Inc.',
author_email='jhu@vmware.com',
packages=['pyVmomi', 'pyVim'],
install_requires=required,
license='License :: OSI Approved :: Apache Software License',
classifiers=[
'Development Status :: 5 - Production/Stable',
'License :: OSI Approved :: Apache Software License',
'Intended Audience :: Information Technology',
'Intended Audience :: System Administrators',
'Intended Audience :: Developers',
'Environment :: No Input/Output (Daemon)',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: System :: Distributed Computing',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'Operating System :: Unix',
'Operating System :: MacOS',
],
keywords='pyvmomi vsphere vmware esx',
platforms=['Windows', 'Linux', 'Solaris', 'Mac OS-X', 'Unix'],
test_suite='tests',
tests_require=required_for_tests,
zip_safe=True
)
| # VMware vSphere Python SDK
# Copyright (c) 2009-2016 VMware, Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from setuptools import setup
import os
def read(fname):
with open(os.path.join(os.path.dirname(__file__), fname)) as fn:
return fn.read()
with open('requirements.txt') as f:
required = f.read().splitlines()
with open('test-requirements.txt') as f:
required_for_tests = f.read().splitlines()
setup(
name='pyvmomi',
version='6.5',
description='VMware vSphere Python SDK',
# NOTE: pypi prefers the use of RST to render docs
long_description=read('README.rst'),
url='https://github.com/vmware/pyvmomi',
author='VMware, Inc.',
author_email='jhu@vmware.com',
packages=['pyVmomi', 'pyVim'],
install_requires=required,
license='License :: OSI Approved :: Apache Software License',
classifiers=[
'Development Status :: 5 - Production/Stable',
'License :: OSI Approved :: Apache Software License',
'Intended Audience :: Information Technology',
'Intended Audience :: System Administrators',
'Intended Audience :: Developers',
'Environment :: No Input/Output (Daemon)',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: System :: Distributed Computing',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'Operating System :: Unix',
'Operating System :: MacOS',
],
keywords='pyvmomi vsphere vmware esx',
platforms=['Windows', 'Linux', 'Solaris', 'Mac OS-X', 'Unix'],
test_suite='tests',
tests_require=required_for_tests,
zip_safe=True
)
| apache-2.0 | Python |
9b1ae7410004635dd59d07fda89c9aa93979a88f | Use py_modules instead of packages. | percipient/django-querysetsequence | setup.py | setup.py | import codecs
from setuptools import setup, find_packages
def long_description():
with codecs.open('README.rst', encoding='utf8') as f:
return f.read()
setup(
name='django-querysetsequence',
py_modules=['queryset_sequence'],
version='0.1',
description='Chain together multiple (disparate) QuerySets to treat them as a single QuerySet.',
long_description=long_description(),
author='Percipient Networks, LLC',
author_email='support@percipientnetworks.com',
url='https://github.com/percipient/django-querysetsequence',
download_url='https://github.com/percipient/django-querysetsequence',
keywords=['django', 'queryset', 'chain', 'multi', 'multiple', 'iterable'],
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Topic :: Software Development :: Libraries :: Python Modules',
'Environment :: Web Environment',
'Topic :: Internet',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Framework :: Django',
'License :: OSI Approved :: ISC License (ISCL)',
],
install_requires=[
'django>=1.8.0',
],
)
| import codecs
from setuptools import setup, find_packages
def long_description():
with codecs.open('README.rst', encoding='utf8') as f:
return f.read()
setup(
name='django-querysetsequence',
packages=find_packages(),
version='0.1',
description='Chain together multiple (disparate) QuerySets to treat them as a single QuerySet.',
long_description=long_description(),
author='Percipient Networks, LLC',
author_email='support@percipientnetworks.com',
url='https://github.com/percipient/django-querysetsequence',
download_url='https://github.com/percipient/django-querysetsequence',
keywords=['django', 'queryset', 'chain', 'multi', 'multiple', 'iterable'],
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Topic :: Software Development :: Libraries :: Python Modules',
'Environment :: Web Environment',
'Topic :: Internet',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Framework :: Django',
'License :: OSI Approved :: ISC License (ISCL)',
],
install_requires=[
'django>=1.8.0',
],
)
| isc | Python |
6f2690858d41a86ee1d2f3345b544a50438a493f | Fix case of "nose" in tests_require. | tartley/blessings,erikrose/blessings,jquast/blessed | setup.py | setup.py | import sys
from setuptools import setup, find_packages
extra_setup = {}
if sys.version_info >= (3,):
extra_setup['use_2to3'] = True
setup(
name='blessings',
version='1.4',
description='A thin, practical wrapper around terminal coloring, styling, and positioning',
long_description=open('README.rst').read(),
author='Erik Rose',
author_email='erikrose@grinchcentral.com',
license='MIT',
packages=find_packages(exclude=['ez_setup']),
tests_require=['nose'],
url='https://github.com/erikrose/blessings',
include_package_data=True,
classifiers=[
'Intended Audience :: Developers',
'Natural Language :: English',
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Environment :: Console :: Curses',
'License :: OSI Approved :: MIT License',
'Operating System :: POSIX',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.5',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
'Topic :: Software Development :: Libraries',
'Topic :: Software Development :: User Interfaces',
'Topic :: Terminals'
],
keywords=['terminal', 'tty', 'curses', 'ncurses', 'formatting', 'style', 'color', 'console'],
**extra_setup
)
| import sys
from setuptools import setup, find_packages
extra_setup = {}
if sys.version_info >= (3,):
extra_setup['use_2to3'] = True
setup(
name='blessings',
version='1.4',
description='A thin, practical wrapper around terminal coloring, styling, and positioning',
long_description=open('README.rst').read(),
author='Erik Rose',
author_email='erikrose@grinchcentral.com',
license='MIT',
packages=find_packages(exclude=['ez_setup']),
tests_require=['Nose'],
url='https://github.com/erikrose/blessings',
include_package_data=True,
classifiers=[
'Intended Audience :: Developers',
'Natural Language :: English',
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Environment :: Console :: Curses',
'License :: OSI Approved :: MIT License',
'Operating System :: POSIX',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.5',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
'Topic :: Software Development :: Libraries',
'Topic :: Software Development :: User Interfaces',
'Topic :: Terminals'
],
keywords=['terminal', 'tty', 'curses', 'ncurses', 'formatting', 'style', 'color', 'console'],
**extra_setup
)
| mit | Python |
082b767c3a194ad43093edbaa81d16d813cedfa8 | change version to 1.0.1 | mizuy/sitegen,mizuy/sitegen,mizuy/sitegen | setup.py | setup.py | import os
from setuptools import setup, find_packages
version = '1.0.1'
README = os.path.join(os.path.dirname(__file__), 'README.md')
long_description = open(README).read() + '\n\n'
classifiers = """\
Development Status :: 4 - Beta
Environment :: Console
Intended Audience :: Developers
License :: OSI Approved :: MIT License
Topic :: Internet :: WWW/HTTP :: Site Management
Programming Language :: Python
Operating System :: Unix
"""
setup(name='sitegen',
version=version,
description=("simple static site generator."),
classifiers = filter(None, classifiers.split("\n")),
keywords='static site generator markdown',
author='mizuy',
author_email='mizugy@gmail.com',
url='http://github.com/mizuy/sitegen',
license='MIT',
packages=find_packages(),
dependency_links=['https://github.com/waylan/Python-Markdown/archive/fdfc84405ba690705ff343d46ab658bfc50a8836.zip#egg=Markdown-2.3dev'],
install_requires=['Jinja2', 'PyYAML', 'Pygments', 'Markdown>=2.3dev'],
entry_points=\
"""
[console_scripts]
sitegen = sitegen:main
""")
| import os
from setuptools import setup, find_packages
version = '1.0.0'
README = os.path.join(os.path.dirname(__file__), 'README.md')
long_description = open(README).read() + '\n\n'
classifiers = """\
Development Status :: 4 - Beta
Environment :: Console
Intended Audience :: Developers
License :: OSI Approved :: MIT License
Topic :: Internet :: WWW/HTTP :: Site Management
Programming Language :: Python
Operating System :: Unix
"""
setup(name='sitegen',
version=version,
description=("simple static site generator."),
classifiers = filter(None, classifiers.split("\n")),
keywords='static site generator markdown',
author='mizuy',
author_email='mizugy@gmail.com',
url='http://github.com/mizuy/sitegen',
license='MIT',
packages=find_packages(),
dependency_links=['https://github.com/waylan/Python-Markdown/archive/fdfc84405ba690705ff343d46ab658bfc50a8836.zip#egg=Markdown-2.3dev'],
install_requires=['Jinja2', 'PyYAML', 'Pygments', 'Markdown>=2.3dev'],
entry_points=\
"""
[console_scripts]
sitegen = sitegen:main
""")
| mit | Python |
9032d6537e97b3095a894a4a1e9a23812f09efab | Fix setup.py | hpleva/pyemto | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, Extension
from Cython.Build import cythonize
import numpy
extensions = [
Extension("pyemto.c.c_lattice", ["pyemto/c/c_lattice.pyx"],
include_dirs = [numpy.get_include()],
#libraries = [...],
#library_dirs = [...],
)
]
setup(name='pyemto',
version='0.9.3',
description='Program to generate input files for EMTO program',
author='H. Levämäki, M. Ropo',
author_email='hpleva@utu.fi, matti.ropo@tut.fi',
license='MIT',
classifiers=['Development Status :: 4 - Beta', 'Environment :: Console',
'Intended Audience :: Science/Research'],
packages=['pyemto', 'pyemto.EOS', 'pyemto.emtoinputs',
'pyemto.latticeinputs', 'pyemto.utilities',
'pyemto.common', 'pyemto.emto_parser',
'pyemto.examples', 'pyemto.free_energy',
'pyemto.space_group', 'pyemto.c'],
package_data={"pyemto.emto_parser": ["*.json", "LICENSE.txt"],
"pyemto": ["contributors.txt", "Documentation.html"],
"pyemto.c": ["*.py", "*.so", "*.pyc"]},
install_requires=["numpy>=1.10.3", "scipy>=0.17.1", "matplotlib>=1.5.1"],
extras_require={"emto_parser": ["pandas>=0.20.3"],
"emto_input_generator": ["pymatgen>=4.4.0"]},
ext_modules = cythonize(extensions),
)
| #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, Extension
from Cython.Build import cythonize
extensions = [
Extension("pyemto.c.c_lattice", ["pyemto/c/c_lattice.pyx"],
#include_dirs = [...],
#libraries = [...],
#library_dirs = [...],
)
]
setup(name='pyemto',
version='0.9.3',
description='Program to generate input files for EMTO program',
author='H. Levämäki, M. Ropo',
author_email='hpleva@utu.fi, matti.ropo@tut.fi',
license='MIT',
classifiers=['Development Status :: 4 - Beta', 'Environment :: Console',
'Intended Audience :: Science/Research'],
packages=['pyemto', 'pyemto.EOS', 'pyemto.emtoinputs',
'pyemto.latticeinputs', 'pyemto.utilities',
'pyemto.common', 'pyemto.emto_parser',
'pyemto.examples', 'pyemto.free_energy',
'pyemto.space_group', 'pyemto.c'],
package_data={"pyemto.emto_parser": ["*.json", "LICENSE.txt"],
"pyemto": ["contributors.txt", "Documentation.html"],
"pyemto.c": ["*.py", "*.so", "*.pyc"]},
install_requires=["numpy>=1.10.3", "scipy>=0.17.1", "matplotlib>=1.5.1"],
extras_require={"emto_parser": ["pandas>=0.20.3"],
"emto_input_generator": ["pymatgen>=4.4.0"]},
ext_modules = cythonize(extensions),
)
| mit | Python |
566590540b27270020ba3728f88f52f8a03d1e03 | Update maintainer info | Unholster/django-lookup | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name="django-lookup",
version="0.0.1",
author="Sebastián Acuña",
author_email="sebastian@unholster.com",
maintainer="Sebastián Acuña",
maintainer_email="sebastian@unholster.com",
packages=find_packages(),
license="MIT License",
package_data={
'lookup': [
'*.*',
]
},
url="https://github.com/Unholster/django-lookup",
install_requires=['Unidecode'],
description="Lookup tables for Django models with management features and fuzzy matching", # noqa
classifiers=["Development Status :: 5 - Production/Stable", "Topic :: Utilities"] # noqa
)
| #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name="django-lookup",
version="0.0.1",
author="Sebastián Acuña",
author_email="sebastian@unholster.com",
maintainer="Andrés Villavicencio",
maintainer_email="andres@unholster.com",
packages=find_packages(),
license="MIT License",
package_data={
'lookup': [
'*.*',
]
},
url="https://github.com/Unholster/django-lookup",
install_requires=['Unidecode'],
description="Lookup tables for Django models with management features and fuzzy matching", # noqa
classifiers=["Development Status :: 5 - Production/Stable", "Topic :: Utilities"] # noqa
)
| mit | Python |
87cfbc3a0cf6c2496ba22d9a2f1cef3e6c5bac7c | Reduce asn1crypto and oscrypto version specs for CI to complete | wbond/certbuilder | setup.py | setup.py | import os
import shutil
from setuptools import setup, find_packages, Command
from certbuilder import version
class CleanCommand(Command):
user_options = [
('all', None, '(Compatibility with original clean command)')
]
def initialize_options(self):
self.all = False
def finalize_options(self):
pass
def run(self):
folder = os.path.dirname(os.path.abspath(__file__))
for sub_folder in ['build', 'dist', 'certbuilder.egg-info']:
full_path = os.path.join(folder, sub_folder)
if os.path.exists(full_path):
shutil.rmtree(full_path)
setup(
name='certbuilder',
version=version.__version__,
description='Creates and signs X.509 certificates',
long_description='Docs for this project are maintained at https://github.com/wbond/certbuilder#readme.',
url='https://github.com/wbond/certbuilder',
author='wbond',
author_email='will@wbond.net',
license='MIT',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: Implementation :: PyPy',
'Topic :: Security :: Cryptography',
],
keywords='crypto pki x509 certificate rsa dsa ec',
install_requires=[
'asn1crypto>=0.20.0',
'oscrypto>=0.17.3'
],
packages=find_packages(exclude=['tests*', 'dev*']),
test_suite='tests.make_suite',
cmdclass={
'clean': CleanCommand,
}
)
| import os
import shutil
from setuptools import setup, find_packages, Command
from certbuilder import version
class CleanCommand(Command):
user_options = [
('all', None, '(Compatibility with original clean command)')
]
def initialize_options(self):
self.all = False
def finalize_options(self):
pass
def run(self):
folder = os.path.dirname(os.path.abspath(__file__))
for sub_folder in ['build', 'dist', 'certbuilder.egg-info']:
full_path = os.path.join(folder, sub_folder)
if os.path.exists(full_path):
shutil.rmtree(full_path)
setup(
name='certbuilder',
version=version.__version__,
description='Creates and signs X.509 certificates',
long_description='Docs for this project are maintained at https://github.com/wbond/certbuilder#readme.',
url='https://github.com/wbond/certbuilder',
author='wbond',
author_email='will@wbond.net',
license='MIT',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: Implementation :: PyPy',
'Topic :: Security :: Cryptography',
],
keywords='crypto pki x509 certificate rsa dsa ec',
install_requires=[
'asn1crypto>=0.21.0',
'oscrypto>=0.18.0'
],
packages=find_packages(exclude=['tests*', 'dev*']),
test_suite='tests.make_suite',
cmdclass={
'clean': CleanCommand,
}
)
| mit | Python |
ba7952506a631bc49567a18279cb0bd9ead5c4ba | Add url and 3.5 classifier | MagicStack/contextvars | setup.py | setup.py | import os.path
import setuptools
with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as f:
readme = f.read()
setuptools.setup(
name='contextvars',
version="2.1",
url='http://github.com/MagicStack/contextvars',
description='PEP 567 Backport',
long_description=readme,
author='MagicStack Inc',
author_email='hello@magic.io',
packages=['contextvars'],
provides=['contextvars'],
license='Apache License, Version 2.0',
classifiers=[
'Development Status :: 3 - Alpha',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.5',
'Operating System :: POSIX',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Microsoft :: Windows',
'License :: OSI Approved :: Apache Software License',
'Intended Audience :: Developers',
],
include_package_data=True,
test_suite='tests.suite',
)
| import os.path
import setuptools
with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as f:
readme = f.read()
setuptools.setup(
name='contextvars',
version="2.1",
description='PEP 567 Backport',
long_description=readme,
author='MagicStack Inc',
author_email='hello@magic.io',
packages=['contextvars'],
provides=['contextvars'],
license='Apache License, Version 2.0',
classifiers=[
'Development Status :: 3 - Alpha',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.6',
'Operating System :: POSIX',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Microsoft :: Windows',
'License :: OSI Approved :: Apache Software License',
'Intended Audience :: Developers',
],
include_package_data=True,
test_suite='tests.suite',
)
| apache-2.0 | Python |
4c3a630317c068ca74df9df6f84eab4f3dd6ea12 | fix python 3.4 tests | tomi77/python-t77-date | setup.py | setup.py | import sys
from codecs import open
from setuptools import setup, find_packages
setup(
name='t77-date',
version='0.5.0',
author='Tomasz Jakub Rup',
author_email='tomasz.rup@gmail.com',
url='https://github.com/tomi77/python-t77-date',
description='A set of functions related with dates',
long_description='' if sys.version_info[:2] == (3, 4) else open('README.rst').read(),
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Topic :: Software Development',
'Topic :: Software Development :: Libraries',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Utilities',
],
license='MIT',
packages=find_packages(exclude=('tests',)),
install_requires=['six', 'python-dateutil'],
test_suite='tests'
)
| from codecs import open
from setuptools import setup, find_packages
setup(
name='t77-date',
version='0.5.0',
author='Tomasz Jakub Rup',
author_email='tomasz.rup@gmail.com',
url='https://github.com/tomi77/python-t77-date',
description='A set of functions related with dates',
long_description=open('README.rst').read(),
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Topic :: Software Development',
'Topic :: Software Development :: Libraries',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Utilities',
],
license='MIT',
packages=find_packages(exclude=('tests',)),
install_requires=['six', 'python-dateutil'],
test_suite='tests'
)
| mit | Python |
6a5583df960bf8e2e3f5d7611c50b34140fb475e | use distutils instead of setuptools | snormore/pyreferrer | setup.py | setup.py | from distutils.core import setup
setup(name='pyreferrer',
version='0.2.3',
description='A referrer parser for Python.',
url='http://github.com/snormore/pyreferrer',
author='Steven Normore',
author_email='snormore@gmail.com',
license='MIT',
packages=['pyreferrer'],
package_data={'pyreferrer': ['data/referrers.json', 'search.csv', ]},
include_package_data=True,
zip_safe=False)
| from setuptools import setup
setup(name='pyreferrer',
version='0.2.2',
description='A referrer parser for Python.',
url='http://github.com/snormore/pyreferrer',
author='Steven Normore',
author_email='snormore@gmail.com',
license='MIT',
packages=['pyreferrer'],
package_data={'pyreferrer': ['data/referrers.json', 'search.csv', ]},
include_package_data=True,
zip_safe=False)
| mit | Python |
3f949870592c9b6d41e4c4d0fc9ae779e301705f | Remove python-2.{5,6} from setup.py "classifiers". | marcecj/faust_python | setup.py | setup.py | import os
from setuptools import find_packages, setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name = 'FAUSTPy',
version = '0.1',
url = 'https://github.com/marcecj/faust_python',
download_url = 'https://github.com/marcecj/faust_python',
license = 'MIT',
author = 'Marc Joliet',
author_email = 'marcec@gmx.de',
description = 'FAUSTPy is a Python wrapper for the FAUST DSP language.',
packages = ['FAUSTPy'],
test_suite = "test.tests",
long_description = read('README.md'),
platforms = 'any',
# the ctypes field was added before NumPy 1.0, so any version is OK
# TODO: do I need requires, too (it makes the --requires option work)?
requires = ["cffi", "numpy"],
install_requires = ["cffi", "numpy"],
provides = ["FAUSTPy"],
classifiers=[
'Development Status :: 3 - Alpha',
'License :: OSI Approved :: MIT License',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
'Topic :: Multimedia :: Sound/Audio'
'Topic :: Software Development :: Libraries :: Python Modules',
],
)
| import os
from setuptools import find_packages, setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name = 'FAUSTPy',
version = '0.1',
url = 'https://github.com/marcecj/faust_python',
download_url = 'https://github.com/marcecj/faust_python',
license = 'MIT',
author = 'Marc Joliet',
author_email = 'marcec@gmx.de',
description = 'FAUSTPy is a Python wrapper for the FAUST DSP language.',
packages = ['FAUSTPy'],
test_suite = "test.tests",
long_description = read('README.md'),
platforms = 'any',
# the ctypes field was added before NumPy 1.0, so any version is OK
# TODO: do I need requires, too (it makes the --requires option work)?
requires = ["cffi", "numpy"],
install_requires = ["cffi", "numpy"],
provides = ["FAUSTPy"],
classifiers=[
'Development Status :: 3 - Alpha',
'License :: OSI Approved :: MIT License',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python',
'Programming Language :: Python :: 2.5',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
'Topic :: Multimedia :: Sound/Audio'
'Topic :: Software Development :: Libraries :: Python Modules',
],
)
| mit | Python |
1322f49c0dca9e5f6fdddcec9b5df0c67cbc9661 | Update dependencies required (#28) | FocusedSupport/thedoorman,FocusedSupport/thedoorman | setup.py | setup.py | from setuptools import setup
with open('README.md') as f:
readme = f.read()
with open('LICENSE') as f:
license = f.read()
setup(
name='thedoorman',
version='0.1.1',
description='Remote Doorman',
long_description=readme,
author='Dave Ehrenberger',
author_email='dave.ehrenberger@focusedsupport.com',
url='https://github.com/FocusedSupport/thedoorman',
license=license,
packages=['thedoorman'],
data_files=[('license', ['LICENSE'])],
install_requires=[
'slackbot',
'PyDispatcher',
'mutagen',
'RPi.GPIO',
'picamera',
'Pillow',
'imgurpython',
'netifaces'
]
)
| from setuptools import setup
with open('README.md') as f:
readme = f.read()
with open('LICENSE') as f:
license = f.read()
setup(
name='thedoorman',
version='0.1.1',
description='Remote Doorman',
long_description=readme,
author='Dave Ehrenberger',
author_email='dave.ehrenberger@focusedsupport.com',
url='https://github.com/FocusedSupport/thedoorman',
license=license,
packages=['thedoorman'],
data_files=[('license', ['LICENSE'])],
install_requires=[
'slackbot',
'PyDispatcher',
'RPi.GPIO',
'picamera',
'Pillow',
'imgurpython',
'netifaces'
]
)
| mit | Python |
be2abdf5bc5bfb46555c2ad3033e1a0847c533f0 | Use numpy.distutils in main setup.py, add scons-local to the distribution: scons command can now be executed | cournape/numscons,cournape/numscons,cournape/numscons | setup.py | setup.py | #!/usr/bin/env python
import os
CLASSIFIERS = """\
Development Status :: 4 - Beta
Intended Audience :: Science/Research
Intended Audience :: Developers
License :: OSI Approved
Programming Language :: Python
Topic :: Software Development
Topic :: Scientific/Engineering
Operating System :: Microsoft :: Windows
Operating System :: POSIX
Operating System :: Unix
Operating System :: MacOS
"""
# BEFORE importing distutils, remove MANIFEST. distutils doesn't properly
# update it when the contents of directories change.
if os.path.exists('MANIFEST'): os.remove('MANIFEST')
from numpy.distutils.core import setup
def configuration(parent_package='',top_path=None):
from numpy.distutils.misc_util import Configuration
config = Configuration(None, parent_package, top_path)
config.add_subpackage('numscons')
config.add_data_dir('numscons/scons-local')
return config
setup(name = 'numscons',
version = '0.1',
description = 'Enable to use scons within distutils to build extensions',
classifiers = filter(None, CLASSIFIERS.split('\n')),
author = 'David Cournapeau',
author_email = 'david@ar.media.kyoto-u.ac.jp',
configuration = configuration)
| #!/usr/bin/env python
import os
CLASSIFIERS = """\
Development Status :: 4 - Beta
Intended Audience :: Science/Research
Intended Audience :: Developers
License :: OSI Approved
Programming Language :: Python
Topic :: Software Development
Topic :: Scientific/Engineering
Operating System :: Microsoft :: Windows
Operating System :: POSIX
Operating System :: Unix
Operating System :: MacOS
"""
# BEFORE importing distutils, remove MANIFEST. distutils doesn't properly
# update it when the contents of directories change.
if os.path.exists('MANIFEST'): os.remove('MANIFEST')
from distutils.core import setup
setup(name = 'numscons',
version = '0.1',
description = 'Enable to use scons within distutils to build extensions',
author = 'David Cournapeau',
author_email = 'david@ar.media.kyoto-u.ac.jp',
packages = ['numscons', 'numscons.core'],
)
| bsd-3-clause | Python |
08b21fb4e46c412b207f176a099747feb8ef2d62 | bump version | rdeits/meshcat-python | setup.py | setup.py | import sys
from setuptools import setup, find_packages
setup(name="meshcat",
version="0.0.18",
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.0.18.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=[
"u-msgpack-python >= 2.4.1",
"numpy >= 1.14.0" if sys.version_info >= (3, 0) else "numpy >= 1.14.0, < 1.17",
"tornado >= 4.0.0" if sys.version_info >= (3, 0) else "tornado >= 4.0.0, < 6.0",
"pyzmq >= 17.0.0"
],
zip_safe=False,
include_package_data=True
)
| import sys
from setuptools import setup, find_packages
setup(name="meshcat",
version="0.0.17",
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.0.17.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=[
"u-msgpack-python >= 2.4.1",
"numpy >= 1.14.0" if sys.version_info >= (3, 0) else "numpy >= 1.14.0, < 1.17",
"tornado >= 4.0.0" if sys.version_info >= (3, 0) else "tornado >= 4.0.0, < 6.0",
"pyzmq >= 17.0.0"
],
zip_safe=False,
include_package_data=True
)
| mit | Python |
d220ff2082ed72cc6d5484eab3babeaf8c7bb24a | Change version number to 0.7.9. | cmcqueen/cobs-python,cmcqueen/cobs-python | setup.py | setup.py |
import sys
from distutils.core import setup
from distutils.extension import Extension
if sys.version_info[0] == 2:
cobs_extension_filename = 'src/_cobs_ext2.c'
elif sys.version_info[0] == 3:
cobs_extension_filename = 'src/_cobs_ext3.c'
if sys.version_info[0] == 2:
if sys.version_info[1] >= 6:
cobs_package_dir = 'cobs26'
else:
cobs_package_dir = 'cobs2'
elif sys.version_info[0] == 3:
cobs_package_dir = 'cobs3'
setup(
name='cobs',
version='0.7.9',
description='Consistent Overhead Byte Stuffing (COBS)',
author='Craig McQueen',
author_email='python@craig.mcqueen.id.au',
url='http://bitbucket.org/cmcqueen1975/cobs-python/',
packages=['cobs'],
package_dir={
'cobs' : cobs_package_dir
},
ext_modules=[
Extension('cobs._cobs_ext', [cobs_extension_filename, ]),
],
long_description=open('README.txt').read(),
license="MIT",
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.4',
'Programming Language :: Python :: 2.5',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.1',
'Topic :: Communications',
],
)
|
import sys
from distutils.core import setup
from distutils.extension import Extension
if sys.version_info[0] == 2:
cobs_extension_filename = 'src/_cobs_ext2.c'
elif sys.version_info[0] == 3:
cobs_extension_filename = 'src/_cobs_ext3.c'
if sys.version_info[0] == 2:
if sys.version_info[1] >= 6:
cobs_package_dir = 'cobs26'
else:
cobs_package_dir = 'cobs2'
elif sys.version_info[0] == 3:
cobs_package_dir = 'cobs3'
setup(
name='cobs',
version='0.7.0',
description='Consistent Overhead Byte Stuffing (COBS)',
author='Craig McQueen',
author_email='python@craig.mcqueen.id.au',
url='http://bitbucket.org/cmcqueen1975/cobs-python/',
packages=['cobs'],
package_dir={
'cobs' : cobs_package_dir
},
ext_modules=[
Extension('cobs._cobs_ext', [cobs_extension_filename, ]),
],
long_description=open('README.txt').read(),
license="MIT",
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.4',
'Programming Language :: Python :: 2.5',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.1',
'Topic :: Communications',
],
)
| mit | Python |
7cd8091209cc38eb19493cd819fa8eb5048cf934 | Add exams packages, update requirements | arkon/uoft-scrapers,kshvmdn/uoft-scrapers,cobalt-uoft/uoft-scrapers,g3wanghc/uoft-scrapers | setup.py | setup.py | from distutils.core import setup
from codecs import open
setup(
name = 'uoftscrapers',
packages = [
'uoftscrapers',
'uoftscrapers.scrapers.buildings',
'uoftscrapers.scrapers.calendar.utsg',
'uoftscrapers.scrapers.coursefinder',
'uoftscrapers.scrapers.exams.utm',
'uoftscrapers.scrapers.exams.utsc',
'uoftscrapers.scrapers.exams.utsg',
'uoftscrapers.scrapers.food',
'uoftscrapers.scrapers.textbooks',
'uoftscrapers.scrapers.timetable.utm',
'uoftscrapers.scrapers.timetable.utsc',
'uoftscrapers.scrapers.timetable.utsg',
'uoftscrapers.scrapers.scraper',
'uoftscrapers.scrapers.scraper.layers'
],
version = '0.3.2',
description = 'University of Toronto public web scraping scripts.',
author = 'Qasim Iqbal',
author_email = 'me@qas.im',
url = 'https://github.com/cobalt-io/uoft-scrapers',
download_url = 'https://github.com/cobalt-io/uoft-scrapers/tarball/0.3.2',
package_data={'': ['LICENSE.md']},
package_dir={'uoftscrapers': 'uoftscrapers'},
include_package_data=True,
keywords = ['uoft', 'scraper', 'toronto', 'university of toronto', 'cobalt'],
install_requires = ['requests>=2.6.2', 'beautifulsoup4>=4.3.2', 'pytidylib>=0.2.4', 'lxml>=3.6.0', 'pytz>=2016.3'],
classifiers = [],
)
| from distutils.core import setup
from codecs import open
setup(
name = 'uoftscrapers',
packages = [
'uoftscrapers',
'uoftscrapers.scrapers.buildings',
'uoftscrapers.scrapers.calendar.utsg',
'uoftscrapers.scrapers.coursefinder',
'uoftscrapers.scrapers.food',
'uoftscrapers.scrapers.textbooks',
'uoftscrapers.scrapers.timetable.utm',
'uoftscrapers.scrapers.timetable.utsc',
'uoftscrapers.scrapers.timetable.utsg',
'uoftscrapers.scrapers.scraper',
'uoftscrapers.scrapers.scraper.layers'
],
version = '0.3.2',
description = 'University of Toronto public web scraping scripts.',
author = 'Qasim Iqbal',
author_email = 'me@qas.im',
url = 'https://github.com/cobalt-io/uoft-scrapers',
download_url = 'https://github.com/cobalt-io/uoft-scrapers/tarball/0.3.2',
package_data={'': ['LICENSE.md']},
package_dir={'uoftscrapers': 'uoftscrapers'},
include_package_data=True,
keywords = ['uoft', 'scraper', 'toronto', 'university of toronto', 'cobalt'],
install_requires = ['requests>=2.6.2', 'beautifulsoup4>=4.3.2', 'pytidylib>=0.2.4', 'lxml>=3.6.0'],
classifiers = [],
)
| mit | Python |
3b189021a0085bfa1023298a75e9fb472a8641f6 | add maestro version to be at least 0.8.8 as hard requirement | Signiant/umpire | setup.py | setup.py | from setuptools import setup, find_packages
from distutils.core import setup
from os import path
# this_directory = path.abspath(path.dirname(__file__))
# with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f:
# long_description = f.read()
setup(name='Umpire',
version='0.6.4',
description='Generic dependency resolver.',
long_description='',
long_description_content_type='text/markdown',
author='Matthew Corner',
author_email='mcorner@signiant.com',
url='https://www.signiant.com',
packages=find_packages(),
license='MIT',
install_requires=['MaestroOps>=0.8.8,<0.9'],
entry_points = {
'console_scripts': [
'umpire = umpire.umpire:entry'
]
}
)
| from setuptools import setup, find_packages
from distutils.core import setup
from os import path
# this_directory = path.abspath(path.dirname(__file__))
# with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f:
# long_description = f.read()
setup(name='Umpire',
version='0.6.3',
description='Generic dependency resolver.',
long_description='',
long_description_content_type='text/markdown',
author='Matthew Corner',
author_email='mcorner@signiant.com',
url='https://www.signiant.com',
packages=find_packages(),
license='MIT',
install_requires=['MaestroOps>=0.8.6,<0.9'],
entry_points = {
'console_scripts': [
'umpire = umpire.umpire:entry'
]
}
)
| mit | Python |
06b0034c36bd8c3471dc120de422bea367280991 | Include newly minted `Dash` framework | plotly/dash,plotly/dash,plotly/dash,plotly/dash,plotly/dash | setup.py | setup.py | import io
from setuptools import setup, find_packages
main_ns = {}
exec(open("dash/version.py").read(), main_ns) # pylint: disable=exec-used
def read_req_file(req_type):
with open("requires-{}.txt".format(req_type)) as fp:
requires = (line.strip() for line in fp)
return [req for req in requires if req and not req.startswith("#")]
setup(
name="dash",
version=main_ns["__version__"],
author="Chris Parmer",
author_email="chris@plot.ly",
packages=find_packages(exclude=["tests*"]),
include_package_data=True,
license="MIT",
description=(
"A Python framework for building reactive web-apps. "
"Developed by Plotly."
),
long_description=io.open("README.md", encoding="utf-8").read(),
long_description_content_type="text/markdown",
install_requires=read_req_file("install"),
extras_require={
"dev": read_req_file("dev"),
"testing": read_req_file("testing"),
},
entry_points={
"console_scripts": [
"dash-generate-components = "
"dash.development.component_generator:cli",
"renderer = dash.development.build_process:renderer",
],
"pytest11": ["dash = dash.testing.plugin"],
},
url="https://plot.ly/dash",
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Framework :: Dash",
"Framework :: Flask",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: Financial and Insurance Industry",
"Intended Audience :: Healthcare Industry",
"Intended Audience :: Manufacturing",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Topic :: Database :: Front-Ends",
"Topic :: Office/Business :: Financial :: Spreadsheet",
"Topic :: Scientific/Engineering :: Visualization",
"Topic :: Software Development :: Libraries :: Application Frameworks",
"Topic :: Software Development :: Widget Sets",
],
)
| import io
from setuptools import setup, find_packages
main_ns = {}
exec(open("dash/version.py").read(), main_ns) # pylint: disable=exec-used
def read_req_file(req_type):
with open("requires-{}.txt".format(req_type)) as fp:
requires = (line.strip() for line in fp)
return [req for req in requires if req and not req.startswith("#")]
setup(
name="dash",
version=main_ns["__version__"],
author="Chris Parmer",
author_email="chris@plot.ly",
packages=find_packages(exclude=["tests*"]),
include_package_data=True,
license="MIT",
description=(
"A Python framework for building reactive web-apps. "
"Developed by Plotly."
),
long_description=io.open("README.md", encoding="utf-8").read(),
long_description_content_type="text/markdown",
install_requires=read_req_file("install"),
extras_require={
"dev": read_req_file("dev"),
"testing": read_req_file("testing"),
},
entry_points={
"console_scripts": [
"dash-generate-components = "
"dash.development.component_generator:cli",
"renderer = dash.development.build_process:renderer",
],
"pytest11": ["dash = dash.testing.plugin"],
},
url="https://plot.ly/dash",
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Framework :: Flask",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: Financial and Insurance Industry",
"Intended Audience :: Healthcare Industry",
"Intended Audience :: Manufacturing",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Topic :: Database :: Front-Ends",
"Topic :: Office/Business :: Financial :: Spreadsheet",
"Topic :: Scientific/Engineering :: Visualization",
"Topic :: Software Development :: Libraries :: Application Frameworks",
"Topic :: Software Development :: Widget Sets",
],
)
| mit | Python |
2b02ff77dff6b9fbd8365c09a193d86e792e7215 | Improve setup.py | ijks/textinator | setup.py | setup.py | from setuptools import setup
setup(
name='textinator',
description='A command line image viewer',
version='0.1.0',
author='Daan Rijks',
autor_email='daanrijks@gmail.com',
license='MIT',
py_modules=['convertinator'],
install_requires=[
'click>=3.3, <4',
'Pillow>=2.6.1, <3',
'ansi>=0.1.2, <1'
],
entry_points='''
[console_scripts]
textinate=textinator:convert
'''
)
| from setuptools import setup
setup(
name='textinator',
version='0.1.0',
py_modules=['convertinator'],
install_requires=[
'Click',
'Pillow',
'ansi'
],
entry_points='''
[console_scripts]
textinate=textinator:convert
'''
)
| mit | Python |
097a4dc3c20c6795ed0607e40d57d0315037b556 | Fix setup.py to not fail if default encoding is not set to UTF-8 (#168) | rm-hull/ssd1306 | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
from io import open
from setuptools import setup
def read_file(fname, encoding='utf-8'):
with open(os.path.join(os.path.dirname(__file__), fname), encoding=encoding) as r:
return r.read()
README = read_file("README.rst")
CONTRIB = read_file("CONTRIBUTING.rst")
CHANGES = read_file("CHANGES.rst")
version = read_file("VERSION.txt").strip()
needs_pytest = {'pytest', 'test', 'ptr'}.intersection(sys.argv)
pytest_runner = ['pytest-runner'] if needs_pytest else []
test_deps = [
'mock;python_version<"3.3"',
"pytest>=3.1",
"pytest-cov"
]
setup(
name="luma.oled",
version=version,
author="Richard Hull",
author_email="richard.hull@destructuring-bind.org",
description=("A small library to drive an OLED device with either "
"SSD1306, SSD1322, SSD1325, SSD1331 or SH1106 chipset"),
long_description="\n\n".join([README, CONTRIB, CHANGES]),
license="MIT",
keywords=("raspberry pi rpi oled display screen "
"rgb monochrome greyscale color "
"ssd1306 ssd1322 ssd1325 ssd1331 sh1106 "
"spi i2c 256x64 128x64 128x32 96x16"),
url="https://github.com/rm-hull/luma.oled",
download_url="https://github.com/rm-hull/luma.oled/tarball/" + version,
namespace_packages=["luma"],
packages=["luma.oled"],
zip_safe=False,
install_requires=["luma.core>=1.0.0"],
setup_requires=pytest_runner,
tests_require=test_deps,
extras_require={
'docs': [
'sphinx >= 1.5.1'
],
'qa': [
'rstcheck',
'flake8'
],
'test': test_deps
},
classifiers=[
"License :: OSI Approved :: MIT License",
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Education",
"Intended Audience :: Developers",
"Topic :: Education",
"Topic :: System :: Hardware",
"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"
]
)
| #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
from setuptools import setup
def read_file(fname):
with open(os.path.join(os.path.dirname(__file__), fname)) as r:
return r.read()
README = read_file("README.rst")
CONTRIB = read_file("CONTRIBUTING.rst")
CHANGES = read_file("CHANGES.rst")
version = read_file("VERSION.txt").strip()
needs_pytest = {'pytest', 'test', 'ptr'}.intersection(sys.argv)
pytest_runner = ['pytest-runner'] if needs_pytest else []
test_deps = [
'mock;python_version<"3.3"',
"pytest>=3.1",
"pytest-cov"
]
setup(
name="luma.oled",
version=version,
author="Richard Hull",
author_email="richard.hull@destructuring-bind.org",
description=("A small library to drive an OLED device with either "
"SSD1306, SSD1322, SSD1325, SSD1331 or SH1106 chipset"),
long_description="\n\n".join([README, CONTRIB, CHANGES]),
license="MIT",
keywords=("raspberry pi rpi oled display screen "
"rgb monochrome greyscale color "
"ssd1306 ssd1322 ssd1325 ssd1331 sh1106 "
"spi i2c 256x64 128x64 128x32 96x16"),
url="https://github.com/rm-hull/luma.oled",
download_url="https://github.com/rm-hull/luma.oled/tarball/" + version,
namespace_packages=["luma"],
packages=["luma.oled"],
zip_safe=False,
install_requires=["luma.core>=1.0.0"],
setup_requires=pytest_runner,
tests_require=test_deps,
extras_require={
'docs': [
'sphinx >= 1.5.1'
],
'qa': [
'rstcheck',
'flake8'
],
'test': test_deps
},
classifiers=[
"License :: OSI Approved :: MIT License",
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Education",
"Intended Audience :: Developers",
"Topic :: Education",
"Topic :: System :: Hardware",
"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"
]
)
| mit | Python |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.