From 24264a6409a1195a470bf63e9b91ba4369333112 Mon Sep 17 00:00:00 2001 From: Chinchien Lin Date: Tue, 9 Aug 2022 07:41:12 +0800 Subject: [PATCH 1/7] Add setup.py --- setup.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 setup.py diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..6d0b946 --- /dev/null +++ b/setup.py @@ -0,0 +1,10 @@ +from setuptools import setup, find_packages + +setup( + name="sparc_me", + version="0.0.2", + author="Thiranja Prasad Babarenda Gamage, Chinchien Lin, Savindi Wijenayaka, Michael Hoffman, Linkun Gao, Haribalan Kumar", + email="psam012@aucklanduni.ac.nz, clin864@aucklanduni.ac.nz", + license="Apache-2.0", + packages=find_packages() +) From 66fc5647e7c1cd5d112f0cffdc1f118de740379c Mon Sep 17 00:00:00 2001 From: Chinchien Lin Date: Tue, 9 Aug 2022 10:03:01 +0800 Subject: [PATCH 2/7] Update import in init --- sparc_me/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sparc_me/__init__.py b/sparc_me/__init__.py index 0f7efd4..e36f3d6 100644 --- a/sparc_me/__init__.py +++ b/sparc_me/__init__.py @@ -1,3 +1,3 @@ -from sparc_me.core.dataset import Dataset -from sparc_me.core.api_tools import Dataset_Api -from sparc_me.core.schema import Schema +from .core.dataset import Dataset +from .core.api_tools import Dataset_Api +from .core.schema import Schema, Validator From 240c6b763146f23c77e49122b053533051ca0b44 Mon Sep 17 00:00:00 2001 From: Chinchien Lin Date: Tue, 9 Aug 2022 10:04:33 +0800 Subject: [PATCH 3/7] Add dependencies to setup.py --- setup.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 6d0b946..51e5dfc 100644 --- a/setup.py +++ b/setup.py @@ -6,5 +6,14 @@ author="Thiranja Prasad Babarenda Gamage, Chinchien Lin, Savindi Wijenayaka, Michael Hoffman, Linkun Gao, Haribalan Kumar", email="psam012@aucklanduni.ac.nz, clin864@aucklanduni.ac.nz", license="Apache-2.0", - packages=find_packages() + packages=find_packages(), + install_requires=[ + 'pandas', + 'styleframe', + 'xlrd', + 'openpyxl', + 'jsonschema', + 'requests', + 'pybids' + ] ) From bbc351af3ebec96bfe8c3ddd65b4a56a77bedf21 Mon Sep 17 00:00:00 2001 From: Chinchien Lin Date: Tue, 9 Aug 2022 10:05:50 +0800 Subject: [PATCH 4/7] Add static data to release --- MANIFEST.in | 1 + setup.py | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 MANIFEST.in diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..aca8760 --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1 @@ +graft sparc_me/resources diff --git a/setup.py b/setup.py index 51e5dfc..2c384f7 100644 --- a/setup.py +++ b/setup.py @@ -2,11 +2,13 @@ setup( name="sparc_me", - version="0.0.2", + version="1.0.10", author="Thiranja Prasad Babarenda Gamage, Chinchien Lin, Savindi Wijenayaka, Michael Hoffman, Linkun Gao, Haribalan Kumar", email="psam012@aucklanduni.ac.nz, clin864@aucklanduni.ac.nz", license="Apache-2.0", packages=find_packages(), + include_package_data=True, + package_data={'': ['resources./*']}, install_requires=[ 'pandas', 'styleframe', From 8375e316c52c94c49007a92b930655a7568051bf Mon Sep 17 00:00:00 2001 From: Chinchien Lin Date: Tue, 9 Aug 2022 10:20:32 +0800 Subject: [PATCH 5/7] Add description to setup.py --- setup.py | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.py b/setup.py index 2c384f7..7a57c6a 100644 --- a/setup.py +++ b/setup.py @@ -3,6 +3,7 @@ setup( name="sparc_me", version="1.0.10", + description='The SPARC Metadata Editor (sparc-me) is a python tool to explore, enhance, and expand SPARC datasets and their descriptions in accordance with FAIR principles. Examples and tutorials are provided to demonstrate the use of the tool to programatically access curated datasets and their protocols, create new datasests, enhance dataset descriptions via schema extensions, conversion of data from other formats to the SPARC dataset structure, and demonstrates how the tool can be used with existing SPARC infrastructure such as o²S²PARC and the SciCrunch knowledgebase', author="Thiranja Prasad Babarenda Gamage, Chinchien Lin, Savindi Wijenayaka, Michael Hoffman, Linkun Gao, Haribalan Kumar", email="psam012@aucklanduni.ac.nz, clin864@aucklanduni.ac.nz", license="Apache-2.0", From afd2402f522f72283c3912f18f97115148cc6bfa Mon Sep 17 00:00:00 2001 From: Chinchien Lin Date: Tue, 9 Aug 2022 10:21:22 +0800 Subject: [PATCH 6/7] bump up version to 1.0.11 --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 7a57c6a..45b7d14 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ setup( name="sparc_me", - version="1.0.10", + version="1.0.11", description='The SPARC Metadata Editor (sparc-me) is a python tool to explore, enhance, and expand SPARC datasets and their descriptions in accordance with FAIR principles. Examples and tutorials are provided to demonstrate the use of the tool to programatically access curated datasets and their protocols, create new datasests, enhance dataset descriptions via schema extensions, conversion of data from other formats to the SPARC dataset structure, and demonstrates how the tool can be used with existing SPARC infrastructure such as o²S²PARC and the SciCrunch knowledgebase', author="Thiranja Prasad Babarenda Gamage, Chinchien Lin, Savindi Wijenayaka, Michael Hoffman, Linkun Gao, Haribalan Kumar", email="psam012@aucklanduni.ac.nz, clin864@aucklanduni.ac.nz", From 8a309c4834ae56bd83b0624bb510a8c760313c3b Mon Sep 17 00:00:00 2001 From: Chinchien Lin Date: Tue, 9 Aug 2022 10:27:01 +0800 Subject: [PATCH 7/7] Update description for setup.py --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 45b7d14..99fa436 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ setup( name="sparc_me", version="1.0.11", - description='The SPARC Metadata Editor (sparc-me) is a python tool to explore, enhance, and expand SPARC datasets and their descriptions in accordance with FAIR principles. Examples and tutorials are provided to demonstrate the use of the tool to programatically access curated datasets and their protocols, create new datasests, enhance dataset descriptions via schema extensions, conversion of data from other formats to the SPARC dataset structure, and demonstrates how the tool can be used with existing SPARC infrastructure such as o²S²PARC and the SciCrunch knowledgebase', + description='A python tool to explore, enhance, and expand SPARC datasets and their descriptions in accordance with FAIR principles.', author="Thiranja Prasad Babarenda Gamage, Chinchien Lin, Savindi Wijenayaka, Michael Hoffman, Linkun Gao, Haribalan Kumar", email="psam012@aucklanduni.ac.nz, clin864@aucklanduni.ac.nz", license="Apache-2.0",