Skip to content

Latest commit

 

History

History
84 lines (66 loc) · 1.93 KB

contributing.md

File metadata and controls

84 lines (66 loc) · 1.93 KB

Contributing to inequality

Contributions to inequality are much appreciated.

Steps to Contribute

  1. Fork the inequality git repository
  2. Create a development environment
  3. Activate the new environment
  4. Install project dependencies
  5. Verify installation and run tests
  6. Build documentation
  7. Submitting a Pull Request

1. Fork the inequality git repository

git clone [email protected]:your-user-name/inequality.git inequality-yourname
cd inequality-yourname
git remote add upstream git://github.com/pysal/inequality.git

2. Create a development environment

  • Install either Anaconda or miniconda
  • cd into the inequality-yourname source directory that you cloned in step 1
conda create --name inequality python=3.10

3. Activate the new environment

conda activate inequality

4. Install project dependencies

pip install .[dev,docs,tests]

Note, if you are on zsh use:

pip install '.[dev,docs,tests]'

If this fails on MacOS you have to have proj installed:

brew install proj

Set this variable in your shell configuration (e.g., ~/.zshrc or ~/.bashrc):

export PROJ_DIR="/opt/homebrew/opt/proj"

Then, reload your shell configuration:

source ~/.zshrc

and check that proj is correctly installed:

proj

5. Verify installation and run tests

python -c "import libpysal; print('libpysal version:', libpysal.__version__)"
pytest inequality

6. Build documentation

cd docs
make html

7. Submitting a Pull Request

If you have made changes that you have pushed to your forked repository, you can submit a pull request to have them integrated into the inequality code base.

See the GitHUB tutorial.