Skip to content

Commit

Permalink
Fix undefined reference to __version__ in setup.py and remove '# noqa…
Browse files Browse the repository at this point in the history
…: F821 pylint: disable=undefined-variable'. You can test this fix by changing the 'version' in version.py and then running from the command line: python3 setup.py --version
  • Loading branch information
jbampton authored and chriddyp committed Jan 22, 2018
1 parent 9a4c50c commit 39d614d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ dist
*egg-info*
npm-debug*
/.tox
.idea
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import io
from setuptools import setup, find_packages


exec(open('dash/version.py').read()) # pylint: disable=exec-used
main_ns = {}
exec(open('dash/version.py').read(), main_ns) # pylint: disable=exec-used

setup(
name='dash',
version=__version__, # noqa: F821 pylint: disable=undefined-variable
version=main_ns['__version__'],
author='chris p',
author_email='[email protected]',
packages=find_packages(exclude=['tests*']),
Expand Down

0 comments on commit 39d614d

Please sign in to comment.