Skip to content
This repository has been archived by the owner on Oct 3, 2020. It is now read-only.

Commit

Permalink
Feature/universal wheel (#13)
Browse files Browse the repository at this point in the history
* added setup.cfg

* fixed flake8 complaint in setup.py

* patch up sed command to work on darwin
  • Loading branch information
lorochka85 authored and hjacobs committed Jul 21, 2017
1 parent 8d12b35 commit 83e473f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
6 changes: 5 additions & 1 deletion release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@ git --version

version=$1

sed -i "s/__version__ = .*/__version__ = '${version}'/" */__init__.py
if [[ "$OSTYPE" == "darwin"* ]]; then
sed -i "" "s/__version__ = .*/__version__ = '${version}'/" */__init__.py
else
sed -i "s/__version__ = .*/__version__ = '${version}'/" */__init__.py
fi

# Do not tag/push on Go CD
if [ -z "$GO_PIPELINE_LABEL" ]; then
Expand Down
2 changes: 2 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[bdist_wheel]
universal=1
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ def read_version(package):
if line.startswith('__version__ = '):
return line.split()[-1].strip().strip('\'')


NAME = 'clickclick'
MAIN_PACKAGE = 'clickclick'
VERSION = read_version(MAIN_PACKAGE)
Expand Down

0 comments on commit 83e473f

Please sign in to comment.