-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
81 lines (72 loc) · 3.02 KB
/
setup.py
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
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from pathlib import Path
import sys
from setuptools import setup, find_packages
HERE = Path(__file__).resolve().parent
sys.path.insert(0, HERE.stem)
sys.path.insert(0, HERE.joinpath("/yoda_powers/").stem)
import yoda_powers
# auto build console_scripts entry
from yoda_powers import scripts
console_scripts_list = []
for script in scripts.list_scripts:
if "__init__" not in script.name:
txt = f"{script.name} = yoda_powers.scripts.{script.stem}:main"
console_scripts_list.append(txt)
########################################################################
# main function
def main():
setup(
name=yoda_powers.__name__,
version=yoda_powers.__version__,
description="Use it to import very handy functions.",
long_description_content_type='text/x-rst',
long_description=HERE.joinpath('README.rst').open(encoding='utf-8').read(),
# these are optional and override conf.py settings
command_options={
'build_sphinx': {
'project' : ('setup.py', yoda_powers.__name__),
'version' : ('setup.py', yoda_powers.__version__),
'release' : ('setup.py', yoda_powers.__version__),
'source_dir': ('setup.py', './docs/source'),
'build_dir' : ('setup.py', './docs/build'),
}},
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Other Environment',
'Intended Audience :: Developers',
'Intended Audience :: End Users/Desktop',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3.7',
'Natural Language :: English',
],
author="Sébastien Ravel",
author_email="[email protected]",
url="https://github.com/sravel/yoda-powers",
download_url="https://github.com/sravel/yoda-powers/archive/{}.tar.gz".format(yoda_powers.__version__),
platforms=['cross-platform', 'Windows i686', 'MacOSX AMD64'],
keywords=[
'python',
],
packages=find_packages(),
package_data={
'yoda_powers': ['*.ini'],
},
include_package_data=True,
install_requires=[
'BioPython',
],
options={
'bdist_wheel': {'universal': True}
},
# scripts=['./yoda_powers/scripts/'],
zip_safe=False,
entry_points={
yoda_powers.__name__: [yoda_powers.__name__ + " = __init__"],
'console_scripts' : console_scripts_list
},
)
if __name__ == '__main__':
main()