Ejemplo n.º 1
0
def setup_package():
  from distribute_setup import use_setuptools
  use_setuptools()
  from setuptools import setup, find_packages

  setup(
      name = 'kegbot-pycore',
      version = VERSION,
      description = SHORT_DESCRIPTION,
      long_description = LONG_DESCRIPTION,
      author = 'mike wakerly',
      author_email = '*****@*****.**',
      url = 'http://kegbot.org/',
      packages = find_packages(exclude=['testdata']),
      namespace_packages = ['kegbot'],
      scripts = [
        'distribute_setup.py',
        'bin/kegboard_daemon.py',
        'bin/kegbot_core.py',
        'bin/kegbot_master.py',
        'bin/lcd_daemon.py',
        'bin/rfid_daemon.py',
        'bin/test_flow.py',
      ],
      install_requires = [
        'kegbot-pyutils >= 0.1.4',
        'kegbot-api >= 0.1.2',
        'kegbot-kegboard >= 1.0.0',

        'python-gflags >= 1.8',
      ],
      include_package_data = True,
  )
Ejemplo n.º 2
0
def setup_package():
  from distribute_setup import use_setuptools
  use_setuptools()
  from setuptools import setup, find_packages

  setup(
      name = 'kegbot',
      version = VERSION,
      description = SHORT_DESCRIPTION,
      long_description = LONG_DESCRIPTION,
      author = 'mike wakerly',
      author_email = '*****@*****.**',
      url = 'http://kegbot.org/',
      packages = find_packages('src'),
      package_dir = {
        '' : 'src',
      },
      scripts = [
        'distribute_setup.py',
        'bin/kegbot-admin.py',
      ],
      install_requires = DEPENDENCIES,
      dependency_links = [
          'https://github.com/rem/python-protobuf/tarball/master#egg=protobuf-2.4.1',
      ],
      include_package_data = True,
      entry_points = {
        'console_scripts': ['instance=django.core.management:execute_manager'],
      },

  )
Ejemplo n.º 3
0
def run():
  from distribute_setup import use_setuptools
  use_setuptools()
  
  # Grab the __version__ defined in version.py
  import os.path
  sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'src'))
  import cake.version
  
  from setuptools import setup, find_packages
  setup(
    name='Cake',
    version=cake.version.__version__,
    author="Lewis Baker, Stuart McMahon.",
    author_email='[email protected], [email protected]',
    url="http://sourceforge.net/projects/cake-build",
    description="A build system written in Python.",
    license="MIT",
    package_dir={'cake' : 'src/cake'},
    packages=find_packages('src', exclude=['*.test', '*.test.*']),
    entry_points={
      'console_scripts': [
        'cake = cake.main:execute',
        ],
      },
    test_suite='cake.test',
    use_2to3=sys.hexversion >= 0x03000000, # Use Python 3.x support?
    )
  return 0
Ejemplo n.º 4
0
def setup_package():
  from distribute_setup import use_setuptools
  use_setuptools()
  from setuptools import setup, find_packages

  setup(
      name = 'kegbot-kegboard',
      version = VERSION,
      description = SHORT_DESCRIPTION,
      long_description = LONG_DESCRIPTION,
      author = 'mike wakerly',
      author_email = '*****@*****.**',
      url = 'http://kegbot.org/',
      packages = find_packages(exclude=['testdata']),
      namespace_packages = ['kegbot'],
      scripts = [
        'distribute_setup.py',
        'bin/kegboard-monitor.py',
        'bin/kegboard-tester.py',
        'bin/kegboard-info.py',
      ],
      install_requires = [
        'kegbot-pyutils >= 0.1.2',
        'python-gflags',
        'pyserial',
      ],
      include_package_data = True,
  )
