-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
77 lines (70 loc) · 1.89 KB
/
Copy pathsetup.py
File metadata and controls
77 lines (70 loc) · 1.89 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
from setuptools import setup, find_packages
name = 'rbco.scripts'
version = '0.0.1.dev0'
long_description = (
open('README.txt').read()
+ '\n' +
'Contributors\n'
'============\n'
+ '\n' +
open('CONTRIBUTORS.txt').read()
+ '\n' +
open('CHANGES.txt').read()
+ '\n'
)
def console_script(module, function='main'):
return '{script} = {project}.{module}:{function}'.format(
project=name,
script=module.split('.')[-1],
module=module,
function=function
)
console_script_modules = [
'datetime.ddiff',
'finance.parcelas',
'latex.latex2html_wrap',
'latex.latex_flatten',
'latex.latex_lift',
'latex.latex_showcites',
'misc.buildout_versions',
'misc.ack_ps',
'misc.ack_kill',
'misc.ack_find',
'misc.ftpserver',
'text.iconv_batch',
'text.oneline',
'text.rbeautifysql',
'music.cp_rand_albums',
]
setup(
name=name,
version=version,
description="Little assorted useful scripts.",
long_description=long_description,
# Get more strings from
# http://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
"Programming Language :: Python :: 2.7",
],
keywords='',
author='Rafael Oliveira',
author_email='rafaelbco@gmail.com',
url='http://github.com/rafaelbco/rbco.scripts',
license='gpl',
packages=find_packages('src'),
package_dir={'': 'src'},
namespace_packages=[name.split('.')[0]],
include_package_data=True,
zip_safe=False,
install_requires=[
'setuptools',
'clom>=0.7.4,<=0.7.999',
'docopt>=0.6.1,<=0.6.999',
'walkdir>=0.4.1,<=0.4.99',
'rbco.commandwrap>=0.0.2,<=0.0.999',
'prdg.util>=0.0.7,<=0.0.999',
'pathlib>=0.97',
'pyftpdlib>=1.3.0,<=1.3.999',
],
entry_points={'console_scripts': [console_script(m) for m in console_script_modules]},
)