Removed the debian directory from the 'upstream' source in preparation
setup.py
1 #!/usr/bin/python
2
3 # - setup.py -
4 # This file is part of mp3togo
5
6 # Convert audio files to play on a mp3 player
7 #
8 # (c) Simeon Veldstra 2004, 2006 <reallifesim@gmail.com>
9 #
10 # This software is free.
11 #
12 # This program is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License for more details.
16 #
17 # You may redistribute this program under the terms of the
18 # GNU General Public Licence version 2
19 # Available in this package or at http://www.fsf.org
20
21 import sys, os
22
23 from distutils.core import setup
24
25 import mp3togo
26
27 ## Sort out the version number from the containing directory
28 #release = os.path.basename(os.getcwd()).split('-')[1]
29 #fp = file("mp3togo/__init__.py", 'r')
30 #inlines = fp.readlines()
31 #fp.close()
32 #outlines = []
33 #for line in inlines:
34 # if line.startswith('version = '):
35 # outlines.append("version = '%s'\n" % release)
36 # else:
37 # outlines.append(line)
38 #fp = file("mp3togo/__init__.py", 'w')
39 #fp.writelines(outlines)
40 #fp.close()
41
42 # patch distutils if it can't cope with the "classifiers" or
43 # "download_url" keywords
44
45 release = mp3togo.version
46
47 if sys.version < '2.2.3':
48 from distutils.dist import DistributionMetadata
49 DistributionMetadata.classifiers = None
50 DistributionMetadata.download_url = None
51
52 setup(name = "mp3togo",
53 version = release,
54 url="http://puddle.ca/mp3togo/",
55 download_url="http://puddle.ca/mp3togo/dist/",
56 description = "Archive manager for portable mp3 players",
57 author = "Simeon Veldstra",
58 author_email = "reallifesim@gmail.com",
59 maintainer = "Simeon Veldstra",
60 maintainer_email = "reallifesim@gmail.com",
61 license = "GNU GPL v2",
62 long_description = """
63 mp3togo loads mp3, ogg vorbis, flac and wav files on to a portable
64 mp3 player by decoding them (if required) and reencoding in a
65 consistent lower bitrate mp3 (or vorbis) format. The idea is to
66 take music from a library of diverse archival quality encodings
67 and convert it to a space efficient format playable on a portable
68 device.
69
70 mp3togo will run as a stand alone program or can be imported to
71 use its components in another program.
72
73 The package installs a command line executable named mp3togo
74 in /usr/bin, for command line options, run `mp3togo --help`.""",
75 packages = ["mp3togo"],
76 #data_files = [('/usr/bin', ['bin/mp3togo'])],
77 scripts = ['bin/mp3togo'],
78 classifiers = [
79 'Development Status :: 4 - Beta',
80 'Environment :: Console',
81 'Intended Audience :: End Users/Desktop',
82 'Intended Audience :: System Administrators',
83 'License :: OSI Approved :: GNU General Public License (GPL)',
84 'Operating System :: POSIX :: Linux',
85 'Natural Language :: English',
86 'Programming Language :: Python',
87 'Topic :: Multimedia :: Sound/Audio :: Conversion',
88 'Topic :: Utilities'
89 ]
90 )