[F] Fix #192
This commit is contained in:
parent
20e93689b6
commit
5519dd16a0
1 changed files with 6 additions and 5 deletions
11
setup.py
11
setup.py
|
@ -1,12 +1,13 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
import pathlib
|
from pathlib import Path
|
||||||
|
|
||||||
from setuptools import setup, find_namespace_packages
|
from setuptools import setup, find_namespace_packages
|
||||||
|
|
||||||
from hyfetch.__version__ import VERSION
|
|
||||||
|
|
||||||
# The directory containing this file
|
# The directory containing this file
|
||||||
HERE = pathlib.Path(__file__).parent
|
HERE = Path(__file__).parent
|
||||||
|
|
||||||
|
# Load version without importing it (see issue #192 if you are confused)
|
||||||
|
for l in (HERE / 'hyfetch' / '__version__.py').read_text().strip().splitlines():
|
||||||
|
exec(l)
|
||||||
|
|
||||||
# The text of the README file
|
# The text of the README file
|
||||||
README = (HERE / "README.md").read_text('utf-8')
|
README = (HERE / "README.md").read_text('utf-8')
|
||||||
|
|
Loading…
Reference in a new issue