-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rewrite GUI branch with reorganize_package branch
The original package folder organization has been restored.
- Loading branch information
1 parent
b289fc3
commit e806de9
Showing
69 changed files
with
91 additions
and
198 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
recursive-include examples * | ||
include thermocepstrum/utils/plot_style.mplstyle | ||
include thermocepstrum/setup.json | ||
include thermocepstrum_gui/assets/icon.gif | ||
include thermocepstrum_gui/assets/languages.json | ||
include LICENSE.txt | ||
include thermocepstrum/README.md | ||
include thermocepstrum/README_GUI.md | ||
include thermocepstrum/metadata.json | ||
include thermocepstrum/utils/plot_style.mplstyle | ||
exclude thermocepstrum/utils/blocks.py | ||
exclude thermocepstrum/utils/blockanalysis.py | ||
prune thermocepstrum/old_src | ||
include thermocepstrum_gui/README_GUI.md | ||
include thermocepstrum_gui/assets/icon.gif | ||
include thermocepstrum_gui/assets/languages.json |
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 was deleted.
Oops, something went wrong.
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,50 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
from __future__ import absolute_import | ||
from setuptools import setup, find_packages | ||
from os import path | ||
import sys | ||
import json | ||
|
||
GUI_dependencies = [ | ||
"future-fstrings", | ||
"markdown2", | ||
"pillow>=5.4.0", | ||
"tk-html-widgets", | ||
"uncertainties" | ||
] | ||
|
||
if sys.version_info[0] == 2: | ||
INSTALL_GUI = False | ||
sys.stderr.write("************* GUI does not support Python 2: it will not be installed. That's a pity! *************") | ||
elif sys.version_info[0] == 3: | ||
INSTALL_GUI = True | ||
|
||
|
||
if __name__ == '__main__': | ||
THIS_FOLDER = path.split(path.abspath(__file__))[0] | ||
|
||
with open(path.join(THIS_FOLDER, 'README.md'), 'r') as fh: | ||
long_description = fh.read() | ||
|
||
with open(path.join(THIS_FOLDER, 'setup.json'), 'r') as info: | ||
SETUP_JSON = json.load(info) | ||
|
||
if INSTALL_GUI: | ||
exclude_packages = [] | ||
SETUP_JSON['install_requires'] += GUI_dependencies | ||
SETUP_JSON['entry_points']['console_scripts'] += ["thermocepstrum-gui = thermocepstrum_gui.main:run"] | ||
with open(path.join(THIS_FOLDER, 'thermocepstrum/metadata.json'), 'w') as fh: | ||
json.dump(SETUP_JSON, fh) | ||
else: | ||
exclude_packages = ['thermocepstrum_gui*'] | ||
|
||
setup(include_package_data=True, | ||
packages=find_packages(exclude=exclude_packages), | ||
long_description=long_description, | ||
long_description_content_type='text/markdown', | ||
# setup_requires=['reentry'], | ||
**SETUP_JSON) | ||
|
||
# https://packaging.python.org/guides/distributing-packages-using-setuptools/#setup-args | ||
# https://setuptools.readthedocs.io/en/latest/setuptools.html#including-data-files |
File renamed without changes.
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 @@ | ||
../examples/data |
File renamed without changes.
This file was deleted.
Oops, something went wrong.
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 @@ | ||
../README.md |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
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 @@ | ||
../README_GUI.md |
File renamed without changes.
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
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 was deleted.
Oops, something went wrong.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.