diff --git a/CHANGES.txt b/CHANGES.txt index 00250e1..5a527cf 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -5,7 +5,7 @@ Changelog 3.2 (unreleased) ---------------- -- Nothing changed yet. +- Moved all the information from setup.py into setup.cfg. 3.1 (2019-10-25) diff --git a/CONTRIBUTORS.txt b/CONTRIBUTORS.txt index 54a3c45..796104b 100644 --- a/CONTRIBUTORS.txt +++ b/CONTRIBUTORS.txt @@ -1,3 +1,6 @@ +Contributors +============ + Lennart Regebro , Original Author Justin Gruenberg implemented the Quadradic Bezier calculations and @@ -9,5 +12,5 @@ Steve Schwarz added an error argument to make that choice an argument. ClayJarCom speeded up `point()` calculations for paths. -Thanks also to bug fixers Martin R, abcjjy, Daniel Stender, MTician, +Thanks also to bug fixers Martin R, abcjjy, Daniel Stender, MTician, blokhin and jaraco. diff --git a/setup.cfg b/setup.cfg index 55527ef..c57746a 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,3 +1,35 @@ +[metadata] +name = svg.path +version = 3.2.dev0 +description = SVG path objects and parser +long_description = file: README.rst, CONTRIBUTORS.txt, CHANGES.txt +classifiers = + Development Status :: 5 - Production/Stable + Intended Audience :: Developers + License :: OSI Approved :: MIT License + Operating System :: OS Independent + Programming Language :: Python + Programming Language :: Python :: 2.7 + Programming Language :: Python :: 3 + Programming Language :: Python :: 3.4 + Programming Language :: Python :: 3.5 + Programming Language :: Python :: 3.6 + Programming Language :: Python :: Implementation :: PyPy + Topic :: Multimedia :: Graphics +keywords = svg, path, maths +author = Lennart Regebro +author_email = regebro@gmail.com +url = https://github.com/regebro/svg.path +license = MIT + +[options] +zip_safe = True +include_package_data = True +packages = find: +package_dir = + = src +test_suite = svg.path.tests + [pep8] max-line-length=100 ignore=E126,E127 diff --git a/setup.py b/setup.py index dde9571..8bf1ba9 100644 --- a/setup.py +++ b/setup.py @@ -1,50 +1,2 @@ -from setuptools import setup, find_packages -import os - -version = '3.2.dev0' - -long_description = ( - open('README.rst').read() - + '\n' + - 'Contributors\n' - '============\n' - + '\n' + - open('CONTRIBUTORS.txt').read() - + '\n' + - open('CHANGES.txt').read() - + '\n') - -setup(name='svg.path', - version=version, - description='SVG path objects and parser', - long_description=long_description, - # Get more strings from - # http://pypi.python.org/pypi?%3Aaction=list_classifiers - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'License :: OSI Approved :: MIT License', - 'Operating System :: OS Independent', - 'Programming Language :: Python', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.4', - 'Programming Language :: Python :: 3.5', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: Implementation :: PyPy', - 'Topic :: Multimedia :: Graphics' - ], - keywords='svg path maths', - author='Lennart Regebro', - author_email='regebro@gmail.com', - url='https://github.com/regebro/svg.path', - license='MIT', - packages=find_packages('src'), - package_dir={'': 'src'}, - include_package_data=True, - zip_safe=True, - install_requires=[ - 'setuptools', - ], - test_suite='svg.path.tests', - ) +from setuptools import setup +setup()