Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions python/pypipublish-test.sh
Original file line number Diff line number Diff line change
@@ -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 ..
4 changes: 2 additions & 2 deletions python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" },
]
Expand Down