diff --git a/_data/python-versions.json b/_data/python-versions.json index 342c59f..d4f6d10 100644 --- a/_data/python-versions.json +++ b/_data/python-versions.json @@ -1,4 +1,5 @@ [ + {"version":"0.992.2","title":"0.992.2","aliases":[]}, {"version":"0.992.1","title":"0.992.1","aliases":["latest"]}, {"version":"0.992.0","title":"0.992.0","aliases":[]}, {"version":"0.991.0","title":"0.991.0","aliases":[]}, diff --git a/implementations/python/Makefile b/implementations/python/Makefile index 74488ed..b1b8dc8 100644 --- a/implementations/python/Makefile +++ b/implementations/python/Makefile @@ -1,9 +1,12 @@ # This used to just be # PACKAGEVERSION := "`python3 setup.py --version`" -PACKAGEVERSION := "`python -c 'import tomllib; print(tomllib.load(open("pyproject.toml", "rb"))["project"]["version"])'`" +PACKAGEVERSION := $(shell python -c 'import tomllib; print(tomllib.load(open("pyproject.toml", "rb"))["project"]["version"])') all: test build-docs +test-in-docker: build-only + docker run --rm -v `pwd`/dist:/dist python /bin/bash -c 'pip install dist/preserves-$(PACKAGEVERSION)*.whl && python -c "import preserves.schema; print(preserves.schema)"' + test: update-test-data python3 -m unittest discover -s tests @@ -36,5 +39,9 @@ clean: publish: clean build twine upload dist/* -build: build-docs +build: build-docs build-only + +build-only: dist/preserves-$(PACKAGEVERSION).tar.gz + +dist/preserves-$(PACKAGEVERSION).tar.gz: python3 -m build diff --git a/implementations/python/pyproject.toml b/implementations/python/pyproject.toml index 187fa91..12208dd 100644 --- a/implementations/python/pyproject.toml +++ b/implementations/python/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "preserves" -version = "0.992.1" +version = "0.992.2" description = "Data serialization format" readme = "README.md" requires-python = ">=3.6, <4" @@ -37,6 +37,9 @@ dev = [ [tool.setuptools] packages = ["preserves"] +[tool.setuptools.package-data] +preserves = ["*"] + [build-system] requires = ["setuptools"] build-backend = "setuptools.build_meta" diff --git a/python/0.992.2/404.html b/python/0.992.2/404.html new file mode 100644 index 0000000..9ef042c --- /dev/null +++ b/python/0.992.2/404.html @@ -0,0 +1,486 @@ + + + +
+ + + + + + + + + + + + + + +import preserves
+
The main package re-exports a subset of the exports of its constituent modules:
+From preserves.values:
+ +From preserves.error:
+ +From preserves.binary:
+ +From preserves.text:
+ +From preserves.compare:
+From preserves.merge:
+It also exports the compare and fold modules themselves, +permitting patterns like
+>>> from preserves import *
+>>> compare.cmp(123, 234)
+-1
+
Finally, it provides a few utility aliases for common tasks:
+ + + +dumps = stringify
+
+
+ module-attribute
+
+
+This alias for stringify
provides a familiar pythonesque name for converting a Preserves Value
to a string.
loads = parse
+
+
+ module-attribute
+
+
+This alias for parse
provides a familiar pythonesque name for converting a string to a Preserves Value
.
{"use strict";/*!
+ * escape-html
+ * Copyright(c) 2012-2013 TJ Holowaychuk
+ * Copyright(c) 2015 Andreas Lubbe
+ * Copyright(c) 2015 Tiancheng "Timothy" Gu
+ * MIT Licensed
+ */var Ha=/["'&<>]/;Un.exports=$a;function $a(e){var t=""+e,r=Ha.exec(t);if(!r)return t;var o,n="",i=0,s=0;for(i=r.index;i