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.
@@ -0,0 +1,8 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ ## 2026.06.01
6
+
7
+ ### Fixed
8
+ - `CyclicSendTask` with `duration=None` now working.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-can-cansub
3
- Version: 2026.5.28
3
+ Version: 2026.6.1
4
4
  Summary: CANsub python-can interface
5
5
  Project-URL: Homepage, https://csselectronics.com/
6
6
  Project-URL: Source, https://github.com/CSS-Electronics/python-can-cansub
@@ -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
+ ```
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "python-can-cansub"
7
- version = "2026.05.28"
7
+ version = "2026.06.01"
8
8
  authors = [
9
9
  { name="CSS Electronics" },
10
10
  { email="contact@csselectronics.com" },
@@ -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
- limit = 0xFFFFFFFF
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)