Skip to content
Merged
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
38 changes: 19 additions & 19 deletions .github/workflows/test_and_publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,29 +38,29 @@ jobs:
run: |
python setup.py bdist_wheel

- name: Check if version exists on PyPI
id: check-version
run: |
PACKAGE_NAME=$(python setup.py --name)
PACKAGE_VERSION=$(python setup.py --version)
# - name: Check if version exists on PyPI
# id: check-version
# run: |
# PACKAGE_NAME=$(python setup.py --name)
# PACKAGE_VERSION=$(python setup.py --version)

RESPONSE=$(curl --silent --fail https://pypi.org/pypi/${PACKAGE_NAME}/json || echo "not found")
# RESPONSE=$(curl --silent --fail https://pypi.org/pypi/${PACKAGE_NAME}/json || echo "not found")

if echo "$RESPONSE" | grep -q '"releases"'; then
if echo "$RESPONSE" | jq -e ".releases | has(\"$PACKAGE_VERSION\")" >/dev/null; then
echo "Version ${PACKAGE_VERSION} already exists on PyPI."
echo "already_published=true" >> $GITHUB_ENV
else
echo "Version ${PACKAGE_VERSION} does not exist on PyPI."
echo "already_published=false" >> $GITHUB_ENV
fi
else
echo "Package does not exist on PyPI."
echo "already_published=false" >> $GITHUB_ENV
fi
# if echo "$RESPONSE" | grep -q '"releases"'; then
# if echo "$RESPONSE" | jq -e ".releases | has(\"$PACKAGE_VERSION\")" >/dev/null; then
# echo "Version ${PACKAGE_VERSION} already exists on PyPI."
# echo "already_published=true" >> $GITHUB_ENV
# else
# echo "Version ${PACKAGE_VERSION} does not exist on PyPI."
# echo "already_published=false" >> $GITHUB_ENV
# fi
# else
# echo "Package does not exist on PyPI."
# echo "already_published=false" >> $GITHUB_ENV
# fi

- name: Publish on PyPI
if: env.already_published == 'false'
# if: env.already_published == 'false'
run: |
pip install twine
export TWINE_USERNAME=__token__
Expand Down
6 changes: 1 addition & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,4 @@ dmypy.json
cython_debug/

# Debugging file
clearbox_synthetic/debug.py
tutorials/tabular_data/2_tabular_utility_evaluation.ipynb
tutorials/tabular_data/3_tabular_privacy_evaluation.ipynb
tutorials/tabular_data/4_tabular_data_augmentation_with_synthetic_kit.ipynb
tutorials/use_cases/
debug.py
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def copy_file(self, path, source_dir, destination_dir):
setup(
# Metadata about the package
name="clearbox-synthetic-kit",
version="0.6.9",
version="0.6.10",
author="Clearbox AI",
author_email="info@clearbox.ai",
description="Clearbox AI's all-in-one solution for generation and evaluation of synthetic tabular and time-series data.",
Expand Down
Loading