Changeset 388

Show
Ignore:
Timestamp:
09/02/08 01:43:17 (4 months ago)
Author:
johnbywater
Message:

Moved data files into package, to install and run 'dm' as a concrete application.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/MANIFEST.in

    r235 r388  
    55include INSTALL 
    66include README 
    7 recursive-include src * 
    87recursive-include bin * 
    98recursive-include etc * 
     9recursive-include src * 
  • trunk/bin/domainmodel-sdist-maker

    r346 r388  
    11#!/usr/bin/env python 
    22import os 
     3 
     4# Increase version number. 
     5 
     6# Build and upload provide scripts for new version. 
     7 
     8# Make list of changes. 
     9 
     10# Pass developer tests. 
     11 
     12# Commit changes. 
     13 
     14# Update changes. 
     15 
     16# Pass developer tests. 
     17 
     18# Pass integration tests. 
     19 
     20# Create distribution. 
    321os.system("rm -fv `find . -name '*.pyc'`") 
    422os.system("rm -fv MANIFEST") 
    523os.system("python setup.py sdist") 
    624 
     25# Copy distribution to download location. 
    726import sys 
    827sys.path.append('./src') 
    928from dm import __version__ 
    10 cmd = "scp dist/domainmodel-%s.tar.gz iris:awf/system/domains/AppropriateSoftwareFoundation.org/provide/docs" % __version__ 
     29cmd = "scp dist/domainmodel-%s.tar.gz appropriatesoftware.net:awf/system/domains/AppropriateSoftwareFoundation.org/provide/docs" % __version__ 
    1130print cmd 
    1231os.system(cmd) 
    1332 
    14 os.system("vi ./src/dm/__init__.py") 
    1533 
     34# Further manual steps.  
     35print "Test distribution with foundation system tests." 
     36print "Update domainmodel website to state and point to new release." 
     37print "Update cheeseshop." 
     38print "Post notices (where?)." 
     39print "Increase version number." 
     40 
     41 
  • trunk/setup.py

    r357 r388  
    4242        'Operating System :: OS Independent', 
    4343        'Programming Language :: Python', 
    44         'Topic :: Software Development :: Libraries :: Python Modules'], 
     44        'Topic :: Software Development :: Libraries :: Python Modules', 
     45    ], 
    4546) 
    4647 
  • trunk/src/dm/__init__.py

    r365 r388  
    11"""Package version, increase immediately after acceptance of release.""" 
    22 
    3 __version__ = '0.3.17
     3__version__ = '0.3
    44 
  • trunk/src/dm/etc/domainmodel.conf.new

    r386 r388  
    2828# images_dir: 
    2929#  * directory for domain model object images 
    30 images_dir = /path/to/domainmodel/var/images 
     30images_dir = /path/to/domainmodel 
    3131 
    3232[logging] 
     
    5555# name: 
    5656#  * database name 
    57 name = domainmodel 
     57name = domainmodeldbname 
    5858 
    5959# user: 
    6060#  * database user name 
    61 user = domainmodel 
     61user = domainmodeldbuser 
    6262 
    6363# password: 
    6464#  * database user password 
    65 password = pass 
     65password = domainmodeldbpassword 
    6666 
    6767# An (sqlobject) database uri 
    6868#  * if defined the uri will be used in making database connection instead  
    6969#    the information provided above 
    70 #  * use this option if you wish to connect to a database such as sqlite  
     70#  * use this option if you wish to connect to a database such as sqlite 
     71#  Todo: De-kforge-ify. 
    7172# uri = postgres://kforgetest:pass@localhost/kforgetest 
    7273 
     
    109110# templates_dir: 
    110111#  * Django templates to use for web interface  
    111 # NB: for tests to work this must be set to point to the kforge templates 
    112 templates_dir = /path/to/kforge/templates/kui 
     112# NB: for tests to work this must be set to point to the templates dir 
     113templates_dir = /path/to/domainmodel/templates 
    113114 
    114115# secret_key: