diff --git a/_data/python-versions.json b/_data/python-versions.json index 79880b3..498d385 100644 --- a/_data/python-versions.json +++ b/_data/python-versions.json @@ -1,6 +1,7 @@ [ - {"version":"0.992.0","title":"0.992.0","aliases":[]}, - {"version":"0.991.0","title":"0.991.0","aliases":["latest"]}, + {"version":"0.992.1","title":"0.992.1","aliases":[]}, + {"version":"0.992.0","title":"0.992.0","aliases":["latest"]}, + {"version":"0.991.0","title":"0.991.0","aliases":[]}, {"version":"0.990.1","title":"0.990.1","aliases":[]}, {"version":"0.990.0","title":"0.990.0","aliases":[]}, {"version":"0.18.1","title":"0.18.1","aliases":[]}, diff --git a/implementations/python/.envrc b/implementations/python/.envrc index 7be37c5..601f6f7 100644 --- a/implementations/python/.envrc +++ b/implementations/python/.envrc @@ -2,10 +2,7 @@ if ! [ -d .venv ] then python -m venv .venv . .venv/bin/activate - pip install -U coverage setuptools setuptools_scm wheel \ - mkdocs 'mkdocstrings[python]' mkdocs-material mkdocs-macros-plugin \ - mkdocs-git-revision-date-localized-plugin - pip install -e . + pip install -e '.[dev]' else . .venv/bin/activate fi diff --git a/implementations/python/Makefile b/implementations/python/Makefile index 4a26c68..b7a5c12 100644 --- a/implementations/python/Makefile +++ b/implementations/python/Makefile @@ -1,4 +1,6 @@ -PACKAGEVERSION="`python3 setup.py --version`" +# This used to just be +# PACKAGEVERSION := "`python3 setup.py --version`" +PACKAGEVERSION := "`python -c 'import tomllib; print(tomllib.load(open("pyproject.toml", "rb"))["project"]["version"])'`" all: test build-docs diff --git a/implementations/python/pyproject.toml b/implementations/python/pyproject.toml new file mode 100644 index 0000000..3c9d16f --- /dev/null +++ b/implementations/python/pyproject.toml @@ -0,0 +1,40 @@ +[project] +name = "preserves" +version = "0.992.1" +description = "Data serialization format" +readme = "README.md" +requires-python = ">=3.6, <4" +license = {text = "Apache-2.0"} + +authors = [ + {name = "Tony Garnock-Jones", email = "tonyg@leastfixedpoint.com"}, +] + +classifiers = [ + "Development Status :: 4 - Beta", + "Intended Audience :: Developers", + "Topic :: Software Development :: Libraries :: Python Modules", + "License :: OSI Approved :: Apache Software License", + "Programming Language :: Python :: 3", +] + +[project.urls] +Homepage = "https://preserves.dev/" +Issues = "https://gitlab.com/preserves/preserves/-/issues" + +[project.optional-dependencies] +dev = [ + "coverage", + "mkdocs", + "mkdocstrings[python]", + "mkdocs-material", + "mkdocs-macros-plugin", + "mkdocs-git-revision-date-localized-plugin", +] + +[tool.setuptools] +packages = ["preserves"] + +[build-system] +requires = ["setuptools"] +build-backend = "setuptools.build_meta" diff --git a/implementations/python/setup.py b/implementations/python/setup.py deleted file mode 100644 index c5ce168..0000000 --- a/implementations/python/setup.py +++ /dev/null @@ -1,25 +0,0 @@ -from setuptools import setup - -setup( - name="preserves", - version="0.992.1", - author="Tony Garnock-Jones", - author_email="tonyg@leastfixedpoint.com", - license="Apache Software License", - classifiers=[ - "Development Status :: 4 - Beta", - "Intended Audience :: Developers", - "Topic :: Software Development :: Libraries :: Python Modules", - "License :: OSI Approved :: Apache Software License", - "Programming Language :: Python :: 3", - ], - packages=["preserves"], - url="https://preserves.dev/", - description="Data serialization format", - long_description=open("README.md").read(), - long_description_content_type="text/markdown", - install_requires=[], - python_requires=">=3.6, <4", - setup_requires=['setuptools_scm'], - include_package_data=True, -) diff --git a/python/0.992.1/404.html b/python/0.992.1/404.html new file mode 100644 index 0000000..9ef042c --- /dev/null +++ b/python/0.992.1/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