mkpythonproj Design History

 

Table of Contents

2000-02-22

For each language I build a "make project" script. This one has grown over the past 2 months to include objects and getopt. Today I bootstrapped it.

It now is GPL'd. Need to add "setup" and "mkdist".

2000-02-26

Built and rebuilt the package. Debugging recursively defined code is awkward. I think it works now. However, I can't seem to make "setup.py test" build a testproject in which to "go" is in its own test dir. So I'm building it in the testproj dir itself.

I also tried to insert the article_style.pdx in the mkpythonproj.py, but it couldn't handle the backslash chars in the latex section. doubling the backslashes didn't help.

I also found that I can't insert %(names> style insertions in generated code, because the parser always finds them. I tried escaping the percent and the parens, but no good.

2000-04-01

Found I had to move the templates in front of the actual code, so they could be seen. I thought python could do forward references, but maybe not.

2000-04-10

Shifted to distutils style setup.py, with added test and doc options. Also simplified the treatment of licences.

2000-05-13

Made a package, and broke out the templates, licenses, and styles to separate files. (The original concern that I needed everything in one script goes away when we are using distutils.)

We need distutils to install binscripts into exec_prefix.

Changed license lookup so it easier to add a new one (e.g., an internal corporate one).

2000-07-09

Converted to newer distutils, and MANIFEST.in style. Removed RCS dir creation. Put in improved article_style.pdx, so we can do left and right margins.

2000-08-02

Converted to Distutils 0.9. Can now use "install_scripts". Cleaned up SETUP template. Templated MANIFEST.in, AUTHORS, and CHANGES. Cleaned up BODY template.

For some reason, I can't get mkpythonproj.py to see mkpythonproj as a site package, so I'm using "mkproj".

2001-10-30

More revisions to BODY template, and then seperated it out so we can do different templates as needed.

Went back to simple text for README, INSTALL, CHANGES, and AUTHORS.

2004-11-14

After a few years of dialy use, decided to make packages as the default behavior. Also revised the basic_test to operate on file comparisons, and to provide an "approve" script to move test outputs to oracles. Thus:

  myproj/
    README
    ...
    myproj/
      __init__.py
      myproj.py
    scripts/
    test/
      approve
      go
      go_test
      go_dist
      go_install
      testdata/
        oracle_Hello.txt
        test_Hello.txt

 
Creator: Harry George
Updated/Created: 2004-11-14