2015-10-05 18:14:16 -07:00
|
|
|
# Copyright 2015 Google Inc. All Rights Reserved.
|
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
|
|
|
|
2018-09-26 12:55:00 +01:00
|
|
|
from setuptools import setup, find_packages
|
2016-11-03 19:08:13 +00:00
|
|
|
import sys
|
2017-05-24 19:14:12 +01:00
|
|
|
|
2015-10-01 17:09:28 -07:00
|
|
|
|
2016-11-03 19:08:13 +00:00
|
|
|
needs_pytest = {'pytest', 'test'}.intersection(sys.argv)
|
|
|
|
pytest_runner = ['pytest_runner'] if needs_pytest else []
|
|
|
|
needs_wheel = {'bdist_wheel'}.intersection(sys.argv)
|
|
|
|
wheel = ['wheel'] if needs_wheel else []
|
|
|
|
|
|
|
|
with open('README.rst', 'r') as f:
|
|
|
|
long_description = f.read()
|
2015-10-01 17:09:28 -07:00
|
|
|
|
|
|
|
setup(
|
2015-11-05 15:42:35 -08:00
|
|
|
name='cu2qu',
|
2018-09-26 12:55:00 +01:00
|
|
|
use_scm_version={"write_to": "Lib/cu2qu/_version.py"},
|
2016-11-03 19:08:13 +00:00
|
|
|
description='Cubic-to-quadratic bezier curve conversion',
|
|
|
|
author="James Godfrey-Kittle, Behdad Esfahbod",
|
|
|
|
author_email="jamesgk@google.com",
|
|
|
|
url="https://github.com/googlei18n",
|
|
|
|
license="Apache License, Version 2.0",
|
|
|
|
long_description=long_description,
|
|
|
|
packages=find_packages('Lib'),
|
2016-03-25 14:25:56 +01:00
|
|
|
package_dir={'': 'Lib'},
|
2016-11-02 18:13:08 +00:00
|
|
|
include_package_data=True,
|
2018-09-26 12:55:00 +01:00
|
|
|
setup_requires=pytest_runner + wheel + ["setuptools_scm"],
|
2016-11-03 19:08:13 +00:00
|
|
|
tests_require=[
|
|
|
|
'pytest>=2.8',
|
|
|
|
],
|
|
|
|
install_requires=[
|
2017-10-30 18:54:00 +00:00
|
|
|
"fonttools>=3.18.0",
|
|
|
|
"ufoLib>=2.1.1",
|
2016-11-03 19:08:13 +00:00
|
|
|
],
|
2018-04-10 18:39:12 +01:00
|
|
|
extras_require={"cli": ["defcon>=0.4.0"]},
|
|
|
|
entry_points={"console_scripts": ["cu2qu = cu2qu.cli:main [cli]"]},
|
2016-11-03 19:08:13 +00:00
|
|
|
classifiers=[
|
|
|
|
'Development Status :: 4 - Beta',
|
|
|
|
'Intended Audience :: Developers',
|
2017-03-20 14:50:00 +00:00
|
|
|
'License :: OSI Approved :: Apache Software License',
|
2016-11-03 19:08:13 +00:00
|
|
|
'Operating System :: OS Independent',
|
|
|
|
'Programming Language :: Python',
|
|
|
|
'Programming Language :: Python :: 2',
|
|
|
|
'Programming Language :: Python :: 3',
|
|
|
|
'Topic :: Scientific/Engineering :: Mathematics',
|
|
|
|
'Topic :: Multimedia :: Graphics :: Graphics Conversion',
|
|
|
|
'Topic :: Multimedia :: Graphics :: Editors :: Vector-Based',
|
|
|
|
'Topic :: Software Development :: Libraries :: Python Modules',
|
|
|
|
],
|
2015-10-01 17:09:28 -07:00
|
|
|
)
|