From 749df597defe5ae6bdbd799c6f67a62a83ead8c7 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Mon, 30 Dec 2024 17:57:14 -0600 Subject: [PATCH] build: move package to src/ dir, update pyproject.toml --- pyproject.toml | 38 ++++++++++++------- {sideshow => src/sideshow}/cli.py | 0 {sideshow => src/sideshow}/config.py | 0 {sideshow => src/sideshow}/db/__init__.py | 0 .../sideshow}/db/model/__init__.py | 0 {sideshow => src/sideshow}/web/__init__.py | 0 {sideshow => src/sideshow}/web/app.py | 0 {sideshow => src/sideshow}/web/menus.py | 0 .../sideshow}/web/static/__init__.py | 0 .../sideshow}/web/static/libcache/README | 0 {sideshow => src/sideshow}/web/subscribers.py | 0 .../sideshow}/web/templates/base_meta.mako | 0 .../sideshow}/web/views/__init__.py | 0 13 files changed, 24 insertions(+), 14 deletions(-) rename {sideshow => src/sideshow}/cli.py (100%) rename {sideshow => src/sideshow}/config.py (100%) rename {sideshow => src/sideshow}/db/__init__.py (100%) rename {sideshow => src/sideshow}/db/model/__init__.py (100%) rename {sideshow => src/sideshow}/web/__init__.py (100%) rename {sideshow => src/sideshow}/web/app.py (100%) rename {sideshow => src/sideshow}/web/menus.py (100%) rename {sideshow => src/sideshow}/web/static/__init__.py (100%) rename {sideshow => src/sideshow}/web/static/libcache/README (100%) rename {sideshow => src/sideshow}/web/subscribers.py (100%) rename {sideshow => src/sideshow}/web/templates/base_meta.mako (100%) rename {sideshow => src/sideshow}/web/views/__init__.py (100%) diff --git a/pyproject.toml b/pyproject.toml index 25c59e5..dd13403 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -15,11 +15,21 @@ maintainers = [ {name = "Lance Edgar", email = "lance@wuttaproject.org"} ] classifiers = [ - # TODO: remove this if you intend to publish your project - # (it's here by default, to prevent accidental publishing) - "Private :: Do Not Upload", + "Development Status :: 3 - Alpha", + "Environment :: Web Environment", + "Framework :: Pyramid", + "Intended Audience :: Developers", + "License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)", + "Natural Language :: English", + "Programming Language :: Python", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", ] -license = {text = "GNU General Public License v3"} +license = {text = "GNU General Public License v3+"} +requires-python = ">= 3.8" dependencies = [ "psycopg2", "WuttaWeb", @@ -35,17 +45,17 @@ dependencies = [ "sideshow" = "sideshow.config:SideshowConfig" -# [project.urls] -# Homepage = "https://example.com/" -# Repository = "https://github.com/example/sideshow" -# Issues = "https://github.com/example/sideshow/issues" -# Changelog = "https://github.com/example/sideshow/blob/master/CHANGELOG.md" +[project.urls] +Homepage = "https://wuttaproject.org/" +Repository = "https://forgejo.wuttaproject.org/wutta/sideshow" +Issues = "https://forgejo.wuttaproject.org/wutta/sideshow/issues" +Changelog = "https://forgejo.wuttaproject.org/wutta/sideshow/src/branch/master/CHANGELOG.md" -# [tool.commitizen] -# version_provider = "pep621" -# tag_format = "v$version" -# update_changelog_on_bump = true +[tool.commitizen] +version_provider = "pep621" +tag_format = "v$version" +update_changelog_on_bump = true [tool.hatch.build.targets.wheel] -packages = ["sideshow"] +packages = ["src/sideshow"] diff --git a/sideshow/cli.py b/src/sideshow/cli.py similarity index 100% rename from sideshow/cli.py rename to src/sideshow/cli.py diff --git a/sideshow/config.py b/src/sideshow/config.py similarity index 100% rename from sideshow/config.py rename to src/sideshow/config.py diff --git a/sideshow/db/__init__.py b/src/sideshow/db/__init__.py similarity index 100% rename from sideshow/db/__init__.py rename to src/sideshow/db/__init__.py diff --git a/sideshow/db/model/__init__.py b/src/sideshow/db/model/__init__.py similarity index 100% rename from sideshow/db/model/__init__.py rename to src/sideshow/db/model/__init__.py diff --git a/sideshow/web/__init__.py b/src/sideshow/web/__init__.py similarity index 100% rename from sideshow/web/__init__.py rename to src/sideshow/web/__init__.py diff --git a/sideshow/web/app.py b/src/sideshow/web/app.py similarity index 100% rename from sideshow/web/app.py rename to src/sideshow/web/app.py diff --git a/sideshow/web/menus.py b/src/sideshow/web/menus.py similarity index 100% rename from sideshow/web/menus.py rename to src/sideshow/web/menus.py diff --git a/sideshow/web/static/__init__.py b/src/sideshow/web/static/__init__.py similarity index 100% rename from sideshow/web/static/__init__.py rename to src/sideshow/web/static/__init__.py diff --git a/sideshow/web/static/libcache/README b/src/sideshow/web/static/libcache/README similarity index 100% rename from sideshow/web/static/libcache/README rename to src/sideshow/web/static/libcache/README diff --git a/sideshow/web/subscribers.py b/src/sideshow/web/subscribers.py similarity index 100% rename from sideshow/web/subscribers.py rename to src/sideshow/web/subscribers.py diff --git a/sideshow/web/templates/base_meta.mako b/src/sideshow/web/templates/base_meta.mako similarity index 100% rename from sideshow/web/templates/base_meta.mako rename to src/sideshow/web/templates/base_meta.mako diff --git a/sideshow/web/views/__init__.py b/src/sideshow/web/views/__init__.py similarity index 100% rename from sideshow/web/views/__init__.py rename to src/sideshow/web/views/__init__.py