root/setup.py

Revision 78:91320384b276, 3.2 kB (checked in by almad, 2 years ago)

[svn] Refactor: Use ArticleVersion? (to support versioning), but without breaking current API.

Line 
1 """Installs CherryPy using distutils
2
3 Run:
4     python setup.py install
5
6 to install this package.
7 """
8
9 ###
10 #PyArticle: Pythonic way to article handling
11 #Copyright (C) 2006 Lukas "Almad" Linhart http://www.almad.net/
12 #
13 #This library is free software; you can redistribute it and/or
14 #modify it under the terms of the GNU Lesser General Public
15 #License as published by the Free Software Foundation; either
16 #version 2.1 of the License, or (at your option) any later version.
17 #
18 #This library is distributed in the hope that it will be useful,
19 #but WITHOUT ANY WARRANTY; without even the implied warranty of
20 #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
21 #Lesser General Public License for more details.
22 #
23 #You should have received a copy of the GNU Lesser General Public
24 #License along with this library; if not, write to the Free Software
25 #Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
26 ###
27
28
29 from distutils.core import setup
30 from distutils.command.install import INSTALL_SCHEMES
31 import sys
32
33 required_python_version = '2.4'
34
35 ###############################################################################
36 # arguments for the setup command
37 ###############################################################################
38 name = "pyarticle"
39 version = "0.1_beta1"
40 desc = "Pythonic way to article handling"
41 long_desc = """Module for handling articles in CMS/blogs/etc: convert articles from various
42 input formats to various publishing formats."""
43 classifiers=[
44     "Development Status :: 4 - Beta",
45     "Intended Audience :: Developers",
46     "License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)",
47     "Operating System :: OS Independent",
48     "Programming Language :: Python",
49     "Topic :: Software Development :: Documentation",
50     "Topic :: Software Development :: Libraries :: Python Modules",
51     "Topic :: Text Processing",
52     "Topic :: Text Processing :: Markup :: HTML",
53     "Topic :: Text Processing :: Markup :: XML"
54 ]
55 author="Lukas Almad Linhart"
56 author_email="bugs@almad.net"
57 url="http://projects.almad.net/pyarticle"
58 cp_license="LGPL"
59 packages=[
60     "pyarticle"
61 ]
62 scripts = ['bin/pyarticle']
63 download_url="http://projects.almad.net/pyarticle/wiki/Download"
64 data_files=[]
65 ###############################################################################
66 # end arguments for setup
67 ###############################################################################
68
69 def main():
70     if sys.version < required_python_version:
71         s = "I'm sorry, but %s %s requires Python %s or later."
72         print s % (name, version, required_python_version)
73         sys.exit(1)
74
75     # set default location for "data_files" to platform specific "site-packages"
76     # location
77     for scheme in INSTALL_SCHEMES.values():
78         scheme['data'] = scheme['purelib']
79
80     setup(
81         name=name,
82         version=version,
83         description=desc,
84         long_description=long_desc,
85         classifiers=classifiers,
86         author=author,
87         author_email=author_email,
88         url=url,
89         license=cp_license,
90         packages=packages,
91         download_url=download_url,
92         data_files=data_files,
93         scripts=scripts
94     )
95
96 if __name__ == "__main__":
97     main()
Note: See TracBrowser for help on using the browser.