stac-utils / stactools

Command line utility and Python library for STAC
https://stactools.readthedocs.io/
Other
105 stars 28 forks source link

Include py.typed in packaging #452

Closed gadomski closed 1 year ago

gadomski commented 1 year ago

Related Issue(s):

Description:

Manually tested by running python -m build in a fresh venv and checking the created files:

$ python -m build >/dev/null 2>&1
$ tar -tvf dist/stactools-0.4.8.tar.gz | grep py.typed
-rw-r--r--  0 gadomski staff       0 Jun 30 08:34 stactools-0.4.8/src/stactools/cli/py.typed
-rw-r--r--  0 gadomski staff       0 Jun 30 08:34 stactools-0.4.8/src/stactools/core/py.typed
-rw-r--r--  0 gadomski staff       0 Jun 30 08:34 stactools-0.4.8/src/stactools/testing/py.typed
$ pip install dist/stactools-0.4.8-py3-none-any.whl >/dev/null
$ mypy -c "from stactools.core.io.xml import XmlElement"
Success: no issues found in 1 source file

PR checklist:

jsignell commented 1 year ago

ah good call. Yeah this looks right