
# Bump version in 
# /polsartools/version.json
#  __version__.py
#  __init__.py
# conda-recipe/meta.yaml
# docs/source/conf.py

v0.10 [to do]

full-pol <-> compact pol 
convert_C and convert_T
mrslab dual-pol functions
rectangular window
NISAR GCOV
NISAR-ISCE3?
NISAR incidence angle
EOS-04
Sentinel-1 GRD
Fix ALOS-1 reader
# tests

from polsartools.tests.test_all import test_all
test_all()

from polsartools.tests.test_utils import test_utils_processing
test_utils_processing()

from polsartools.tests.test_filters import test_filters_processing 
test_filters_processing()



# BUILD DOCS
sphinx-build -M clean docs/source docs/build
sphinx-build -M html docs/source docs/build
sphinx-build -M latexpdf docs/source docs/build

# PyPI
python -m build or 
python setup.py bdist_wheel
python setup.py sdist

# build Wheels
cibuildwheel
copy the wheels to bdist_wheel folder

# UPLOAD to PyPI
python -m twine check dist/*
python -m twine upload dist/*
enter token

# build Conda packages
cd conda-recipe
conda build .
# conda build --python=3.9 .
# conda build --python=3.10 .

# UPLOAD to conda
anaconda upload //AppData/Local/anaconda3/conda-bld/win-64/polsartools-0.6.1-py38_0.conda


conda build purge


################### REFERNCES
https://packaging.python.org/en/latest/tutorials/packaging-projects/
https://realpython.com/pypi-publish-python-package/
https://betterscientificsoftware.github.io/python-for-hpc/tutorials/python-pypi-packaging/
