annotate setup.py @ 717:9985eca2e4d0 beta

updated docs and setup.py docs
author Marcin Kuzminski <marcin@python-works.com>
date Thu, 18 Nov 2010 18:05:52 +0100
parents 7486da5f0628
children 74975001a1af
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
547
1e757ac98988 renamed project to rhodecode
Marcin Kuzminski <marcin@python-works.com>
parents: 538
diff changeset
1 from rhodecode import get_version
553
65c27fd21769 small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents: 552
diff changeset
2 import sys
564
ba7e24cd4786 refactor codes and setup for python 2.5
Marcin Kuzminski <marcin@python-works.com>
parents: 553
diff changeset
3 py_version = sys.version_info
552
2642f128ad46 removed egg info, update files for distutils build
Marcin Kuzminski <marcin@python-works.com>
parents: 549
diff changeset
4
2642f128ad46 removed egg info, update files for distutils build
Marcin Kuzminski <marcin@python-works.com>
parents: 549
diff changeset
5 requirements = [
2642f128ad46 removed egg info, update files for distutils build
Marcin Kuzminski <marcin@python-works.com>
parents: 549
diff changeset
6 "Pylons>=1.0.0",
676
bdd1ddd05b7c docs update, setup libs version bumps
Marcin Kuzminski <marcin@python-works.com>
parents: 661
diff changeset
7 "SQLAlchemy>=0.6.5",
691
7486da5f0628 Refactor codes for scm model
Marcin Kuzminski <marcin@python-works.com>
parents: 683
diff changeset
8 "Mako>=0.3.6",
643
9dc1d92d82ed updated setup for all newest versions
Marcin Kuzminski <marcin@python-works.com>
parents: 638
diff changeset
9 "vcs>=0.1.10",
552
2642f128ad46 removed egg info, update files for distutils build
Marcin Kuzminski <marcin@python-works.com>
parents: 549
diff changeset
10 "pygments>=1.3.0",
661
673de12e6bf6 added option to enable/disable of logger hooks from admin panel.
Marcin Kuzminski <marcin@python-works.com>
parents: 643
diff changeset
11 "mercurial>=1.6.4",
673de12e6bf6 added option to enable/disable of logger hooks from admin panel.
Marcin Kuzminski <marcin@python-works.com>
parents: 643
diff changeset
12 "whoosh>=1.3.1",
676
bdd1ddd05b7c docs update, setup libs version bumps
Marcin Kuzminski <marcin@python-works.com>
parents: 661
diff changeset
13 "celery>=2.1.3",
552
2642f128ad46 removed egg info, update files for distutils build
Marcin Kuzminski <marcin@python-works.com>
parents: 549
diff changeset
14 "py-bcrypt",
565
ad2e97c6f17f small fix for setup
Marcin Kuzminski <marcin@python-works.com>
parents: 564
diff changeset
15 "babel",
552
2642f128ad46 removed egg info, update files for distutils build
Marcin Kuzminski <marcin@python-works.com>
parents: 549
diff changeset
16 ]
2642f128ad46 removed egg info, update files for distutils build
Marcin Kuzminski <marcin@python-works.com>
parents: 549
diff changeset
17
572
a60cd29ba7e2 more docs update
Marcin Kuzminski <marcin@python-works.com>
parents: 565
diff changeset
18 classifiers = ['Development Status :: 4 - Beta',
a60cd29ba7e2 more docs update
Marcin Kuzminski <marcin@python-works.com>
parents: 565
diff changeset
19 'Environment :: Web Environment',
a60cd29ba7e2 more docs update
Marcin Kuzminski <marcin@python-works.com>
parents: 565
diff changeset
20 'Framework :: Pylons',
a60cd29ba7e2 more docs update
Marcin Kuzminski <marcin@python-works.com>
parents: 565
diff changeset
21 'Intended Audience :: Developers',
a60cd29ba7e2 more docs update
Marcin Kuzminski <marcin@python-works.com>
parents: 565
diff changeset
22 'License :: OSI Approved :: BSD License',
a60cd29ba7e2 more docs update
Marcin Kuzminski <marcin@python-works.com>
parents: 565
diff changeset
23 'Operating System :: OS Independent',
a60cd29ba7e2 more docs update
Marcin Kuzminski <marcin@python-works.com>
parents: 565
diff changeset
24 'Programming Language :: Python', ]
a60cd29ba7e2 more docs update
Marcin Kuzminski <marcin@python-works.com>
parents: 565
diff changeset
25
564
ba7e24cd4786 refactor codes and setup for python 2.5
Marcin Kuzminski <marcin@python-works.com>
parents: 553
diff changeset
26 if sys.version_info < (2, 6):
ba7e24cd4786 refactor codes and setup for python 2.5
Marcin Kuzminski <marcin@python-works.com>
parents: 553
diff changeset
27 requirements.append("simplejson")
ba7e24cd4786 refactor codes and setup for python 2.5
Marcin Kuzminski <marcin@python-works.com>
parents: 553
diff changeset
28 requirements.append("pysqlite")
ba7e24cd4786 refactor codes and setup for python 2.5
Marcin Kuzminski <marcin@python-works.com>
parents: 553
diff changeset
29
553
65c27fd21769 small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents: 552
diff changeset
30 #additional files from project that goes somewhere in the filesystem
65c27fd21769 small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents: 552
diff changeset
31 #relative to sys.prefix
65c27fd21769 small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents: 552
diff changeset
32 data_files = []
65c27fd21769 small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents: 552
diff changeset
33
65c27fd21769 small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents: 552
diff changeset
34 #additional files that goes into package itself
65c27fd21769 small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents: 552
diff changeset
35 package_data = {'rhodecode': ['i18n/*/LC_MESSAGES/*.mo', ], }
552
2642f128ad46 removed egg info, update files for distutils build
Marcin Kuzminski <marcin@python-works.com>
parents: 549
diff changeset
36
717
9985eca2e4d0 updated docs and setup.py docs
Marcin Kuzminski <marcin@python-works.com>
parents: 691
diff changeset
37 description = ('Mercurial repository browser/management with '
681
9c8a817462fe small fixes to docs, and setup file
Marcin Kuzminski <marcin@python-works.com>
parents: 676
diff changeset
38 'build in push/pull server and full text search')
553
65c27fd21769 small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents: 552
diff changeset
39 #long description
65c27fd21769 small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents: 552
diff changeset
40 try:
65c27fd21769 small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents: 552
diff changeset
41 readme_file = 'README.rst'
682
23c2a0e6df0b changed official rhodecode favicon, from hg to some more generic
Marcin Kuzminski <marcin@python-works.com>
parents: 681
diff changeset
42 changelog_file = 'docs/changelog.rst'
23c2a0e6df0b changed official rhodecode favicon, from hg to some more generic
Marcin Kuzminski <marcin@python-works.com>
parents: 681
diff changeset
43 long_description = open(readme_file).read() + '/n/n' + \
23c2a0e6df0b changed official rhodecode favicon, from hg to some more generic
Marcin Kuzminski <marcin@python-works.com>
parents: 681
diff changeset
44 open(changelog_file).read()
23c2a0e6df0b changed official rhodecode favicon, from hg to some more generic
Marcin Kuzminski <marcin@python-works.com>
parents: 681
diff changeset
45
553
65c27fd21769 small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents: 552
diff changeset
46 except IOError, err:
589
36d54d4479db Fixed i18n installation
Marcin Kuzminski <marcin@python-works.com>
parents: 572
diff changeset
47 sys.stderr.write("[WARNING] Cannot find file specified as "
682
23c2a0e6df0b changed official rhodecode favicon, from hg to some more generic
Marcin Kuzminski <marcin@python-works.com>
parents: 681
diff changeset
48 "long_description (%s)\n or changelog (%s) skipping that file" \
23c2a0e6df0b changed official rhodecode favicon, from hg to some more generic
Marcin Kuzminski <marcin@python-works.com>
parents: 681
diff changeset
49 % (readme_file, changelog_file))
565
ad2e97c6f17f small fix for setup
Marcin Kuzminski <marcin@python-works.com>
parents: 564
diff changeset
50 long_description = description
552
2642f128ad46 removed egg info, update files for distutils build
Marcin Kuzminski <marcin@python-works.com>
parents: 549
diff changeset
51
2642f128ad46 removed egg info, update files for distutils build
Marcin Kuzminski <marcin@python-works.com>
parents: 549
diff changeset
52
0
564e40829f80 initial commit.
Marcin Kuzminski
parents:
diff changeset
53 try:
564e40829f80 initial commit.
Marcin Kuzminski
parents:
diff changeset
54 from setuptools import setup, find_packages
564e40829f80 initial commit.
Marcin Kuzminski
parents:
diff changeset
55 except ImportError:
564e40829f80 initial commit.
Marcin Kuzminski
parents:
diff changeset
56 from ez_setup import use_setuptools
564e40829f80 initial commit.
Marcin Kuzminski
parents:
diff changeset
57 use_setuptools()
564e40829f80 initial commit.
Marcin Kuzminski
parents:
diff changeset
58 from setuptools import setup, find_packages
553
65c27fd21769 small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents: 552
diff changeset
59 #packages
65c27fd21769 small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents: 552
diff changeset
60 packages = find_packages(exclude=['ez_setup'])
0
564e40829f80 initial commit.
Marcin Kuzminski
parents:
diff changeset
61
564e40829f80 initial commit.
Marcin Kuzminski
parents:
diff changeset
62 setup(
552
2642f128ad46 removed egg info, update files for distutils build
Marcin Kuzminski <marcin@python-works.com>
parents: 549
diff changeset
63 name='RhodeCode',
185
3380ca40cdba added version generation to pylons_app and showed it into template. Propagated baseController with some data for acces into each controller. Fixed simplehg middleware to get proper name of application
Marcin Kuzminski <marcin@python-works.com>
parents: 170
diff changeset
64 version=get_version(),
565
ad2e97c6f17f small fix for setup
Marcin Kuzminski <marcin@python-works.com>
parents: 564
diff changeset
65 description=description,
552
2642f128ad46 removed egg info, update files for distutils build
Marcin Kuzminski <marcin@python-works.com>
parents: 549
diff changeset
66 long_description=long_description,
681
9c8a817462fe small fixes to docs, and setup file
Marcin Kuzminski <marcin@python-works.com>
parents: 676
diff changeset
67 keywords='rhodiumcode mercurial web hgwebdir gitweb git replacement serving hgweb rhodecode',
326
674e0085ccc7 updated setup.py
Marcin Kuzminski <marcin@python-works.com>
parents: 325
diff changeset
68 license='BSD',
552
2642f128ad46 removed egg info, update files for distutils build
Marcin Kuzminski <marcin@python-works.com>
parents: 549
diff changeset
69 author='Marcin Kuzminski',
244
782f0692b29c fixed setup and install instructions
Marcin Kuzminski <marcin@python-works.com>
parents: 185
diff changeset
70 author_email='marcin@python-works.com',
325
d8d471cfa093 Updated readme
Marcin Kuzminski <marcin@python-works.com>
parents: 246
diff changeset
71 url='http://hg.python-works.com',
552
2642f128ad46 removed egg info, update files for distutils build
Marcin Kuzminski <marcin@python-works.com>
parents: 549
diff changeset
72 install_requires=requirements,
572
a60cd29ba7e2 more docs update
Marcin Kuzminski <marcin@python-works.com>
parents: 565
diff changeset
73 classifiers=classifiers,
127
20dc7a5eb748 Html changes and cleanups, made folders for html templates, implemented tags and branches pages
Marcin Kuzminski <marcin@python-works.com>
parents: 0
diff changeset
74 setup_requires=["PasteScript>=1.6.3"],
552
2642f128ad46 removed egg info, update files for distutils build
Marcin Kuzminski <marcin@python-works.com>
parents: 549
diff changeset
75 data_files=data_files,
553
65c27fd21769 small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents: 552
diff changeset
76 packages=packages,
127
20dc7a5eb748 Html changes and cleanups, made folders for html templates, implemented tags and branches pages
Marcin Kuzminski <marcin@python-works.com>
parents: 0
diff changeset
77 include_package_data=True,
20dc7a5eb748 Html changes and cleanups, made folders for html templates, implemented tags and branches pages
Marcin Kuzminski <marcin@python-works.com>
parents: 0
diff changeset
78 test_suite='nose.collector',
553
65c27fd21769 small fixes for distutils
Marcin Kuzminski <marcin@python-works.com>
parents: 552
diff changeset
79 package_data=package_data,
547
1e757ac98988 renamed project to rhodecode
Marcin Kuzminski <marcin@python-works.com>
parents: 538
diff changeset
80 message_extractors={'rhodecode': [
0
564e40829f80 initial commit.
Marcin Kuzminski
parents:
diff changeset
81 ('**.py', 'python', None),
564e40829f80 initial commit.
Marcin Kuzminski
parents:
diff changeset
82 ('templates/**.mako', 'mako', {'input_encoding': 'utf-8'}),
564e40829f80 initial commit.
Marcin Kuzminski
parents:
diff changeset
83 ('public/**', 'ignore', None)]},
127
20dc7a5eb748 Html changes and cleanups, made folders for html templates, implemented tags and branches pages
Marcin Kuzminski <marcin@python-works.com>
parents: 0
diff changeset
84 zip_safe=False,
20dc7a5eb748 Html changes and cleanups, made folders for html templates, implemented tags and branches pages
Marcin Kuzminski <marcin@python-works.com>
parents: 0
diff changeset
85 paster_plugins=['PasteScript', 'Pylons'],
20dc7a5eb748 Html changes and cleanups, made folders for html templates, implemented tags and branches pages
Marcin Kuzminski <marcin@python-works.com>
parents: 0
diff changeset
86 entry_points="""
0
564e40829f80 initial commit.
Marcin Kuzminski
parents:
diff changeset
87 [paste.app_factory]
547
1e757ac98988 renamed project to rhodecode
Marcin Kuzminski <marcin@python-works.com>
parents: 538
diff changeset
88 main = rhodecode.config.middleware:make_app
0
564e40829f80 initial commit.
Marcin Kuzminski
parents:
diff changeset
89
564e40829f80 initial commit.
Marcin Kuzminski
parents:
diff changeset
90 [paste.app_install]
564e40829f80 initial commit.
Marcin Kuzminski
parents:
diff changeset
91 main = pylons.util:PylonsInstaller
683
341beaa9edba Implemented whoosh index building as paster command.
Marcin Kuzminski <marcin@python-works.com>
parents: 682
diff changeset
92
341beaa9edba Implemented whoosh index building as paster command.
Marcin Kuzminski <marcin@python-works.com>
parents: 682
diff changeset
93 [paste.global_paster_command]
341beaa9edba Implemented whoosh index building as paster command.
Marcin Kuzminski <marcin@python-works.com>
parents: 682
diff changeset
94 make-index = rhodecode.lib.indexers:MakeIndex
341beaa9edba Implemented whoosh index building as paster command.
Marcin Kuzminski <marcin@python-works.com>
parents: 682
diff changeset
95 upgrade-db = rhodecode.lib.utils:UpgradeDb
341beaa9edba Implemented whoosh index building as paster command.
Marcin Kuzminski <marcin@python-works.com>
parents: 682
diff changeset
96
0
564e40829f80 initial commit.
Marcin Kuzminski
parents:
diff changeset
97 """,
564e40829f80 initial commit.
Marcin Kuzminski
parents:
diff changeset
98 )