Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--script and --lib flags #738

Merged
merged 5 commits into from
Feb 23, 2024
Merged

--script and --lib flags #738

merged 5 commits into from
Feb 23, 2024

Commits on Feb 22, 2024

  1. init: add support for --script and --lib

    This adds support for three new flags which determine the templates
    we generate:
    
      1. We adding --lib, which will generate the standard python library
         We no longer generate `[project.scripts]` section and updated
         the template.
      2. We added --script, which will generate a package with a __main__.py,
         __init__.py and an entry to `[project.scripts]`. `__main__.py` follows
         semantics found in Python packages such as `ensurepip` and `pip.
    dsp committed Feb 22, 2024
    Configuration menu
    Copy the full SHA
    741b8ab View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3cecbd1 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a8da33d View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    cc5e0c0 View commit details
    Browse the repository at this point in the history
  5. init: move templates to a template folder

    We make init.rs a bit more readable by moving the templates to a new
    folder templates/ which we organise by template type (lib, script) and
    build system.
    dsp committed Feb 22, 2024
    Configuration menu
    Copy the full SHA
    51887db View commit details
    Browse the repository at this point in the history