invirtualenv.plugin_base module¶
Functions to enable packaging plugin functionality
-
class
invirtualenv.plugin_base.
InvirtualenvPlugin
(config_file='deploy.conf')¶ Bases:
object
-
config_default
= ''¶
-
config_types
= {}¶
-
create_package
(package_type)¶ Generate a package of the specified type
Parameters: str (package_type) – The type of package to generate
-
default_config_filename
= 'invirtualenv.configuration'¶
-
generate_wheel_archive
(filename=None)¶
-
generate_wheel_packages
(wheeldir)¶ Generate wheel packages for all dependencies
Parameters: wheeldir (str) – The directory path to store the generated wheel packages Returns: Return type: dict of filename, pip requirements line
-
hash
= None¶
-
package_formats
= []¶
-
package_template
= ''¶
-
pip_cmd
¶ Get the pip command used to create wheels of packages.
The intention is to use the same version of pip to build the wheels as would be used to deploy them.
The full path to the python interpreter is used to avoid shebang line length issues.
Returns: Command that can be used to invoke pip Return type: list
-
render_template_with_config
(template_str=None)¶
-
run_package_command
(package_hashes, wheel_dir='wheels')¶ Run the command to generate the package based on the hash
-