Commitf3a59bf7Recorded26 Apr 2026Repositorysigil-version

Extract sigil-version from sigil monorepo as standalone repo

Message

Filter-repo'd packages/sigil-version/ history out of codeberg:sigil/sigil into this standalone repo. 13 commits preserved; carried-over monorepo release tags wiped.

Scaffolding: - README.md: usage example (parse-version, version-satisfies?), build/test recipe. - LICENSE: BSD-3-Clause carried over from monorepo root. - .gitignore: build/ and .sigil/. - manifest.scm: pure-Scheme guix-shell environment. - dev-redirects.sgl: single redirect for codeberg:sigil/sigil-lang -> ../sigil-lang for local-checkout development. - package.sgl: explicit version: "0.13.1"; url: pointed at codeberg.org/sigil/sigil-version. Sole dep (sigil-stdlib via sigil-lang) unchanged. - sigil.lock: auto-generated by sigil deps install (sigil-stdlib v0.13.1 @ a436005a).

Self-bootstrap green: sigil deps install + sigil test => 57/57 passed.

Procedure: procedures/sigil-package-extraction (folio). Reference: extract-sigil-args (sibling extraction landed today).

Changed
 .gitignore        |  2 ++
 LICENSE           | 28 ++++++++++++++++++++++++++++
 README.md         | 38 ++++++++++++++++++++++++++++++++++++++
 dev-redirects.sgl |  6 ++++++
 manifest.scm      |  7 +++++++
 package.sgl       |  3 ++-
 sigil.lock        |  9 +++++++++
 7 files changed, 92 insertions(+), 1 deletion(-)
Diff
.gitignoreadded
@@ -0,0 +1,2 @@
+1
build/
+2
.sigil/
LICENSEadded
@@ -0,0 +1,28 @@
+1
BSD 3-Clause License
+2
+3
Copyright (c) 2025 David Wilson
+4
+5
Redistribution and use in source and binary forms, with or without
+6
modification, are permitted provided that the following conditions are met:
+7
+8
1. Redistributions of source code must retain the above copyright notice, this
+9
list of conditions and the following disclaimer.
+10
+11
2. Redistributions in binary form must reproduce the above copyright notice,
+12
this list of conditions and the following disclaimer in the documentation
+13
and/or other materials provided with the distribution.
+14
+15
3. Neither the name of the copyright holder nor the names of its
+16
contributors may be used to endorse or promote products derived from
+17
this software without specific prior written permission.
+18
+19
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+20
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+21
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+22
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
+23
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+24
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+25
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+26
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+27
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+28
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
README.mdadded
@@ -0,0 +1,38 @@
+1
# sigil-version
+2
+3
Semantic versioning for [Sigil](https://codeberg.org/sigil/sigil) — parse, compare, and constraint-match version strings per [semver 2.0.0](https://semver.org/).
+4
+5
## Usage
+6
+7
```scheme
+8
(import (sigil version))
+9
+10
(define v (parse-version "1.2.3-alpha.1"))
+11
(version-major v) ; => 1
+12
(version<? v (parse-version "1.2.4")) ; => #t
+13
+14
;; Constraint matching
+15
(version-satisfies? v ">= 1.0.0") ; => #t
+16
(version-satisfies? v "^1.2.0") ; => #t (caret: same major, >= given)
+17
(version-satisfies? v "~1.2.0") ; => #t (tilde: same major.minor, >= given)
+18
```
+19
+20
Supports the standard constraint operators (`=`, `>`, `>=`, `<`, `<=`, `^`, `~`, `*`) plus the full semver field set (major / minor / patch / prerelease / build). See [`src/sigil/version.sgl`](src/sigil/version.sgl) for the full export list and inline reference.
+21
+22
## Building
+23
+24
```sh
+25
sigil deps install
+26
sigil build
+27
sigil test
+28
```
+29
+30
For local development against an in-tree `sigil-lang` checkout:
+31
+32
```sh
+33
sigil build --redirects ./dev-redirects.sgl
+34
```
+35
+36
## License
+37
+38
BSD-3-Clause. See [LICENSE](LICENSE) (license header lives in `package.sgl`).
dev-redirects.sgladded
@@ -0,0 +1,6 @@
+1
;; Development redirects — point dependencies at local Sigil checkouts
+2
(redirects
+3
repos: (list
+4
(for-repo
+5
url: "codeberg:sigil/sigil-lang"
+6
use: (from-path dir: "../sigil-lang"))))
manifest.scmadded
@@ -0,0 +1,7 @@
+1
;; sigil-version Development Environment
+2
;; Use with: guix shell -m manifest.scm
+3
+4
(specifications->manifest
+5
'("gcc-toolchain"
+6
"make"
+7
"pkg-config"))
package.sglmodified
@@ -5,9 +5,10 @@
5
6
(package
7
name: "sigil-version"
+8
version: "0.13.1"
9
sigil: "^0.13"
10
description: "Semantic versioning parsing and comparison"
10
url: "https://codeberg.org/sigil/sigil"
+11
url: "https://codeberg.org/sigil/sigil-version"
12
license: "BSD-3-Clause"
13
authors: (list "David Wilson <[email protected]>")
14
sigil.lockadded
@@ -0,0 +1,9 @@
+1
;; Auto-generated by sigil deps install. Do not edit.
+2
(lock
+3
(package name: "sigil-stdlib"
+4
url: "codeberg:sigil/sigil-lang"
+5
ref: "^0.13.1"
+6
sha: "a436005a34754522d3c38b608aa892b4f8e13dd3"
+7
package-selector: "sigil-stdlib"
+8
version: "0.13.1")
+9
)