summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorVal Neekman (AvidCoder) <un33kvu@gmail.com>2022-02-16 16:11:08 -0500
committerVal Neekman (AvidCoder) <un33kvu@gmail.com>2022-02-16 16:11:08 -0500
commitad33581c491fd16cd64930fe02c862c04595550b (patch)
treef73629c4901dfcffdd4ab7b5df6e3b57384a3059 /setup.py
parent9b9b68f512edecf209d9af977d2080194ff55d88 (diff)
downloadpython-slugify-ad33581c491fd16cd64930fe02c862c04595550b.tar.gz
version file, github action
Diffstat (limited to 'setup.py')
-rwxr-xr-xsetup.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/setup.py b/setup.py
index 769f5a1..8adc159 100755
--- a/setup.py
+++ b/setup.py
@@ -37,7 +37,7 @@ def get_version(package):
"""
Return package version as listed in `__version__` in `init.py`.
"""
- init_py = codecs.open(os.path.join(package, '__init__.py'), encoding='utf-8').read()
+ init_py = codecs.open(os.path.join(package, '__version__.py'), encoding='utf-8').read()
return re.search("^__version__ = ['\"]([^'\"]+)['\"]", init_py, re.MULTILINE).group(1)