import io import os import sys from setuptools import find_packages from setuptools import setup PY3K = sys.version_info >= (3, 0) here = lambda path: os.path.join(os.path.abspath(os.path.dirname(__file__)), path) def read(*filenames, **kwargs): encoding = kwargs.get('encoding', 'utf-8') sep = kwargs.get('sep', '\n') buf = [] for filename in filenames: with io.open(filename, encoding=encoding) as f: buf.append(f.read()) return sep.join(buf) requires = [] with open(here('requirements.txt')) as f: rows = f.read().strip().split('\n') for row in rows: row = row.strip() if row and not (row.startswith('#') or row.startswith('http')): requires.append(row) long_description = read( os.path.join(os.path.dirname(__file__), 'README.rst'), os.path.join(os.path.dirname(__file__), 'CHANGES'), ) setup( name='Plim', version='1.1.0', packages=find_packages(exclude=['tests', 'nixpkgs', 'node_modules']), install_requires=requires, setup_requires=[], tests_require=['pytest', 'coverage'], package_data={ # If any package contains *.txt or *.rst files, include them '': ['*.txt', '*.rst'] }, include_package_data=True, entry_points={ 'console_scripts': [ 'plimc = plim.console:plimc', ] }, # PyPI metadata # Read more at http://docs.python.org/distutils/setupscript.html#meta-data author="Maxim Avanov", author_email="maxim.avanov@gmail.com", maintainer="Maxim Avanov", maintainer_email="maxim.avanov@gmail.com", description="Plim is a Python port of Ruby's Slim template language built on top of Mako Templates", long_description=long_description, license="MIT", url="https://github.com/avanov/Plim", download_url="https://github.com/avanov/Plim", keywords="mako templates ruby slim jade pyjade pyramid flask haml pyhaml", classifiers=[ 'Development Status :: 5 - Production/Stable', 'Environment :: Web Environment', 'Framework :: Pylons', 'Framework :: Pyramid', 'Framework :: TurboGears', 'Intended Audience :: Developers', 'License :: OSI Approved', 'License :: OSI Approved :: MIT License', 'Operating System :: MacOS', 'Operating System :: Microsoft', 'Operating System :: POSIX', 'Programming Language :: Python', 'Programming Language :: Python :: 3', 'Topic :: Internet :: WWW/HTTP', 'Topic :: Internet :: WWW/HTTP :: Dynamic Content', 'Topic :: Software Development :: Libraries :: Python Modules', 'Topic :: Software Development :: Pre-processors', 'Topic :: Text Processing :: Markup :: HTML', ] )