Skip to content

Commit

Permalink
build: fix description (#6)
Browse files Browse the repository at this point in the history
* build: fix description
* docs: Add installation and development instructions to README.md
* ci: restrict mypy to src
* test: Add test for package version

Signed-off-by: nstarman <nstarman@users.noreply.github.com>
  • Loading branch information
nstarman authored Oct 17, 2024
1 parent 45af312 commit 3342c80
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 1 deletion.
37 changes: 37 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<h1 align='center'> spexial </h1>
<h3 align="center">`scipy.special` in JAX</h3>

<br>

## Installation

[![PyPI version][pypi-version]][pypi-link]
[![PyPI platforms][pypi-platforms]][pypi-link]

```bash
pip install spexial
```

or

```bash
uv add spexial
```

## Development

[![codecov][codecov-badge]][codecov-link]
[![Actions Status][actions-badge]][actions-link]

We welcome contributions!

<!-- prettier-ignore-start -->
[actions-badge]: https://github.com/JAXtronomy/spexial/workflows/CI/badge.svg
[actions-link]: https://github.com/JAXtronomy/spexial/actions
[codecov-badge]: https://codecov.io/gh/JAXtronomy/spexial/graph/badge.svg
[codecov-link]: https://codecov.io/gh/JAXtronomy/spexial
[pypi-link]: https://pypi.org/project/spexial/
[pypi-platforms]: https://img.shields.io/pypi/pyversions/spexial
[pypi-version]: https://img.shields.io/pypi/v/spexial

<!-- prettier-ignore-end -->
4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[project]
name = "spexial"
dynamic = ["version"]
description = "`scipy.special` in JAX."
description = "scipy.special in JAX."
readme = "README.md"
license.file = "LICENSE"
requires-python = ">=3.11"
Expand All @@ -28,6 +28,7 @@ run.source = ["spexial"]
strict = false
enable_error_code = ["ignore-without-code", "redundant-expr", "truthy-bool"]
warn_unreachable = true
files = ["src"]



Expand Down Expand Up @@ -66,6 +67,7 @@ ignore = [
"src/spexial/_version.py" = ["SIM108"]
"src/spexial/_src/gegenbauer.py" = ["ANN001", "ANN202", "ARG001", "D205", "D400", "D401", "D415", "N802", "N803", "N806"]
"docs/*.py" = ["D104"]
"tests/*.py" = ["ANN", "S101"]

[tool.ruff.lint.isort]
combine-as-imports = true
Expand Down
10 changes: 10 additions & 0 deletions tests/test_package.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
"""Test the package itself."""

import importlib.metadata

import spexial


def test_version():
"""Test version."""
assert importlib.metadata.version("spexial") == spexial.__version__

0 comments on commit 3342c80

Please sign in to comment.