core tools covering folder content, markdown, GUI
lindworm is a pure python package.
Python 3 is required
use of anaconda recommended.
packages used:
images are converted into embedded python script by wx.tools.img2py
.
bulk convert can be performed by executing encode_bitmaps.py
in workspace root.
python encode_bitmaps.py med
argument <x>
select encode_<x>.py
to be processed.
command_lines = [
"-u -i -n BtnGn00 v_img/baseGn00a.ico lindworm/ldmWidImgMed.py",
"-a -u -n BtnGn01 v_img/baseGn01a.ico lindworm/ldmWidImgMed.py",
]
run setup.py
in project root folder,
e.g. following line to create binary wheel file.
python setup.py bdist_wheel
generated wheel file reside in folder ./dist
:
lindworm-x.y.z-py3-none-any.whl
assuming lindworm/__init__.py
has variable __version__
set.
__version__ = "x.y.z"
pip install ./dist/lindworm-x.y.z-py3-none-any.whl
source install
python setup.py install
in case version number is not changed, pip will not install update, therefore package can be uninstalled.
pip uninstall ./dist/lindworm-x.y.z-py3-none-any.whl
steps to perform on linux (CentOS) to publish on pypi.
python3 setup.py sdist bdist_wheel
twine upload dist/*
Python: Env File
to ${workspaceFolder}/dlp.env
dlp.env
add current workspace folder to python search path,
therefore enable package import without having to install in advance.
Very useful for performing unit tests.
PYTHONPATH=${workspaceFolder}:${PYTHONPATH}
some manual found online