feat: replace setup.cfg with pyproject.toml
also move canonical version to pyproject.toml still using setuptools as build backend for now
This commit is contained in:
parent
ba1905b7ad
commit
8a1ec6210c
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -1,4 +1,7 @@
|
|||
*~
|
||||
*.pyc
|
||||
.coverage
|
||||
dist/
|
||||
docs/_build/
|
||||
.tox/
|
||||
WuttJamaican.egg-info/
|
||||
|
|
69
pyproject.toml
Normal file
69
pyproject.toml
Normal file
|
@ -0,0 +1,69 @@
|
|||
|
||||
[build-system]
|
||||
requires = ["setuptools"]
|
||||
build-backend = "setuptools.build_meta"
|
||||
|
||||
|
||||
[project]
|
||||
name = "WuttJamaican"
|
||||
version = "0.1.12"
|
||||
description = "Base package for Wutta Framework"
|
||||
readme = "README.rst"
|
||||
authors = [{name = "Lance Edgar", email = "lance@edbob.org"}]
|
||||
license = {file = "COPYING.txt"}
|
||||
classifiers = [
|
||||
"Development Status :: 4 - Beta",
|
||||
"Intended Audience :: Developers",
|
||||
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
|
||||
"Natural Language :: English",
|
||||
"Operating System :: OS Independent",
|
||||
"Programming Language :: Python",
|
||||
"Programming Language :: Python :: 3",
|
||||
"Programming Language :: Python :: 3.6",
|
||||
"Programming Language :: Python :: 3.7",
|
||||
"Programming Language :: Python :: 3.8",
|
||||
"Programming Language :: Python :: 3.9",
|
||||
"Programming Language :: Python :: 3.10",
|
||||
"Programming Language :: Python :: 3.11",
|
||||
]
|
||||
requires-python = ">= 3.6"
|
||||
dependencies = [
|
||||
"python-configuration",
|
||||
]
|
||||
|
||||
|
||||
[project.optional-dependencies]
|
||||
db = ["SQLAlchemy<2"]
|
||||
docs = ["Sphinx", "sphinxcontrib-programoutput"]
|
||||
tests = ["pytest-cov", "tox"]
|
||||
|
||||
|
||||
[project.scripts]
|
||||
wutta = "wuttjamaican.cmd.base:main"
|
||||
|
||||
|
||||
[project.entry-points."wutta.subcommands"]
|
||||
date-organize = "wuttjamaican.cmd.date_organize:DateOrganize"
|
||||
make-appdir = "wuttjamaican.cmd.make_appdir:MakeAppDir"
|
||||
setup = "wuttjamaican.cmd.setup:Setup"
|
||||
|
||||
|
||||
[project.urls]
|
||||
Homepage = "https://rattailproject.org/"
|
||||
Repository = "https://kallithea.rattailproject.org/rattail-project/wuttjamaican"
|
||||
Changelog = "https://kallithea.rattailproject.org/rattail-project/wuttjamaican/files/master/CHANGELOG.md"
|
||||
|
||||
|
||||
[tool.commitizen]
|
||||
version_provider = "pep621"
|
||||
tag_format = "v$version"
|
||||
update_changelog_on_bump = true
|
||||
|
||||
|
||||
[tool.setuptools]
|
||||
include-package-data = true
|
||||
package-dir = {"" = "src"}
|
||||
|
||||
|
||||
[tool.setuptools.packages.find]
|
||||
where = ["src"]
|
56
setup.cfg
56
setup.cfg
|
@ -1,56 +0,0 @@
|
|||
# -*- coding: utf-8; -*-
|
||||
|
||||
[metadata]
|
||||
name = WuttJamaican
|
||||
version = attr: wuttjamaican.__version__
|
||||
author = Lance Edgar
|
||||
author_email = lance@edbob.org
|
||||
url = https://rattailproject.org/
|
||||
license = GNU GPL v3
|
||||
description = Base package for Wutta Framework
|
||||
long_description = file: README.rst
|
||||
classifiers =
|
||||
Development Status :: 4 - Beta
|
||||
Intended Audience :: Developers
|
||||
License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
|
||||
Natural Language :: English
|
||||
Operating System :: OS Independent
|
||||
Programming Language :: Python
|
||||
Programming Language :: Python :: 3
|
||||
Programming Language :: Python :: 3.6
|
||||
Programming Language :: Python :: 3.7
|
||||
Programming Language :: Python :: 3.8
|
||||
Programming Language :: Python :: 3.9
|
||||
Programming Language :: Python :: 3.10
|
||||
Programming Language :: Python :: 3.11
|
||||
|
||||
|
||||
[options]
|
||||
packages = find:
|
||||
package_dir =
|
||||
=src
|
||||
include_package_data = True
|
||||
python_requires = >=3.6
|
||||
install_requires =
|
||||
python-configuration
|
||||
|
||||
|
||||
[options.packages.find]
|
||||
where = src
|
||||
|
||||
|
||||
[options.extras_require]
|
||||
db = SQLAlchemy<2
|
||||
docs = Sphinx; sphinxcontrib-programoutput
|
||||
tests = pytest-cov; tox
|
||||
|
||||
|
||||
[options.entry_points]
|
||||
|
||||
console_scripts =
|
||||
wutta = wuttjamaican.cmd.base:main
|
||||
|
||||
wutta.subcommands =
|
||||
date-organize = wuttjamaican.cmd.date_organize:DateOrganize
|
||||
make-appdir = wuttjamaican.cmd.make_appdir:MakeAppDir
|
||||
setup = wuttjamaican.cmd.setup:Setup
|
29
setup.py
29
setup.py
|
@ -1,29 +0,0 @@
|
|||
# -*- coding: utf-8; -*-
|
||||
################################################################################
|
||||
#
|
||||
# WuttJamaican -- Base package for Wutta Framework
|
||||
# Copyright © 2023 Lance Edgar
|
||||
#
|
||||
# This file is part of Wutta Framework.
|
||||
#
|
||||
# Wutta Framework is free software: you can redistribute it and/or modify it
|
||||
# under the terms of the GNU General Public License as published by the Free
|
||||
# Software Foundation, either version 3 of the License, or (at your option) any
|
||||
# later version.
|
||||
#
|
||||
# Wutta Framework is distributed in the hope that it will be useful, but
|
||||
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
||||
# more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License along with
|
||||
# Wutta Framework. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
################################################################################
|
||||
"""
|
||||
WuttJamaican setup script
|
||||
"""
|
||||
|
||||
from setuptools import setup
|
||||
|
||||
setup()
|
|
@ -1,3 +1,6 @@
|
|||
# -*- coding: utf-8; -*-
|
||||
|
||||
__version__ = '0.1.12'
|
||||
from importlib.metadata import version
|
||||
|
||||
|
||||
__version__ = version('WuttJamaican')
|
||||
|
|
Loading…
Reference in a new issue