Skip to main content

GEOPM - Global Extensible Open Power Manager Runtime Tools

Project description

geopmpy

This directory contains source code for the geopmpy Python package, which provides python bindings for libgeopm, as well as the geopmlaunch tool.

Subdirectories include:

  • debian: Configuration files for debian packaging scripts
  • geopmpy: Source code for modules in this package
  • test: Test code for this package

Set Up a Development Environment

Run pip install -e . to install this directory in editable mode (so you don't need to reinstall between updating python source code and re-running tests). That will also install the python execution-time dependencies of this package. Also run pip install -f requirements.txt to install additional development dependencies. If you follow these steps, then you do not need to modify your PYTHONPATH variable when executing tests.

The geopmpy package depends on geopmdpy, so also be sure to install that package (e.g., in editable mode as done for this package).

The geopmpy package wraps libgeopm, which also depends on libgeopmd. Be sure to follow the build instructions in the directories for those libraries as part of setting up a geopmpy development environment. Either install those builds somewhere on your path, or manually add them to your LD_LIBRARY_PATH (examples in the next section).

Executing Tests

Run LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$PWD/../libgeopm/.libs" python3 test from this directory to launch the entire test suite. Some of the tests depend on libgeopm, so it should be built before running tests. Alternatively, run LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$PWD/../libgeopm/.libs" python3 -m unittest discover -p 'Test*.py'

Execute a single test case with LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$PWD/../libgeopm/.libs" python -m unittest <one.or.more.test.modules.or.classes.or.functions>. For example: LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$PWD/../libgeopm/.libs" python -m unittest test.TestAgent.TestAgent.test_policy_names

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

geopmpy-3.1.0.tar.gz (62.7 kB view details)

Uploaded Source

Built Distribution

geopmpy-3.1.0-py3-none-any.whl (39.2 kB view details)

Uploaded Python 3

File details

Details for the file geopmpy-3.1.0.tar.gz.

File metadata

  • Download URL: geopmpy-3.1.0.tar.gz
  • Upload date:
  • Size: 62.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.12

File hashes

Hashes for geopmpy-3.1.0.tar.gz
Algorithm Hash digest
SHA256 a807c733d27e29831ee1ed5bf21b80f8ff7d43f4c793360a0b4e1586148484be
MD5 6bece9f02dcfac3d0bf3047ab2fcad0c
BLAKE2b-256 3753564fce267cb337b6f475f22226a5bb5cd9156948007fd64707fa393f5b82

See more details on using hashes here.

File details

Details for the file geopmpy-3.1.0-py3-none-any.whl.

File metadata

  • Download URL: geopmpy-3.1.0-py3-none-any.whl
  • Upload date:
  • Size: 39.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.12

File hashes

Hashes for geopmpy-3.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 edfbfcb1a6edf2dc08a298b6d6741a987529d9e58aab2f520c215e773226296e
MD5 8ad913a3a04fe10b987a50af19b2d41e
BLAKE2b-256 1ddcc4376dc0dc044454f7d41e92b4a73c432eb4a6f8866d55cc86bfcd5a81c6

See more details on using hashes here.

Supported by

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