A small library package containing various tools and utilities
Project description
ssb-altinn3-util
A library of handy modules and utilities that can be used and built on when integrating with Altinn 3 and SSB's Altinn 3 data collection solutions
To build package locally during development run (from root directory of project):
python setup.py install
Testing from other Python apps
- Push the changes to a branch of
ssb-altinn3-util
- Uninstall previous ssb-altinn3-util in the app:
pip uninstall ssb-altinn3-util
- Add the following in your requirements.txt in the app `git+ssh://git@github.com/statisticsnorway/ssb-altinn3-util@<your_branch_name>
After the testing is finished, remember to revert the requirements.txt
before pushing the changes!
Releasing to PyPi
- Update version in
setup.py
- Create a GitHub release and the pipeline will push the package to PyPi
Running tests locally
In order to run the unittests locally things must be set up properly:
-
In the project root directory run:
pip install -e . pip install -r ./test/requirements-test.txt
-
This will install the package locally as editable (changes in code will immediately be reflected in the package) as well as the required dependencies.
-
You should now be able to run the tests by running pytest from project root.
Testing locally from another module
In order to test a new version from another module locally you first have to uninstall the package:
- pip uninstall ssb-altinn3-util
Then the package must be installed from local path - pip install
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
Hashes for ssb_altinn3_util-0.0.30-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d5e0f271216a7ffe0907e1aeb8cd30fa7922c0fd371f74733c210e44087a8a78 |
|
MD5 | e853d52be0c9f45b352deec2762d6388 |
|
BLAKE2b-256 | 4f1cd00fb299f60e0935e5c80328c1bd262f13a3486deb3c1d0b21d7d89f80e6 |