-
Notifications
You must be signed in to change notification settings - Fork 4
Fix/installation #28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Fix/installation #28
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
2dacb32
changes to version and setup
bhatiaharsh 5c3c2a2
WIP
bhatiaharsh f25d3e9
server entry point
bhatiaharsh 15c3cd8
updated setup
bhatiaharsh 99ba56b
moved argparser out of operations
bhatiaharsh a7e49a2
moved notebook and manager to server dir
bhatiaharsh e199529
Blacken the code
jarusified 7703e2f
Remove unused variables and commented lines
jarusified 7691372
Add checks to avoid pushing all data and example content
jarusified 6fe651b
Update readme and docs; Add pipreqs
jarusified File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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
File renamed without changes.
This file contains hidden or 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 hidden or 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,7 @@ | ||
| # Copyright 2017-2020 Lawrence Livermore National Security, LLC and other | ||
| # CallFlow Project Developers. See the top-level LICENSE file for details. | ||
| # | ||
| # SPDX-License-Identifier: MIT | ||
|
|
||
| __version_info__ = ("1", "1", "0") | ||
| __version__ = ".".join(__version_info__) |
This file contains hidden or 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 hidden or 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,12 @@ | ||
| pandas | ||
| numpy | ||
| flask | ||
| flask_socketio | ||
| colorlog==4.1.0 | ||
| statsmodels==0.10.1 | ||
| hatchet==1.0.1 | ||
| matplotlib==3.1.1 | ||
| jsonschema==3.0.2 | ||
| networkx==2.2 | ||
| colorlog | ||
| statsmodels | ||
| matplotlib | ||
| sklearn | ||
| jsonschema | ||
| eventlet | ||
| hatchet | ||
| scipy==1.3.1 | ||
| numpy==1.17.2 | ||
| pandas==0.23.0 | ||
| Flask_SocketIO==4.2.1 | ||
| ipython==7.18.1 | ||
| scikit_learn==0.23.2 |
This file contains hidden or 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,15 @@ | ||
| # Copyright 2017-2020 Lawrence Livermore National Security, LLC and other | ||
| # CallFlow Project Developers. See the top-level LICENSE file for details. | ||
| # | ||
| # SPDX-License-Identifier: MIT | ||
|
|
||
| from .notebook_server import _load_ipython_extension | ||
|
|
||
|
|
||
| def load_ipython_extension(ipython): | ||
| """IPython API entry point. | ||
| Only intended to be called by the IPython runtime. | ||
| See: | ||
| https://ipython.readthedocs.io/en/stable/config/extensions/index.html | ||
| """ | ||
| _load_ipython_extension(ipython) |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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,34 +1,101 @@ | ||
| # Copyright 2017-2020 Lawrence Livermore National Security, LLC and other | ||
| # Hatchet Project Developers. See the top-level LICENSE file for details. | ||
| # CallFlow Project Developers. See the top-level LICENSE file for details. | ||
| # | ||
| # SPDX-License-Identifier: MIT | ||
|
|
||
| import os | ||
| from setuptools import setup, find_packages | ||
| from callflow import __version__ | ||
|
|
||
| # ------------------------------------------------------------------------------ | ||
| # get the version safely! | ||
| from codecs import open | ||
|
|
||
| version = {} | ||
| vfile = os.path.join( | ||
| os.path.dirname(os.path.abspath(__file__)), "callflow", "version.py" | ||
| ) | ||
| with open(vfile) as fp: | ||
| exec(fp.read(), version) | ||
| version = version["__version__"] | ||
|
|
||
|
|
||
| # ------------------------------------------------------------------------------ | ||
| # Only allow folders in https://github.com/LLNL/CallFlow/tree/develop/data to be added. | ||
| # For now we are hard-coding this. | ||
| # TODO: Find a more automated solution. | ||
| _GITHUB_DATA_FOLDERS = [ | ||
| "caliper-cali", | ||
| "caliper-lulesh-json", | ||
| "hpctoolkit-cpi-database", | ||
| ] | ||
|
|
||
| # Only allow jupyter notebooks in https://github.com/LLNL/CallFlow/tree/develop/example to be added. | ||
| _GITHUB_EXAMPLE_FILES = [ | ||
| "%callflow-ipython-magic.ipynb", | ||
| "CallFlow-python-interface-demo.ipynb", | ||
| ] | ||
|
|
||
|
|
||
| # gather the data to be copied | ||
| def list_files(directory, whitelist_files=[], whitelist_folders=[]): | ||
| paths = [] | ||
| if len(whitelist_folders) > 0: | ||
| for item in os.listdir(directory): | ||
| if item in whitelist_folders: | ||
| for (path, directories, filenames) in os.walk( | ||
| os.path.join(directory, item) | ||
| ): | ||
| if ".callflow" not in path.split("/"): | ||
| paths.append((path, [os.path.join(path, f) for f in filenames])) | ||
|
|
||
| if len(whitelist_files) > 0: | ||
| for (path, directories, filenames) in os.walk(directory): | ||
| paths.append( | ||
| ( | ||
| path, | ||
| [os.path.join(path, f) for f in filenames if f in whitelist_files], | ||
| ) | ||
| ) | ||
| return paths | ||
|
|
||
|
|
||
| data_files = list_files("data", whitelist_folders=_GITHUB_DATA_FOLDERS) | ||
| example_files = list_files("examples", whitelist_files=_GITHUB_EXAMPLE_FILES) | ||
|
|
||
|
|
||
| deps = [ | ||
| "flask_socketio", | ||
| "ipython", | ||
| "colorlog", | ||
| "jsonschema", | ||
| "numpy", | ||
| "scipy", | ||
| "pandas", | ||
| "scikit_learn", | ||
| "statsmodels", | ||
| "hatchet", | ||
| "networkx", | ||
| "matplotlib", | ||
| ] | ||
| # ------------------------------------------------------------------------------ | ||
| # now set up | ||
| setup( | ||
| name="CallFlow", | ||
| version=__version__, | ||
| version=version, | ||
| license="MIT", | ||
| description="", | ||
| url="https://github.com/LLNL/CallFlow", | ||
| author="Suraj Kesavan, Huu Tan Nguyen", | ||
| author="Suraj Kesavan", | ||
| author_email="spkesavan@ucdavis.edu", | ||
| classifiers=[ | ||
| "Development Status :: 3 - Alpha", | ||
| "License :: OSI Approved :: MIT License", | ||
| ], | ||
| keywords="", | ||
| packages=find_packages(), | ||
| install_requires=[ | ||
| "numpy", | ||
| "pandas", | ||
| "tables", | ||
| "flask", | ||
| "flask_socketio", | ||
| "sklearn", | ||
| "statsmodels", | ||
| "networkx == 2.2", | ||
| "hatchet", | ||
| ], | ||
| data_files=data_files + example_files, | ||
| entry_points={"console_scripts": ["callflow_server = server.callflow_server:main"]}, | ||
| install_requires=deps, | ||
| ) | ||
|
|
||
| # ------------------------------------------------------------------------------ | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.