Skip to content

Commit

Permalink
fix: Add missing exports
Browse files Browse the repository at this point in the history
  • Loading branch information
Wackyator committed Mar 18, 2024
1 parent 12260c5 commit 97d5510
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion py-rattler/rattler/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
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
from rattler.package import PackageName, AboutJson, RunExportsJson
from rattler.prefix import PrefixRecord, PrefixPaths
from rattler.solver import solve
from rattler.platform import Platform
Expand Down Expand Up @@ -61,4 +61,5 @@
"link",
"index",
"AboutJson",
"RunExportsJson",
]
3 changes: 2 additions & 1 deletion py-rattler/rattler/package/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from rattler.package.package_name import PackageName
from rattler.package.about_json import AboutJson
from rattler.package.run_exports_json import RunExportsJson

__all__ = ["PackageName", "AboutJson"]
__all__ = ["PackageName", "AboutJson", "RunExportsJson"]
3 changes: 3 additions & 0 deletions py-rattler/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ use networking::{authenticated_client::PyAuthenticatedClient, py_fetch_repo_data
use package_name::PyPackageName;
use prefix_paths::PyPrefixPaths;
use repo_data::{patch_instructions::PyPatchInstructions, sparse::PySparseRepoData, PyRepoData};
use run_exports_json::PyRunExportsJson;
use version::PyVersion;

use pyo3::prelude::*;
Expand Down Expand Up @@ -98,6 +99,8 @@ fn rattler(py: Python<'_>, m: &PyModule) -> PyResult<()> {

m.add_class::<PyAboutJson>().unwrap();

m.add_class::<PyRunExportsJson>().unwrap();

m.add_function(wrap_pyfunction!(py_solve, m).unwrap())
.unwrap();
m.add_function(wrap_pyfunction!(get_rattler_version, m).unwrap())
Expand Down

0 comments on commit 97d5510

Please sign in to comment.