Currently, the extension is only distributed as a Python package and published in PyPI.
This extension can be distributed as Python packages.
All the Python packaging instructions in the pyproject.toml
file to wrap your extension in a Python package.
-
Before generating a package, you need to install the following packages:
pip install build twine hatch
-
Bump the version in
package.json
Important
There is no need to update the version in pyproject.toml
as it is automatically updated by hatch
when generating the package.
-
Optional - if there is a newer release of
conda-store-ui
, update theconda-store-ui
dependency in thepackage.json
file.jlpm up @conda-store/conda-store-ui@<version>
-
To create a Python source package (
.tar.gz
) and the binary package (.whl
) in thedist/
directory, do:hatch build
python setup.py sdist bdist_wheel
is deprecated and will not work for this package.
-
Check the package contents with
twine check dist/*
-
Clean the local build files with
hatch clean
Important
The release.yml
GitHub action will automatically publish the package to PyPI when a new GitHub release is published. Unless absolutely necessary, do not publish the package manually.
If for whatever reason you need to publish the package manually, you can do so with:
twine upload dist/*