@nox.parametrize('sample', SAMPLES_WITH_GENERATED_READMES)
def session_readmegen(session, sample):
 session.install('jinja2', 'pyyaml')
 if os.path.exists(os.path.join(sample, 'requirements.txt')):
  session.install('-r', os.path.join(sample, 'requirements.txt'))
 in_file = os.path.join(sample, 'README.rst.in')
 session.run('python', 'scripts/readme-gen/readme_gen.py', in_file)

@ nox . parametrize ( 'sample' , SAMPLES_WITH_GENERATED_READMES ) def session_readmegen ( session , sample ) : session . install ( 'jinja2' , 'pyyaml' ) if os . path . exists ( os . path . join ( sample , 'requirements.txt' ) ) : session . install ( '-r' , os . path . join ( sample , 'requirements.txt' ) ) in_file = os . path . join ( sample , 'README.rst.in' ) session . run ( 'python' , 'scripts/readme-gen/readme_gen.py' , in_file )
generates the readme for a sample .