Skip to content
Closed
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
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/html2text/_version.py

*.py[co]
*.bak
build
Expand Down
6 changes: 3 additions & 3 deletions docs/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ $ pip install html2text
Clone the repository from https://github.com/Alir3z4/html2text

```
$ git clone --depth 1 https://github.com/Alir3z4/html2text.git
$ python setup.py build
$ python setup.py install
$ git clone --depth 50 https://github.com/Alir3z4/html2text.git
$ python -m build -nwx
$ python -m pip install --upgrade ./dist/*.whl
```


Expand Down
4 changes: 1 addition & 3 deletions html2text/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
from typing import Dict, List, Optional, Tuple, Union

from . import config
from ._version import __version_tuple__ as __version__
from .elements import AnchorElement, ListElement
from .typing import OutCallback
from .utils import (
Expand All @@ -27,9 +28,6 @@
unifiable_n,
)

__version__ = (2020, 1, 16)


# TODO:
# Support decoded entities with UNIFIABLE.

Expand Down
56 changes: 56 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
[build-system]
requires = ["setuptools>=61.2", "setuptools_scm[toml]>=3.4.3"]
build-backend = "setuptools.build_meta"

[project]
name = "html2text"
description = "Turn HTML into equivalent Markdown-structured text."
readme = "README.md"
authors = [{name = "Aaron Swartz", email = "me@aaronsw.com"}]
maintainers = [{name = "Alireza Savand", email = "alireza.savand@gmail.com"}]
license = {text = "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.9",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
urls = {Homepage = "https://github.com/Alir3z4/html2text/"}
requires-python = ">=3.5"
dynamic = ["version"]

[project.scripts]
html2text = "html2text.cli:main"

[tool.setuptools]
zip-safe = false
packages = ["html2text"]
platforms = ["OS Independent"]
include-package-data = false

[tool.setuptools.package-data]
html2text = ["py.typed"]

[tool.setuptools_scm]
write_to = "html2text/_version.py"

[tool.flake8] # you will need Flake8-pyproject
max_line_length = "88"
extend-ignore = "E203"

[tool.isort]
profile = "black"
combine_as_imports = true

[tool.mypy]
python_version = "3.5"
51 changes: 0 additions & 51 deletions setup.cfg

This file was deleted.

3 changes: 0 additions & 3 deletions setup.py

This file was deleted.