annotate setup.py @ 6238:6834bb5473da

Summary: Constrain format of classname and document Define the format of a valid classname. Updated design doc, function doc and glossary to document format. Error message for case where we have a redefinition of a classname now says why ValueError is raised since we are raising ValueError for incorrect classname format as well. Tests for all cases including verification of cause for ValueError exceptions.
author John Rouillard <rouilj@ieee.org>
date Tue, 28 Jul 2020 06:24:39 -0400
parents 043a8ffd79ad
children 48fa77813563
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
85
fe0b33370244 Made setup.py executable, added id and log.
Richard Jones <richard@users.sourceforge.net>
parents: 78
diff changeset
1 #! /usr/bin/env python
4717
9dc50be521ee Make roundup play nice with setup tools (for using with virtualenv)
Pradip Caulagi <caulagi@gmail.com>
parents: 4693
diff changeset
2 # -*- coding: utf-8 -*-
213
d45384bc6420 Added the copyright/license notice to (nearly) all files...
Richard Jones <richard@users.sourceforge.net>
parents: 210
diff changeset
3 #
d45384bc6420 Added the copyright/license notice to (nearly) all files...
Richard Jones <richard@users.sourceforge.net>
parents: 210
diff changeset
4 # Copyright (c) 2001 Bizar Software Pty Ltd (http://www.bizarsoftware.com.au/)
d45384bc6420 Added the copyright/license notice to (nearly) all files...
Richard Jones <richard@users.sourceforge.net>
parents: 210
diff changeset
5 # This module is free software, and you may redistribute it and/or modify
d45384bc6420 Added the copyright/license notice to (nearly) all files...
Richard Jones <richard@users.sourceforge.net>
parents: 210
diff changeset
6 # under the same terms as Python, so long as this copyright message and
d45384bc6420 Added the copyright/license notice to (nearly) all files...
Richard Jones <richard@users.sourceforge.net>
parents: 210
diff changeset
7 # disclaimer are retained in their original form.
d45384bc6420 Added the copyright/license notice to (nearly) all files...
Richard Jones <richard@users.sourceforge.net>
parents: 210
diff changeset
8 #
214
18134bffab37 stupid typo
Richard Jones <richard@users.sourceforge.net>
parents: 213
diff changeset
9 # IN NO EVENT SHALL BIZAR SOFTWARE PTY LTD BE LIABLE TO ANY PARTY FOR
213
d45384bc6420 Added the copyright/license notice to (nearly) all files...
Richard Jones <richard@users.sourceforge.net>
parents: 210
diff changeset
10 # DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING
d45384bc6420 Added the copyright/license notice to (nearly) all files...
Richard Jones <richard@users.sourceforge.net>
parents: 210
diff changeset
11 # OUT OF THE USE OF THIS CODE, EVEN IF THE AUTHOR HAS BEEN ADVISED OF THE
d45384bc6420 Added the copyright/license notice to (nearly) all files...
Richard Jones <richard@users.sourceforge.net>
parents: 210
diff changeset
12 # POSSIBILITY OF SUCH DAMAGE.
d45384bc6420 Added the copyright/license notice to (nearly) all files...
Richard Jones <richard@users.sourceforge.net>
parents: 210
diff changeset
13 #
4950
16cb37d93ec6 Put back accidentally removed line from setup.py header
anatoly techtonik <techtonik@gmail.com>
parents: 4937
diff changeset
14 # BIZAR SOFTWARE PTY LTD SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
213
d45384bc6420 Added the copyright/license notice to (nearly) all files...
Richard Jones <richard@users.sourceforge.net>
parents: 210
diff changeset
15 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
d45384bc6420 Added the copyright/license notice to (nearly) all files...
Richard Jones <richard@users.sourceforge.net>
parents: 210
diff changeset
16 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS"
d45384bc6420 Added the copyright/license notice to (nearly) all files...
Richard Jones <richard@users.sourceforge.net>
parents: 210
diff changeset
17 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
d45384bc6420 Added the copyright/license notice to (nearly) all files...
Richard Jones <richard@users.sourceforge.net>
parents: 210
diff changeset
18 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
2300
e98bb674cb7d binary distribution includes compiled message catalogs
Alexander Smishlajev <a1s@users.sourceforge.net>
parents: 2253
diff changeset
19 #
85
fe0b33370244 Made setup.py executable, added id and log.
Richard Jones <richard@users.sourceforge.net>
parents: 78
diff changeset
20
4033
bca7c59ac400 Enhance documentation generation.
Stefan Seefeld <stefan@seefeld.name>
parents: 4012
diff changeset
21
5376
64b05e24dbd8 Python 3 preparation: convert print to a function.
Joseph Myers <jsm@polyomino.org.uk>
parents: 5351
diff changeset
22 from __future__ import print_function
4033
bca7c59ac400 Enhance documentation generation.
Stefan Seefeld <stefan@seefeld.name>
parents: 4012
diff changeset
23 from roundup.dist.command.build_doc import build_doc
4068
e233d7a66343 Refactor setup.py.
Stefan Seefeld <stefan@seefeld.name>
parents: 4033
diff changeset
24 from roundup.dist.command.build_scripts import build_scripts
e233d7a66343 Refactor setup.py.
Stefan Seefeld <stefan@seefeld.name>
parents: 4033
diff changeset
25 from roundup.dist.command.build import build, list_message_files
e233d7a66343 Refactor setup.py.
Stefan Seefeld <stefan@seefeld.name>
parents: 4033
diff changeset
26 from roundup.dist.command.bdist_rpm import bdist_rpm
4516
85dfe17c182e Installation:
Bernhard Reiter <Bernhard.Reiter@intevation.de>
parents: 4495
diff changeset
27 from roundup.dist.command.install_lib import install_lib
4717
9dc50be521ee Make roundup play nice with setup tools (for using with virtualenv)
Pradip Caulagi <caulagi@gmail.com>
parents: 4693
diff changeset
28
4796
f61bd780892e Release preparation
Ralf Schlatterbeck <rsc@runtux.com>
parents: 4763
diff changeset
29 # FIXME: setuptools breaks the --manifest-only option to setup.py and
f61bd780892e Release preparation
Ralf Schlatterbeck <rsc@runtux.com>
parents: 4763
diff changeset
30 # doesn't seem to generate a MANIFEST file. Since I'm not familiar with
f61bd780892e Release preparation
Ralf Schlatterbeck <rsc@runtux.com>
parents: 4763
diff changeset
31 # the way setuptools handles the files to include I'm commenting this
f61bd780892e Release preparation
Ralf Schlatterbeck <rsc@runtux.com>
parents: 4763
diff changeset
32 # for now -- Ralf Schlatterbeck
f61bd780892e Release preparation
Ralf Schlatterbeck <rsc@runtux.com>
parents: 4763
diff changeset
33 #try:
f61bd780892e Release preparation
Ralf Schlatterbeck <rsc@runtux.com>
parents: 4763
diff changeset
34 # from setuptools import setup
f61bd780892e Release preparation
Ralf Schlatterbeck <rsc@runtux.com>
parents: 4763
diff changeset
35 #except ImportError:
f61bd780892e Release preparation
Ralf Schlatterbeck <rsc@runtux.com>
parents: 4763
diff changeset
36 from distutils.core import setup
78
edcca72de643 first cut at setup.py - installs the package, but not the bin/cgi-bin yet
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff changeset
37
4068
e233d7a66343 Refactor setup.py.
Stefan Seefeld <stefan@seefeld.name>
parents: 4033
diff changeset
38 import sys, os
78
edcca72de643 first cut at setup.py - installs the package, but not the bin/cgi-bin yet
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff changeset
39 from glob import glob
593
2256f81293c1 Conversion to generated script stubs
Jürgen Hermann <jhermann@users.sourceforge.net>
parents: 580
diff changeset
40
1320
3758a5af985f Lots of little fixes in this update:
Richard Jones <richard@users.sourceforge.net>
parents: 1287
diff changeset
41
4033
bca7c59ac400 Enhance documentation generation.
Stefan Seefeld <stefan@seefeld.name>
parents: 4012
diff changeset
42 def include(d, e):
bca7c59ac400 Enhance documentation generation.
Stefan Seefeld <stefan@seefeld.name>
parents: 4012
diff changeset
43 """Generate a pair of (directory, file-list) for installation.
bca7c59ac400 Enhance documentation generation.
Stefan Seefeld <stefan@seefeld.name>
parents: 4012
diff changeset
44
bca7c59ac400 Enhance documentation generation.
Stefan Seefeld <stefan@seefeld.name>
parents: 4012
diff changeset
45 'd' -- A directory
bca7c59ac400 Enhance documentation generation.
Stefan Seefeld <stefan@seefeld.name>
parents: 4012
diff changeset
46
bca7c59ac400 Enhance documentation generation.
Stefan Seefeld <stefan@seefeld.name>
parents: 4012
diff changeset
47 'e' -- A glob pattern"""
4110
435cce827b40 additional fix to handle Unauthorised in file serving
Richard Jones <richard@users.sourceforge.net>
parents: 4105
diff changeset
48
4033
bca7c59ac400 Enhance documentation generation.
Stefan Seefeld <stefan@seefeld.name>
parents: 4012
diff changeset
49 return (d, [f for f in glob('%s/%s'%(d, e)) if os.path.isfile(f)])
bca7c59ac400 Enhance documentation generation.
Stefan Seefeld <stefan@seefeld.name>
parents: 4012
diff changeset
50
5020
a4d7e495f2f6 Rollback cdfb1a3 - support "pip install --editable ." (issue2550866)
anatoly techtonik <techtonik@gmail.com>
parents: 4963
diff changeset
51 def scriptname(path):
593
2256f81293c1 Conversion to generated script stubs
Jürgen Hermann <jhermann@users.sourceforge.net>
parents: 580
diff changeset
52 """ Helper for building a list of script names from a list of
2256f81293c1 Conversion to generated script stubs
Jürgen Hermann <jhermann@users.sourceforge.net>
parents: 580
diff changeset
53 module files.
2256f81293c1 Conversion to generated script stubs
Jürgen Hermann <jhermann@users.sourceforge.net>
parents: 580
diff changeset
54 """
5020
a4d7e495f2f6 Rollback cdfb1a3 - support "pip install --editable ." (issue2550866)
anatoly techtonik <techtonik@gmail.com>
parents: 4963
diff changeset
55 script = os.path.splitext(os.path.basename(path))[0]
a4d7e495f2f6 Rollback cdfb1a3 - support "pip install --editable ." (issue2550866)
anatoly techtonik <techtonik@gmail.com>
parents: 4963
diff changeset
56 script = script.replace('_', '-')
a4d7e495f2f6 Rollback cdfb1a3 - support "pip install --editable ." (issue2550866)
anatoly techtonik <techtonik@gmail.com>
parents: 4963
diff changeset
57 return script
593
2256f81293c1 Conversion to generated script stubs
Jürgen Hermann <jhermann@users.sourceforge.net>
parents: 580
diff changeset
58
1576
80519db85eac More tweaks to the licensing to make the Debian folks happy :)
Richard Jones <richard@users.sourceforge.net>
parents: 1461
diff changeset
59 def main():
753
938edfdeac6e Sorry about this huge checkin!
Richard Jones <richard@users.sourceforge.net>
parents: 675
diff changeset
60 # template munching
4096
ab542607f2fb Move man pages into 'share/man/man1' and simplify setup.py
Stefan Seefeld <stefan@seefeld.name>
parents: 4089
diff changeset
61 packages = [
753
938edfdeac6e Sorry about this huge checkin!
Richard Jones <richard@users.sourceforge.net>
parents: 675
diff changeset
62 'roundup',
4089
eddb82d0964c Add compatibility package to allow us to deal with Python versions 2.3..2.6.
Richard Jones <richard@users.sourceforge.net>
parents: 4069
diff changeset
63 'roundup.anypy',
1059
3f20880c2a7e additional packages
Richard Jones <richard@users.sourceforge.net>
parents: 937
diff changeset
64 'roundup.cgi',
3f20880c2a7e additional packages
Richard Jones <richard@users.sourceforge.net>
parents: 937
diff changeset
65 'roundup.cgi.PageTemplates',
3f20880c2a7e additional packages
Richard Jones <richard@users.sourceforge.net>
parents: 937
diff changeset
66 'roundup.cgi.TAL',
3f20880c2a7e additional packages
Richard Jones <richard@users.sourceforge.net>
parents: 937
diff changeset
67 'roundup.cgi.ZTUtils',
753
938edfdeac6e Sorry about this huge checkin!
Richard Jones <richard@users.sourceforge.net>
parents: 675
diff changeset
68 'roundup.backends',
2776
10e96f3ee658 install demo.py as a module in roundup package.
Alexander Smishlajev <a1s@users.sourceforge.net>
parents: 2684
diff changeset
69 'roundup.scripts',
753
938edfdeac6e Sorry about this huge checkin!
Richard Jones <richard@users.sourceforge.net>
parents: 675
diff changeset
70 ]
437
a1e778940f92 Install html template files to share/roundup/templates
Jürgen Hermann <jhermann@users.sourceforge.net>
parents: 402
diff changeset
71
4096
ab542607f2fb Move man pages into 'share/man/man1' and simplify setup.py
Stefan Seefeld <stefan@seefeld.name>
parents: 4089
diff changeset
72 # build list of scripts from their implementation modules
5020
a4d7e495f2f6 Rollback cdfb1a3 - support "pip install --editable ." (issue2550866)
anatoly techtonik <techtonik@gmail.com>
parents: 4963
diff changeset
73 scripts = [scriptname(f) for f in glob('roundup/scripts/[!_]*.py')]
4096
ab542607f2fb Move man pages into 'share/man/man1' and simplify setup.py
Stefan Seefeld <stefan@seefeld.name>
parents: 4089
diff changeset
74
ab542607f2fb Move man pages into 'share/man/man1' and simplify setup.py
Stefan Seefeld <stefan@seefeld.name>
parents: 4089
diff changeset
75 data_files = [
ab542607f2fb Move man pages into 'share/man/man1' and simplify setup.py
Stefan Seefeld <stefan@seefeld.name>
parents: 4089
diff changeset
76 ('share/roundup/cgi-bin', ['frontends/roundup.cgi']),
ab542607f2fb Move man pages into 'share/man/man1' and simplify setup.py
Stefan Seefeld <stefan@seefeld.name>
parents: 4089
diff changeset
77 ]
1419
c717b8d63a7e included UN*X manual pages from Bastian Kleineidam
Richard Jones <richard@users.sourceforge.net>
parents: 1320
diff changeset
78 # install man pages on POSIX platforms
c717b8d63a7e included UN*X manual pages from Bastian Kleineidam
Richard Jones <richard@users.sourceforge.net>
parents: 1320
diff changeset
79 if os.name == 'posix':
4096
ab542607f2fb Move man pages into 'share/man/man1' and simplify setup.py
Stefan Seefeld <stefan@seefeld.name>
parents: 4089
diff changeset
80 data_files.append(include('share/man/man1', '*'))
1419
c717b8d63a7e included UN*X manual pages from Bastian Kleineidam
Richard Jones <richard@users.sourceforge.net>
parents: 1320
diff changeset
81
1591
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents: 1587
diff changeset
82 # add the templates to the data files lists
1918
Richard Jones <richard@users.sourceforge.net>
parents: 1873
diff changeset
83 from roundup.init import listTemplates
4099
3c0852dbcf39 Reformat to reduce line-length.
Stefan Seefeld <stefan@seefeld.name>
parents: 4096
diff changeset
84 templates = [t['path']
3c0852dbcf39 Reformat to reduce line-length.
Stefan Seefeld <stefan@seefeld.name>
parents: 4096
diff changeset
85 for t in listTemplates('share/roundup/templates').values()]
1591
21312a7564fd moving templates around
Richard Jones <richard@users.sourceforge.net>
parents: 1587
diff changeset
86 for tdir in templates:
4755
d2f58accb405 - Copy layout to the html directory
Pradip Caulagi <caulagi@gmail.com>
parents: 4717
diff changeset
87 for idir in '. detectors extensions html html/layout static'.split():
4096
ab542607f2fb Move man pages into 'share/man/man1' and simplify setup.py
Stefan Seefeld <stefan@seefeld.name>
parents: 4089
diff changeset
88 data_files.append(include(os.path.join(tdir, idir), '*'))
78
edcca72de643 first cut at setup.py - installs the package, but not the bin/cgi-bin yet
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff changeset
89
2300
e98bb674cb7d binary distribution includes compiled message catalogs
Alexander Smishlajev <a1s@users.sourceforge.net>
parents: 2253
diff changeset
90 # add message files
2332
804c5c735bf1 don't compile message catalogs...
Alexander Smishlajev <a1s@users.sourceforge.net>
parents: 2316
diff changeset
91 for (_dist_file, _mo_file) in list_message_files():
4099
3c0852dbcf39 Reformat to reduce line-length.
Stefan Seefeld <stefan@seefeld.name>
parents: 4096
diff changeset
92 data_files.append((os.path.dirname(_mo_file),
3c0852dbcf39 Reformat to reduce line-length.
Stefan Seefeld <stefan@seefeld.name>
parents: 4096
diff changeset
93 [os.path.join("build", _mo_file)]))
2300
e98bb674cb7d binary distribution includes compiled message catalogs
Alexander Smishlajev <a1s@users.sourceforge.net>
parents: 2253
diff changeset
94
4033
bca7c59ac400 Enhance documentation generation.
Stefan Seefeld <stefan@seefeld.name>
parents: 4012
diff changeset
95 # add docs
4100
26f840bce0c9 Further cleanup.
Stefan Seefeld <stefan@seefeld.name>
parents: 4099
diff changeset
96 data_files.append(include('share/doc/roundup/html', '*'))
4844
6ba2d471d76b setup.py now installs static files of the HTML documentation
Thomas Arendsen Hein <thomas@intevation.de>
parents: 4796
diff changeset
97 data_files.append(include('share/doc/roundup/html/_images', '*'))
6ba2d471d76b setup.py now installs static files of the HTML documentation
Thomas Arendsen Hein <thomas@intevation.de>
parents: 4796
diff changeset
98 data_files.append(include('share/doc/roundup/html/_sources', '*'))
6ba2d471d76b setup.py now installs static files of the HTML documentation
Thomas Arendsen Hein <thomas@intevation.de>
parents: 4796
diff changeset
99 data_files.append(include('share/doc/roundup/html/_static', '*'))
4033
bca7c59ac400 Enhance documentation generation.
Stefan Seefeld <stefan@seefeld.name>
parents: 4012
diff changeset
100
753
938edfdeac6e Sorry about this huge checkin!
Richard Jones <richard@users.sourceforge.net>
parents: 675
diff changeset
101 # perform the setup action
773
6e6c63a57df9 [SF#569415] {version]]
Richard Jones <richard@users.sourceforge.net>
parents: 753
diff changeset
102 from roundup import __version__
4110
435cce827b40 additional fix to handle Unauthorised in file serving
Richard Jones <richard@users.sourceforge.net>
parents: 4105
diff changeset
103
4495
53e438d1ca19 fix long_description again:
Ralf Schlatterbeck <schlatterbeck@users.sourceforge.net>
parents: 4492
diff changeset
104 # long_description may not contain non-ascii characters. Distutils
53e438d1ca19 fix long_description again:
Ralf Schlatterbeck <schlatterbeck@users.sourceforge.net>
parents: 4492
diff changeset
105 # will produce an non-installable installer on linux *and* we can't
53e438d1ca19 fix long_description again:
Ralf Schlatterbeck <schlatterbeck@users.sourceforge.net>
parents: 4492
diff changeset
106 # run the bdist_wininst on Linux if there are non-ascii characters
53e438d1ca19 fix long_description again:
Ralf Schlatterbeck <schlatterbeck@users.sourceforge.net>
parents: 4492
diff changeset
107 # because the distutils installer will try to use the mbcs codec
53e438d1ca19 fix long_description again:
Ralf Schlatterbeck <schlatterbeck@users.sourceforge.net>
parents: 4492
diff changeset
108 # which isn't available on non-windows platforms. See also
53e438d1ca19 fix long_description again:
Ralf Schlatterbeck <schlatterbeck@users.sourceforge.net>
parents: 4492
diff changeset
109 # http://bugs.python.org/issue10945
5026
8853f422fb62 Preparing 1.5.1 steps 4/16
anatoly techtonik <techtonik@gmail.com>
parents: 5021
diff changeset
110 long_description=open('doc/announcement.txt').read()
4492
5d43b2a5eb69 test that announcement.txt is pure ASCII...
Ralf Schlatterbeck <schlatterbeck@users.sourceforge.net>
parents: 4436
diff changeset
111 try:
5026
8853f422fb62 Preparing 1.5.1 steps 4/16
anatoly techtonik <techtonik@gmail.com>
parents: 5021
diff changeset
112 # attempt to interpret string as 'ascii'
5451
fe1bd8f12a9f fixed encoding for long_description
Christof Meerwald <cmeerw@cmeerw.org>
parents: 5376
diff changeset
113 long_description.encode('ascii')
5248
198b6e810c67 Use Python-3-compatible 'as' syntax for except statements
Eric S. Raymond <esr@thyrsus.com>
parents: 5027
diff changeset
114 except UnicodeEncodeError as cause:
5376
64b05e24dbd8 Python 3 preparation: convert print to a function.
Joseph Myers <jsm@polyomino.org.uk>
parents: 5351
diff changeset
115 print("doc/announcement.txt contains non-ascii: %s"
64b05e24dbd8 Python 3 preparation: convert print to a function.
Joseph Myers <jsm@polyomino.org.uk>
parents: 5351
diff changeset
116 % cause, file=sys.stderr)
4492
5d43b2a5eb69 test that announcement.txt is pure ASCII...
Ralf Schlatterbeck <schlatterbeck@users.sourceforge.net>
parents: 4436
diff changeset
117 sys.exit(42)
5d43b2a5eb69 test that announcement.txt is pure ASCII...
Ralf Schlatterbeck <schlatterbeck@users.sourceforge.net>
parents: 4436
diff changeset
118
4068
e233d7a66343 Refactor setup.py.
Stefan Seefeld <stefan@seefeld.name>
parents: 4033
diff changeset
119 setup(name='roundup',
e233d7a66343 Refactor setup.py.
Stefan Seefeld <stefan@seefeld.name>
parents: 4033
diff changeset
120 version=__version__,
e233d7a66343 Refactor setup.py.
Stefan Seefeld <stefan@seefeld.name>
parents: 4033
diff changeset
121 author="Richard Jones",
e233d7a66343 Refactor setup.py.
Stefan Seefeld <stefan@seefeld.name>
parents: 4033
diff changeset
122 author_email="richard@users.sourceforge.net",
4796
f61bd780892e Release preparation
Ralf Schlatterbeck <rsc@runtux.com>
parents: 4763
diff changeset
123 maintainer="Ralf Schlatterbeck",
f61bd780892e Release preparation
Ralf Schlatterbeck <rsc@runtux.com>
parents: 4763
diff changeset
124 maintainer_email="rsc@runtux.com",
4111
Richard Jones <richard@users.sourceforge.net>
parents: 4110
diff changeset
125 description="A simple-to-use and -install issue-tracking system"
4105
ed9dd44b470b reinstate description/long_description in setup.py
Richard Jones <richard@users.sourceforge.net>
parents: 4100
diff changeset
126 " with command-line, web and e-mail interfaces. Highly"
ed9dd44b470b reinstate description/long_description in setup.py
Richard Jones <richard@users.sourceforge.net>
parents: 4100
diff changeset
127 " customisable.",
4492
5d43b2a5eb69 test that announcement.txt is pure ASCII...
Ralf Schlatterbeck <schlatterbeck@users.sourceforge.net>
parents: 4436
diff changeset
128 long_description=long_description,
4068
e233d7a66343 Refactor setup.py.
Stefan Seefeld <stefan@seefeld.name>
parents: 4033
diff changeset
129 url='http://www.roundup-tracker.org',
5830
48c4704fba8c Change download url to pypi.org from pypi.python.org.
John Rouillard <rouilj@ieee.org>
parents: 5526
diff changeset
130 download_url='https://pypi.org/project/roundup',
6225
043a8ffd79ad Commits for roundup 2.0 release.
John Rouillard <rouilj@ieee.org>
parents: 6137
diff changeset
131 classifiers=['Development Status :: 5 - Production/Stable',
043a8ffd79ad Commits for roundup 2.0 release.
John Rouillard <rouilj@ieee.org>
parents: 6137
diff changeset
132 #'Development Status :: 4 - Beta',
6137
eb9d00db0923 Forgot to check in changed doc files for 2.0.0beta0
John Rouillard <rouilj@ieee.org>
parents: 5949
diff changeset
133 #'Development Status :: 3 - Alpha',
4068
e233d7a66343 Refactor setup.py.
Stefan Seefeld <stefan@seefeld.name>
parents: 4033
diff changeset
134 'Environment :: Console',
e233d7a66343 Refactor setup.py.
Stefan Seefeld <stefan@seefeld.name>
parents: 4033
diff changeset
135 'Environment :: Web Environment',
5949
573b688fffeb RELEASE.txt changes checkin pre 2.0.0alpha0
John Rouillard <rouilj@ieee.org>
parents: 5832
diff changeset
136 'Intended Audience :: Customer Service',
573b688fffeb RELEASE.txt changes checkin pre 2.0.0alpha0
John Rouillard <rouilj@ieee.org>
parents: 5832
diff changeset
137 'Intended Audience :: Information Technology',
4068
e233d7a66343 Refactor setup.py.
Stefan Seefeld <stefan@seefeld.name>
parents: 4033
diff changeset
138 'Intended Audience :: End Users/Desktop',
e233d7a66343 Refactor setup.py.
Stefan Seefeld <stefan@seefeld.name>
parents: 4033
diff changeset
139 'Intended Audience :: Developers',
e233d7a66343 Refactor setup.py.
Stefan Seefeld <stefan@seefeld.name>
parents: 4033
diff changeset
140 'Intended Audience :: System Administrators',
4690
9ead86b4fe71 setup.py: Fix trove classifier. Roundup uses MIT license, not PSF.
anatoly techtonik <techtonik@gmail.com>
parents: 4516
diff changeset
141 'License :: OSI Approved :: MIT License',
4068
e233d7a66343 Refactor setup.py.
Stefan Seefeld <stefan@seefeld.name>
parents: 4033
diff changeset
142 'Operating System :: MacOS :: MacOS X',
e233d7a66343 Refactor setup.py.
Stefan Seefeld <stefan@seefeld.name>
parents: 4033
diff changeset
143 'Operating System :: Microsoft :: Windows',
e233d7a66343 Refactor setup.py.
Stefan Seefeld <stefan@seefeld.name>
parents: 4033
diff changeset
144 'Operating System :: POSIX',
e233d7a66343 Refactor setup.py.
Stefan Seefeld <stefan@seefeld.name>
parents: 4033
diff changeset
145 'Programming Language :: Python',
5526
df3f553fa414 Update documentation for Python 3 support (issue 2550968, issue 2550980).
Joseph Myers <jsm@polyomino.org.uk>
parents: 5451
diff changeset
146 'Programming Language :: Python :: 2',
df3f553fa414 Update documentation for Python 3 support (issue 2550968, issue 2550980).
Joseph Myers <jsm@polyomino.org.uk>
parents: 5451
diff changeset
147 'Programming Language :: Python :: 2.7',
df3f553fa414 Update documentation for Python 3 support (issue 2550968, issue 2550980).
Joseph Myers <jsm@polyomino.org.uk>
parents: 5451
diff changeset
148 'Programming Language :: Python :: 3',
df3f553fa414 Update documentation for Python 3 support (issue 2550968, issue 2550980).
Joseph Myers <jsm@polyomino.org.uk>
parents: 5451
diff changeset
149 'Programming Language :: Python :: 3.4',
df3f553fa414 Update documentation for Python 3 support (issue 2550968, issue 2550980).
Joseph Myers <jsm@polyomino.org.uk>
parents: 5451
diff changeset
150 'Programming Language :: Python :: 3.5',
df3f553fa414 Update documentation for Python 3 support (issue 2550968, issue 2550980).
Joseph Myers <jsm@polyomino.org.uk>
parents: 5451
diff changeset
151 'Programming Language :: Python :: 3.6',
5832
f5a0fdb56784 Add python 3.7 classification as we are running that in CI.
John Rouillard <rouilj@ieee.org>
parents: 5830
diff changeset
152 'Programming Language :: Python :: 3.7',
5949
573b688fffeb RELEASE.txt changes checkin pre 2.0.0alpha0
John Rouillard <rouilj@ieee.org>
parents: 5832
diff changeset
153 'Programming Language :: Python :: 3.8',
4068
e233d7a66343 Refactor setup.py.
Stefan Seefeld <stefan@seefeld.name>
parents: 4033
diff changeset
154 'Topic :: Communications :: Email',
e233d7a66343 Refactor setup.py.
Stefan Seefeld <stefan@seefeld.name>
parents: 4033
diff changeset
155 'Topic :: Office/Business',
e233d7a66343 Refactor setup.py.
Stefan Seefeld <stefan@seefeld.name>
parents: 4033
diff changeset
156 'Topic :: Software Development :: Bug Tracking',
5949
573b688fffeb RELEASE.txt changes checkin pre 2.0.0alpha0
John Rouillard <rouilj@ieee.org>
parents: 5832
diff changeset
157 'Topic :: Internet :: WWW/HTTP :: WSGI :: Application',
4068
e233d7a66343 Refactor setup.py.
Stefan Seefeld <stefan@seefeld.name>
parents: 4033
diff changeset
158 ],
3719
a8835786ecf7 *** empty log message ***
Richard Jones <richard@users.sourceforge.net>
parents: 3588
diff changeset
159
4068
e233d7a66343 Refactor setup.py.
Stefan Seefeld <stefan@seefeld.name>
parents: 4033
diff changeset
160 # Override certain command classes with our own ones
e233d7a66343 Refactor setup.py.
Stefan Seefeld <stefan@seefeld.name>
parents: 4033
diff changeset
161 cmdclass= {'build_doc': build_doc,
e233d7a66343 Refactor setup.py.
Stefan Seefeld <stefan@seefeld.name>
parents: 4033
diff changeset
162 'build_scripts': build_scripts,
e233d7a66343 Refactor setup.py.
Stefan Seefeld <stefan@seefeld.name>
parents: 4033
diff changeset
163 'build': build,
e233d7a66343 Refactor setup.py.
Stefan Seefeld <stefan@seefeld.name>
parents: 4033
diff changeset
164 'bdist_rpm': bdist_rpm,
4516
85dfe17c182e Installation:
Bernhard Reiter <Bernhard.Reiter@intevation.de>
parents: 4495
diff changeset
165 'install_lib': install_lib,
4068
e233d7a66343 Refactor setup.py.
Stefan Seefeld <stefan@seefeld.name>
parents: 4033
diff changeset
166 },
4096
ab542607f2fb Move man pages into 'share/man/man1' and simplify setup.py
Stefan Seefeld <stefan@seefeld.name>
parents: 4089
diff changeset
167 packages=packages,
5020
a4d7e495f2f6 Rollback cdfb1a3 - support "pip install --editable ." (issue2550866)
anatoly techtonik <techtonik@gmail.com>
parents: 4963
diff changeset
168 scripts=scripts,
4096
ab542607f2fb Move man pages into 'share/man/man1' and simplify setup.py
Stefan Seefeld <stefan@seefeld.name>
parents: 4089
diff changeset
169 data_files=data_files)
78
edcca72de643 first cut at setup.py - installs the package, but not the bin/cgi-bin yet
Anthony Baxter <anthonybaxter@users.sourceforge.net>
parents:
diff changeset
170
1576
80519db85eac More tweaks to the licensing to make the Debian folks happy :)
Richard Jones <richard@users.sourceforge.net>
parents: 1461
diff changeset
171 if __name__ == '__main__':
4896
756ff1c2ee41 Fix setting the working directory in setup.py
John Kristensen <john@jerrykan.com>
parents: 4894
diff changeset
172 os.chdir(os.path.dirname(__file__) or '.')
1640
d0b29215aa44 pre-release stuff
Richard Jones <richard@users.sourceforge.net>
parents: 1619
diff changeset
173 main()
1576
80519db85eac More tweaks to the licensing to make the Debian folks happy :)
Richard Jones <richard@users.sourceforge.net>
parents: 1461
diff changeset
174
2684
94229a0832bd install extensions directories in tracker templates.
Alexander Smishlajev <a1s@users.sourceforge.net>
parents: 2448
diff changeset
175 # vim: set filetype=python sts=4 sw=4 et si :

Roundup Issue Tracker: http://roundup-tracker.org/