Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6535975
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T10:26:13+00:00 2026-05-25T10:26:13+00:00

So I’m using PasteScript’s paster, and I’m trying to automate egg creation. My first

  • 0

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!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T10:26:13+00:00Added an answer on May 25, 2026 at 10:26 am

    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:

    [pastescript]
    created = 2011-09-07T14:47:27
    egg_plugins__eval__ = []
    plus = +
    egg = bob
    dot = .
    description = Bob's magic code
    license_name =
    zip_safe__eval__ = False
    keywords = Python
    long_description = Bob's super useful code base
    author = Fred Sprocket
    author_email = fred.sprocket@example.com
    url = http://example.com
    version = 1.0.0
    

    I can then use this as follows:

    $ paster create -t basic_package --config=bobsetup.cfg bob
    
    Selected and implied templates:
      PasteScript#basic_package  A basic setuptools-enabled package
    
    Variables:
      author:            Fred Sprocket
      author_email:      fred.sprocket@example.com
      created:           2011-09-07T14:47:27
      description:       Bob's magic code
      dot:               .
      egg:               bob
      egg_plugins:       []
      keywords:          Python
      license_name:
      long_description:  Bob's super useful code base
      package:           bob
      plus:              +
      project:           bob
      url:               http://example.com
      version:           1.0
      zip_safe:          False
    Creating template basic_package
    Creating directory ./bob
      Recursing into +package+
        Creating ./bob/bob/
        Copying __init__.py to ./bob/bob/__init__.py
      Copying setup.cfg to ./bob/setup.cfg
      Copying setup.py_tmpl to ./bob/setup.py
    Running /Users/omul/.virtualenvs/im.analytics/bin/python setup.py egg_info
    
    $
    

    If I check the bob/setup.py you can see this has set up the variables. cat setup.py:

    from setuptools import setup, find_packages
    import sys, os
    
    version = '1.0'
    
    setup(name='bob',
          version=version,
          description="Bob's magic code",
          long_description="""\
    Bob's super useful code base""",
          classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers
          keywords='Python',
          author='Fred Sprocket',
          author_email='fred.sprocket@example.com',
          url='http://example.com',
          license='',
          packages=find_packages(exclude=['ez_setup', 'examples', 'tests']),
          include_package_data=True,
          zip_safe=False,
          install_requires=[
              # -*- Extra requirements: -*-
          ],
          entry_points="""
          # -*- Entry points: -*-
          """,
          )
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

That's pretty much it. I'm using Nokogiri to scrape a web page what has
We're building an app, our first using Rails 3, and we're having to build
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I'm trying to create an if statement in PHP that prevents a single post
I'm making a simple page using Google Maps API 3. My first. One marker
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I am trying to understand how to use SyndicationItem to display feed which is
I am reading a book about Javascript and jQuery and using one of the
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.