So I’m using PasteScript’s paster, and I’m trying to automate egg creation. My first step is to get a template of a Python egg. I noticed that PasteScript’s paster has one built in, so I’ve been creating my template from the command line:
$paster create -t basic_package
However, this asks me the questions as a series of prompts (Project Name, Author, Version, etc). Is it possible to use a configuration file or a pass the argument directly into the command line when invoking PasteScript?
My goal is to have one command that I can run to generate an egg template.
Thanks for the help!
I recently discovered this myself. The “paster create” takes a –config command line argument. This can be a file which contains the variable to use.
For example:
I will create a package called bob from config called bobsetup.cfg. The configuration file will contain:
I can then use this as follows:
If I check the bob/setup.py you can see this has set up the variables. cat setup.py: