diff --git a/python/pypipublish-test.sh b/python/pypipublish-test.sh new file mode 100755 index 000000000..d0bb4ee03 --- /dev/null +++ b/python/pypipublish-test.sh @@ -0,0 +1,27 @@ +#! /bin/zsh +# pypipublish.sh +# Usage: From root of aiconfig repo, run ./scripts/pypipublish.sh + +# IMPORTANT NOTE: +# The testpypi repo has a 'aiconfig' package, +# so change name in pyproject.toml to 'aiconfig-python-test' or something. + +# NOTE: This assumes you have the aiconfig conda environment created. +# You will be prompted for a username and password. For the username, use __token__. +# For the password, use the token value, including the pypi- prefix. +# To get a PyPi token, go here: +# Need to get a token from here (scroll down to API Tokens): https://pypi.org/manage/account/ +# If you have issues, read the docs: https://packaging.python.org/en/latest/tutorials/packaging-projects/ + +cd python +rm -rf ./dist +source /opt/homebrew/Caskroom/miniconda/base/etc/profile.d/conda.sh && conda activate aiconfig +python3 -m pip install --upgrade build +python3 -m build +python3 -m pip install --upgrade twine + +# If you want to upload to prod , run pypipublish.sh. + +python3 -m twine upload --repository testpypi dist/* + +cd .. diff --git a/python/pyproject.toml b/python/pyproject.toml index 9a9870e10..89cdb807f 100644 --- a/python/pyproject.toml +++ b/python/pyproject.toml @@ -2,8 +2,8 @@ requires = ["setuptools", "wheel"] [project] -name = "python-aiconfig" -version = "1.1.8" +name = "python-aiconfig-test" +version = "1.1.23" authors = [ { name="Sarmad Qadri", email="sarmad@lastmileai.dev" }, ]