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

Metadata

Release files for sdss-lvmtan 0.3.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sdss-lvmtan 0.3.6
File Size Uploaded
sdss_lvmtan-0.3.6.tar.gz 38.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sdss-lvmtan 0.3.6
File Interpreter ABI Platform
sdss_lvmtan-0.3.6-py3-none-any.whl Python 3 none any Details

Total release size: 126.0 kB

Release files / sdss_lvmtan-0.3.6.tar.gz

Download URL sdss_lvmtan-0.3.6.tar.gz
Size 38.7 kB
Tags Source
SHA-256 checksum
How to use checksums
47f8d300cb73715205aded7b48352d3d6942afac3b7a6e40acd338431cc725ef
BLAKE2b-256 checksum
How to use checksums
07d41d5ddcc05f6cb3ae9d96d2f7c6bb009252d48038477caa19b09942a7c697
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.12.3 Darwin/24.0.0

Release files / sdss_lvmtan-0.3.6-py3-none-any.whl

Download URL sdss_lvmtan-0.3.6-py3-none-any.whl
Size 87.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1a5f2f69a4a3d88590bf0a983aecdb64809e6b9c94d9eded4e2c34dfed1dcd76
BLAKE2b-256 checksum
How to use checksums
5e110eb9b1a3f5c2917beed4887d78a0f2a3e738c4e311de8d3b627989616dff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.12.3 Darwin/24.0.0

Release history Release notifications | RSS feed

This release

0.3.6 This release

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

4 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page