# lvmtan

[](https://sdss-lvmtan.readthedocs.io/en/latest/?badge=latest)
[](https://travis-ci.org/sdss/lvmtan)
[](https://codecov.io/gh/sdss/lvmtan)
Lvm Tan Clu Wrapper
## Features
- CLU based wrapper for [TwiceAsNice](https://svn.mpia.de/trac/gulli/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
Raw data
{
"_id": null,
"home_page": "https://github.com/sdss/lvmtan",
"name": "sdss-lvmtan",
"maintainer": null,
"docs_url": null,
"requires_python": "<4,>=3.8",
"maintainer_email": null,
"keywords": "astronomy, software",
"author": "Florian Briegel",
"author_email": "briegel@mpia.de",
"download_url": "https://files.pythonhosted.org/packages/07/d4/1d5ddcc05f6cb3ae9d96d2f7c6bb009252d48038477caa19b09942a7c697/sdss_lvmtan-0.3.6.tar.gz",
"platform": null,
"description": "# lvmtan\n\n\n[](https://sdss-lvmtan.readthedocs.io/en/latest/?badge=latest)\n[](https://travis-ci.org/sdss/lvmtan)\n[](https://codecov.io/gh/sdss/lvmtan)\n\nLvm Tan Clu Wrapper\n\n## Features\n\n- CLU based wrapper for [TwiceAsNice](https://svn.mpia.de/trac/gulli/TwiceAsNice/)\n- Uses a container for deployment and testing. \n- Uses podman\u00b9 for building the container.\n\n\u00b9 Setting an alias to use docker might work.\n\n alias podman=\"sudo docker\"\n \n## Note\n\nAs of version 0.0.9 the container is renamed from ubuntu_lvmt_tan to lvmtan\n\n## Quickstart\nBeginning with version 0.0.9 the container doesnt have to be build, a container is download automatically from github.\n\n git clone https://github.com/sdss/lvmtan.git\n cd lvmtan \n poetry run container_start --kill --name lvm.all\n\n## Prerequisites\n\nSome linux distributions do not have python >= 3.7 as the standard python3 version.\n\n### Centos 8.X\n\n # as root\n yum install python38\n # as user \n python3.8 -m pip install --user --upgrade pip\n pip3.8 install poetry\n export PATH=~/.local/bin/:$PATH\n\n### OpenSuSe 15.2/15.3\n\n # as root\n zypper ar https://download.opensuse.org/repositories/devel:/languages:/python:/Factory/openSUSE_Leap_15.2/ devel_python\n zypper install python39-devel\n # as user \n python3.9 -m ensurepip --default-pip # Alternatve: python3.9 -m venv ~/.local \n pip3.9 install --upgrade pip\n pip3.9 install poetry\n export PATH=~/.local/bin/:$PATH\n\nFor running tests or containers a running RabbitMQ on localhost is expected with guest/guest\n\n## Download\n git clone https://github.com/sdss/lvmtan.git\n cd lvmtan \n\n\n## Build\n # update local py env\n poetry update\n \n # build sdist & wheel\n poetry build\n \n # build tan container\n poetry run container_build\n # rebuild tan container from scratch\n poetry run container_build --no-cache\n \n## Run container\n\n # default config test.first.focus_stage-sim.conf\n poetry run container_start\n poetry run container_stop\n \n # all stages config lvm.all-sim.conf\n poetry run container_start --name lvm.all\n poetry run container_stop --name lvm.all\n \n # all stages config lvm.all-sim.conf and kill running container\n poetry run container_start --kill --name lvm.all\n\n # log of the running container, -f output appended data as the file grows.\n podman logs -f lvm.all\n\n # config test.first.focus_stage-svr.conf with real hardware\n poetry run container_start --with-hw\n poetry run container_stop\n \n # 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\n poetry run container_start --name test.derot.km --with-hw\n \n # debug option, the local version is used instead of the latest github version when the container was built.\n poetry run container_start --debug\n \n## Run tests \n\n # run tests\n poetry run pytest\n # ... include slow tests with enabled log to stdout\n poetry run pytest -p no:logging -s -v --runslow\n # ... only test 02\n poetry run pytest -k test_02_lvm_all.py\n # ... without UI\n DISPLAY= poetry run pytest -p no:logging -s -v -k test_02_lvm_all.py\n \n \n## Publish\n # publish to pypi\n poetry publish --username=USER --password=PASS\n # build rpm package\n poetry run python setup.py bdist_rpm\n # build deb package - needs python3-stdeb\n poetry run python setup.py --command-packages=stdeb.command bdist_deb\n",
"bugtrack_url": null,
"license": "BSD-3-Clause",
"summary": "Lvm Tan Clu Wrapper",
"version": "0.3.6",
"project_urls": {
"Documentation": "https://sdss-lvmtan.readthedocs.org",
"Homepage": "https://github.com/sdss/lvmtan",
"Repository": "https://github.com/sdss/lvmtan"
},
"split_keywords": [
"astronomy",
" software"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "5e110eb9b1a3f5c2917beed4887d78a0f2a3e738c4e311de8d3b627989616dff",
"md5": "d25b2dccad032db5b7dc39916c2f24f9",
"sha256": "1a5f2f69a4a3d88590bf0a983aecdb64809e6b9c94d9eded4e2c34dfed1dcd76"
},
"downloads": -1,
"filename": "sdss_lvmtan-0.3.6-py3-none-any.whl",
"has_sig": false,
"md5_digest": "d25b2dccad032db5b7dc39916c2f24f9",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4,>=3.8",
"size": 87360,
"upload_time": "2024-10-01T16:26:00",
"upload_time_iso_8601": "2024-10-01T16:26:00.152692Z",
"url": "https://files.pythonhosted.org/packages/5e/11/0eb9b1a3f5c2917beed4887d78a0f2a3e738c4e311de8d3b627989616dff/sdss_lvmtan-0.3.6-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "07d41d5ddcc05f6cb3ae9d96d2f7c6bb009252d48038477caa19b09942a7c697",
"md5": "8d00a48200efca3e21a20a2ec8b32f84",
"sha256": "47f8d300cb73715205aded7b48352d3d6942afac3b7a6e40acd338431cc725ef"
},
"downloads": -1,
"filename": "sdss_lvmtan-0.3.6.tar.gz",
"has_sig": false,
"md5_digest": "8d00a48200efca3e21a20a2ec8b32f84",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4,>=3.8",
"size": 38673,
"upload_time": "2024-10-01T16:26:01",
"upload_time_iso_8601": "2024-10-01T16:26:01.502803Z",
"url": "https://files.pythonhosted.org/packages/07/d4/1d5ddcc05f6cb3ae9d96d2f7c6bb009252d48038477caa19b09942a7c697/sdss_lvmtan-0.3.6.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-10-01 16:26:01",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "sdss",
"github_project": "lvmtan",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "sdss-lvmtan"
}