~sircmpwn/sr.ht-dev

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
2 2

[PATCH paste.sr.ht] Preparations for PEP440 support

Details
Message ID
<20240729112737.168883-1-ch@bitfehler.net>
DKIM signature
pass
Download raw message
Patch: +47 -0
Currrently, builds for patches are broken because the version numbers
generated for them are not valid according to PEP 440 [1].

This has to be solved in several steps, in coordination with the
packaging code. Procedure will be the same as for core.sr.ht:

https://git.sr.ht/~sircmpwn/core.sr.ht/commit/57ee3427

The only difference is that the extra build step (running `make`) will
remain in `setup.py` (as there is no generic mechanism for this in
`pyproject.toml`). This just means the build process will still always
have to be performed with setuptools as backend.

[1] https://peps.python.org/pep-0440
---
 .git_archival.txt |  1 +
 .gitattributes    |  1 +
 pyproject.toml    | 45 +++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 47 insertions(+)
 create mode 100644 .git_archival.txt
 create mode 100644 .gitattributes
 create mode 100644 pyproject.toml

diff --git a/.git_archival.txt b/.git_archival.txt
new file mode 100644
index 0000000..2a6ca7c
--- /dev/null
+++ b/.git_archival.txt
@@ -0,0 +1 @@
describe-name: $Format:%(describe:tags=true,match=*[0-9]*)$
diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 0000000..00a7b00
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1 @@
.git_archival.txt  export-subst
diff --git a/pyproject.toml b/pyproject.toml
new file mode 100644
index 0000000..549d3fd
--- /dev/null
+++ b/pyproject.toml
@@ -0,0 +1,45 @@
[build-system]
requires = ["setuptools", "setuptools_scm"]
build-backend = "setuptools.build_meta"

[project]
name = "pastesrht"
dynamic = ["version"]
description = "paste.sr.ht website"
readme = "README.md"
authors = [{name = "Drew DeVault", email = "sir@cmpwn.com"}]
dependencies = [
      "srht",
      "pyyaml",
]
license.text = "AGPL-3.0-only"

[project.urls]
repository = "https://git.sr.ht/~sircmpwn/paste.sr.ht"

[tool.setuptools]
# This defaults to true, but we explicitly specify what we want included in the
# package via packages and tool.setuptools.package-data below.
include-package-data = false
packages = [
    "pastesrht",
    "pastesrht.alembic",
    "pastesrht.alembic.versions",
    "pastesrht.blueprints",
    "pastesrht.blueprints.api",
    "pastesrht.static",
    "pastesrht.static.icons",
    "pastesrht.templates",
    "pastesrht.types",
]
script-files = [
    "pastesrht-initdb",
    "pastesrht-migrate",
]
[tool.setuptools.package-data]
"pastesrht" = ['default_query.graphql', 'schema.graphqls']
"pastesrht.static" = ['*']
"pastesrht.static.icons" = ['*']
"pastesrht.templates" = ['*.html']

[tool.setuptools_scm]
-- 
2.45.2

[paste.sr.ht/patches/alpine.yml] build failed

builds.sr.ht <builds@sr.ht>
Details
Message ID
<D31ZKJOT7AY3.2S8G4NXW541FH@fra01>
In-Reply-To
<20240729112737.168883-1-ch@bitfehler.net> (view parent)
DKIM signature
missing
Download raw message
paste.sr.ht/patches/alpine.yml: FAILED in 1m13s

[Preparations for PEP440 support][0] from [Conrad Hoffmann][1]

[0]: https://lists.sr.ht/~sircmpwn/sr.ht-dev/patches/54159
[1]: ch@bitfehler.net

✗ #1288275 FAILED paste.sr.ht/patches/alpine.yml https://builds.sr.ht/~sircmpwn/job/1288275
Details
Message ID
<D3Y7B8BBQV6Q.2G8XF2C97JYUN@cmpwn.com>
In-Reply-To
<20240729112737.168883-1-ch@bitfehler.net> (view parent)
DKIM signature
pass
Download raw message
Thanks!

To git@git.sr.ht:~sircmpwn/paste.sr.ht
   4cb7f21..0099792  master -> master
Reply to thread Export thread (mbox)