Contributions are welcome, and they are greatly appreciated! Every little bit helps, and credit will always be given.
You can contribute in many ways:
Report bugs at https://github.com/yt-project/yt_idv/issues.
If you are reporting a bug, please include:
- Your operating system name and version.
- Any details about your local setup that might be helpful in troubleshooting.
- Detailed steps to reproduce the bug.
Look through the GitHub issues for bugs. Anything tagged with "bug" and "help wanted" is open to whoever wants to implement it.
Look through the GitHub issues for features. Anything tagged with "enhancement" and "help wanted" is open to whoever wants to implement it.
interactive volume rendering for yt could always use more documentation, whether as part of the official interactive volume rendering for yt docs, in docstrings, or even on the web in blog posts, articles, and such.
The best way to send feedback is to file an issue at https://github.com/yt-project/yt_idv/issues.
If you are proposing a feature:
- Explain in detail how it would work.
- Keep the scope as narrow as possible, to make it easier to implement.
- Remember that this is a volunteer-driven project, and that contributions are welcome :)
Ready to contribute? Here's how to set up yt_idv
for local development.
To set up your local development environment:
-
Fork the
yt_idv
repo on GitHub. -
Clone your fork locally
$ git clone [email protected]:your_name_here/yt_idv.git
-
Install your local copy into a virtualenv. Assuming you have virtualenvwrapper installed, this is how you set up your fork for local development
$ mkvirtualenv yt_idv $ cd yt_idv/ $ python -m pip install -e .[dev]
-
(optional) Initialize pre-commit if you want to catch linting errors throughout development. When you submit a pull request, the pre-commit.ci bot will run a number of checks so it can be easier to catch errors along the way.
$ pre-commit install
Once your environment is setup, you are ready to make changes!
-
Create a branch for local development
$ git checkout -b name-of-your-bugfix-or-feature
Now you can make your changes locally.
-
When you're done making changes,
-
Commit your changes and push your branch to GitHub
$ git add . $ git commit -m "Your detailed description of your changes." $ git push origin name-of-your-bugfix-or-feature
-
Submit a pull request through the GitHub website.
The test suite is run with pytest
using headless osmesa
tests, so you need
an environment with osmesa
available. To run the tests:
```
$ pytest yt_idv
```
Before you submit a pull request, check that it meets these guidelines:
- The pull request should include tests.
- If the pull request adds functionality, the docs should be updated. Put your new functionality into a function with a docstring, and add the feature to the list in README.rst.
- The pull request should work for Python 3.5, 3.6, 3.7 and 3.8, and for PyPy. Check https://travis-ci.com/yt-project/yt_idv/pull_requests and make sure that the tests pass for all supported Python versions.
To run a subset of tests
$ pytest tests.test_yt_idv
To create a release, follow these steps:
First make sure the version specified in setup.cfg
and yt_idv/__init__.py
match the upcoming release and that there is an entry in HISTORY.md
. Push up
any updates to the version or history and then move on to the next step.
Next, double check that your local main branch matches https://github.com/yt-project/yt_idv/:
git fetch --all
git checkout main
git rebase upstream/main
Now create and push a new version tag. For example, for version 1.2.3:
git tag v1.2.3
git push upstream v1.2.3
When a new tag is pushed, a GitHub action is triggered that will:
- build a new source release and push up to PyPI
- create a draft release on GitHub with auto-generated release notes
After the action runs, go open up the draft release (which should be visible on the
releases page), edit the notes to
match the release notes in HISTORY.md
for this version.
While not strictly necessary, it helps to bump the active development version
in setup.cfg
and yt_idv/__init__.py
and add a blank entry in HISTORY.md
.