Discvar is a Python library for discrete variable representation (DVR)
https://kenhino.github.io/Discvar/
Clone this repository to your local environment;
$ git clone https://github.com/KenHino/Discvar.git
$ cd Discvar
Before installation, please make sure you have the following requirements:
-
Python 3.10 or later If you don't have Python, you can install it by e.g. pyenv.
$ pyenv install $(cat .python-version)
-
pip is a general-purpose package installer for both libraries and apps with no environment isolation. pipx is made specifically for application installation, as it adds isolation yet still makes the apps available in your shell: pipx creates an isolated environment for each application and its associated packages.
-
$ pipx install poetry==$(cat .poetry-version)
Install by poetry;
$ poetry install --with dev
If you need only minimum requirements, remove --with dev
. If you want to install documentation, change it to --with dev,docs
.
Then, you can use Discvar by
$ poetry run python xxx.py
or
$ poetry shell
$ python
>>> import discvar
$ exit
pytest
is also installed by poetry install --with dev
.
$ poetry run pytest
you should install pre-commit hooks.
$ poetry run pre-commit install
$ git add .
$ poetry run pre-commit
Before push you must fix problems!!
$ make
also support you.