Skip to content

Commit

Permalink
#3 Trying to use twine==4.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim55667757 committed Jul 23, 2022
1 parent 334fc41 commit 88521cd
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,24 @@ stages:
jobs:
include:
- stage: env-test-build-publish
name: "PRE-BUILDING - TESTING - BUILDING - PUBLISHING to PyPI"
name: "Stages: PRE-BUILDING -> TESTING -> BUILDING -> PUBLISHING to PyPI"
install:
- echo "PRE-BUILDING stage..."
- echo "---> Running PRE-BUILDING stage..."
- python -m pip install --upgrade pip --force-reinstall
- pip install setuptools==59.5.0
- pip install twine==4.0.1
- pip install -r requirements.txt
before_script:
- export PYTHONPATH=$PYTHONPATH:$PWD:$PWD/tksbrokerapi:$PWD/tests
- env
script:
- echo "TESTING stage..."
- echo "---> Running TESTING stage..."
- pytest tests -v --disable-pytest-warnings
- echo "BUILDING stage..."
- echo "---> Running BUILDING stage..."
- python setup.py sdist bdist_wheel
- echo "PUBLISHING to PyPI stage..."
- echo "---> Running PUBLISHING to PyPI stage..."
- python -m twine upload --verbose dist/* --skip-existing
after_failure:
- echo "Some issues occurred. See full logs."
after_success:
- echo "All stages PRE-BUILDING - TESTING - BUILDING - PUBLISHING to PyPI — done"
- echo "All stages PRE-BUILDING -> TESTING -> BUILDING -> PUBLISHING to PyPI — done"

0 comments on commit 88521cd

Please # to comment.