Felleskomponenter på DASK
Project description
DASK Felleskomponenter
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.
Dependencies
You need to install Python 3.7 and higher, and to install the dependencies of this project, please execute the following command
pip install -r requirements.txt
Code formatting
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.
Bulding and publishing of package
Publishing using GitHub Actions
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.
Manual publishing to PyPI
To do manual publishing you will need to provide the user credentials of a user with publishing access to the dask-felleskomponenter package on PyPI.
- Remove old dist-folder, from last time you published
- Update version in
setup.py, for instance0.0.7->0.0.8 - (Run
pip install -r requirements.txtif you haven't done that earlier) - Run
python3 -m build(and wait some minutes...) - Verify that dist contains a package with the new version in the package name.
- Run
python3 -m twine upload dist/*to upload to PyPi
Manual publishing to TestPyPI
To do manual publishing you will need to provide the user credentials of a user with publishing access to the dask-felleskomponenter package on TestPyPI.
To do a manual publish to TestPyPI do steps 1 through 5 for publishing to PyPI, and finish using the command python3 -m twine upload --repository testpypi dist/*
Run tests
Use the following command
coverage run -m unittest discover -s src/dask_felleskomponenter/tests
coverage report -m
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dask_felleskomponenter-0.1.10.tar.gz.
File metadata
- Download URL: dask_felleskomponenter-0.1.10.tar.gz
- Upload date:
- Size: 12.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
945f91d42a845f86f0776a494a61571ab10f12f7e9236166de86946478ef577f
|
|
| MD5 |
0e07d7d0a9a112705154bcbd013742e2
|
|
| BLAKE2b-256 |
359a5520c26ba9b27bf90b170d88397c4a263362290f1b96184622f3146482ac
|
Provenance
The following attestation bundles were made for dask_felleskomponenter-0.1.10.tar.gz:
Publisher:
pypi-publish.yml on kartverket/dask-felleskomponenter
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dask_felleskomponenter-0.1.10.tar.gz -
Subject digest:
945f91d42a845f86f0776a494a61571ab10f12f7e9236166de86946478ef577f - Sigstore transparency entry: 236226855
- Sigstore integration time:
-
Permalink:
kartverket/dask-felleskomponenter@527d8c2e765176c24ec569f225005fce99d5e8d8 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/kartverket
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@527d8c2e765176c24ec569f225005fce99d5e8d8 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file dask_felleskomponenter-0.1.10-py3-none-any.whl.
File metadata
- Download URL: dask_felleskomponenter-0.1.10-py3-none-any.whl
- Upload date:
- Size: 15.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
761c2a8895097dc47fb8ab0b81ca9d9d7d21f21f1607b80408061103b5aa6a2b
|
|
| MD5 |
839e899f3ad6bdf430d619d537687196
|
|
| BLAKE2b-256 |
35ad7727f4a1502f4e8250e3568197e54d7b3105257c945886e723434ff55a78
|
Provenance
The following attestation bundles were made for dask_felleskomponenter-0.1.10-py3-none-any.whl:
Publisher:
pypi-publish.yml on kartverket/dask-felleskomponenter
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dask_felleskomponenter-0.1.10-py3-none-any.whl -
Subject digest:
761c2a8895097dc47fb8ab0b81ca9d9d7d21f21f1607b80408061103b5aa6a2b - Sigstore transparency entry: 236226857
- Sigstore integration time:
-
Permalink:
kartverket/dask-felleskomponenter@527d8c2e765176c24ec569f225005fce99d5e8d8 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/kartverket
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@527d8c2e765176c24ec569f225005fce99d5e8d8 -
Trigger Event:
workflow_dispatch
-
Statement type: