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
|
#!/usr/bin/env python3
import distutils.core
from setuptools import setup
import subprocess
import os, os.path
import sys
ver = "1.0"
def read(filename):
return open(os.path.join(os.path.dirname(__file__), filename)).read()
def dir_copy(dirname):
return (dirname, [dirname+'/'+f for f in os.listdir(dirname)])
if sys.version_info < (3,0):
print('Oops, only python >= 3.0 supported!')
sys.exit()
class MakeCommand(distutils.core.Command):
sub_commands = None
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
subprocess.call('make')
setup(name = 'ponysay',
version = ver,
description = 'cowsay with ponies',
license = 'WTFPL',
author = 'jaseg',
author_email = 'ponysay@jaseg.net',
url = 'https://github.com/jaseg/ponysay',
py_modules = ['ponysay'],
data_files = [dir_copy('quotes'),
dir_copy('ponies')],
scripts = ['ponysay',
'ponythink',
'termcenter',
'ponysay-qotd'],
zip_safe = False,
classifiers = [
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Information Technology',
'Intended Audience :: Intended Audience :: End Users/Desktop',
'License :: Freely Distributable',
'License :: Public Domain',
'Natural Language :: English',
'Programming Language :: Python :: 3',
'Topic :: Games/Entertainment',
'Topic :: Internet',
'Topic :: System :: Networking'
'Topic :: Text Processing :: Filters',
'Topic :: Utilities',
],
cmdclass = {'build_ext': MakeCommand},
long_description = read('README.md'),
dependency_links = [],
)
|