Here are few useful commands to build and deploy the package.
python3 -m pip install twine build
Then to build the project use,
python3 -m build --sdistto create a minimal source distribution.python3 -m build --wheelto build wheel binary files that anyone can easily install.
Run a check using twine using twine check dist/*.
Finally, upload to pypi using twine upload dist/*
To generate documentation, use
- Use the
mintlify AI doc generatorto generate docstring from code using explainer AI. Usenumpytype documentation. sphinx-apidoc -o docs/ -d 3 ./srcto generate the rst files.- Run the makefile
make.batwithhtmlargument, i.e.,make clean && make htmlinside./docsfolder. - The generated html files will be present inside
_buildfolder.
- Run
pytest --cov-report term-missing --cov=decompy tests/for testing development. - To generate test badges run the commands:
pytest --cov-report term-missing --cov=decompy --junitxml=reports/junit/junit.xml tests/genbadge testscoverage-badge -o coverage.svgflake8 ./src/decompy --exit-zero --htmldir ./reports/flake8 --output-file ./reports/flake8/flake8stats.txtgenbadge flake8