Move to pyproject.toml (#1791)
This commit is contained in:
@@ -0,0 +1,4 @@
|
|||||||
|
[flake8]
|
||||||
|
ignore = E133,E221,E226,E228,E241,W503
|
||||||
|
max-line-length = 99
|
||||||
|
exclude = docs/*
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
"""
|
|
||||||
novelWriter – Core Init File
|
|
||||||
"""
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
"""
|
|
||||||
novelWriter – Dialogs Init File
|
|
||||||
"""
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
"""
|
|
||||||
novelWriter – Custom Layouts and Widgets
|
|
||||||
"""
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
"""
|
|
||||||
novelWriter – GUI Init File
|
|
||||||
"""
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
"""
|
|
||||||
novelWriter – Text Analysis Tools
|
|
||||||
"""
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
"""
|
|
||||||
novelWriter – Tools Init File
|
|
||||||
"""
|
|
||||||
+8
-9
@@ -610,7 +610,6 @@ def makeMinimalPackage(targetOS: int) -> None:
|
|||||||
"CHANGELOG.md",
|
"CHANGELOG.md",
|
||||||
"requirements.txt",
|
"requirements.txt",
|
||||||
"pkgutils.py",
|
"pkgutils.py",
|
||||||
"setup.cfg",
|
|
||||||
"pyproject.toml",
|
"pyproject.toml",
|
||||||
]
|
]
|
||||||
|
|
||||||
@@ -779,11 +778,11 @@ def makeDebianPackage(signKey: str | None = None, sourceBuild: bool = False,
|
|||||||
))
|
))
|
||||||
print("Wrote: setup.py")
|
print("Wrote: setup.py")
|
||||||
|
|
||||||
setupCfg = readFile("setup.cfg").replace(
|
setupCfg = readFile("pyproject.toml").replace(
|
||||||
"file: setup/description_pypi.md", "file: data/description_short.txt"
|
"setup/description_pypi.md", "data/description_short.txt"
|
||||||
)
|
)
|
||||||
writeFile(f"{outDir}/setup.cfg", setupCfg)
|
writeFile(f"{outDir}/pyproject.toml", setupCfg)
|
||||||
print("Wrote: setup.cfg")
|
print("Wrote: pyproject.toml")
|
||||||
|
|
||||||
# Copy/Write Debian Files
|
# Copy/Write Debian Files
|
||||||
# =======================
|
# =======================
|
||||||
@@ -1051,11 +1050,11 @@ def makeAppImage(sysArgs: list[str]) -> list[str]:
|
|||||||
))
|
))
|
||||||
print("Wrote: setup.py")
|
print("Wrote: setup.py")
|
||||||
|
|
||||||
setupCfg = readFile("setup.cfg").replace(
|
setupCfg = readFile("pyproject.toml").replace(
|
||||||
"file: setup/description_pypi.md", "file: data/description_short.txt"
|
"setup/description_pypi.md", "data/description_short.txt"
|
||||||
)
|
)
|
||||||
writeFile(f"{outDir}/setup.cfg", setupCfg)
|
writeFile(f"{outDir}/pyproject.toml", setupCfg)
|
||||||
print("Wrote: setup.cfg")
|
print("Wrote: pyproject.toml")
|
||||||
|
|
||||||
# Write Metadata
|
# Write Metadata
|
||||||
# ==============
|
# ==============
|
||||||
|
|||||||
@@ -1,3 +1,48 @@
|
|||||||
[build-system]
|
[build-system]
|
||||||
requires = ["setuptools"]
|
requires = ["setuptools"]
|
||||||
build-backend = "setuptools.build_meta"
|
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"}
|
||||||
|
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",
|
||||||
|
]
|
||||||
|
requires-python = ">=3.8"
|
||||||
|
dependencies = [
|
||||||
|
"pyqt5>=5.10",
|
||||||
|
"pyenchant>=3.0.0",
|
||||||
|
]
|
||||||
|
dynamic = ["version"]
|
||||||
|
|
||||||
|
[tool.setuptools.dynamic]
|
||||||
|
version = {attr = "novelwriter.__version__"}
|
||||||
|
|
||||||
|
[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"
|
||||||
|
|||||||
@@ -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/*
|
|
||||||
Reference in New Issue
Block a user