root/setup.py

Revision 329:1a31753974c5, 3.0 kB (checked in by Stefan Schwarzer <sschwarzer@sschwarzer.net>, 1 year ago)
Increased version to 0.3.1.
  • Property exe set to *
Line 
1 #! /usr/bin/env python
2 # Copyright (C) 2007, Stefan Schwarzer
3 #
4 # Permission is hereby granted, free of charge, to any person
5 # obtaining a copy of this software and associated documentation files
6 # (the "Software"), to deal in the Software without restriction,
7 # including without limitation the rights to use, copy, modify, merge,
8 # publish, distribute, sublicense, and/or sell copies of the Software,
9 # and to permit persons to whom the Software is furnished to do so,
10 # subject to the following conditions:
11 #
12 # The above copyright notice and this permission notice shall be
13 # included in all copies or substantial portions of the Software.
14 #
15 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16 # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17 # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18 # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
19 # BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
20 # ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21 # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 # SOFTWARE.
23
24 """
25 setup.py - installation script for Python distutils
26 """
27
28 import sys
29
30 from distutils import core
31 from distutils import sysconfig
32
33
34 _name = "websourcebrowser"
35 _package = "websourcebrowser"
36 _version = "0.3.1"
37 _data_target = "%s/%s" % (sysconfig.get_python_lib(), _package)
38
39 if sys.platform == "win32":
40     scripts = ["scripts/wsbrowser.py"]
41 else:
42     scripts = ["scripts/wsbrowser"]
43
44 core.setup(
45   # installation data
46   name=_name,
47   version=_version,
48   packages=[_package],
49   package_dir={_package: ""},
50   scripts=scripts,
51   data_files=[(_data_target, ["websourcebrowser.css",
52                               "README.txt", "README.html"])],
53   # metadata
54   author="Stefan Schwarzer",
55   author_email="sschwarzer@sschwarzer.net",
56   url="http://websourcebrowser.sschwarzer.net/",
57   description="A program to quickly browse unknown project source files",
58   keywords="Source code, browser, web frontend, local, remote",
59   license="Open source (MIT license)",
60   platforms=["Pure Python (Python version >= 2.3)"],
61   long_description="""\
62 Websourcebrowser makes it easy to visually scan trees of source
63 code. In particular, you can view the directory tree and the source
64 code of a file side by side, so you can quickly change to a different
65 file.""",
66   download_url=
67     "http://websourcebrowser.sschwarzer.net/trac/attachment/wiki/Download/%s-%s.tar.gz?format=raw" %
68     (_name, _version),
69   classifiers=[
70     "Development Status :: 3 - Alpha",
71     "Environment :: Web Environment",
72     "Intended Audience :: Developers",
73     "Intended Audience :: End Users/Desktop",
74     "Intended Audience :: System Administrators",
75     "License :: OSI Approved :: MIT License",
76     "Natural Language :: English",
77     "Operating System :: OS Independent",
78     "Programming Language :: Python",
79     # any more which apply? (see
80     #  http://pypi.python.org/pypi?%3Aaction=list_classifiers )
81     "Topic :: Desktop Environment :: File Managers",
82     "Topic :: Software Development",
83     "Topic :: Utilities",
84     ]
85   )
86
Note: See TracBrowser for help on using the browser.