Skip to content

Spatex 0.2.1

Latest

Choose a tag to compare

@github-actions github-actions released this 27 Nov 00:31

First public release, and the first one published to Hex. The library code and its API are the
same as in 0.2.0; this release changes packaging, dependency metadata and documentation.

Changed

  • Spatex is installed from Hex ({:spatex, "~> 0.2"}) and downloads a precompiled NIF for its six
    targets (NIF versions 2.16 and 2.17), so those targets need no Rust toolchain. SPATEX_BUILD=1
    still builds the NIF from source.
  • rustler is an optional dependency, as rustler_precompiled recommends: projects that use the
    precompiled NIF no longer fetch it. A source build, which includes using Spatex as a GitHub or
    path dependency, needs {:rustler, "~> 0.38", runtime: false} in the project's own
    dependencies; the notebooks' Mix.install lists it.
  • jason is an optional dependency. The library never used it (only the oracle-test helper and
    the benchmarks do), so projects no longer fetch it through Spatex.
  • The NIF checksum file is generated from the release artifacts when a release is published and
    ships only inside the Hex package; it is git-ignored, so a git checkout always builds the NIF
    from source.
  • The Hex package also ships .cargo/config.toml (the target-specific link settings a source
    build needs on macOS and musl) and the third-party license texts in LICENSES/.
  • The documentation links the sources of the release tag instead of main.
  • The release workflow attaches the NIF artifacts from a separate job that runs on tag pushes
    only and is the only one with write access to the repository contents. It attaches all 12
    artifacts, including the Windows ones, which are named without the lib prefix, and fails
    instead of publishing an empty release. Every workflow action is pinned to a commit SHA.

Fixed

  • NOTICE said that Spatex contains no PySAL code and reimplements everything from the
    literature. It now lists the files that port or adapt upstream code (mapclassify, esda, SciPy,
    scikit-learn, the Python heapq module, spopt, fast_hdbscan, mgwr, spglm, spreg, libpysal and
    NumPy), separates them from the implementations validated against upstream output, names the
    published algorithms the special functions follow, and states that the test fixtures embed
    libpysal example datasets as well as upstream output. The upstream license texts
    are in LICENSES/.
  • The README, the Spatex.GeoFrame documentation and the roadmap describe the public release:
    installation from Hex, the source-build opt-in, the optional dependencies and the stability of
    the 0.x API. The README and the notebooks say that the notebooks run from a git checkout.