Commit bee2d41
authored
Syw UID2 6085 improve python dependency (#66)
1. Python Version & Dependency Updates
Minimum Python Version Raised: The required Python version was updated from >=3.6 to >=3.10. This change was necessary because the code uses importlib.metadata, which was introduced in Python 3.8, fixing import errors on older versions.
Version Support Modified: Classifiers were updated to remove support for end-of-life Python 3.6-3.9, while explicitly adding support for Python 3.10+
Dependency Constraint Relaxed: The version constraint for setuptools was relaxed from a fixed version (== 68.2.2) to a broader range (< 81), increasing flexibility while maintaining compatibility.
2. Modernizing Package Configuration
Removed Legacy Files: The legacy Python packaging files, setup.py and setup.cfg, were removed.
Adopted pyproject.toml: The pyproject.toml file was updated to configure proper package discovery, marking a shift to a modern Python packaging standard.
Build Fixes: Fixed a Docker build error caused by multiple top-level packages and updated Dockerfile.dev to use a Python 3.10 base image.
Excluded Directories: Directories like node_modules, tests, examples, and venv are now explicitly excluded from package discovery.
3. CI and Testing Enhancements
Unit Tests Added to CI: A new unit-tests job was added to the Continuous Integration workflow (build-and-test.yaml).
Pre-Publish Test Gate: A dependency was added to the build-and-publish workflow to ensure unit tests pass before publishing to PyPI, preventing broken code from being released.
Development Dependencies Updated: Development dependencies (e.g., pytest, pytest-cov, unittest-xml-reporting) were added to pyproject.toml.
Test Confirmation: The developer confirmed locally that 287 tests pass successfully with these changes.1 parent d2437be commit bee2d41
File tree
12 files changed
+71
-57
lines changed- .github/workflows
- tests
12 files changed
+71
-57
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
22 | 45 | | |
23 | 46 | | |
| 47 | + | |
24 | 48 | | |
25 | 49 | | |
26 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
8 | 12 | | |
9 | 13 | | |
10 | 14 | | |
| |||
18 | 22 | | |
19 | 23 | | |
20 | 24 | | |
21 | | - | |
| 25 | + | |
22 | 26 | | |
23 | | - | |
24 | 27 | | |
25 | 28 | | |
26 | 29 | | |
27 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
28 | 38 | | |
29 | 39 | | |
30 | 40 | | |
| |||
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
0 commit comments