Commit Graph

282 Commits

Author SHA1 Message Date
Frost Ming fac3eaeaa7 Revendor packages and update patches 2021-07-27 09:45:57 +08:00
Frost Ming 5e8871536c update vendored list 2021-07-26 23:31:26 +08:00
Frost Ming 8c9039d0af Remove passa from vendors 2021-07-26 15:41:19 +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 35a80285d7 Fix the release script 2020-11-13 16:37:59 +08:00
Frost Ming cd6fc80451 Inject vendor library root 2020-11-13 09:16:15 +08:00
Frost Ming 7b731533c1 update patch file 2020-11-12 22:31:04 +08:00
Frost Ming 0a7235b12e Add test case 2020-11-12 22:06:25 +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 a94afd2afd Restrict the acceptable hash type to SHA256 only 2020-11-05 09:17:25 +08:00
Frost Ming 2f92245172 Restore the whitespaces 2020-10-28 10:06:37 +08:00
Frost Ming d34feeece4 Fix the file encoding 2020-10-28 10:05:12 +08:00
Frost Ming 7bb6668cdf Update piptools patch 2020-10-28 09:57:49 +08:00
Frost Ming 491fa333b1 fix the hash value 2020-10-27 18:29:51 +08:00
Frost Ming 1249e20a95 Change the KR url 2020-10-27 17:53:57 +08:00
Frost Ming 41b31a4392 revert format change 2020-10-27 17:06:20 +08:00
Frost Ming 52160d1a09 Encode hash value 2020-10-27 16:23:21 +08:00
Frost Ming 4236a71303 Reduce the number of internet requests to get hash 2020-10-27 16:09:56 +08:00
Frost Ming 8a215dd198 remove typing imports 2020-08-27 21:30:14 +08:00
Frost Ming 45d9332cc0 Update dependency tomlkit 2020-08-27 20:35:25 +08:00
frostming f58a97329e update vendors 2020-08-12 15:24:07 +08:00
frostming 034bd6a4fe Update requirementslib to 1.5.12 2020-07-10 16:06:14 +08:00
frostming 564ed68718 Update pythonfinder from 1.2.2 to 1.2.4 2020-06-01 21:47:06 +08:00
frostming c5d2129e2b Update requirementslib 2020-06-01 19:21:16 +08:00
Dan Ryan ed30845837 Update gitignore and release task
Signed-off-by: Dan Ryan <dan.ryan@canonical.com>
2020-05-28 00:03:57 -04:00
Dan Ryan 45675144bd Merge branch 'master' into import-vendored-attrs 2020-05-27 19:57:37 -04:00
Dan Ryan df664f2784 Add patch to update attrs import paths and add news entry.
Signed-off-by: Dan Ryan <dan.ryan@canonical.com>
2020-05-27 19:57:02 -04:00
Dan Ryan 3acad96afd Fix piptools patch typo
Signed-off-by: Dan Ryan <dan.ryan@canonical.com>
2020-05-27 19:49:56 -04:00
Dan Ryan 8cc00622cc Update makefile to build docs
Signed-off-by: Dan Ryan <dan.ryan@canonical.com>
2020-05-20 15:58:49 -04:00
Dan Ryan 12e46a0bfb Fix release file
Signed-off-by: Dan Ryan <dan.ryan@canonical.com>
2020-05-20 15:24:13 -04:00
Dan Ryan 3549d28702 Update release script
Signed-off-by: Dan Ryan <dan.ryan@canonical.com>
2020-05-20 15:12:12 -04:00
Dan Ryan ed780c4061 Tweak crayons patch with vendored imports
- 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>
2020-05-20 01:47:48 -04:00
Dan Ryan 4c10c35b57 Update vistir patch
Signed-off-by: Dan Ryan <dan.ryan@canonical.com>
2020-05-19 19:48:37 -04:00
Dan Ryan 47aa2acc90 Set build_isolation and use_pep517 correctly
- 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>
2020-05-08 21:43:32 -04:00
Dan Ryan 7059a26fbd Float wheels to the top of the candidate sort order
- `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>
2020-05-08 09:59:09 -04:00
Dan Ryan c30155ff45 Fix recursive PEP 508 VCS resolution
- 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>
2020-05-05 23:44:34 -04:00
Dan Ryan 881d0e9923 Update release task
Signed-off-by: Dan Ryan <dan.ryan@canonical.com>
2020-04-29 00:02:06 -04:00
Dan Ryan 76576761c6 Allow incompatible links during hash lookup
Signed-off-by: Dan Ryan <dan.ryan@canonical.com>
2020-04-28 11:47:00 -04: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 ca1da4b295 Fix broken pip patch
Signed-off-by: Dan Ryan <dan.ryan@canonical.com>
2020-04-27 16:59:53 -04:00
Dan Ryan d8f0100c08 Update patches for pip and piptools
Signed-off-by: Dan Ryan <dan.ryan@canonical.com>
2020-04-27 15:28:30 -04:00
Dan Ryan d8be535006 Update patch for pep425tags to include os import
Signed-off-by: Dan Ryan <dan.ryan@canonical.com>
2020-04-26 15:55:20 -04:00
Dan Ryan 483161fea1 Only build with one python version
Signed-off-by: Dan Ryan <dan@danryan.co>
2020-04-24 18:13:02 -04:00
Dan Ryan 60818d7b31 Automate release workflow
- 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>
2020-04-24 18:01:13 -04:00
Dan Ryan cf8fa39b88 Update build script in tasks
Signed-off-by: Dan Ryan <dan.ryan@canonical.com>
2020-04-23 22:13:47 -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 1bc1bd75ac Add pipenv vendor dirs to safety runtime paths
- Fix configparser import and add patch in dparse
- Update patch on safety to add paths

Signed-off-by: Dan Ryan <dan.ryan@canonical.com>
2020-04-20 18:26:31 -04:00