-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
97 lines (96 loc) · 4.43 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
import os, sys
from setuptools import setup, find_packages
#
## requirements are in "requirements.txt"
reqs = sorted(set(map(lambda line: line.strip(),
filter(lambda line: len( line.strip( ) ) != 0,
open( 'requirements.txt', 'r').readlines()))))
setup(
name = 'nprstuff',
version = '1.0',
#
## following advice on find_packages excluding tests from https://setuptools.readthedocs.io/en/latest/setuptools.html#using-find-packages
packages = find_packages( exclude = ["*.tests", "*.tests.*", "tests" ] ),
# package_dir = { "": "nprstuff" },
url = 'https://github.com/tanimislam/nprstuff',
license = 'BSD-2-Clause',
author = 'Tanim Islam',
author_email = '[email protected]',
description = 'I like NPR, so I made some scripts to download my favorite programs from NPR.',
#
## classification: where in package space does "nprstuff live"?
## follow (poorly) advice I infer from https://blog.ionelmc.ro/2014/05/25/python-packaging/#the-setup-script
classifiers=[
# complete classifier list: http://pypi.python.org/pypi?%3Aaction=list_classifiers
'Development Status :: 5 - Production/Stable',
'Intended Audience :: End Users/Desktop',
'License :: OSI Approved :: BSD License',
'Operating System :: POSIX',
'Environment :: Console',
'Environment :: X11 Applications :: Qt',
'Programming Language :: Python :: 3',
# uncomment if you test on these interpreters:
# 'Programming Language :: Python :: Implementation :: IronPython',
# 'Programming Language :: Python :: Implementation :: Jython',
# 'Programming Language :: Python :: Implementation :: Stackless',
'Topic :: Utilities',
'Topic :: Multimedia',
],
#
## requirements
install_requires = reqs,
python_requires = '>=3.5',
#
## the executables I am creating
entry_points = {
'console_scripts' : [
"music_to_m4a = nprstuff.cli.music_to_m4a:_main",
"nprconfig = nprstuff.cli.nprconfig:main",
#
## freshair CLI stuff
"freshair = nprstuff.cli.freshair:_freshair",
"freshair_crontab = nprstuff.cli.freshair:_freshair_crontab",
"freshair_by_year = nprstuff.cli.freshair:_freshair_by_year",
"freshair_fix_crontab = nprstuff.cli.freshair:_freshair_fix_crontab",
#
## extra CLI stuff (new functionality)
"convertImage_youtube = nprstuff.cli.convertImage_youtube:_main",
"display = nprstuff.cli.display:_main",
"download_surahs = nprstuff.cli.download_surahs:_main",
"titleit = nprstuff.cli.titleit:_main",
#
## thisamericanlife CLI stuff
"thisamericanlife = nprstuff.cli.thisamericanlife:_main",
"thisamericanlife_crontab = nprstuff.core.thisamericanlife:thisamericanlife_crontab",
"thisamericanlife_remaining = nprstuff.core.thisamericanlife:get_american_life_remaining",
#
## waitwait CLI stuff
"waitwait = nprstuff.cli.waitwait:_waitwait",
"waitwait_crontab = nprstuff.cli.waitwait:_waitwait_crontab",
"waitwait_by_year = nprstuff.cli.waitwait:_waitwait_by_year",
#
## now gui stuff
"nprstuff_gui_maingui = nprstuff.cli.gui:_maingui",
"nprstuff_gui_lightspeed = nprstuff.cli.gui:_lightspeed",
"nprstuff_gui_medium = nprstuff.cli.gui:_medium",
"nprstuff_gui_newyorker = nprstuff.cli.gui:_newyorker",
"nprstuff_gui_nytimes = nprstuff.cli.gui:_nytimes",
"nprstuff_gui_vqronline = nprstuff.cli.gui:_vqronline",
"rest_email = nprstuff.cli.rest_email:main",
#
## gui2 stuff, superseded by what's in howdy project
"nprstuff_gui2_loginwindow = nprstuff.cli.gui2:_loginwindow",
"nprstuff_gui2_mainapp = nprstuff.cli.gui2:_mainapp",
]
},
#
## big fatass WTF because setuptools is unclear about whether I can give a directory that can then be resolved by
## other resources
## here is the link to the terrible undocumented documentation: https://setuptools.readthedocs.io/en/latest/setuptools.html#including-data-files
package_data = {
"nprstuff" : [
"resources/*.png", "resources/fonts/*.ttf",
"resources/fonts/*.otf", "resources/icons/*.png"
]
}
)