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

Support namespace packages with new command and misc. improvements #2768

Merged
merged 7 commits into from
Apr 12, 2021

Commits on Apr 10, 2021

  1. layouts: improve supported layout creation

    - remove unnecessary template duplication
    - stop generating default test case (this is out of scope for poetry)
    - stop generating content for package `__init__.py`
    - simplify inheritance to only require base directory overrides
    - remove "StandardLayout" (replaced with `Layout`)
    - support handling namespace package names given in the form "a.b.c"
    - specify include packages by default (be explicit)
    abn committed Apr 10, 2021
    Configuration menu
    Copy the full SHA
    2604a73 View commit details
    Browse the repository at this point in the history
  2. command/new: support namespace package creation

    With this change, names containing "." are treated as namespace
    packages.
    
    The following behaviour is now expected.
    
    - "a.b.c" creates package name "a-b-c" with directory structure
      "a/b/c"
    - "a-b-c" creates package name "a-b-c" with directory structure
      "a/b/c"
    - "a.b_c" creates package name "a-b-c" with directory structure
      "a/b_c"
    - "a_b_c" creates package name "a-b-c" with directory structure
      "a_b_c"
    abn committed Apr 10, 2021
    Configuration menu
    Copy the full SHA
    5a60e10 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    9081831 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    69245d7 View commit details
    Browse the repository at this point in the history
  5. command/new: add test coverage

    abn committed Apr 10, 2021
    Configuration menu
    Copy the full SHA
    add61e9 View commit details
    Browse the repository at this point in the history
  6. layouts: add readme to pyproject.toml on creation

    Relates-to: python-poetry#280
    
    Co-authored-by: Arun Babu Neelicattu <[email protected]>
    finswimmer and abn committed Apr 10, 2021
    Configuration menu
    Copy the full SHA
    7ce029e View commit details
    Browse the repository at this point in the history
  7. command/new: make readme format configurable

    This change makes readme formant configurable, defaulting to markdown
    when using the new command.
    
    Resolves: python-poetry#280
    Closes: python-poetry#1515
    
    Co-authored-by: Arun Babu Neelicattu <[email protected]>
    finswimmer and abn committed Apr 10, 2021
    Configuration menu
    Copy the full SHA
    152d720 View commit details
    Browse the repository at this point in the history