1#!/usr/bin/env python 2# -*- coding: utf-8 -*- 3from __future__ import absolute_import, unicode_literals 4 5from io import open 6import os 7import setuptools 8 9BASE_DIR = os.path.dirname(__file__) 10PKG_DIR = os.path.join(BASE_DIR, "cpe") 11 12meta = {} 13with open(os.path.join(PKG_DIR, "__meta__.py"), 'rb') as f: 14 exec(f.read(), meta) 15 16with open(os.path.join(BASE_DIR, "README.rst"), encoding="utf-8") as f: 17 long_description = f.read() 18 19 20setuptools.setup( 21 name=meta["__packagename__"], 22 version=meta["__version__"], 23 description=meta["__summary__"], 24 long_description=long_description, 25 classifiers=[ 26 "Development Status :: 5 - Production/Stable", 27 "Intended Audience :: Developers", 28 "Intended Audience :: Information Technology", 29 "Intended Audience :: System Administrators", 30 "License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)", 31 "Natural Language :: English", 32 "Operating System :: OS Independent", 33 "Programming Language :: Python :: 2.7" 34 ], 35 keywords=meta["__keywords__"], 36 author=meta["__author__"], 37 author_email=meta["__email__"], 38 maintainer=meta["__maintainer__"], 39 maintainer_email=meta["__maintainer_email__"], 40 license=meta["__license__"], 41 url=meta["__url__"], 42 include_package_data=False, 43 packages=setuptools.find_packages(exclude=['tests', 'docs']), 44) 45