-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 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
Showing
3 changed files
with
50 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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__ |