Skip to content

Commit

Permalink
Fixed setup.py syntax error.
Browse files Browse the repository at this point in the history
  • Loading branch information
EraYaN committed Aug 11, 2019
1 parent 8ff11d3 commit baeb037
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,15 @@
from setuptools import setup, find_packages
import importlib

def find_version(
package_name: str, version_module_name: str = 'settings',
version_variable_name: str = '__version__') -> str:

def find_version(package_name: str, version_module_name: str = 'settings',
version_variable_name: str = '__version__') -> str:
"""Simulate behaviour of "from package_name.settings import __version__", and return VERSION."""
version_module = importlib.import_module(
'{}.{}'.format(package_name.replace('-', '_'), version_module_name))
return getattr(version_module, version_variable_name)


setup(
name='FletcherFiltering',
version=find_version('fletcherfiltering'),
Expand Down

0 comments on commit baeb037

Please sign in to comment.