logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

poncho_package_create - command-line utility for creating a Conda virtual environment given a Python

Description

poncho_package_create is a simple command-line utility that creates a local Conda environment from an in‐
       put JSON dependency file.  The command creates an environment tarball at output-path that can be sent  to
       and run on different machines with the same architecture.

       The  dependency-file  argument  is  the path (relative or absolute) to the a JSON specification file. The
       output-path argument specifies the path for the environment tarball that is created (should  usually  end
       in .tar.gz).

Example

       poncho_package_create dependencies.json example_venv.tar.gz

       This will create an example_venv.tar.gz environment tarball within the current working  directory,  which
       can then be exported to different machines for execution.

Exit Status

       On success, returns zero. On failure, returns non-zero.

Name

poncho_package_create  -  command-line  utility  for  creating a Conda virtual environment given a Python
       dependencies file

Options

--conda-executable=<path>
               Location  of  conda executable to use. If not given, mamba, $CONDA_EXE, conda, and microconda are
              tried, in that order.

        --no-microconda
               Do not try to download microconda if a conda executable is not found.

        -h,--help
                             Show the help message.

Synopsis

               Example Specification:
               {
                   "conda": {
                       "channels": [
                           "conda-forge"
                       ],
                       "dependencies": [
                           "matplotlib=3.7.1=py311h38be061_0",
                           "numpy=1.24.2=py311h8e6699e_0",
                           "pip=23.0.1=pyhd8ed1ab_0",
                           "python=3.11.0=he550d4f_1_cpython",
                           {
                               "pip": [
                                   "uproot==5.0.5"
                               ]
                           }
                       ]
                   },

                   "git": {
                               "DATA_DIR": {
                                       "remote": "http://.../repo.git",
                               }
                   },

                   "http": {
                               "REFERENCE_DB": {
                                       "type": "file",
                                       "url": "https://.../example.dat"
                               },
                               "TRAINING_DATASET": {
                                       "type": "tar",
                                       "compression": "gzip",
                                       "url": "http://.../dataset.tar.gz"
                               }
                   }
               }

       poncho_package_create [options] <dependency-file><<output-path>>

See Also