~sircmpwn/sr.ht-dev

core.sr.ht: fix scripts disappearing after pyproject.toml conversion v1 APPLIED

Eli Schwartz: 1
 fix scripts disappearing after pyproject.toml conversion

 1 files changed, 5 insertions(+), 0 deletions(-)
#1233076 alpine.yml success
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~sircmpwn/sr.ht-dev/patches/52976/mbox | git am -3
Learn more about email & git

[PATCH core.sr.ht] fix scripts disappearing after pyproject.toml conversion Export this patch

In commit 1fbbcabb7c23516cf08f9581c5ea4876aa89326d, setup.py was reduced
to a stub loader for the pyproject.toml static metadata.

Without getting into whether it makes sense to programmatically vs.
statically define e.g. package_data, the scripts= argument to setup()
was never included in pyproject.toml and was removed from setup.py; this
broke the resulting installed package.

Restore this information.

Signed-off-by: Eli Schwartz <eschwartz93@gmail.com>
---
 pyproject.toml | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/pyproject.toml b/pyproject.toml
index 3005b8d..00b4718 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -51,6 +51,11 @@ packages = [
    "srht.templates",
    "srht.webhook",
]
script-files = [
    "srht-update-profiles",
    "srht-migrate",
    "srht-keygen",
]
[tool.setuptools.package-data]
"srht" = ['Makefile', 'minify-css.js']
"srht.templates" = ['*.html']
-- 
2.44.1
core.sr.ht/patches/alpine.yml: SUCCESS in 43s

[fix scripts disappearing after pyproject.toml conversion][0] from [Eli Schwartz][1]

[0]: https://lists.sr.ht/~sircmpwn/sr.ht-dev/patches/52976
[1]: mailto:eschwartz93@gmail.com

✓ #1233076 SUCCESS core.sr.ht/patches/alpine.yml https://builds.sr.ht/~sircmpwn/job/1233076
Thanks! (I tagged a new release)

to git@git.sr.ht:~sircmpwn/core.sr.ht
  24f65f7..34213d6  master -> master