Commit Graph

49 Commits

Author SHA1 Message Date
Christian Clauss 5d7a0ee0c5 Add Python 3.11 release candidate to the testing 2022-11-05 22:21:33 +01:00
Oz Tiram 6f8831316c CI: pin python version for vendoring
Invoke does not support Python3.11
2022-11-04 10:49:54 +01:00
Oz N Tiram 73149a970c Merge branch 'main' into pip-22.3 2022-10-25 10:06:33 +02:00
gokhan721 1569a313ab added foresight workflow and test kit actions 2022-10-21 16:55:11 +03:00
Matt Davis 7e44219f25 Use latest python in vendoring. 2022-10-16 09:46:50 -04:00
AlexNDRmac 7b98aa2223 Replace deprecated workflow command 2022-10-12 18:50:02 +03:00
Alex 7ef550afca GitHub Workflows security hardening (#5365)
* build: harden pypi_upload.yml permissions
Signed-off-by: Alex <aleksandrosansan@gmail.com>

* build: harden ci.yaml permissions
Signed-off-by: Alex <aleksandrosansan@gmail.com>
2022-09-20 15:41:21 -04:00
Matt Davis 9848862927 Convert test runner to use pypiserver package as standalone process (#5284)
* Check point progress on moving tests to pypiserver.

* Allow other indexes to mimic the pypi json API for package hashes.

* Fix these tests that run on lower python versions only.

* Try adding the pypiserver to the github actions to only run once.

* Expand the scope of fixtures for pypiserver.

* try to accomedate microsoft runner.

* Windows networking troubles.

* Remove running as a background job.

* Try to condtionally invoke different start pypi-server commands

* Try to condtionally invoke different start pypi-server commands

* Try to condtionally invoke different start pypi-server commands

* Try to condtionally invoke different start pypi-server commands

* Try to condtionally invoke different start pypi-server commands

* Try to condtionally invoke different start pypi-server commands

* Try to condtionally invoke different start pypi-server commands

* Try to introduce pypi as the root index because setuptools-scm is not in our pypi artifacts.

* see if the windows tests run faster (and the other tests) by supplying waitress.

* Only use waitress on windows because the others are fast on the default.  Fix requests pollution.

* Supply a suitable Pipfile instead for these two failing tests.

* More requests resolver cross test contamination cleanup.

* remove problematic tests because even on my version of python 3.8.12 this does not work due to AttributeError: 'HTMLParser' object has no attribute 'unescape'

* fix mirror install test.

* Fix Pipfile.

* Fix Pipfile for real

* Fix tests

* Cleanup test naming and more test enhancements.

* Save this optimization for a subsequent PR.

* Cleanup the TemporaryDirectory between tests.

* resolve merge conflict.

* Cleanup path initalization -- it hsould always be a TemporaryDirectory for tests that gets cleanedup.

* Cleanup path initalization -- it hsould always be a TemporaryDirectory for tests that gets cleanedup.

* tableflip on those requests tests that read the setup metadata in reqlib from other tests.

* Update developer documentation for running tests.

* add news fragment.

* Try gunicorn perfoormance for linux/mac

* Only use gunicorn on linux based on the results of last run.
2022-09-05 10:19:12 -04:00
Matt Davis cd18f8fefc More iterating on a problem. 2022-08-19 07:52:08 +02:00
Matt Davis bd9d62d907 More iterating on a problem. 2022-08-19 07:52:08 +02:00
Matt Davis 692f79dc75 More iterating on a problem. 2022-08-19 07:52:08 +02:00
Matt Davis 58e552cb56 this change did not help. 2022-08-19 07:52:08 +02:00
Matt Davis fb0ffa1491 Eperimenting with the CI failures due to setuptools upgrade. 2022-08-19 07:52:08 +02:00
Christian Clauss 48fad66814 Upgrade GitHub Actions (#5244)
* Upgrade GitHub Actions
2022-08-13 10:24:13 -04:00
Matt Davis fbb1a5a6e7 Update pypi release action. 2022-08-13 08:41:29 -04:00
Matt Davis 56b94971a8 Add back these setuptools steps. 2022-08-07 22:53:26 +02:00
Matt Davis af9460ecde This is possibly no longer required and could be breaking the build. 2022-08-07 22:53:26 +02:00
Matt Davis 9200fe1635 Reenable these tests again on the Windows CI. (#5163)
* reenable these skipped tests on the Windows CI as they appear to be passing again.
2022-07-05 23:55:39 -04:00
Matt Davis 0ee8234890 Issue 5000 remove requests certifi (#5146)
* Depend on requests and certifi from vendored pip and remove it as explicit vendor dependency.

* Documentation tweak.

* Add a news fragment.

* Update remaining vendor dependencies to point at the pip requests.

* vendoring task needs requests.
2022-06-27 21:13:30 +02:00
Tomas Orsava ac005b913f Make the CI work 2022-05-26 15:07:51 +02:00
Oz N Tiram e5d08fb85f Limit resource usage in CI (#5079)
Fix #5073
2022-04-23 22:42:47 -04:00
Matt Davis 8d5db1a47d second time this has prevented fixing the Changelog.rst after a failed lint 2022-04-20 22:43:31 -04:00
Oz N Tiram 891486e180 CI improvements (#5061)
* Add step to vendor dependencies in the Makefile

* Reorganize the order of jobs and dependencies

* Make all jobs run only after the lint stage
2022-04-20 08:17:01 -04:00
Matt Davis f3166e673f check point progress on only bringing in pip==22.0.4 (#4966)
* vendor in pip==22.0.4

* updating vendor packaging version

* update pipdeptree to fix pipenv graph with new version of pip.

* Vendoring of pip-shims 0.7.0

* Vendoring of requirementslib 1.6.3

* Update pip index safety restrictions patch for pip==22.0.4

* Update patches

* exclude pyptoject.toml from black to see if that helps.

* Move this part of the hash collection back to the top (like prior implementation) because it affects the outcome of this test now in pip 22.0.4
2022-04-18 23:48:38 -04:00
Matt Davis 5d845dc6b9 Added pytest-cov and addressed outdated references to pip-tools (#5038)
* Add pytest-cov; Remove code references to pip-tools and refactor method _build_package_list

* Regenerate lock file.

* Add back required typing-extensions, not sure how it got dropped from locking previously.

* Adopt the setup.cfg for coverage config.

* Actually pin to the version of click we have vendored in.

* Do not adopt coverage for CI since it slows everything down.  Fix py36 dependency pinning.

* Drop support for 3.6 in this PR.

* No need to exclude the vendor and patched directory from the coverage reprot.
2022-04-14 08:59:27 +02:00
Matt Davis 4f676ac9c8 sphinx formatting change and fix CLI docs (#5032)
* sphinx formatting change.

* minor doc formatting improvements.

* check point progress

* Get the CLI docs generating again.

* Add news item for fixed CLI documentation.

* Dont skip build of docs changes.

* fix linting
2022-04-08 11:36:18 +02:00
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 21b6a0839f Include py3.6 testing in CI matrix 2021-11-17 11:10:34 +08:00
Frost Ming 4ac5efc3fe add news fragment 2021-11-05 23:22:26 +08:00
Frost Ming 5c7435a071 trigger CI on main branch 2021-11-05 18:01:34 +08:00
Frost Ming 8c00961bfe fix yaml installation 2021-11-05 17:13:42 +08:00
Frost Ming b69e71d3a9 Add CI jobs for packaging and vendoring 2021-11-05 16:42:56 +08:00
Frost Ming e06d9e0287 change a package 2021-11-05 12:43:11 +08:00
Frost Ming 0f9e0d300b Run CI against Python 3.10 2021-11-05 10:12:42 +08:00
Frost Ming 46ea38fcca Isolate environment variables 2021-08-03 10:41:17 +08:00
Frost Ming 72835f142c Fix release workflow 2021-05-29 11:05:47 +08:00
Dulmandakh 2521a480a8 drop python2 from CI 2021-01-28 15:26:48 +08:00
frostming 0394f4de8b remove virtualenv<20 constraint 2020-08-31 09:58:17 +08:00
Shohei Ueda 886526ab14 Switch commit author to GitHub Actions bot
- user.name: 'github-actions[bot]'
- user.email: 'github-actions[bot]@users.noreply.github.com'

cf. https://github.com/peaceiris/actions-gh-pages
2020-06-08 09:30:34 +09:00
Dan Ryan 979cc69dec Switch automated release action to point at production pypi
Signed-off-by: Dan Ryan <dan.ryan@canonical.com>
2020-04-28 22:07:08 -04:00
Dan Ryan 061f430148 Update CI exclusion rules
- Fix build rules for deployment environment

Signed-off-by: Dan Ryan <dan.ryan@canonical.com>
2020-04-28 21:59:55 -04:00
Dan Ryan 4e7b6e6093 Fix tag syntax in workflow yaml
Signed-off-by: Dan Ryan <dan.ryan@canonical.com>
2020-04-28 20:53:36 -04:00
Dan Ryan cac14da5e8 Fix upload task before tagging
Signed-off-by: Dan Ryan <dan.ryan@canonical.com>
2020-04-28 18:27:46 -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
Pradyun Gedam d668af0d27 GA: Nicer naming! 2020-04-10 12:16:12 -04:00
Pradyun Gedam 8cf5ee5b2b GA: Don't run on non-master branches 2020-04-10 12:16:11 -04:00
Dan Ryan 520e9be5b0 adjust virtualenv installation order
- Fix azure pipelines script

Signed-off-by: Dan Ryan <dan.ryan@canonical.com>
2020-04-10 12:16:10 -04:00
Dan Ryan 5e68bcab8c Allow github tests to finish even if one fails, tweak windows tests
Signed-off-by: Dan Ryan <dan.ryan@canonical.com>
2020-04-10 12:15:59 -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