Skip to content

Don't import __version__ as __init__ will be executed and try to import uninstalled dependencies #66

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 15, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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