Skip to content

Commit

Permalink
Use setuptools declarative syntax through setup.cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
jdufresne committed Oct 29, 2019
1 parent 3af1738 commit 2d2c702
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 40 deletions.
40 changes: 40 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,3 +1,43 @@
[metadata]
name = html2text
version = attr: html2text.__version__
description = Turn HTML into equivalent Markdown-structured text.
long_description = file: README.md
long_description_content_type = text/markdown
url = https://github.com/Alir3z4/html2text/
author = Aaron Swartz
author_email = me@aaronsw.com
maintainer = Alireza Savand
maintainer_email = alireza.savand@gmail.com
license = GNU GPL 3
classifiers =
Development Status :: 5 - Production/Stable
Intended Audience :: Developers
License :: OSI Approved :: GNU General Public License (GPL)
Operating System :: OS Independent
Programming Language :: Python
Programming Language :: Python :: 3
Programming Language :: Python :: 3.5
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3 :: Only
Programming Language :: Python :: Implementation :: CPython
Programming Language :: Python :: Implementation :: PyPy
platform = OS Independent

[options]
zip_safe = False
packages = html2text
python_requires = >=3.5

[options.entry_points]
console_scripts =
html2text = html2text.cli:main

[options.package_data]
html2text = py.typed

[flake8]
max_line_length = 88
ignore =
Expand Down
41 changes: 1 addition & 40 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,42 +1,3 @@
from setuptools import setup


def readall(f):
with open(f) as fp:
return fp.read()


setup(
name="html2text",
version=".".join(map(str, __import__("html2text").__version__)),
description="Turn HTML into equivalent Markdown-structured text.",
long_description=readall("README.md"),
long_description_content_type="text/markdown",
author="Aaron Swartz",
author_email="me@aaronsw.com",
maintainer="Alireza Savand",
maintainer_email="alireza.savand@gmail.com",
url="https://github.com/Alir3z4/html2text/",
platforms="OS Independent",
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU General Public License (GPL)",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
],
python_requires=">=3.5",
entry_points={"console_scripts": ["html2text = html2text.cli:main"]},
license="GNU GPL 3",
packages=["html2text"],
package_data={"html2text": ["py.typed"]},
zip_safe=False,
)
setup()

0 comments on commit 2d2c702

Please sign in to comment.