Contributions to inequality are much appreciated.
- Fork the inequality git repository
- Create a development environment
- Activate the new environment
- Install project dependencies
- Verify installation and run tests
- Build documentation
- Submitting a Pull Request
- On github, fork the repository at: https://github.com/pysal/inequality
- From your new fork, grab the clone url:
git clone [email protected]:your-user-name/inequality.git inequality-yourname
cd inequality-yourname
git remote add upstream git://github.com/pysal/inequality.git
- Install either Anaconda or miniconda
cd
into theinequality-yourname
source directory that you cloned in step 1
conda create --name inequality python=3.10
conda activate inequality
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
python -c "import libpysal; print('libpysal version:', libpysal.__version__)"
pytest inequality
cd docs
make html
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.