Coverage for /home/pradyumna/Languages/python/packages/pyprojstencil/pyprojstencil/init_venv.py: 0%

Shortcuts on this page

r m x   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

5 statements  

1#!/usr/bin/env python3 

2# -*- coding:utf-8; mode:python; -*- 

3# 

4# Copyright 2021 Pradyumna Paranjape 

5# This file is part of pyprojstencil. 

6# 

7# pyprojstencil is free software: you can redistribute it and/or modify 

8# it under the terms of the GNU Lesser General Public License as published by 

9# the Free Software Foundation, either version 3 of the License, or 

10# (at your option) any later version. 

11# 

12# pyprojstencil is distributed in the hope that it will be useful, 

13# but WITHOUT ANY WARRANTY; without even the implied warranty of 

14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 

15# GNU Lesser General Public License for more details. 

16# 

17# You should have received a copy of the GNU Lesser General Public License 

18# along with pyprojstencil. If not, see <https://www.gnu.org/licenses/>. 

19# 

20""" 

21Initialize git repository with ``pagan`` branch 

22 

23``master`` this can be derived later from pagan by 

24trimming all unnecessary history 

25""" 

26 

27from virtualenv import cli_run 

28 

29from pyprojstencil.configure import PyConfig 

30 

31 

32def init_venv(config: PyConfig): 

33 """ 

34 Initialize a git project 

35 

36 Args: 

37 config: configuration for project 

38 """ 

39 # run installation 

40 cli_run([str(config.project / ".venv"), '-p', config.pyversion])