Skip to content

Commit

Permalink
feat: add PathsJson (conda#568)
Browse files Browse the repository at this point in the history
  • Loading branch information
Wackyator committed Mar 25, 2024
1 parent d7dec3b commit d8e96a4
Show file tree
Hide file tree
Showing 12 changed files with 1,028 additions and 141 deletions.
278 changes: 139 additions & 139 deletions py-rattler/Cargo.lock

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions py-rattler/docs/file_mode.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# FileMode

::: rattler.package.paths_json.FileMode
3 changes: 3 additions & 0 deletions py-rattler/docs/path_type.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# PathType

::: rattler.package.paths_json.PathType
3 changes: 3 additions & 0 deletions py-rattler/docs/paths_entry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# PathsEntry

::: rattler.package.paths_json.PathsEntry
4 changes: 4 additions & 0 deletions py-rattler/docs/paths_json.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

# PathsJson

::: rattler.package.paths_json.PathsJson
3 changes: 3 additions & 0 deletions py-rattler/docs/prefix_placeholder.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# PrefixPlaceholder

::: rattler.package.paths_json.PrefixPlaceholder
5 changes: 5 additions & 0 deletions py-rattler/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ nav:
- metadata:
- AboutJson: about_json.md
- RunExportsJson: run_exports_json.md
- PathsJson: paths_json.md
- PathsEntry: paths_entry.md
- PathType: path_type.md
- PrefixPlaceholder: prefix_placeholder.md
- FileMode: file_mode.md
- IndexJson: index_json.md
- match_spec:
- MatchSpec: match_spec.md
Expand Down
16 changes: 15 additions & 1 deletion py-rattler/rattler/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,16 @@
from rattler.channel import Channel, ChannelConfig
from rattler.networking import AuthenticatedClient, fetch_repo_data
from rattler.virtual_package import GenericVirtualPackage, VirtualPackage
from rattler.package import PackageName, AboutJson, RunExportsJson, IndexJson
from rattler.package import (
PackageName,
AboutJson,
RunExportsJson,
PathsJson,
PathsEntry,
PathType,
PrefixPlaceholder,
FileMode,
)
from rattler.prefix import PrefixRecord, PrefixPaths
from rattler.solver import solve
from rattler.platform import Platform
Expand Down Expand Up @@ -62,5 +71,10 @@
"index",
"AboutJson",
"RunExportsJson",
"PathsJson",
"PathsEntry",
"PathType",
"PrefixPlaceholder",
"FileMode",
"IndexJson",
]
19 changes: 18 additions & 1 deletion py-rattler/rattler/package/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,23 @@
from rattler.package.package_name import PackageName
from rattler.package.about_json import AboutJson
from rattler.package.run_exports_json import RunExportsJson
from rattler.package.paths_json import (
PathsJson,
PathsEntry,
PathType,
PrefixPlaceholder,
FileMode,
)
from rattler.package.index_json import IndexJson

__all__ = ["PackageName", "AboutJson", "RunExportsJson", "IndexJson"]
__all__ = [
"PackageName",
"AboutJson",
"RunExportsJson",
"PathsJson",
"PathsEntry",
"PathType",
"PrefixPlaceholder",
"FileMode",
"IndexJson",
]
Loading

0 comments on commit d8e96a4

Please sign in to comment.