VersionConflict with .dirty
jpic opened this issue · comments
Yacht Shaver commented
Hi,
Hope you're doing well
Any idea how to overcome this kind of error when installing modules from git repos with -e ?
pkg_resources.VersionConflict: (cli2 2.0.1.dev1.dirty (/home/jpic/src/cli2), Requirement.parse('cli2>=2'))
Thanks
Zoran Simic commented
How to reproduce this? I tried this but don't see any warning:
python3 -mvenv .venv
.venv/bin/pip install -U pip setuptools wheel
.venv/bin/pip install -e .
.venv/bin/python setup.py --version
.venv/bin/cli2 --help
I'd recommend you add at least the following entries to your .gitignore
(so to avoid git status
noise on build artifacts):
# Build artifacts
__pycache__/
*.py[cod]
/*.egg*
.tox/
.venv/
build/
dist/
# Caches
.DS_Store
.idea/