-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed bug in setup.py where version file loading failed due to missing deps.
- Loading branch information
Showing
7 changed files
with
73 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
__version__ = "3.1.3" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,21 @@ | ||
"""Setup for pyIndego.""" | ||
import os | ||
from setuptools import find_packages, setup | ||
|
||
with open("README.md", "r") as fh: | ||
current_dir = os.path.dirname(os.path.realpath(__file__)) | ||
|
||
# Little hack to load the version.py file without loading the __init__.py. | ||
# As that would fail (when deps are not yet installed). | ||
__version__ = None | ||
with open(os.path.join(current_dir, "pyIndego", "version.py"), "r") as fh: | ||
exec(fh.read()) | ||
|
||
with open(os.path.join(current_dir, "README.md"), "r") as fh: | ||
long_description = fh.read() | ||
|
||
setup( | ||
name="pyIndego", | ||
version="3.1.1", | ||
version=__version__, | ||
author="jm-73, sander1988", | ||
author_email="[email protected]", | ||
description="API for Bosch Indego mower", | ||
|