diff --git a/.github/workflows/test-package.yml b/.github/workflows/test-package.yml index cf170eb78..d0c718703 100644 --- a/.github/workflows/test-package.yml +++ b/.github/workflows/test-package.yml @@ -1,5 +1,5 @@ # This configuration file is part of the Hissp source code repository, -# copyright 2019, 2021, 2022 Matthew Egan Odendahl +# copyright 2019, 2021, 2022, 2024 Matthew Egan Odendahl # SPDX-License-Identifier: Apache-2.0 name: Test package @@ -15,10 +15,10 @@ jobs: uses: actions/checkout@v2 - name: Lint with black uses: psf/black@stable - - name: Set up Python 3.8 + - name: Set up Python 3.10.15 uses: actions/setup-python@v1 with: - python-version: 3.8 + python-version: 3.10.15 - name: Cache pip uses: actions/cache@v1 with: @@ -55,7 +55,11 @@ jobs: pip install -r requirements-dev.txt - name: Test install with pytest (including doctests) env: - PYTHONWARNINGS: error + # Upgrades warnings to errors, so they get noticed. + # Currently turns off some in libraries due to Python 3.10 upgrade. + # These are not due to issues in Hissp itself, which has no dependencies. + # TODO: try upgrading libraries affected by deprecations. + PYTHONWARNINGS: error,default:SelectableGroups:DeprecationWarning:hypothesis.entry_points,default:A private pytest:DeprecationWarning:sybil.integration.pytest run: | python -c "import tests" # Compiles hissp.basic on package import. pytest -p no:cacheprovider -v --cov=hissp --cov-report=xml --doctest-modules --doctest-glob *.md src/hissp/*.lissp tests/ docs/ $(python -c "import hissp; print(hissp.__path__[0])") diff --git a/docs/macro_tutorial.rst b/docs/macro_tutorial.rst index 6fedbacbb..cf2c71272 100644 --- a/docs/macro_tutorial.rst +++ b/docs/macro_tutorial.rst @@ -349,8 +349,8 @@ That worked, but can we use it? Traceback (most recent call last): ... squares = map(L x: x * x, range(10)) - ^ - SyntaxError: invalid syntax + ^^^ + SyntaxError: invalid syntax. Perhaps you forgot a comma? Another syntax error. No surprise. diff --git a/requirements-dev.txt b/requirements-dev.txt index f9366df0a..09fcb00d8 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,9 +1,9 @@ # This configuration file is part of Hissp's test suite, -# Copyright 2019, 2021, 2022 Matthew Egan Odendahl +# Copyright 2019, 2021, 2022, 2024 Matthew Egan Odendahl # SPDX-License-Identifier: Apache-2.0 hypothesis==5.43.3 coverage==5.3 -pytest==6.1.2 +pytest==6.2.5 pytest-cov==2.10.1 sybil==2.0.1 -sphinx==4.2.0 +sphinx==6.2.1 diff --git a/setup.py b/setup.py index 8a289f79b..42e04c5d7 100644 --- a/setup.py +++ b/setup.py @@ -41,7 +41,7 @@ "Operating System :: POSIX", "Operating System :: Unix", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.10", "Programming Language :: Lisp", "Topic :: Software Development", "Topic :: Software Development :: Code Generators", diff --git a/src/hissp/macros.lissp b/src/hissp/macros.lissp index d62272768..031aea003 100644 --- a/src/hissp/macros.lissp +++ b/src/hissp/macros.lissp @@ -1680,7 +1680,7 @@ Hidden doctest adds bundled macros for REPL-consistent behavior. ;; ... 'Hi'), ;; ... _Qzwg5wn73w__target) [-1] ;; ... )() - ;; namespace(a=1, attach=, b='Hi') + ;; namespace(attach=, a=1, b='Hi') ;; ;; See also: `setattr`, `set@ `, `vars`. ;; @@ -2424,7 +2424,7 @@ Hidden doctest adds bundled macros for REPL-consistent behavior. ;; ;; #> Q#2/3 ;; >>> # Fraction(2, 3) - ;; ... __import__('pickle').loads(b'cfractions\nFraction\n(I2\nI3\ntR.') + ;; ... __import__('pickle').loads(b'cfractions\nFraction\n(V2/3\ntR.') ;; Fraction(2, 3) ;; (fractions..Fraction (hissp..demunge Q)))