示例#1
0
文件: setup.py 项目: aoeu256/astor
#!/usr/bin/env python

from setuptools import setup, find_packages

from setuputils import find_version, read


setup(
    name='astor',
    version=find_version('astor/__init__.py'),
    description='Read/rewrite/write Python ASTs',
    long_description=read('README.rst'),
    author='Patrick Maupin',
    author_email='*****@*****.**',
    platforms='Independent',
    url='https://github.com/berkerpeksag/astor',
    packages=find_packages(exclude=['tests']),
    py_modules=['setuputils'],
    classifiers=[
        'Development Status :: 5 - Production/Stable',
        'Environment :: Console',
        'Intended Audience :: Developers',
        '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.2',
        'Programming Language :: Python :: 3.3',
示例#2
0
文件: conf.py 项目: EdwardBetts/astor
sys.path.append(os.path.pardir)

import setuputils

extensions = []

templates_path = ['_templates']

source_suffix = '.rst'

master_doc = 'index'

project = u'astor'
copyright = u'2013-%s, Berker Peksag' % time.strftime('%Y')

version = release = setuputils.find_version('astor/__init__.py')

exclude_patterns = ['_build']

pygments_style = 'sphinx'

try:
    import sphinx_rtd_theme
except ImportError:
    html_theme = 'default'
else:
    html_theme = 'sphinx_rtd_theme'
    html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]

htmlhelp_basename = 'astordoc'
示例#3
0
from setuptools import setup

from setuputils import find_version

setup(
    name='pngcanvas',
    version=find_version('pngcanvas.py'),
    description='A minimalist library to render PNG images using pure Python.',
    py_modules=['pngcanvas', 'setuputils'],
    author='Rui Carmo',
    author_email='*****@*****.**',
    url='https://github.com/rcarmo/pngcanvas',
    license='MIT',
    classifiers=[
        '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',
        'License :: OSI Approved :: MIT License',
    ],
)
示例#4
0
文件: setup.py 项目: icecraft/xpdb
#!/usr/bin/env python

from setuptools import setup, find_packages

from setuputils import find_version


setup(
    name='xpdb',
    version=find_version('xpdb/__init__.py'),
    description='hacking the module pdb',
    author='x r',
    packages=find_packages(),
    py_modules=['setuputils'],
    entry_points={
        'console_scripts': [
            'xpdb = xpdb.script:main',
        ],
    }
)
示例#5
0
import os
import sys

from setuptools import setup
from setuptools.config import read_configuration

from setuputils import find_version


def here(*paths):
    return os.path.join(os.path.dirname(__file__), *paths)

config = read_configuration(here('setup.cfg'))
config['metadata']['version'] = find_version(here('astor', '__init__.py'))
config['options'].update(config['metadata'])

setup(**config['options'])
示例#6
0
# try to use setuptools if installed
from setuptools import setup, find_packages
from setuputils import read, find_version

# Check the Python version
if sys.version_info < (2, 6):
    sys.exit('scikit-hep only supports Python 2.6 and above!')

# General information on the project
PROJECT_NAME = 'scikit-hep'
AUTHOR = 'the Scikit-HEP developers'
AUTHOR_EMAIL = '*****@*****.**'
DESCRIPTION = 'Toolset of interfaces and tools for Particle Physics.'
URL = 'https://github.com/scikit-hep/scikit-hep/'
LICENSE = 'new BSD'
VERSION = find_version('skhep/__init__.py')

# Specification of minimal versions of required dependencies
PYTHON_REQUIRES = '>=2.6, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, <4'
PYPDT_MIN_VERSION = '0.7.4'
NUMPY_MIN_VERSION = '1.11.0'

# Prevent setup from trying to create hard links
# which are not allowed on AFS between directories.
# This is a hack to force copying.
try:
    del os.link
except AttributeError:
    pass

LOCAL_PATH = os.path.dirname(os.path.abspath(__file__))