Skip to content

Commit

Permalink
refractor
Browse files Browse the repository at this point in the history
  • Loading branch information
bitranox committed Aug 1, 2020
1 parent 5d55c78 commit 51a14fc
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 9 deletions.
3 changes: 2 additions & 1 deletion .docs/README_template.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
lib_platform
============

Version v1.2.5 as of 2020-08-01, see `Changelog`_.

Version v1.2.5 as of 2020-08-01 see `Changelog`_


.. include:: ./badges.rst
Expand Down
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ matrix:
- export BUILD_DOCS="False"
- export DEPLOY_SDIST="False"
- export DEPLOY_WHEEL="False"
- export DEPLOY_TEST="True"
- export DEPLOY_TEST="False"
- export MYPY_STRICT="True"


Expand Down
3 changes: 2 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
lib_platform
============

Version v1.2.5 as of 2020-08-01, see `Changelog`_.

Version v1.2.5 as of 2020-08-01 see `Changelog`_

|travis_build| |license| |jupyter| |pypi|

Expand Down
8 changes: 2 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,8 @@


def is_travis_deploy() -> bool:
if 'DEPLOY' not in os.environ:
return False
if os.environ['DEPLOY'].lower() == 'true' and is_tagged_commit():
return True
else:
return False
if os.getenv('DEPLOY_SDIST', '') or os.getenv('DEPLOY_WHEEL', ''):
return is_tagged_commit()


def is_tagged_commit() -> bool:
Expand Down

0 comments on commit 51a14fc

Please sign in to comment.