Skip to content

Commit d8e96a4

Browse files
authored
feat: add PathsJson (#568)
1 parent d7dec3b commit d8e96a4

12 files changed

+1028
-141
lines changed

py-rattler/Cargo.lock

+139-139
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

py-rattler/docs/file_mode.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# FileMode
2+
3+
::: rattler.package.paths_json.FileMode

py-rattler/docs/path_type.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# PathType
2+
3+
::: rattler.package.paths_json.PathType

py-rattler/docs/paths_entry.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# PathsEntry
2+
3+
::: rattler.package.paths_json.PathsEntry

py-rattler/docs/paths_json.md

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
2+
# PathsJson
3+
4+
::: rattler.package.paths_json.PathsJson

py-rattler/docs/prefix_placeholder.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# PrefixPlaceholder
2+
3+
::: rattler.package.paths_json.PrefixPlaceholder

py-rattler/mkdocs.yml

+5
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ nav:
4949
- metadata:
5050
- AboutJson: about_json.md
5151
- RunExportsJson: run_exports_json.md
52+
- PathsJson: paths_json.md
53+
- PathsEntry: paths_entry.md
54+
- PathType: path_type.md
55+
- PrefixPlaceholder: prefix_placeholder.md
56+
- FileMode: file_mode.md
5257
- IndexJson: index_json.md
5358
- match_spec:
5459
- MatchSpec: match_spec.md

py-rattler/rattler/__init__.py

+15-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,16 @@
1010
from rattler.channel import Channel, ChannelConfig
1111
from rattler.networking import AuthenticatedClient, fetch_repo_data
1212
from rattler.virtual_package import GenericVirtualPackage, VirtualPackage
13-
from rattler.package import PackageName, AboutJson, RunExportsJson, IndexJson
13+
from rattler.package import (
14+
PackageName,
15+
AboutJson,
16+
RunExportsJson,
17+
PathsJson,
18+
PathsEntry,
19+
PathType,
20+
PrefixPlaceholder,
21+
FileMode,
22+
)
1423
from rattler.prefix import PrefixRecord, PrefixPaths
1524
from rattler.solver import solve
1625
from rattler.platform import Platform
@@ -62,5 +71,10 @@
6271
"index",
6372
"AboutJson",
6473
"RunExportsJson",
74+
"PathsJson",
75+
"PathsEntry",
76+
"PathType",
77+
"PrefixPlaceholder",
78+
"FileMode",
6579
"IndexJson",
6680
]
+18-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,23 @@
11
from rattler.package.package_name import PackageName
22
from rattler.package.about_json import AboutJson
33
from rattler.package.run_exports_json import RunExportsJson
4+
from rattler.package.paths_json import (
5+
PathsJson,
6+
PathsEntry,
7+
PathType,
8+
PrefixPlaceholder,
9+
FileMode,
10+
)
411
from rattler.package.index_json import IndexJson
512

6-
__all__ = ["PackageName", "AboutJson", "RunExportsJson", "IndexJson"]
13+
__all__ = [
14+
"PackageName",
15+
"AboutJson",
16+
"RunExportsJson",
17+
"PathsJson",
18+
"PathsEntry",
19+
"PathType",
20+
"PrefixPlaceholder",
21+
"FileMode",
22+
"IndexJson",
23+
]

0 commit comments

Comments
 (0)