diff --git a/release.sh b/release.sh index ce92b9d..17f16e3 100755 --- a/release.sh +++ b/release.sh @@ -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 diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..3c6e79c --- /dev/null +++ b/setup.cfg @@ -0,0 +1,2 @@ +[bdist_wheel] +universal=1 diff --git a/setup.py b/setup.py index 6605227..3ee6151 100755 --- a/setup.py +++ b/setup.py @@ -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)