Skip to main content

None

Project description

volttron-testing

ci documentation pypi version

None

Prerequisites

  • Python 3.8
  • Poetry

Python

volttron-testing requires Python 3.8 or above.

To install Python 3.8, we recommend using pyenv.

# install pyenv
git clone https://github.com/pyenv/pyenv ~/.pyenv

# setup pyenv (you should also put these three lines in .bashrc or similar)
export PATH="${HOME}/.pyenv/bin:${PATH}"
export PYENV_ROOT="${HOME}/.pyenv"
eval "$(pyenv init -)"

# install Python 3.8
pyenv install 3.8.10

# make it available globally
pyenv global system 3.8.10

Poetry

This project uses poetry to install and manage dependencies. To install poetry, follow these instructions.

Installation and Virtual Environment Setup

If you want to install all your dependencies, including dependencies to help with developing your agent, run this command:

poetry install

If you want to install only the dependencies needed to run your agent, run this command:

poetry install --no-dev

Set the environment to be in your project directory:

poetry config virtualenvs.in-project true

Activate the virtual environment:

poetry shell

Git Setup

  1. To use git to manage version control, create a new git repository in your local agent project.
git init
  1. Then create a new repo in your Github or Gitlab account. Copy the URL that points to that new repo in your Github or Gitlab account. This will be known as our 'remote'.

  2. Add the remote (i.e. the new repo URL from your Github or Gitlab account) to your local repository. Run the following command:

git remote add origin <my github/gitlab URL>

When you push to your repo, note that the default branch is called 'main'.

Optional Configurations

Precommit

Install pre-commit hooks:

pre-commit install

To run pre-commit on all your files, run this command:

pre-commit run --all-files

If you have precommit installed and you want to ignore running the commit hooks every time you run a commit, include the --no-verify flag in your commit. The following is an example:

git commit -m "Some message" --no-verify

Documentation

To build the docs, navigate to the 'docs' directory and build the documentation:

cd docs
make html

After the documentation is built, view the documentation in html form in your browser. The html files will be located in ~<path to agent project directory>/docs/build/html.

PROTIP: To open the landing page of your documentation directly from the command line, run the following command:

open <path to agent project directory>/docs/build/html/index.html

This will open the documentation landing page in your default browsert (e.g. Chrome, Firefox).

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

volttron-testing-0.3.1a9.tar.gz (37.5 kB view details)

Uploaded Source

Built Distribution

volttron_testing-0.3.1a9-py3-none-any.whl (39.2 kB view details)

Uploaded Python 3

File details

Details for the file volttron-testing-0.3.1a9.tar.gz.

File metadata

  • Download URL: volttron-testing-0.3.1a9.tar.gz
  • Upload date:
  • Size: 37.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.0b2 CPython/3.8.14 Linux/5.15.0-1022-azure

File hashes

Hashes for volttron-testing-0.3.1a9.tar.gz
Algorithm Hash digest
SHA256 aef38827ffbb1697261167105e99ec6b0c49f8804033b7c84bc3b58342c50ed2
MD5 ed343788b701bfc0e2a1b091fc09d3d4
BLAKE2b-256 18d251b2889ee84ccd14e5ba7b80f199901a01608b3797a98fbcdac5cab22889

See more details on using hashes here.

File details

Details for the file volttron_testing-0.3.1a9-py3-none-any.whl.

File metadata

  • Download URL: volttron_testing-0.3.1a9-py3-none-any.whl
  • Upload date:
  • Size: 39.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.0b2 CPython/3.8.14 Linux/5.15.0-1022-azure

File hashes

Hashes for volttron_testing-0.3.1a9-py3-none-any.whl
Algorithm Hash digest
SHA256 e5810b8088a2100b77bb253837cf0238ca84a55074f2f5f58c6a7ad282676a51
MD5 88aafcd1d83c7a1f53565c514809d176
BLAKE2b-256 663584ed37ae472d59bb5529d2374b3b3cd0e15b9f8ed21577cbdb4fe6e2cee4

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