diff --git a/.gitignore b/.gitignore index f3cf76a..6d9c809 100644 --- a/.gitignore +++ b/.gitignore @@ -20,3 +20,6 @@ src/sillybos/_version.py # OS .DS_Store + +# Local secrets (the PyPI token for the one-off pointer uploads) +.env diff --git a/pointers/README.md b/pointers/README.md new file mode 100644 index 0000000..d843c59 --- /dev/null +++ b/pointers/README.md @@ -0,0 +1,20 @@ +# Pointer packages + +Three names on PyPI that exist only to point at `sillybos`: the Latin +spelling, `sittybos`, and the two likely misspellings, `sittybus` and +`sillybus`. Each is an empty package whose one dependency is `sillybos`, +so `pip install sittybos` installs the real thing, and whose project page +says what happened. + +They are held so that nobody else can register them: once a library has +users, a misspelling of its name with something unpleasant inside is a +cheap attack, and PyPI keeps no name without a release behind it. + +They are published once, by hand, and never again: + +```bash +cd pointers/sittybos && uv build && uv publish # with a PyPI token +``` + +They are deliberately outside the release pipeline, the tests and the +package build: nothing here ever changes version with `sillybos`. diff --git a/pointers/sillybus/README.md b/pointers/sillybus/README.md new file mode 100644 index 0000000..15a4f5a --- /dev/null +++ b/pointers/sillybus/README.md @@ -0,0 +1,21 @@ +# sillybus + +You probably meant **[sillybos](https://pypi.org/project/sillybos/)**, and +this package installs it: `sillybus` is the misspelling of sillybos that is +easiest to make. There is nothing else in here, and there never will be; it +exists so that the name points at the right place rather than at whatever +someone else might put under it. + +```bash +pip install sillybos +``` + +sillybos (say it *SIL-lee-boss*) decides, before any image library or PDF +renderer opens a file, whether it is one of the formats you meant to read, +within the limits you expect, and if not, why. The name is the Greek +σίλλυβος, Latin *sittybus*: the little parchment tag that hung from a +rolled scroll in an ancient library, so a reader could tell what a scroll +was without unrolling it. + +The code and the documentation are at +[github.com/scattercode/sillybos](https://github.com/scattercode/sillybos). diff --git a/pointers/sillybus/pyproject.toml b/pointers/sillybus/pyproject.toml new file mode 100644 index 0000000..0e83139 --- /dev/null +++ b/pointers/sillybus/pyproject.toml @@ -0,0 +1,22 @@ +# A pointer at sillybos, held so the name cannot be taken by someone else. +# Published once by hand (see ../README.md); never released with sillybos. +[build-system] +requires = ["setuptools>=75"] +build-backend = "setuptools.build_meta" + +[project] +name = "sillybus" +version = "0.0.1" +description = "You probably meant sillybos. This package installs it." +readme = "README.md" +license = "MIT" +requires-python = ">=3.11" +dependencies = ["sillybos"] +classifiers = ["Development Status :: 7 - Inactive"] + +[project.urls] +Homepage = "https://github.com/scattercode/sillybos" +"The real package" = "https://pypi.org/project/sillybos/" + +[tool.setuptools] +py-modules = [] diff --git a/pointers/sittybos/README.md b/pointers/sittybos/README.md new file mode 100644 index 0000000..424061b --- /dev/null +++ b/pointers/sittybos/README.md @@ -0,0 +1,22 @@ +# sittybos + +You probably meant **[sillybos](https://pypi.org/project/sillybos/)**, and +this package installs it: `sittybos` is the Greek σίλλυβος with the Latin +stem *sittyb-* and the Greek ending, the half-way form a reader is likely to +type. There is nothing else in here, and there never will be; it exists so +that the name points at the right place rather than at whatever someone else +might put under it. + +```bash +pip install sillybos +``` + +sillybos (say it *SIL-lee-boss*) decides, before any image library or PDF +renderer opens a file, whether it is one of the formats you meant to read, +within the limits you expect, and if not, why. The name is the Greek +σίλλυβος, Latin *sittybus*: the little parchment tag that hung from a +rolled scroll in an ancient library, so a reader could tell what a scroll +was without unrolling it. + +The code and the documentation are at +[github.com/scattercode/sillybos](https://github.com/scattercode/sillybos). diff --git a/pointers/sittybos/pyproject.toml b/pointers/sittybos/pyproject.toml new file mode 100644 index 0000000..16de4ba --- /dev/null +++ b/pointers/sittybos/pyproject.toml @@ -0,0 +1,22 @@ +# A pointer at sillybos, held so the name cannot be taken by someone else. +# Published once by hand (see ../README.md); never released with sillybos. +[build-system] +requires = ["setuptools>=75"] +build-backend = "setuptools.build_meta" + +[project] +name = "sittybos" +version = "0.0.1" +description = "You probably meant sillybos. This package installs it." +readme = "README.md" +license = "MIT" +requires-python = ">=3.11" +dependencies = ["sillybos"] +classifiers = ["Development Status :: 7 - Inactive"] + +[project.urls] +Homepage = "https://github.com/scattercode/sillybos" +"The real package" = "https://pypi.org/project/sillybos/" + +[tool.setuptools] +py-modules = [] diff --git a/pointers/sittybus/README.md b/pointers/sittybus/README.md new file mode 100644 index 0000000..6c6bff6 --- /dev/null +++ b/pointers/sittybus/README.md @@ -0,0 +1,21 @@ +# sittybus + +You probably meant **[sillybos](https://pypi.org/project/sillybos/)**, and +this package installs it: `sittybus` is the Latin spelling of the Greek +σίλλυβος, and the form used in English scholarship. There is nothing else in +here, and there never will be; it exists so that the name points at the right +place rather than at whatever someone else might put under it. + +```bash +pip install sillybos +``` + +sillybos (say it *SIL-lee-boss*) decides, before any image library or PDF +renderer opens a file, whether it is one of the formats you meant to read, +within the limits you expect, and if not, why. The name is the Greek +σίλλυβος, Latin *sittybus*: the little parchment tag that hung from a +rolled scroll in an ancient library, so a reader could tell what a scroll +was without unrolling it. + +The code and the documentation are at +[github.com/scattercode/sillybos](https://github.com/scattercode/sillybos). diff --git a/pointers/sittybus/pyproject.toml b/pointers/sittybus/pyproject.toml new file mode 100644 index 0000000..6b4e3c9 --- /dev/null +++ b/pointers/sittybus/pyproject.toml @@ -0,0 +1,22 @@ +# A pointer at sillybos, held so the name cannot be taken by someone else. +# Published once by hand (see ../README.md); never released with sillybos. +[build-system] +requires = ["setuptools>=75"] +build-backend = "setuptools.build_meta" + +[project] +name = "sittybus" +version = "0.0.1" +description = "You probably meant sillybos. This package installs it." +readme = "README.md" +license = "MIT" +requires-python = ">=3.11" +dependencies = ["sillybos"] +classifiers = ["Development Status :: 7 - Inactive"] + +[project.urls] +Homepage = "https://github.com/scattercode/sillybos" +"The real package" = "https://pypi.org/project/sillybos/" + +[tool.setuptools] +py-modules = [] diff --git a/pyproject.toml b/pyproject.toml index 03fd645..dc03ac6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -83,6 +83,10 @@ version-file = "src/sillybos/_version.py" [tool.hatch.build.targets.wheel] packages = ["src/sillybos"] +[tool.hatch.build.targets.sdist] +# The pointer packages are published on their own; keep them out of the sdist. +exclude = ["pointers"] + [tool.ruff] line-length = 100