-
Notifications
You must be signed in to change notification settings - Fork 1
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
Add build configuration #5
Add build configuration #5
Conversation
af385d7
to
6fb17d5
Compare
&& chmod +x dasel | ||
|
||
- name: Set package version | ||
# Get the Python package version from the pyproject.toml |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will we need to manually update the version?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes - the workflow will fail though if it isn't changed before merging into main
because it shouldn't overwrite existing tags, so users will get warnings/failures if it hasn't been adjusted.
(We should provide a better system for this in the future)
Overview
To make the CI/CD workflow easier to distribute and integrate in various pipelines, this adds the configuration to generate a Python artefacts using
hatchling
as a build backend for Python wheelsFeatures
pyproject.toml
which includes the build configuration for the CICD packagerequirements[-dev].txt
have been removed, with dependency information now in thepyproject.toml
main
- it will:.whl
and source build too for the package.whl
cicd
directory toib_cicd
Testing
Ensuring CICD library code is accessible from the built package
Steps
venv
python3 -m build
in the environment to generate the.whl
file.whl
within thevenv
of that local project and ensure library contents was accessible after installationOutcome: Successful
Side effect: VSCode is happy when it uses the
venv
for its Python extension environment, has Intellisense over it etcEnsuring CICD CLI Tool is Runnable after install from
Steps
venv
python3 -m build
in the environment to generate the.whl
file.whl
within thevenv
of that local project and ensure the CLI can run as expectedOutcome: Successful
Ensuring GitHub Release is created as expected
Steps
Outcome: Successful