This is a repo where we make available governance components, common functions and reusable UDFs. DASK felleskomponenter is still in an early stage of the development process.
You can find the PyPI package here.
You need to install Python 3.10 and higher, and the project uses poetry as the package-manager. To download poetry check out their documentation.
The python code is validated against Black formatting in a Github Action. This means that your pull request will fail if the code isn't formatted according to Black standards. It is therefore suggested to enable automatic formatting using Black in your IDE.
Navigate to the Publish to PyPI workflow in GitHub Actions, choose the main branch and bump the version.
The workflow is authenticated through Trusted Publisher. The workflow can push to either TestPyPI or PyPI depending on the given input.
You can choose to not commit the changed version number to github. This is useful if you are doing testing to avoid cleaning up commits.
One member of Team DASK needs to approve the workflow before it can publish to PyPI.
Use the following command
coverage run -m unittest discover -s src/dask_felleskomponenter/tests
coverage report -m