diff setup.py @ 0:cbbe42422d56 draft

planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline/tree/galaxy commit 1401a7e1ae007a6bda260d147f9b879e789b73e0-dirty
author kls286
date Tue, 28 Mar 2023 15:07:30 +0000
parents
children 7cc954f15149
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/setup.py	Tue Mar 28 15:07:30 2023 +0000
@@ -0,0 +1,55 @@
+"""
+Standard python setup.py file
+to build     : python setup.py build
+to install   : python setup.py install --prefix=<some dir>
+to clean     : python setup.py clean
+to build doc : python setup.py doc
+to run tests : python setup.py test
+"""
+
+import os
+import setuptools
+
+def datafiles(idir, pattern=None):
+    """Return list of data files in provided relative dir"""
+    files = []
+    for dirname, dirnames, filenames in os.walk(idir):
+        for subdirname in dirnames:
+            files.append(os.path.join(dirname, subdirname))
+        for filename in filenames:
+            if  filename[-1] == '~':
+                continue
+            # match file name pattern (e.g. *.css) if one given
+            if pattern and not fnmatch.fnmatch(filename, pattern):
+                continue
+            files.append(os.path.join(dirname, filename))
+    return files
+
+data_files = datafiles('examples')
+
+with open("README.md", "r") as fh:
+    long_description = fh.read()
+
+setuptools.setup(
+    name="ChessAnalysisPipeline",
+    version="0.0.1",
+    author="Keara Soloway, Rolf Verberg, Valentin Kuznetsov",
+    author_email="",
+    description="CHESS analysis pipeline framework",
+    long_description=long_description,
+    long_description_content_type="text/markdown",
+    url="https://github.com/CHESSComputing/ChessAnalysisPipeline",
+    packages=['CHAP', 'MLaaS'],
+    package_dir={'CHAP': 'CHAP', 'MLaaS': 'MLaaS'},
+    package_data={'examples': data_files},
+    scripts=['scripts/CHAP'],
+    classifiers=[
+        "Programming Language :: Python :: 3",
+        "License :: OSI Approved :: MIT License",
+        "Operating System :: OS Independent",
+    ],
+    python_requires='>=3.8',
+    install_requires=[
+        'PyYAML'
+    ],
+)