Skip to content

Commit

Permalink
Merge pull request #66 from automata-tech/feature/fix_setup
Browse files Browse the repository at this point in the history
Don't import __version__ as __init__ will be executed and try to import uninstalled dependencies
  • Loading branch information
LouisBrunner authored Jul 15, 2020
2 parents 1f8249c + 4a4d717 commit 62575fa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:
run: |
export VERSION=`echo $VERSION_RAW | sed -E 's;.*/v(.*)$;\1;'`
sed -i 's/%VERSION%/'$VERSION'/' evasdk/version.py
sed -i 's/%VERSION%/'$VERSION'/' setup.py
python setup.py sdist bdist_wheel
- name: Publish a Python distribution to PyPI
uses: pypa/gh-action-pypi-publish@v1.3.0
Expand Down
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import setuptools
from evasdk.version import __version__

version = '%VERSION%' # Replaced by the publish.yml workflow

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

setuptools.setup(
name='evasdk',
version=__version__,
version=version,
description='SDK for the Automata Eva robotic arm',
author='Automata',
license='Apache License 2.0',
Expand Down

0 comments on commit 62575fa

Please sign in to comment.