-
-
Notifications
You must be signed in to change notification settings - Fork 791
Update documentation for v32 #3292
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 8 commits
0876aca
1fd2a7f
637ad9b
afa2d4c
3522153
8eba8ce
67256a1
bbd98ba
c38e664
3ac77d4
7b2f110
f9f7956
f491f1a
9070f0f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| #!/bin/bash | ||
| # halt script on error | ||
| set -e | ||
|
|
||
| # Path to the available packages doc | ||
| DOC_PATH="source/reference/available_package_parsers.rst" | ||
|
|
||
| # Regen docs for available package parsers | ||
| regen-package-docs --path "$DOC_PATH" | ||
|
|
||
| # Delete whitespace from last line to not fail doc8 tests | ||
| sed -i '$ d' "$DOC_PATH" |
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. docs/source/contribute/contrib_doc.rst Lines 319-323: Each of these 3 links takes me to a 404 page: It's possible to generate docs automatically from data by using a combination of:
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yup, these would be working when we merge this PR :P As they are in this PR actually. |
|
AyanSinhaMahapatra marked this conversation as resolved.
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,59 +1,68 @@ | ||
| .. _release_process: | ||
|
|
||
| How to cut a new release: | ||
| ========================= | ||
|
|
||
| Update version | ||
| -------------- | ||
|
|
||
| - Run bumpversion with major, minor or patch to bump the version in | ||
| ``setup.cfg`` and ``src/scancode_config.py``. Note that this is CalVer. | ||
| - Bump version to update major, minor or patch version in ``setup.cfg`` | ||
| ``setup-mini.cfg`` and ``src/scancode_config.py``. Note that this is SemVer, | ||
| though we used CalVer previously, we have switched back to SemVer. | ||
|
|
||
| - If scancode output data format is changed, increment manually the major, | ||
| minor or patch version to bump the version in ``src/scancode_config.py``. | ||
| Note that this is SemVer. | ||
|
|
||
| - If scancode output data format is changed, increment manually the major, minor or patch | ||
| to bump the version in ``src/scancode_config.py``. Note that this is SemVer. | ||
| See our :ref:``versioning`` for more details. | ||
|
|
||
| Tag and publish | ||
| --------------- | ||
|
|
||
| - Update the CHANGELOG.rst | ||
| - Changes for a release should also be pushed to a branch and a pull | ||
| Request should be created for it, for review. | ||
|
|
||
| - Update the CHANGELOG.rst with detailed documentation of updates | ||
| and API/CLI option changes, or any significant changes. | ||
|
|
||
| - Commit these changes and push changes to develop: | ||
| - Commit these changes and push changes to develop (here we use an | ||
| example tag ``v1.6.1``): | ||
|
|
||
| - ``git commit -m "commit message"`` | ||
| - ``git push --set-upstream origin develop`` | ||
| - ``git commit -s`` | ||
| - ``git push --set-upstream origin release-prep-v1.6.1`` | ||
|
|
||
| - Merge develop branch in master and tag the release. | ||
| - Merge this ``release-prep-v1.6.1`` branch in master after review approval | ||
| and tag the release: | ||
|
|
||
| - ``git checkout master`` | ||
| - ``git merge develop`` | ||
| - ``git tag -a v1.6.1 -m "Release v1.6.1"`` | ||
| - ``git push --set-upstream origin master`` | ||
| - ``git push --set-upstream origin release-prep-v1.6.1`` | ||
| - ``git push --set-upstream origin v1.6.1`` | ||
|
|
||
| - Draft a new release in GitHub, using the previous release blurb as a base. Highlight new and | ||
| noteworthy changes from the CHANGELOG.rst. | ||
|
|
||
| Create Release on GitHub | ||
| ------------------------ | ||
|
|
||
| - Run ``etc/release/scancode_release.sh`` locally. | ||
| Automated Release Process | ||
| ------------------------- | ||
|
|
||
| - Upload the release archives created in the ``dist/`` directory to the GitHub release page. | ||
| - We have a `automated release script <https://github.com/nexB/scancode-toolkit/actions/workflows/scancode-release.yml>`_ | ||
| triggered by a pushed tag, where jobs run to: | ||
|
|
||
| - Save the release as a draft. Use the previous release notes to create notes in the same style. | ||
| Ensure that the link to third-party source code is present. | ||
| - Build pypi wheels and sdist archives | ||
| - Build app release archives for linux/mac/windows | ||
| - This happens for all supported python versions | ||
| - Test these wheels and app archives in linux/mac/windows for all supported | ||
| versions of python | ||
| - Create a GitHub release (draft by default) with all wheels, sdists and app arcives | ||
| (for all os/python combinations) | ||
| - Upload sdists and wheels (all python versions) and publish a release | ||
| (This won't be a stable release for beta/release-candidate tags) | ||
|
|
||
| - test the downloads. | ||
| - Populate the draft GitHub release by clicking the ``Generate Release Notes`` button | ||
| and this pre-populates the release notes with PRs and contributors. | ||
|
|
||
| - publish the release on GitHub | ||
| - Add more details to the release notes talking about the key features and changes in the | ||
| release. | ||
|
|
||
| Upload wheels to pypi and Test | ||
| ------------------------------ | ||
| - Publish the release on GitHub | ||
| (Note the ``Set as a pre-release`` vs ``Set as the latest release`` checkboxes) | ||
|
|
||
| - then build and publish the released wheel on Pypi. For this you need your own Pypi credentials | ||
| (and get authorized to publish Pypi release: ask @pombredanne) and you need to have the ``twine`` | ||
| package installed and configured. | ||
| - Announce in public channels and chats about the release | ||
|
|
||
| - Build a ``.whl`` and source distribution with ``python setup.py release`` | ||
| - Run twine with ``twine upload dist/`` | ||
| - Once uploaded check the published release at https://pypi.python.org/pypi/scancode-toolkit/ | ||
| - Then create a new fresh local virtualenv and test the wheel installation with: | ||
| ``pip install scancode-toolkit[full]`` | ||
| - Do test the release archives yourself. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,4 +11,3 @@ | |
| gsoc17_final_report | ||
| gsoc19_final_report | ||
| gsoc21_final_report | ||
| long_running_issues | ||
This file was deleted.
|
AyanSinhaMahapatra marked this conversation as resolved.
|
Uh oh!
There was an error while loading. Please reload this page.