Commit Graph

79 Commits

Author SHA1 Message Date
Matt Davis 9a3b3ce706 Issue 4993 Add standard pre commit hooks and apply linting. (#4994)
* Add .pre-commit-config.yaml to the project and exclude tests (for now).  This does not include the MyPy linting that pip does but does include everything else.
2022-03-29 23:01:50 -04:00
Frost Ming 66e9fbed5f Fix the vendoring imports 2021-11-12 09:34:05 +08:00
Frost Ming 2d2a0fa15c rewrite imports 2021-11-11 23:33:10 +08:00
Frost Ming ff32a68771 Remove some usages of vistir.compat 2021-11-08 23:49:40 +08:00
Frost Ming 8c00961bfe fix yaml installation 2021-11-05 17:13:42 +08:00
Frost Ming 866a56d2e3 Apply patches for notpip 2021-11-04 16:05:26 +08:00
Frost Ming 74ba8fc6b1 Remove yaml2 lib 2021-07-28 11:23:20 +08:00
Frost Ming ca5d931f1f Update to py36 plus syntax 2021-07-28 10:59:00 +08:00
Frost Ming 17861457c4 Delete py2 compat dependencies 2021-07-27 21:53:59 +08:00
Frost Ming 9e04f49e05 Update vendor script 2021-07-27 17:46:41 +08:00
Frost Ming 5e8871536c update vendored list 2021-07-26 23:31:26 +08:00
ankitdobhal 5843f1e57b chore : refactor code quality issues
- Added '.deepsource.toml' file for continuous analysis on bug risk

- Remove `unused` imports

- Remove duplicate dictionary key(s)

- Refactor the comparison involving `not`

- Remove `length check` in favour of truthiness of the object

Signed-off-by: ankitdobhal <dobhal.ankit@protonmail.com>
2021-04-01 08:33:55 -04:00
Frost Ming db5e0c178a ensure the directory exists 2021-01-20 11:55:51 +08:00
Frost Ming 5a799a1230 Update vendoring script for pyyaml 2021-01-20 10:47:30 +08:00
Frost Ming fac49444a5 Change patch and vendoring scripts 2020-11-12 18:42:13 +08:00
Frost Ming a0344bdf7a Update pinned versions 2020-11-12 17:28:30 +08:00
Frost Ming 1249e20a95 Change the KR url 2020-10-27 17:53:57 +08:00
Frost Ming 45d9332cc0 Update dependency tomlkit 2020-08-27 20:35:25 +08:00
frostming 034bd6a4fe Update requirementslib to 1.5.12 2020-07-10 16:06:14 +08:00
Dan Ryan 580056f8ee Update license download script to accurately name licenses
Signed-off-by: Dan Ryan <dan.ryan@canonical.com>
2020-04-27 17:04:15 -04:00
Dan Ryan 79bcbbab53 Fix safety zipfile generation
Signed-off-by: Dan Ryan <dan.ryan@canonical.com>
2020-04-22 13:59:20 -04:00
Dan Ryan 8e0d01998c Vendor safety outside of zipfile
- Vendor `pyyaml == 5.3.1`
- Vendor `dparse == 0.5.0`
- Vendor `safety == 1.8.7`
- Remove built `pyyaml` extensions and move `lib` directory to
  `vendor/yaml2` and `lib3` to `vendor/yaml3`
- Patch `safety` to use modified `pyyaml` paths
- Update outdated dependencies:
  - `urllib3 1.25.8 => 1.25.9`
  - `certifi 2019.11.28 => 2020.4.5.1`
  - `pyparsing 2.4.6 => 2.4.7`
  - `resolvelib 0.2.2 => 0.3.0`

Signed-off-by: Dan Ryan <dan.ryan@canonical.com>
2020-04-20 17:23:57 -04:00
Dan Ryan e19129e5df Fix safety script and re-vendor safety
Signed-off-by: Dan Ryan <dan.ryan@canonical.com>
2020-04-17 19:57:46 -04:00
Dan Ryan b4b5691577 Fix failing pyup API key
- Update vendored safety package
- Swap to blank pyup API key by default (but allow custom key)
- Slightly improve safety revendoring
- Fixes #4188

Signed-off-by: Dan Ryan <dan.ryan@canonical.com>
2020-04-16 21:23:37 -04:00
Dan Ryan e03878d7c7 Add news entry and fix lockfile
- 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>
2020-04-10 12:14:06 -04:00
Dan Ryan 7923151d2b Update vendoring script
- Pull licenses from .DIST-INFO files if available before cleaining up
  wheel metadata

Signed-off-by: Dan Ryan <dan.ryan@canonical.com>
2020-04-10 12:14:04 -04:00
Dan Ryan e629c0ce02 Update vendor.txt and ecosystem libraries
- 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>
2020-04-10 12:14:01 -04:00
Dan Ryan d9cddcb890 Updated and re-patched vendored dependencies
- **click-completion**: ``0.5.1 => 0.5.2``
- **python-dotenv**: ``0.10.2 => 0.10.3``
- **jinja2**: ``2.10. => 2.10.3``
- **parse**: ``1.12.0 => 1.13.0``
- **pathlib2**: ``2.3.3 => 2.3.5``
- **pipreqs**: ``0.4.9 => 0.4.10``
- **urllib3**: ``1.25.2 => 1.25.7``
- **certifi**: ``2019.3.9 => 2019.11.28``
- **requirementslib**: ``1.5.1 => 1.5.4``
- **attrs**: ``19.1.0 => 19.3.0``
- **distlib**: ``0.2.9 => 0.3.0``
- **packaging**: ``19.0 => 19.2``
- **pyparsing**: ``2.3.1 => 2.4.5``
- **tomlkit**: ``0.5.3 => 0.5.8``
- **six**: ``1.12.0 => 1.13.0``
- **semver**: ``2.8.1 => 2.9.0``
- **vistir**: ``0.4.2 => 0.4.3``
- **pip-shims**: ``0.3.2 => 0.4.0``
- **yaspin**: ``0.14.3 => 0.15.0``
- **cerberus**: ``1.3.1 => 1.3.2``
- **pep517**: ``0.5.0 => 0.8.1``
- **orderedmultidict**: ``1.0 => 1.0.1``
- **pip**: ``19.0.3 => 19.3.1``
- **pip-tools**: ``3.5.0 => 4.3.0``

Signed-off-by: Dan Ryan <dan.ryan@canonical.com>
2020-04-10 12:14:00 -04:00
frostming 7d36f3fbda Reformat codes 2019-09-06 18:06:05 +08:00
Dan Ryan b4b54020b6 Merge branch 'master' into unused-vendor-shutilwhich 2019-05-26 17:08:42 -04:00
Dan Ryan fa56deacb1 Merge branch 'master' into unused-vendor-shutilwhich 2019-05-19 22:01:06 -04:00
Dan Ryan c187398d3f Merge branch 'master' into unused-vendors 2019-05-19 22:01:02 -04:00
Dan Ryan c23e57b482 Fix test and pipeline definitions
- 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>
2019-05-18 23:22:53 -04:00
Dan Ryan 7e394c39e7 Fix license download script
Signed-off-by: Dan Ryan <dan@danryan.co>
2019-05-16 01:24:47 -04:00
Dan Ryan 8e1e825041 Update vendored pip licenses
Signed-off-by: Dan Ryan <dan@danryan.co>
2019-05-15 22:02:58 -04:00
John Vandenberg 2481471b7d Remove unused vendored blindspin
This package is no longer used.

Closes https://github.com/pypa/pipenv/issues/3640
2019-05-08 19:30:56 +07:00
John Vandenberg d79ae0c270 Remove unused vendored shutilwhich
This package is no longer used.

Closes https://github.com/pypa/pipenv/issues/3621
2019-05-08 19:29:50 +07:00
Dan Ryan 05d3b5af26 Update license download script
Signed-off-by: Dan Ryan <dan@danryan.co>
2019-02-24 22:34:26 -05:00
Dan Ryan ed3f206e64 Update vendored dependency pins
- Update gitignore entries for mypy config
- Update release task to add version after bumping but before release
- Fixes #3326 (going forward at least)
- Split out patching from vendoring so it can be done as a separate step
  if needed
- Update patches to account for updated packages
- Fixes #3432
- Fixes #2757
- Fixes #3305
- Fixes #2914
- Fixes #3439
- Fixes #3422
- Fixes #3378
- Fixes #3376
- Fixes #3315

Signed-off-by: Dan Ryan <dan@danryan.co>
2019-01-21 12:20:20 -05:00
jxltom 084bf41f77 Resort imports for tasks 2018-12-01 18:49:37 +08:00
Dan Ryan a08a2da524 Don't give child deps of vcs deps auto-precedence
- Stop preferring resolution of VCS dependencies in all cases
- Resolve vcs dependencies together with non-vcs dependencies
- Clarify blocking and no-deps logic
- Add artifacts and tests
- Add vendoring task for artifacts
- Clean up release tasks
- Fixes #3296

Signed-off-by: Dan Ryan <dan@danryan.co>
2018-11-24 17:10:45 -05:00
Dan Ryan 8a56a75cd5 Fix virtualenv creation and error logging
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-10-30 01:07:01 -04:00
Dan Ryan 0cefb5ed9b Finish updating vendored deps
Signed-off-by: Dan Ryan <dan@danryan.co>

Update delegator patch

Signed-off-by: Dan Ryan <dan@danryan.co>

Update patches for pip

Signed-off-by: Dan Ryan <dan@danryan.co>

Update vendored deps

Signed-off-by: Dan Ryan <dan@danryan.co>

Update patches

Signed-off-by: Dan Ryan <dan@danryan.co>

Fix imports to use pip shims instead of direct imports

Signed-off-by: Dan Ryan <dan@danryan.co>

Update vendoring scripts and pip shims

Signed-off-by: Dan Ryan <dan@danryan.co>

Log to stdout in real time during verbose logging

Signed-off-by: Dan Ryan <dan@danryan.co>

Don’t log environment

Fix unicode decoding issues

Signed-off-by: Dan Ryan <dan@danryan.co>

Only set buffers on ttys

Signed-off-by: Dan Ryan <dan@danryan.co>

Fix typo

Signed-off-by: Dan Ryan <dan@danryan.co>

Use default encodings

Signed-off-by: Dan Ryan <dan@danryan.co>

Fix encodings and run only failing tests

Signed-off-by: Dan Ryan <dan@danryan.co>
2018-10-30 01:07:20 -04:00
Dan Ryan 4dac167657 Vendor boltons
Signed-off-by: Dan Ryan <dan@danryan.co>

Update vendored dependencies

Signed-off-by: Dan Ryan <dan@danryan.co>

Fix file handle leaks

- Fix #3020
- Fix #3088
- Patch delegator
- Add weakref finalizer for tempfiles

Signed-off-by: Dan Ryan <dan@danryan.co>

Fix spinner handlers on windows

Signed-off-by: Dan Ryan <dan@danryan.co>

Fix spinner output and encoding issue

Signed-off-by: Dan Ryan <dan@danryan.co>

fix encoding

Signed-off-by: Dan Ryan <dan@danryan.co>

Fix unicode output on windows, fix tomlkit imports

Signed-off-by: Dan Ryan <dan@danryan.co>

Unvendor boltons, fix compatibility, update merge functionalities

Signed-off-by: Dan Ryan <dan@danryan.co>

Update pythonfinder, vistir version, requirementslib version

Signed-off-by: Dan Ryan <dan@danryan.co>

Fix vendoring script

Signed-off-by: Dan Ryan <dan@danryan.co>

Silence pip version checks

Signed-off-by: Dan Ryan <dan@danryan.co>

Add debugging to locking

Signed-off-by: Dan Ryan <dan@danryan.co>
2018-10-30 01:07:07 -04:00
Dan Ryan ad2d6c9363 Update all vendored dependencies
- Verified all license changes
- Brings us current with the latest releases
- Didn't identify any breaking changes in click

Signed-off-by: Dan Ryan <dan@danryan.co>
2018-10-07 05:25:58 -04:00
Dan Ryan 4a5b63a0bb Fix passa vendoring task
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-10-07 05:25:58 -04:00
Dan Ryan a698fee9bb Add passa to vendoring task
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-10-07 05:25:58 -04:00
Dan Ryan 320f2169ae Vendor passa as zip for running in venvs
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-10-07 05:25:58 -04:00
Dan Ryan ddb6065ee2 Final fixes to vendoring
- Add news
- upate test runner
- Unvendor typing
- Fix environment error
- Fix click completion patch
- update vendoring script
- Install flit with vendoring script for wheels
- disable build isolation also

Signed-off-by: Dan Ryan <dan@danryan.co>
2018-08-27 16:01:11 -04:00
Dan Ryan bd7b6004fe Update requirementslib and re-patch piptools
- Fix attempted hashing of `ssh://` urls
- Fix URL parsing and conversions of `git` and `git+ssh` style vcs urls
- Fixes #2653
- Fixes #2446
- Update lockfile
- Vendor typing
- Add typing to setup.py
- Add click completion patch and update vendoring task
- Fix vendoring script
- Vendor enum34
- Update requirementslib and cleanup vcs check functionality
- Move enum and adjust patched click completion
- Update click completion
- Bump requirementslib again
- Move typing to backports, update tests
- Update tomlkit imports and backport typing module

Signed-off-by: Dan Ryan <dan@danryan.co>
2018-08-27 15:59:36 -04:00