Skip to main content

lvmtan

Versions Documentation Status Travis (.org) codecov

Lvm Tan Clu Wrapper

Features

  • CLU based wrapper for TwiceAsNice
  • Uses a container for deployment and testing.
  • Uses podman¹ for building the container.

¹ Setting an alias to use docker might work.

alias podman="sudo docker"

Note

As of version 0.0.9 the container is renamed from ubuntu_lvmt_tan to lvmtan

Quickstart

Beginning with version 0.0.9 the container doesnt have to be build, a container is download automatically from github.

git clone https://github.com/sdss/lvmtan.git
cd lvmtan      
poetry run container_start --kill --name lvm.all

Prerequisites

Some linux distributions do not have python >= 3.7 as the standard python3 version.

Centos 8.X

# as root
yum install python38
# as user 
python3.8  -m pip  install --user --upgrade pip
pip3.8 install poetry
export PATH=~/.local/bin/:$PATH

OpenSuSe 15.2/15.3

# as root
zypper ar https://download.opensuse.org/repositories/devel:/languages:/python:/Factory/openSUSE_Leap_15.2/ devel_python
zypper install python39-devel
# as user 
python3.9 -m ensurepip --default-pip # Alternatve: python3.9 -m venv ~/.local 
pip3.9 install --upgrade pip
pip3.9 install poetry
export PATH=~/.local/bin/:$PATH

For running tests or containers a running RabbitMQ on localhost is expected with guest/guest

Download

git clone https://github.com/sdss/lvmtan.git
cd lvmtan      

Build

# update local py env
poetry update

# build sdist & wheel
poetry build

# build tan container
poetry run container_build
# rebuild tan container from scratch
poetry run container_build --no-cache

Run container

# default config test.first.focus_stage-sim.conf
poetry run container_start
poetry run container_stop

# all stages config lvm.all-sim.conf
poetry run container_start --name lvm.all
poetry run container_stop --name lvm.all

# all stages config lvm.all-sim.conf and kill running container
poetry run container_start --kill --name lvm.all

# log of the running container, -f output appended data as the file grows.
podman logs -f lvm.all

# config test.first.focus_stage-svr.conf with real hardware
poetry run container_start --with-hw
poetry run container_stop

# derotator km with real hardware - check confige file config/test/derot/test.derot.km-dev.conf for correct MOD.TRAJ.CFG.CONNECTION.ADDRESS and MOD.TRAJ.CFG.CONNECTION.MODULE parameters
poetry run container_start --name test.derot.km --with-hw

# debug option, the local version is used instead of the latest github version when the container was built.
poetry run container_start --debug

Run tests

# run tests
poetry run pytest
# ... include slow tests with enabled log to stdout
poetry run pytest -p no:logging -s -v --runslow
# ... only test 02
poetry run pytest -k test_02_lvm_all.py
# ... without UI
DISPLAY= poetry run pytest -p no:logging -s -v -k test_02_lvm_all.py

Publish

# publish to pypi
poetry publish --username=USER --password=PASS
# build rpm package
poetry run python setup.py bdist_rpm
# build deb package - needs python3-stdeb
poetry run python setup.py --command-packages=stdeb.command bdist_deb

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sdss_lvmtan-0.3.6.tar.gz (38.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sdss_lvmtan-0.3.6-py3-none-any.whl (87.4 kB view details)

Uploaded Python 3

File details

Details for the file sdss_lvmtan-0.3.6.tar.gz.

File metadata

  • Download URL: sdss_lvmtan-0.3.6.tar.gz
  • Upload date:
  • Size: 38.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.3 Darwin/24.0.0

File hashes

Hashes for sdss_lvmtan-0.3.6.tar.gz
Algorithm Hash digest
SHA256 47f8d300cb73715205aded7b48352d3d6942afac3b7a6e40acd338431cc725ef
MD5 8d00a48200efca3e21a20a2ec8b32f84
BLAKE2b-256 07d41d5ddcc05f6cb3ae9d96d2f7c6bb009252d48038477caa19b09942a7c697

See more details on using hashes here.

File details

Details for the file sdss_lvmtan-0.3.6-py3-none-any.whl.

File metadata

  • Download URL: sdss_lvmtan-0.3.6-py3-none-any.whl
  • Upload date:
  • Size: 87.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.3 Darwin/24.0.0

File hashes

Hashes for sdss_lvmtan-0.3.6-py3-none-any.whl
Algorithm Hash digest
SHA256 1a5f2f69a4a3d88590bf0a983aecdb64809e6b9c94d9eded4e2c34dfed1dcd76
MD5 d25b2dccad032db5b7dc39916c2f24f9
BLAKE2b-256 5e110eb9b1a3f5c2917beed4887d78a0f2a3e738c4e311de8d3b627989616dff

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.3.6 This release

2 files

0.3.4

2 files

0.3.3

2 files

0.3.1

2 files

0.3.0

2 files

0.2.5

2 files

0.2.4

2 files

0.2.3

2 files

0.2.2

2 files

0.2.1

2 files

0.2.0

2 files

0.0.39

2 files

0.0.37

2 files

0.0.36

2 files

0.0.35

2 files

0.0.33

2 files

0.0.32

2 files

0.0.30.1

2 files

0.0.30

2 files

0.0.29

2 files

0.0.5

2 files

0.0.4

2 files

0.0.3

2 files

0.0.2

2 files

0.0.1

4 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page