Ejemplo n.º 5
0
def init(
    dist='dist',
    minver=None,
    maxver=None,
    use_markdown_readme=True,
    use_stdeb=False,
    use_distribute=False,
    ):
    """Imports and returns a setup function.

    If use_markdown_readme is set,
    then README.md is added to setuptools READMES list.

    If use_stdeb is set on a Debian based system,
    then module stdeb is imported.
    Stdeb supports building deb packages on Debian based systems.
    The package should only be installed on the same system version
    it was built on, though. See http://github.com/astraw/stdeb.

    If use_distribute is set, then distribute_setup.py is imported.
    """
    if not minver == maxver == None:
        import sys
        if not minver <= sys.version < (maxver or 'Any'):
            sys.stderr.write(
                '%s: requires python version in <%s, %s), not %s\n' % (
                sys.argv[0], minver or 'any', maxver or 'any', sys.version.split()[0]))
            sys.exit(1)

    if use_distribute:
        from distribute_setup import use_setuptools
        use_setuptools(to_dir=dist)
        from setuptools import setup
    else:
        try:
            from setuptools import setup
        except ImportError:
            from distutils.core import setup

    if use_markdown_readme:
        try:
            import setuptools.command.sdist
            setuptools.command.sdist.READMES = tuple(list(getattr(setuptools.command.sdist, 'READMES', ()))
                + ['README.md'])
        except ImportError:
            pass

    if use_stdeb:
        import platform
        if 'debian' in platform.dist():
            try:
                import stdeb
            except ImportError:
                pass

    return setup
    def test_use_setuptools(self):
        self.assertEqual(use_setuptools(), None)

        # make sure fake_setuptools is not called by default
        import pkg_resources
        del pkg_resources._distribute
        def fake_setuptools(*args):
            raise AssertionError

        pkg_resources._fake_setuptools = fake_setuptools
        use_setuptools()
Ejemplo n.º 7
0
def setup_distribute():
    """
    This will download and install Distribute.
    """
    try:
        import distribute_setup
    except:
        # Make sure we have Distribute
        if not os.path.exists('distribute_setup'):
            urllib.urlretrieve('http://nightly.ziade.org/distribute_setup.py',
                               './distribute_setup.py')
        distribute_setup = __import__('distribute_setup')
    distribute_setup.use_setuptools()
Ejemplo n.º 8
0
def main():
    # these imports inside main() so that other scripts can import this file
    # cheaply, to get at its module-level constants like NAME
    
    # use_setuptools must be called before importing from setuptools
    from distribute_setup import use_setuptools
    use_setuptools()
    from setuptools import setup

    config = get_sdist_config()

    if '--verbose' in sys.argv:
        pprint(config)
    if '--dry-run' in sys.argv:
        return

    setup(**config)
Ejemplo n.º 9
0
def setupPackage():
    # automatically install distribute if the user does not have it installed
    distribute_setup.use_setuptools()
    # use lib2to3 for Python 3.x
    if sys.version_info[0] == 3:
        convert2to3()
    # setup package
    setup(
        name=NAME,
        version=getVersion(),
        description=DOCSTRING[1],
        long_description="\n".join(DOCSTRING[3:]),
        url="http://www.obspy.org",
        author=AUTHOR,
        author_email=AUTHOR_EMAIL,
        license=LICENSE,
        platforms='OS Independent',
        classifiers=[
            'Development Status :: 4 - Beta',
            'Environment :: Console',
            'Intended Audience :: Science/Research',
            'Intended Audience :: Developers',
            'License :: OSI Approved :: GNU Library or ' + \
                'Lesser General Public License (LGPL)',
            'Operating System :: OS Independent',
            'Programming Language :: Python',
            'Topic :: Scientific/Engineering',
            'Topic :: Scientific/Engineering :: Physics'],
        keywords=KEYWORDS,
        packages=find_packages(exclude=['distribute_setup']),
        namespace_packages=['obspy'],
        zip_safe=False,
        install_requires=INSTALL_REQUIRES,
        download_url="https://svn.obspy.org/trunk/%s#egg=%s-dev" % (NAME,
                                                                    NAME),
        include_package_data=True,
        test_suite="%s.tests.suite" % (NAME),
        entry_points=ENTRY_POINTS,
    )
    # cleanup after using lib2to3 for Python 3.x
    if sys.version_info[0] == 3:
        os.chdir(LOCAL_PATH)
Ejemplo n.º 10
0
def setup_package():
    from distribute_setup import use_setuptools

    use_setuptools()
    from setuptools import setup, find_packages

    setup(
        name="kegbot-kegboard",
        version=VERSION,
        description=SHORT_DESCRIPTION,
        long_description=LONG_DESCRIPTION,
        author="mike wakerly",
        author_email="*****@*****.**",
        url="http://kegbot.org/",
        packages=find_packages(exclude=["testdata"]),
        namespace_packages=["kegbot"],
        scripts=["distribute_setup.py", "bin/kegboard-monitor.py", "bin/kegboard-tester.py"],
        install_requires=["kegbot-pyutils >= 0.1.2", "python-gflags", "pyserial"],
        include_package_data=True,
    )
Ejemplo n.º 11
0
#
#    The above copyright notice and this permission notice shall be included in
#    all copies or substantial portions of the Software.
#
#    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
#    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
#    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
#    THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
#    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
#    FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
#    DEALINGS IN THE SOFTWARE.
#

