- Remove now-unused `allow_global` argument to pip install
argument builder
- Update vistir version number and code to fix vendoring issue
Signed-off-by: Dan Ryan <dan.ryan@canonical.com>
- Fix how `use_pep517` and `build_isolation` are read from the
environment -- introduce a new environment helper to detect
`<PREFIX>_<SETTING>` and `<PREFIX>_NO_<SETTING>`, check for booleans
and return appropriately boolean, str, or None types
- Check for `False` values when adding `--no-use-pep517` and
`--no-build-isolation` during resolution rather than falsey values
- Change environment variable name from `PIP_PYTHON_VERSION` to
`PIPENV_REQUESTED_PYTHON_VERSION` to avoid causing `pip` to fail due
to accidentally percieving the `python_version` flag as being set --
this is an artifact from attempting to resolve outside of the
virtualenv
- Add `pipenv` to the path of patched `notpip.__main__` to accommodate
updated import fully qualified module names
- Update `pip` and `piptools` patches
- Add test packages for each of two known failure modes: outdated
`setuptools` with a missing `build-backend` (which `pip` forces to
`build_meta:__legacy__` & which doesn't exist before `40.8`), and
`import Cython` statements in `setup.py` in packages with properly
defined `pyproject.toml` `build-backend` lines.
- Fixes#4231
- Replaces, includes, and closes#4242
Signed-off-by: Dan Ryan <dan.ryan@canonical.com>
Add integration tests for #4231
Signed-off-by: Dan Ryan <dan.ryan@canonical.com>
- `ignore_compatibility` is meant to resolve hashes into the lockfile
after resolution happens
- We still want compatible items to be the ones we actually tell pip to
install
- Fixes#4231
Signed-off-by: Dan Ryan <dan.ryan@canonical.com>
- Recursively resolve PEP 508 URLs in subdependencies
- Fix `piptools` cache storage of VCS dependencies as results
- Avoid saving VCS dependency versions to `Pipfile.lock`
- Fixes#3396
- Fixes#4217
Signed-off-by: Dan Ryan <dan.ryan@canonical.com>
- Automatically release when tags are pushed to master
- Release automation will build wheel and sdist + upload to pypi
- Added test pypi as initial target
- Updated version update scripts to help with automatic version
management
Signed-off-by: Dan Ryan <dan@danryan.co>
- Requests doesn't unpack zipped certs when they are set directly
- Zipped bundles are unpacked when they are discovered
- So we can just include certifi and put it on `sys.path`
Signed-off-by: Dan Ryan <dan.ryan@canonical.com>
- Drop pytest-tap
- Update azure pipelines config
- Borrow ramdisk configuration from pip
- Fix pyinstaller ref for python 2
- Add 0-minute timeout and add github workflow
- Add skip for pywin32
- Scale down to `-n auto` to reduce race conditions on windows
- Skip pywin32 on python 3.8 as the relevant dependencies aren't
compatible
- Use default pip exists action = ignore to work around VCS race
condition
- Create local temp directory to avoid crossing drive letter boundary on
azure during CI runs
- Monkeypatch click windows console detection to return False in CI
Signed-off-by: Dan Ryan <dan.ryan@canonical.com>
- Update `pip_shims`, `pythonfinder`, `requirementslib`, `vistir`
- Add patches to update or fix import paths where necessary
- Hardcode funcsigs license
Signed-off-by: Dan Ryan <dan.ryan@canonical.com>
- Verbose logs will now write gracefully to the terminal even while the
spinner is running (i.e. during locking)
- This PR also cuts over to Devpi for a backing cache rather than a
hacked httpbin instance
- Inclues a refactor of `pip_install` to deduplicate logic
- Attempts to switch back to relying on native editable installs in pip
as the current implementation is broken on master (i.e. nothing is
installed in the virtualenv)
- Fixes#3809
Signed-off-by: Dan Ryan <dan@danryan.co>
author Dan Ryan <dan@danryan.co> 1554074378 -0400
committer Dan Ryan <dan@danryan.co> 1558982736 -0400
gpgsig -----BEGIN PGP SIGNATURE-----
iQIzBAABCgAdFiEEb6jpcpb+5zzDideCsyDQTvvOpJUFAlzsMFAACgkQsyDQTvvO
pJWZmRAAtge5wdprlLnKdWUYK5USZb7Uk3zJHi9UIvnO7nKP6UA/L2D/5nxZitvx
pZI7cGG+8sLp2yZNtQZdW6LNM1jmRXgzdMLYQh/5zo5gbj6KLOw7erh0FU3L3uM6
wNBNM135Eqt7b+4a4C5TEK2UjwRxBHAsF+3ZzUy+UJQqgQEKxFVxW4gC4yxpfMtL
jipE8ludwuOIM88ZJapmLpv2R6adQTxWZedTlmczdsy2/WKGHTCCpWs96PBbntdI
pVBmoXfMhgZi+IuGR3iBYU0qS97vjJ8Te9tQZAaB9JGSqv3hHDWo1ht/rrG2RXzp
3i0Cf2vG4035EUh56VYE9FCC9m6Vu3U9iIR34BZG9K5+lDP7pmJmjT+GymEgMP0N
GoP3LYUO+dJjMjaUEMsC6QIi6DAots3uk4lxIw3wcA4Im/N/i5xafsRj1Eu3UdBL
wBDKMz/FQjH+tD+mnvTlzaxD5vdhhCdBu1gK59rjNMlzg8hz6EF61QbHCaQHd4UI
VOGIa8ThLlLI3addxzq/McceAc+OsLJ9hm06jkjvvoIuKrHyE3DybdbYQC7uEwyw
2AvVuMDCPcciYQnkJhNTKmGvPcUDYD7cF91GKcUJKdPdyzDCeFEo5SUTKnLV4Cj2
VD2sdVUk4jnmYfE4pCFvHKYooxQDMKQk/VCKl1c9QHL9/ijCx+o=
=b+H1
-----END PGP SIGNATURE-----
Ensure resolver doesn't compare editable specifiers
- Don't compare versions of editable dependencies when updating using
`--keep-outdated` -- editable dependencies will now be updated to
the latest version
- Ensure we don't drop markers from the lockfile when versions are not
updated
- Fixes#3656
- Fixes#3659
Signed-off-by: Dan Ryan <dan@danryan.co>
Add future import for print function
Signed-off-by: Dan Ryan <dan@danryan.co>
Handle all possible markers in lockfiles
Signed-off-by: Dan Ryan <dan@danryan.co>
Fix json import
Signed-off-by: Dan Ryan <dan@danryan.co>
point to correct reference for lockfile
Signed-off-by: Dan Ryan <dan@danryan.co>
Fix marker merging errors
Signed-off-by: Dan Ryan <dan@danryan.co>
Prevent automatically setting `editable=True`
- Fixes#3647
Signed-off-by: Dan Ryan <dan@danryan.co>
Add new feature toggle for VCS dependency resolution
- Fixes#3577
Signed-off-by: Dan Ryan <dan@danryan.co>
Fix syntax error
Signed-off-by: Dan Ryan <dan@danryan.co>
Use string for environment
Signed-off-by: Dan Ryan <dan@danryan.co>
Fix class name resolution for py27
Signed-off-by: Dan Ryan <dan@danryan.co>
Write json files as unicode
Signed-off-by: Dan Ryan <dan@danryan.co>
Fix resolution with env var
Signed-off-by: Dan Ryan <dan@danryan.co>
- Update extras name in pipelines
- fix windows virtualenv calls
- don't write debug info during virtualenv creation and just move on
- Generalize some pipelines
- Use quotes around evaluated statements in pipeline
- Fix envvar references
- Update vistir:
- fix stream wrapper on windows
- fix ICACLS permissions handler
- fix path normalization function
- Update azure venv creation script
- Fix vendoring script
Signed-off-by: Dan Ryan <dan@danryan.co>