Skip to content

Commit 9bb8f7d

Browse files
authored
Merge pull request #271 from gilch/doc-once-over
Doc updates for release
2 parents 5f85883 + 42fb1d9 commit 9bb8f7d

File tree

13 files changed

+142
-114
lines changed

13 files changed

+142
-114
lines changed

README.md

Lines changed: 109 additions & 77 deletions
Large diffs are not rendered by default.

conftest.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,3 +99,5 @@ def __contains__(self, item):
9999
parsers=[ParseLissp(optionflags=ELLIPSIS)],
100100
filenames=Globs("*.md", "*.rst", "*.lissp"),
101101
).pytest()
102+
103+
# RELEASE: Run all tests.

docs/command_line_reference.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ also install the ``lissp`` command-line tool for running Lissp code.
1414
This is a convenience executable for starting ``python -m hissp``,
1515
whose minimal options were modeled after Python's most commonly used:
1616

17+
.. RELEASE: Update (Hissp X.X.X) line.
18+
1719
.. code-block:: Text
1820
1921
usage: lissp [-h] [-i] [-c cmd] [file] [args [args ...]]

docs/conf.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,3 +99,5 @@
9999
html_static_path = ["_static"]
100100

101101
intersphinx_mapping = {"python": ("https://docs.python.org/3.10", None)}
102+
103+
# RELEASE: Make sure to clean build docs and check for errors.

docs/lissp_whirlwind_tour.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
... __import__('hissp')._macro_)))
1010
1111
.. TODO: Interactive via web repl?
12+
.. RELEASE: Update the ;;;; Installation section.
1213
1314
Lissp Whirlwind Tour
1415
====================

docs/macro_tutorial.rst

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ Macro Tutorial
1111
##############
1212

1313
.. TODO: be sure to demonstrate hissp.compiler..ENV and hissp.compiler..readerless somewhere
14-
.. TODO: be sure to demonstrate a recursive macro somewhere
1514
1615
Lisp is a higher-level language than Python,
1716
in the same sense that Python is a higher-level language than C,
@@ -2741,9 +2740,8 @@ which have the same issue.
27412740
A simple basic syntax means there are relatively few edge cases you have to be aware of.
27422741

27432742
Hissp is so simple that a full code-walking macro would only have to pre-expand all macros,
2744-
and handle atoms, calls, ``quote``, and ``lambda``.
2745-
2746-
.. TODO: Which we will be demonstrating later!
2743+
and handle atoms, calls, ``quote``, and ``lambda``,
2744+
which we will be demonstrating later!
27472745

27482746
If you add Python injections to the list,
27492747
then you also have to handle the entirety of all Python expressions.
@@ -6717,8 +6715,6 @@ A lot of programming comes down to restructuring data like this.
67176715
If you've made it this far,
67186716
show off your solutions in the Hissp Community Chat!
67196717

6720-
.. TODO: and that's how the bundled d# version works.
6721-
67226718
.. TODO: advanced techniques from A Slice o Python?
67236719
Let's review. This section covered a number of advanced techniques:
67246720
- Brackets in symbols.
@@ -6768,11 +6764,7 @@ show off your solutions in the Hissp Community Chat!
67686764
67696765
.. TODO: preconditions?
67706766
6771-
.. TODO: base 6, tau
6772-
67736767
.. TODO: defmacro/g defmacro!
6774-
.. TODO: destructuring bind (iterable only?)
6775-
.. TODO: destructuring lambda (iterable only?)
67766768
67776769
.. TODO: one-shot self-referential data structure using reader macros
67786770
See http://www.lispworks.com/documentation/HyperSpec/Body/02_dho.htm

docs/primer.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ Confirm your Python version with
5555
5656
(Re-)install the Hissp version matching this document with
5757

58+
.. RELEASE: Rewrite to install from PyPI.
59+
5860
.. code-block:: console
5961
6062
$ python -m pip install --upgrade --force-reinstall git+https://github.com/gilch/hissp

setup.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,7 @@
6767
)
6868
# Build dist and install:
6969
# python setup.py bdist_wheel && pip install --force-reinstall setup\dist\hissp-*.whl
70+
71+
# RELEASE: Double-check setup data.
72+
# RELEASE: Clean build macros.py and make sure it's in the .whl.
73+
# RELEASE: Inspect all files in the .whl.

src/hissp/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
with __import__("contextlib").suppress(ImportError):
8989
from hissp.macros import _macro_
9090

91-
VERSION = "0.5.dev"
91+
VERSION = "0.5.dev" # RELEASE
9292

9393

9494
def prelude(env):

src/hissp/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2020, 2021 Matthew Egan Odendahl
1+
# Copyright 2020, 2021, 2024 Matthew Egan Odendahl
22
# SPDX-License-Identifier: Apache-2.0
33
"""
44
Hissp's command-line interface.

0 commit comments

Comments
 (0)