Bug#1010480: virtualenv: skip creating of .gitignore when creating virtualenv in .

2022-05-02 Thread stefanor
Tag: -1 + upstream

This sounds like a purely upstream bug, I'd encourage you to file it at:
https://github.com/pypa/virtualenv

FWIW, I see a very similar issue:
https://github.com/pypa/virtualenv/issues/2003
that was resolved by adding a command line flag.

SR

-- 
Stefano Rivera
  http://tumbleweed.org.za/
  +1 415 683 3272



Bug#1010480: virtualenv: skip creating of .gitignore when creating virtualenv in .

2022-05-02 Thread IOhannes m zmoelnig
Package: virtualenv
Version: 20.14.0+ds-1
Severity: wishlist

Dear Maintainer,

'virtualenv' creates a .gitignore file that just excludes everything from git.
this is practical, if you do something like this:

```
virtualenv myenv
```

as this will just exclude everything in the myenv/ folder from git
(which is what you usually want).

now, for convenience, i find myself using the following quite often:

```
virtualenv .
```

this will (unfortunately) create a .gitignore file in my current directory
that will ignore everything (including the sources i'm currently working on)

i think, that in the special case of creating a virtualenv in the current
directory, no .gitignore file should be created (or it should be tightened to
just ignore the files managed by virtualenv, which afaict are
- /bin/
- /lib/
- /pyenv.cfg
)

luckily, virtualenv won't overwrite any existing .gitignore file (so not all is
lost).

cheers,
IOhannes m zmölnig

-- System Information:
Debian Release: bookworm/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'oldstable-updates'), (500, 
'unstable'), (500, 'testing'), (500, 'oldstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.17.0-1-amd64 (SMP w/4 CPU threads; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages virtualenv depends on:
ii  python3-virtualenv  20.14.0+ds-1

virtualenv recommends no packages.

virtualenv suggests no packages.

-- no debconf information