Metadata-Version: 2.4
Name: dask-felleskomponenter
Version: 0.1.9
Summary: Felleskomponenter på DASK
Author-email: "Dataplattform@Statens Kartverk" <dataplattform@kartverket.no>
Project-URL: Homepage, https://github.com/kartverket/dask-modules/dask-felleskomponenter
Project-URL: Issues, https://github.com/kartverket/dask-modules/issues
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: requests
Requires-Dist: setuptools
Requires-Dist: databricks-connect
Dynamic: license-file

# 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](https://pypi.org/project/dask-felleskomponenter/).

## Dependencies

You need to install Python3.7 and higher, and to install the dependencies of this project, please execute the following
command

```bash
pip install -r requirements.txt
```

### Code formatting

The python code is validated against [Black](https://black.readthedocs.io/en/stable/) 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

### Steps for publishing using GitHub Actions

Navigate to the [Publish to PyPI](https://github.com/kartverket/dask-modules/actions/workflows/pypi-publish.yml) workflow in GitHub Actions, choose the `main` branch and bump the version.

One member of Team DASK needs to approve the workflow run before it starts.

### Steps for manual publishing

- Remove old dist-folder, from last time you published
- Update version in `setup.py`, for instance `0.0.7`->`0.0.8`
- (Run `pip install -r requirements.txt` if 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

### To upload to PyPi test

Replace the last command with `python3 -m twine upload --repository testpypi dist/*`

## Run tests

Use the following command

```sh
coverage run -m unittest discover -s src/dask_felleskomponenter/tests
coverage report -m
```
