The project is open-source software, and bug reports, suggestions, and most especially patches are welcome.
SPDX YALM Python has a project page on GitHub where you can create an issue to report a bug, make a suggestion, or propose a substantial change or improvement that you might like to make.
If you would like to work on a fix for any issue, please assign the issue to yourself prior to creating a patch. For a larger patch, you are encouraged to create a draft PR and communicate with the members.
The source code for SPDX YALM Python is hosted on GitHub. Please review open pull requests before committing time to a substantial revision. Work along similar lines may already be in progress.
- Install poetry.
poetry install
- Make changes
- Test [WIP]
We use the GitHub flow that is described here: https://guides.github.com/introduction/flow/
So, whenever we have to make some changes to the code, we should follow these steps:
- Create a new branch:
git checkout -b fix-or-improve-something
- Make some changes and the first commit(s) to the branch:
git commit --signoff -m 'What changes we did'
- Push the branch to GitHub:
git push origin fix-or-improve-something
- Make a pull request on GitHub.
- Continue making more changes and commits on the branch, with
git commit --signoff
andgit push
. - When done, write a comment on the PR asking for a code review.
- Some other developer will review your changes and accept your PR. The merge should be done with
rebase
, if possible, or withsquash
. - The temporary branch on GitHub should be deleted (there is a button for deleting it).
- Delete the local branch as well:
git checkout master git pull -p git branch -a git branch -d fix-or-improve-something
Besides this, another requirement is that every change should be made to fix or close an issue: https://guides.github.com/features/issues/ If there is no issue for the changes that you want to make, create first an issue about it that describes what needs to be done, assign it to yourself, and then start working for closing it.
However you choose to contribute, please sign-off in each of your commits that you license your contributions under the terms of the Developer Certificate of Origin. Git has utilities for signing off on commits: git commit -s
signs a current commit, and git rebase --signoff <revision-range>
retroactively signs a range of past commits.