Skip to content

Commit

Permalink
Fix sed commands to only replace tensorflow not `tensorflow-addon…
Browse files Browse the repository at this point in the history
…s`. (#548)

* Use 5 sed commands to replace TensorFlow only.

Each of the following gets mapped to tensorflow-cpu:

  * tensorflow~=
  * tensorflow==
  * tensorflow>=
  * tensorflow<=
  * tensorflow!=

* Update version to 0.10.0-rc.2
  • Loading branch information
willgraf committed Aug 16, 2021
1 parent 403dde1 commit 0004df9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/pypi.yaml
Expand Up @@ -44,7 +44,11 @@ jobs:

- name: Build a source distribution
run: |
sed -i "s/tensorflow/tensorflow-cpu/g" setup.py
sed -i "s/tensorflow~=/tensorflow-cpu~=/g" setup.py
sed -i "s/tensorflow==/tensorflow-cpu==/g" setup.py
sed -i "s/tensorflow>=/tensorflow-cpu>=/g" setup.py
sed -i "s/tensorflow<=/tensorflow-cpu<=/g" setup.py
sed -i "s/tensorflow!=/tensorflow-cpu!=/g" setup.py
sed -i -e "/__title__ =/ s/= .*/= 'DeepCell-CPU'/" deepcell/_version.py
python setup.py sdist
Expand Down
2 changes: 1 addition & 1 deletion deepcell/_version.py
Expand Up @@ -27,7 +27,7 @@
__title__ = 'DeepCell'
__description__ = 'Deep learning for single cell image segmentation'
__url__ = 'https://github.com/vanvalenlab/deepcell-tf'
__version__ = '0.10.0-rc.1'
__version__ = '0.10.0-rc.2'
__download_url__ = '{}/tarball/{}'.format(__url__, __version__)
__author__ = 'The Van Valen Lab'
__author_email__ = 'vanvalen@caltech.edu'
Expand Down

0 comments on commit 0004df9

Please sign in to comment.