diff --git a/CHANGELOG.md b/CHANGELOG.md index 4ec9080..332e319 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ # Development version * Add API for printing images. +* Migrate to `pyproject.toml`. # Version 0.2.1 - 2024-03-16 diff --git a/pyproject.toml b/pyproject.toml index 699edd8..8b266d5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,82 @@ [build-system] requires = [ - 'setuptools', 'wheel', + "setuptools", + "wheel" ] +build-backend = "setuptools.build_meta" + +[project] +name = "brother-ql-web" +description = "Simple label designer API and web API for Brother QL label printers" +version = "0.2.1" +license = {text = "GPL-3.0-only"} +readme = {file = "README.md", content-type = "text/markdown"} +authors = [ + {name = "Philipp Klaus (initial)"}, + {name = "FriedrichFröbel"}, +] +classifiers = [ + "Development Status :: 4 - Beta", + "Environment :: Web Environment", + "Framework :: Bottle", + "Intended Audience :: Developers", + "Intended Audience :: End Users/Desktop", + "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", + "Operating System :: OS Independent", + "Programming Language :: Python", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3 :: Only", + "Topic :: Multimedia :: Graphics", +] +keywords = [ + "brother", + "brother_ql", + "label", + "printer", +] +requires-python = ">=3.8, <4" +dependencies = [ + "brother_ql", + "bottle", + "jinja2", + "Pillow>=8", +] + +[project.scripts] +brother_ql_web = "brother_ql_web.__main__:main" + +[project.urls] +Homepage = "https://github.com/FriedrichFroebel/brother_ql_web/" +Repository = "https://github.com/FriedrichFroebel/brother_ql_web/" +Issues = "https://github.com/FriedrichFroebel/brother_ql_web//issues" +Changelog = "https://github.com/FriedrichFroebel/brother_ql_web/blob/master/CHANGELOG.md" + +[project.optional-dependencies] +dev = [ + "black", + "codespell", + "flake8", + "pep8-naming", + "flake8-bugbear", + "requests", + "importlib-resources; python_version < '3.9'", +] +mypy = [ + "mypy", + "types-Pillow", + "types-requests", +] + +[tool.setuptools] +include-package-data = true + +[tool.setuptools.packages.find] +where = ["."] +include = [ + "brother_ql_web", + "brother_ql_web.*", +] +namespaces = false [tool.mypy] mypy_path = '$MYPY_CONFIG_FILE_DIR/stubs' diff --git a/setup.py b/setup.py deleted file mode 100644 index 715f419..0000000 --- a/setup.py +++ /dev/null @@ -1,60 +0,0 @@ -from setuptools import setup, find_namespace_packages -from pathlib import Path - - -ROOT_DIRECTORY = Path(__file__).parent.resolve() - - -setup( - name="brother_ql_web", - description="Simple label designer API and web API for Brother QL label printers", - version="0.2.1", - license="GPL-3.0-only", - long_description=(ROOT_DIRECTORY / "README.md").read_text(encoding="utf-8"), - long_description_content_type="text/markdown", - author="Philipp Klaus (initial), FriedrichFröbel", - url="https://github.com/FriedrichFroebel/brother_ql_web/", - packages=find_namespace_packages(include=["brother_ql_web", "brother_ql_web.*"]), - include_package_data=True, - python_requires=">=3.8, <4", - install_requires=[ - "brother_ql", - "bottle", - "jinja2", - "Pillow>=8", - ], - extras_require={ - "dev": [ - "black", - "codespell", - "flake8", - "pep8-naming", - "flake8-bugbear", - "requests", - 'importlib-resources; python_version < "3.9"', - ], - "mypy": [ - "mypy", - "types-Pillow", - "types-requests", - ], - }, - entry_points={ - "console_scripts": [ - "brother_ql_web=brother_ql_web.__main__:main", - ], - }, - classifiers=[ - "Development Status :: 4 - Beta", - "Environment :: Web Environment", - "Framework :: Bottle", - "Intended Audience :: Developers", - "Intended Audience :: End Users/Desktop", - "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", - "Operating System :: OS Independent", - "Programming Language :: Python", - "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3 :: Only", - "Topic :: Multimedia :: Graphics", - ], -)