-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #32 from IBM/v0.1.2.2b
V0.1.2.2
- Loading branch information
Showing
9 changed files
with
116 additions
and
28 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
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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
# Copyright IBM All Rights Reserved. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
import os | ||
import setuptools | ||
|
||
########################################################### | ||
|
@@ -17,13 +18,34 @@ | |
with open("README.md", "r") as fh: | ||
long_description = fh.read() | ||
|
||
version = '0.1.2.1' | ||
############################################################################### | ||
# To get the __version__. | ||
# See https://packaging.python.org/guides/single-sourcing-package-version/ | ||
# This avoids doing an `import dse_do_supply_chain`, which is causing problems | ||
# installing in a WML DO deployment | ||
############################################################################### | ||
def read(rel_path: str) -> str: | ||
here = os.path.abspath(os.path.dirname(__file__)) | ||
# intentionally *not* adding an encoding option to open, See: | ||
# https://github.com/pypa/virtualenv/issues/201#issuecomment-3145690 | ||
with open(os.path.join(here, rel_path)) as fp: | ||
return fp.read() | ||
|
||
def get_version(rel_path: str) -> str: | ||
for line in read(rel_path).splitlines(): | ||
if line.startswith("__version__"): | ||
delim = '"' if '"' in line else "'" | ||
return line.split(delim)[1] | ||
raise RuntimeError("Unable to find version string.") | ||
############################################################################### | ||
|
||
# version = '0.1.2.2b2' | ||
|
||
setuptools.setup( | ||
name="dse_do_dashboard", | ||
# version=dse_do_dashboard.__version__, | ||
# version=__version__, | ||
version=version, | ||
version=get_version("dse_do_dashboard/version.py"), | ||
author="Victor Terpstra", | ||
author_email="[email protected]", | ||
description="Decision Optimization Dashboard for IBM Cloud Pak for Data DO projects", | ||
|
@@ -39,8 +61,8 @@ | |
'dash-bootstrap-templates', | ||
'dash_pivottable', | ||
'dash_daq', | ||
'sqlalchemy>=1.3.23, <1.4', | ||
'pandas<1.4', # Pandas 1.4 requires sqlalchemy 1.4, see https://pandas.pydata.org/docs/dev/whatsnew/v1.4.0.html | ||
'sqlalchemy>=1.3.23', | ||
'pandas', # Pandas 1.4 requires sqlalchemy 1.4, see https://pandas.pydata.org/docs/dev/whatsnew/v1.4.0.html | ||
'plotly', # 5.5.0 is causing problems installing on CPD | ||
'openpyxl', | ||
'diskcache', # For long-running callbacks | ||
|