See wiki.
The preferred method of making contributions is to fork + pull request from the main repo.
Before doing a pull request, you should check that your changes don't break anything by running the following from the root directory of your check-out. Every pull request will be automatically tested by github.
./run_tests
For adding a new definition of eccentricity follow the guidelines here
Follow the instructions in data/README.md
Note: Currently, only Vijay and Arif can do this, as they are the only ones with maintainer access to the PyPI package.
- Update the version number at the top of gw_eccentricity/gw_eccentricity.py and commit all changes. This version number gets propagated to setup.py.
- Do the following to release the new version:
python -m build
twine upload dist/*
NOTE: This is needed to be done only once to add the recipe to conda-forge/staged-recipe. To update the conda release follow conda release section below.
- Generate
conda
recipe usinggrayskull
since we already have the PyPI package.
conda install -c conda-forge grayskull
grayskull pypi gw_eccentricity
- Clone https://github.com/md-arif-shaikh/staged-recipes, a fork of https://github.com/conda-forge/staged-recipes.
- Move the
meta.yaml
file generated bygrayskull
togw_eccentricity
directory underrecipe
. - Fix the
python
version under requirements, e.g.,python >=3.6
- Update recipe-maintainers.
To release a new conda version follow the instructions here:
After each PyPI release, update the conda package to the same version by following the steps below:
- Fork the feedstock repository https://github.com/conda-forge/gw_eccentricity-feedstock
- Create a branch
- Update
meta.yaml
underrecipe
at https://github.com/conda-forge/gw_eccentricity-feedstock/blob/main/recipe/meta.yaml
by changing the
- version to the latest PyPI version.
- sha256 hash number corresponding to the tar.gz file of this version. This can be found by clicking the
Download files
button ingw_eccentricity
page on PyPi.
- Commit the changes and make a PR.