Mercurial > repos > kls286 > chap_test_20230328
comparison 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 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:cbbe42422d56 |
---|---|
1 """ | |
2 Standard python setup.py file | |
3 to build : python setup.py build | |
4 to install : python setup.py install --prefix=<some dir> | |
5 to clean : python setup.py clean | |
6 to build doc : python setup.py doc | |
7 to run tests : python setup.py test | |
8 """ | |
9 | |
10 import os | |
11 import setuptools | |
12 | |
13 def datafiles(idir, pattern=None): | |
14 """Return list of data files in provided relative dir""" | |
15 files = [] | |
16 for dirname, dirnames, filenames in os.walk(idir): | |
17 for subdirname in dirnames: | |
18 files.append(os.path.join(dirname, subdirname)) | |
19 for filename in filenames: | |
20 if filename[-1] == '~': | |
21 continue | |
22 # match file name pattern (e.g. *.css) if one given | |
23 if pattern and not fnmatch.fnmatch(filename, pattern): | |
24 continue | |
25 files.append(os.path.join(dirname, filename)) | |
26 return files | |
27 | |
28 data_files = datafiles('examples') | |
29 | |
30 with open("README.md", "r") as fh: | |
31 long_description = fh.read() | |
32 | |
33 setuptools.setup( | |
34 name="ChessAnalysisPipeline", | |
35 version="0.0.1", | |
36 author="Keara Soloway, Rolf Verberg, Valentin Kuznetsov", | |
37 author_email="", | |
38 description="CHESS analysis pipeline framework", | |
39 long_description=long_description, | |
40 long_description_content_type="text/markdown", | |
41 url="https://github.com/CHESSComputing/ChessAnalysisPipeline", | |
42 packages=['CHAP', 'MLaaS'], | |
43 package_dir={'CHAP': 'CHAP', 'MLaaS': 'MLaaS'}, | |
44 package_data={'examples': data_files}, | |
45 scripts=['scripts/CHAP'], | |
46 classifiers=[ | |
47 "Programming Language :: Python :: 3", | |
48 "License :: OSI Approved :: MIT License", | |
49 "Operating System :: OS Independent", | |
50 ], | |
51 python_requires='>=3.8', | |
52 install_requires=[ | |
53 'PyYAML' | |
54 ], | |
55 ) |