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

v0.10
updated:
    renamed all function identifiers according to reviwer suggestion
    updated yamaguchi_4c with c++
    minor bug fixes in output datatypes
    added dev_template folder for testing new functions
added: 
    sensors: 
            import_chyaan2_cp,
            import_s1_grd,
            import_alos2_wbd_l11,

    functions:
            dprbic,
            dprsic,
            powers_dp_grd,
            dprbi,
            dprsi,
            powers_dp, 
            

v0.11 [to do]
MRSLab functions image-wide parameters
full-pol <-> compact pol 
convert_C and convert_T
rectangular window
NISAR GCOV
NISAR-ISCE3?
NISAR incidence angle
EOS-04
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/
