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 |
|---|---|---|---|---|---|---|---|---|
fc533810fc82fa30772d3d278751c70722a2d936 | Update Homework_Week3_CaseStudy1.py | LamaHamadeh/Harvard-PH526x | Week3-Case-Studies-Part1/DNA-Translation/Homework_Week3_CaseStudy1.py | Week3-Case-Studies-Part1/DNA-Translation/Homework_Week3_CaseStudy1.py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Feb 23 21:46:13 2017
@author: lamahamadeh
"""
#A cipher is a secret code for a language. In this case study, we will explore
#a cipher that is reported by contemporary Greek historians to have been used
#by Julius Caesar to send secret messages to generals during times of war.
#The Caesar cipher shifts each letter of this message to another letter in the
#alphabet, which is a fixed number of letters away from the original.
#If our encryption key were 1, we would shift h to the next letter i,
#i to the next letter j, and so on. If we reach the end of the alphabet,
#which for us is the space character, we simply loop back to a.
#To decode the message, we make a similar shift, except we move the same
#number of steps backwards in the alphabet.
#----------------------------------------------------------------------------------------------------------------
# Exercise 1
#-----------
#TODO: Create a dictionary letters with keys consisting of the numbers from 0
#to 26, and values consisting of the lowercase letters of the English alphabet,
# including the space ' ' at the end.
# Let's look at the lowercase letters.
import string
string.ascii_lowercase
# We will consider the alphabet to be these letters, along with a space.
alphabet = string.ascii_lowercase + " "
# create `letters` here!
letters = {0:'a', 1:'b', 2:'c', 3:'d', 4:'e', 5:'f', 6:'g', 7:'h', 8:'i'
, 9:'j', 10:'k', 11:'l', 12:'m', 13:'n', 14:'o', 15:'p', 16:'q'
, 17:'r', 18:'s', 19:'t', 20:'u', 21:'v', 22:'w', 23:'x', 24:'y'
, 25:'z', 26:' '}
#Another way is:
letters = {i:alphabet[i] for i in range(0,27)}
print(letters)
#------------------------------------------------------------------------------
# Exercise 2
#-----------
#alphabet and letters are already defined. Create a dictionary encoding with
#keys being the characters in alphabet and values being numbers from 0-26,
#shifted by an integer encryption_key=3. For example, the key a should have
#value encryption_key, key b should have value encryption_key + 1, and so on.
#If any result of this addition is less than 0 or greater than 26, you can
#ensure the result remains within 0-26 using result % 27.
encryption_key = 3
# define `encoding` here!
encoding = {alphabet[i]:((i + encryption_key) % 27) for i in range(27)}
#OR
#alphabet_len = len(alphabet)
#encoding = {alphabet[i]:((i + encryption_key) % alphabet_len) for i in range(alphabet_len)}
print(encoding)
#------------------------------------------------------------------------------
# Exercise 3
#-----------
#alphabet and letters are preloaded from the previous exercise. Write a function
#caesar(message, encryption_key) to encode a message with the Caesar cipher.
#Use your code from Exercise 2 to find the value of encoding for each letter in message.
#Use these values as keys in the dictionary letters to determine the encoded
#letter for each letter in message.
#Your function should return a string consisting of these encoded letters.
#Use caesar to encode message using encryption_key = 3, and save the result as encoded_message.
#Print encoded_message.
#------------------------------------------------------------------------------
# Exercise 4
#-----------
| #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Feb 23 21:46:13 2017
@author: lamahamadeh
"""
#A cipher is a secret code for a language. In this case study, we will explore
#a cipher that is reported by contemporary Greek historians to have been used
#by Julius Caesar to send secret messages to generals during times of war.
#The Caesar cipher shifts each letter of this message to another letter in the
#alphabet, which is a fixed number of letters away from the original.
#If our encryption key were 1, we would shift h to the next letter i,
#i to the next letter j, and so on. If we reach the end of the alphabet,
#which for us is the space character, we simply loop back to a.
#To decode the message, we make a similar shift, except we move the same
#number of steps backwards in the alphabet.
#----------------------------------------------------------------------------------------------------------------
# Exercise 1
#-----------
#TODO: Create a dictionary letters with keys consisting of the numbers from 0
#to 26, and values consisting of the lowercase letters of the English alphabet,
# including the space ' ' at the end.
# Let's look at the lowercase letters.
import string
string.ascii_lowercase
# We will consider the alphabet to be these letters, along with a space.
alphabet = string.ascii_lowercase + " "
# create `letters` here!
letters = {0:'a', 1:'b', 2:'c', 3:'d', 4:'e', 5:'f', 6:'g', 7:'h', 8:'i'
, 9:'j', 10:'k', 11:'l', 12:'m', 13:'n', 14:'o', 15:'p', 16:'q'
, 17:'r', 18:'s', 19:'t', 20:'u', 21:'v', 22:'w', 23:'x', 24:'y'
, 25:'z', 26:' '}
#Another way is:
letters = {i:alphabet[i] for i in range(0,27)}
print(letters)
#------------------------------------------------------------------------------
# Exercise 2
#-----------
#alphabet and letters are already defined. Create a dictionary encoding with
#keys being the characters in alphabet and values being numbers from 0-26,
#shifted by an integer encryption_key=3. For example, the key a should have
#value encryption_key, key b should have value encryption_key + 1, and so on.
#If any result of this addition is less than 0 or greater than 26, you can
#ensure the result remains within 0-26 using result % 27.
encryption_key = 3
# define `encoding` here!
encoding = {alphabet[i]:((i + encryption_key) % 27) for i in range(27)}
#OR
#alphabet_len = len(alphabet)
#encoding = {alphabet[i]:((i + encryption_key) % alphabet_len) for i in range(alphabet_len)}
print(encoding)
#------------------------------------------------------------------------------
# Exercise 3
#-----------
| mit | Python |
33f6ea7a6f0a977f271136c9eb26cbfa68de8689 | Update setup.py | LocusEnergy/sqlalchemy-vertica-python | setup.py | setup.py | from setuptools import setup
version = '0.4.2'
setup(
name='sqlalchemy-vertica-python',
version=version,
description='Vertica dialect for sqlalchemy using vertica_python',
long_description=open("README.rst").read(),
license="MIT",
url='https://github.com/LocusEnergy/sqlalchemy-vertica-python',
download_url = 'https://github.com/LocusEnergy/sqlalchemy-vertica-python/tarball/{}'.format(version),
author='Locus Energy',
author_email='dbio@locusenergy.com',
packages=[
'sqla_vertica_python',
],
entry_points="""
[sqlalchemy.dialects]
vertica.vertica_python = sqla_vertica_python.vertica_python:VerticaDialect
""",
install_requires=[
'vertica_python'
],
)
| from setuptools import setup
version = '0.4.1'
setup(
name='sqlalchemy-vertica-python',
version=version,
description='Vertica dialect for sqlalchemy using vertica_python',
long_description=open("README.rst").read(),
license="MIT",
url='https://github.com/LocusEnergy/sqlalchemy-vertica-python',
download_url = 'https://github.com/LocusEnergy/sqlalchemy-vertica-python/tarball/{}'.format(version),
author='Locus Energy',
author_email='dbio@locusenergy.com',
packages=[
'sqla_vertica_python',
],
entry_points="""
[sqlalchemy.dialects]
vertica.vertica_python = sqla_vertica_python.vertica_python:VerticaDialect
""",
install_requires=[
'vertica_python'
],
)
| mit | Python |
46fe99c3044f788c84d45d2c70c0483be38f80b6 | update version in setup.py | rdeits/meshcat-python | setup.py | setup.py | import sys
from setuptools import setup, find_packages
setup(name="meshcat",
version="0.2.0",
description="WebGL-based visualizer for 3D geometries and scenes",
url="https://github.com/rdeits/meshcat-python",
download_url="https://github.com/rdeits/meshcat-python/archive/v0.2.0.tar.gz",
author="Robin Deits",
author_email="mail@robindeits.com",
license="MIT",
packages=find_packages("src"),
package_dir={"": "src"},
test_suite="meshcat",
entry_points={
"console_scripts": [
"meshcat-server=meshcat.servers.zmqserver:main"
]
},
install_requires=[
"ipython >= 5",
"u-msgpack-python >= 2.4.1",
"numpy >= 1.14.0",
"tornado >= 4.0.0",
"pyzmq >= 17.0.0",
"pyngrok >= 4.1.6",
"pillow >= 7.0.0"
],
zip_safe=False,
include_package_data=True
)
| import sys
from setuptools import setup, find_packages
setup(name="meshcat",
version="0.1.1",
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.1.1.tar.gz",
author="Robin Deits",
author_email="mail@robindeits.com",
license="MIT",
packages=find_packages("src"),
package_dir={"": "src"},
test_suite="meshcat",
entry_points={
"console_scripts": [
"meshcat-server=meshcat.servers.zmqserver:main"
]
},
install_requires=[
"ipython >= 5",
"u-msgpack-python >= 2.4.1",
"numpy >= 1.14.0",
"tornado >= 4.0.0",
"pyzmq >= 17.0.0",
"pyngrok >= 4.1.6",
"pillow >= 7.0.0"
],
zip_safe=False,
include_package_data=True
)
| mit | Python |
a69a449ed6c82ce827df1ec08431e49db2afebbe | Add more information to setup.py | willdeberry/bjarkan,willdeberry/pybtCLI | setup.py | setup.py | #!/usr/bin/python3
from setuptools import setup, find_packages
setup( name = 'bjarkan',
version = '1.0.1',
description = 'Bluetooth command line utility',
long_description = open( 'README.rst' ).read(),
keywords = 'bluez bluetooth cli',
author = 'GetWellNetwork',
author_email = 'willdeberry@gmail.com',
maintainer = 'Will DeBerry',
maintainer_email = 'willdeberry@gmail.com',
license = 'Copyright 2016 GetWellNetwork, Inc., BSD copyright and disclaimer apply',
url = 'https://github.com/willdeberry/bjarkan',
download_url = 'https://github.com/willdeberry/bjarkan',
packages = find_packages( exclude = ['contrib', 'docs', 'tests'] ),
install_requires = [
'pygobject>=3.18.2'
],
entry_points = {
'console_scripts': [
'bjarkan = bjarkan.bjarkan:main'
],
},
classifiers = [
'Programming Language :: Python',
'License :: OSI Approved :: BSD License',
'Operating System :: POSIX',
'Environment :: Console',
'Intended Audience :: End Users/Desktop',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators'
]
)
| #!/usr/bin/python3
from setuptools import setup, find_packages
setup( name = 'bjarkan',
version = '1.0.1',
description = 'Bluetooth command line utility',
long_description = open( 'README.rst' ).read(),
author = 'GetWellNetwork',
author_email = 'willdeberry@gmail.com',
license = 'BSD',
url = 'https://github.com/willdeberry/bjarkan',
packages = find_packages( exclude = ['contrib', 'docs', 'tests'] ),
install_requires = [
'pygobject>=3.18.2'
],
entry_points = {
'console_scripts': [
'bjarkan = bjarkan.bjarkan:main'
],
}
)
| bsd-3-clause | Python |
ca4b547aa921081474e0fb1b8e3f37be46e94bbf | add responses as pypi dep | lsst-sqre/sqre-codekit,lsst-sqre/sqre-codekit | setup.py | setup.py | #!/usr/bin/env python3
"""Setup Tools Script"""
import os
import codecs
from setuptools import setup, find_packages
PACKAGENAME = 'sqre-codekit'
DESCRIPTION = 'LSST Data Management SQuaRE code management tools'
AUTHOR = 'Frossie Economou'
AUTHOR_EMAIL = 'frossie@lsst.org'
URL = 'https://github.com/lsst-sqre/sqre-codekit'
LICENSE = 'MIT'
def read(filename):
"""Convenience function for includes"""
full_filename = os.path.join(
os.path.abspath(os.path.dirname(__file__)),
filename)
return codecs.open(full_filename, 'r', 'utf-8').read()
long_description = read('README.md') # pylint:disable=invalid-name
setup(
name=PACKAGENAME,
description=DESCRIPTION,
long_description=long_description,
url=URL,
author=AUTHOR,
author_email=AUTHOR_EMAIL,
license=LICENSE,
classifiers=[
'Development Status :: 4 - Beta',
'Programming Language :: Python :: 3.6',
'License :: OSI Approved :: MIT License',
],
keywords='lsst',
use_scm_version=True,
packages=find_packages(exclude=['docs', 'tests*']),
install_requires=[
'MapGitConfig==1.1',
'progressbar2==3.37.1',
'public==1.0',
'pygithub==1.40a3',
'requests>=2.8.1,<3.0.0',
],
setup_requires=[
'pytest-runner>=2.11.1,<3',
'setuptools_scm',
],
tests_require=[
'pytest>=3,<4',
'pytest-flake8>=0.8.1,<1',
'responses>=0.9.0,<1',
],
# package_data={},
entry_points={
'console_scripts': [
'github-auth = codekit.cli.github_auth:main',
'github-decimate-org = codekit.cli.github_decimate_org:main',
'github-fork-org = codekit.cli.github_fork_org:main',
'github-get-ratelimit= codekit.cli.github_get_ratelimit:main',
'github-list-repos = codekit.cli.github_list_repos:main',
'github-mv-repos-to-team = codekit.cli.github_mv_repos_to_team:main', # NOQA
'github-tag-release = codekit.cli.github_tag_release:main',
'github-tag-teams = codekit.cli.github_tag_teams:main',
]
}
)
| #!/usr/bin/env python3
"""Setup Tools Script"""
import os
import codecs
from setuptools import setup, find_packages
PACKAGENAME = 'sqre-codekit'
DESCRIPTION = 'LSST Data Management SQuaRE code management tools'
AUTHOR = 'Frossie Economou'
AUTHOR_EMAIL = 'frossie@lsst.org'
URL = 'https://github.com/lsst-sqre/sqre-codekit'
LICENSE = 'MIT'
def read(filename):
"""Convenience function for includes"""
full_filename = os.path.join(
os.path.abspath(os.path.dirname(__file__)),
filename)
return codecs.open(full_filename, 'r', 'utf-8').read()
long_description = read('README.md') # pylint:disable=invalid-name
setup(
name=PACKAGENAME,
description=DESCRIPTION,
long_description=long_description,
url=URL,
author=AUTHOR,
author_email=AUTHOR_EMAIL,
license=LICENSE,
classifiers=[
'Development Status :: 4 - Beta',
'Programming Language :: Python :: 3.6',
'License :: OSI Approved :: MIT License',
],
keywords='lsst',
use_scm_version=True,
packages=find_packages(exclude=['docs', 'tests*']),
install_requires=[
'MapGitConfig==1.1',
'progressbar2==3.37.1',
'public==1.0',
'pygithub==1.40a3',
'requests>=2.8.1,<3.0.0',
],
setup_requires=[
'pytest-runner>=2.11.1,<3',
'setuptools_scm',
],
tests_require=[
'pytest>=3,<4',
'pytest-flake8>=0.8.1,<1',
],
# package_data={},
entry_points={
'console_scripts': [
'github-auth = codekit.cli.github_auth:main',
'github-decimate-org = codekit.cli.github_decimate_org:main',
'github-fork-org = codekit.cli.github_fork_org:main',
'github-get-ratelimit= codekit.cli.github_get_ratelimit:main',
'github-list-repos = codekit.cli.github_list_repos:main',
'github-mv-repos-to-team = codekit.cli.github_mv_repos_to_team:main', # NOQA
'github-tag-release = codekit.cli.github_tag_release:main',
'github-tag-teams = codekit.cli.github_tag_teams:main',
]
}
)
| mit | Python |
e34ce0033e1ffc3f6a81d37260056166ac5f582d | Exclude filter and xrange fixers. | Jarn/jarn.mkrelease | setup.py | setup.py | from setuptools import setup, find_packages
version = '3.7'
setup(name='jarn.mkrelease',
version=version,
description='Python egg releaser',
long_description=open('README.txt').read() + '\n' +
open('CHANGES.txt').read(),
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: MacOS :: MacOS X',
'Operating System :: POSIX',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
],
keywords='create release python egg eggs',
author='Stefan H. Holek',
author_email='stefan@epy.co.at',
url='http://pypi.python.org/pypi/jarn.mkrelease',
license='BSD',
packages=find_packages(),
namespace_packages=['jarn'],
include_package_data=True,
zip_safe=False,
test_suite='jarn.mkrelease.tests',
install_requires=[
'setuptools',
'setuptools-subversion',
'setuptools-hg',
'setuptools-git',
'lazy',
],
entry_points={
'console_scripts': 'mkrelease=jarn.mkrelease.mkrelease:main',
},
use_2to3=True,
use_2to3_exclude_fixers=[
'lib2to3.fixes.fix_filter',
'lib2to3.fixes.fix_xrange',
],
)
| from setuptools import setup, find_packages
version = '3.7'
setup(name='jarn.mkrelease',
version=version,
description='Python egg releaser',
long_description=open('README.txt').read() + '\n' +
open('CHANGES.txt').read(),
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: MacOS :: MacOS X',
'Operating System :: POSIX',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
],
keywords='create release python egg eggs',
author='Stefan H. Holek',
author_email='stefan@epy.co.at',
url='http://pypi.python.org/pypi/jarn.mkrelease',
license='BSD',
packages=find_packages(),
namespace_packages=['jarn'],
include_package_data=True,
zip_safe=False,
use_2to3=True,
test_suite='jarn.mkrelease.tests',
install_requires=[
'setuptools',
'setuptools-subversion',
'setuptools-hg',
'setuptools-git',
'lazy',
],
entry_points={
'console_scripts': 'mkrelease=jarn.mkrelease.mkrelease:main',
},
)
| bsd-2-clause | Python |
2a12ae4428b3a7765e2ee6950b27240fc169e203 | switch to MIT license | pyannote/pyannote-parser | setup.py | setup.py | #!/usr/bin/env python
# encoding: utf-8
# The MIT License (MIT)
# Copyright (c) 2014 CNRS (Hervé BREDIN - http://herve.niderb.fr)
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
import versioneer
versioneer.versionfile_source = 'pyannote/parser/_version.py'
versioneer.versionfile_build = versioneer.versionfile_source
versioneer.tag_prefix = ''
versioneer.parentdir_prefix = 'pyannote-parser-'
from setuptools import setup, find_packages
setup(
# package
namespace_packages = ['pyannote'],
packages=find_packages(),
install_requires=[
'pyannote.core >= 0.0.2',
],
# versioneer
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
# PyPI
name='pyannote.parser',
description=('PyAnnote parsers'),
author='Hervé Bredin',
author_email='bredin@limsi.fr',
url='http://herve.niderb.fr/',
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Programming Language :: Python :: 2.7",
"Topic :: Scientific/Engineering"
],
)
| #!/usr/bin/env python
# encoding: utf-8
# The MIT License (MIT)
# Copyright (c) 2014 CNRS (Hervé BREDIN - http://herve.niderb.fr)
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
import versioneer
versioneer.versionfile_source = 'pyannote/parser/_version.py'
versioneer.versionfile_build = versioneer.versionfile_source
versioneer.tag_prefix = ''
versioneer.parentdir_prefix = 'pyannote-parser-'
from setuptools import setup, find_packages
setup(
# package
namespace_packages = ['pyannote'],
packages=find_packages(),
install_requires=[
'pyannote.core >= 0.0.2',
],
# versioneer
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
# PyPI
name='pyannote.parser',
description=('PyAnnote parsers'),
author='Hervé Bredin',
author_email='bredin@limsi.fr',
url='http://herve.niderb.fr/',
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Natural Language :: English",
"Programming Language :: Python :: 2.7",
"Topic :: Scientific/Engineering"
],
)
| mit | Python |
90aa47db6c02b5531556d472e3034a77d1e24472 | move django-stronghold to options in setup.py | vicalloy/django-lb-workflow,vicalloy/django-lb-workflow,vicalloy/django-lb-workflow | setup.py | setup.py | from setuptools import find_packages, setup
from lbworkflow import __version__
setup(
name='django-lb-workflow',
version=__version__,
url='https://github.com/vicalloy/django-lb-workflow',
author='vicalloy',
author_email='vicalloy@gmail.com',
description="Reusable workflow library for Django",
license='BSD',
packages=find_packages(exclude=['tests']),
include_package_data=True,
install_requires=[
'django>=1.10',
'jsonfield>=1.0.1',
'pygraphviz>=1.3',
'xlsxwriter>=0.9.6',
'jinja2>=2.9.6',
'django-lbutils>=1.0.3',
'django-lbattachment>=1.0.2',
],
tests_require=[
'coverage',
'flake8>=2.0,<3.0',
'isort',
],
extras_require={
'options': [
'django-compressor>=2.1.1',
'django-bower>=5.2.0',
'django-crispy-forms>=1.6',
'django-lb-adminlte>=0.9.4',
'django-el-pagination>=3.0.1',
'django-impersonate',
'django-stronghold',
],
},
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Topic :: Software Development :: Libraries :: Python Modules',
],
)
| from setuptools import find_packages, setup
from lbworkflow import __version__
setup(
name='django-lb-workflow',
version=__version__,
url='https://github.com/vicalloy/django-lb-workflow',
author='vicalloy',
author_email='vicalloy@gmail.com',
description="Reusable workflow library for Django",
license='BSD',
packages=find_packages(exclude=['tests']),
include_package_data=True,
install_requires=[
'django>=1.10',
'jsonfield>=1.0.1',
'pygraphviz>=1.3',
'xlsxwriter>=0.9.6',
'jinja2>=2.9.6',
'django-lbutils>=1.0.3',
'django-lbattachment>=1.0.2',
'django-stronghold',
],
tests_require=[
'coverage',
'flake8>=2.0,<3.0',
'isort',
],
extras_require={
'options': [
'django-compressor>=2.1.1',
'django-bower>=5.2.0',
'django-crispy-forms>=1.6',
'django-lb-adminlte>=0.9.4',
'django-el-pagination>=3.0.1',
'django-impersonate',
],
},
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Topic :: Software Development :: Libraries :: Python Modules',
],
)
| mit | Python |
297e6bacc034fdfe7aef3f28adab69827eb6a7ce | Upgrade version | openfisca/openfisca-france-data,openfisca/openfisca-france-data,openfisca/openfisca-france-data | setup.py | setup.py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# OpenFisca -- A versatile microsimulation software
# By: OpenFisca Team <contact@openfisca.fr>
#
# Copyright (C) 2011, 2012, 2013, 2014, 2015 OpenFisca Team
# https://github.com/openfisca
#
# This file is part of OpenFisca.
#
# OpenFisca is free software; you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# OpenFisca is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
"""OpenFisca -- a versatile microsimulation free software
OpenFisca includes a framework to simulate any tax and social system.
"""
from setuptools import setup, find_packages
classifiers = """\
Development Status :: 2 - Pre-Alpha
License :: OSI Approved :: GNU Affero General Public License v3
Operating System :: POSIX
Programming Language :: Python
Topic :: Scientific/Engineering :: Information Analysis
"""
doc_lines = __doc__.split('\n')
setup(
name = 'OpenFisca-France-Data',
version = '0.5.9',
author = 'OpenFisca Team',
author_email = 'contact@openfisca.fr',
classifiers = [classifier for classifier in classifiers.split('\n') if classifier],
description = doc_lines[0],
keywords = 'benefit microsimulation social tax',
license = 'http://www.fsf.org/licensing/licenses/agpl-3.0.html',
long_description = '\n'.join(doc_lines[2:]),
url = 'https://github.com/openfisca/openfisca-france-data',
data_files = [
# ('share/locale/fr/LC_MESSAGES', ['openfisca_france_data/i18n/fr/LC_MESSAGES/openfisca-france-data.mo']),
],
include_package_data = True,
install_requires = [
'OpenFisca-France >= 19.0.0, < 20.0',
'OpenFisca-Survey-Manager[calmar] >= 0.9.1',
'pandas >= 0.20.3',
'tables', # Needed by pandas.HDFStore
'wquantiles >= 0.3' # To compute weighted quantiles
],
message_extractors = {
'openfisca_france_data': [
('**.py', 'python', None),
],
},
packages = find_packages(),
zip_safe = False,
)
| #! /usr/bin/env python
# -*- coding: utf-8 -*-
# OpenFisca -- A versatile microsimulation software
# By: OpenFisca Team <contact@openfisca.fr>
#
# Copyright (C) 2011, 2012, 2013, 2014, 2015 OpenFisca Team
# https://github.com/openfisca
#
# This file is part of OpenFisca.
#
# OpenFisca is free software; you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# OpenFisca is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
"""OpenFisca -- a versatile microsimulation free software
OpenFisca includes a framework to simulate any tax and social system.
"""
from setuptools import setup, find_packages
classifiers = """\
Development Status :: 2 - Pre-Alpha
License :: OSI Approved :: GNU Affero General Public License v3
Operating System :: POSIX
Programming Language :: Python
Topic :: Scientific/Engineering :: Information Analysis
"""
doc_lines = __doc__.split('\n')
setup(
name = 'OpenFisca-France-Data',
version = '0.5.8',
author = 'OpenFisca Team',
author_email = 'contact@openfisca.fr',
classifiers = [classifier for classifier in classifiers.split('\n') if classifier],
description = doc_lines[0],
keywords = 'benefit microsimulation social tax',
license = 'http://www.fsf.org/licensing/licenses/agpl-3.0.html',
long_description = '\n'.join(doc_lines[2:]),
url = 'https://github.com/openfisca/openfisca-france-data',
data_files = [
# ('share/locale/fr/LC_MESSAGES', ['openfisca_france_data/i18n/fr/LC_MESSAGES/openfisca-france-data.mo']),
],
include_package_data = True,
install_requires = [
'OpenFisca-France >= 19.0.0, < 20.0',
'OpenFisca-Survey-Manager[calmar] >= 0.9.1',
'pandas >= 0.20.3',
'tables', # Needed by pandas.HDFStore
'wquantiles >= 0.3' # To compute weighted quantiles
],
message_extractors = {
'openfisca_france_data': [
('**.py', 'python', None),
],
},
packages = find_packages(),
zip_safe = False,
)
| agpl-3.0 | Python |
f2eb45ea24429fd3e4d32a490dbe3f8a2f383d9f | Add postsecondary stats to the StatsBase model | texastribune/scuole,texastribune/scuole,texastribune/scuole,texastribune/scuole | scuole/stats/models/base.py | scuole/stats/models/base.py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
from django.db import models
from django.utils.encoding import python_2_unicode_compatible
from .staff_student import StaffStudentBase
from .postsecondary_readiness import PostSecondaryReadinessBase
@python_2_unicode_compatible
class SchoolYear(models.Model):
name = models.CharField(max_length=9)
def __str__(self):
return self.name
class StatsBase(StaffStudentBase, PostSecondaryReadinessBase):
"""
An abstract model representing stats commonly tracked across all entities
in TEA data. Meant to be the base used by other apps for establishing
their stats models.
Example:
class CampusStats(StatsBase):
...
"""
class Meta:
abstract = True
| # -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
from django.db import models
from django.utils.encoding import python_2_unicode_compatible
from .staff_student import StaffStudentBase
@python_2_unicode_compatible
class SchoolYear(models.Model):
name = models.CharField(max_length=9)
def __str__(self):
return self.name
class StatsBase(StaffStudentBase):
"""
An abstract model representing stats commonly tracked across all entities
in TEA data. Meant to be the base used by other apps for establishing
their stats models.
Example:
class CampusStats(StatsBase):
...
"""
class Meta:
abstract = True
| mit | Python |
4f7ddfeb74d9dd530f1a92627bc06c9978399666 | Enhance package meta data. | bro/brogments | setup.py | setup.py | """
A Pygments lexer for Bro policy scripts.
"""
from setuptools import setup
__author__ = 'Matthias Vallentin'
__email__ = 'vallentin@icir.org'
__copyright__ = 'Copyright 2011, Matthias Vallentin'
__license__ = 'BSD'
__version__ = '0.1'
__maintainer__ = 'Matthias Vallentin'
entry_points = '''[pygments.lexers]
brolexer = bro_lexer.bro:BroLexer
'''
setup(
name = 'brogments',
version = '0.1',
description= __doc__,
author = __author__,
packages = ['bro_lexer'],
entry_points = entry_points
)
| """
A Pygments lexer for Bro policy scripts.
"""
from setuptools import setup
__author__ = 'Matthias Vallentin <vallentin@icir.org>'
entry_points = '''[pygments.lexers]
brolexer = bro_lexer.bro:BroLexer
'''
setup(
name = 'brogments',
version = '0.1',
description= __doc__,
author = __author__,
packages = ['bro_lexer'],
entry_points = entry_points
)
| bsd-3-clause | Python |
f27f35ab3ae2039aca4c4045afb2f211a9af2196 | Bump version to 0.0.2 | rambler-digital-solutions/aioriak | setup.py | setup.py | from setuptools import setup, find_packages
from commands import (docker_build, docker_start, docker_stop, setup_riak,
create_bucket_types, Test)
setup(
name='aioriak',
version='0.0.2',
description='Async implementation of Riak DB python client',
author='Makc Belousov',
author_email='m.belousov@rambler-co.ru',
long_description='',
url='https://github.com/rambler-digital-solutions/aioriak',
keywords='riak asyncio client',
# package_dir={'': ''},
packages=find_packages('', exclude=('*.tests',)),
include_package_data=True,
zip_safe=False,
license='MIT',
install_requires=[
'python3-riak-pb==2.1.0.6',
'riak==2.3.0',
],
tests_require=['nose==1.3.7',
'coverage==4.0.3'],
cmdclass={
'test': Test,
'docker_build': docker_build,
'docker_start': docker_start,
'docker_stop': docker_stop,
'setup_riak': setup_riak,
'create_bucket_types': create_bucket_types,
},
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3 :: Only',
'Topic :: Database',
'Topic :: Software Development :: Libraries :: Python Modules'
],
)
| from setuptools import setup, find_packages
from commands import (docker_build, docker_start, docker_stop, setup_riak,
create_bucket_types, Test)
setup(
name='aioriak',
version='0.0.1',
description='Async implementation of Riak DB python client',
author='Makc Belousov',
author_email='m.belousov@rambler-co.ru',
long_description='',
url='https://github.com/rambler-digital-solutions/aioriak',
keywords='riak asyncio client',
# package_dir={'': ''},
packages=find_packages('', exclude=('*.tests',)),
include_package_data=True,
zip_safe=False,
license='MIT',
install_requires=[
'python3-riak-pb==2.1.0.6',
'riak==2.3.0',
],
tests_require=['nose==1.3.7',
'coverage==4.0.3'],
cmdclass={
'test': Test,
'docker_build': docker_build,
'docker_start': docker_start,
'docker_stop': docker_stop,
'setup_riak': setup_riak,
'create_bucket_types': create_bucket_types,
},
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3 :: Only',
'Topic :: Database',
'Topic :: Software Development :: Libraries :: Python Modules'
],
)
| mit | Python |
52222886f63f295572f6499e224faa25445a60b5 | Upgrade version | hubo1016/vlcp_event_cython | setup.py | setup.py | #!/usr/bin/env python
'''
Created on 2015/11/17
:author: hubo
'''
try:
import ez_setup
ez_setup.use_setuptools()
except:
pass
from setuptools import setup
from distutils.extension import Extension
VERSION = '0.1.1'
import sys
if 'setuptools.extension' in sys.modules:
m = sys.modules['setuptools.extension']
try:
m.Extension.__dict__ = m._Extension.__dict__
except Exception:
pass
import glob
setup(name='vlcp-event-cython',
version=VERSION,
description='Cython replacement of vlcp.event',
author='Hu Bo',
author_email='hubo1016@126.com',
license="http://www.apache.org/licenses/LICENSE-2.0",
url='http://github.com/hubo1016/vlcp',
keywords=['SDN', 'VLCP', 'Openflow'],
test_suite = 'tests',
use_2to3=False,
setup_requires=[
'setuptools_cython',
],
packages=['vlcp_event_cython'],
ext_modules=[
Extension('vlcp_event_cython.event', ['vlcp_event_cython/event.pyx']),
Extension('vlcp_event_cython.matchtree', ['vlcp_event_cython/matchtree.pyx']),
Extension('vlcp_event_cython.pqueue', ['vlcp_event_cython/pqueue.pyx'])
])
| #!/usr/bin/env python
'''
Created on 2015/11/17
:author: hubo
'''
try:
import ez_setup
ez_setup.use_setuptools()
except:
pass
from setuptools import setup
from distutils.extension import Extension
VERSION = '0.1.0'
import sys
if 'setuptools.extension' in sys.modules:
m = sys.modules['setuptools.extension']
try:
m.Extension.__dict__ = m._Extension.__dict__
except Exception:
pass
import glob
setup(name='vlcp-event-cython',
version=VERSION,
description='Cython replacement of vlcp.event',
author='Hu Bo',
author_email='hubo1016@126.com',
license="http://www.apache.org/licenses/LICENSE-2.0",
url='http://github.com/hubo1016/vlcp',
keywords=['SDN', 'VLCP', 'Openflow'],
test_suite = 'tests',
use_2to3=False,
setup_requires=[
'setuptools_cython',
],
packages=['vlcp_event_cython'],
ext_modules=[
Extension('vlcp_event_cython.event', ['vlcp_event_cython/event.pyx']),
Extension('vlcp_event_cython.matchtree', ['vlcp_event_cython/matchtree.pyx']),
Extension('vlcp_event_cython.pqueue', ['vlcp_event_cython/pqueue.pyx'])
])
| apache-2.0 | Python |
04c72c8123a2841be3487fdf126a803538f74e3f | update version to 0.0.2-dev | WarrenWeckesser/eyediagram | eyediagram/__init__.py | eyediagram/__init__.py | # Copyright (c) 2015, Warren Weckesser. All rights reserved.
# This software is licensed according to the "BSD 2-clause" license.
__version__ = "0.0.2-dev"
import core
import bok
import mpl
| # Copyright (c) 2015, Warren Weckesser. All rights reserved.
# This software is licensed according to the "BSD 2-clause" license.
__version__ = "0.0.1"
import core
import bok
import mpl
| bsd-2-clause | Python |
76254eb7f87091cce2096b857bcc6a7baa68c5a9 | Add psutil | Wanderfalke/stellar,orf/stellar,fastmonkeys/stellar | setup.py | setup.py | # coding: utf-8
import os
import re
from setuptools import setup, find_packages
# https://bitbucket.org/zzzeek/alembic/raw/f38eaad4a80d7e3d893c3044162971971ae0
# 09bf/setup.py
v = open(os.path.join(os.path.dirname(__file__), 'stellar', 'app.py'))
VERSION = re.compile(r".*__version__ = '(.*?)'", re.S).match(v.read()).group(1)
v.close()
setup(
name='stellar',
description=(
'stellar is a tool for creating and restoring database snapshots'
),
long_description=open("README.md").read(),
version=VERSION,
url='https://github.com/fastmonkeys/stellar',
license='BSD',
author=u'Teemu Kokkonen, Pekka Pöyry',
author_email='teemu@fastmonkeys.com, pekka@fastmonkeys.com',
packages=find_packages('.', exclude=['examples*', 'test*']),
entry_points={
'console_scripts': [ 'stellar = stellar.command:main' ],
},
zip_safe=False,
include_package_data=True,
platforms='any',
classifiers=[
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: POSIX',
'Operating System :: Microsoft :: Windows',
'Operating System :: MacOS :: MacOS X',
'Topic :: Utilities',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Topic :: Database',
'Topic :: Software Development :: Version Control',
],
install_requires = [
'PyYAML',
'SQLAlchemy',
'humanize',
'pytest',
'schema',
'click',
'SQLAlchemy-Utils',
'psutil',
]
)
| # coding: utf-8
import os
import re
from setuptools import setup, find_packages
# https://bitbucket.org/zzzeek/alembic/raw/f38eaad4a80d7e3d893c3044162971971ae0
# 09bf/setup.py
v = open(os.path.join(os.path.dirname(__file__), 'stellar', 'app.py'))
VERSION = re.compile(r".*__version__ = '(.*?)'", re.S).match(v.read()).group(1)
v.close()
setup(
name='stellar',
description=(
'stellar is a tool for creating and restoring database snapshots'
),
long_description=open("README.md").read(),
version=VERSION,
url='https://github.com/fastmonkeys/stellar',
license='BSD',
author=u'Teemu Kokkonen, Pekka Pöyry',
author_email='teemu@fastmonkeys.com, pekka@fastmonkeys.com',
packages=find_packages('.', exclude=['examples*', 'test*']),
entry_points={
'console_scripts': [ 'stellar = stellar.command:main' ],
},
zip_safe=False,
include_package_data=True,
platforms='any',
classifiers=[
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: POSIX',
'Operating System :: Microsoft :: Windows',
'Operating System :: MacOS :: MacOS X',
'Topic :: Utilities',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Topic :: Database',
'Topic :: Software Development :: Version Control',
],
install_requires = [
'PyYAML',
'SQLAlchemy',
'humanize',
'pytest',
'schema',
'click',
'SQLAlchemy-Utils',
]
)
| mit | Python |
58869dcfac6414b2e3cdd2c3cf87fe91f53055e1 | update reset | archangdcc/avalon-extras,qinfengling/Avalon-extras,qinfengling/Avalon-extras,qinfengling/Avalon-extras,qinfengling/Avalon-extras,archangdcc/avalon-extras,Canaan-Creative/Avalon-extras,qinfengling/Avalon-extras,Canaan-Creative/Avalon-extras,Canaan-Creative/Avalon-extras,archangdcc/avalon-extras,Canaan-Creative/Avalon-extras,qinfengling/Avalon-extras,Canaan-Creative/Avalon-extras,archangdcc/avalon-extras,Canaan-Creative/Avalon-extras,archangdcc/avalon-extras,archangdcc/avalon-extras | reset.py | reset.py | #!/usr/bin/env python2.7
from serial import Serial
from optparse import OptionParser
import binascii
parser = OptionParser()
parser.add_option("-s", "--serial", dest="serial_port", default="/dev/ttyUSB0", help="Serial port")
(options, args) = parser.parse_args()
ser = Serial(options.serial_port, 115200, 8)
cmd = "ad98320801000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000009999991932333333cbcccc4c64666666fdffff7f969999992f3333b3c8cccccc616666e6"
print("Push reset to device:\n" + cmd)
ser.write(cmd.decode('hex'))
res=ser.read(64)
print("Result:\n" + binascii.hexlify(res))
| #!/usr/bin/env python2.7
from serial import Serial
from optparse import OptionParser
import binascii
parser = OptionParser()
parser.add_option("-s", "--serial", dest="serial_port", default="/dev/ttyUSB0", help="Serial port")
(options, args) = parser.parse_args()
ser = Serial(options.serial_port, 19200, 8)
cmd = "0100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
print("Push reset to device:\n" + cmd)
ser.write(cmd.decode('hex'))
res=ser.read(56)
print("Result:\n" + binascii.hexlify(res))
| unlicense | Python |
6168259db11d967f6d28a2e1f89639854e9b88d1 | update pypi classifiers | MichiganLabs/flask-gcm | setup.py | setup.py | #!/usr/bin/env python
"""
Setup script for Flask-GCM.
"""
import setuptools
import os
if os.path.exists('README.rst'):
README = open('README.rst').read()
else:
README = "" # a placeholder, readme is generated on release
CHANGES = open('CHANGES.md').read()
setuptools.setup(
name='Flask-GCM',
version='0.0.0',
description="Flask-GCM is a simple wrapper for the python-gcm library to be used with Flask applications.",
url='https://github.com/michiganlabs/flask-gcm',
author='Josh Friend',
author_email='jfriend@michiganlabs.com',
packages=setuptools.find_packages(),
entry_points={'console_scripts': []},
long_description=(README + '\n' + CHANGES),
license='MIT',
classifiers=[
'Development Status :: 3 - Alpha',
'Natural Language :: English',
'Operating System :: OS Independent',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
],
install_requires=open('requirements.txt').readlines(),
)
| #!/usr/bin/env python
"""
Setup script for Flask-GCM.
"""
import setuptools
import os
if os.path.exists('README.rst'):
README = open('README.rst').read()
else:
README = "" # a placeholder, readme is generated on release
CHANGES = open('CHANGES.md').read()
setuptools.setup(
name='Flask-GCM',
version='0.0.0',
description="Flask-GCM is a simple wrapper for the python-gcm library to be used with Flask applications.",
url='https://github.com/michiganlabs/flask-gcm',
author='Josh Friend',
author_email='jfriend@michiganlabs.com',
packages=setuptools.find_packages(),
entry_points={'console_scripts': []},
long_description=(README + '\n' + CHANGES),
license='MIT',
classifiers=[
'Development Status :: 1 - Planning',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
],
install_requires=open('requirements.txt').readlines(),
)
| mit | Python |
de6601ea92b5a7d6412c7e06ccdbca073126bdd2 | Fix hash tests | gdanezis/rousseau-chain | hippiehug-package/hippiehug/Utils.py | hippiehug-package/hippiehug/Utils.py | # -*- coding: utf-8 -*-
import six
from hashlib import sha256 as xhash
from binascii import hexlify
def binary_hash(item):
"""
>>> isinstance(binary_hash(b'value')[:4], six.binary_type)
True
"""
return xhash(item).digest()
def ascii_hash(item):
"""
>>> ascii_hash(b'value')[:4] == b'cd42'
True
"""
return hexlify(binary_hash(item))
| # -*- coding: utf-8 -*-
import six
from hashlib import sha256 as xhash
from binascii import hexlify
def binary_hash(item):
"""
>>> binary_hash(b'value')[:4]
b'\xcdB@M'
"""
return xhash(item).digest()
def ascii_hash(item):
"""
>>> ascii_hash(b'value')[:4]
b'cd42'
"""
return hexlify(binary_hash(item))
| bsd-2-clause | Python |
4d5feda5c1b7381ad856d5ae2b676092de154a79 | add missing modifiers (oops) | hawkw/COMINTERNALS,hawkw/COMINTERNALS,hawkw/COMINTERNALS | c.py | c.py | import re
types = ["short", "int", "long", "float", "double", "char", "void", "bool",
"FILE"]
containers = ["enum", "struct", "union", "typedef"]
preprocessor = ["define", "ifdef", "ifndef", "include", "endif", "defined"]
# libs = ["_WIN32", "NULL", "fprintf", "stderr", "memset", "size_t", "fflush", "abort", "u_char", "u_long", "caddr_t"]
modifiers = ["const", "volatile", "extern", "static", "register", "signed",
"unsigned", "inline", "__inline__", "__asm__", "__volatile__"]
flow = ["if", "else", "goto", "case", "default", "continue", "break"]
loops = ["for", "do", "while" "switch"]
keywords = types + containers + modifiers + flow + loops + ["return", "sizeof", "sbrk"] + preprocessor #+ libs
comm = r"\s*\/\*(\*(?!\/)|[^*]|\n)*\*\/"
comment_re = re.compile(comm, re.DOTALL)
ident = r"[_a-zA-Z][_a-zA-Z0-9]{0,30}"
ident_re = re.compile(ident)
invalid_id_re = re.compile(r"[^_a-zA-Z]")
string_lit = "\"[^\"]*\""
hex_lit = r"0x[a-fA-F0-9]+"
include = r"#include\s*<[a-zA-Z0-9\/\.]+>"
include_re = re.compile( r"#include\s*<([a-zA-Z0-9\/\.]+)>")
split_re = re.compile("({}|{}|{}|{}|{})"
.format(comm, include, hex_lit, ident, string_lit),
re.DOTALL)
modifier = r"""const|volatile|extern|static|register|signed|unsigned|__inline__|__asm__|__volatile__|inline"""
header_name = re.compile(r"""^(?:(?:""" + modifier +
r""")\s+)*[a-zA-Z_0-9]+[\s\*]+([a-zA-Z_0-9]+).+$|""" +
r"""#define\s+([a-zA-Z_0-9]+).+$""")
def tokens(string):
return filter(lambda n: n is not None, split_re.split(string))
def comment(string):
return comment_re.match(string)
def ident(string):
return ident_re.match(string) if string.strip() not in keywords else None
def is_keyword(string):
return True if string.strip() in keywords else False
def include(string):
return include_re.match(string)
| import re
types = ["short", "int", "long", "float", "double", "char", "void", "bool",
"FILE"]
containers = ["enum", "struct", "union", "typedef"]
preprocessor = ["define", "ifdef", "ifndef", "include", "endif", "defined"]
# libs = ["_WIN32", "NULL", "fprintf", "stderr", "memset", "size_t", "fflush", "abort", "u_char", "u_long", "caddr_t"]
modifiers = ["const", "volatile", "extern", "static", "register", "signed",
"unsigned"]
flow = ["if", "else", "goto", "case", "default", "continue", "break"]
loops = ["for", "do", "while" "switch"]
keywords = types + containers + modifiers + flow + loops + ["return", "sizeof", "sbrk", "__asm__", "__volatile__"] + preprocessor #+ libs
comm = r"\s*\/\*(\*(?!\/)|[^*]|\n)*\*\/"
comment_re = re.compile(comm, re.DOTALL)
ident = r"[_a-zA-Z][_a-zA-Z0-9]{0,30}"
ident_re = re.compile(ident)
invalid_id_re = re.compile(r"[^_a-zA-Z]")
string_lit = "\"[^\"]*\""
hex_lit = r"0x[a-fA-F0-9]+"
include = r"#include\s*<[a-zA-Z0-9\/\.]+>"
include_re = re.compile( r"#include\s*<([a-zA-Z0-9\/\.]+)>")
split_re = re.compile("({}|{}|{}|{}|{})"
.format(comm, include, hex_lit, ident, string_lit),
re.DOTALL)
modifier = r"""const|volatile|extern|static|register|signed|unsigned|__inline__|__asm__|__volatile__|inline"""
header_name = re.compile(r"""^(?:(?:""" + modifier +
r""")\s+)*[a-zA-Z_0-9]+[\s\*]+([a-zA-Z_0-9]+).+$|""" +
r"""#define\s+([a-zA-Z_0-9]+).+$""")
def tokens(string):
return filter(lambda n: n is not None, split_re.split(string))
def comment(string):
return comment_re.match(string)
def ident(string):
return ident_re.match(string) if string.strip() not in keywords else None
def is_keyword(string):
return True if string.strip() in keywords else False
def include(string):
return include_re.match(string)
| cc0-1.0 | Python |
4106dd7bbb796d8fc012d650bca235865ef176e1 | Update preprocess.py | vsingla2/Self-Driving-Car-NanoDegree-Udacity,vsingla2/Self-Driving-Car-NanoDegree-Udacity,vsingla2/Self-Driving-Car-NanoDegree-Udacity,vsingla2/Self-Driving-Car-NanoDegree-Udacity,vsingla2/Self-Driving-Car-NanoDegree-Udacity,vsingla2/Self-Driving-Car-NanoDegree-Udacity | Term1-Computer-Vision-and-Deep-Learning/Project4-Advanced-Lane_Lines/preprocess.py | Term1-Computer-Vision-and-Deep-Learning/Project4-Advanced-Lane_Lines/preprocess.py | def abs_sobel_thresh(img, orient='x', sobel_kernel=3, thresh=(0, 255)):
# Calculate directional gradient
# Apply threshold
return grad_binary
def mag_thresh(image, sobel_kernel=3, mag_thresh=(0, 255)):
# Calculate gradient magnitude
# Apply threshold
return mag_binary
def dir_threshold(image, sobel_kernel=3, thresh=(0, np.pi/2)):
# Calculate gradient direction
# Apply threshold
return dir_binary
# Choose a Sobel kernel size
ksize = 3 # Choose a larger odd number to smooth gradient measurements
# Apply each of the thresholding functions
gradx = abs_sobel_thresh(image, orient='x', sobel_kernel=ksize, thresh=(0, 255))
grady = abs_sobel_thresh(image, orient='y', sobel_kernel=ksize, thresh=(0, 255))
mag_binary = mag_thresh(image, sobel_kernel=ksize, mag_thresh=(0, 255))
dir_binary = dir_threshold(image, sobel_kernel=ksize, thresh=(0, np.pi/2))
| def abs_sobel_thresh(img, orient='x', sobel_kernel=3, thresh=(0, 255)):
# Calculate directional gradient
# Apply threshold
return grad_binary
def mag_thresh(image, sobel_kernel=3, mag_thresh=(0, 255)):
# Calculate gradient magnitude
# Apply threshold
return mag_binary
def dir_threshold(image, sobel_kernel=3, thresh=(0, np.pi/2)):
# Calculate gradient direction
# Apply threshold
return dir_binary
# Choose a Sobel kernel size
ksize = 3 # Choose a larger odd number to smooth gradient measurements
# Apply each of the thresholding functions
gradx = abs_sobel_thresh(image, orient='x', sobel_kernel=ksize, thresh=(0, 255))
grady = abs_sobel_thresh(image, orient='y', sobel_kernel=ksize, thresh=(0, 255))
mag_binary = mag_thresh(image, sobel_kernel=ksize, mag_thresh=(0, 255))
dir_binary = dir_threshold(image, sobel_kernel=ksize, thresh=(0, np.pi/2))
combined = np.zeros_like(dir_binary)
combined[((gradx == 1) & (grady == 1)) | ((mag_binary == 1) & (dir_binary == 1))] = 1
| mit | Python |
58f9e10b0a9c668c35711b63a92948145f18df8c | Bump patch version | gristlabs/asttokens | setup.py | setup.py | """A setuptools based setup module.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""
import io
from os import path
from setuptools import setup
here = path.dirname(__file__)
# Get the long description from the README file
with io.open(path.join(here, 'README.rst'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='asttokens',
version='2.0.3',
description='Annotate AST trees with source code positions',
long_description=long_description,
url='https://github.com/gristlabs/asttokens',
# Author details
author='Dmitry Sagalovskiy, Grist Labs',
author_email='dmitry@getgrist.com',
# Choose your license
license='Apache 2.0',
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
# How mature is this project? Common values are
# 3 - Alpha
# 4 - Beta
# 5 - Production/Stable
'Development Status :: 5 - Production/Stable',
# Indicate who your project is intended for
'Intended Audience :: Developers',
'Topic :: Software Development :: Libraries :: Python Modules ',
'Topic :: Software Development :: Code Generators',
'Topic :: Software Development :: Compilers',
'Topic :: Software Development :: Interpreters',
'Topic :: Software Development :: Pre-processors',
'Environment :: Console',
'Operating System :: OS Independent',
# 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.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
],
# What does your project relate to?
keywords='code ast parse tokenize refactor',
# You can just specify the packages manually here if your project is
# simple. Or you can use find_packages().
packages=['asttokens'],
# List run-time dependencies here. These will be installed by pip when
# your project is installed. For an analysis of "install_requires" vs pip's
# requirements files see:
# https://packaging.python.org/en/latest/requirements.html
install_requires=['six'],
# List additional groups of dependencies here (e.g. development
# dependencies). You can install these using the following syntax,
# for example:
# $ pip install -e .[dev,test]
extras_require={
'test': ['astroid', 'pytest'],
},
)
| """A setuptools based setup module.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""
import io
from os import path
from setuptools import setup
here = path.dirname(__file__)
# Get the long description from the README file
with io.open(path.join(here, 'README.rst'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='asttokens',
version='2.0.2',
description='Annotate AST trees with source code positions',
long_description=long_description,
url='https://github.com/gristlabs/asttokens',
# Author details
author='Dmitry Sagalovskiy, Grist Labs',
author_email='dmitry@getgrist.com',
# Choose your license
license='Apache 2.0',
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
# How mature is this project? Common values are
# 3 - Alpha
# 4 - Beta
# 5 - Production/Stable
'Development Status :: 5 - Production/Stable',
# Indicate who your project is intended for
'Intended Audience :: Developers',
'Topic :: Software Development :: Libraries :: Python Modules ',
'Topic :: Software Development :: Code Generators',
'Topic :: Software Development :: Compilers',
'Topic :: Software Development :: Interpreters',
'Topic :: Software Development :: Pre-processors',
'Environment :: Console',
'Operating System :: OS Independent',
# 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.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
],
# What does your project relate to?
keywords='code ast parse tokenize refactor',
# You can just specify the packages manually here if your project is
# simple. Or you can use find_packages().
packages=['asttokens'],
# List run-time dependencies here. These will be installed by pip when
# your project is installed. For an analysis of "install_requires" vs pip's
# requirements files see:
# https://packaging.python.org/en/latest/requirements.html
install_requires=['six'],
# List additional groups of dependencies here (e.g. development
# dependencies). You can install these using the following syntax,
# for example:
# $ pip install -e .[dev,test]
extras_require={
'test': ['astroid', 'pytest'],
},
)
| apache-2.0 | Python |
623c66a358d254bbcf4b590f4d34640e22297d54 | Bump version to 0.4.0 | datapackages/datapackage-py,okfn/datapackage-model-py,okfn/datapackage-py,sirex/datapackage-py,okfn/datapackage-model-py,sirex/datapackage-py,datapackages/datapackage-py,okfn/datapackage-py | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import io
import os
import fnmatch
from setuptools import setup, find_packages
description = "A Python library for working with a Data Package Registry."
with io.open('README.md') as readme:
long_description = ''.join(
filter(lambda x: 'https://travis-ci.org/' not in x,
readme.readlines()))
dependencies = [
'requests>=2.8.0',
'six>=1.10.0',
]
def schema_files():
'''Return all CSV and JSON files paths in datapackage_registry/schemas
The paths are relative to ./datapackage_registry
'''
def recursive_glob(path, patterns):
results = []
for base, dirs, files in os.walk(path):
matching_files = []
for pattern in patterns:
matching_files.extend(fnmatch.filter(files, pattern))
results.extend(os.path.join(base, f) for f in matching_files)
return results
base_folder = 'datapackage_registry'
remove_base_folder = lambda path: path[len(base_folder) + 1:]
path = os.path.join(base_folder, 'schemas')
files_paths = recursive_glob(path, ['*.csv', '*.json'])
return [remove_base_folder(f) for f in files_paths]
setup(
name='datapackage-registry',
version='0.4.0',
url='https://github.com/okfn/datapackage-registry-py',
license='MIT',
description=description,
long_description=long_description,
author='Open Knowledge Foundation',
author_email='info@okfn.org',
packages=find_packages(exclude=['contrib', 'docs', 'tests*']),
package_dir={'datapackage_registry': 'datapackage_registry'},
package_data={'datapackage_registry': schema_files()},
install_requires=dependencies,
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Utilities',
],
)
| #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import io
import os
import fnmatch
from setuptools import setup, find_packages
description = "A Python library for working with a Data Package Registry."
with io.open('README.md') as readme:
long_description = ''.join(
filter(lambda x: 'https://travis-ci.org/' not in x,
readme.readlines()))
dependencies = [
'requests>=2.8.0',
'six>=1.10.0',
]
def schema_files():
'''Return all CSV and JSON files paths in datapackage_registry/schemas
The paths are relative to ./datapackage_registry
'''
def recursive_glob(path, patterns):
results = []
for base, dirs, files in os.walk(path):
matching_files = []
for pattern in patterns:
matching_files.extend(fnmatch.filter(files, pattern))
results.extend(os.path.join(base, f) for f in matching_files)
return results
base_folder = 'datapackage_registry'
remove_base_folder = lambda path: path[len(base_folder) + 1:]
path = os.path.join(base_folder, 'schemas')
files_paths = recursive_glob(path, ['*.csv', '*.json'])
return [remove_base_folder(f) for f in files_paths]
setup(
name='datapackage-registry',
version='0.3.0',
url='https://github.com/okfn/datapackage-registry-py',
license='MIT',
description=description,
long_description=long_description,
author='Open Knowledge Foundation',
author_email='info@okfn.org',
packages=find_packages(exclude=['contrib', 'docs', 'tests*']),
package_dir={'datapackage_registry': 'datapackage_registry'},
package_data={'datapackage_registry': schema_files()},
install_requires=dependencies,
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Utilities',
],
)
| mit | Python |
054b2bab0e00cb3523facc73c52e82aff50e3256 | Bump python, pandas & matplotlib versions | has2k1/mizani,has2k1/mizani | setup.py | setup.py | """
Mizani
Mizani is a scales package for graphics. It is based on Hadley
Wickham's *Scales* package.
"""
from setuptools import setup, find_packages
import versioneer
__author__ = 'Hassan Kibirige'
__email__ = 'has2k1@gmail.com'
__description__ = "Scales for Python"
__license__ = 'BSD (3-clause)'
__url__ = 'https://github.com/has2k1/mizani'
def check_dependencies():
"""
Check for system level dependencies
"""
pass
def get_required_packages():
"""
Return required packages
Plus any version tests and warnings
"""
install_requires = ['numpy',
'pandas >= 0.25.0',
'matplotlib >= 3.1.1',
'palettable']
return install_requires
def get_package_data():
"""
Return package data
For example:
{'': ['*.txt', '*.rst'],
'hello': ['*.msg']}
means:
- If any package contains *.txt or *.rst files,
include them
- And include any *.msg files found in
the 'hello' package, too:
"""
return {}
if __name__ == '__main__':
check_dependencies()
setup(name='mizani',
maintainer=__author__,
maintainer_email=__email__,
description=__description__,
long_description=__doc__,
license=__license__,
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
url=__url__,
python_requires='>=3.6',
install_requires=get_required_packages(),
packages=find_packages(),
package_data=get_package_data(),
classifiers=[
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python :: 3',
'Topic :: Scientific/Engineering :: Visualization',
],
)
| """
Mizani
Mizani is a scales package for graphics. It is based on Hadley
Wickham's *Scales* package.
"""
from setuptools import setup, find_packages
import versioneer
__author__ = 'Hassan Kibirige'
__email__ = 'has2k1@gmail.com'
__description__ = "Scales for Python"
__license__ = 'BSD (3-clause)'
__url__ = 'https://github.com/has2k1/mizani'
def check_dependencies():
"""
Check for system level dependencies
"""
pass
def get_required_packages():
"""
Return required packages
Plus any version tests and warnings
"""
install_requires = ['numpy',
'pandas >= 0.23.4',
'matplotlib',
'palettable']
return install_requires
def get_package_data():
"""
Return package data
For example:
{'': ['*.txt', '*.rst'],
'hello': ['*.msg']}
means:
- If any package contains *.txt or *.rst files,
include them
- And include any *.msg files found in
the 'hello' package, too:
"""
return {}
if __name__ == '__main__':
check_dependencies()
setup(name='mizani',
maintainer=__author__,
maintainer_email=__email__,
description=__description__,
long_description=__doc__,
license=__license__,
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
url=__url__,
python_requires='>=3.5',
install_requires=get_required_packages(),
packages=find_packages(),
package_data=get_package_data(),
classifiers=[
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python :: 3',
'Topic :: Scientific/Engineering :: Visualization',
],
)
| bsd-3-clause | Python |
ac063f8e61dd9bd5718d01dc989c563ef19fa626 | Fix typo (#3343) | hexxter/home-assistant,HydrelioxGitHub/home-assistant,postlund/home-assistant,jaharkes/home-assistant,Teagan42/home-assistant,tchellomello/home-assistant,alexmogavero/home-assistant,molobrakos/home-assistant,hexxter/home-assistant,xifle/home-assistant,florianholzapfel/home-assistant,sander76/home-assistant,Smart-Torvy/torvy-home-assistant,tboyce021/home-assistant,Duoxilian/home-assistant,kennedyshead/home-assistant,aronsky/home-assistant,joopert/home-assistant,srcLurker/home-assistant,srcLurker/home-assistant,jabesq/home-assistant,Smart-Torvy/torvy-home-assistant,persandstrom/home-assistant,persandstrom/home-assistant,open-homeautomation/home-assistant,sdague/home-assistant,partofthething/home-assistant,pschmitt/home-assistant,Danielhiversen/home-assistant,shaftoe/home-assistant,eagleamon/home-assistant,open-homeautomation/home-assistant,stefan-jonasson/home-assistant,philipbl/home-assistant,mKeRix/home-assistant,kyvinh/home-assistant,open-homeautomation/home-assistant,ma314smith/home-assistant,sdague/home-assistant,robbiet480/home-assistant,turbokongen/home-assistant,w1ll1am23/home-assistant,lukas-hetzenecker/home-assistant,tboyce1/home-assistant,xifle/home-assistant,w1ll1am23/home-assistant,PetePriority/home-assistant,nugget/home-assistant,MungoRae/home-assistant,ewandor/home-assistant,miniconfig/home-assistant,adrienbrault/home-assistant,robbiet480/home-assistant,FreekingDean/home-assistant,MartinHjelmare/home-assistant,hexxter/home-assistant,fbradyirl/home-assistant,philipbl/home-assistant,jnewland/home-assistant,rohitranjan1991/home-assistant,nkgilley/home-assistant,betrisey/home-assistant,balloob/home-assistant,betrisey/home-assistant,miniconfig/home-assistant,happyleavesaoc/home-assistant,jawilson/home-assistant,partofthething/home-assistant,tchellomello/home-assistant,mezz64/home-assistant,morphis/home-assistant,eagleamon/home-assistant,ewandor/home-assistant,dmeulen/home-assistant,leoc/home-assistant,kyvinh/home-assistant,Cinntax/home-assistant,dmeulen/home-assistant,stefan-jonasson/home-assistant,florianholzapfel/home-assistant,shaftoe/home-assistant,nugget/home-assistant,eagleamon/home-assistant,DavidLP/home-assistant,JshWright/home-assistant,mKeRix/home-assistant,sander76/home-assistant,home-assistant/home-assistant,aequitas/home-assistant,Teagan42/home-assistant,morphis/home-assistant,ct-23/home-assistant,Zac-HD/home-assistant,jamespcole/home-assistant,varunr047/homefile,jaharkes/home-assistant,xifle/home-assistant,stefan-jonasson/home-assistant,varunr047/homefile,keerts/home-assistant,Smart-Torvy/torvy-home-assistant,dmeulen/home-assistant,varunr047/homefile,ewandor/home-assistant,kennedyshead/home-assistant,leoc/home-assistant,mezz64/home-assistant,HydrelioxGitHub/home-assistant,oandrew/home-assistant,JshWright/home-assistant,morphis/home-assistant,nugget/home-assistant,ct-23/home-assistant,auduny/home-assistant,jabesq/home-assistant,betrisey/home-assistant,adrienbrault/home-assistant,MungoRae/home-assistant,alexmogavero/home-assistant,jawilson/home-assistant,robjohnson189/home-assistant,keerts/home-assistant,nkgilley/home-assistant,philipbl/home-assistant,DavidLP/home-assistant,Duoxilian/home-assistant,MungoRae/home-assistant,ma314smith/home-assistant,Cinntax/home-assistant,JshWright/home-assistant,postlund/home-assistant,Duoxilian/home-assistant,tboyce1/home-assistant,Duoxilian/home-assistant,LinuxChristian/home-assistant,happyleavesaoc/home-assistant,keerts/home-assistant,PetePriority/home-assistant,titilambert/home-assistant,tinloaf/home-assistant,rohitranjan1991/home-assistant,hexxter/home-assistant,leoc/home-assistant,tinloaf/home-assistant,ma314smith/home-assistant,HydrelioxGitHub/home-assistant,aequitas/home-assistant,rohitranjan1991/home-assistant,jaharkes/home-assistant,robjohnson189/home-assistant,Smart-Torvy/torvy-home-assistant,molobrakos/home-assistant,qedi-r/home-assistant,turbokongen/home-assistant,happyleavesaoc/home-assistant,mKeRix/home-assistant,jnewland/home-assistant,robjohnson189/home-assistant,alexmogavero/home-assistant,Zac-HD/home-assistant,tinloaf/home-assistant,alexmogavero/home-assistant,happyleavesaoc/home-assistant,shaftoe/home-assistant,ct-23/home-assistant,aequitas/home-assistant,robjohnson189/home-assistant,leppa/home-assistant,open-homeautomation/home-assistant,pschmitt/home-assistant,FreekingDean/home-assistant,stefan-jonasson/home-assistant,balloob/home-assistant,GenericStudent/home-assistant,oandrew/home-assistant,qedi-r/home-assistant,Zac-HD/home-assistant,varunr047/homefile,srcLurker/home-assistant,kyvinh/home-assistant,MartinHjelmare/home-assistant,varunr047/homefile,lukas-hetzenecker/home-assistant,xifle/home-assistant,auduny/home-assistant,fbradyirl/home-assistant,philipbl/home-assistant,JshWright/home-assistant,jamespcole/home-assistant,joopert/home-assistant,leppa/home-assistant,MungoRae/home-assistant,Danielhiversen/home-assistant,jamespcole/home-assistant,ct-23/home-assistant,dmeulen/home-assistant,florianholzapfel/home-assistant,soldag/home-assistant,oandrew/home-assistant,molobrakos/home-assistant,kyvinh/home-assistant,jaharkes/home-assistant,home-assistant/home-assistant,Zac-HD/home-assistant,LinuxChristian/home-assistant,tboyce1/home-assistant,LinuxChristian/home-assistant,tboyce021/home-assistant,soldag/home-assistant,toddeye/home-assistant,keerts/home-assistant,jabesq/home-assistant,LinuxChristian/home-assistant,jnewland/home-assistant,MungoRae/home-assistant,mKeRix/home-assistant,persandstrom/home-assistant,miniconfig/home-assistant,tboyce1/home-assistant,PetePriority/home-assistant,titilambert/home-assistant,ma314smith/home-assistant,eagleamon/home-assistant,aronsky/home-assistant,morphis/home-assistant,DavidLP/home-assistant,miniconfig/home-assistant,balloob/home-assistant,auduny/home-assistant,leoc/home-assistant,shaftoe/home-assistant,florianholzapfel/home-assistant,srcLurker/home-assistant,betrisey/home-assistant,MartinHjelmare/home-assistant,LinuxChristian/home-assistant,fbradyirl/home-assistant,GenericStudent/home-assistant,oandrew/home-assistant,ct-23/home-assistant,toddeye/home-assistant | homeassistant/components/bloomsky.py | homeassistant/components/bloomsky.py | """
Support for BloomSky weather station.
For more details about this component, please refer to the documentation at
https://home-assistant.io/components/bloomsky/
"""
import logging
from datetime import timedelta
import requests
import voluptuous as vol
from homeassistant.const import CONF_API_KEY
from homeassistant.helpers import discovery
from homeassistant.util import Throttle
import homeassistant.helpers.config_validation as cv
_LOGGER = logging.getLogger(__name__)
BLOOMSKY = None
BLOOMSKY_TYPE = ['camera', 'binary_sensor', 'sensor']
DOMAIN = 'bloomsky'
# The BloomSky only updates every 5-8 minutes as per the API spec so there's
# no point in polling the API more frequently
MIN_TIME_BETWEEN_UPDATES = timedelta(seconds=300)
CONFIG_SCHEMA = vol.Schema({
DOMAIN: vol.Schema({
vol.Required(CONF_API_KEY): cv.string,
}),
}, extra=vol.ALLOW_EXTRA)
# pylint: disable=unused-argument,too-few-public-methods
def setup(hass, config):
"""Setup BloomSky component."""
api_key = config[DOMAIN][CONF_API_KEY]
global BLOOMSKY
try:
BLOOMSKY = BloomSky(api_key)
except RuntimeError:
return False
for component in BLOOMSKY_TYPE:
discovery.load_platform(hass, component, DOMAIN, {}, config)
return True
class BloomSky(object):
"""Handle all communication with the BloomSky API."""
# API documentation at http://weatherlution.com/bloomsky-api/
API_URL = 'https://api.bloomsky.com/api/skydata'
def __init__(self, api_key):
"""Initialize the BookSky."""
self._api_key = api_key
self.devices = {}
_LOGGER.debug("Initial BloomSky device load...")
self.refresh_devices()
@Throttle(MIN_TIME_BETWEEN_UPDATES)
def refresh_devices(self):
"""Use the API to retrieve a list of devices."""
_LOGGER.debug("Fetching BloomSky update")
response = requests.get(self.API_URL,
headers={"Authorization": self._api_key},
timeout=10)
if response.status_code == 401:
raise RuntimeError("Invalid API_KEY")
elif response.status_code != 200:
_LOGGER.error("Invalid HTTP response: %s", response.status_code)
return
# Create dictionary keyed off of the device unique id
self.devices.update({
device['DeviceID']: device for device in response.json()
})
| """
Support for BloomSky weather station.
For more details about this component, please refer to the documentation at
https://home-assistant.io/components/bloomsky/
"""
import logging
from datetime import timedelta
import requests
import voluptuous as vol
from homeassistant.const import CONF_API_KEY
from homeassistant.helpers import discovery
from homeassistant.util import Throttle
import homeassistant.helpers.config_validation as cv
_LOGGER = logging.getLogger(__name__)
BLOOMSKY = None
BLOOMSKY_TYPE = ['camera', 'binary_sensor', 'sensor']
DOMAIN = 'bloomsky'
# The BloomSky only updates every 5-8 minutes as per the API spec so there's
# no point in polling the API more frequently
MIN_TIME_BETWEEN_UPDATES = timedelta(seconds=300)
CONFIG_SCHEMA = vol.Schema({
DOMAIN: vol.Schema({
vol.Required(CONF_API_KEY): cv.string,
}),
}, extra=vol.ALLOW_EXTRA)
# pylint: disable=unused-argument,too-few-public-methods
def setup(hass, config):
"""Setup BloomSky component."""
api_key = config[DOMAIN][CONF_API_KEY]
global BLOOMSKY
try:
BLOOMSKY = BloomSky(api_key)
except RuntimeError:
return False
for component in BLOOMSKY_TYPE:
discovery.load_platform(hass, component, DOMAIN, {}, config)
return True
class BloomSky(object):
"""Handle all communication with the BloomSky API."""
# API documentation at http://weatherlution.com/bloomsky-api/
API_URL = 'https://api.bloomsky.com/api/skydata'
def __init__(self, api_key):
"""Initialize the BookSky."""
self._api_key = api_key
self.devices = {}
_LOGGER.debug("Initial BloomSky device load...")
self.refresh_devices()
@Throttle(MIN_TIME_BETWEEN_UPDATES)
def refresh_devices(self):
"""Use the API to retreive a list of devices."""
_LOGGER.debug("Fetching BloomSky update")
response = requests.get(self.API_URL,
headers={"Authorization": self._api_key},
timeout=10)
if response.status_code == 401:
raise RuntimeError("Invalid API_KEY")
elif response.status_code != 200:
_LOGGER.error("Invalid HTTP response: %s", response.status_code)
return
# Create dictionary keyed off of the device unique id
self.devices.update({
device['DeviceID']: device for device in response.json()
})
| mit | Python |
d8e0a43d4d6fd85e914445393a5b41a67fd4365b | add Yelizariev author | thinkopensolutions/tkobr-addons,elego/tkobr-addons,elego/tkobr-addons,thinkopensolutions/tkobr-addons,elego/tkobr-addons,thinkopensolutions/tkobr-addons,thinkopensolutions/tkobr-addons,elego/tkobr-addons | tko_web_sessions_management/__openerp__.py | tko_web_sessions_management/__openerp__.py | # -*- encoding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
#
# ThinkOpen Solutions Brasil
# Copyright (C) Thinkopen Solutions <http://www.tkobr.com>.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
{
'name': 'Odoo Web Sessions Management Rules',
'version': '1.011',
'category': 'Tools',
'sequence': 15,
'summary': 'Manage Users Login Rules in Odoo.',
'description': """
# Manage Users Login Rules in Odoo\n
===========================\n
\n
This modules allows the management of logins, by groups or users.\n\n
One can do following:\n
# Group/User Login Configuration:\n
1. Allow multiple sign in of same user;\n
2. Define session timeouts;\n
3. Define a time/week day where users can login;\n
4. You can have user exceptions, overwriting group settings in user settings. The most restrict rule will be applied.\n\n
# Administrator Session Management:\n
1. Sessions log;\n
2. Group by session state, login date time, logout date time, user, group;\n
3. Close any active session.\n\n
# User Session Management:\n
1. Users can see their own log of sessions;\n
2. Users can close related active session;\n
3. Users can choose to close all sessions except current one.\n
NOTE: Admin has no restrictions""",
'author': 'ThinkOpen Solutions Brasil, Ivan Yelizariev',
'website': 'http://www.tkobr.com',
#'price': 19.99,
#'currency': 'EUR',
'depends': [
'base',
'resource',
'web',
],
'data': [
'security/ir.model.access.csv',
'views/scheduler.xml',
'views/res_users_view.xml',
'views/res_groups_view.xml',
'views/ir_sessions_view.xml',
'views/webclient_templates.xml',
],
'init': [],
'demo': [],
'update': [],
'test': [], # YAML files with tests
'installable': True,
'application': False,
'auto_install': False, # If it's True, the modules will be auto-installed when all dependencies are installed
'certificate': '',
'reload': True,
}
| # -*- encoding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
#
# ThinkOpen Solutions Brasil
# Copyright (C) Thinkopen Solutions <http://www.tkobr.com>.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
{
'name': 'Odoo Web Sessions Management Rules',
'version': '1.010',
'category': 'Tools',
'sequence': 15,
'summary': 'Manage Users Login Rules in Odoo.',
'description': """
# Manage Users Login Rules in Odoo\n
===========================\n
\n
This modules allows the management of logins, by groups or users.\n\n
One can do following:\n
# Group/User Login Configuration:\n
1. Allow multiple sign in of same user;\n
2. Define session timeouts;\n
3. Define a time/week day where users can login;\n
4. You can have user exceptions, overwriting group settings in user settings. The most restrict rule will be applied.\n\n
# Administrator Session Management:\n
1. Sessions log;\n
2. Group by session state, login date time, logout date time, user, group;\n
3. Close any active session.\n\n
# User Session Management:\n
1. Users can see their own log of sessions;\n
2. Users can close related active session;\n
3. Users can choose to close all sessions except current one.\n
NOTE: Admin has no restrictions""",
'author': 'ThinkOpen Solutions Brasil',
'website': 'http://www.tkobr.com',
'price': 19.99,
'currency': 'EUR',
'depends': [
'base',
'resource',
'web',
],
'data': [
'security/ir.model.access.csv',
'views/scheduler.xml',
'views/res_users_view.xml',
'views/res_groups_view.xml',
'views/ir_sessions_view.xml',
'views/webclient_templates.xml',
],
'init': [],
'demo': [],
'update': [],
'test': [], # YAML files with tests
'installable': True,
'application': False,
'auto_install': False, # If it's True, the modules will be auto-installed when all dependencies are installed
'certificate': '',
'reload': True,
}
| agpl-3.0 | Python |
1eec99ce1d0ab8ed27060ace3daa2c1de3f80317 | add 1.3.0 (#27787) | LLNL/spack,LLNL/spack,LLNL/spack,LLNL/spack,LLNL/spack | var/spack/repos/builtin/packages/py-imagesize/package.py | var/spack/repos/builtin/packages/py-imagesize/package.py | # Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class PyImagesize(PythonPackage):
"""Parses image file headers and returns image size. Supports PNG, JPEG,
JPEG2000, and GIF image file formats."""
homepage = "https://github.com/shibukawa/imagesize_py"
pypi = "imagesize/imagesize-0.7.1.tar.gz"
version('1.3.0', sha256='cd1750d452385ca327479d45b64d9c7729ecf0b3969a58148298c77092261f9d')
version('1.1.0', sha256='f3832918bc3c66617f92e35f5d70729187676313caa60c187eb0f28b8fe5e3b5')
version('0.7.1', sha256='0ab2c62b87987e3252f89d30b7cedbec12a01af9274af9ffa48108f2c13c6062')
depends_on('python@2.7:2,3.4:', when='@1.2:', type=('build', 'run'))
depends_on('py-setuptools', type='build')
| # Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class PyImagesize(PythonPackage):
"""Parses image file headers and returns image size. Supports PNG, JPEG,
JPEG2000, and GIF image file formats."""
homepage = "https://github.com/shibukawa/imagesize_py"
pypi = "imagesize/imagesize-0.7.1.tar.gz"
version('1.1.0', sha256='f3832918bc3c66617f92e35f5d70729187676313caa60c187eb0f28b8fe5e3b5')
version('0.7.1', sha256='0ab2c62b87987e3252f89d30b7cedbec12a01af9274af9ffa48108f2c13c6062')
depends_on('py-setuptools', type='build')
| lgpl-2.1 | Python |
c39a9ab9dd4002f040c614c24583fcfd7a2740dc | set version 0.5.0 | icgood/provoke,icgood/provoke | setup.py | setup.py |
import sys
from setuptools import setup, find_packages
if sys.version_info[0] == 2:
mysql = 'MySQL-python'
else:
mysql = 'PyMySQL'
setup(name='provoke',
version='0.5.0',
author='Ian Good',
author_email='icgood@gmail.com',
description='Lightweight, asynchronous function execution in Python '
'using AMQP.',
packages=find_packages(),
install_requires=['amqp', 'six'],
extras_require={
'mysql': [mysql],
},
entry_points={
'provoke.workers': ['example = provoke.example.worker:register'],
'console_scripts': ['provoke = provoke.worker.main:main'],
})
|
import sys
from setuptools import setup, find_packages
if sys.version_info[0] == 2:
mysql = 'MySQL-python'
else:
mysql = 'PyMySQL'
setup(name='provoke',
version='0.4.1',
author='Ian Good',
author_email='icgood@gmail.com',
description='Lightweight, asynchronous function execution in Python '
'using AMQP.',
packages=find_packages(),
install_requires=['amqp', 'six'],
extras_require={
'mysql': [mysql],
},
entry_points={
'provoke.workers': ['example = provoke.example.worker:register'],
'console_scripts': ['provoke = provoke.worker.main:main'],
})
| mit | Python |
15d660fc5fb6646cee99618d0f62d317e5ecdc84 | rename import and transform | yero13/agilego.py | setup.py | setup.py | from distutils.core import setup
from setuptools import find_packages
setup(name='agilego',
version='0.1.2',
description='Sprint planner',
author='Roman Yepifanov',
url='https://github.com/yero13/agilego.be',
license='GNU GPL v2.0',
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Console',
'Programming Language :: Python :: 3.6'],
packages=find_packages(),
package_data = {'agilego': ['./*.bat', './log/log.txt', './cfg/*.json', './cfg/dependency/*.json', './cfg/jira/*.json', './cfg/log/*.json', './cfg/scrum/*.json', './cfg/validation/*.json']},
package_dir={'.':'agilego'},
python_requires= '~=3.6',
install_requires=['flask', 'flask-cors', 'flask_cache', 'flask_restful', 'networkx', 'na3x']
)
| from distutils.core import setup
from setuptools import find_packages
setup(name='agilego',
version='0.1.2',
description='Scrum sprint planner',
author='Roman Yepifanov',
url='https://github.com/yero13/agilego.be',
license='GNU GPL v2.0',
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Console',
'Programming Language :: Python :: 3.6'],
packages=find_packages(),
package_data = {'agilego': ['./*.bat', './log/log.txt', './cfg/*.json', './cfg/dependency/*.json', './cfg/jira/*.json', './cfg/log/*.json', './cfg/scrum/*.json', './cfg/validation/*.json']},
package_dir={'.':'agilego'},
python_requires= '~=3.6',
install_requires=['flask', 'flask-cors', 'flask_cache', 'flask_restful', 'networkx', 'na3x']
)
| mit | Python |
c5134ff4f2a2687b48fb8345bb07da4ad2585d11 | Add extra version of py-terminado (#15111) | LLNL/spack,LLNL/spack,iulian787/spack,iulian787/spack,LLNL/spack,iulian787/spack,iulian787/spack,iulian787/spack,LLNL/spack,LLNL/spack | var/spack/repos/builtin/packages/py-terminado/package.py | var/spack/repos/builtin/packages/py-terminado/package.py | # Copyright 2013-2020 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class PyTerminado(PythonPackage):
"""Terminals served to term.js using Tornado websockets"""
homepage = "https://pypi.python.org/pypi/terminado"
url = "https://pypi.io/packages/source/t/terminado/terminado-0.6.tar.gz"
version('0.8.2', sha256='de08e141f83c3a0798b050ecb097ab6259c3f0331b2f7b7750c9075ced2c20c2')
version('0.8.1', sha256='55abf9ade563b8f9be1f34e4233c7b7bde726059947a593322e8a553cc4c067a')
version('0.6', sha256='2c0ba1f624067dccaaead7d2247cfe029806355cef124dc2ccb53c83229f0126')
depends_on('py-tornado@4:', type=('build', 'run'))
depends_on('py-ptyprocess', type=('build', 'run'))
depends_on('python@2.7:2.8,3.4:', when='@0.8.2:', type=('build', 'run'))
| # Copyright 2013-2020 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class PyTerminado(PythonPackage):
"""Terminals served to term.js using Tornado websockets"""
homepage = "https://pypi.python.org/pypi/terminado"
url = "https://pypi.io/packages/source/t/terminado/terminado-0.6.tar.gz"
version('0.8.1', sha256='55abf9ade563b8f9be1f34e4233c7b7bde726059947a593322e8a553cc4c067a')
version('0.6', sha256='2c0ba1f624067dccaaead7d2247cfe029806355cef124dc2ccb53c83229f0126')
depends_on('py-tornado@4:', type=('build', 'run'))
depends_on('py-ptyprocess', type=('build', 'run'))
| lgpl-2.1 | Python |
ec6dabae3b8d16b7f1ba1c2cd7e8b8cb0af91999 | Update setuptools to 5.3. | alunduil/crumbs | setup.py | setup.py | # Copyright (C) 2014 by Alex Brandt <alunduil@alunduil.com>
#
# crumbs is freely distributable under the terms of an MIT-style license.
# See COPYING or http://www.opensource.org/licenses/mit-license.php.
# -----------------------------------------------------------------------------
import sys
import traceback
try:
import configparser # flake8: noqa
configparser_name = 'configparser'
except ImportError:
import ConfigParser # flake8: noqa
configparser_name = 'ConfigParser'
original_sections = sys.modules[configparser_name].ConfigParser.sections
def monkey_sections(self):
'''Return a list of sections available; DEFAULT is not included in the list.
Monkey patched to exclude the nosetests section as well.
'''
_ = original_sections(self)
if any([ 'distutils/dist.py' in frame[0] for frame in traceback.extract_stack() ]) and _.count('nosetests'):
_.remove('nosetests')
return _
sys.modules[configparser_name].ConfigParser.sections = monkey_sections
# -----------------------------------------------------------------------------
from ez_setup import use_setuptools
use_setuptools(version = '5.3')
from setuptools import setup
from crumbs import information
PARAMS = {}
PARAMS['name'] = information.NAME
PARAMS['version'] = information.VERSION
PARAMS['description'] = information.DESCRIPTION
with open('README.rst', 'r') as fh:
PARAMS['long_description'] = fh.read()
PARAMS['author'] = information.AUTHOR
PARAMS['author_email'] = information.AUTHOR_EMAIL
PARAMS['url'] = information.URL
PARAMS['license'] = information.LICENSE
PARAMS['classifiers'] = [
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'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 :: Implementation :: CPython',
'Topic :: Software Development :: Libraries',
]
PARAMS['keywords'] = [
'crumbs',
'parameters',
'configuration',
'environment',
'arguments',
]
PARAMS['provides'] = [
'crumbs',
]
with open('requirements.txt', 'r') as req_fh:
PARAMS['install_requires'] = req_fh.readlines()
with open('test_crumbs/requirements.txt', 'r') as req_fh:
PARAMS['tests_require'] = req_fh.readlines()
PARAMS['test_suite'] = 'nose.collector'
PARAMS['packages'] = [
'crumbs',
]
PARAMS['data_files'] = [
('share/doc/{P[name]}-{P[version]}'.format(P = PARAMS), [
'README.rst',
]),
]
setup(**PARAMS)
| # Copyright (C) 2014 by Alex Brandt <alunduil@alunduil.com>
#
# crumbs is freely distributable under the terms of an MIT-style license.
# See COPYING or http://www.opensource.org/licenses/mit-license.php.
# -----------------------------------------------------------------------------
import sys
import traceback
try:
import configparser # flake8: noqa
configparser_name = 'configparser'
except ImportError:
import ConfigParser # flake8: noqa
configparser_name = 'ConfigParser'
original_sections = sys.modules[configparser_name].ConfigParser.sections
def monkey_sections(self):
'''Return a list of sections available; DEFAULT is not included in the list.
Monkey patched to exclude the nosetests section as well.
'''
_ = original_sections(self)
if any([ 'distutils/dist.py' in frame[0] for frame in traceback.extract_stack() ]) and _.count('nosetests'):
_.remove('nosetests')
return _
sys.modules[configparser_name].ConfigParser.sections = monkey_sections
# -----------------------------------------------------------------------------
from ez_setup import use_setuptools
use_setuptools(version = '0.8')
from setuptools import setup
from crumbs import information
PARAMS = {}
PARAMS['name'] = information.NAME
PARAMS['version'] = information.VERSION
PARAMS['description'] = information.DESCRIPTION
with open('README.rst', 'r') as fh:
PARAMS['long_description'] = fh.read()
PARAMS['author'] = information.AUTHOR
PARAMS['author_email'] = information.AUTHOR_EMAIL
PARAMS['url'] = information.URL
PARAMS['license'] = information.LICENSE
PARAMS['classifiers'] = [
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'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 :: Implementation :: CPython',
'Topic :: Software Development :: Libraries',
]
PARAMS['keywords'] = [
'crumbs',
'parameters',
'configuration',
'environment',
'arguments',
]
PARAMS['provides'] = [
'crumbs',
]
with open('requirements.txt', 'r') as req_fh:
PARAMS['install_requires'] = req_fh.readlines()
with open('test_crumbs/requirements.txt', 'r') as req_fh:
PARAMS['tests_require'] = req_fh.readlines()
PARAMS['test_suite'] = 'nose.collector'
PARAMS['packages'] = [
'crumbs',
]
PARAMS['data_files'] = [
('share/doc/{P[name]}-{P[version]}'.format(P = PARAMS), [
'README.rst',
]),
]
setup(**PARAMS)
| mit | Python |
1227f5ef7e01e588b1c05fbd5b475a101be0bc5a | add current directory to sys.path when importing generator class (fixed #58) | ianlini/feagen | feagen/tools/config.py | feagen/tools/config.py | from os.path import join, exists
import sys
from importlib import import_module
from mkdir_p import mkdir_p
def init_config():
mkdir_p(".feagenrc")
default_global_config = """\
generator_class: feature_generator.FeatureGenerator
data_bundles_dir: data_bundles
# The additional arguments that will be given when initiating the data generator
# object.
generator_kwargs:
h5py_hdf_path:
h5py.h5
pandas_hdf_path:
pandas.h5
"""
default_bundle_config = """\
# The name of this bundle. This will be the file name of the data bundle.
# Another suggested usage is to comment out this line, so the name will be
# obtained from the file name of this config, that is, the name will be the same
# as the config file name without the extension.
name: default
# The structure of the data bundle. All the involved data will be generated and
# put into the global data file first (if data not exist), and then be bundled
# according to this structure, and then write to the data bundle file.
structure:
id: id
label: label
features:
- feature_1
- feature_2
# Special configuration for the structure. Here we set concat=True for
# 'features'. It means that the data list in 'features' will be concatenated
# into a dataset.
structure_config:
features:
concat: True
"""
default_global_config_path = join(".feagenrc", "config.yml")
if exists(default_global_config_path):
print("Warning: %s exists so it's not generated."
% default_global_config_path)
else:
with open(default_global_config_path, "w") as fp:
fp.write(default_global_config)
default_bundle_config_path = join(".feagenrc", "bundle_config.yml")
if exists(default_bundle_config_path):
print("Warning: %s exists so it's not generated."
% default_bundle_config_path)
else:
with open(default_bundle_config_path, "w") as fp:
fp.write(default_bundle_config)
def get_class_from_str(class_str):
module_name, class_name = class_str.rsplit(".", 1)
sys.path.insert(0, '')
module = import_module(module_name)
sys.path.pop(0)
generator_class = getattr(module, class_name)
return generator_class
def get_data_generator_class_from_config(global_config):
# TODO: check the config
generator_class = get_class_from_str(global_config['generator_class'])
return generator_class
def get_data_generator_from_config(global_config):
generator_class = get_data_generator_class_from_config(global_config)
data_generator = generator_class(**global_config['generator_kwargs'])
return data_generator
| from os.path import join, exists
from importlib import import_module
from mkdir_p import mkdir_p
def init_config():
mkdir_p(".feagenrc")
default_global_config = """\
generator_class: feature_generator.FeatureGenerator
data_bundles_dir: data_bundles
# The additional arguments that will be given when initiating the data generator
# object.
generator_kwargs:
h5py_hdf_path:
h5py.h5
pandas_hdf_path:
pandas.h5
"""
default_bundle_config = """\
# The name of this bundle. This will be the file name of the data bundle.
# Another suggested usage is to comment out this line, so the name will be
# obtained from the file name of this config, that is, the name will be the same
# as the config file name without the extension.
name: default
# The structure of the data bundle. All the involved data will be generated and
# put into the global data file first (if data not exist), and then be bundled
# according to this structure, and then write to the data bundle file.
structure:
id: id
label: label
features:
- feature_1
- feature_2
# Special configuration for the structure. Here we set concat=True for
# 'features'. It means that the data list in 'features' will be concatenated
# into a dataset.
structure_config:
features:
concat: True
"""
default_global_config_path = join(".feagenrc", "config.yml")
if exists(default_global_config_path):
print("Warning: %s exists so it's not generated."
% default_global_config_path)
else:
with open(default_global_config_path, "w") as fp:
fp.write(default_global_config)
default_bundle_config_path = join(".feagenrc", "bundle_config.yml")
if exists(default_bundle_config_path):
print("Warning: %s exists so it's not generated."
% default_bundle_config_path)
else:
with open(default_bundle_config_path, "w") as fp:
fp.write(default_bundle_config)
def get_class_from_str(class_str):
module_name, class_name = class_str.rsplit(".", 1)
module = import_module(module_name)
generator_class = getattr(module, class_name)
return generator_class
def get_data_generator_class_from_config(global_config):
# TODO: check the config
generator_class = get_class_from_str(global_config['generator_class'])
return generator_class
def get_data_generator_from_config(global_config):
generator_class = get_data_generator_class_from_config(global_config)
data_generator = generator_class(**global_config['generator_kwargs'])
return data_generator
| bsd-2-clause | Python |
39c0323e955b17cabd3250d69dd5d7571a3aec66 | Update version | lijoantony/django-oscar-api,crgwbr/django-oscar-api,regulusweb/django-oscar-api,KuwaitNET/django-oscar-api | setup.py | setup.py | from setuptools import setup, find_packages
__version__ = "0.0.10"
setup(
# package name in pypi
name='django-oscar-commerce-connect',
# extract version from module.
version=__version__,
description="REST API module for django-oscar",
long_description=open('README.rst').read(),
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: Unix',
'Programming Language :: Python']
),
keywords='',
author='Lars van de Kerkhof, Martijn Jacobs',
author_email='lars@permanentmarkers.nl, martijn@devopsconsulting.nl',
url='https://github.com/tangentlabs/django-oscar-api',
license='BSD',
# include all packages in the egg, except the test package.
packages=find_packages(exclude=['ez_setup', 'examples', 'tests']),
# for avoiding conflict have one namespace for all apc related eggs.
namespace_packages=[],
# include non python files
include_package_data=True,
zip_safe=False,
# specify dependencies
install_requires=[
'setuptools',
'django-oscar',
'djangorestframework<3.0.0'
],
# mark test target to require extras.
extras_require={
'test': []
},
)
| from setuptools import setup, find_packages
__version__ = "0.0.9"
setup(
# package name in pypi
name='django-oscar-commerce-connect',
# extract version from module.
version=__version__,
description="REST API module for django-oscar",
long_description=open('README.rst').read(),
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: Unix',
'Programming Language :: Python']
),
keywords='',
author='Lars van de Kerkhof, Martijn Jacobs',
author_email='lars@permanentmarkers.nl, martijn@devopsconsulting.nl',
url='https://github.com/tangentlabs/django-oscar-api',
license='BSD',
# include all packages in the egg, except the test package.
packages=find_packages(exclude=['ez_setup', 'examples', 'tests']),
# for avoiding conflict have one namespace for all apc related eggs.
namespace_packages=[],
# include non python files
include_package_data=True,
zip_safe=False,
# specify dependencies
install_requires=[
'setuptools',
'django-oscar',
'djangorestframework<3.0.0'
],
# mark test target to require extras.
extras_require={
'test': []
},
)
| bsd-3-clause | Python |
9a7ba780abb5949d2053dfbf9d280d53e89ff5c2 | update version to 1.1.8 | WKPlus/pyhessian2 | setup.py | setup.py | try:
from setuptools import setup
except ImportError:
from distutils.core import setup
VERSION = '1.1.8'
LONG_DESCRIPTION = '''
pyhessian2 is implemented for serialize and deserialize data in hessian2 protocol.
Usage
-----
>>> # encoding
>>> from pyhessian2 import HessianObject, Encoder
>>> attrs = {
"name": "xx",
"age": 20,
}
>>> obj = HessianObject("com.xx.person", attrs)
>>> data = Encoder().encode(obj)
>>> print "%r" % data
>>> # decoding
>>> from pyhessian2 import Decoder
>>> data = ... # a hessian bytes data
>>> obj = Decoder().decoder(data) # get a Hessianobject instance
>>> print obj # print json serialized data
'''
setup(
name='pyhessian2',
description='an implementation for hessian2',
long_description=LONG_DESCRIPTION,
author='WKPlus',
url='https://github.com/WKPlus/pyhessian2.git',
license='MIT',
author_email='qifa.zhao@gmail.com',
version=VERSION,
packages = ['pyhessian2'],
install_requires=[],
test_requires=['nose'],
zip_safe=False,
)
| try:
from setuptools import setup
except ImportError:
from distutils.core import setup
VERSION = '1.1.7'
LONG_DESCRIPTION = '''
pyhessian2 is implemented for serialize and deserialize data in hessian2 protocol.
Usage
-----
>>> # encoding
>>> from pyhessian2 import HessianObject, Encoder
>>> attrs = {
"name": "xx",
"age": 20,
}
>>> obj = HessianObject("com.xx.person", attrs)
>>> data = Encoder().encode(obj)
>>> print "%r" % data
>>> # decoding
>>> from pyhessian2 import Decoder
>>> data = ... # a hessian bytes data
>>> obj = Decoder().decoder(data) # get a Hessianobject instance
>>> print obj # print json serialized data
'''
setup(
name='pyhessian2',
description='an implementation for hessian2',
long_description=LONG_DESCRIPTION,
author='WKPlus',
url='https://github.com/WKPlus/pyhessian2.git',
license='MIT',
author_email='qifa.zhao@gmail.com',
version=VERSION,
packages = ['pyhessian2'],
install_requires=[],
test_requires=['nose'],
zip_safe=False,
)
| mit | Python |
4aabe8c607dd67ed861b76d9898c4d45ea91f232 | Upgrade shapely version according to ding0 v0.1.4 | openego/eDisGo,openego/eDisGo | setup.py | setup.py | from setuptools import find_packages, setup
from setuptools.command.install import install
import os
BASEPATH='.eDisGo'
class InstallSetup(install):
def run(self):
self.create_edisgo_path()
install.run(self)
@staticmethod
def create_edisgo_path():
edisgo_path = os.path.join(os.path.expanduser('~'), BASEPATH)
data_path = os.path.join(edisgo_path, 'data')
if not os.path.isdir(edisgo_path):
os.mkdir(edisgo_path)
if not os.path.isdir(data_path):
os.mkdir(data_path)
setup(
name='eDisGo',
version='0.0.1',
packages=find_packages(),
url='https://github.com/openego/eDisGo',
license='GNU Affero General Public License v3.0',
author='gplssm, nesnoj, birgits',
author_email='',
description='A python package for distribution grid analysis and optimization',
install_requires = [
'ding0==0.1.4+git.25dbbb8',
'networkx >=1.11, <2.0 ',
'shapely >= 1.5.12, <= 1.6.3',
'pandas >=0.20.3, <=0.20.3',
'pypsa >=0.11.0, <=0.11.0',
'pyproj >= 1.9.5.1, <= 1.9.5.1',
'geopy >= 1.11.0, <= 1.11.0'
],
package_data={
'edisgo': [
os.path.join('config', 'config_system'),
os.path.join('config', '*.cfg'),
os.path.join('equipment', '*.csv')]
},
dependency_links=[
'https://github.com/openego/ding0/archive/25dbbb8e80c00df09af8ad0e0cdfda21dd6306c6.zip#egg=ding0-0.1.4+git.25dbbb8'],
cmdclass={
'install': InstallSetup}
)
| from setuptools import find_packages, setup
from setuptools.command.install import install
import os
BASEPATH='.eDisGo'
class InstallSetup(install):
def run(self):
self.create_edisgo_path()
install.run(self)
@staticmethod
def create_edisgo_path():
edisgo_path = os.path.join(os.path.expanduser('~'), BASEPATH)
data_path = os.path.join(edisgo_path, 'data')
if not os.path.isdir(edisgo_path):
os.mkdir(edisgo_path)
if not os.path.isdir(data_path):
os.mkdir(data_path)
setup(
name='eDisGo',
version='0.0.1',
packages=find_packages(),
url='https://github.com/openego/eDisGo',
license='GNU Affero General Public License v3.0',
author='gplssm, nesnoj, birgits',
author_email='',
description='A python package for distribution grid analysis and optimization',
install_requires = [
'ding0==0.1.4+git.25dbbb8',
'networkx >=1.11, <2.0 ',
'shapely >= 1.5.12, <= 1.5.12',
'pandas >=0.20.3, <=0.20.3',
'pypsa >=0.11.0, <=0.11.0',
'pyproj >= 1.9.5.1, <= 1.9.5.1',
'geopy >= 1.11.0, <= 1.11.0'
],
package_data={
'edisgo': [
os.path.join('config', 'config_system'),
os.path.join('config', '*.cfg'),
os.path.join('equipment', '*.csv')]
},
dependency_links=[
'https://github.com/openego/ding0/archive/25dbbb8e80c00df09af8ad0e0cdfda21dd6306c6.zip#egg=ding0-0.1.4+git.25dbbb8'],
cmdclass={
'install': InstallSetup}
)
| agpl-3.0 | Python |
36d0cd840207ae624f4e14041c331922db60f110 | Update setup.py to new markdown readme support for long description in PyPi | pipitone/qbatch,gdevenyi/qbatch | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup
from io import open
# read the contents of your README file
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='qbatch',
version='2.2',
description='Execute shell command lines in parallel on Slurm, '
'S(un|on of) Grid Engine (SGE) and PBS/Torque clusters',
author="Jon Pipitone, Gabriel A. Devenyi",
author_email="jon@pipitone.ca, gdevenyi@gmail.com",
license='Unlicense',
url="https://github.com/pipitone/qbatch",
long_description=long_description,
long_description_content_type='text/markdown',
entry_points={
"console_scripts": [
"qbatch=qbatch:qbatchParser",
]
},
packages=["qbatch"],
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Science/Research',
'License :: Public Domain',
'Natural Language :: English',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Topic :: System :: Clustering',
'Topic :: System :: Distributed Computing',
'Topic :: Utilities',
],
install_requires=[
"six",
"future",
],
)
| #!/usr/bin/env python
from setuptools import setup
# pypi doesn't like markdown
# https://github.com/pypa/packaging-problems/issues/46
try:
import pypandoc
description = pypandoc.convert('README.md', 'rst')
except (IOError, ImportError):
description = ''
setup(
name='qbatch',
version='2.2',
description='Execute shell command lines in parallel on Slurm, S(sun|on of) Grid Engine (SGE) and PBS/Torque clusters',
author="Jon Pipitone, Gabriel A. Devenyi",
author_email="jon@pipitone.ca, gdevenyi@gmail.com",
license='Unlicense',
url="https://github.com/pipitone/qbatch",
long_description=description,
entry_points = {
"console_scripts": [
"qbatch=qbatch:qbatchParser",
]
},
packages=["qbatch"],
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Science/Research',
'License :: Public Domain',
'Natural Language :: English',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Topic :: System :: Clustering',
'Topic :: System :: Distributed Computing',
'Topic :: Utilities',
],
install_requires=[
"six",
"future",
],
)
| unlicense | Python |
d7bfabc3d7205f5509badd0060d3f4e6b92e3692 | Bump version | gglockner/teslajson | setup.py | setup.py | from setuptools import setup, find_packages
# To use a consistent encoding
from codecs import open
from os import path
setup(name='teslajson',
version='1.3.1',
description='',
url='https://github.com/gglockner/teslajson',
py_modules=['teslajson'],
author='Greg Glockner',
license='MIT',
)
| from setuptools import setup, find_packages
# To use a consistent encoding
from codecs import open
from os import path
setup(name='teslajson',
version='1.3.0',
description='',
url='https://github.com/gglockner/teslajson',
py_modules=['teslajson'],
author='Greg Glockner',
license='MIT',
)
| mit | Python |
1db33200fbcbfb1b1286b5193bed1eb4638b2ae8 | Fix PyPI classifiers | gst/amqpy,veegee/amqpy | setup.py | setup.py | #!/usr/bin/env python3
import sys
import os
from setuptools import setup, find_packages
import amqpy
if sys.version_info < (3, 2):
raise Exception('amqpy requires Python 3.2 or higher')
name = 'amqpy'
description = 'an AMQP 0.9.1 client library for Python >= 3.2.0'
keywords = ['amqp', 'rabbitmq', 'qpid']
classifiers = [
'Development Status :: 4 - Beta',
'Programming Language :: Python',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'License :: OSI Approved :: MIT License',
'Intended Audience :: Developers',
'Topic :: Internet',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: System :: Networking'
]
package_data = {
'': ['*.rst', '*.ini', 'AUTHORS', 'LICENSE'],
}
def long_description():
if os.path.exists('README.rst'):
with open('README.rst') as f:
return f.read()
else:
return description
setup(
name=name,
description=description,
long_description=long_description(),
version=amqpy.__version__,
author=amqpy.__author__,
author_email=amqpy.__contact__,
maintainer=amqpy.__maintainer__,
url=amqpy.__homepage__,
platforms=['any'],
license='LGPL',
packages=find_packages(exclude=['ez_setup', 'tests', 'tests.*']),
package_data=package_data,
tests_require=['pytest>=2.6'],
classifiers=classifiers,
keywords=keywords
)
| #!/usr/bin/env python3
import sys
import os
from setuptools import setup, find_packages
import amqpy
if sys.version_info < (3, 2):
raise Exception('amqpy requires Python 3.2 or higher')
name = 'amqpy'
description = 'an AMQP 0.9.1 client library for Python >= 3.2.0'
keywords = ['amqp', 'rabbitmq', 'qpid']
classifiers = [
'Development Status :: 4 - Beta',
'Programming Language :: Python',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)',
'Intended Audience :: Developers',
]
package_data = {
'': ['*.rst', '*.ini', 'AUTHORS', 'LICENSE'],
}
def long_description():
if os.path.exists('README.rst'):
with open('README.rst') as f:
return f.read()
else:
return description
setup(
name=name,
description=description,
long_description=long_description(),
version=amqpy.__version__,
author=amqpy.__author__,
author_email=amqpy.__contact__,
maintainer=amqpy.__maintainer__,
url=amqpy.__homepage__,
platforms=['any'],
license='LGPL',
packages=find_packages(exclude=['ez_setup', 'tests', 'tests.*']),
package_data=package_data,
tests_require=['pytest>=2.6'],
classifiers=classifiers,
keywords=keywords
)
| mit | Python |
cedda1879c5d4322b86e957fc231ba2797e676c2 | Fix paths on setup.py script | vmalavolta/fabix | setup.py | setup.py | import os
from setuptools import setup, find_packages
from fabix import __version__
base_dir = os.path.dirname(__file__)
readme_file = os.path.join(base_dir, 'README.rst')
requirements_file = os.path.join(base_dir, 'requirements.txt')
setup(
name='fabix',
version=__version__,
description="Fabix is a serie of functions built on top of fabric and cuisine to easily deploy python web projects.",
long_description=open(readme_file, 'rb').read(),
keywords=['fabric', 'cuisine', 'fabix'],
author='Rodrigo Machado',
author_email='rcmachado@gmail.com',
url='http://github.com/quatix/fabix',
license='MIT',
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Console',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python :: 2.7',
'Topic :: Software Development',
'Topic :: Software Development :: Build Tools',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: System :: Systems Administration',
],
packages=find_packages(),
install_requires=open(requirements_file, "rb").read().split("\n"),
package_dir={"fabix": "fabix"}
)
| from setuptools import setup, find_packages
from fabix import __version__
setup(
name='fabix',
version=__version__,
description="Fabix is a serie of functions built on top of fabric and cuisine to easily deploy python web projects.",
long_description=open('README.rst', 'rb').read(),
keywords=['fabric', 'cuisine', 'fabix'],
author='Rodrigo Machado',
author_email='rcmachado@gmail.com',
url='http://github.com/quatix/fabix',
license='MIT',
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Console',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python :: 2.7',
'Topic :: Software Development',
'Topic :: Software Development :: Build Tools',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: System :: Systems Administration',
],
packages=find_packages(),
install_requires=open("requirements.txt").read().split("\n"),
package_dir={"fabix": "fabix"}
)
| mit | Python |
91f5ad841eea90b5c2db8e66c08c19e12bffffdf | Update "marshmallow" to v2.8.0 | RBE-Avionik/skylines,skylines-project/skylines,shadowoneau/skylines,RBE-Avionik/skylines,kerel-fs/skylines,skylines-project/skylines,shadowoneau/skylines,Turbo87/skylines,Turbo87/skylines,kerel-fs/skylines,skylines-project/skylines,Harry-R/skylines,Harry-R/skylines,kerel-fs/skylines,Turbo87/skylines,Turbo87/skylines,shadowoneau/skylines,shadowoneau/skylines,Harry-R/skylines,RBE-Avionik/skylines,Harry-R/skylines,skylines-project/skylines,RBE-Avionik/skylines | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup, find_packages
about = {}
with open("skylines/__about__.py") as fp:
exec(fp.read(), about)
setup(
name=about['__title__'],
version=about['__version__'],
description=about['__summary__'],
author=about['__author__'],
author_email=about['__email__'],
url=about['__uri__'],
packages=find_packages(),
install_requires=[
'flask==0.10.1',
'werkzeug==0.9.6',
'Flask-Babel==0.9',
'Flask-Assets==0.8',
'Flask-Login==0.2.9',
'Flask-Cache==0.12',
'Flask-Migrate==1.2.0',
'Flask-Script==0.6.7',
'Flask-SQLAlchemy==1.0',
'Flask-WTF==0.9.5',
'sqlalchemy==0.8.2',
'alembic==0.6.3',
'psycopg2==2.5.2',
'GeoAlchemy2==0.2.3',
'Shapely==1.3.0',
'crc16==0.1.1',
'Markdown==2.4',
'pytz',
'webassets==0.8',
'cssmin==0.1.4',
'closure==20140110',
'WebHelpers==1.3',
'celery[redis]>=3.1,<3.2',
'xcsoar==0.5',
'Pygments==1.6',
'aerofiles==0.1.1',
'enum34==1.0',
'pyproj==1.9.3',
'gevent==1.0.1',
'webargs==1.2.0',
'marshmallow==2.8.0',
'Flask_OAuthlib==0.9.2',
'oauthlib==0.7.2',
],
include_package_data=True,
package_data={
'skylines': [
'i18n/*/LC_MESSAGES/*.mo',
'templates/*/*',
'assets/static/*/*'
]
},
zip_safe=False
)
| #!/usr/bin/env python
from setuptools import setup, find_packages
about = {}
with open("skylines/__about__.py") as fp:
exec(fp.read(), about)
setup(
name=about['__title__'],
version=about['__version__'],
description=about['__summary__'],
author=about['__author__'],
author_email=about['__email__'],
url=about['__uri__'],
packages=find_packages(),
install_requires=[
'flask==0.10.1',
'werkzeug==0.9.6',
'Flask-Babel==0.9',
'Flask-Assets==0.8',
'Flask-Login==0.2.9',
'Flask-Cache==0.12',
'Flask-Migrate==1.2.0',
'Flask-Script==0.6.7',
'Flask-SQLAlchemy==1.0',
'Flask-WTF==0.9.5',
'sqlalchemy==0.8.2',
'alembic==0.6.3',
'psycopg2==2.5.2',
'GeoAlchemy2==0.2.3',
'Shapely==1.3.0',
'crc16==0.1.1',
'Markdown==2.4',
'pytz',
'webassets==0.8',
'cssmin==0.1.4',
'closure==20140110',
'WebHelpers==1.3',
'celery[redis]>=3.1,<3.2',
'xcsoar==0.5',
'Pygments==1.6',
'aerofiles==0.1.1',
'enum34==1.0',
'pyproj==1.9.3',
'gevent==1.0.1',
'webargs==1.2.0',
'marshmallow==2.6.1',
'Flask_OAuthlib==0.9.2',
'oauthlib==0.7.2',
],
include_package_data=True,
package_data={
'skylines': [
'i18n/*/LC_MESSAGES/*.mo',
'templates/*/*',
'assets/static/*/*'
]
},
zip_safe=False
)
| agpl-3.0 | Python |
fc08a803493596ad47189ab618d2892762f18f04 | Patch applied | skirsdeda/django-treebeard,django-treebeard/django-treebeard,tabo/django-treebeard,skirsdeda/django-treebeard,django-treebeard/django-treebeard,skirsdeda/django-treebeard,django-treebeard/django-treebeard,tabo/django-treebeard,tabo/django-treebeard,tabo/django-treebeard,skirsdeda/django-treebeard | setup.py | setup.py | #!/usr/bin/env python
import os
from distutils.core import setup
version = '1.62a'
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries",
"Topic :: Utilities",
"Environment :: Web Environment",
"Framework :: Django",
]
root_dir = os.path.dirname(__file__)
if not root_dir:
root_dir = '.'
long_desc = open(root_dir + '/README').read()
setup(
name='django-treebeard',
version=version,
url='https://tabo.pe/projects/django-treebeard/',
author='Gustavo Picon',
author_email='tabo@tabo.pe',
license='Apache License 2.0',
packages=['treebeard', 'treebeard.templatetags'],
package_dir={'treebeard': 'treebeard'},
package_data={'treebeard': ['templates/admin/*.html', 'static/treebeard/*']},
description='Efficient tree implementations for Django 1.0+',
classifiers=classifiers,
long_description=long_desc,
)
| #!/usr/bin/env python
import os
from distutils.core import setup
version = '1.62a'
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries",
"Topic :: Utilities",
"Environment :: Web Environment",
"Framework :: Django",
]
root_dir = os.path.dirname(__file__)
if not root_dir:
root_dir = '.'
long_desc = open(root_dir + '/README').read()
setup(
name='django-treebeard',
version=version,
url='https://tabo.pe/projects/django-treebeard/',
author='Gustavo Picon',
author_email='tabo@tabo.pe',
license='Apache License 2.0',
packages=['treebeard', 'treebeard.templatetags'],
package_dir={'treebeard': 'treebeard'},
package_data={'treebeard': ['templates/admin/*.html']},
description='Efficient tree implementations for Django 1.0+',
classifiers=classifiers,
long_description=long_desc,
)
| apache-2.0 | Python |
29bf9c8366f7edfdd38b4b7c843ed09d9b3e7368 | Update setup.py | Deathnerd/pyterp | setup.py | setup.py | # Test for Python version 2 only
import sys
if not sys.version_info[0] == 2:
print "Sorry, but Python 3 isn't inherently supported yet"
sys.exit(1)
from setuptools import setup, find_packages
setup(name='pyterp',
version='0.1',
description=u"A bare-bones collection of interpreters written in Python 2.7. Currently only supports Brainfuck. It's guaranteed to have bugs",
classifiers=[],
keywords='brainfuck interpreter command-line',
author=u"Wes Gilleland",
author_email='wes.gilleland@gmail.com',
url='https://github.com/Deathnerd/pyterp',
download_url='https://github.com/Deathnerd/pyterp@master',
license='MIT',
packages=find_packages(exclude=['ez_setup', 'examples', 'tests']),
include_package_data=True,
zip_safe=False,
install_requires=[
'click'
],
extras_require={
'test': ['pytest'],
},
entry_points="""
[console_scripts]
pyterp=pyterp.scripts.cli:cli
"""
)
| # Test for Python version 2 only
import sys
if not sys.version_info[0] == 2:
print "Sorry, but Python 3 isn't inherently supported yet"
sys.exit(1)
from setuptools import setup, find_packages
setup(name='pyfck',
version='0.1',
description=u"A bare-bones Brainfuck interpreter written in Python 2.7. It's guaranteed to have bugs",
classifiers=[],
keywords='brainfuck interpreter command-line',
author=u"Wes Gilleland",
author_email='wes.gilleland@gmail.com',
url='https://github.com/Deathnerd/pyfck',
download_url='https://github.com/Deathnerd/pyfck@master',
license='MIT',
packages=find_packages(exclude=['ez_setup', 'examples', 'tests']),
include_package_data=True,
zip_safe=False,
install_requires=[
'click'
],
extras_require={
'test': ['pytest'],
},
entry_points="""
[console_scripts]
pyfck=pyfck.scripts.cli:cli
"""
)
| mit | Python |
bc9536aeabb778e0e8b53f89471b46e4ce9f3c87 | Change package name to "couchbase" | mnunberg/couchbase-python-client,couchbase/couchbase-python-client,couchbase/couchbase-python-client,mnunberg/couchbase-python-client | setup.py | setup.py | from distutils.core import setup, Command
from distutils.extension import Extension
from distutils.version import StrictVersion
import os
import sys
# Use Cython if available.
try:
from Cython import __version__ as cython_version
from Cython.Build import cythonize
except ImportError:
print('importerror')
cythonize = None
# When building from a repo, Cython is required.
if os.path.exists("MANIFEST.in"):
print("MANIFEST.in found, presume a repo, cythonizing...")
if not cythonize:
print(
"Error: Cython.Build.cythonize not found. "
"Cython is required to build from a repo.")
sys.exit(1)
elif StrictVersion(cython_version) <= StrictVersion("0.18"):
print("Error: You need a Cython version newer than 0.18")
sys.exit(1)
ext_modules = cythonize([
Extension(
'couchbase/libcouchbase', ['couchbase/libcouchbase.pyx'],
libraries=['couchbase'])])
# If there's no manifest template, as in an sdist, we just specify .c files.
else:
ext_modules = [
Extension(
'couchbase/libcouchbase', ['couchbase/libcouchbase.c'],
libraries=['couchbase'])]
setup(
name="couchbase",
version="0.9",
url="https://github.com/couchbase/couchbase-python-client",
author="Volker Mische",
author_email="volker@couchbase.com",
license="Apache License 2.0",
classifiers=[
"Development Status :: 3 - Alpha",
"License :: OSI Approved :: Apache Software License",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Python Modules"],
ext_modules=ext_modules,
packages=['couchbase']
)
| from distutils.core import setup, Command
from distutils.extension import Extension
from distutils.version import StrictVersion
import os
import sys
# Use Cython if available.
try:
from Cython import __version__ as cython_version
from Cython.Build import cythonize
except ImportError:
print('importerror')
cythonize = None
# When building from a repo, Cython is required.
if os.path.exists("MANIFEST.in"):
print("MANIFEST.in found, presume a repo, cythonizing...")
if not cythonize:
print(
"Error: Cython.Build.cythonize not found. "
"Cython is required to build from a repo.")
sys.exit(1)
elif StrictVersion(cython_version) <= StrictVersion("0.18"):
print("Error: You need a Cython version newer than 0.18")
sys.exit(1)
ext_modules = cythonize([
Extension(
'couchbase/libcouchbase', ['couchbase/libcouchbase.pyx'],
libraries=['couchbase'])])
# If there's no manifest template, as in an sdist, we just specify .c files.
else:
ext_modules = [
Extension(
'couchbase/libcouchbase', ['couchbase/libcouchbase.c'],
libraries=['couchbase'])]
setup(
name="couchbase-python-sdk",
version="0.9",
url="https://github.com/couchbase/couchbase-python-client",
author="Volker Mische",
author_email="volker@couchbase.com",
license="Apache License 2.0",
classifiers=[
"Development Status :: 3 - Alpha",
"License :: OSI Approved :: Apache Software License",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Python Modules"],
ext_modules=ext_modules,
packages=['couchbase']
)
| apache-2.0 | Python |
9f6ecbde53dc9e115daa1fcfd269f3ff22214fc3 | update distribution version | merrywhether/autoprotocol-python,therzka/autoprotocol-python,transcripticpll/autoprotocol-python | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup
setup(
name='autoprotocol',
url='http://github.com/autoprotocol/autoprotocol-python',
author='Tali Herzka',
description='Python library for generating Autoprotocol',
author_email="tali@transcriptic.com",
version='2.0.5',
test_suite='test',
packages=['autoprotocol']
)
| #!/usr/bin/env python
from setuptools import setup
setup(
name='autoprotocol',
url='http://github.com/autoprotocol/autoprotocol-python',
author='Tali Herzka',
description='Python library for generating Autoprotocol',
author_email="tali@transcriptic.com",
version='2.0.3',
test_suite='test',
packages=['autoprotocol']
)
| bsd-3-clause | Python |
6f29dc9979cd35618f8f16a71a3e960f2a826533 | Update setup.py to use find_packages function | davidgasquez/tip | setup.py | setup.py | from setuptools import setup, find_packages
setup(
name='tip',
version='0.1',
description='Code to prepare traditional technical interviews.',
url='https://github.com/davidgasquez/tip',
author='David Gasquez',
author_email='davidgasquez@gmail.com',
license='Unlicense',
packages=find_packages(),
classifiers=[
'Development Status :: 1 - Planning',
'Programming Language :: Python :: 3',
],
keywords='algorithms data-structures'
)
| from setuptools import setup
setup(
name='tip',
version='0.1',
description='Code to prepare traditional technical interviews.',
url='https://github.com/davidgasquez/tip',
author='David Gasquez',
author_email='davidgasquez@gmail.com',
license='Unlicense',
packages=['tip'],
classifiers=[
'Development Status :: 1 - Planning',
'Programming Language :: Python :: 3',
],
keywords='algorithms data-structures'
)
| unlicense | Python |
448c9b3bcbaa3da3fc4bab8cc3096e655a704036 | Update setup.py - bump version | AASHE/django-membersuite-auth | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup
import os
# Utility function to read README.md file
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(name="django-membersuite-auth",
version="2.5.1",
description="Django Authentication By MemberSuite",
author=("Association for the Advancement of Sustainability in "
"Higher Education"),
author_email="webdev@aashe.org",
url="https://github.com/AASHE/django-membersuite-auth",
long_description=read("README.md"),
packages=[
"django_membersuite_auth",
"django_membersuite_auth.migrations"
],
classifiers=[
"Environment :: Web Environment",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.5",
"Framework :: Django"
],
include_package_data=True,
install_requires=["future",
"membersuite-api-client==1.1.1"
]
) # noqa what's visual indentation?
| #!/usr/bin/env python
from setuptools import setup
import os
# Utility function to read README.md file
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(name="django-membersuite-auth",
version="2.5",
description="Django Authentication By MemberSuite",
author=("Association for the Advancement of Sustainability in "
"Higher Education"),
author_email="webdev@aashe.org",
url="https://github.com/AASHE/django-membersuite-auth",
long_description=read("README.md"),
packages=[
"django_membersuite_auth",
"django_membersuite_auth.migrations"
],
classifiers=[
"Environment :: Web Environment",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.5",
"Framework :: Django"
],
include_package_data=True,
install_requires=["future",
"membersuite-api-client==1.1"
]
) # noqa what's visual indentation?
| mit | Python |
20ccae78520fae0bdff2fb13cce4f4fed62b8d3b | Remove unused import. | phyng/zuobiao,phyng/zuobiao,phyng/zuobiao | zuobiao/tools.py | zuobiao/tools.py |
import csv
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "zuobiao.settings")
import django
django.setup()
from dashboard.models import Question, Anser, User
from dashboard.models import INCOME_CHOICES, EDU_CHOICES, ANSER_CHOICES
import datetime
# Import date from csv
with open('2014data.csv', 'r') as f:
reader = csv.reader(f)
questions = []
for i, row in enumerate(reader):
print(i)
if i == 0:
for item in row[3:-4]:
question = Question.objects.create(name=item.strip())
questions.append(question)
else:
created, ip, = row[1:3]
sex, birthday, income, education = row[-4:]
if created == 'NULL' or sex == 'NULL' or not birthday:
continue
created = datetime.datetime.strptime(created, '%Y-%m-%d %H:%M:%S')
education = [k for k, v in EDU_CHOICES if education == v][0]
income = [k for k, v in INCOME_CHOICES if income == v][0]
sex = 1 if sex == 'M' else 2
user = User.objects.create(
created=created,
education=education,
income=income,
sex=sex,
ip=ip,
birthday=birthday
)
ansers = []
for index, item in enumerate(row[3:-4]):
ansers.append(Anser(
created=created,
question=questions[index],
user=user,
choice=[k for k, v in ANSER_CHOICES if item == v][0]
))
Anser.objects.bulk_create(ansers)
|
import csv
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "zuobiao.settings")
import django
django.setup()
from dashboard.models import Question, Anser, User
from dashboard.models import SEX_CHOICES, INCOME_CHOICES, EDU_CHOICES, ANSER_CHOICES
import datetime
import re
# Import date from csv
with open('2014data.csv', 'r') as f:
reader = csv.reader(f)
questions = []
for i, row in enumerate(reader):
print(i)
if i == 0:
for item in row[3:-4]:
question = Question.objects.create(name=item.strip())
questions.append(question)
else:
created, ip, = row[1:3]
sex, birthday, income, education = row[-4:]
if created == 'NULL' or sex == 'NULL' or not birthday:
continue
created = datetime.datetime.strptime(created, '%Y-%m-%d %H:%M:%S')
education = [k for k, v in EDU_CHOICES if education == v][0]
income = [k for k, v in INCOME_CHOICES if income == v][0]
sex = 1 if sex == 'M' else 2
user = User.objects.create(
created=created,
education=education,
income=income,
sex=sex,
ip=ip,
birthday=birthday
)
ansers = []
for index, item in enumerate(row[3:-4]):
ansers.append(Anser(
created=created,
question=questions[index],
user=user,
choice=[k for k, v in ANSER_CHOICES if item == v][0]
))
Anser.objects.bulk_create(ansers)
| mit | Python |
b02601bf49baf781cf699205b2d9024250f96038 | bump to 025 | inorton/junit2html | setup.py | setup.py | from distutils.core import setup
files = ["*.css"]
setup(
name="junit2html",
version="025",
description="Generate HTML reports from Junit results",
author="Ian Norton",
author_email="inorton@gmail.com",
url="https://gitlab.com/inorton/junit2html",
packages=["junit2htmlreport"],
package_data={"junit2htmlreport": files},
entry_points={'console_scripts': ['junit2html=junit2htmlreport.runner:start']},
platforms=["any"],
license="License :: OSI Approved :: MIT License",
long_description="Genearate a single file HTML report from a Junit XML file"
)
| from distutils.core import setup
files = ["*.css"]
setup(
name="junit2html",
version="25",
description="Generate HTML reports from Junit results",
author="Ian Norton",
author_email="inorton@gmail.com",
url="https://gitlab.com/inorton/junit2html",
packages=["junit2htmlreport"],
package_data={"junit2htmlreport": files},
entry_points={'console_scripts': ['junit2html=junit2htmlreport.runner:start']},
platforms=["any"],
license="License :: OSI Approved :: MIT License",
long_description="Genearate a single file HTML report from a Junit XML file"
)
| mit | Python |
a16676f3b86b60714d8f9d3285a1aa7a17a17c1a | Rename test_reqs to dev_reqs | reillysiemens/wb2k | setup.py | setup.py | #!/usr/bin/env python3
import re
import os.path
import sys
from setuptools import setup, find_packages
from pip.req import parse_requirements
if sys.version_info < (3, 6):
sys.exit('Python 3.6+ is required. Ancient Python is unsupported.')
here = os.path.abspath(os.path.dirname(__file__))
readme_path = os.path.join(here, 'README.md')
with open(readme_path, 'r') as readme_file:
readme = readme_file.read()
# Borrowed from https://github.com/Gandi/gandi.cli/blob/master/setup.py
version_path = os.path.join(here, 'wb2k', '__init__.py')
with open(version_path, 'r') as version_file:
version = re.compile(r".*__version__ = '(.*?)'",
re.S).match(version_file.read()).group(1)
install_reqs = [str(r.req) for r in parse_requirements('requirements.txt', session=False)]
dev_reqs = [str(r.req) for r in parse_requirements('dev-requirements.txt', session=False)]
setup(
name='wb2k',
version=version,
description='Welcome new folks to #general.',
long_description=readme,
author='Reilly Tucker Siemens',
author_email='reilly@tuckersiemens.com',
url='https://github.com/reillysiemens/wb2k',
packages=find_packages(),
package_dir={'wb2k': 'wb2k'},
include_package_data=True,
install_requires=install_reqs,
license='ISCL',
zip_safe=False,
py_modules=['wb2k'],
keywords='welcome bot Slack',
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Environment :: Console',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: ISC License (ISCL)',
'Natural Language :: English',
'Operating System :: POSIX :: Linux',
'Operating System :: POSIX :: BSD :: FreeBSD',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3 :: Only',
],
test_suite='tests',
tests_require=dev_reqs,
extras_require={
'dev': dev_reqs,
},
entry_points={
'console_scripts': [
'wb2k=wb2k.__main__:cli',
],
},
)
| #!/usr/bin/env python3
import re
import os.path
import sys
from setuptools import setup, find_packages
from pip.req import parse_requirements
if sys.version_info < (3, 6):
sys.exit('Python 3.6+ is required. Ancient Python is unsupported.')
here = os.path.abspath(os.path.dirname(__file__))
readme_path = os.path.join(here, 'README.md')
with open(readme_path, 'r') as readme_file:
readme = readme_file.read()
# Borrowed from https://github.com/Gandi/gandi.cli/blob/master/setup.py
version_path = os.path.join(here, 'wb2k', '__init__.py')
with open(version_path, 'r') as version_file:
version = re.compile(r".*__version__ = '(.*?)'",
re.S).match(version_file.read()).group(1)
install_reqs = [str(r.req) for r in parse_requirements('requirements.txt', session=False)]
test_reqs = [str(r.req) for r in parse_requirements('dev-requirements.txt', session=False)]
setup(
name='wb2k',
version=version,
description='Welcome new folks to #general.',
long_description=readme,
author='Reilly Tucker Siemens',
author_email='reilly@tuckersiemens.com',
url='https://github.com/reillysiemens/wb2k',
packages=find_packages(),
package_dir={'wb2k': 'wb2k'},
include_package_data=True,
install_requires=install_reqs,
license='ISCL',
zip_safe=False,
py_modules=['wb2k'],
keywords='welcome bot Slack',
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Environment :: Console',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: ISC License (ISCL)',
'Natural Language :: English',
'Operating System :: POSIX :: Linux',
'Operating System :: POSIX :: BSD :: FreeBSD',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3 :: Only',
],
test_suite='tests',
tests_require=test_reqs,
extras_require={
'dev': test_reqs,
},
entry_points={
'console_scripts': [
'wb2k=wb2k.__main__:cli',
],
},
)
| isc | Python |
32285391c33eb15f56803007be28aae1239626ac | Update setup.py | helo9/wingstructure | setup.py | setup.py | import sys, os
from setuptools import setup, find_packages
# taken from http://www.pydanny.com/python-dot-py-tricks.html
if sys.argv[-1] == 'test':
test_requirements = [
'pytest',
]
try:
modules = map(__import__, test_requirements)
except ImportError as e:
err_msg = e.message.replace("No module named ", "")
msg = "%s is not installed. Install your test requirments." % err_msg
raise ImportError(msg)
os.system('py.test')
sys.exit()
# -------------------------------------------
setup(name='wingstructure',
version='0.0.1',
description='',
url='None',
author='helo',
author_email='-',
license='GPL 2.0',
packages=['wingstructure'],
install_requires= [
'numpy',
'shapely',
'svgwrite',
'sortedcontainers'
],
zip_safe=False
)
| import sys, os
from setuptools import setup, find_packages
# taken from http://www.pydanny.com/python-dot-py-tricks.html
if sys.argv[-1] == 'test':
test_requirements = [
'pytest',
]
try:
modules = map(__import__, test_requirements)
except ImportError as e:
err_msg = e.message.replace("No module named ", "")
msg = "%s is not installed. Install your test requirments." % err_msg
raise ImportError(msg)
os.system('py.test')
sys.exit()
# -------------------------------------------
setup(name='wingstructure',
version='0.0.1',
description='',
url='None',
author='helo',
author_email='-',
license='GPL 2.0',
packages=['wingstructure'],
install_requires= [
'numpy',
'shapely',
'svgwrite'
],
zip_safe=False
)
| mit | Python |
4abb61e585d54681211e918687d18a90a0c016a1 | Bump minor version | efficios/pytsdl | setup.py | setup.py | #!/usr/bin/env python3
#
# The MIT License (MIT)
#
# Copyright (c) 2014 Philippe Proulx <philippe.proulx@efficios.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.
import os
import sys
import subprocess
from setuptools import setup
# make sure we run Python 3+ here
v = sys.version_info
if v.major < 3:
sys.stderr.write('Sorry, pytsdl needs Python 3\n')
sys.exit(1)
packages = [
'pytsdl',
]
install_requires = [
'pyPEG2',
]
setup(name='pytsdl',
version=0.7,
description='TSDL parser implemented entirely in Python 3',
author='Philippe Proulx',
author_email='eeppeliteloop@gmail.com',
license='MIT',
keywords='tsdl ctf metadata',
url='https://github.com/eepp/pytsdl',
packages=packages,
install_requires=install_requires)
| #!/usr/bin/env python3
#
# The MIT License (MIT)
#
# Copyright (c) 2014 Philippe Proulx <philippe.proulx@efficios.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.
import os
import sys
import subprocess
from setuptools import setup
# make sure we run Python 3+ here
v = sys.version_info
if v.major < 3:
sys.stderr.write('Sorry, pytsdl needs Python 3\n')
sys.exit(1)
packages = [
'pytsdl',
]
install_requires = [
'pyPEG2',
]
setup(name='pytsdl',
version=0.6,
description='TSDL parser implemented entirely in Python 3',
author='Philippe Proulx',
author_email='eeppeliteloop@gmail.com',
license='MIT',
keywords='tsdl ctf metadata',
url='https://github.com/eepp/pytsdl',
packages=packages,
install_requires=install_requires)
| mit | Python |
323bbde203e891966a0b2278edb00a4c62aba966 | Prepare openprocurement.auction 1.0.0.dev61. | openprocurement/openprocurement.auction,openprocurement/openprocurement.auction | setup.py | setup.py | from setuptools import setup, find_packages
import os
version = '1.0.0.dev61'
setup(name='openprocurement.auction',
version=version,
description="",
long_description=open("README.txt").read() + "\n" +
open(os.path.join("docs", "HISTORY.txt")).read(),
# Get more strings from
# http://pypi.python.org/pypi?:action=list_classifiers
classifiers=[
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python",
],
keywords='',
author='Quintagroup, Ltd.',
author_email='info@quintagroup.com',
license='Apache License 2.0',
url='https://github.com/openprocurement/openprocurement.auction',
packages=find_packages(exclude=['ez_setup']),
namespace_packages=['openprocurement'],
include_package_data=True,
zip_safe=False,
install_requires=[
'setuptools',
'requests',
'APScheduler',
'iso8601',
'python-dateutil',
'Flask',
'WTForms',
'WTForms-JSON',
'Flask-Redis',
'WSGIProxy2',
'gevent',
'sse',
'flask_oauthlib',
'Flask-Assets',
'cssmin',
'jsmin',
'PyYAML'
],
entry_points={
'console_scripts': [
'auction_worker = openprocurement.auction.auction_worker:main',
'auctions_data_bridge = openprocurement.auction.databridge:main'
],
'paste.app_factory': [
'auctions_server = openprocurement.auction.auctions_server:make_auctions_app'
]
},
)
| from setuptools import setup, find_packages
import os
version = '1.0.0.dev60'
setup(name='openprocurement.auction',
version=version,
description="",
long_description=open("README.txt").read() + "\n" +
open(os.path.join("docs", "HISTORY.txt")).read(),
# Get more strings from
# http://pypi.python.org/pypi?:action=list_classifiers
classifiers=[
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python",
],
keywords='',
author='Quintagroup, Ltd.',
author_email='info@quintagroup.com',
license='Apache License 2.0',
url='https://github.com/openprocurement/openprocurement.auction',
packages=find_packages(exclude=['ez_setup']),
namespace_packages=['openprocurement'],
include_package_data=True,
zip_safe=False,
install_requires=[
'setuptools',
'requests',
'APScheduler',
'iso8601',
'python-dateutil',
'Flask',
'WTForms',
'WTForms-JSON',
'Flask-Redis',
'WSGIProxy2',
'gevent',
'sse',
'flask_oauthlib',
'Flask-Assets',
'cssmin',
'jsmin',
'PyYAML'
],
entry_points={
'console_scripts': [
'auction_worker = openprocurement.auction.auction_worker:main',
'auctions_data_bridge = openprocurement.auction.databridge:main'
],
'paste.app_factory': [
'auctions_server = openprocurement.auction.auctions_server:make_auctions_app'
]
},
)
| apache-2.0 | Python |
8b3e8f061e4f1cc4c9937a26de9daba4a8c3dee3 | Update setup.py classifiers | caktus/django-email-bandit,caktus/django-email-bandit | setup.py | setup.py | from setuptools import find_packages, setup
setup(
name="django-email-bandit",
version=__import__("bandit").__version__,
author="Caktus Consulting Group",
author_email="solutions@caktusgroup.com",
packages=find_packages(),
include_package_data=True,
url="https://github.com/caktus/django-email-bandit",
license="BSD",
description=" ".join(__import__("bandit").__doc__.splitlines()).strip(),
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Framework :: Django",
"Framework :: Django :: 2.2",
"Framework :: Django :: 3.0",
"Framework :: Django :: 3.1",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
"Topic :: Software Development :: Libraries :: Python Modules",
],
long_description=open("README.rst").read(),
test_suite="runtests.runtests",
zip_safe=False,
)
| from setuptools import find_packages, setup
setup(
name="django-email-bandit",
version=__import__("bandit").__version__,
author="Caktus Consulting Group",
author_email="solutions@caktusgroup.com",
packages=find_packages(),
include_package_data=True,
url="https://github.com/caktus/django-email-bandit",
license="BSD",
description=" ".join(__import__("bandit").__doc__.splitlines()).strip(),
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Framework :: Django",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
"Topic :: Software Development :: Libraries :: Python Modules",
],
long_description=open("README.rst").read(),
test_suite="runtests.runtests",
zip_safe=False,
)
| bsd-3-clause | Python |
f383fff598eca983543eb9ed3f4f9a0a24bca3b6 | Bump version number to 0.1.3. | dplepage/vertigo | setup.py | setup.py | #!/usr/bin/env python
from distutils.core import setup
setup(
name='vertigo',
version='0.1.3',
license='BSD',
author="Daniel Lepage",
author_email="dplepage@gmail.com",
packages=['vertigo',],
long_description="""
=========================================
Vertigo: Some really simple graph tools
=========================================
Vertigo is a small collection of classes and functions for building and working
with graphs with labeled edges. This is useful because dictionaries are just
graphs with labeled edges, and objects in Python are just dictionaries, so
really this applies to pretty much all objects.
See README.rst for more info
""",
url='https://github.com/dplepage/vertigo',
classifiers=[
"Development Status :: 3 - Alpha",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3",
]
) | #!/usr/bin/env python
from distutils.core import setup
setup(
name='vertigo',
version='0.1.2',
license='BSD',
author="Daniel Lepage",
author_email="dplepage@gmail.com",
packages=['vertigo',],
long_description="""
=========================================
Vertigo: Some really simple graph tools
=========================================
Vertigo is a small collection of classes and functions for building and working
with graphs with labeled edges. This is useful because dictionaries are just
graphs with labeled edges, and objects in Python are just dictionaries, so
really this applies to pretty much all objects.
See README.rst for more info
""",
url='https://github.com/dplepage/vertigo',
classifiers=[
"Development Status :: 3 - Alpha",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3",
]
) | bsd-3-clause | Python |
8e9642ea2b364b3a2508b9d765bad8d8bf115200 | Bump python-telegram-bot to version 10 | BotDevGroup/marvin,BotDevGroup/marvin,BotDevGroup/marvin | setup.py | setup.py | #!/usr/bin/env python
from distutils.core import setup
import sys
from setuptools import find_packages
REQUIREMENTS = [
'python-telegram-bot~=10.1.0',
'blinker',
'python-dateutil',
'dogpile.cache==0.6.2',
'mongoengine==0.10.6',
'polling',
'pytz',
'ipython',
'ipdb',
'requests',
'apscheduler'
]
if sys.platform.startswith('win'):
REQUIREMENTS.append('pyreadline')
setup(name='marvinbot',
version='0.4',
description='Super Duper Telegram Bot - MK. III',
author='BotDevGroup',
author_email='',
packages=find_packages(),
zip_safe=False,
include_package_data=True,
package_data={'': ['*.ini']},
# namespace_packages=["telegrambot",],
install_requires=REQUIREMENTS,
setup_requires=['pytest-runner'],
tests_require=['pytest'],
dependency_links=[
],)
| #!/usr/bin/env python
from distutils.core import setup
from setuptools import find_packages
import sys
REQUIREMENTS = [
'python-telegram-bot~=8.1.1',
'blinker',
'python-dateutil',
'dogpile.cache==0.6.2',
'mongoengine==0.10.6',
'polling',
'pytz',
'ipython',
'ipdb',
'requests',
'apscheduler'
]
if sys.platform.startswith('win'):
REQUIREMENTS.append('pyreadline')
setup(name='marvinbot',
version='0.4',
description='Super Duper Telegram Bot - MK. III',
author='BotDevGroup',
author_email='',
packages=find_packages(),
zip_safe=False,
include_package_data=True,
package_data={'': ['*.ini']},
# namespace_packages=["telegrambot",],
install_requires=REQUIREMENTS,
setup_requires=['pytest-runner'],
tests_require=['pytest'],
dependency_links=[
],)
| mit | Python |
70da117e83c01ba07407016b0e35ec46a723e4fb | switch to pyannote.core 0.13 | pyannote/pyannote-generators,hbredin/pyannote-generators | setup.py | setup.py | #!/usr/bin/env python
# encoding: utf-8
# The MIT License (MIT)
# Copyright (c) 2016 CNRS
# 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.
# AUTHORS
# Hervé BREDIN - http://herve.niderb.fr
import versioneer
from setuptools import setup, find_packages
setup(
# package
namespace_packages=['pyannote'],
packages=find_packages(),
install_requires=[
'pyannote.core >= 0.13',
'pyannote.database >= 0.11'
],
# versioneer
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
# PyPI
name='pyannote.generators',
description=('Generators'),
author='Hervé Bredin',
author_email='bredin@limsi.fr',
url='http://herve.niderb.fr/',
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Topic :: Scientific/Engineering"
],
)
| #!/usr/bin/env python
# encoding: utf-8
# The MIT License (MIT)
# Copyright (c) 2016 CNRS
# 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.
# AUTHORS
# Hervé BREDIN - http://herve.niderb.fr
import versioneer
from setuptools import setup, find_packages
setup(
# package
namespace_packages=['pyannote'],
packages=find_packages(),
install_requires=[
'pyannote.core >= 0.11.1',
'pyannote.database >= 0.11'
],
# versioneer
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
# PyPI
name='pyannote.generators',
description=('Generators'),
author='Hervé Bredin',
author_email='bredin@limsi.fr',
url='http://herve.niderb.fr/',
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Topic :: Scientific/Engineering"
],
)
| mit | Python |
025bad8caee06584eb730e2f15a259e51adfea3b | Fix Markdown link | retext-project/pymarkups,mitya57/pymarkups | setup.py | setup.py | #!/usr/bin/python
from distutils.core import setup
long_description = \
"""This module provides a wrapper around the various text markup languages,
such as Markdown_ and reStructuredText_ (these two are supported by default).
Usage example:
>>> markup = markups.get_markup_for_file_name("myfile.rst")
>>> markup.name
'reStructuredText'
>>> markup.attributes[markups.SYNTAX_DOCUMENTATION]
'http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html'
>>> text = "Hello, world!\\n=============\\n\\nThis is an example **reStructuredText** document."
>>> markup.get_document_title(text)
'Hello, world!'
>>> markup.get_document_body(text)
'<p>This is an example <strong>reStructuredText</strong> document.</p>\\n'
.. _Markdown: http://daringfireball.net/projects/markdown/
.. _reStructuredText: http://docutils.sourceforge.net/rst.html
"""
classifiers = ['Development Status :: 4 - Beta',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.0',
'Programming Language :: Python :: 3.1',
'Programming Language :: Python :: 3.2',
'Topic :: Text Processing :: Markup',
'Topic :: Text Processing :: General',
'Topic :: Software Development :: Libraries :: Python Modules'
]
setup(name='Markups',
version='0.2',
description='A wrapper around various text markups',
long_description=long_description,
author='Dmitry Shachnev',
author_email='mitya57@gmail.com',
url='http://launchpad.net/python-markups',
packages=['markups'],
license='BSD',
classifiers=classifiers,
requires=['dbus']
)
| #!/usr/bin/python
from distutils.core import setup
long_description = \
"""This module provides a wrapper around the various text markup languages,
such as Markdown_ and reStructuredText_ (these two are supported by default).
Usage example:
>>> markup = markups.get_markup_for_file_name("myfile.rst")
>>> markup.name
'reStructuredText'
>>> markup.attributes[markups.SYNTAX_DOCUMENTATION]
'http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html'
>>> text = "Hello, world!\\n=============\\n\\nThis is an example **reStructuredText** document."
>>> markup.get_document_title(text)
'Hello, world!'
>>> markup.get_document_body(text)
'<p>This is an example <strong>reStructuredText</strong> document.</p>\\n'
.. _Markdown: http://pypi.python.org/pypi/Markdown/
.. _reStructuredText: http://docutils.sourceforge.net/rst.html
"""
classifiers = ['Development Status :: 4 - Beta',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.0',
'Programming Language :: Python :: 3.1',
'Programming Language :: Python :: 3.2',
'Topic :: Text Processing :: Markup',
'Topic :: Text Processing :: General',
'Topic :: Software Development :: Libraries :: Python Modules'
]
setup(name='Markups',
version='0.2',
description='A wrapper around various text markups',
long_description=long_description,
author='Dmitry Shachnev',
author_email='mitya57@gmail.com',
url='http://launchpad.net/python-markups',
packages=['markups'],
license='BSD',
classifiers=classifiers,
requires=['dbus']
)
| bsd-3-clause | Python |
f3946164e9b52ca1424e0cf1103351423c395b79 | Bump package version to 1.2.2 | MasterKale/django-cra-helper | setup.py | setup.py | from setuptools import setup, find_packages
# To use a consistent encoding
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
with open("README.md", "r") as fh:
long_description = fh.read()
setup(
name='django-cra-helper',
version='1.2.2',
description='The missing piece of the Django + React puzzle',
long_description=long_description,
long_description_content_type="text/markdown",
url='https://github.com/MasterKale/django-cra-helper',
author='Matthew Miller',
author_email='matthew@millerti.me',
license='MIT',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
],
keywords='django react create-react-app integrate',
packages=find_packages(exclude=['contrib', 'docs', 'tests']),
install_requires=[
'bleach>=3.1.4',
'django-proxy>=1.2.1',
],
)
| from setuptools import setup, find_packages
# To use a consistent encoding
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
with open("README.md", "r") as fh:
long_description = fh.read()
setup(
name='django-cra-helper',
version='1.2.1',
description='The missing piece of the Django + React puzzle',
long_description=long_description,
long_description_content_type="text/markdown",
url='https://github.com/MasterKale/django-cra-helper',
author='Matthew Miller',
author_email='matthew@millerti.me',
license='MIT',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
],
keywords='django react create-react-app integrate',
packages=find_packages(exclude=['contrib', 'docs', 'tests']),
install_requires=[
'bleach>=3.1.4',
'django-proxy>=1.2.1',
],
)
| mit | Python |
a8ef44b418060447db00d950236760faff392776 | Make setup.py executable | grengojbo/grappelli-admin-tools-trunk,grengojbo/grappelli-admin-tools,grengojbo/grappelli-admin-tools-trunk,grengojbo/grappelli-admin-tools,grengojbo/grappelli-admin-tools-trunk,grengojbo/grappelli-admin-tools | setup.py | setup.py | #!/usr/bin/env python
from distutils.core import setup
import os
from admin_tools import VERSION
# taken from django-registration
# Compile the list of packages available, because distutils doesn't have
# an easy way to do this.
packages, data_files = [], []
root_dir = os.path.dirname(__file__)
if root_dir:
os.chdir(root_dir)
for dirpath, dirnames, filenames in os.walk('admin_tools'):
# Ignore dirnames that start with '.'
for i, dirname in enumerate(dirnames):
if dirname.startswith('.'): del dirnames[i]
if '__init__.py' in filenames:
pkg = dirpath.replace(os.path.sep, '.')
if os.path.altsep:
pkg = pkg.replace(os.path.altsep, '.')
packages.append(pkg)
elif filenames:
prefix = dirpath[12:] # Strip "admin_tools/" or "admin_tools\"
for f in filenames:
data_files.append(os.path.join(prefix, f))
bitbucket_url = 'http://www.bitbucket.org/izi/django-admin-tools/'
long_desc = '''
%s
%s
''' % (open('README').read(), open('CHANGELOG').read())
setup(
name='django-admin-tools',
version=VERSION.replace(' ', '-'),
description=('A collection of tools for the django administration '
'interface'),
long_description=long_desc,
author='David Jean Louis',
author_email='izimobil@gmail.com',
url=bitbucket_url,
download_url='%sdownloads/django-admin-tools-%s.tar.gz' % (bitbucket_url, VERSION),
package_dir={'admin_tools': 'admin_tools'},
packages=packages,
package_data={'admin_tools': data_files},
license='MIT License',
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules'
],
)
| from distutils.core import setup
import os
from admin_tools import VERSION
# taken from django-registration
# Compile the list of packages available, because distutils doesn't have
# an easy way to do this.
packages, data_files = [], []
root_dir = os.path.dirname(__file__)
if root_dir:
os.chdir(root_dir)
for dirpath, dirnames, filenames in os.walk('admin_tools'):
# Ignore dirnames that start with '.'
for i, dirname in enumerate(dirnames):
if dirname.startswith('.'): del dirnames[i]
if '__init__.py' in filenames:
pkg = dirpath.replace(os.path.sep, '.')
if os.path.altsep:
pkg = pkg.replace(os.path.altsep, '.')
packages.append(pkg)
elif filenames:
prefix = dirpath[12:] # Strip "admin_tools/" or "admin_tools\"
for f in filenames:
data_files.append(os.path.join(prefix, f))
bitbucket_url = 'http://www.bitbucket.org/izi/django-admin-tools/'
long_desc = '''
%s
%s
''' % (open('README').read(), open('CHANGELOG').read())
setup(
name='django-admin-tools',
version=VERSION.replace(' ', '-'),
description=('A collection of tools for the django administration '
'interface'),
long_description=long_desc,
author='David Jean Louis',
author_email='izimobil@gmail.com',
url=bitbucket_url,
download_url='%sdownloads/django-admin-tools-%s.tar.gz' % (bitbucket_url, VERSION),
package_dir={'admin_tools': 'admin_tools'},
packages=packages,
package_data={'admin_tools': data_files},
license='MIT License',
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules'
],
)
| mit | Python |
c8d3dc7e8801308edfdd960ecc68ea4192dda415 | add depenency to setup.py | aio-libs/aiomysql | setup.py | setup.py | import os
import re
import sys
from setuptools import setup, find_packages
install_requires = ['PyMySQL>=0.6.3']
PY_VER = sys.version_info
if PY_VER >= (3, 4):
pass
elif PY_VER >= (3, 3):
install_requires.append('asyncio')
else:
raise RuntimeError("aiomysql doesn't suppport Python earllier than 3.3")
def read(f):
return open(os.path.join(os.path.dirname(__file__), f)).read().strip()
def read_version():
regexp = re.compile(r"^__version__\W*=\W*'([\d.abrc]+)'")
init_py = os.path.join(os.path.dirname(__file__),
'aiomysql', '__init__.py')
with open(init_py) as f:
for line in f:
match = regexp.match(line)
if match is not None:
return match.group(1)
else:
raise RuntimeError('Cannot find version in aiomysql/__init__.py')
classifiers=[
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: Implementation :: CPython',
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Topic :: Database',
],
setup(name='aiomysql',
version=read_version(),
description=('MySQL driver for asyncio.'),
long_description='\n\n'.join((read('README.rst'), read('CHANGES.rst'))),
classifiers=classifiers,
platforms=['POSIX'],
author='',
author_email='',
url='http://aiomysql.readthedocs.org',
download_url='https://pypi.python.org/pypi/aiomysql',
license='MIT',
packages=find_packages(),
install_requires=install_requires,
include_package_data = True)
| import os
import re
import sys
from setuptools import setup, find_packages
install_requires = []
PY_VER = sys.version_info
if PY_VER >= (3, 4):
pass
elif PY_VER >= (3, 3):
install_requires.append('asyncio')
else:
raise RuntimeError("aiomysql doesn't suppport Python earllier than 3.3")
def read(f):
return open(os.path.join(os.path.dirname(__file__), f)).read().strip()
def read_version():
regexp = re.compile(r"^__version__\W*=\W*'([\d.abrc]+)'")
init_py = os.path.join(os.path.dirname(__file__),
'aiomysql', '__init__.py')
with open(init_py) as f:
for line in f:
match = regexp.match(line)
if match is not None:
return match.group(1)
else:
raise RuntimeError('Cannot find version in aiomysql/__init__.py')
classifiers=[
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: Implementation :: CPython',
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Topic :: Database',
],
setup(name='aiomysql',
version=read_version(),
description=('MySQL driver for asyncio.'),
long_description='\n\n'.join((read('README.rst'), read('CHANGES.rst'))),
classifiers=classifiers,
platforms=['POSIX'],
author='',
author_email='',
url='http://aiomysql.readthedocs.org',
download_url='https://pypi.python.org/pypi/aiomysql',
license='MIT',
packages=find_packages(),
install_requires=install_requires,
include_package_data = True)
| mit | Python |
2e0da7e01c19aedb1249ea756f89ad12714764f8 | Use X.X.X version format, version only from setup.py file | odin-public/osaAPI | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup
setup(
name='osaapi',
version='0.4.0',
author='apsconnect team, original by oznu',
author_email='aps@odin.com',
packages=['osaapi'],
url='https://aps.odin.com',
license='Apache License',
description='A python binding for the Odin Service Automation (OSA) and billing APIs.',
long_description=open('README.md').read(),
)
| import os
from setuptools import setup
PACKAGE_VERSION = '0.3'
def version():
def version_file(mode='r'):
return open(os.path.join(os.path.dirname(os.path.abspath(__file__)), 'version.txt'), mode)
if os.getenv('TRAVIS'):
with version_file('w') as verfile:
verfile.write('{0}.{1}'.format(PACKAGE_VERSION, os.getenv('TRAVIS_BUILD_NUMBER')))
with version_file() as verfile:
data = verfile.readlines()
return data[0].strip()
setup(
name='osaapi',
version=version(),
author='apsliteteam, oznu',
author_email='aps@odin.com',
packages=['osaapi'],
url='https://aps.odin.com',
license='Apache License',
description='A python client for the Odin Service Automation (OSA) and billing APIs.',
long_description=open('README.md').read(),
)
| apache-2.0 | Python |
03a9b89ccb54e5d8a35e2ca0c6ed756df16266c7 | Fix missing comma in setup.py | 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 = '0.1'
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/',
'https://github.com/ooici/coverage-model/tarball/master#egg=coverage-model',
'https://github.com/ooici/marine-integrations/tarball/master#egg=marine_integrations-1.0',
'https://github.com/ooici/pyon/tarball/v0.1.7#egg=pyon-1.0'
],
test_suite = 'pyon',
install_requires = [
'coverage-model',
'marine-integrations',
'pyon',
'Flask==0.8',
'python-dateutil==1.5',
'WebTest',
'requests==0.13.5',
'seawater',
'matplotlib==1.1.0',
'Pydap>=3.0.1',
'netCDF4>=0.9.8',
'cdat_lite>=6.0rc2',
'elasticpy==0.10',
'pyparsing==1.5.6',
'snakefood==1.4',
],
)
| #!/usr/bin/env python
try:
from setuptools import setup, find_packages
except ImportError:
from distutils.core import setup
import os
import sys
# Add /usr/local/include to the path for macs, fixes easy_install for several packages (like gevent and pyyaml)
if sys.platform == 'darwin':
os.environ['C_INCLUDE_PATH'] = '/usr/local/include'
version = '0.1'
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/'
'https://github.com/ooici/coverage-model/tarball/master#egg=coverage-model',
'https://github.com/ooici/marine-integrations/tarball/master#egg=marine_integrations-1.0',
'https://github.com/ooici/pyon/tarball/v0.1.7#egg=pyon-1.0'
],
test_suite = 'pyon',
install_requires = [
'coverage-model',
'marine-integrations',
'pyon',
'Flask==0.8',
'python-dateutil==1.5',
'WebTest',
'requests==0.13.5',
'seawater',
'matplotlib==1.1.0',
'Pydap>=3.0.1',
'netCDF4>=0.9.8',
'cdat_lite>=6.0rc2',
'elasticpy==0.10',
'pyparsing==1.5.6',
'snakefood==1.4',
],
)
| bsd-2-clause | Python |
54f7b7e66c01f381bcf5553c9464aa4b0aa613a4 | Increment version for release | lewismc/podaacpy,Omkar20895/podaacpy,nasa/podaacpy | setup.py | setup.py | # Copyright 2016 California Institute of Technology.
#
# 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.path
from setuptools import find_packages, setup
# Package data
# ------------
_author = 'Lewis John McGibbney'
_author_email = 'lewismc@apache.org'
_classifiers = [
'Environment :: Console',
'Intended Audience :: Developers',
'Intended Audience :: Information Technology',
'Intended Audience :: Science/Research',
'Topic :: Scientific/Engineering',
'Development Status :: 5 - Production/Stable',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Software Development :: Libraries :: Python Modules',
]
_description = 'PO.DAAC Python API'
_download_url = 'http://pypi.python.org/pypi/podaacpy/'
_requirements = ["requests", "beautifulsoup4", "coveralls"]
_keywords = ['dataset', 'granule', 'compliance', 'nasa', 'jpl', 'podaac']
_license = 'Apache License, Version 2.0'
_long_description = 'A python utility library for interacting with NASA JPLs PO.DAAC'
_name = 'podaacpy'
_namespaces = []
_test_suite = 'podaac.tests'
_url = 'https://github.com/lewismc/podaacpy'
_version = '1.0.2'
_zip_safe = True
# Setup Metadata
# --------------
def _read(*rnames):
return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
_header = '*' * len(_name) + '\n' + _name + '\n' + '*' * len(_name)
_longDescription = '\n\n'.join([
_header,
_read('README.rst')
])
open('doc.txt', 'w').write(_longDescription)
setup(
author=_author,
author_email=_author_email,
classifiers=_classifiers,
description=_description,
download_url=_download_url,
include_package_data=True,
install_requires=_requirements,
keywords=_keywords,
license=_license,
long_description=_long_description,
name=_name,
namespace_packages=_namespaces,
packages=find_packages(),
test_suite=_test_suite,
url=_url,
version=_version,
zip_safe=_zip_safe,
)
| # Copyright 2016 California Institute of Technology.
#
# 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.path
from setuptools import find_packages, setup
# Package data
# ------------
_author = 'Lewis John McGibbney'
_author_email = 'lewismc@apache.org'
_classifiers = [
'Environment :: Console',
'Intended Audience :: Developers',
'Intended Audience :: Information Technology',
'Intended Audience :: Science/Research',
'Topic :: Scientific/Engineering',
'Development Status :: 5 - Production/Stable',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Software Development :: Libraries :: Python Modules',
]
_description = 'PO.DAAC Python API'
_download_url = 'http://pypi.python.org/pypi/podaacpy/'
_requirements = ["requests", "beautifulsoup4", "coveralls"]
_keywords = ['dataset', 'granule', 'compliance', 'nasa', 'jpl', 'podaac']
_license = 'Apache License, Version 2.0'
_long_description = 'A python utility library for interacting with NASA JPLs PO.DAAC'
_name = 'podaacpy'
_namespaces = []
_test_suite = 'podaac.tests'
_url = 'https://github.com/lewismc/podaacpy'
_version = '1.0.1'
_zip_safe = True
# Setup Metadata
# --------------
def _read(*rnames):
return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
_header = '*' * len(_name) + '\n' + _name + '\n' + '*' * len(_name)
_longDescription = '\n\n'.join([
_header,
_read('README.rst')
])
open('doc.txt', 'w').write(_longDescription)
setup(
author=_author,
author_email=_author_email,
classifiers=_classifiers,
description=_description,
download_url=_download_url,
include_package_data=True,
install_requires=_requirements,
keywords=_keywords,
license=_license,
long_description=_long_description,
name=_name,
namespace_packages=_namespaces,
packages=find_packages(),
test_suite=_test_suite,
url=_url,
version=_version,
zip_safe=_zip_safe,
)
| apache-2.0 | Python |
09ee49bdf69dfa0caa1a3221318baa27abe980f0 | Bump flake8-bugbear from 18.8.0 to 19.3.0 | sloria/ped,sloria/ped | setup.py | setup.py | import re
from setuptools import setup
EXTRAS_REQUIRE = {
"tests": ["pytest", "mock", "pytest-mock", "scripttest==1.3"],
"lint": [
"flake8==3.7.7",
"flake8-bugbear==19.3.0",
"mypy==0.670",
"pre-commit==1.14.4",
],
}
EXTRAS_REQUIRE["dev"] = EXTRAS_REQUIRE["tests"] + EXTRAS_REQUIRE["lint"] + ["tox"]
PYTHON_REQUIRES = ">=3.6"
def find_version(fname):
"""Attempts to find the version number in the file names fname.
Raises RuntimeError if not found.
"""
version = ""
with open(fname, "r") as fp:
reg = re.compile(r'__version__ = [\'"]([^\'"]*)[\'"]')
for line in fp:
m = reg.match(line)
if m:
version = m.group(1)
break
if not version:
raise RuntimeError("Cannot find version information")
return version
def read(fname):
with open(fname) as fp:
content = fp.read()
return content
setup(
name="ped",
packages=["ped"],
version=find_version("ped/__init__.py"),
description="Quickly open Python modules in your text editor.",
long_description=read("README.rst"),
author="Steven Loria",
author_email="sloria1@gmail.com",
url="https://github.com/sloria/ped",
install_requires=[],
extras_require=EXTRAS_REQUIRE,
python_requires=PYTHON_REQUIRES,
license="MIT",
zip_safe=False,
keywords=("commandline", "cli", "open", "editor", "editing"),
classifiers=[
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Topic :: System :: Shells",
],
entry_points={"console_scripts": ["ped = ped:main"]},
package_data={"ped": ["ped_bash_completion.sh", "ped_zsh_completion.zsh"]},
)
| import re
from setuptools import setup
EXTRAS_REQUIRE = {
"tests": ["pytest", "mock", "pytest-mock", "scripttest==1.3"],
"lint": [
"flake8==3.7.7",
"flake8-bugbear==18.8.0",
"mypy==0.670",
"pre-commit==1.14.4",
],
}
EXTRAS_REQUIRE["dev"] = EXTRAS_REQUIRE["tests"] + EXTRAS_REQUIRE["lint"] + ["tox"]
PYTHON_REQUIRES = ">=3.6"
def find_version(fname):
"""Attempts to find the version number in the file names fname.
Raises RuntimeError if not found.
"""
version = ""
with open(fname, "r") as fp:
reg = re.compile(r'__version__ = [\'"]([^\'"]*)[\'"]')
for line in fp:
m = reg.match(line)
if m:
version = m.group(1)
break
if not version:
raise RuntimeError("Cannot find version information")
return version
def read(fname):
with open(fname) as fp:
content = fp.read()
return content
setup(
name="ped",
packages=["ped"],
version=find_version("ped/__init__.py"),
description="Quickly open Python modules in your text editor.",
long_description=read("README.rst"),
author="Steven Loria",
author_email="sloria1@gmail.com",
url="https://github.com/sloria/ped",
install_requires=[],
extras_require=EXTRAS_REQUIRE,
python_requires=PYTHON_REQUIRES,
license="MIT",
zip_safe=False,
keywords=("commandline", "cli", "open", "editor", "editing"),
classifiers=[
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Topic :: System :: Shells",
],
entry_points={"console_scripts": ["ped = ped:main"]},
package_data={"ped": ["ped_bash_completion.sh", "ped_zsh_completion.zsh"]},
)
| mit | Python |
e24c99428bfa2913106c5f9d1aaae277c2390f37 | Add paramiko to setup.py as install requires | Vnet-as/cisco-olt-client | setup.py | setup.py | import setuptools
setuptools.setup(
name="cisco_olt_client",
version="0.1.0",
url="https://github.com/Vnet-as/cisco-olt-client",
author="Michal Kuffa",
author_email="michal.kuffa@gmail.com",
description=(
"Python wrapper for cisco's olt boxes commands executed via ssh"),
long_description=open('README.rst').read(),
packages=setuptools.find_packages(),
install_requires=['paramiko>=2.1.1'],
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'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',
],
)
| import setuptools
setuptools.setup(
name="cisco_olt_client",
version="0.1.0",
url="https://github.com/Vnet-as/cisco-olt-client",
author="Michal Kuffa",
author_email="michal.kuffa@gmail.com",
description="Python wrapper for cisco's olt boxes commands executed via ssh",
long_description=open('README.rst').read(),
packages=setuptools.find_packages(),
install_requires=[],
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'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',
],
)
| mit | Python |
850c8e3cf4a4120f7d3550c6096986ca50157e78 | bump version to 2.4.1 | rjeschmi/vsc-base,rjeschmi/vsc-base | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: latin-1 -*-
#
# Copyright 2009-2014 Ghent University
#
# This file is part of vsc-base,
# originally created by the HPC team of Ghent University (http://ugent.be/hpc/en),
# with support of Ghent University (http://ugent.be/hpc),
# the Flemish Supercomputer Centre (VSC) (https://vscentrum.be/nl/en),
# the Hercules foundation (http://www.herculesstichting.be/in_English)
# and the Department of Economy, Science and Innovation (EWI) (http://www.ewi-vlaanderen.be/en).
#
# http://github.com/hpcugent/vsc-base
#
# vsc-base is free software: you can redistribute it and/or modify
# it under the terms of the GNU Library General Public License as
# published by the Free Software Foundation, either version 2 of
# the License, or (at your option) any later version.
#
# vsc-base is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Library General Public License for more details.
#
# You should have received a copy of the GNU Library General Public License
# along with vsc-base. If not, see <http://www.gnu.org/licenses/>.
#
"""
vsc-base base distribution setup.py
@author: Stijn De Weirdt (Ghent University)
@author: Andy Georges (Ghent University)
@author: Kenneth Hoste (Ghent University)
"""
# vsc-base setup.py needs vsc.install, which is currently shipped as part of vsc-base
# vsc.install doesn't require vsc-base, so we could move it to it's own repo and only
# have this hack in the setup.py of vsc.install (and set it as build_requires)
# until then...
import os
import sys
sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)), "lib"))
import vsc.install.shared_setup as shared_setup
from vsc.install.shared_setup import ag, kh, jt, sdw, URL_GH_HPCUGENT
def remove_bdist_rpm_source_file():
"""List of files to remove from the (source) RPM."""
return []
shared_setup.remove_extra_bdist_rpm_files = remove_bdist_rpm_source_file
PACKAGE = {
'name': 'vsc-base',
'version': '2.4.1',
'author': [sdw, jt, ag, kh],
'maintainer': [sdw, jt, ag, kh],
'packages': ['vsc', 'vsc.install', 'vsc.utils'],
'scripts': ['bin/logdaemon.py', 'bin/startlogdaemon.sh', 'bin/bdist_rpm.sh', 'bin/optcomplete.bash'],
'install_requires' : ['setuptools'],
'zip_safe': True,
}
if __name__ == '__main__':
shared_setup.action_target(PACKAGE, urltemplate=URL_GH_HPCUGENT)
| #!/usr/bin/env python
# -*- coding: latin-1 -*-
#
# Copyright 2009-2014 Ghent University
#
# This file is part of vsc-base,
# originally created by the HPC team of Ghent University (http://ugent.be/hpc/en),
# with support of Ghent University (http://ugent.be/hpc),
# the Flemish Supercomputer Centre (VSC) (https://vscentrum.be/nl/en),
# the Hercules foundation (http://www.herculesstichting.be/in_English)
# and the Department of Economy, Science and Innovation (EWI) (http://www.ewi-vlaanderen.be/en).
#
# http://github.com/hpcugent/vsc-base
#
# vsc-base is free software: you can redistribute it and/or modify
# it under the terms of the GNU Library General Public License as
# published by the Free Software Foundation, either version 2 of
# the License, or (at your option) any later version.
#
# vsc-base is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Library General Public License for more details.
#
# You should have received a copy of the GNU Library General Public License
# along with vsc-base. If not, see <http://www.gnu.org/licenses/>.
#
"""
vsc-base base distribution setup.py
@author: Stijn De Weirdt (Ghent University)
@author: Andy Georges (Ghent University)
@author: Kenneth Hoste (Ghent University)
"""
# vsc-base setup.py needs vsc.install, which is currently shipped as part of vsc-base
# vsc.install doesn't require vsc-base, so we could move it to it's own repo and only
# have this hack in the setup.py of vsc.install (and set it as build_requires)
# until then...
import os
import sys
sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)), "lib"))
import vsc.install.shared_setup as shared_setup
from vsc.install.shared_setup import ag, kh, jt, sdw, URL_GH_HPCUGENT
def remove_bdist_rpm_source_file():
"""List of files to remove from the (source) RPM."""
return []
shared_setup.remove_extra_bdist_rpm_files = remove_bdist_rpm_source_file
PACKAGE = {
'name': 'vsc-base',
'version': '2.4.0',
'author': [sdw, jt, ag, kh],
'maintainer': [sdw, jt, ag, kh],
'packages': ['vsc', 'vsc.install', 'vsc.utils'],
'scripts': ['bin/logdaemon.py', 'bin/startlogdaemon.sh', 'bin/bdist_rpm.sh', 'bin/optcomplete.bash'],
'install_requires' : ['setuptools'],
'zip_safe': True,
}
if __name__ == '__main__':
shared_setup.action_target(PACKAGE, urltemplate=URL_GH_HPCUGENT)
| lgpl-2.1 | Python |
1baa0df5f6113bff0f3086c77ca5df6269dae1e3 | Declare the tests in the setup.py allowing to run ``python setup.py test`` | crsmithdev/arrow | setup.py | setup.py | try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(
name='arrow',
version='0.4.2',
description='Better dates and times for Python',
url='http://crsmithdev.com/arrow',
author='Chris Smith',
author_email="crsmithdev@gmail.com",
license='Apache 2.0',
packages=['arrow'],
zip_safe=False,
install_requires=[
'python-dateutil'
],
test_suite="tests",
)
| try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(
name='arrow',
version='0.4.2',
description='Better dates and times for Python',
url='http://crsmithdev.com/arrow',
author='Chris Smith',
author_email="crsmithdev@gmail.com",
license='Apache 2.0',
packages=['arrow'],
zip_safe=False,
install_requires=[
'python-dateutil'
]
)
| apache-2.0 | Python |
de4d5fc66e59b33b379d8da2944b61153fa084d6 | Fix setup.py deps and links (I think..) | chop-dbhi/serrano,chop-dbhi/serrano,rv816/serrano_night,rv816/serrano_night | setup.py | setup.py | import distribute_setup
distribute_setup.use_setuptools()
from setuptools import setup, find_packages
kwargs = {
# Packages
'packages': find_packages(),
'include_package_data': True,
# Dependencies
'install_requires': [
'avocado>=2.0a', # Hack, to work with the dependency link
'restlib2>=1.0a', # Hack, to work with the dependency link
],
# Test dependencies
'tests_require': [
'coverage',
],
# Optional dependencies
'extras_require': {},
# Resources unavailable on PyPi
'dependency_links': [
'https://github.com/cbmi/avocado/tarball/2.x#egg=avocado-2.0',
'https://github.com/bruth/restlib2/tarball/master#egg=restlib2-1.0',
],
# Metadata
'name': 'serrano',
'version': __import__('serrano').get_version(),
'author': 'Byron Ruth',
'author_email': 'b@devel.io',
'description': 'Hypermedia implementation for Avocado',
'license': 'BSD',
'keywords': 'hypermedia rest api avocado serrano cilantro harvest',
'url': 'https://github.com/cbmi/serrano',
'classifiers': [
'Development Status :: 4 - Beta',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python :: 2.7'
'Framework :: Django',
'Topic :: Internet :: WWW/HTTP',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'Intended Audience :: Healthcare Industry',
'Intended Audience :: Information Technology',
],
}
setup(**kwargs)
| import distribute_setup
distribute_setup.use_setuptools()
from setuptools import setup, find_packages
kwargs = {
# Packages
'packages': find_packages(),
'include_package_data': True,
# Dependencies
'install_requires': [
'avocado2', # Hack, to work with the dependency link
'django-restlib2', # Hack, to work with the dependency link
],
# Test dependencies
'tests_require': [
'coverage',
],
# Optional dependencies
'extras_require': {},
# Resources unavailable on PyPi
'dependency_links': [
'https://github.com/cbmi/avocado/tarball/2.x#egg=avocado2',
'https://github.com/bruth/restlib2/tarball/master#egg=django-restlib2',
],
# Metadata
'name': 'serrano',
'version': __import__('serrano').get_version(),
'author': 'Byron Ruth',
'author_email': 'b@devel.io',
'description': 'Hypermedia implementation for Avocado',
'license': 'BSD',
'keywords': 'hypermedia rest api avocado serrano cilantro harvest',
'url': 'https://github.com/cbmi/serrano',
'classifiers': [
'Development Status :: 4 - Beta',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python :: 2.7'
'Framework :: Django',
'Topic :: Internet :: WWW/HTTP',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'Intended Audience :: Healthcare Industry',
'Intended Audience :: Information Technology',
],
}
setup(**kwargs)
| bsd-2-clause | Python |
8318d28586768d3fc6429f44faeb525f62a708cd | update to latest coverage, sphinx, and pre-commit | jab/bidict,jab/bidict | setup.py | setup.py | from io import open
from setuptools import setup
from warnings import warn
def from_file(filename, fallback):
try:
with open(filename, encoding='utf8') as f:
return f.read().strip()
except Exception as e:
warn('Error opening file %r, using fallback %r: %s' % (filename, fallback, e))
return fallback
version = from_file('bidict/VERSION', '0.0.0')
long_description = from_file('README.rst', 'See https://bidict.readthedocs.org').replace(
':doc:', '') # :doc: breaks long_description rendering on PyPI
tests_require = [
'coverage==4.4.1',
'flake8==3.2.1',
'hypothesis==3.9.0',
'hypothesis-pytest==0.19.0',
'py==1.4.31',
'pydocstyle==2.0.0',
'pytest==3.0.7',
'pytest-benchmark==3.1.0a2',
'pytest-cov==2.5.1',
'Sphinx==1.6.1',
'sortedcollections==0.4.2',
'sortedcontainers==1.5.5',
]
setup(
name='bidict',
version=version,
author='Joshua Bronson',
author_email='jab@math.brown.edu',
description='Efficient, Pythonic bidirectional map implementation and related functionality',
long_description=long_description,
keywords='dict, dictionary, mapping, bidirectional, bijection, bijective, injective, two-way, 2-way, double, inverse, reverse',
url='https://github.com/jab/bidict',
license='Mozilla PL',
packages=['bidict'],
package_data=dict(bidict=['VERSION']),
zip_safe=True,
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
'Topic :: Scientific/Engineering :: Mathematics',
'Topic :: Software Development :: Libraries :: Python Modules',
],
tests_require=tests_require,
extras_require=dict(
test=tests_require,
dev=tests_require + ['pre-commit==0.14.0', 'tox==2.7.0'],
),
)
| from io import open
from setuptools import setup
from warnings import warn
def from_file(filename, fallback):
try:
with open(filename, encoding='utf8') as f:
return f.read().strip()
except Exception as e:
warn('Error opening file %r, using fallback %r: %s' % (filename, fallback, e))
return fallback
version = from_file('bidict/VERSION', '0.0.0')
long_description = from_file('README.rst', 'See https://bidict.readthedocs.org').replace(
':doc:', '') # :doc: breaks long_description rendering on PyPI
tests_require = [
'coverage==4.4',
'flake8==3.2.1',
'hypothesis==3.9.0',
'hypothesis-pytest==0.19.0',
'py==1.4.31',
'pydocstyle==2.0.0',
'pytest==3.0.7',
'pytest-benchmark==3.1.0a2',
'pytest-cov==2.5.1',
'Sphinx==1.5.5',
'sortedcollections==0.4.2',
'sortedcontainers==1.5.5',
]
setup(
name='bidict',
version=version,
author='Joshua Bronson',
author_email='jab@math.brown.edu',
description='Efficient, Pythonic bidirectional map implementation and related functionality',
long_description=long_description,
keywords='dict, dictionary, mapping, bidirectional, bijection, bijective, injective, two-way, 2-way, double, inverse, reverse',
url='https://github.com/jab/bidict',
license='Mozilla PL',
packages=['bidict'],
package_data=dict(bidict=['VERSION']),
zip_safe=True,
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
'Topic :: Scientific/Engineering :: Mathematics',
'Topic :: Software Development :: Libraries :: Python Modules',
],
tests_require=tests_require,
extras_require=dict(
test=tests_require,
dev=tests_require + ['pre-commit==0.13.6', 'tox==2.7.0'],
),
)
| mpl-2.0 | Python |
b8fa04a0db8bd889843a378a7b6dc0a61c7d3685 | Bump to 0.3.1.dev0 | breerly/threadloop | setup.py | setup.py | from setuptools import setup, find_packages
install_requires = ['tornado']
# if python < 3, we need futures backport
try:
import concurrent.futures # noqa
except ImportError:
install_requires.append('futures')
setup(
name='threadloop',
version='0.3.1.dev0',
author='Grayson Koonce',
author_email='breerly@gmail.com',
description='Tornado IOLoop Backed Concurrent Futures',
license='MIT',
url='https://github.com/breerly/threadloop',
packages=find_packages(exclude=['tests']),
install_requires=install_requires,
classifiers=[
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
]
)
| from setuptools import setup, find_packages
install_requires = ['tornado']
# if python < 3, we need futures backport
try:
import concurrent.futures # noqa
except ImportError:
install_requires.append('futures')
setup(
name='threadloop',
version='0.3.0',
author='Grayson Koonce',
author_email='breerly@gmail.com',
description='Tornado IOLoop Backed Concurrent Futures',
license='MIT',
url='https://github.com/breerly/threadloop',
packages=find_packages(exclude=['tests']),
install_requires=install_requires,
classifiers=[
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
]
)
| mit | Python |
701eb24185138df89919a088b0e523330f45cc4c | Bump version to 0.15.0 (#275) | googleapis/gapic-generator-python,googleapis/gapic-generator-python | setup.py | setup.py | # Copyright 2018 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import io
import os
from setuptools import find_packages, setup # type: ignore
PACKAGE_ROOT = os.path.abspath(os.path.dirname(__file__))
with io.open(os.path.join(PACKAGE_ROOT, 'README.rst')) as file_obj:
README = file_obj.read()
setup(
name='gapic-generator',
version='0.15.0',
license='Apache 2.0',
author='Luke Sneeringer',
author_email='lukesneeringer@google.com',
url='https://github.com/googleapis/gapic-generator-python.git',
packages=find_packages(exclude=['docs', 'tests']),
description='Python client library generator for APIs defined by protocol'
'buffers',
long_description=README,
entry_points="""[console_scripts]
protoc-gen-dump=gapic.cli.dump:dump
protoc-gen-python_gapic=gapic.cli.generate:generate
""",
platforms='Posix; MacOS X',
include_package_data=True,
install_requires=(
'click >= 6.7',
'google-api-core >= 1.14.3',
'googleapis-common-protos >= 1.6.0',
'grpcio >= 1.24.3',
'jinja2 >= 2.10',
'protobuf >= 3.7.1',
'pypandoc >= 1.4',
'PyYAML >= 5.1.1',
),
extras_require={
':python_version<"3.7"': ('dataclasses >= 0.4',),
},
tests_require=(
'pyfakefs >= 3.6',
),
classifiers=(
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Operating System :: POSIX',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Topic :: Software Development :: Code Generators',
'Topic :: Software Development :: Libraries :: Python Modules',
),
zip_safe=False,
)
| # Copyright 2018 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import io
import os
from setuptools import find_packages, setup # type: ignore
PACKAGE_ROOT = os.path.abspath(os.path.dirname(__file__))
with io.open(os.path.join(PACKAGE_ROOT, 'README.rst')) as file_obj:
README = file_obj.read()
setup(
name='gapic-generator',
version='0.14.0',
license='Apache 2.0',
author='Luke Sneeringer',
author_email='lukesneeringer@google.com',
url='https://github.com/googleapis/gapic-generator-python.git',
packages=find_packages(exclude=['docs', 'tests']),
description='Python client library generator for APIs defined by protocol'
'buffers',
long_description=README,
entry_points="""[console_scripts]
protoc-gen-dump=gapic.cli.dump:dump
protoc-gen-python_gapic=gapic.cli.generate:generate
""",
platforms='Posix; MacOS X',
include_package_data=True,
install_requires=(
'click >= 6.7',
'google-api-core >= 1.14.3',
'googleapis-common-protos >= 1.6.0',
'grpcio >= 1.24.3',
'jinja2 >= 2.10',
'protobuf >= 3.7.1',
'pypandoc >= 1.4',
'PyYAML >= 5.1.1',
),
extras_require={
':python_version<"3.7"': ('dataclasses >= 0.4',),
},
tests_require=(
'pyfakefs >= 3.6',
),
classifiers=(
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Operating System :: POSIX',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Topic :: Software Development :: Code Generators',
'Topic :: Software Development :: Libraries :: Python Modules',
),
zip_safe=False,
)
| apache-2.0 | Python |
70738cc295b50c6548f899a971cf1b0aa2575e5c | Remove unused xworkflows dependency | botify-labs/python-simple-workflow,botify-labs/python-simple-workflow | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
from setuptools import setup
root = os.path.abspath(os.path.dirname(__file__))
version = __import__('swf').__version__
with open(os.path.join(root, 'README.rst')) as f:
README = f.read()
setup(
name='simple-workflow',
version=version,
license='MIT',
description='Amazon simple workflow service wrapper for python',
long_description=README + '\n\n',
author='Oleiade',
author_email='tcrevon@gmail.com',
url='http://github.com/botify-labs/python-simple-workflow',
keywords='amazon simple wokflow swf python',
zip_safe=True,
install_requires=[
'boto',
],
tests_require=[
'mock==1.0.1',
'py.test>=2.8.5',
],
package_dir={'': '.'},
include_package_data=False,
packages=[
'swf',
'swf.actors',
'swf.querysets',
'swf.models',
'swf.models.event',
'swf.models.decision',
'swf.models.history',
],
)
| #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
from setuptools import setup
root = os.path.abspath(os.path.dirname(__file__))
version = __import__('swf').__version__
with open(os.path.join(root, 'README.rst')) as f:
README = f.read()
setup(
name='simple-workflow',
version=version,
license='MIT',
description='Amazon simple workflow service wrapper for python',
long_description=README + '\n\n',
author='Oleiade',
author_email='tcrevon@gmail.com',
url='http://github.com/botify-labs/python-simple-workflow',
keywords='amazon simple wokflow swf python',
zip_safe=True,
install_requires=[
'boto',
'xworkflows==1.0.0',
],
tests_require=[
'mock==1.0.1',
'py.test>=2.8.5',
],
package_dir={'': '.'},
include_package_data=False,
packages=[
'swf',
'swf.actors',
'swf.querysets',
'swf.models',
'swf.models.event',
'swf.models.decision',
'swf.models.history',
],
)
| mit | Python |
48390320ad0042858b3cc40d98cd527294503070 | Fix License classifier in setup.py | TriplePoint-Software/django_access_logs | setup.py | setup.py | import os
from setuptools import setup
with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme:
README = readme.read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='django_access_logs',
version='0.1.2',
packages=['access_logs', 'access_logs.migrations'],
include_package_data=True,
license='Apache License, Version 2.0',
description='A simple module to record server access logs in DB and export them',
long_description=README,
url='https://github.com/TriplePoint-Software/django_access_logs',
author='Jai',
author_email='jaivikram.verma@gmail.com',
classifiers=[
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
],
install_requires = [
'django-constance>=0.6',
'ua-parser>=0.3.6',
'django-import-export>=0.2.7',
'python-dateutil>=2.4.2',
'celery>=3.1.18',
'django-celery>=3.1.16',
],
)
| import os
from setuptools import setup
with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme:
README = readme.read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='django_access_logs',
version='0.1.2',
packages=['access_logs', 'access_logs.migrations'],
include_package_data=True,
license='Apache License, Version 2.0',
description='A simple module to record server access logs in DB and export them',
long_description=README,
url='https://github.com/TriplePoint-Software/django_access_logs',
author='Jai',
author_email='jaivikram.verma@gmail.com',
classifiers=[
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache 2.0 License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
],
install_requires = [
'django-constance>=0.6',
'ua-parser>=0.3.6',
'django-import-export>=0.2.7',
'python-dateutil>=2.4.2',
'celery>=3.1.18',
'django-celery>=3.1.16',
],
)
| apache-2.0 | Python |
5f779d805cb9042e534b6056a9b5b2cba0666e05 | Change wrong dependency name. | michaelkuty/mbot | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import ast
import re
from setuptools import setup
with open('README.rst') as readme_file:
readme = readme_file.read()
with open('HISTORY.rst') as history_file:
history = history_file.read()
requirements = [
'Click>=6.0',
'python-slugify',
'parsedatetime',
'humanize',
'appdirs',
'anyconfig',
'PyYAML',
'dill',
'typing',
'asyncio',
'Jinja2'
]
test_requirements = [
# TODO: put package test requirements here
]
_version_re = re.compile(r'__version__\s+=\s+(.*)')
with open('mbot/__init__.py', 'rb') as f:
version = str(ast.literal_eval(_version_re.search(
f.read().decode('utf-8')).group(1)))
setup(
name='mbot',
version=version,
description="Yet another Bot implemented in pure Python.",
long_description=readme + '\n\n' + history,
author="Michael Kutý",
author_email='6du1ro.n@gmail.com',
url='https://github.com/michaelkuty/mbot',
packages=[
'mbot',
],
package_dir={'mbot':
'mbot'},
entry_points={
'console_scripts': [
'mbot=mbot.cli:main'
]
},
include_package_data=True,
install_requires=requirements,
license="MIT license",
zip_safe=False,
keywords='mbot',
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
"Programming Language :: Python :: 2",
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
],
test_suite='tests',
tests_require=test_requirements
)
| #!/usr/bin/env python
# -*- coding: utf-8 -*-
import ast
import re
from setuptools import setup
with open('README.rst') as readme_file:
readme = readme_file.read()
with open('HISTORY.rst') as history_file:
history = history_file.read()
requirements = [
'Click>=6.0',
'slugify',
'parsedatetime',
'humanize',
'appdirs',
'anyconfig',
'PyYAML',
'dill',
'typing',
'asyncio',
'Jinja2'
]
test_requirements = [
# TODO: put package test requirements here
]
_version_re = re.compile(r'__version__\s+=\s+(.*)')
with open('mbot/__init__.py', 'rb') as f:
version = str(ast.literal_eval(_version_re.search(
f.read().decode('utf-8')).group(1)))
setup(
name='mbot',
version=version,
description="Yet another Bot implemented in pure Python.",
long_description=readme + '\n\n' + history,
author="Michael Kutý",
author_email='6du1ro.n@gmail.com',
url='https://github.com/michaelkuty/mbot',
packages=[
'mbot',
],
package_dir={'mbot':
'mbot'},
entry_points={
'console_scripts': [
'mbot=mbot.cli:main'
]
},
include_package_data=True,
install_requires=requirements,
license="MIT license",
zip_safe=False,
keywords='mbot',
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
"Programming Language :: Python :: 2",
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
],
test_suite='tests',
tests_require=test_requirements
)
| mit | Python |
9bcf8a3e217cf9de797308636e72d278b513a6e2 | Add Python 3.5 to setup.py | scraperwiki/data-services-helpers | setup.py | setup.py | from distutils.core import setup
setup(name='dshelpers',
version='1.3.0',
description="Provides some helper functions used by the ScraperWiki Data Services team.",
long_description="Provides some helper functions used by the ScraperWiki Data Services team.",
classifiers=["Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
],
author="ScraperWiki Limited",
author_email='dataservices@scraperwiki.com',
url='https://github.com/scraperwiki/data-services-helpers',
license='BSD',
py_modules=['dshelpers'],
install_requires=['requests',
'requests_cache',
'mock',
'nose',
'scraperwiki'],
)
| from distutils.core import setup
setup(name='dshelpers',
version='1.3.0',
description="Provides some helper functions used by the ScraperWiki Data Services team.",
long_description="Provides some helper functions used by the ScraperWiki Data Services team.",
classifiers=["Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.4",
],
author="ScraperWiki Limited",
author_email='dataservices@scraperwiki.com',
url='https://github.com/scraperwiki/data-services-helpers',
license='BSD',
py_modules=['dshelpers'],
install_requires=['requests',
'requests_cache',
'mock',
'nose',
'scraperwiki'],
)
| bsd-2-clause | Python |
d3f8819dc7cc0e145813cea21fc1020d381b3822 | update setup.py in preparation for PyPi release | petergardfjall/garminexport | setup.py | setup.py | """Setup information for the Garmin Connect activity exporter."""
from setuptools import setup, find_packages
from os import path
# needed for Python 2.7 (ensures open() defaults to text mode with universal
# newlines, and accepts an argument to specify the text encoding.
from io import open
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
requires = [
'requests~=2.21',
'python-dateutil~=2.4',
'future~=0.16',
]
test_requires = [
'nose~=1.3',
'coverage~=4.2',
'mock~=2.0',
]
setup(name='garminexport',
version='0.1.0',
description=('Garmin Connect activity exporter and backup tool'),
long_description=long_description,
long_description_content_type='text/markdown',
author='Peter Gardfjäll',
author_email='peter.gardfjall.work@gmail.com',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Intended Audience :: End Users/Desktop',
'Intended Audience :: Developers',
'Natural Language :: English',
'License :: OSI Approved :: Apache Software License',
'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',
],
keywords='garmin export backup',
url='https://github.com/petergardfjall/garminexport',
license='Apache License 2.0',
project_urls={
'Source': 'https://github.com/petergardfjall/garminexport.git',
'Tracker': 'https://github.com/petergardfjall/garminexport/issues',
},
packages=[
'garminexport',
'garminexport.cli',
],
python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, <4',
install_requires=requires,
test_requires=test_requires,
entry_points={
'console_scripts': [
'garmin-backup = garminexport.cli.backup:main',
'garmin-get-activity = garminexport.cli.get_activity:main',
'garmin-upload-activity = garminexport.cli.upload_activity:main',
],
},
)
| #!/usr/bin/env python
"""Setup information for the Garmin Connect activity exporter."""
from setuptools import find_packages
from distutils.core import setup
setup(name="Garmin Connect activity exporter",
version="1.0.0",
description=("A program that downloads all activities for a given Garmin Connect account "
"and stores them locally on the user's computer."),
long_description=open('README.md').read(),
author="Peter Gardfjäll",
author_email="peter.gardfjall.work@gmail.com",
install_requires=open('requirements.txt').read(),
license=open('LICENSE').read(),
url="https://github.com/petergardfjall/garminexport",
packages=["garminexport"],
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Intended Audience :: End Users/Desktop'
'Natural Language :: English',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.5+',
])
| apache-2.0 | Python |
74443c32a6cb277836a4618f8db2a293ba27d2a7 | fix version declaration for releaser command | bmathieu33/pytest-dbus-notification | setup.py | setup.py | # coding=utf-8
from __future__ import absolute_import
from setuptools import setup
import codecs
def read(filename):
return unicode(codecs.open(filename, encoding='utf-8').read())
long_description = '\n\n'.join([read('README.rst'),
read('CHANGES.rst')])
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: POSIX',
'Programming Language :: Python',
'Topic :: Desktop Environment',
'Topic :: Software Development :: Testing',
'Topic :: Utilities',
]
setup(
author="Bertrand Mathieu",
author_email="bert.mathieu at gmail.com",
url='https://github.com/bmathieu33/pytest-dbus-notification',
version='1.0.0dev',
description="D-BUS notifications for pytest results.",
long_description=long_description,
name="pytest-dbus-notification",
keywords="pytest, pytest-, dbus, py.test",
classifiers=classifiers,
py_modules=['pytest_dbus_notification'],
install_requires=[
'pytest'
],
entry_points={
'pytest11': ['pytest_dbus_notification = pytest_dbus_notification',]
},)
| # coding=utf-8
from __future__ import absolute_import
from setuptools import setup
import codecs
__VERSION__ = '1.0.0dev'
def read(filename):
return unicode(codecs.open(filename, encoding='utf-8').read())
long_description = '\n\n'.join([read('README.rst'),
read('CHANGES.rst')])
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: POSIX',
'Programming Language :: Python',
'Topic :: Desktop Environment',
'Topic :: Software Development :: Testing',
'Topic :: Utilities',
]
setup(
author="Bertrand Mathieu",
author_email="bert.mathieu at gmail.com",
url='https://github.com/bmathieu33/pytest-dbus-notification',
version=__VERSION__,
description="D-BUS notifications for pytest results.",
long_description=long_description,
name="pytest-dbus-notification",
keywords="pytest, pytest-, dbus, py.test",
classifiers=classifiers,
py_modules=['pytest_dbus_notification'],
install_requires=[
'pytest'
],
entry_points={
'pytest11': ['pytest_dbus_notification = pytest_dbus_notification',]
},)
| mit | Python |
eca5f06d2440105af0d062e0803c08cbfc4bcdd1 | bump version | mila-labs/django-pipeline-compass-rubygem | setup.py | setup.py | # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
description = """
django-pipeline-compass-rubygem is a Compass compiler for django-pipeline using the original Compass Ruby Gem.
"""
setup(
name='django-pipeline-compass-rubygem',
version='0.1.9',
description=description,
long_description=open('README.rst').read(),
author='Patrick Stadler',
author_email='patrick.stadler@gmail.com',
url='https://github.com/mila-labs/django-pipeline-compass-rubygem',
license='MIT License',
platforms=['OS Independent'],
packages=find_packages(),
zip_safe=False,
include_package_data=True,
classifiers=[
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Framework :: Django',
'Topic :: Utilities',
]
)
| # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
description = """
django-pipeline-compass-rubygem is a Compass compiler for django-pipeline using the original Compass Ruby Gem.
"""
setup(
name='django-pipeline-compass-rubygem',
version='0.1.8',
description=description,
long_description=open('README.rst').read(),
author='Patrick Stadler',
author_email='patrick.stadler@gmail.com',
url='https://github.com/mila-labs/django-pipeline-compass-rubygem',
license='MIT License',
platforms=['OS Independent'],
packages=find_packages(),
zip_safe=False,
include_package_data=True,
classifiers=[
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Framework :: Django',
'Topic :: Utilities',
]
)
| mit | Python |
91682c5db1cb4267e719723a15de7b3f34393f9f | Prepare for twython-django pip release | ryanmcgrath/twython-django,c17r/twython-django,aniversarioperu/twython-django,aniversarioperu/twython-django,c17r/twython-django | setup.py | setup.py | #!/usr/bin/env python
import os
import sys
from setuptools import setup
from setuptools import find_packages
__author__ = 'Ryan McGrath <ryan@venodesigns.net>'
__version__ = '1.5.1'
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys.exit()
setup(
name='twython-django',
version=__version__,
install_requires=['twython>=3.1.0', 'django'],
author='Ryan McGrath',
author_email='ryan@venodesigns.net',
license=open('LICENSE').read(),
url='https://github.com/ryanmcgrath/twython/tree/master',
keywords='twitter search api tweet twython stream django integration',
description='Actively maintained, pure Python wrapper for the Twitter API. Supports both normal and streaming Twitter APIs',
long_description=open('README.rst').read(),
include_package_data=True,
packages=find_packages(),
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Communications :: Chat',
'Topic :: Internet'
]
)
| #!/usr/bin/python
from setuptools import setup
from setuptools import find_packages
__author__ = 'Ryan McGrath <ryan@venodesigns.net>'
__version__ = '1.5.0'
setup(
name='twython-django',
version=__version__,
install_requires=['twython>=3.0.0', 'django'],
author='Ryan McGrath',
author_email='ryan@venodesigns.net',
license=open('LICENSE').read(),
url='https://github.com/ryanmcgrath/twython/tree/master',
keywords='twitter search api tweet twython stream django integration',
description='Actively maintained, pure Python wrapper for the Twitter API. Supports both normal and streaming Twitter APIs',
long_description=open('README.rst').read(),
include_package_data=True,
packages=find_packages(),
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Communications :: Chat',
'Topic :: Internet'
]
)
| mit | Python |
b47d44d850857ba2210d075ec626697969a2b529 | Remove unused 'setup.py publish' | YPlan/nexus,YPlan/nexus,YPlan/nexus | setup.py | setup.py | #!/usr/bin/env python
# -*- encoding:utf-8 -*-
import os
import re
from setuptools import find_packages, setup
def get_version(package):
"""
Return package version as listed in `__version__` in `init.py`.
"""
init_py = open(os.path.join(package, '__init__.py')).read()
return re.search("__version__ = ['\"]([^'\"]+)['\"]", init_py).group(1)
version = get_version('nexus')
with open('README.rst') as readme_file:
readme = readme_file.read()
with open('HISTORY.rst') as history_file:
history = history_file.read().replace('.. :changelog:', '')
setup(
name='nexus-yplan',
version=version,
author='Disqus',
author_email='opensource@disqus.com',
maintainer='YPlan',
maintainer_email='adam@yplanapp.com',
url='https://github.com/yplan/nexus',
description=(
'Nexus is a pluggable admin application in Django. '
'It\'s designed to give you a simple design and architecture for building admin applications.'
),
long_description=readme + '\n\n' + history,
packages=find_packages(exclude=['tests', 'tests.*']),
zip_safe=False,
install_requires=[],
license='Apache License 2.0',
include_package_data=True,
classifiers=[
'Development Status :: 5 - Production/Stable',
'Framework :: Django',
'Framework :: Django :: 1.8',
'Framework :: Django :: 1.9',
'Framework :: Django :: 1.10',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: Apache Software License',
'Natural Language :: English',
'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',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Topic :: Software Development'
],
)
| #!/usr/bin/env python
# -*- encoding:utf-8 -*-
import os
import re
import sys
from setuptools import find_packages, setup
def get_version(package):
"""
Return package version as listed in `__version__` in `init.py`.
"""
init_py = open(os.path.join(package, '__init__.py')).read()
return re.search("__version__ = ['\"]([^'\"]+)['\"]", init_py).group(1)
version = get_version('nexus')
if sys.argv[-1] == 'publish':
if os.system("pip freeze | grep twine"):
print("twine not installed.\nUse `pip install twine`.\nExiting.")
sys.exit()
os.system("rm -rf .eggs/ build/ dist/")
os.system("python setup.py sdist bdist_wheel")
os.system("twine upload dist/*")
print("You probably want to also tag the version now:")
print(" git tag -a v%s -m 'Version %s'" % (version, version))
print(" git push --tags")
sys.exit()
with open('README.rst') as readme_file:
readme = readme_file.read()
with open('HISTORY.rst') as history_file:
history = history_file.read().replace('.. :changelog:', '')
setup(
name='nexus-yplan',
version=version,
author='Disqus',
author_email='opensource@disqus.com',
maintainer='YPlan',
maintainer_email='adam@yplanapp.com',
url='https://github.com/yplan/nexus',
description=(
'Nexus is a pluggable admin application in Django. '
'It\'s designed to give you a simple design and architecture for building admin applications.'
),
long_description=readme + '\n\n' + history,
packages=find_packages(exclude=['tests', 'tests.*']),
zip_safe=False,
install_requires=[],
license='Apache License 2.0',
include_package_data=True,
classifiers=[
'Development Status :: 5 - Production/Stable',
'Framework :: Django',
'Framework :: Django :: 1.8',
'Framework :: Django :: 1.9',
'Framework :: Django :: 1.10',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: Apache Software License',
'Natural Language :: English',
'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',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Topic :: Software Development'
],
)
| apache-2.0 | Python |
653c6e7187520d3ac370334aa0abb0bd3bac9630 | Update for version release | theherk/pinkopy | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup, find_packages
import sys
with open('README.md') as f:
readme = f.read()
install_requires = [
'requests>=2.7.0',
'xmltodict>=0.9.2',
]
setup(
name='pinkopy',
version='0.1.3',
description='Python wrapper for Commvault api',
long_description=readme,
author='Herkermer Sherwood',
author_email='theherk@gmail.com',
url='https://github.com/theherk/pinkopy',
download_url='https://github.com/theherk/pinkopy/archive/0.1.3.zip',
packages=find_packages(),
platforms=['all'],
license='MIT',
install_requires=install_requires,
classifiers=[
'Development Status :: 4 - Beta',
'License :: Other/Proprietary License',
'License :: OSI Approved :: MIT License',
'Environment :: Console',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Unix',
'Operating System :: POSIX',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Topic :: Utilities',
],
)
| #!/usr/bin/env python
from setuptools import setup, find_packages
import sys
with open('README.md') as f:
readme = f.read()
install_requires = [
'requests>=2.7.0',
'xmltodict>=0.9.2',
]
setup(
name='pinkopy',
version='0.1.2',
description='Python wrapper for Commvault api',
long_description=readme,
author='Herkermer Sherwood',
author_email='theherk@gmail.com',
url='https://github.com/theherk/pinkopy',
download_url='https://github.com/theherk/pinkopy/archive/0.1.2.zip',
packages=find_packages(),
platforms=['all'],
license='MIT',
install_requires=install_requires,
classifiers=[
'Development Status :: 4 - Beta',
'License :: Other/Proprietary License',
'License :: OSI Approved :: MIT License',
'Environment :: Console',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Unix',
'Operating System :: POSIX',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Topic :: Utilities',
],
)
| mit | Python |
99347376e132da72c69d3637e331ce6ea69292e0 | Fix setup.py | chrisgilmerproj/brewday,chrisgilmerproj/brewday | setup.py | setup.py | from setuptools import setup, find_packages
setup(
name='brew',
version='0.0.1',
author='Chris Gilemr',
author_email='chris.gilmer@gmail.com',
maintainer='Chris Gilmer',
maintainer_email='chris.gilmer@gmail.com',
description='Brewing Tools',
url='https://github.com/chrisgilmerproj/silliness/brewing',
packages=find_packages(exclude=["*.tests",
"*.tests.*",
"tests.*",
"tests"]),
include_package_data=True,
zip_safe=False,
tests_require=[
'nose==1.3.1',
'pluggy==0.3.1',
'py==1.4.31',
'tox==2.3.1',
],
classifiers=(
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Intended Audience :: Other Audience",
"License :: OSI Approved :: GNU General Public License (GPL)",
"Operating System :: OS Independent",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
),
)
| from setuptools import setup, find_packages
setup(
name='brew',
version='0.0.1',
author='Chris Gilemr',
author_email='chris.gilmer@gmail.com',
maintainer='Chris Gilmer',
maintainer_email='chris.gilmer@gmail.com',
description='Brewing Tools',
url='https://github.com/chrisgilmerproj/silliness/brewing',
packages=find_packages(exclude=["*.tests",
"*.tests.*",
"tests.*",
"tests"]),
include_package_data=True,
zip_safe=False,
test_requires=[
'nose==1.3.1',
'pluggy==0.3.1',
'py==1.4.31',
'tox==2.3.1',
],
classifiers=(
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Intended Audience :: Other Audience",
"License :: OSI Approved :: GNU General Public License (GPL)",
"Operating System :: OS Independent",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
),
)
| mit | Python |
6397473a65a8c0a50a4e6631127ea26dcb37fc83 | Remove pandoc requirement | dylanaraps/pywal,dylanaraps/pywal,dylanaraps/pywal | setup.py | setup.py | """wal - setup.py"""
import setuptools
try:
import pywal
except ImportError:
print("error: pywal requires Python 3.5 or greater.")
quit(1)
LONG_DESC = open('README.md').read()
VERSION = pywal.__version__
DOWNLOAD = "https://github.com/dylanaraps/pywal/archive/%s.tar.gz" % VERSION
setuptools.setup(
name="pywal",
version=VERSION,
author="Dylan Araps",
author_email="dylan.araps@gmail.com",
description="Generate and change colorschemes on the fly",
long_description_content_type="text/markdown",
long_description=LONG_DESC,
keywords="wal colorscheme terminal-emulators changing-colorschemes",
license="MIT",
url="https://github.com/dylanaraps/pywal",
download_url=DOWNLOAD,
classifiers=[
"Environment :: X11 Applications",
"License :: OSI Approved :: MIT License",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
],
packages=["pywal"],
entry_points={"console_scripts": ["wal=pywal.__main__:main"]},
python_requires=">=3.5",
test_suite="tests",
include_package_data=True,
zip_safe=False)
| """wal - setup.py"""
import setuptools
try:
import pywal
except ImportError:
print("error: pywal requires Python 3.5 or greater.")
quit(1)
LONG_DESC = open('README.md').read()
VERSION = pywal.__version__
DOWNLOAD = "https://github.com/dylanaraps/pywal/archive/%s.tar.gz" % VERSION
setuptools.setup(
name="pywal",
version=VERSION,
author="Dylan Araps",
author_email="dylan.araps@gmail.com",
description="Generate and change colorschemes on the fly",
long_description=LONG_DESC,
keywords="wal colorscheme terminal-emulators changing-colorschemes",
license="MIT",
url="https://github.com/dylanaraps/pywal",
download_url=DOWNLOAD,
classifiers=[
"Environment :: X11 Applications",
"License :: OSI Approved :: MIT License",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
],
packages=["pywal"],
entry_points={"console_scripts": ["wal=pywal.__main__:main"]},
python_requires=">=3.5",
test_suite="tests",
include_package_data=True,
zip_safe=False)
| mit | Python |
ff5c4e84b5a9cb02e749e9af118489923636d823 | Introduce "preview" suffix in the version number | oVirt/ovirt-engine-cli,oVirt/ovirt-engine-cli | setup.py | setup.py |
import os
import sys
from distutils.command.build import build
from setuptools import setup, Command
version_info = {
'name': 'ovirt-shell',
'version': '3.6.0.0preview2',
'description': 'A command-line interface to oVirt Virtualization',
'author': 'Michael Pasternak',
'author_email': 'mpastern@redhat.com',
'url': 'http://www.ovirt.org/wiki/CLI',
'license': 'ASL2',
'classifiers': [
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.4' ],
}
setup(
package_dir={ '': 'src' },
packages=[ 'ovirtcli', 'ovirtcli.command', 'ovirtcli.format',
'ovirtcli.platform', 'ovirtcli.platform.posix',
'ovirtcli.platform.windows', 'ovirtcli.shell', 'ovirtcli.utils', 'cli',
'cli.command', 'cli.platform', 'cli.platform.posix', 'ovirtcli.infrastructure',
'ovirtcli.annotations', 'ovirtcli.events', 'ovirtcli.listeners', 'ovirtcli.meta',
'ovirtcli.state'],
install_requires=[ 'ovirt-engine-sdk-python >= 3.6.0.0preview0', 'ply >= 3.3', 'kitchen >= 1' ],
entry_points={ 'console_scripts': [ 'ovirt-shell = ovirtcli.main:main' ] },
**version_info
)
|
import os
import sys
from distutils.command.build import build
from setuptools import setup, Command
version_info = {
'name': 'ovirt-shell',
'version': '3.6.0.0',
'description': 'A command-line interface to oVirt Virtualization',
'author': 'Michael Pasternak',
'author_email': 'mpastern@redhat.com',
'url': 'http://www.ovirt.org/wiki/CLI',
'license': 'ASL2',
'classifiers': [
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.4' ],
}
setup(
package_dir={ '': 'src' },
packages=[ 'ovirtcli', 'ovirtcli.command', 'ovirtcli.format',
'ovirtcli.platform', 'ovirtcli.platform.posix',
'ovirtcli.platform.windows', 'ovirtcli.shell', 'ovirtcli.utils', 'cli',
'cli.command', 'cli.platform', 'cli.platform.posix', 'ovirtcli.infrastructure',
'ovirtcli.annotations', 'ovirtcli.events', 'ovirtcli.listeners', 'ovirtcli.meta',
'ovirtcli.state'],
install_requires=[ 'ovirt-engine-sdk-python >= 3.6.0.0', 'ply >= 3.3', 'kitchen >= 1' ],
entry_points={ 'console_scripts': [ 'ovirt-shell = ovirtcli.main:main' ] },
**version_info
)
| apache-2.0 | Python |
b74cfb48d997559980170c61c124cf1561032b3d | fix setup.py | bedaes/burp-ui,bedaes/burp-ui,bedaes/burp-ui,bedaes/burp-ui | setup.py | setup.py | #!/usr/bin/env python
# coding: utf-8
import os
import os.path
import re
import sys
from setuptools import setup, find_packages
with open(os.path.join(os.path.dirname(__file__), 'burpui', '__init__.py')) as f:
data = f.read()
name = re.search("__title__ = '(.*)'", data).group(1)
author = re.search("__author__ = '(.*)'", data).group(1)
author_email = re.search("__author_email__ = '(.*)'", data).group(1)
description = re.search("__description__ = '(.*)'", data).group(1)
url = re.search("__url__ = '(.*)'", data).group(1)
with open('requirements.txt', 'r') as f:
requires = [x.strip() for x in f if x.strip()]
with open('test-requirements.txt', 'r') as f:
test_requires = [x.strip() for x in f if x.strip()]
datadir = os.path.join('share', 'burpui', 'etc')
setup(
name=name,
version=open('VERSION').read().rstrip(),
description=description,
long_description=open('README.rst').read(),
license=open('LICENSE').read(),
author=author,
author_email=author_email,
url=url,
keywords='burp web ui',
packages=find_packages(),
include_package_data=True,
package_data={
'static': 'burpui/static/*',
'templates': 'burpui/templates/*'
},
scripts=['bin/burp-ui', 'bin/bui-agent'],
data_files=[(datadir, [os.path.join(datadir, 'burpui.cfg')]),
(datadir, [os.path.join(datadir, 'buiagent.cfg')])
],
install_requires=requires,
extras_require={
'ldap_authentication': ['simpleldap==0.8']
},
tests_require=test_requires,
classifiers=[
'Framework :: Flask',
'Intended Audience :: System Administrators',
'Natural Language :: English',
'License :: OSI Approved :: BSD License',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Topic :: System :: Archiving :: Backup',
'Topic :: System :: Monitoring'
]
)
| #!/usr/bin/env python
# coding: utf-8
import os
import os.path
import re
import sys
from setuptools import setup, find_packages
with open(os.path.join(os.path.dirname(__file__), 'burpui', '__init__.py')) as f:
data = f.read()
name = re.search("__title__ = '(.*)'", data).group(1)
author = re.search("__author__ = '(.*)'", data).group(1)
author_email = re.search("__author_email__ = '(.*)'", data).group(1)
description = re.search("__description__ = '(.*)'", data).group(1)
url = re.search("__url__ = '(.*)'", data).group(1)
with open('requirements.txt', 'r') as f:
requires = [x.strip() for x in f if x.strip()]
with open('test-requirements.txt', 'r') as f:
test_requires = [x.strip() for x in f if x.strip()]
datadir = os.path.join('share', 'burpui', 'etc')
setup(
name=name,
version=open('VERSION').read().rstrip(),
description=description
long_description=open('README.rst').read(),
license=open('LICENSE').read(),
author=author
author_email=author_email
url=url
keywords='burp web ui',
packages=find_packages(),
include_package_data=True,
package_data={
'static': 'burpui/static/*',
'templates': 'burpui/templates/*'
},
scripts=['bin/burp-ui', 'bin/bui-agent'],
data_files=[(datadir, [os.path.join(datadir, 'burpui.cfg')]),
(datadir, [os.path.join(datadir, 'buiagent.cfg')])
],
install_requires=requires
extras_require={
'ldap_authentication': ['simpleldap==0.8']
},
tests_require=test_requires,
classifiers=[
'Framework :: Flask',
'Intended Audience :: System Administrators',
'Natural Language :: English',
'License :: OSI Approved :: BSD License',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Topic :: System :: Archiving :: Backup',
'Topic :: System :: Monitoring'
]
)
| bsd-3-clause | Python |
63a23fb20db64b78dc004a765ea314c45e518648 | add nose as a test dependacy for tox | JoelBender/mongotree | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
with open('README.rst') as readme_file:
readme = readme_file.read()
with open('HISTORY.rst') as history_file:
history = history_file.read().replace('.. :changelog:', '')
requirements = [
'pymongo',
]
test_requirements = [
'nose',
'bacpypes',
]
import mongotree
setup(
name='mongotree',
version=mongotree.__version__,
description="Python module for tree structures in MongoDB",
long_description=readme + '\n\n' + history,
author=mongotree.__author__,
author_email=mongotree.__email__,
url='https://github.com/JoelBender/mongotree',
py_modules=[
'mongotree'
],
# packages=[
# 'mongotree',
# ],
# package_dir={'mongotree':
# 'mongotree'},
# include_package_data=True,
install_requires=requirements,
license="MIT",
zip_safe=False,
keywords='mongotree',
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
"Programming Language :: Python :: 2",
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
],
test_suite='nose.collector',
tests_require=test_requirements
)
| #!/usr/bin/env python
# -*- coding: utf-8 -*-
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
with open('README.rst') as readme_file:
readme = readme_file.read()
with open('HISTORY.rst') as history_file:
history = history_file.read().replace('.. :changelog:', '')
requirements = [
'pymongo'
]
test_requirements = [
'bacpypes'
]
import mongotree
setup(
name='mongotree',
version=mongotree.__version__,
description="Python module for tree structures in MongoDB",
long_description=readme + '\n\n' + history,
author=mongotree.__author__,
author_email=mongotree.__email__,
url='https://github.com/JoelBender/mongotree',
py_modules=[
'mongotree'
],
# packages=[
# 'mongotree',
# ],
# package_dir={'mongotree':
# 'mongotree'},
# include_package_data=True,
install_requires=requirements,
license="MIT",
zip_safe=False,
keywords='mongotree',
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
"Programming Language :: Python :: 2",
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
],
test_suite='nose.collector',
tests_require=test_requirements
)
| mit | Python |
9a73c364c5c6117bf1b247d140aa4da42a3aabcc | fix install | hacklabr/django-discussion,hacklabr/django-discussion,hacklabr/django-discussion | 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):
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('discussion', '__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 github:")
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-discussion',
version=version,
description="""Your project description goes here""",
long_description=readme + '\n\n' + history,
author='Bruno Martin',
author_email='bruno@hacklab.com.br',
url='https://github.com/brunosmartin/django-discussion',
packages=[
'discussion',
],
include_package_data=True,
install_requires=[],
zip_safe=False,
keywords='django-discussion',
classifiers=[
'Development Status :: 3 - Alpha',
'Framework :: Django',
'Framework :: Django :: 1.8',
'Intended Audience :: Developers',
'License :: OSI Approved :: AGPLv3',
'Natural Language :: English',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
],
)
| #!/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):
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_discussion', '__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 github:")
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-discussion',
version=version,
description="""Your project description goes here""",
long_description=readme + '\n\n' + history,
author='Bruno Martin',
author_email='bruno@hacklab.com.br',
url='https://github.com/brunosmartin/django-discussion',
packages=[
'discussion',
],
include_package_data=True,
install_requires=[],
zip_safe=False,
keywords='django-discussion',
classifiers=[
'Development Status :: 3 - Alpha',
'Framework :: Django',
'Framework :: Django :: 1.8',
'Intended Audience :: Developers',
'License :: OSI Approved :: AGPLv3',
'Natural Language :: English',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
],
)
| agpl-3.0 | Python |
19814a1e4b6a41887ee3ff16544dc432b0066294 | Update setup.py | jackdbd/dash-fda | setup.py | setup.py | from setuptools import setup, find_packages
with open('README.md') as f:
readme = f.read()
with open('LICENSE') as f:
license = f.read()
setup(
name='dash_fda',
version='0.1.0',
description='A Dash app displaying data from the openFDA elasticsearch API',
long_description=readme,
author='Giacomo Debiddda',
author_email='jackdebidda@gmail.com',
url='https://github.com/jackdbd/dash-fda',
license=license,
packages=find_packages(exclude=('tests', 'docs'))
)
| from setuptools import setup, find_packages
with open('README.md') as f:
readme = f.read()
with open('LICENSE') as f:
license = f.read()
setup(
name='dash_fda',
version='0.1.0',
description='Python starting project',
long_description=readme,
author='Name Surname',
author_email='your-email@gmail.com',
url='https://github.com/jackdbd/dash-fda',
license=license,
packages=find_packages(exclude=('tests', 'docs'))
)
| mit | Python |
386ee577f5699d0ea117a28c897bc0f5a5e7224b | Update setup.py | pyQode/pyqode.qt,pyQode/pyqode.qt | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Setup script for pyqode.core
"""
from setuptools import setup, find_packages
def read_version():
with open("pyqode/qt/__init__.py") as f:
lines = f.read().splitlines()
for l in lines:
if "__version__" in l:
return l.split("=")[1].strip().replace(
"'", '').replace('"', '')
def readme():
return str(open('README.rst').read())
setup(
name='pyqode.qt',
namespace_packages=['pyqode'],
version=read_version(),
packages=[p for p in find_packages() if 'test' not in p],
keywords=["qt PyQt4 PyQt5 PySide"],
url='https://github.com/pyQode/pyqode.qt',
license='MIT',
author='Colin Duquesnoy',
author_email='colin.duquesnoy@gmail.com',
description='Provides an abstraction layer on top of the various Qt '
'bindings (PyQt5, PyQt4 and PySide)',
long_description=readme(),
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: X11 Applications :: Qt',
'Environment :: Win32 (MS Windows)',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Topic :: Software Development :: Widget Sets'])
| #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Setup script for pyqode.core
"""
from setuptools import setup, find_packages
def read_version():
with open("pyqode/qt/__init__.py") as f:
lines = f.read().splitlines()
for l in lines:
if "__version__" in l:
return l.split("=")[1].strip().replace(
"'", '').replace('"', '')
def readme():
return str(open('README.rst').read())
setup(
name='pyqode.qt',
namespace_packages=['pyqode'],
version=read_version(),
packages=[p for p in find_packages() if 'test' not in p],
keywords=["qt PyQt4 PyQt5 PySide"],
url='https://github.com/pyQode/pyqode.qt',
license='MIT',
author='Colin Duquesnoy',
author_email='colin.duquesnoy@gmail.com',
description='Provides an abstraction layer on top of the various Qt '
'bindings (PyQt5, PyQt4 and PySide)',
long_description=readme(),
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: X11 Applications :: Qt',
'Environment :: Win32 (MS Windows)',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Topic :: Software Development :: Widget Sets'])
| mit | Python |
ecb98c9316d1d6ea3492cf5593ffe21ee5cb17ed | Bump version number. | aaugustin/django-sequences | setup.py | setup.py | from __future__ import unicode_literals
import codecs
import os.path
import setuptools
root_dir = os.path.abspath(os.path.dirname(__file__))
description = "Generate gap-less sequences of integer values."
with codecs.open(os.path.join(root_dir, 'README.rst'), encoding='utf-8') as f:
long_description = f.read()
setuptools.setup(
name='django-sequences',
version='2.2',
description=description,
long_description=long_description,
url='https://github.com/aaugustin/django-sequences',
author='Aymeric Augustin',
author_email='aymeric.augustin@m4x.org',
license='BSD',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Framework :: Django',
'Framework :: Django :: 1.8',
'Framework :: Django :: 1.9',
'Framework :: Django :: 1.10',
'Framework :: Django :: 1.11',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
],
packages=[
'sequences',
'sequences.migrations',
],
package_data={
'sequences': [
'locale/*/LC_MESSAGES/*',
],
},
)
| from __future__ import unicode_literals
import codecs
import os.path
import setuptools
root_dir = os.path.abspath(os.path.dirname(__file__))
description = "Generate gap-less sequences of integer values."
with codecs.open(os.path.join(root_dir, 'README.rst'), encoding='utf-8') as f:
long_description = f.read()
setuptools.setup(
name='django-sequences',
version='2.1',
description=description,
long_description=long_description,
url='https://github.com/aaugustin/django-sequences',
author='Aymeric Augustin',
author_email='aymeric.augustin@m4x.org',
license='BSD',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Framework :: Django',
'Framework :: Django :: 1.8',
'Framework :: Django :: 1.9',
'Framework :: Django :: 1.10',
'Framework :: Django :: 1.11',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
],
packages=[
'sequences',
'sequences.migrations',
],
package_data={
'sequences': [
'locale/*/LC_MESSAGES/*',
],
},
)
| bsd-3-clause | Python |
a6ad6a78eb72d6d39f882fe73e90614c31433abe | increment version, upload to pypi | mir-group/flare,mir-group/flare | setup.py | setup.py | import setuptools
with open("README.md", "r") as fh:
long_description = fh.read()
with open("requirements.txt", "r") as fh:
dependencies = fh.readlines()
setuptools.setup(
name="mir-flare",
packages=setuptools.find_packages(exclude=["tests"]),
version="0.0.4",
author="Materials Intelligence Research",
author_email="mir@g.harvard.edu",
description="Fast Learning of Atomistic Rare Events",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/mir-group/flare",
python_requires=">=3.6",
install_requires=dependencies,
license="MIT",
classifiers=[
"License :: OSI Approved :: MIT License",
"Topic :: Scientific/Engineering :: Physics",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Development Status :: 4 - Beta",
],
)
| import setuptools
with open("README.md", "r") as fh:
long_description = fh.read()
with open("requirements.txt", "r") as fh:
dependencies = fh.readlines()
setuptools.setup(
name="mir-flare",
packages=setuptools.find_packages(exclude=["tests"]),
version="0.0.3",
author="Materials Intelligence Research",
author_email="mir@g.harvard.edu",
description="Fast Learning of Atomistic Rare Events",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/mir-group/flare",
python_requires=">=3.6",
install_requires=dependencies,
license="MIT",
classifiers=[
"License :: OSI Approved :: MIT License",
"Topic :: Scientific/Engineering :: Physics",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Development Status :: 4 - Beta",
],
)
| mit | Python |
26d3b8eb1992b19aebe8f0e3eae386e8b95822fb | Switch to distutils, fix install for py3.4 | njvack/scorify | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from distutils.core import setup, Command
import os
class PyTest(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
import sys
import subprocess
errno = subprocess.call([sys.executable, 'runtests.py'])
raise SystemExit(errno)
def get_locals(filename):
l = {}
with open(filename, 'r') as f:
code = compile(f.read(), filename, 'exec')
exec(code, {}, l)
return l
metadata = get_locals(os.path.join('scorify', '_metadata.py'))
setup(
name="scorify",
version=metadata['version'],
author=metadata['author'],
author_email=metadata['author_email'],
license=metadata['license'],
url=metadata['url'],
packages=['scorify'],
cmdclass={'test': PyTest},
entry_points={
'console_scripts': [
'score_data = scorify.scripts.score_data:main'
]}
)
| #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages, Command
import os
packages = find_packages()
class PyTest(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
import sys
import subprocess
errno = subprocess.call([sys.executable, 'runtests.py'])
raise SystemExit(errno)
def get_locals(filename):
l = {}
execfile(filename, {}, l)
return l
metadata = get_locals(os.path.join('scorify', '_metadata.py'))
setup(
name="scorify",
version=metadata['version'],
author=metadata['author'],
author_email=metadata['author_email'],
license=metadata['license'],
url=metadata['url'],
packages=find_packages(),
cmdclass={'test': PyTest},
entry_points={
'console_scripts': [
'score_data = scorify.scripts.score_data:main'
]}
)
| mit | Python |
43dd50c6a11c489144d0e1efb263b45e10ba7bff | Fix syntax error in setup.py | systemctl/formencode,systemctl/formencode,formencode/formencode,jvanasco/formencode,jvanasco/formencode,formencode/formencode,genixpro/formencode,jvanasco/formencode,systemctl/formencode,formencode/formencode,genixpro/formencode,genixpro/formencode | setup.py | setup.py | import sys
from setuptools import setup
version = '1.3.0dev'
if not '2.6' <= sys.version < '3.0' and not '3.2' <= sys.version:
raise ImportError('Python version not supported')
tests_require = ['nose', 'pycountry', 'dnspython']
setup(name="FormEncode",
version=version,
#requires_python=]'>=2.3,<3', # PEP345
description="HTML form validation, generation, and conversion package",
long_description="""\
FormEncode validates and converts nested structures. It allows for
a declarative form of defining the validation, and decoupled processes
for filling and generating forms.
The official repo is at GitHub: https://github.com/formencode/formencode
""",
classifiers=["Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: Python Software Foundation License",
"Programming Language :: Python",
"Topic :: Software Development :: Libraries :: Python Modules",
],
author="Ian Bicking",
author_email="ianb@colorstudy.com",
url="http://formencode.org",
license="PSF",
zip_safe=False,
packages=["formencode", "formencode.util"],
include_package_data=True,
test_suite='nose.collector',
tests_require=tests_require,
)
| import sys
from setuptools import setup
version = '1.3.0dev'
if not '2.6' <= sys.version < '3.0' and not '3.2' <= sys.version
raise ImportError('Python version not supported')
tests_require = ['nose', 'pycountry', 'dnspython']
setup(name="FormEncode",
version=version,
#requires_python=]'>=2.3,<3', # PEP345
description="HTML form validation, generation, and conversion package",
long_description="""\
FormEncode validates and converts nested structures. It allows for
a declarative form of defining the validation, and decoupled processes
for filling and generating forms.
The official repo is at GitHub: https://github.com/formencode/formencode
""",
classifiers=["Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: Python Software Foundation License",
"Programming Language :: Python",
"Topic :: Software Development :: Libraries :: Python Modules",
],
author="Ian Bicking",
author_email="ianb@colorstudy.com",
url="http://formencode.org",
license="PSF",
zip_safe=False,
packages=["formencode", "formencode.util"],
include_package_data=True,
test_suite='nose.collector',
tests_require=tests_require,
)
| mit | Python |
602137d59b09be3394925fa25ca67d60e0685397 | Update Tar location | marty-sullivan/pyndfd | setup.py | setup.py | from distutils.core import setup
setup(
name = 'pyndfd',
packages = ['pyndfd'],
version = '0.9',
license = 'MIT License',
description = 'Python routines for easy caching/retrieval of NWS\'s NDFD variables',
author = 'Marty J. Sullivan',
author_email = 'marty.sullivan@cornell.edu',
url = 'https://github.com/marty-sullivan/pyndfd',
download_url = 'https://github.com/marty-sullivan/pyndfd/archive/0.9.tar.gz',
install_requires = ['numpy', 'pyproj', 'pygrib'],
keywords = ['noaa', 'ndfd', 'nws', 'weather', 'forecast', 'cornell', 'atmospheric', 'science']
)
| from distutils.core import setup
setup(
name = 'pyndfd',
packages = ['pyndfd'],
version = '0.9',
license = 'MIT License',
description = 'Python routines for easy caching/retrieval of NWS\'s NDFD variables',
author = 'Marty J. Sullivan',
author_email = 'marty.sullivan@cornell.edu',
url = 'https://github.com/marty-sullivan/pyndfd',
download_url = 'https://github.com/marty-sullivan/pyndfd/tarball/0.8.2',
install_requires = ['numpy', 'pyproj', 'pygrib'],
keywords = ['noaa', 'ndfd', 'nws', 'weather', 'forecast', 'cornell', 'atmospheric', 'science']
)
| mit | Python |
45bc876f22eee139dbe368250c7b1673e45d255d | Add test dirs to setup.py packages | sot/mica,sot/mica | setup.py | setup.py | from setuptools import setup
from mica.version import version
try:
from testr.setup_helper import cmdclass
except ImportError:
cmdclass = {}
license = """\
New BSD/3-clause BSD License
Copyright (c) 2012 Smithsonian Astrophysical Observatory
All rights reserved."""
try:
from testr.setup_helper import cmdclass
except ImportError:
cmdclass = {}
setup(name='mica',
description='Mica aspects archive',
version=version,
author='Jean Connelly',
author_email='jconnelly@cfa.harvard.edu',
license=license,
zip_safe=False,
packages=['mica', 'mica.archive', 'mica.archive.tests', 'mica.archive.aca_dark',
'mica.vv', 'mica.vv.tests',
'mica.starcheck', 'mica.catalog', 'mica.report', 'mica.report.tests', 'mica.web',
'mica.stats.tests', 'mica.archive.tests'],
package_data={'mica.web': ['templates/*/*.html', 'templates/*.html'],
'mica.report': ['templates/*.html']},
tests_require=['pytest'],
cmdclass=cmdclass,
)
| from setuptools import setup
from mica.version import version
try:
from testr.setup_helper import cmdclass
except ImportError:
cmdclass = {}
license = """\
New BSD/3-clause BSD License
Copyright (c) 2012 Smithsonian Astrophysical Observatory
All rights reserved."""
try:
from testr.setup_helper import cmdclass
except ImportError:
cmdclass = {}
setup(name='mica',
description='Mica aspects archive',
version=version,
author='Jean Connelly',
author_email='jconnelly@cfa.harvard.edu',
license=license,
zip_safe=False,
packages=['mica', 'mica.archive', 'mica.archive.tests', 'mica.archive.aca_dark',
'mica.vv', 'mica.vv.tests',
'mica.starcheck', 'mica.catalog', 'mica.report', 'mica.web',
'mica.stats', 'mica.archive.tests'],
package_data={'mica.web': ['templates/*/*.html', 'templates/*.html'],
'mica.report': ['templates/*.html']},
tests_require=['pytest'],
cmdclass=cmdclass,
)
| bsd-3-clause | Python |
9dd4a069210a653631c96f86f6d628e9dd68d7cf | update project URLs in setup.py | timeyyy/esky,ccpgames/esky,datalytica/esky,kinnarr/esky,Darkman/esky | setup.py | setup.py |
import sys
setup_kwds = {}
if sys.version_info > (3,):
from setuptools import setup
setup_kwds["test_suite"] = "esky.tests.test_esky"
setup_kwds["use_2to3"] = True
else:
from distutils.core import setup
# This awfulness is all in aid of grabbing the version number out
# of the source code, rather than having to repeat it here. Basically,
# we parse out all lines starting with "__version__" and execute them.
try:
next = next
except NameError:
def next(i):
return i.next()
info = {}
try:
src = open("esky/__init__.py")
lines = []
ln = next(src)
while "__version__" not in ln:
lines.append(ln)
ln = next(src)
while "__version__" in ln:
lines.append(ln)
ln = next(src)
exec("".join(lines),info)
except Exception:
pass
NAME = "esky"
VERSION = info["__version__"]
DESCRIPTION = "keep frozen apps fresh"
AUTHOR = "Ryan Kelly"
AUTHOR_EMAIL = "rfk@cloudmatrix.com.au"
URL = "http://github.com/cloudmatrix/esky/"
LICENSE = "BSD"
KEYWORDS = "update auto-update freeze"
LONG_DESC = info["__doc__"]
PACKAGES = ["esky","esky.bdist_esky","esky.tests","esky.tests.eskytester",
"esky.sudo"]
EXT_MODULES = []
PKG_DATA = {"esky.tests.eskytester":["pkgdata.txt","datafile.txt"],
"esky.tests":["patch-test-files/*.patch"]}
setup(name=NAME,
version=VERSION,
author=AUTHOR,
author_email=AUTHOR_EMAIL,
url=URL,
description=DESCRIPTION,
long_description=LONG_DESC,
keywords=KEYWORDS,
packages=PACKAGES,
ext_modules=EXT_MODULES,
package_data=PKG_DATA,
license=LICENSE,
**setup_kwds
)
|
import sys
setup_kwds = {}
if sys.version_info > (3,):
from setuptools import setup
setup_kwds["test_suite"] = "esky.tests.test_esky"
setup_kwds["use_2to3"] = True
else:
from distutils.core import setup
# This awfulness is all in aid of grabbing the version number out
# of the source code, rather than having to repeat it here. Basically,
# we parse out all lines starting with "__version__" and execute them.
try:
next = next
except NameError:
def next(i):
return i.next()
info = {}
try:
src = open("esky/__init__.py")
lines = []
ln = next(src)
while "__version__" not in ln:
lines.append(ln)
ln = next(src)
while "__version__" in ln:
lines.append(ln)
ln = next(src)
exec("".join(lines),info)
except Exception:
pass
NAME = "esky"
VERSION = info["__version__"]
DESCRIPTION = "keep frozen apps fresh"
AUTHOR = "Ryan Kelly"
AUTHOR_EMAIL = "rfk@cloud.me"
URL = "http://github.com/clouddotme/esky/"
LICENSE = "BSD"
KEYWORDS = "update auto-update freeze"
LONG_DESC = info["__doc__"]
PACKAGES = ["esky","esky.bdist_esky","esky.tests","esky.tests.eskytester",
"esky.sudo"]
EXT_MODULES = []
PKG_DATA = {"esky.tests.eskytester":["pkgdata.txt","datafile.txt"],
"esky.tests":["patch-test-files/*.patch"]}
setup(name=NAME,
version=VERSION,
author=AUTHOR,
author_email=AUTHOR_EMAIL,
url=URL,
description=DESCRIPTION,
long_description=LONG_DESC,
keywords=KEYWORDS,
packages=PACKAGES,
ext_modules=EXT_MODULES,
package_data=PKG_DATA,
license=LICENSE,
**setup_kwds
)
| bsd-3-clause | Python |
f9dee6ba150c5f171e53755cce068b25eeaf3998 | add console script entrypoint | walkacross/stockgo | setup.py | setup.py | from setuptools import setup
setup(name='stockgo',
version='0.1',
description='The stock go in the world',
url='https://github.com/walkacross/stockgo',
author='alen yu',
author_email='yujiangallen@126.com',
license='MIT',
packages=['stockgo'],
entry_points = {
'console_scripts':['stockgo-joke=stockgo.command_line:main'],
},
install_requires=[
'markdown','numpy'
],
zip_safe=False)
| from setuptools import setup
setup(name='stockgo',
version='0.1',
description='The stock go in the world',
url='https://github.com/walkacross/stockgo',
author='alen yu',
author_email='yujiangallen@126.com',
license='MIT',
packages=['stockgo'],
install_requires=[
'markdown','numpy'
],
zip_safe=False)
| mit | Python |
856669934647341e6e7b1c053af0e1ecbe035730 | Use double-quotes. | sujaymansingh/dudebot | setup.py | setup.py | from setuptools import setup
REQUIREMENTS = [
"jabberbot==0.15",
"xmpppy==0.5.0rc1",
"feedparser==5.1.3",
]
if __name__ == "__main__":
setup(
name="dudebot",
version="0.0.4",
author="Sujay Mansingh",
author_email="sujay.mansingh@gmail.com",
packages=["dudebot", "dudebot.examples"],
package_data={
"dudebot": ["README.md"]
},
scripts=[],
url="https://github.com/sujaymansingh/dudebot",
license="LICENSE.txt",
description="A really simple framework for chatroom bots",
long_description=open("README.md").read(),
install_requires=REQUIREMENTS
)
| from setuptools import setup
REQUIREMENTS = [
'jabberbot==0.15',
'xmpppy==0.5.0rc1',
'feedparser==5.1.3',
]
if __name__ == "__main__":
setup(
name='dudebot',
version='0.0.4',
author='Sujay Mansingh',
author_email='sujay.mansingh@gmail.com',
packages=['dudebot', 'dudebot.examples'],
package_data={
'dudebot': ['README.md']
},
scripts=[],
url='https://github.com/sujaymansingh/dudebot',
license='LICENSE.txt',
description='A really simple framework for chatroom bots',
long_description=open('README.md').read(),
install_requires=REQUIREMENTS
)
| bsd-2-clause | Python |
359d845266a922c489d7ae1c0a636c7710d85e22 | Add url parameter in setup.py. | google/tf-quant-finance,google/tf-quant-finance | setup.py | setup.py | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ==============================================================================
"""Setup for pip package."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from setuptools import find_packages
from setuptools import setup
from setuptools.dist import Distribution
__version__ = '0.0.1dev'
REQUIRED_PACKAGES = [
'tensorflow >= 1.12.0',
'tensorflow-probability >= 0.5.0',
'numpy >= 1.13.3'
]
project_name = 'tf-quant-finance'
description = 'High performance Tensorflow library for quantitative finance.'
class BinaryDistribution(Distribution):
"""This class is needed in order to create OS specific wheels."""
def has_ext_modules(self):
return False
setup(
name=project_name,
version=__version__,
description=description,
author='Google Inc.',
author_email='tf-quant-finance@google.com',
url='https://github.com/google/tf-quant-finance',
# Contained modules and scripts.
packages=find_packages(),
install_requires=REQUIRED_PACKAGES,
# Add in any packaged data.
include_package_data=True,
zip_safe=False,
distclass=BinaryDistribution,
# PyPI package information.
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Intended Audience :: Developers',
'Intended Audience :: Education',
'Intended Audience :: Financial and Insurance Industry',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Natural Language :: English',
'Topic :: Scientific/Engineering :: Mathematics',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Software Development :: Libraries',
'Operating System :: OS Independent',
],
license='Apache 2.0',
keywords='tensorflow quantitative finance hpc gpu option pricing',
package_data={
'tf_quant_finance': [
'third_party/sobol_data/new-joe-kuo.6.21201',
'third_party/sobol_data/LICENSE'
]
},
)
| # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ==============================================================================
"""Setup for pip package."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from setuptools import find_packages
from setuptools import setup
from setuptools.dist import Distribution
__version__ = '0.0.1dev'
REQUIRED_PACKAGES = [
'tensorflow >= 1.12.0',
'tensorflow-probability >= 0.5.0',
'numpy >= 1.13.3'
]
project_name = 'tf-quant-finance'
description = 'High performance Tensorflow library for quantitative finance.'
class BinaryDistribution(Distribution):
"""This class is needed in order to create OS specific wheels."""
def has_ext_modules(self):
return False
setup(
name=project_name,
version=__version__,
description=description,
author='Google Inc.',
author_email='tf-quant-finance@google.com',
# Contained modules and scripts.
packages=find_packages(),
install_requires=REQUIRED_PACKAGES,
# Add in any packaged data.
include_package_data=True,
zip_safe=False,
distclass=BinaryDistribution,
# PyPI package information.
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Intended Audience :: Developers',
'Intended Audience :: Education',
'Intended Audience :: Financial and Insurance Industry',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Natural Language :: English',
'Topic :: Scientific/Engineering :: Mathematics',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Software Development :: Libraries',
'Operating System :: OS Independent',
],
license='Apache 2.0',
keywords='tensorflow quantitative finance hpc gpu option pricing',
package_data={
'tf_quant_finance': [
'third_party/sobol_data/new-joe-kuo.6.21201',
'third_party/sobol_data/LICENSE'
]
},
)
| apache-2.0 | Python |
d5c92dd3da328e3cd0f83e7b50517d7446dc556c | Fix division by zero the in ram view | supertuxkart/stk-stats,leyyin/stk-stats,leyyin/stk-stats,supertuxkart/stk-stats | userreport/views/ram.py | userreport/views/ram.py | from userreport.models import UserReport
from django.http import HttpResponse
from django.views.decorators.cache import cache_page
from matplotlib.backends.backend_agg import FigureCanvasAgg as FigureCanvas
from matplotlib.figure import Figure
@cache_page(60 * 120)
def ReportRam(request):
reports = UserReport.objects
reports = reports.filter(data_type='hwdetect', data_version__gte=1)
counts = {}
for report in reports:
# if not report.data_json()['os_linux']: continue
ram = report.data_json()['ram_total']
counts.setdefault(ram, set()).add(report.user_id_hash)
datapoints = [(0, 0)]
accum = 0
for size, count in sorted(counts.items()):
accum += len(count)
datapoints.append((size, accum))
fig = Figure(figsize=(16, 10))
ax = fig.add_subplot(111)
fig.subplots_adjust(left=0.05, right=0.98, top=0.98, bottom=0.05)
ax.grid(True)
if accum: # We have data
ax.step([d[0] for d in datapoints], [100 * 1 - (float(d[1]) / accum) for d in datapoints])
ax.set_xticks([0, 256, 512] + [1024 * n for n in range(1, 9)])
ax.set_xlim(0, 8192)
ax.set_xlabel('RAM (megabytes)')
ax.set_yticks(range(0, 101, 5))
ax.set_ylim(0, 100)
ax.set_ylabel('Cumulative percentage of users')
canvas = FigureCanvas(fig)
response = HttpResponse(content_type='image/png')
canvas.print_png(response, dpi=80)
return response
| from userreport.models import UserReport
from django.http import HttpResponse
from django.views.decorators.cache import cache_page
from matplotlib.backends.backend_agg import FigureCanvasAgg as FigureCanvas
from matplotlib.figure import Figure
@cache_page(60 * 120)
def ReportRam(request):
reports = UserReport.objects
reports = reports.filter(data_type='hwdetect', data_version__gte=1)
counts = {}
for report in reports:
# if not report.data_json()['os_linux']: continue
ram = report.data_json()['ram_total']
counts.setdefault(ram, set()).add(report.user_id_hash)
datapoints = [(0, 0)]
accum = 0
for size, count in sorted(counts.items()):
accum += len(count)
datapoints.append((size, accum))
fig = Figure(figsize=(16, 10))
ax = fig.add_subplot(111)
fig.subplots_adjust(left=0.05, right=0.98, top=0.98, bottom=0.05)
ax.grid(True)
ax.step([d[0] for d in datapoints], [100 * 1 - (float(d[1]) / accum) for d in datapoints])
ax.set_xticks([0, 256, 512] + [1024 * n for n in range(1, 9)])
ax.set_xlim(0, 8192)
ax.set_xlabel('RAM (megabytes)')
ax.set_yticks(range(0, 101, 5))
ax.set_ylim(0, 100)
ax.set_ylabel('Cumulative percentage of users')
canvas = FigureCanvas(fig)
response = HttpResponse(content_type='image/png')
canvas.print_png(response, dpi=80)
return response
| mit | Python |
b676f838b0f9388cab464120c2a95c449de32733 | remove mvs keywords from setup | aacanakin/glim | setup.py | setup.py | from setuptools import setup
import glim
import os
from os.path import exists
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()
try:
from setuptools import setup, find_packages
except ImportError:
from distutils.core import setup, find_packages
setup(
author = 'Aras Can Akin',
author_email = 'aacanakin@gmail.com',
name = 'glim',
packages = find_packages(exclude=['app', 'ext']),
version = '0.8.5',
description = 'A modern framework for the web',
long_description = read('README.rst'),
entry_points={
'console_scripts':['glim=glim.cli:main']
},
url = 'https://github.com/aacanakin/glim',
download_url = 'https://github.com/aacanakin/glim/archive/v0.8.5.zip',
keywords = [
'framework',
'web framework',
'api development',
'Werkzeug',
'SQLAlchemy',
'Jinja2',
'termcolor',
],
install_requires = [
"Werkzeug >= 0.9",
"Jinja2 >= 2.7.3",
"SQLAlchemy >= 0.9.7",
"termcolor >= 1.1.0"
],
classifiers = [
'Development Status :: 3 - Alpha',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules'
]
)
| from setuptools import setup
import glim
import os
from os.path import exists
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()
try:
from setuptools import setup, find_packages
except ImportError:
from distutils.core import setup, find_packages
setup(
author = 'Aras Can Akin',
author_email = 'aacanakin@gmail.com',
name = 'glim',
packages = find_packages(exclude=['app', 'ext']),
version = '0.8.5',
description = 'A modern framework for the web',
long_description = read('README.rst'),
entry_points={
'console_scripts':['glim=glim.cli:main']
},
url = 'https://github.com/aacanakin/glim',
download_url = 'https://github.com/aacanakin/glim/archive/v0.8.5.zip',
keywords = [
'mvc',
'mvc(s)',
'framework',
'web framework',
'api development',
'Werkzeug',
'SQLAlchemy',
'Jinja2',
'termcolor',
],
install_requires = [
"Werkzeug >= 0.9",
"Jinja2 >= 2.7.3",
"SQLAlchemy >= 0.9.7",
"termcolor >= 1.1.0"
],
classifiers = [
'Development Status :: 3 - Alpha',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules'
]
)
| mit | Python |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.