From 4d90f8e726e5cc13c781c0c9443766c0ae59bbad Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Sat, 5 Aug 2023 09:12:44 -0700 Subject: [PATCH] Update config.yml --- .circleci/config.yml | 41 +++++++++++++++++++---------------------- 1 file changed, 19 insertions(+), 22 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 1941a65d7..32238a7b6 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -39,26 +39,23 @@ jobs: - run: name: PyPI publish command: | - if [ -n "$(git diff --name-only $CIRCLE_SHA1^..$CIRCLE_SHA1 | grep 'setup.py')" ]; then - echo "setup.py modified" - echo -e "[pypi]\nusername = __token__\npassword = $PYPI_API_TOKEN" > ~/.pypirc - python -m pip install --upgrade pip - pip install twine - pip install wheel - pip install --upgrade setuptools - echo "Building package" - python setup.py sdist bdist_wheel - echo "Twine upload to dist" - echo "$TWINE_USERNAME" - echo "$TWINE_PASSWORD" - echo "$PYPI_API_TOKEN" - echo "Contents of dist directory:" - ls dist/ - twine upload --verbose dist/* - else - echo "No changes to setup.py. Skipping PyPI publish." - circleci step halt - fi + # if [ -n "$(git diff --name-only $CIRCLE_SHA1^..$CIRCLE_SHA1 | grep 'setup.py')" ]; then + echo "setup.py modified" + echo -e "[pypi]\nusername = __token__\npassword = $PYPI_API_TOKEN" > ~/.pypirc + python -m pip install --upgrade pip + pip install twine + pip install wheel + pip install --upgrade setuptools + echo "Building package" + python setup.py sdist bdist_wheel + echo "Twine upload to dist" + echo "Contents of dist directory:" + ls dist/ + twine upload --verbose dist/* + # else + # echo "No changes to setup.py. Skipping PyPI publish." + # circleci step halt + # fi workflows: version: 2 @@ -67,8 +64,8 @@ workflows: - local_testing - publish_to_pypi: - requires: - - local_testing + # requires: + # - local_testing filters: branches: only: