Library for creating and interacting with the OpenDORS dataset.
Project description
opendors
Library for creating and interacting with the OpenDORS dataset.
Installation
# Clone git repository & change into clone directory
git clone git@gitlab.dlr.de:drus_st/opendors.git
cd opendors
# 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 opendors
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:
poetry run python -m pytest tests --cov=opendors --cov-branch --cov-report=html --cov-report=term
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
File details
Details for the file opendors-0.1.dev2.tar.gz
.
File metadata
- Download URL: opendors-0.1.dev2.tar.gz
- Upload date:
- Size: 28.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.10.12 Linux/5.10.102.1-microsoft-standard-WSL2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d21b52d1c0bdb908e36cdc95e5449c6d24ad1438bd4ad698a83b6a8ee6e57d7d |
|
MD5 | f7064f2b7939c3c6b9742d6fa2c0a3db |
|
BLAKE2b-256 | 45c2c0839ee4413e465a53defb5d8f0ea903e7dbcaba6e5c980825101cd46f15 |
File details
Details for the file opendors-0.1.dev2-py3-none-any.whl
.
File metadata
- Download URL: opendors-0.1.dev2-py3-none-any.whl
- Upload date:
- Size: 34.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.10.12 Linux/5.10.102.1-microsoft-standard-WSL2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2af524e34861653796707a8af8a350d84242ace4e9b427c47d01a57e52dbd4d4 |
|
MD5 | b321b71038051bf5b2124e6487a8248f |
|
BLAKE2b-256 | 78ec1bc6537b36ee5497e5a9e3170645ded4a286dfec3555adc416d1c7c7aeab |