Skip to main content

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.

  1. Remove old dist-folder, from last time you published
  2. Update version in setup.py, for instance 0.0.7->0.0.8
  3. (Run pip install -r requirements.txt if you haven't done that earlier)
  4. Run python3 -m build (and wait some minutes...)
  5. Verify that dist contains a package with the new version in the package name.
  6. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dask_felleskomponenter-0.1.11.tar.gz (20.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dask_felleskomponenter-0.1.11-py3-none-any.whl (27.3 kB view details)

Uploaded Python 3

File details

Details for the file dask_felleskomponenter-0.1.11.tar.gz.

File metadata

  • Download URL: dask_felleskomponenter-0.1.11.tar.gz
  • Upload date:
  • Size: 20.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for dask_felleskomponenter-0.1.11.tar.gz
Algorithm Hash digest
SHA256 b20a231a30efc51abac6964e4755126118e2285f96ca3f3227b44ff7fd7382f4
MD5 1a8b8b7412c106f50cd54d5d7a966757
BLAKE2b-256 5e451866174b3f2584419892c7d99285a376b00733da830ef1cc5b4e1eb8c411

See more details on using hashes here.

Provenance

The following attestation bundles were made for dask_felleskomponenter-0.1.11.tar.gz:

Publisher: pypi-publish.yml on kartverket/dask-felleskomponenter

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file dask_felleskomponenter-0.1.11-py3-none-any.whl.

File metadata

File hashes

Hashes for dask_felleskomponenter-0.1.11-py3-none-any.whl
Algorithm Hash digest
SHA256 a0f0f464ded9cabcaa3ea8fd1b4ba87dfac21e1537a9bca77a0ed3eb7af94595
MD5 424b2af0579892f3ee000f26f4d68ea5
BLAKE2b-256 181896982b3981ab6505bed5b5a31952faeabf005d99c3a33501232d1eda2e10

See more details on using hashes here.

Provenance

The following attestation bundles were made for dask_felleskomponenter-0.1.11-py3-none-any.whl:

Publisher: pypi-publish.yml on kartverket/dask-felleskomponenter

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page