Skip to content

switch to setup.cfg & add pyproject.toml #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[build-system]
requires = [
"setuptools>=42",
]
build-backend = "setuptools.build_meta"
42 changes: 42 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -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 = [email protected]
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

40 changes: 1 addition & 39 deletions setup.py
Original file line number Diff line number Diff line change
@@ -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="[email protected]",
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()