1# Copyright(c) 2007-2019 by Lorenzo Gil Sanchez <lorenzo.gil.sanchez@gmail.com> 2# 3# This file is part of PyCha. 4# 5# PyCha is free software: you can redistribute it and/or modify 6# it under the terms of the GNU Lesser General Public License as published by 7# the Free Software Foundation, either version 3 of the License, or 8# (at your option) any later version. 9# 10# PyCha is distributed in the hope that it will be useful, 11# but WITHOUT ANY WARRANTY; without even the implied warranty of 12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13# GNU Lesser General Public License for more details. 14# 15# You should have received a copy of the GNU Lesser General Public License 16# along with PyCha. If not, see <http://www.gnu.org/licenses/>. 17 18import os 19from setuptools import setup 20 21from pycha import version 22 23 24def read(*rnames): 25 return open(os.path.join(os.path.dirname(__file__), *rnames)).read() 26 27 28base_requirements = [ 29 'six', 30 'cairocffi', 31] 32 33testing_requirements = [ 34 'coverage', 35 'mccabe', # required by flake8 36 'pep8', # required by flake8 37 'pyflakes', # required by flake8 38 'flake8', 39] 40 41 42setup( 43 name="pycha", 44 version=version, 45 author="Lorenzo Gil Sanchez", 46 author_email="lorenzo.gil.sanchez@gmail.com", 47 description="A library for making charts with Python", 48 long_description=(read('README.txt') + '\n\n' + read('CHANGES.txt')), 49 license="LGPL 3", 50 keywords="chart cairo", 51 packages=['pycha', 'chavier'], 52 url='http://bitbucket.org/lgs/pycha/', 53 install_requires=base_requirements, 54 zip_safe=True, 55 entry_points={ 56 'gui_scripts': [ 57 'chavier = chavier.app:main', 58 ] 59 }, 60 tests_require=base_requirements, 61 extras_require={ 62 'testing': testing_requirements, 63 }, 64 test_suite="tests", 65) 66