-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·135 lines (117 loc) · 5.44 KB
/
setup.py
File metadata and controls
executable file
·135 lines (117 loc) · 5.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
#!/usr/bin/env python
##
## COSMO's 'setup.py'
##
## Author: Kevin Ernst <kevin.ernst -at- cchmc.org>
## Date: 6 September 2025
## Reference: https://setuptools.readthedocs.io/en/latest/setuptools.html#basic-use
##
import os
from setuptools import setup, find_packages
PROJECT_NAME = 'cosmo'
VERSION = '1.1.3'
PROJECTHOME = 'https://github.com/weirauchlab/cosmo'
# read and reformat a file suitable for 'long_description'
# source: https://pythonhosted.org/an_example_pypi_project/setuptools.html
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
if __name__ == '__main__':
setup(
name=PROJECT_NAME,
version=VERSION,
packages=find_packages(),
scripts=["cosmo.py", "cosmostats.py"],
# any required packages; see https://www.python.org/dev/peps/pep-0440
# > For example, the following groups of version clauses are equivalent:
# >
# > ~= 2.2
# > >= 2.2, == 2.*
# >
# > ~= 1.4.5
# > >= 1.4.5, == 1.4.*
# you can use, e.g., 'pip list | grep -i pandas' to see the current version
# ref: https://setuptools.readthedocs.io/en/latest/setuptools.html#declaring-dependencies
#install_requires=["pandas~=0.20"],
install_requires=read('requirements.txt'),
# use this option if, for example, your package requires non-Python code
# files to function, and you want to keep those alongside the code
#package_data={
# # If any package contains any support files, include them
# "": ["*.txt", "*.dat"],
# # And include any *.dat files found in the "lib" package, too:
# "lib": ["*.dat"],
#},
# metadata to display on PyPI (and in the output of 'pip show')
author="Jeremy Riddell",
author_email="riddeljr@mail.uc.edu",
description="COSMO Composite Motif Scanner - detects enriched composite " \
"motifs in genomic sequence data",
keywords="motif genomics sequence scanning jaspar cisbp",
long_description=read('README.md'),
# project home page, if any
url=PROJECTHOME,
# could also include download_url, etc
# ref: https://setuptools.readthedocs.io/en/latest/setuptools.html#metadata
# an arbitrary map of URL names to hyperlinks, beyond what's provided by
# 'url' and 'download_url'
project_urls={
"Bug Tracker": PROJECTHOME + '/issues',
"Documentation": PROJECTHOME + '#readme',
"Source Code": PROJECTHOME,
},
# reference: https://choosealicense.com
# should match the "License" classifier below
#license = 'MIT / GPL / BSD', # choose one
license = 'GPLv3',
#license_file = 'LICENSE.txt',
# reference: https://pypi.org/classifiers/
classifiers=[
#"Development Status :: 1 - Planning",
#"Development Status :: 2 - Pre-Alpha",
#"Development Status :: 3 - Alpha",
#"Development Status :: 4 - Beta",
"Development Status :: 5 - Production/Stable",
#"Development Status :: 6 - Mature",
#"Development Status :: 7 - Inactive",
"Environment :: Console",
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2 :: Only",
"Programming Language :: Python :: 2.7",
#"Programming Language :: Python :: 3",
#"Programming Language :: Python :: 3 :: Only",
#"Programming Language :: Python :: 3.6",
#"Programming Language :: Python :: 3.7",
#"Programming Language :: Python :: 3.8",
# make sure this matches the 'license' parameter above
"License :: OSI Approved",
# choose one (see reference above for the full list)
#"License :: OSI Approved :: MIT License",
#"License :: OSI Approved :: BSD License",
#"License :: OSI Approved :: Artistic License",
#"License :: OSI Approved :: GNU General Public License (GPL)",
#"License :: OSI Approved :: GNU General Public License v2 (GPLv2)",
#"License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
#"License :: OSI Approved :: Python Software Foundation License",
# who will use this?
#"Intended Audience :: Healthcare Industry",
#"Intended Audience :: Science/Research",
# add more classifiers later if it makese sense to; these are used to
# categorize and search for packages on PyPI
#"Topic :: Scientific/Engineering",
#"Topic :: Scientific/Engineering :: Medical Science Apps.",
#"Topic :: Scientific/Engineering :: Bio-Informatics",
#"Topic :: Utilities",
#"Topic :: Database",
],
# create an executable in users' PATH for Windows or Unix; reference:
# https://setuptools.pypa.io/en/latest/userguide/quickstart.html#entry-points-and-automatic-script-creation
# TOOD: some day; this doesn't work with "plain" .py scripts, though
#entry_points={
# "console_scripts": [
# "cosmo = cosmo:main",
# "cosmostats = cosmostats:main",
# ],
#}
)