Move to pyproject.toml

This commit is contained in:
Julien Palard 2023-03-30 23:21:01 +02:00
parent 5dd4a1c4aa
commit ad95dd2676
Signed by: mdk
GPG Key ID: 0EFC1AC1006886F8
2 changed files with 41 additions and 25 deletions

View File

@ -1,3 +1,44 @@
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "powrap"
description = "Find and properly reindent .po files."
readme = "README.rst"
authors = [
{ name = "Julien Palard", email = "julien@palard.fr" },
]
keywords = ["powrap", "po", "gettext", "i18n",]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Programming Language :: Python :: 3",
]
requires-python = ">= 3.7"
dependencies = [
"tqdm",
]
dynamic = [
"version",
]
[project.license]
text = "MIT License"
[project.urls]
Homepage = "https://github.com/AFPy/powrap"
[project.scripts]
powrap = "powrap.powrap:main"
[tool.setuptools]
packages = [
"powrap",
]
include-package-data = false
[tool.setuptools.dynamic.version]
attr = "powrap.__version__"

View File

@ -1,25 +0,0 @@
[metadata]
name = powrap
version = attr: powrap.__version__
description = Find and properly reindent .po files.
long_description = file: README.rst
author = Julien Palard
author_email = julien@palard.fr
url = https://github.com/AFPy/powrap
keywords = powrap, po, gettext, i18n
license = MIT License
classifiers =
Development Status :: 5 - Production/Stable
Intended Audience :: Developers
License :: OSI Approved :: MIT License
Natural Language :: English
Programming Language :: Python :: 3
[options]
packages = powrap
python_requires = >= 3.6
install_requires =
tqdm
[options.entry_points]
console_scripts = powrap=powrap.powrap:main