Library for creating the OpenDORS dataset.
Project description
opendorslib
Library for creating the OpenDORS dataset.
Installation
# Clone git repository & change into clone directory
git clone git@gitlab.dlr.de:drus_st/opendorslib.git
cd opendorslib
# Install with poetry
poetry install
Build Python package
Run poetry build
.
To publish to PyPI, run poetry publish
.
You need to have a PyPI API token configured to do this.
Build conda package
The conda package is configured in conda/recipe/local/meta.yaml
,
and reuses information from pyproject.toml
.
To build package locally, run
# Update to next dev version to keep build metadata intact
poetry version 0.1.dev<n>
conda create -n condabuild conda-build git
conda activate condabuild
conda build conda/recipe/local <optional: --output-folder [FOLDER]>
# e.g.:
# conda build conda/recipe/local --output-folder /home/stephan/src/opendors/conda-pkgs
You can then install the package in a new environment and use it:
conda create -n my-env --use-local opendorslib
Run tests
Tests can be run locally as follows:
poetry run python -m pytest tests/
Test coverage
Coverage (with branch coverage) can be displayed as follows:
coverage run <--branch> -m pytest 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
opendorslib-0.1.dev66.tar.gz
(10.1 kB
view hashes)
Built Distribution
Close
Hashes for opendorslib-0.1.dev66-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d9e1182e88394e7bb599552ea428ef21470f39a7eef786f66d68270bea137675 |
|
MD5 | 62c01895fd51dc5e7098beb3184fca78 |
|
BLAKE2b-256 | 4cc908888ad716195f23f6839b7b60262550313f3c0eb0ec2542f1ccc8a7d177 |