build: move package to src/ subdir

and cleanup `pyproject.toml` a bit
This commit is contained in:
Lance Edgar 2024-11-24 14:09:02 -06:00
parent 38ff3062c5
commit eaa211aa96
17 changed files with 15 additions and 24 deletions

View file

@ -9,8 +9,9 @@ name = "Wutta-Demo"
version = "0.1.0" version = "0.1.0"
description = "" description = ""
readme = "README.md" readme = "README.md"
authors = [{name = "Your Name", email = "you@example.com"}] authors = [{name = "Lance Edgar", email = "lance@wuttaproject.org"}]
keywords = ["Wutta Demo"] license = {text = "GNU GPL v3+"}
keywords = ["Wutta"]
classifiers = [ classifiers = [
"Development Status :: 3 - Alpha", "Development Status :: 3 - Alpha",
"Environment :: Web Environment", "Environment :: Web Environment",
@ -19,21 +20,11 @@ classifiers = [
"Natural Language :: English", "Natural Language :: English",
"Programming Language :: Python", "Programming Language :: Python",
"Programming Language :: Python :: 3", "Programming Language :: Python :: 3",
# TODO: remove this if you intend to publish your project
# (it's here by default, to prevent accidental publishing)
"Private :: Do Not Upload",
] ]
# requires-python = ">= 3.9"
dependencies = [ dependencies = [
"psycopg2", "psycopg2",
"Wutta-Continuum", "Wutta-Continuum",
"WuttaWeb", "WuttaWeb",
# TODO: these may be needed to build/release package
#'build',
#'invoke',
#'twine',
] ]
@ -42,25 +33,25 @@ wuttademo = "wuttademo.commands:wuttademo_typer"
[project.entry-points."wutta.config.extensions"] [project.entry-points."wutta.config.extensions"]
"wuttademo" = "wuttademo.config:WuttaDemoConfig" "wuttademo" = "wuttademo.config:WuttaDemoConfig"
[project.entry-points."paste.app_factory"]
[project.entry-points."paste.app_factory"]
"main" = "wuttademo.web.app:main" "main" = "wuttademo.web.app:main"
# [project.urls] [project.urls]
# Homepage = "https://example.com/" Homepage = "https://wuttaproject.org/"
# Repository = "https://github.com/example/wuttademo" Repository = "https://forgejo.wuttaproject.org/wutta/wutta-demo"
# Issues = "https://github.com/example/wuttademo/issues" Issues = "https://forgejo.wuttaproject.org/wutta/wutta-demo/issues"
# Changelog = "https://github.com/example/wuttademo/blob/master/CHANGELOG.md" Changelog = "https://forgejo.wuttaproject.org/wutta/wutta-demo/src/branch/master/CHANGELOG.md"
# [tool.commitizen] [tool.commitizen]
# version_provider = "pep621" version_provider = "pep621"
# tag_format = "v$version" tag_format = "v$version"
# update_changelog_on_bump = true update_changelog_on_bump = true
[tool.hatch.build.targets.wheel] [tool.hatch.build.targets.wheel]
packages = ["wuttademo"] packages = ["src/wuttademo"]