You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+41-3Lines changed: 41 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# python-mscl
2
2
3
-
Unofficial Python bindings for the [Microstrain Communication Library](https://www.microstrain.com/developers/microstrain-communication-library).
3
+
Unofficial Python package for the [Microstrain Communication Library](https://github.com/LORD-MicroStrain/MSCL/tree/master).
4
4
5
5
This library just makes it so that we can install the MSCL library using pip. Wheels are not provided. This will fetch the necessary files for your architecture and python
6
6
version, and then build the wheel for you.
@@ -18,11 +18,49 @@ pip install python-mscl
18
18
### Usage
19
19
20
20
```python
21
-
import mscl
21
+
from python_mscl import mscl
22
22
23
23
# ... use the MSCL library as you normally would
24
24
```
25
25
26
+
### Windows support:
27
+
28
+
The latest mscl version (v67.0.0) only has a .zip for python 3.11. It is not confirmed if this will work with other python versions.
29
+
30
+
31
+
### Versioning system:
32
+
33
+
This repository follows the same versioning system as the MSCL library. This is reflected in the tags of this repository.
34
+
35
+
The version reflected in PyPI is as follows:
36
+
37
+
```
38
+
<MSCL_VERSION>.<REPO_VERSION>
39
+
```
40
+
41
+
E.g, there could be a version: `67.0.0.3` which would mean that the MSCL version is `67.0.0` and this is the third release of the python-mscl package.
42
+
26
43
## Local Development:
27
44
28
-
TODO
45
+
The below steps assume you have [`uv`](https://docs.astral.sh/uv/) installed.
46
+
47
+
1. Clone the repo and `cd` into it.
48
+
2. Optional: Create a .env file and insert your GITHUB_TOKEN= to make requests to the GitHub API.
49
+
3. Edit & run `uv run main.py` to fetch the latest tagged MSCL releases and extract them.
50
+
4. Run `uv build`, which will build the source distribution and wheel for your python
51
+
version and architecture.
52
+
53
+
Notes for me, the maintainer:
54
+
5. Optional: Run `uv publish` to publish the package to PyPI. To upload to TestPyPI, uncomment lines in `pyproject.toml`, and run `uv publish --index testpypi dist/*.tar.gz`.
55
+
6. Optional: To check if the package worked correctly: `uv add --index https://test.pypi.org/simple/ --index-strategy unsafe-best-match python-mscl` in a new uv project directory.
56
+
57
+
58
+
## Issues:
59
+
60
+
If you encounter any issues, please open an issue on this repository. I would have to
61
+
manually update this repository to the latest MSCL release. If it has been more than 48 hours since the latest release and I didn't update this repository, please open an issue.
62
+
63
+
## License
64
+
65
+
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
0 commit comments