Conda Tools (conda_press.condatools
)¶
Some tools for converting conda packages to wheels
-
class
conda_press.condatools.
ArtifactInfo
(artifactdir, config=None)¶ Representation of artifact info/ directory.
-
clean
(self)¶
-
classmethod
from_tarball
(path, config=None, replace_symlinks=True)¶
-
replace_symlinks
(self, strip_symbols=None)¶
-
strip_symbols
(self)¶ Strips symbols out of binary files
-
property
abi_tag
¶
-
property
artifactdir
¶
-
property
config
¶
-
property
entry_points
¶
-
property
noarch
¶
-
property
platform_tag
¶
-
property
python_tag
¶
-
property
run_requirements
¶
-
property
subdir
¶
-
-
conda_press.condatools.
all_deps
(package_rec, names_recs, seen=None)¶ Computes the set of all dependency names for a package.
-
conda_press.condatools.
artifact_ref_dependency_tree_to_wheels
(artifact_ref, config=None, seen=None)¶ Converts all artifact dependencies to wheels for a ref spec string
-
conda_press.condatools.
artifact_to_wheel
(path, config=None)¶ Converts an artifact to a wheel. The clean option will remove the temporary artifact directory before returning.
-
conda_press.condatools.
download_artifact
(artifact_ref_or_rec, channels=None, subdir=None)¶ Downloads an artifact from a ref spec or a PackageRecord.
-
conda_press.condatools.
download_artifact_ref
(artifact_ref, channels=None, subdir=None)¶ Searches for an artifact on a variety of channels. If subdir is not given, only “noarch” is used. Noarch is searched after the given subdit.
-
conda_press.condatools.
download_package_rec
(pkg_record)¶ Downloads a package record, returning the local filename.
-
conda_press.condatools.
find_link_target
(source, info=None, channels=None, deps_cache=None, relative_source=None, strip_symbols=True)¶
-
conda_press.condatools.
get_only_deps_on_pypi
(list_deps)¶ Based on a set of dependencies this function will check if those dependencies are on PyPi, if it is not available it will be removed.
- Returns
- set
List of packages present on PyPi
- Attributes
- list_deps: set of `str`
List of dependencies as a string values
-
conda_press.condatools.
index_json_exists
(info=None)¶
-
conda_press.condatools.
is_elf
(fname)¶ Whether or not a file is an ELF binary file.
-
conda_press.condatools.
major_minor
(ver)¶
-
conda_press.condatools.
meta_yaml_exists
(info=None)¶
-
conda_press.condatools.
name_from_ref
(ref)¶ Gets an artifact name from a ref spec string.
-
conda_press.condatools.
package_spec_from_filename
(info=None)¶
-
conda_press.condatools.
package_spec_from_index_json
(info=None)¶
-
conda_press.condatools.
package_spec_from_meta_yaml
(info=None)¶
-
conda_press.condatools.
package_to_wheel
(ref_or_rec, config=None, _top=True)¶ Converts a package ref spec or a PackageRecord into a wheel.
-
conda_press.condatools.
ref_name
(name, ver_build=None)¶
-
conda_press.condatools.
root_ext
(s)¶ gets the extention of the root directory
-
conda_press.condatools.
valid_package_name
(info=None)¶
-
conda_press.condatools.
wheel_safe_build
(build, build_string=None)¶