-
-
Notifications
You must be signed in to change notification settings - Fork 723
Publish licensedcode data/index as seperate pypi wheels and improve installation support #4847
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
Open
AyanSinhaMahapatra
wants to merge
18
commits into
develop
Choose a base branch
from
smaller-wheels
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
b458334
Add smaller wheels for license data and index
AyanSinhaMahapatra 5856d9b
Update to flot v0.7.3
AyanSinhaMahapatra 6c0e96d
Update Configure and release scripts
AyanSinhaMahapatra a500061
Update pyproject files for releasing multiple wheels
AyanSinhaMahapatra 9dfc115
Update github action release scripts for multiple wheels
AyanSinhaMahapatra 850318e
Grant execute permission to licensedcode wheel script
AyanSinhaMahapatra 574d4a4
Also build wheels for release app archives
AyanSinhaMahapatra ead87ba
Update configure scripts with licensedcode index
AyanSinhaMahapatra 30a6184
Create license index for release app archives
AyanSinhaMahapatra 97d0909
Include licensedcode_index wheel as thirdparty
AyanSinhaMahapatra b1afd4a
Replace tagged versions with commit hashes in actions
AyanSinhaMahapatra 4cf1cb3
Add zizmor as github actions run
AyanSinhaMahapatra 2e065ce
Fix windows configure script
AyanSinhaMahapatra 85cc3f4
Update typecode to use system-provided libmagic
AyanSinhaMahapatra fc1e53f
Test scancode releases in arm/x86 for linux/macos
AyanSinhaMahapatra 76b142d
Ensure libmagic is installed by homebrew for macos
AyanSinhaMahapatra 686f43c
Use dummy wheels for apple silicon
AyanSinhaMahapatra 182e246
Only test scancode-toolkit mini wheel on macos
AyanSinhaMahapatra File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,92 @@ | ||
| name: Create library release archives, create a GH release and publish PyPI wheel and sdist on tag in main branch | ||
|
|
||
|
|
||
| # This is executed automatically on a tag in the main branch | ||
|
|
||
| # Summary of the steps: | ||
| # - build wheels and sdist | ||
| # - upload wheels and sdist to PyPI | ||
| # - create gh-release and upload wheels and dists there | ||
| # TODO: smoke test wheels and sdist | ||
| # TODO: add changelog to release text body | ||
|
|
||
| # WARNING: this is designed only for packages building as pure Python wheels | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| push: | ||
| tags: | ||
| - "licensedcode-v*.*.*" | ||
|
|
||
| jobs: | ||
| build-pypi-distribs: | ||
| permissions: | ||
| contents: read # to fetch code (actions/checkout) | ||
|
|
||
| name: Build and publish library to PyPI | ||
| runs-on: ubuntu-24.04 | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd | ||
| with: | ||
| persist-credentials: false | ||
| - name: Set up Python | ||
| uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 | ||
| with: | ||
| python-version: 3.14 | ||
|
|
||
| - name: Install pypa/build and twine | ||
| run: python -m pip install --user --upgrade build twine pkginfo flot | ||
|
|
||
| - name: Install requirements then build main and mini wheel | ||
| run: etc/release/licensedcode-create-pypi-wheel-and-sdist.sh | ||
|
|
||
| - name: Upload built archives | ||
| uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f | ||
| with: | ||
| name: pypi_archives | ||
| path: dist/* | ||
|
|
||
|
|
||
| create-gh-release: | ||
| permissions: | ||
| contents: write | ||
|
|
||
| name: Create GH release | ||
| needs: | ||
| - build-pypi-distribs | ||
| runs-on: ubuntu-24.04 | ||
|
|
||
| steps: | ||
| - name: Download built archives | ||
| uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 | ||
| with: | ||
| name: pypi_archives | ||
| path: dist | ||
|
|
||
| - name: Create GH release | ||
| uses: softprops/action-gh-release@b4309332981a82ec1c5618f44dd2e27cc8bfbfda | ||
| with: | ||
| draft: true | ||
| files: dist/* | ||
|
|
||
|
|
||
| create-pypi-release: | ||
| name: Create PyPI release | ||
| needs: | ||
| - create-gh-release | ||
| runs-on: ubuntu-24.04 | ||
| environment: pypi-publish | ||
| permissions: | ||
| id-token: write | ||
|
|
||
| steps: | ||
| - name: Download built archives | ||
| uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 | ||
| with: | ||
| name: pypi_archives | ||
| path: dist | ||
|
|
||
| - name: Publish to PyPI | ||
| if: startsWith(github.ref, 'refs/tags') | ||
| uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.