GEOPM - Global Extensible Open Power Manager Daemon
Project description
geopmdpy
This directory contains source code for the geopmdpy
Python package, which
provides python bindings for libgeopmd
, as well as the geopmd
daemon,
geopmaccess
tool for administrators, and the geopmsession
tool for end
users.
Subdirectories include:
- debian: Configuration files for debian packaging scripts
- geopmdpy: Source code for modules in this package
- test: Test code for this package
Set Up a Development Environment
Run pip install .
to install this package. Optionally use the -e
installation option to install in editable mode (so you don't need to reinstall
between updating python source code and re-running tests). The install command
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 geopmdpy
package wraps libgeopmd
. Be sure to follow the build
instructions in the directory for that library as part of setting up a geopmdpy
development environment. Either install that builds somewhere on your path, or
manually add it to your LD_LIBRARY_PATH
(examples in the next section).
Executing Tests
Run LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$PWD/../libgeopmd/.libs" python3 test
from this directory to launch the entire test suite. Some of the tests depend
on libgeopmd
, so it should be built before running tests. Alternatively, run
LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$PWD/../libgeopmd/.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>
.
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
Built Distribution
File details
Details for the file geopmdpy-3.1.0.tar.gz
.
File metadata
- Download URL: geopmdpy-3.1.0.tar.gz
- Upload date:
- Size: 80.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bedddf695b0da100ba050bf918c9e3eebc5102d44177ee11cef5c3bbb362be5e |
|
MD5 | 516fb740b2fa49b4102297db2c5d6e55 |
|
BLAKE2b-256 | 83294c1b996533b70aa93c43193576a04add8f968650e265491108cdbec0373a |
File details
Details for the file geopmdpy-3.1.0-py3-none-any.whl
.
File metadata
- Download URL: geopmdpy-3.1.0-py3-none-any.whl
- Upload date:
- Size: 55.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 17a57d2c22b491a4974cc99ec10563fa13d418ab8e462f9ab8e5a11c42883aad |
|
MD5 | d54a737bbf1e088ddeab28b420933ea8 |
|
BLAKE2b-256 | 26aba8296ac20254c76fe5f64778c7bac827de7324b4d5b521b00021964e69e4 |