python-can-cansub 2026.5.28__tar.gz → 2026.6.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- python_can_cansub-2026.6.1/CHANGELOG.md +8 -0
- {python_can_cansub-2026.5.28 → python_can_cansub-2026.6.1}/PKG-INFO +1 -1
- python_can_cansub-2026.6.1/private_repo/README_PYPI.md +58 -0
- {python_can_cansub-2026.5.28 → python_can_cansub-2026.6.1}/pyproject.toml +1 -1
- {python_can_cansub-2026.5.28 → python_can_cansub-2026.6.1}/src/python_can_cansub/cansub.py +2 -1
- {python_can_cansub-2026.5.28 → python_can_cansub-2026.6.1}/.gitignore +0 -0
- {python_can_cansub-2026.5.28 → python_can_cansub-2026.6.1}/README.md +0 -0
- {python_can_cansub-2026.5.28 → python_can_cansub-2026.6.1}/private_repo/README.md +0 -0
- {python_can_cansub-2026.5.28 → python_can_cansub-2026.6.1}/private_repo/README_BUILD.md +0 -0
- {python_can_cansub-2026.5.28 → python_can_cansub-2026.6.1}/private_repo/README_DEV.md +0 -0
- {python_can_cansub-2026.5.28 → python_can_cansub-2026.6.1}/private_repo/README_REPO.md +0 -0
- {python_can_cansub-2026.5.28 → python_can_cansub-2026.6.1}/src/python_can_cansub/__init__.py +0 -0
- {python_can_cansub-2026.5.28 → python_can_cansub-2026.6.1}/src/python_can_cansub/cansub_protocol.py +0 -0
- {python_can_cansub-2026.5.28 → python_can_cansub-2026.6.1}/src/python_can_cansub/cansub_root_cert.crt +0 -0
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# PyPI Release Workflow
|
|
2
|
+
|
|
3
|
+
This project is published to PyPI as `python-can-cansub`.
|
|
4
|
+
|
|
5
|
+
## Prerequisites
|
|
6
|
+
|
|
7
|
+
Ensure the following tools are installed:
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
pip install build twine
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Steps
|
|
14
|
+
|
|
15
|
+
### 1. Set the version
|
|
16
|
+
|
|
17
|
+
Update the version in `pyproject.toml`:
|
|
18
|
+
|
|
19
|
+
```toml
|
|
20
|
+
[project]
|
|
21
|
+
version = "YYYY.MM.DD"
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
### 2. Commit and push to the public repository
|
|
25
|
+
|
|
26
|
+
Follow the workflow in `README_REPO.md` to squash-merge changes onto `public-master` and push to GitHub.
|
|
27
|
+
|
|
28
|
+
### 3. Build the distribution
|
|
29
|
+
|
|
30
|
+
From the repository root:
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
python -m build
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
This produces `dist/*.whl` and `dist/*.tar.gz`.
|
|
37
|
+
|
|
38
|
+
### 4. Test upload to TestPyPI (optional but recommended)
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
twine upload --repository testpypi dist/*
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Verify the package at https://test.pypi.org/project/python-can-cansub/
|
|
45
|
+
|
|
46
|
+
### 5. Upload to PyPI
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
twine upload dist/*
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
### 6. Clean up
|
|
53
|
+
|
|
54
|
+
Delete the `dist/` directory after a successful upload to avoid stale artifacts in future builds:
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
rm -rf dist/
|
|
58
|
+
```
|
|
@@ -722,7 +722,8 @@ class CyclicSendTask(LimitedDurationCyclicSendTaskABC, RestartableCyclicTaskABC)
|
|
|
722
722
|
spacing_ms = int(self.period_ns / 1_000_000)
|
|
723
723
|
|
|
724
724
|
if self.duration is None:
|
|
725
|
-
|
|
725
|
+
# Use max value (0xFFFFFFFF - 1) when duration is not provided.
|
|
726
|
+
limit = 0xFFFFFFFE
|
|
726
727
|
else:
|
|
727
728
|
limit = int(duration * 1000 / period_ms)
|
|
728
729
|
limit = max(1, limit)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_can_cansub-2026.5.28 → python_can_cansub-2026.6.1}/src/python_can_cansub/__init__.py
RENAMED
|
File without changes
|
{python_can_cansub-2026.5.28 → python_can_cansub-2026.6.1}/src/python_can_cansub/cansub_protocol.py
RENAMED
|
File without changes
|
|
File without changes
|