index.toml-cli 0.3.0__tar.gz → 0.3.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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: index.toml-cli
3
- Version: 0.3.0
3
+ Version: 0.3.1
4
4
  Summary: Command-line interface for ecosystem-neutral package indexes
5
5
  Classifier: Programming Language :: Python :: 3.10
6
6
  Classifier: Programming Language :: Python :: 3.11
@@ -8,11 +8,11 @@ Classifier: Programming Language :: Python :: 3.12
8
8
  Classifier: Programming Language :: Python :: 3.13
9
9
  Classifier: Programming Language :: Python :: 3.14
10
10
  Classifier: Programming Language :: Python :: 3.15
11
- Requires-Dist: filelock>=3.16,<4
12
- Requires-Dist: index-toml-adapter-cargo>=0.3.0,<0.4
13
- Requires-Dist: index-toml-adapter-pnpm>=0.3.0,<0.4
14
- Requires-Dist: index-toml-adapter-python>=0.3.0,<0.4
15
- Requires-Dist: index-toml-core>=0.3.0,<0.4
11
+ Requires-Dist: portalocker>=4.3,<5
12
+ Requires-Dist: index-toml-adapter-cargo>=0.3.1,<0.4
13
+ Requires-Dist: index-toml-adapter-pnpm>=0.3.1,<0.4
14
+ Requires-Dist: index-toml-adapter-python>=0.3.1,<0.4
15
+ Requires-Dist: index-toml-core>=0.3.1,<0.4
16
16
  Requires-Dist: tomlkit>=0.13,<1
17
17
  Requires-Python: >=3.10, <3.16
18
18
  Project-URL: Repository, https://github.com/groupsum/index.toml
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "index.toml-cli"
3
- version = "0.3.0"
3
+ version = "0.3.1"
4
4
  description = "Command-line interface for ecosystem-neutral package indexes"
5
5
  requires-python = ">=3.10,<3.16"
6
6
  classifiers = [
@@ -12,11 +12,11 @@ classifiers = [
12
12
  "Programming Language :: Python :: 3.15",
13
13
  ]
14
14
  dependencies = [
15
- "filelock>=3.16,<4",
16
- "index.toml-adapter-cargo>=0.3.0,<0.4",
17
- "index.toml-adapter-pnpm>=0.3.0,<0.4",
18
- "index.toml-adapter-python>=0.3.0,<0.4",
19
- "index.toml-core>=0.3.0,<0.4",
15
+ "portalocker>=4.3,<5",
16
+ "index.toml-adapter-cargo>=0.3.1,<0.4",
17
+ "index.toml-adapter-pnpm>=0.3.1,<0.4",
18
+ "index.toml-adapter-python>=0.3.1,<0.4",
19
+ "index.toml-core>=0.3.1,<0.4",
20
20
  "tomlkit>=0.13,<1",
21
21
  ]
22
22
 
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "index.toml-cli"
3
- version = "0.3.0"
3
+ version = "0.3.1"
4
4
  description = "Command-line interface for ecosystem-neutral package indexes"
5
5
  requires-python = ">=3.10,<3.16"
6
6
  classifiers = [
@@ -12,11 +12,11 @@ classifiers = [
12
12
  "Programming Language :: Python :: 3.15",
13
13
  ]
14
14
  dependencies = [
15
- "filelock>=3.16,<4",
16
- "index.toml-adapter-cargo>=0.3.0,<0.4",
17
- "index.toml-adapter-pnpm>=0.3.0,<0.4",
18
- "index.toml-adapter-python>=0.3.0,<0.4",
19
- "index.toml-core>=0.3.0,<0.4",
15
+ "portalocker>=4.3,<5",
16
+ "index.toml-adapter-cargo>=0.3.1,<0.4",
17
+ "index.toml-adapter-pnpm>=0.3.1,<0.4",
18
+ "index.toml-adapter-python>=0.3.1,<0.4",
19
+ "index.toml-core>=0.3.1,<0.4",
20
20
  "tomlkit>=0.13,<1",
21
21
  ]
22
22
 
@@ -6,7 +6,7 @@ from datetime import date, datetime, time
6
6
  from dataclasses import asdict
7
7
  from pathlib import Path
8
8
 
9
- from filelock import Timeout
9
+ from portalocker.exceptions import LockException
10
10
  from tomlkit.exceptions import TOMLKitError
11
11
 
12
12
  from index_toml_core import IndexFile
@@ -120,7 +120,7 @@ def main(argv: list[str] | None = None) -> int:
120
120
  else:
121
121
  method = getattr(index, f"{options.action}_{kind}")
122
122
  result = method(options.id, **getattr(options, "fields", {}))
123
- except (OSError, ValueError, KeyError, TypeError, Timeout, TOMLKitError) as error:
123
+ except (OSError, ValueError, KeyError, TypeError, LockException, TOMLKitError) as error:
124
124
  parser.exit(1, f"index-toml: {error}\n")
125
125
  if result is not None:
126
126
  print(json.dumps(result, indent=2, ensure_ascii=False, default=_json_toml_scalar))