from distribute_setup import use_setuptools

use_setuptools("0.6.24")
from setuptools import setup
from setuptools import find_packages

import distutils.dir_util
import shutil, os.path, atexit
import sys

try:
    distutils.dir_util.remove_tree("build")
except:
    pass

extra = {}
if sys.version_info >= (3,):
    extra["use_2to3"] = True
Ejemplo n.º 12
0
# -*- coding: utf-8 -*-

# Bootstrap installation of Distribute
import distribute_setup
distribute_setup.use_setuptools()

from setuptools import setup, find_packages

try:
    long_desc = open('README.rst', 'r').read()
except IOError:
    long_desc = ''

requires = ['Sphinx>=0.6',
            'docutils>=0.6',
            ]

NAME = 'sphinxcontrib-fulltoc'
VERSION = '1.0'

setup(
    name=NAME,
    version=VERSION,
    url='http://sphinxcontrib-fulltoc.readthedocs.org',
    license='Apache 2',
    author='Doug Hellmann',
    author_email='*****@*****.**',
    description='Include a full table of contents in your Sphinx HTML sidebar',
    long_description=long_desc,
    zip_safe=False,
    classifiers=[
Ejemplo n.º 13
0
#!python
"""
CmePy setup script
"""

# ensure setuptools is present
# n.b. no_fake flag should prevent this script
#      from 'patching' the currently installed
#      setuptools, if any

from distribute_setup import use_setuptools
use_setuptools(no_fake=True)

VERSION = '0.2.1'

from setuptools import setup, find_packages
setup(name='cmepy',
      version=VERSION,
      package_data={'': ['*.txt']},
      packages=find_packages())
Ejemplo n.º 14
0
from distribute_setup import use_setuptools
use_setuptools('0.6.24')

from distutils.core import setup

setup(
    name='django-pgfields',
    version='0.0.1',
    author="Mike O'Malley",
    author_email='*****@*****.**',
    description='Postgres-specific db fields for django',
    long_description=open('README.rst').read(),
    license='LICENSE',
    url='http://github.com/spuriousdata/django-pgfields',
    packages=['pgfields'],
    include_package_data=True,
    install_requires=[
        'Django >= 1.4.0',
        'psycopg2',
    ],
    classifiers=[
        "Development Status :: 2 - Pre-Alpha",
        "Framework :: Django",
        "Intended Audience :: Developers",
        "Operating System :: OS Independent",
        "Topic :: Software Development",
        "Environment :: Web Environment",
        #"License :: OSI Approved :: MIT License",
        "Programming Language :: Python",
    ],
)
Ejemplo n.º 15
0
#!/usr/bin/env python
from distribute_setup import use_setuptools
use_setuptools(version="0.6.49")

from setuptools import setup, find_packages
import os
import os.path

import sys

extra = {}


if sys.version_info >= (3,):
    extra['use_2to3'] = True

setup(
    name="pydicom",
    packages=find_packages(),
    include_package_data=True,
    version="0.9.9",
    package_data={'dicom': ['testfiles/*.dcm']},
    zip_safe=False,  # want users to be able to see included examples,tests
    description="Pure python package for DICOM medical file reading and writing",
    author="Darcy Mason and contributors",
    author_email="*****@*****.**",
    url="http://pydicom.googlecode.com",
    license="MIT license",
    keywords="dicom python medical imaging",
    classifiers=[
        "License :: OSI Approved :: MIT License",
Ejemplo n.º 16
0
def setupPackage(gfortran=True, ccompiler=True):
    # automatically install distribute if the user does not have it installed
    distribute_setup.use_setuptools()
    # use lib2to3 for Python 3.x
    if sys.version_info[0] == 3:
        convert2to3()
    # external modules
    ext_modules = []
    if ccompiler:
        ext_modules += [setupLibMSEED(), setupLibGSE2(), setupLibSignal(),
                        setupLibEvalResp(), setupLibSEGY()]
    if gfortran:
        ext_modules.append(setupLibTauP())
    kwargs = {}
    if ext_modules:
        kwargs['ext_package'] = 'obspy.lib'
        kwargs['ext_modules'] = ext_modules
    # remove clean from second call of this function so nothing gets rebuild
    if not gfortran or not ccompiler:
        argvs = sys.argv[1:]
        if 'clean' in argvs:
            # get index of clean command
            i0 = argvs.index('clean')
            # backup everything in front of clean
            temp = argvs[:i0]
            # search and remove options after clean starting with a dash
            rest = argvs[(i0 + 1):]
            for i, arg in enumerate(rest):
                if arg.startswith('-'):
                    continue
                # append everything after clean at its options to backup
                temp += rest[i:]
                break
            # set setup command line arguments
            kwargs['script_args'] = temp
    # setup package
    setup(
        name='obspy',
        version=_getVersionString(),
        description=DOCSTRING[1],
        long_description="\n".join(DOCSTRING[3:]),
        url="http://www.obspy.org",
        author='The ObsPy Development Team',
        author_email='*****@*****.**',
        license='GNU Lesser General Public License, Version 3 (LGPLv3)',
        platforms='OS Independent',
        classifiers=[
            'Development Status :: 4 - Beta',
            'Environment :: Console',
            'Intended Audience :: Science/Research',
            'Intended Audience :: Developers',
            'License :: OSI Approved :: GNU Library or ' + \
                'Lesser General Public License (LGPL)',
            'Operating System :: OS Independent',
            'Programming Language :: Python',
            'Topic :: Scientific/Engineering',
            'Topic :: Scientific/Engineering :: Physics'],
        keywords=KEYWORDS,
        packages=find_packages(exclude=['distribute_setup']),
        namespace_packages=[],
        zip_safe=False,
        install_requires=INSTALL_REQUIRES,
        download_url="https://github.com/obspy/obspy/zipball/master" + \
            "#egg=obspy=dev",  # this is needed for "easy_install obspy==dev"
        include_package_data=True,
        entry_points=ENTRY_POINTS,
        use_2to3=True,
        **kwargs
    )
    # cleanup after using lib2to3 for Python 3.x
    if sys.version_info[0] == 3:
        os.chdir(LOCAL_PATH)
Ejemplo n.º 17
0
##
##    SEPP is distributed in the hope that it will be useful,
##    but WITHOUT ANY WARRANTY; without even the implied warranty of
##    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
##    GNU General Public License for more details.
##
##    You should have received a copy of the GNU General Public License
##    along with SEPP.  If not, see <http://www.gnu.org/licenses/>.
###########################################################################

import os, platform, sys

#from distutils.core import setup
from distribute_setup import use_setuptools
import shutil
use_setuptools(version="0.6.24")
from setuptools import setup, find_packages
from distutils.core import setup, Command
from distutils.command.install import install
from distutils.spawn import find_executable

version = "3.2"


class ConfigSepp(Command):
    """setuptools Command"""
    description = "Configures Sepp for the current user"
    user_options = []

    def initialize_options(self):
        """init options"""
Ejemplo n.º 18
0
#!/usr/bin/env python
# -*- coding: utf-8 -*-

import os.path as p

from distribute_setup import use_setuptools; use_setuptools()
from setuptools import setup, find_packages

VERSION = open(p.join(p.dirname(p.abspath(__file__)), 'VERSION')).read().strip()

setup(
    name             = 'calabash',
    version          = VERSION,
    author           = "Zachary Voase",
    author_email     = "*****@*****.**",
    url              = 'http://github.com/zacharyvoase/calabash',
    description      = "Bash-style pipelining syntax for Python generators.",
    packages         = find_packages(where='src'),
    package_dir      = {'': 'src'},
    test_suite       = 'calabash._get_tests',
)
Ejemplo n.º 19
0
if sys.version_info < (2, 6, 0):
    sys.stderr.write("Supybot requires Python 2.6 or newer.")
    sys.stderr.write(os.linesep)
    sys.exit(-1)

import os.path
import textwrap

from src.version import version

try:
    from distribute_setup import use_setuptools
except ImportError:
    pass
else:
    use_setuptools(version='0.6c9')

from setuptools import setup

def normalizeWhitespace(s):
    return ' '.join(s.split())

plugins = [s for s in os.listdir('plugins') if
           os.path.exists(os.path.join('plugins', s, 'plugin.py'))]

packages = ['supybot',
            'supybot.utils',
            'supybot.drivers',
            'supybot.plugins',] + \
            ['supybot.plugins.'+s for s in plugins] + \
            [
Ejemplo n.º 20
0
#!/usr/bin/env python2

try:
    import distribute_setup
    # require distutils >= 0.6.26 or setuptools >= 0.7
    distribute_setup.use_setuptools(version='0.6.26')
except ImportError:
    # For documentation we load setup.py to get version
    # so it does not matter if importing fails
    pass

import glob, os, sys, types
from distutils import log
from distutils.command.build import build
from distutils.command.build_ext import build_ext
from distutils.command.install_lib import install_lib
from distutils.dep_util import newer_group
from distutils.errors import DistutilsSetupError
from distutils.file_util import copy_file
from distutils.msvccompiler import MSVCCompiler
from distutils.unixccompiler import UnixCCompiler
from distutils.util import convert_path
from distutils.sysconfig import get_python_inc, get_config_var
import subprocess
from subprocess import check_call
from collections import namedtuple
from ConfigParser import SafeConfigParser

from setuptools import setup, find_packages
from setuptools.command.install import install
Ejemplo n.º 21
0
#! /usr/bin/env python

import os.path
import sys

from distribute_setup import use_setuptools
use_setuptools("0.6.19")

from setuptools import setup

version = "2.0alpha2-git"

if (not os.path.exists(os.path.join("pyxmpp2", "version.py"))
        or "make_version" in sys.argv):
    with open("pyxmpp2/version.py", "w") as version_py:
        version_py.write("# pylint: disable=C0111,C0103\n")
        version_py.write("version = {0!r}\n".format(version))
    if "make_version" in sys.argv:
        sys.exit(0)
else:
    exec(open(os.path.join("pyxmpp2", "version.py")).read())

if version.endswith("-git"):
    download_url = None
else:
    download_url = 'http://github.com/downloads/Jajcus/pyxmpp2/pyxmpp2-{0}.tar.gz'.format(
        version),

extra = {}
if sys.version_info[0] >= 3:
    extra['use_2to3'] = True
Ejemplo n.º 22
0
#!/usr/bin/env python
"""Python setup file for Blue Collar Bioinformatics scripts and modules.
"""
from distribute_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages

__version__ = "Undefined"
for line in open('BCBio/GFF/__init__.py'):
    if (line.startswith('__version__')):
        exec(line.strip())

setup(
    name="bcbio-gff",
    version=__version__,
    author="Brad Chapman",
    author_email="*****@*****.**",
    description=
    "Read and write Generic Feature Format (GFF) with Biopython integration.",
    url="https://github.com/chapmanb/bcbb/tree/master/gff",
    use_2to3=True,
    packages=find_packages())
Ejemplo n.º 23
0
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

import os
import platform

import distribute_setup
distribute_setup.use_setuptools()

import setuptools
#import rcmp

__docformat__ = "restructuredtext en"

me='K Richard Pixley'
memail='*****@*****.**'

lzma = False

install_requires = [
    'arpy',
    'bz2file',
    'cpiofile',
Ejemplo n.º 24
0
from distribute_setup import use_setuptools
use_setuptools('0.6.15')

from setuptools import setup, find_packages
from sys import version_info

REQUIRES = [
    'werkzeug',
    'jinja2',
]

if version_info < (2, 7):
    # no argparse in 2.6 standard
    REQUIRES.append('argparse')

from keystone import __version__

setup(
    name='Keystone',
    description='A very simple web framework',
    version=__version__,
    author='Dan Crosta',
    author_email='*****@*****.**',
    license='BSD',
    url='https://github.com/dcrosta/keystone',
    classifiers=[
        'Programming Language :: Python',
        'Programming Language :: Python :: 2.6',
        'Programming Language :: Python :: 2.7',
        'License :: OSI Approved :: BSD License',
        'Development Status :: 3 - Alpha',
Ejemplo n.º 25
0
from glob import glob

# Work around setuptools bug
# http://bitbucket.org/tarek/distribute/issue/152/
#pylint: disable=W0611
import multiprocessing

# Add S3QL sources
basedir = os.path.abspath(os.path.dirname(sys.argv[0]))
sys.path.insert(0, os.path.join(basedir, 'src'))
import s3ql

# Import distribute
sys.path.insert(0, os.path.join(basedir, 'util'))
from distribute_setup import use_setuptools
use_setuptools(version='0.6.14', download_delay=5)
import setuptools
import setuptools.command.test as setuptools_test
                       
class build_docs(setuptools.Command):
    description = 'Build Sphinx documentation'
    user_options = [
        ('fresh-env', 'E', 'discard saved environment'),
        ('all-files', 'a', 'build all files'),
    ]
    boolean_options = ['fresh-env', 'all-files']
    
    def initialize_options(self):
        self.fresh_env = False
        self.all_files = False
Ejemplo n.º 26
0
from distribute_setup import use_setuptools
use_setuptools() #bootstrap installs Distribute if not installed
from setuptools import setup
from setuptools.command.test import test as TestCommand
from distutils.core import  Command, Extension
from distutils.sysconfig import get_python_lib
import os, platform, sys, shutil, re, fileinput

def replaceString(file,searchExp,replaceExp):
    if file == None: return # fail silently
    for line in fileinput.input(file, inplace=1):
        if searchExp in line:
            line = line.replace(searchExp,replaceExp)
        sys.stdout.write(line)

class PyTest(TestCommand):
    def finalize_options(self):
        TestCommand.finalize_options(self)
        self.test_args = []
        self.test_suite = True
    def run_tests(self):
        #import here, cause outside the eggs aren't loaded
        import pytest
        pytest.main(self.test_args)

class UninstallCommand(Command):
    description = "remove old files"
    user_options= []
    def initialize_options(self):
        self.cwd = None
    def finalize_options(self):
Ejemplo n.º 27
0
#                                                                            #
# Licensed under the Apache License, Version 2.0 (the "License"); you may    #
# not use this file except in compliance with the License. You may obtain    #
# a copy of the License at                                                   #
#                                                                            #
# http://www.apache.org/licenses/LICENSE-2.0                                 #
#                                                                            #
# Unless required by applicable law or agreed to in writing, software        #
# distributed under the License is distributed on an "AS IS" BASIS,          #
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.   #
# See the License for the specific language governing permissions and        #
# limitations under the License.                                             #
# -------------------------------------------------------------------------- #

from distribute_setup import use_setuptools
use_setuptools(version="0.6.15")
from setuptools import setup, find_packages
import sys
sys.path.insert(0, './src')
from futuregrid_move import RELEASE

setup(
    name = 'futuregrid_passwdstack',
    version = RELEASE,
    description = "Password Stack is a simple tool that allows normal users to reset their own password in the OpenStack Dashboard",
    author = 'Javier Diaz, Koji Tanaka, Fugang Wang, Gregor von Laszewski',
    author_email = '*****@*****.**',
    license = "Apache Software License",
    url = "http://futuregrid.github.com/passwdstack/index.html",
    classifiers = [
        "Development Status :: 4 - Beta",
Ejemplo n.º 28
0
##
##    SEPP is distributed in the hope that it will be useful,
##    but WITHOUT ANY WARRANTY; without even the implied warranty of
##    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
##    GNU General Public License for more details.
##
##    You should have received a copy of the GNU General Public License
##    along with SEPP.  If not, see <http://www.gnu.org/licenses/>.
###########################################################################

import os, platform, sys

#from distutils.core import setup
from distribute_setup import use_setuptools 
import shutil
use_setuptools(version="0.6.24")
from setuptools import setup, find_packages    
from distutils.core import setup, Command
from distutils.command.install import install

version = "3.0"

class ConfigSepp(Command):
    """setuptools Command"""
    description = "Configures Sepp for the current user"
    user_options = []
    
    def initialize_options(self):
        """init options"""
        self.configfile = os.path.expanduser("~/.sepp/main.config")
        pass
Ejemplo n.º 29
0
#!/usr/bin/env python
# -*- coding: utf-8 -*-

from distribute_setup import use_setuptools
use_setuptools('0.6.10')

from setuptools import setup, find_packages

try:
    README = open('README.rst').read()
except:
    README = None

try:
    REQUIREMENTS = open('requirements.txt').lines()
except:
    REQUIREMENTS = None

setup(
    name='django-simplesite',
    version='0.1',
    description='A simple pseudo-static site app with menu, submenu and pages.',
    long_description=README,
    install_requires=REQUIREMENTS,
    author='Mathijs de Bruin',
    author_email='*****@*****.**',
    url='http://github.com/dokterbob/django-simplesite',
    packages = find_packages(),
    classifiers=[
        'Development Status :: 4 - Beta',
        'Environment :: Web Environment',
Ejemplo n.º 30
0
#!/usr/bin/env python2

try:
    import distribute_setup
    # require distutils >= 0.6.26 or setuptools >= 0.7
    distribute_setup.use_setuptools(version='0.6.26')
except ImportError:
    # For documentation we load setup.py to get version
    # so it does not matter if importing fails
    pass

import glob, os, sys, types
from distutils import log
from distutils.command.build import build
from distutils.command.build_ext import build_ext
from distutils.command.install_lib import install_lib
from distutils.dep_util import newer_group
from distutils.errors import DistutilsSetupError
from distutils.file_util import copy_file
from distutils.msvccompiler import MSVCCompiler
from distutils.unixccompiler import UnixCCompiler
from distutils.util import convert_path
from distutils.sysconfig import get_python_inc, get_config_var
import subprocess
from subprocess import check_call
from collections import namedtuple
from ConfigParser import SafeConfigParser

from setuptools import setup, find_packages
from setuptools.command.install import install
Ejemplo n.º 31
0
# terms of the GNU Lesser General Public License as published by the Free
# Software Foundation, either version 2.1 of the License, or (at your option)
# any later version.
#
# RTMPy 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 Lesser General Public License for more
# details.
#
# You should have received a copy of the GNU Lesser General Public License along
# with RTMPy.  If not, see <http://www.gnu.org/licenses/>.

from distribute_setup import use_setuptools

# 15 seconds is far too long ....
use_setuptools(download_delay=3)

# import ordering is important
import setupinfo
from setuptools import setup, find_packages

version = (0, 3, 'dev')

name = "RTMPy"
description = "Twisted protocol for RTMP"
long_description = setupinfo.read('README.txt')
url = "http://rtmpy.org"
author = "The RTMPy Project"
author_email = "*****@*****.**"
license = "LGPL 2.1 License"
Ejemplo n.º 32
0
if sys.version_info < (2, 6, 0):
    sys.stderr.write("Supybot requires Python 2.6 or newer.")
    sys.stderr.write(os.linesep)
    sys.exit(-1)

import os.path
import textwrap

from src.version import version

try:
    from distribute_setup import use_setuptools
except ImportError:
    pass
else:
    use_setuptools(version='0.6c9')

from setuptools import setup


def normalizeWhitespace(s):
    return ' '.join(s.split())


plugins = [
    s for s in os.listdir('plugins')
    if os.path.exists(os.path.join('plugins', s, 'plugin.py'))
]

packages = ['supybot',
            'supybot.utils',
Ejemplo n.º 33
0
#!/usr/bin/env python

# Copyright (c) The PyAMF Project.
# See LICENSE.txt for details.

from distribute_setup import use_setuptools

# 15 seconds is far too long ....
use_setuptools(download_delay=3)

# import ordering is important
import setupinfo
from setuptools import setup, find_packages


version = (0, 6, 2)

name = "PyAMF"
description = "AMF support for Python"
long_description = setupinfo.read('README.txt')
url = "http://pyamf.org"
author = "The PyAMF Project"
author_email = "*****@*****.**"
license = "MIT License"

classifiers = """\
Framework :: Django
Framework :: Pylons
Framework :: Turbogears
Framework :: Twisted
Intended Audience :: Developers
Ejemplo n.º 34
0
from distribute_setup import use_setuptools
use_setuptools('0.6.15')

from setuptools import setup, find_packages
from sys import version_info

REQUIRES = [
    'werkzeug',
    'jinja2',
]

if version_info < (2, 7):
    # no argparse in 2.6 standard
    REQUIRES.append('argparse')

from keystone import __version__

setup(name='Keystone',
      description='A very simple web framework',
      version=__version__,
      author='Dan Crosta',
      author_email='*****@*****.**',
      license='BSD',
      url='https://github.com/dcrosta/keystone',
      classifiers=[
          'Programming Language :: Python',
          'Programming Language :: Python :: 2.6',
          'Programming Language :: Python :: 2.7',
          'License :: OSI Approved :: BSD License',
          'Development Status :: 3 - Alpha',
          'Topic :: Internet :: WWW/HTTP',
Ejemplo n.º 35
0
#! /usr/bin/env python

import os.path
import sys

from distribute_setup import use_setuptools
use_setuptools("0.6.19")
    
from setuptools import setup

version = "2.0alpha2-git"

if (not os.path.exists(os.path.join("pyxmpp2","version.py"))
                                    or "make_version" in sys.argv):
    with open("pyxmpp2/version.py", "w") as version_py:
        version_py.write("# pylint: disable=C0111,C0103\n")
        version_py.write("version = {0!r}\n".format(version))
    if "make_version" in sys.argv:
        sys.exit(0)
else:
    exec(open(os.path.join("pyxmpp2", "version.py")).read())
    
    
if version.endswith("-git"):
    download_url = None
else:
    download_url = 'http://github.com/downloads/Jajcus/pyxmpp2/pyxmpp2-{0}.tar.gz'.format(version),


extra = {}
if sys.version_info[0] >= 3:
Ejemplo n.º 36
0
#!/usr/bin/env python

import distribute_setup

distribute_setup.use_setuptools('0.6.10')

from setuptools import setup, find_packages

try:
    README = open('README.md').read()
except:
    README = None

try:
    LICENSE = open('LICENSE.txt').read()
except:
    LICENSE = None

setup(
    name='django-ogone',
    version='0.1',
    description='Python/Django client to the ogone payment system.',
    long_description=README,
    author='Thierry Schellenbach',
    author_email='thierryschellenbach at googles great mail service',
    license=LICENSE,
    url='http://github.com/tschellenbach/Django-ogone',
    packages=find_packages(exclude=['examples']),
    classifiers=[
        'Development Status :: 4 - Beta',
        'Intended Audience :: Developers',
Ejemplo n.º 37
0
# 
# 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/>.

import distribute_setup
distribute_setup.use_setuptools('0.6.10')

from setuptools import setup, find_packages

try:
    README = open('README.rst').read()
except:
    README = None

try:
    REQUIREMENTS = open('requirements.txt').read()
except:
    REQUIREMENTS = None

setup(
    name = 'django-newsletter',
Ejemplo n.º 38
0
#!/usr/bin/env python

# Ensure that a reasonably recent version of 'distribute' is installed.
from distribute_setup import use_setuptools
use_setuptools('0.6.10')

from setuptools import setup

import rsa

setup(
    name='rsa',
    version=rsa.__version__,
    description='Pure-Python RSA implementation',
    author='Sybren A. Stuvel',
    author_email='*****@*****.**',
    maintainer='Sybren A. Stuvel',
    maintainer_email='*****@*****.**',
    url='http://stuvel.eu/rsa',
    packages=['rsa'],
    license='ASL 2',
    classifiers=[
        'Development Status :: 5 - Production/Stable',
        'Intended Audience :: Developers',
        'Intended Audience :: Education',
        'Intended Audience :: Information Technology',
        'License :: OSI Approved :: Apache Software License',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Topic :: Security :: Cryptography',
    ],
Ejemplo n.º 39
0
#!/usr/bin/env python
# -*- coding: utf-8 -*-

import os
import re

from distribute_setup import use_setuptools; use_setuptools()
from setuptools import setup, find_packages


rel_file = lambda *args: os.path.join(os.path.dirname(os.path.abspath(__file__)), *args)

def read_from(filename):
    fp = open(filename)
    try:
        return fp.read()
    finally:
        fp.close()

def get_version():
    data = read_from(rel_file('src', 'djcastor', '__init__.py'))
    return re.search(r"__version__ = '([^']+)'", data).group(1)


setup(
    name             = 'django-castor',
    version          = get_version(),
    author           = "Zachary Voase",
    author_email     = "*****@*****.**",
    url              = 'http://github.com/zacharyvoase/django-castor',
    description      = "A content-addressable storage backend for Django.",
Ejemplo n.º 40
0
from distribute_setup import use_setuptools
use_setuptools()  #bootstrap installs Distribute if not installed
from setuptools import setup
from setuptools.command.test import test as TestCommand
from distutils.core import Command, Extension
from distutils.sysconfig import get_python_lib
import os, platform, sys, shutil, re


class PyTest(TestCommand):
    def finalize_options(self):
        TestCommand.finalize_options(self)
        self.test_args = []
        self.test_suite = True

    def run_tests(self):
        #import here, cause outside the eggs aren't loaded
        import pytest
        pytest.main(self.test_args)


class UninstallCommand(Command):
    description = "remove old files"
    user_options = []

    def initialize_options(self):
        self.cwd = None

    def finalize_options(self):
        self.cwd = os.getcwd()
Ejemplo n.º 41
0
import sys
try:
    import setuptools
except ImportError:
    from distribute_setup import use_setuptools
    use_setuptools()
    import setuptools

from pip import req
from setuptools.command import test

REQ = set([dep.name
           for dep in req.parse_requirements('requirements/base.txt')])
TREQ = set([dep.name or dep.url
            for dep in req.parse_requirements('requirements/tests.txt')]) - REQ


class PyTest(test.test):
    def finalize_options(self):
        test.test.finalize_options(self)
        self.test_args = []
        self.test_suite = True

    def run_tests(self):
        #import here, cause outside the eggs aren't loaded
        import pytest
        errno = pytest.main(self.test_args)
        sys.exit(errno)


setuptools.setup(setup_requires=('d2to1',),
Ejemplo n.º 42
0
#!python

"""
CmePy setup script
"""

# ensure setuptools is present
# n.b. no_fake flag should prevent this script
#      from 'patching' the currently installed
#      setuptools, if any

from distribute_setup import use_setuptools

use_setuptools(no_fake=True)

VERSION = "0.2.1"

from setuptools import setup, find_packages

setup(name="cmepy", version=VERSION, package_data={"": ["*.txt"]}, packages=find_packages())