tox-toml-fmt 1.1.0__tar.gz → 1.2.0__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.
Potentially problematic release.
This version of tox-toml-fmt might be problematic. Click here for more details.
- {tox_toml_fmt-1.1.0 → tox_toml_fmt-1.2.0}/Cargo.lock +2 -2
- {tox_toml_fmt-1.1.0 → tox_toml_fmt-1.2.0}/PKG-INFO +3 -3
- {tox_toml_fmt-1.1.0 → tox_toml_fmt-1.2.0}/common/src/pep508/version_op/version.rs +2 -1
- {tox_toml_fmt-1.1.0 → tox_toml_fmt-1.2.0}/common/src/tests/pep508_tests.rs +1 -0
- {tox_toml_fmt-1.1.0 → tox_toml_fmt-1.2.0}/pyproject.toml +3 -3
- {tox_toml_fmt-1.1.0 → tox_toml_fmt-1.2.0}/tox-toml-fmt/CHANGELOG.md +7 -0
- {tox_toml_fmt-1.1.0 → tox_toml_fmt-1.2.0}/tox-toml-fmt/Cargo.toml +1 -1
- {tox_toml_fmt-1.1.0 → tox_toml_fmt-1.2.0}/tox-toml-fmt/tox.toml +1 -1
- {tox_toml_fmt-1.1.0 → tox_toml_fmt-1.2.0}/Cargo.toml +0 -0
- {tox_toml_fmt-1.1.0 → tox_toml_fmt-1.2.0}/LICENSE.txt +0 -0
- {tox_toml_fmt-1.1.0 → tox_toml_fmt-1.2.0}/README.md +0 -0
- {tox_toml_fmt-1.1.0 → tox_toml_fmt-1.2.0}/common/Cargo.toml +0 -0
- {tox_toml_fmt-1.1.0 → tox_toml_fmt-1.2.0}/common/README.md +0 -0
- {tox_toml_fmt-1.1.0 → tox_toml_fmt-1.2.0}/common/src/array.rs +0 -0
- {tox_toml_fmt-1.1.0 → tox_toml_fmt-1.2.0}/common/src/create.rs +0 -0
- {tox_toml_fmt-1.1.0 → tox_toml_fmt-1.2.0}/common/src/lib.rs +0 -0
- {tox_toml_fmt-1.1.0 → tox_toml_fmt-1.2.0}/common/src/pep508/marker.rs +0 -0
- {tox_toml_fmt-1.1.0 → tox_toml_fmt-1.2.0}/common/src/pep508/requirement.rs +0 -0
- {tox_toml_fmt-1.1.0 → tox_toml_fmt-1.2.0}/common/src/pep508/version_op/operator.rs +0 -0
- {tox_toml_fmt-1.1.0 → tox_toml_fmt-1.2.0}/common/src/pep508/version_op.rs +0 -0
- {tox_toml_fmt-1.1.0 → tox_toml_fmt-1.2.0}/common/src/pep508.rs +0 -0
- {tox_toml_fmt-1.1.0 → tox_toml_fmt-1.2.0}/common/src/string.rs +0 -0
- {tox_toml_fmt-1.1.0 → tox_toml_fmt-1.2.0}/common/src/table.rs +0 -0
- {tox_toml_fmt-1.1.0 → tox_toml_fmt-1.2.0}/common/src/tests/array_tests.rs +0 -0
- {tox_toml_fmt-1.1.0 → tox_toml_fmt-1.2.0}/common/src/tests/mod.rs +0 -0
- {tox_toml_fmt-1.1.0 → tox_toml_fmt-1.2.0}/common/src/util.rs +0 -0
- {tox_toml_fmt-1.1.0 → tox_toml_fmt-1.2.0}/src/tox_toml_fmt/__init__.py +0 -0
- {tox_toml_fmt-1.1.0 → tox_toml_fmt-1.2.0}/src/tox_toml_fmt/__main__.py +0 -0
- {tox_toml_fmt-1.1.0 → tox_toml_fmt-1.2.0}/src/tox_toml_fmt/_lib.pyi +0 -0
- {tox_toml_fmt-1.1.0 → tox_toml_fmt-1.2.0}/src/tox_toml_fmt/py.typed +0 -0
- {tox_toml_fmt-1.1.0 → tox_toml_fmt-1.2.0}/tox-toml-fmt/LICENSE.txt +0 -0
- {tox_toml_fmt-1.1.0 → tox_toml_fmt-1.2.0}/tox-toml-fmt/README.md +0 -0
- {tox_toml_fmt-1.1.0 → tox_toml_fmt-1.2.0}/tox-toml-fmt/docs/conf.py +0 -0
- {tox_toml_fmt-1.1.0 → tox_toml_fmt-1.2.0}/tox-toml-fmt/docs/index.rst +0 -0
- {tox_toml_fmt-1.1.0 → tox_toml_fmt-1.2.0}/tox-toml-fmt/rust/src/global.rs +0 -0
- {tox_toml_fmt-1.1.0 → tox_toml_fmt-1.2.0}/tox-toml-fmt/rust/src/main.rs +0 -0
- {tox_toml_fmt-1.1.0 → tox_toml_fmt-1.2.0}/tox-toml-fmt/rust/src/tests/global_tests.rs +0 -0
- {tox_toml_fmt-1.1.0 → tox_toml_fmt-1.2.0}/tox-toml-fmt/rust/src/tests/main_tests.rs +0 -0
- {tox_toml_fmt-1.1.0 → tox_toml_fmt-1.2.0}/tox-toml-fmt/rust/src/tests/mod.rs +0 -0
- {tox_toml_fmt-1.1.0 → tox_toml_fmt-1.2.0}/tox-toml-fmt/src/tox_toml_fmt/__init__.py +0 -0
- {tox_toml_fmt-1.1.0 → tox_toml_fmt-1.2.0}/tox-toml-fmt/src/tox_toml_fmt/__main__.py +0 -0
- {tox_toml_fmt-1.1.0 → tox_toml_fmt-1.2.0}/tox-toml-fmt/src/tox_toml_fmt/_lib.pyi +0 -0
- {tox_toml_fmt-1.1.0 → tox_toml_fmt-1.2.0}/tox-toml-fmt/src/tox_toml_fmt/py.typed +0 -0
- {tox_toml_fmt-1.1.0 → tox_toml_fmt-1.2.0}/tox-toml-fmt/tests/test_lib.py +0 -0
- {tox_toml_fmt-1.1.0 → tox_toml_fmt-1.2.0}/tox-toml-fmt/tests/test_main.py +0 -0
- {tox_toml_fmt-1.1.0 → tox_toml_fmt-1.2.0}/tox-toml-fmt/tests/test_pyproject_toml_fmt.py +0 -0
|
@@ -412,7 +412,7 @@ dependencies = [
|
|
|
412
412
|
|
|
413
413
|
[[package]]
|
|
414
414
|
name = "pyproject-fmt"
|
|
415
|
-
version = "2.
|
|
415
|
+
version = "2.8.0"
|
|
416
416
|
dependencies = [
|
|
417
417
|
"common",
|
|
418
418
|
"indoc",
|
|
@@ -712,7 +712,7 @@ dependencies = [
|
|
|
712
712
|
|
|
713
713
|
[[package]]
|
|
714
714
|
name = "tox-toml-fmt"
|
|
715
|
-
version = "1.
|
|
715
|
+
version = "1.2.0"
|
|
716
716
|
dependencies = [
|
|
717
717
|
"common",
|
|
718
718
|
"indoc",
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: tox-toml-fmt
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.2.0
|
|
4
4
|
Classifier: License :: OSI Approved :: MIT License
|
|
5
5
|
Classifier: Operating System :: OS Independent
|
|
6
6
|
Classifier: Programming Language :: Python
|
|
7
7
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
8
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
9
8
|
Classifier: Programming Language :: Python :: 3.10
|
|
10
9
|
Classifier: Programming Language :: Python :: 3.11
|
|
11
10
|
Classifier: Programming Language :: Python :: 3.12
|
|
12
11
|
Classifier: Programming Language :: Python :: 3.13
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
13
13
|
Requires-Dist: toml-fmt-common==1.0.1
|
|
14
14
|
License-File: LICENSE.txt
|
|
15
15
|
Summary: Format your pyproject.toml file
|
|
16
16
|
Keywords: format,pyproject
|
|
17
17
|
Author-email: Bernat Gabor <gaborjbernat@gmail.com>
|
|
18
|
-
Requires-Python: >=3.
|
|
18
|
+
Requires-Python: >=3.10
|
|
19
19
|
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
|
|
20
20
|
Project-URL: Bug Tracker, https://github.com/tox-dev/toml-fmt/issues
|
|
21
21
|
Project-URL: Changelog, https://github.com/tox-dev/toml-fmt/blob/main/tox-toml-fmt/CHANGELOG.md
|
|
@@ -64,7 +64,8 @@ impl Version {
|
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
// Parse pre-release (e.g., "a1", "beta2", "rc3")
|
|
67
|
-
|
|
67
|
+
// Labels checked longest first to avoid partial matches (e.g. "rc" before "c")
|
|
68
|
+
let pre_labels = ["preview", "alpha", "beta", "pre", "rc", "a", "b", "c"];
|
|
68
69
|
for label in &pre_labels {
|
|
69
70
|
if let Some(idx) = main.to_ascii_lowercase().rfind(label) {
|
|
70
71
|
let (before, after) = main.split_at(idx);
|
|
@@ -25,6 +25,7 @@ true
|
|
|
25
25
|
"pip @ https://github.com/pypa/pip/archive/1.3.1.zip#sha1=da9234ee9982d4bbb3c72346a6de940a148ea686",
|
|
26
26
|
true
|
|
27
27
|
)]
|
|
28
|
+
#[case::keep_rc_version("a==5.2rc1", "a==5.2rc1", true)]
|
|
28
29
|
fn test_format_requirement(#[case] start: &str, #[case] expected: &str, #[case] keep_full_version: bool) {
|
|
29
30
|
let got = Requirement::new(start)
|
|
30
31
|
.unwrap()
|
|
@@ -16,17 +16,17 @@ license.file = "LICENSE.txt"
|
|
|
16
16
|
authors = [
|
|
17
17
|
{ name = "Bernat Gabor", email = "gaborjbernat@gmail.com" },
|
|
18
18
|
]
|
|
19
|
-
requires-python = ">=3.
|
|
19
|
+
requires-python = ">=3.10"
|
|
20
20
|
classifiers = [
|
|
21
21
|
"License :: OSI Approved :: MIT License",
|
|
22
22
|
"Operating System :: OS Independent",
|
|
23
23
|
"Programming Language :: Python",
|
|
24
24
|
"Programming Language :: Python :: 3 :: Only",
|
|
25
|
-
"Programming Language :: Python :: 3.9",
|
|
26
25
|
"Programming Language :: Python :: 3.10",
|
|
27
26
|
"Programming Language :: Python :: 3.11",
|
|
28
27
|
"Programming Language :: Python :: 3.12",
|
|
29
28
|
"Programming Language :: Python :: 3.13",
|
|
29
|
+
"Programming Language :: Python :: 3.14",
|
|
30
30
|
]
|
|
31
31
|
dynamic = [
|
|
32
32
|
"version",
|
|
@@ -93,7 +93,7 @@ skip = [
|
|
|
93
93
|
]
|
|
94
94
|
|
|
95
95
|
[tool.pyproject-fmt]
|
|
96
|
-
max_supported_python = "3.
|
|
96
|
+
max_supported_python = "3.14"
|
|
97
97
|
|
|
98
98
|
[tool.pytest]
|
|
99
99
|
ini_options.testpaths = [
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|