Skip to content

Latest commit

 

History

History
57 lines (37 loc) · 2.21 KB

README.md

File metadata and controls

57 lines (37 loc) · 2.21 KB

parma-mining-template

ParmaAI copier template for data mining sub-services.

Getting Started

The following steps will get you started with the project.

  1. Pre-requisites: to be able to create a new submodule using this template, make sure to comply with the following prerequisites.

    • Configure GitHub via an ssh key. Key based authenticated is highly encouraged. See GitHub Docs for more information.
    • Please make sure to have an GPG key configured for GitHub. See GitHub Docs for more information.
    • Install micromamba, a conda environment management package manager, as described here. Alternatively conda or mamba installations should also work, but are highly discouraged because of their slow performance.
    • Install pre-commit, See pre-commit installation

Usage

To create a new data mining module, follow below steps:

  1. Create a new GitHub repository.

Repository name should be in format parma-mining-<module_name>

  1. Clone the repository locally and open (cd) it.

  2. Activate any micromamba environment with copier installed.

    1. If you have a micromamba environment with copier installed, you can activate it.

      micromamba activate <env name>
    2. Otherwise, you can create a new one and activate it. After you create an environment for the first time, you can reuse it next time.

    micromamba create -n copier-env -c conda-forge # create a new environment named copier-env
    micromamba activate copier-env # activate the environment
    micromamba install copier -c conda-forge # install copier
  3. Run copier

    copier copy git@github.com:la-famiglia-jst2324/parma-mining-template.git . --trust
    1. Optional: Update project with a new copier template version.

      copier update --trust
  4. Deactivate the environment

    micromamba deactivate