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
* Directly build wheels for all platforms by changing tag
* Remove mscl_release_assets from origin
* Add mscl_release_assets/ to gitignore
* Use mscl 67.0.1, make CI work, use zipfile for extraction
Copy file name to clipboardExpand all lines: README.md
+11-13Lines changed: 11 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,10 +2,9 @@
2
2
3
3
Unofficial Python package for the [Microstrain Communication Library](https://github.com/LORD-MicroStrain/MSCL/tree/master).
4
4
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
-
version, and then build the wheel for you.
5
+
This library just makes it so that we can install the MSCL library using pip, and directly provides the wheels!
7
6
8
-
It is therefore recommended to use a cache for your CI or package manager, unless you're okay with the ~20MB download every time you run your CI.
7
+
Only Python 3.x wheels are provided. If you need Python 2.x wheels, please open an issue.
9
8
10
9
### Installation
11
10
@@ -21,11 +20,6 @@ from python_mscl import mscl
21
20
# ... use the MSCL library as you normally would
22
21
```
23
22
24
-
### Windows support:
25
-
26
-
The latest mscl version (v67.0.0) only has a .zip for python 3.11. It has been confirmed that it does not work on other python versions (You would get an import error). However the build itself would still go through.
27
-
28
-
29
23
### Versioning system:
30
24
31
25
This repository follows the same versioning system as the MSCL library. This is reflected in the tags of this repository.
@@ -44,13 +38,17 @@ The below steps assume you have [`uv`](https://docs.astral.sh/uv/) installed.
44
38
45
39
1. Clone the repo and `cd` into it.
46
40
2. Optional: Create a .env file and insert your GITHUB_TOKEN= to make requests to the GitHub API.
47
-
3. Edit & run `uv run main.py` to fetch the latest tagged MSCL releases and extract them.
48
-
4. Run `uv build`, which will build the source distribution and wheel for your python
49
-
version and architecture.
41
+
3. Edit & run `uv run download_and_extract_assets.py` to fetch the latest tagged MSCL releases and extract them.
42
+
4. Run `uv run run_build.py`, which will build the source distribution and wheel for your python
43
+
version and architecture. The wheels will be placed in the `dist/` directory.
50
44
51
45
Notes for me, the maintainer:
52
-
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`.
53
-
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.
46
+
5. Make sure that the constants in `constants.py` are updated, and that the MSCL repo still follows their
47
+
versioning system. If not, update rest of the files accordingly.
48
+
49
+
6. 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/*.whl`.
50
+
51
+
7. 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.
0 commit comments