Skip to content

Commit

Permalink
refactor: Add installation verification and version module
Browse files Browse the repository at this point in the history
  • Loading branch information
janezlapajne committed Sep 25, 2024
1 parent 447e09e commit 6fb7c7a
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,14 @@ cd siapy
make install
```

### Verify Installation

To verify that siapy has been installed correctly, you can run:

```bash
python -c "import siapy; print(siapy.__version__)"
```

## Troubleshooting

If you encounter any issues during installation, consider the following solutions:
Expand Down
3 changes: 3 additions & 0 deletions siapy/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from .__version__ import __version__

__all__ = ["__version__"]
6 changes: 6 additions & 0 deletions siapy/__version__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
from importlib import metadata

try:
__version__ = metadata.version("siapy")
except metadata.PackageNotFoundError:
__version__ = "0.0.0"

0 comments on commit 6fb7c7a

Please sign in to comment.