From 55e1233ca50b9c768bd76d7037965a4fb99f25fe Mon Sep 17 00:00:00 2001 From: Veronica Berglyd Olsen <1619840+vkbo@users.noreply.github.com> Date: Tue, 2 Apr 2024 23:53:01 +0200 Subject: [PATCH] Move package config to pyproject.toml --- .flake8 | 4 ++++ pyproject.toml | 42 +++++++++++++++++++++++++++++++++++++++ setup.cfg | 53 -------------------------------------------------- 3 files changed, 46 insertions(+), 53 deletions(-) create mode 100644 .flake8 delete mode 100644 setup.cfg diff --git a/.flake8 b/.flake8 new file mode 100644 index 00000000..adf39902 --- /dev/null +++ b/.flake8 @@ -0,0 +1,4 @@ +[flake8] +ignore = E133,E221,E226,E228,E241,W503 +max-line-length = 99 +exclude = docs/* diff --git a/pyproject.toml b/pyproject.toml index fed528d4..afc36155 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,45 @@ [build-system] requires = ["setuptools"] build-backend = "setuptools.build_meta" + +[project] +name = "novelWriter" +authors = [ + {name = "Veronica Berglyd Olsen", email = "code@vkbo.net"}, +] +description = "A markdown-like text editor for planning and writing novels" +readme = {file = "setup/description_pypi.md", content-type = "text/markdown"} +requires-python = ">=3.8" +license = {text = "GNU General Public License v3"} +classifiers = [ + "Programming Language :: Python :: 3 :: Only", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: Implementation :: CPython", + "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", + "Development Status :: 5 - Production/Stable", + "Operating System :: OS Independent", + "Intended Audience :: End Users/Desktop", + "Natural Language :: English", + "Topic :: Text Editors", +] +dynamic = ["version", "dependencies"] + +[tool.setuptools.dynamic] +version = {attr = "novelwriter.__version__"} +dependencies = {file = ["requirements.txt"]} + +[project.urls] +Homepage = "https://novelwriter.io" +Documentation = "https://docs.novelwriter.io" +Repository = "https://github.com/vkbo/novelWriter" +Issues = "https://github.com/vkbo/novelWriter/issues" + +[tool.setuptools.packages.find] +include = ["novelwriter*"] + +[project.gui-scripts] +novelwriter = "novelwriter:main" diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index 103e9bfc..00000000 --- a/setup.cfg +++ /dev/null @@ -1,53 +0,0 @@ -[metadata] -name = novelWriter -version = attr: novelwriter.__version__ -author = Veronica Berglyd Olsen -author_email = code@vkbo.net -description = A markdown-like text editor for planning and writing novels -url = https://novelwriter.io -long_description = file: setup/description_pypi.md -long_description_content_type = text/markdown -license_files = LICENSE.md -license = GNU General Public License v3 -classifiers = - Programming Language :: Python :: 3 :: Only - Programming Language :: Python :: 3.8 - Programming Language :: Python :: 3.9 - Programming Language :: Python :: 3.10 - Programming Language :: Python :: 3.11 - Programming Language :: Python :: 3.12 - Programming Language :: Python :: Implementation :: CPython - License :: OSI Approved :: GNU General Public License v3 (GPLv3) - Development Status :: 5 - Production/Stable - Operating System :: OS Independent - Intended Audience :: End Users/Desktop - Natural Language :: English - Topic :: Text Editors -project_urls = - Bug Tracker = https://github.com/vkbo/novelWriter/issues - Documentation = https://docs.novelwriter.io - Source Code = https://github.com/vkbo/novelWriter - -[options] -zip_safe = False -python_requires = >=3.8 -include_package_data = True -packages = find_namespace: -install_requires = - pyqt5>=5.10 - pyenchant>=3.0.0 - -[options.packages.find] -include = novelwriter* - -[options.entry_points] -gui_scripts = - novelwriter = novelwriter:main - -[bdist_wheel] -universal = 0 - -[flake8] -ignore = E133,E221,E226,E228,E241,W503 -max-line-length = 99 -exclude = docs/*