From 0faa2c0758aff24257079ab3ed361d20d2498a04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Zag=C3=B3rski?= Date: Tue, 11 Mar 2025 01:04:17 +0100 Subject: [PATCH] Add pyproject.toml --- pyproject.toml | 53 ++++++++++++++++++++++++++++++++++++++++++++++++++ setup.cfg | 2 +- 2 files changed, 54 insertions(+), 1 deletion(-) create mode 100644 pyproject.toml diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..b535a13 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,53 @@ +[build-system] +requires = ["setuptools >= 61.0"] +build-backend = "setuptools.build_meta" + +[project] +name = "ebook-converter" +version = "4.12.0" +requires-python = ">= 3.10" +description = "Convert ebook between different formats" +dependencies = [ + "filelock", + "python-dateutil", + "lxml", + "css-parser", + "beautifulsoup4", + "tinycss", + "pillow", + "msgpack", + "html5-parser", + "odfpy", + "html2text" +] +readme = "README.rst" +authors = [ + {name = "gryf", email = "gryf73@gmail.com"} +] +license = {text = "GPLv3"} +classifiers = [ + "Environment :: Console", + "Intended Audience :: Other Audience", + "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", + "Operating System :: POSIX :: Linux", + "Development Status :: 3 - Alpha", + "Programming Language :: Python", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3 :: Only", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13" +] + +[project.urls] +Repository = "https://github.com/gryf/ebook-converter" + +[project.scripts] +ebook-converter = "ebook_converter.main:main" + +[tool.setuptools.packages.find] +exclude = ["snap"] + +[tool.setuptools.package-data] +"*" = ["*.types", "*.css", "*.html", "*.xhtml", "*.xsl", "*.json"] diff --git a/setup.cfg b/setup.cfg index 1c3a72b..ded1ff5 100644 --- a/setup.cfg +++ b/setup.cfg @@ -43,4 +43,4 @@ console_scripts = ebook-converter=ebook_converter.main:main [options.package_data] -* = *.types *.css, *.html, *.xsl +* = *.types, *.css, *.html, *.xsl