Skip to main content

ZC Buildout recipe that installs and configures a Trac server.

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description

Change history

0.1.0 (2008-06-16)

  • Created recipe with ZopeSkel [Tarek Ziade].

Detailed Documentation

Supported options

The recipe supports the following options:

option1

Description for option1

option2

Description for option2

Example usage

We’ll start by creating a buildout that uses the recipe:

>>> write('buildout.cfg',
... """
... [buildout]
... parts = trac
... index = http://pypi.python.org/simple
... develop =
...     /home/repos/atomisator.ziade.org/packages/pbp.recipe.trac/dev/timingandestimationplugin
...     /home/repos/atomisator.ziade.org/packages/pbp.recipe.trac/dev/navaddplugin
...     /home/repos/atomisator.ziade.org/packages/pbp.recipe.trac/dev/TracMercurial
... [trac]
... recipe = pbp.recipe.trac
... project-name = My project
... project-url = http://example.com
... repos-type = hg
... repos-path = sqlite:${buildout:directory}/var/svn
... buildbot-url = http://buildbot.example.com
... header-logo = ${buildout:directory}/my_logo
... smtp-server = localhost
... smtp-port = 25
... smtp-from = tarek@ziade.org
... smtp-replyto = tarek@ziade.org
... """)

Let’s run the buildout:

>>> print system(buildout)

This creates a trac instance:

>>> ls(join(sample_buildout, 'parts', 'trac'))
-  README
-  VERSION
d  attachments
d  conf
d  db
d  htdocs
d  log
d  plugins
d  templates

With a trac.ini file. Let’s check its content:

>>> f = join(sample_buildout, 'parts', 'trac', 'conf', 'trac.ini')
>>> from ConfigParser import ConfigParser
>>> parser = ConfigParser()
>>> null = parser.read([f])
>>> parser.get('trac', 'repository_type')
'hg'
>>> parser.get('trac', 'repository_dir')
'/sample-buildout/var/svn'
>>> parser.get('project', 'descr')
'My example project'
>>> parser.get('project', 'name')
'"My project"'
>>> parser.get('project', 'url')
''
>>> parser.get('components', 'tracext.hg.*')
'enabled'

>>> parser.get('navadd', 'buildbot.url')
'http://buildbot.example.com'

Contributors

Tarek Ziade, Author

Download

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pbp.recipe.trac-0.1.1.tar.gz (7.5 kB view details)

Uploaded Source

File details

Details for the file pbp.recipe.trac-0.1.1.tar.gz.

File metadata

File hashes

Hashes for pbp.recipe.trac-0.1.1.tar.gz
Algorithm Hash digest
SHA256 66ba033a722a9707f7af60b5acb093b5c9418372092db0824eeadf5b608b5431
MD5 9f603c2508b7723af59aee6b4569db1a
BLAKE2b-256 cf2f7ca5c906c45d27800775b2a5a1d5553ba947360d8fb6ce02faf007100426

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page