Skip to content

Commit 62575fa

Browse files
authored
Merge pull request #66 from automata-tech/feature/fix_setup
Don't import __version__ as __init__ will be executed and try to import uninstalled dependencies
2 parents 1f8249c + 4a4d717 commit 62575fa

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/publish.yml

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ jobs:
2525
run: |
2626
export VERSION=`echo $VERSION_RAW | sed -E 's;.*/v(.*)$;\1;'`
2727
sed -i 's/%VERSION%/'$VERSION'/' evasdk/version.py
28+
sed -i 's/%VERSION%/'$VERSION'/' setup.py
2829
python setup.py sdist bdist_wheel
2930
- name: Publish a Python distribution to PyPI
3031
uses: pypa/[email protected]

setup.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
import setuptools
2-
from evasdk.version import __version__
2+
3+
version = '%VERSION%' # Replaced by the publish.yml workflow
34

45
with open("README.md", "r") as fh:
56
long_description = fh.read()
67

78
setuptools.setup(
89
name='evasdk',
9-
version=__version__,
10+
version=version,
1011
description='SDK for the Automata Eva robotic arm',
1112
author='Automata',
1213
license='Apache License 2.0',

0 commit comments

Comments
 (0)