Skip to content

Latest commit

 

History

History
80 lines (49 loc) · 3 KB

CONTRIBUTING.md

File metadata and controls

80 lines (49 loc) · 3 KB

Contributing to Conda

New Issues

If your issue is a bug report or feature request for:

Development Environment, Bash

To set up an environment to start developing on conda code, we recommend the followings steps

  1. Choose where you want the project located

    CONDA_PROJECT_ROOT="$HOME/conda"
    
  2. Clone the project, with origin being the main repository. Make sure to click the Fork button above so you have your own copy of this repo.

    GITHUB_USERNAME=kalefranz
    git clone [email protected]:conda/conda "$CONDA_PROJECT_ROOT"
    cd "$CONDA_PROJECT_ROOT"
    git remote --add $GITHUB_USERNAME [email protected]:$GITHUB_USERNAME/conda
    
  3. Create a local development environment, and activate that environment

    source ./dev/start
    

    This command will create a project-specific base environment at ./devenv. If the environment already exists, this command will just quickly activate the already-created ./devenv environment.

    To be sure that the conda code being interpreted is the code in the project directory, look at the value of conda location: in the output of conda info --all.

  4. Run conda's unit tests using GNU make

    make unit
    

    or alternately with pytest

    py.test -m "not integration and not installed" conda tests
    

    or you can use pytest to focus on one specific test

    py.test tests/test_create.py -k create_install_update_remove_smoketest
    

Development Environment, Windows cmd.exe shell

In these steps, we assume git is installed and available on PATH.

  1. Choose where you want the project located

    set "CONDA_PROJECT_ROOT=%HOMEPATH%\conda"
    
  2. Clone the project, with origin being the main repository. Make sure to click the Fork button above so you have your own copy of this repo.

    set GITHUB_USERNAME=kalefranz
    git clone [email protected]:conda/conda "%CONDA_PROJECT_ROOT%"
    cd "%CONDA_PROJECT_ROOT%"
    git remote --add %GITHUB_USERNAME% [email protected]:%GITHUB_USERNAME%/conda
    

    To be sure that the conda code being interpreted is the code in the project directory, look at the value of conda location: in the output of conda info --all.

  3. Create a local development environment, and activate that environment

    .\dev\start.bat
    

    This command will create a project-specific base environment at .\devenv. If the environment already exists, this command will just quickly activate the already-created .\devenv environment.