diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..15caa0e --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,5 @@ +[build-system] +requires = [ + "setuptools>=42", +] +build-backend = "setuptools.build_meta" diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..2fe9395 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,42 @@ +[metadata] +name = ghdiff +version = 0.4 +description = Generate Github-style HTML for unified diffs. +long_description_content_type=text/x-rst +long_description = file: README.rst +author = Patrick Strawderman +author_email = patrick@kilink.net +url = https://github.com/kilink/ghdiff +license = MIT +classifiers = + Development Status :: 5 - Production/Stable + Environment :: Console + Intended Audience :: Developers + Natural Language :: English + License :: OSI Approved :: MIT License + Programming Language :: Python + Programming Language :: Python :: 2 + Programming Language :: Python :: 2.6 + Programming Language :: Python :: 2.7 + Programming Language :: Python :: 3 + Programming Language :: Python :: 3.3 + Programming Language :: Python :: 3.4 + Framework :: IPython + Topic :: Software Development + Topic :: Utilities + +[options] +include_package_data = True +package_dir = =src +py_modules = + ghdiff + ipython_magic +tests_require = zope.testrunner +install_requires = + six + chardet + +[options.entry_points] +console_scripts = + ghdiff = ghdiff:main + diff --git a/setup.py b/setup.py index 8feee35..8bf1ba9 100644 --- a/setup.py +++ b/setup.py @@ -1,40 +1,2 @@ from setuptools import setup - -setup( - name="ghdiff", - version="0.4", - description="Generate Github-style HTML for unified diffs.", - long_description=open("README.rst").read(), - author="Patrick Strawderman", - author_email="patrick@kilink.net", - url="https://github.com/kilink/ghdiff", - license="MIT", - package_data={"": ["*.py", "*.txt", "*.css"]}, - include_package_data=True, - package_dir={"": "src"}, - py_modules=["ghdiff", "ipython_magic"], - tests_require=["zope.testrunner"], - install_requires=["six", "chardet"], - test_suite="tests.test_suite", - entry_points={ - 'console_scripts': [ - "ghdiff = ghdiff:main" - ] - }, - classifiers=['Development Status :: 5 - Production/Stable', - 'Environment :: Console', - 'Intended Audience :: Developers', - 'Natural Language :: English', - 'License :: OSI Approved :: MIT License', - 'Programming Language :: Python', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.6', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.3', - 'Programming Language :: Python :: 3.4', - 'Framework :: IPython', - 'Topic :: Software Development', - 'Topic :: Utilities', - ], -) +setup()