Skip to content

First impressions & suggestions #250

@brechtm

Description

@brechtm

There are some minor things that occurred to me when taking my first steps with nox-poetry:

  1. the distribution_format argument to installroot needs to be of type DistributionFormat; it would be handy if it would accept strings ('sdist', 'wheel') as well.

  2. installroot requires distribution_format to be passed as a keyword argument. I didn't know this was possible and this is the first time I encountered this so it confused me.

  3. Perhaps a (slightly) nicer way to integrate with nox is to offer a replacement for nox.session. Then one could do:

     from nox_poetry import session, SDIST
     
     @session()
     def unit(session):
         session.installroot(SDIST)
         session.install('pytest')
         session.run('pytest', 'tests')

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions