libSG: Scene Generation Library
Reason this release was yanked:
Incorrect python version requirement
Project description
scene-builder
Local testing:
pip install --upgrade build
python -m build
pip install -e .
Running Scene Builder Flask App
Fetch stk/scenestate data and place under your FLASK_BASEDIR
.
FLASK_BASEDIR=~/work/floorplanner/data flask --app libsg/app.py --debug run
curl localhost:5000/scene/retrieve/
curl -X POST -H 'Content-Type:application/json' -d @object_add_category_position.json http://127.0.0.1:5000/object/add -o object_add_category_position_output.json
curl -X POST -H 'Content-Type:application/json' -d @object_remove_category.json http://127.0.0.1:5000/object/remove -o object_remove_category_output.json
Packaging
Below packaging follows guidelines at https://packaging.python.org/en/latest/tutorials/packaging-projects/
Generate tokens on pypi and store in .pypirc
file as below:
[testpypi]
username = __token__
password = pypi-XXX
[pypi]
username = __token__
password = pypi-XXX
NOTE: uploads with a specific version are only allowed once.
Thus, be careful about current version
tag in pyproject.toml
file.
Deploying test package:
pip install --upgrade build twine
python -m build
python -m twine upload --repository testpypi dist/*
python -m pip install --index-url https://test.pypi.org/simple/ --no-deps libsg
Deploying package to real pypi index is same as above except for much simpler upload and install commands:
python -m twine upload dist/*
pip install libsg
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
libsg-0.0.1rc5.tar.gz
(82.4 kB
view hashes)
Built Distribution
libsg-0.0.1rc5-py3-none-any.whl
(25.5 kB
view hashes)