100 Commits

Author SHA1 Message Date
Matt Davis 0379507abb Update release script to enforce semver going forward in 2024 (#6052)
* Update release script to enforce semver going forward in 2024

* Update pipfile/lock for semver

* fix readme

* Update CI vendoring step for semver

* Dependeapot warning about version of pytest we are on

* remove options from help
2024-01-21 21:16:56 -05:00
Trenton H ef5383296a Updates the action to create a release to a maintained version 2023-11-22 09:03:34 -08:00
Matt Davis 1b3b61eb21 Python 3.12 support (passing) (#5987)
* pipenv support for python 3.12
2023-10-24 17:26:12 -04:00
engineerakki 527cfd0592 ci: fix ruff linter 2023-10-19 08:22:18 +02:00
Matt Davis 5df6d9c815 Drop 3.7 test runner (#5922)
* Drop 3.7 test runner and invoke 3.12

* Ok 3.12 on windows still hangs
2023-09-07 15:39:11 +02:00
Christian Clauss 8caf8fb1fc Python 3.12 test are failing on Linux, macOS, and Windows 2023-09-05 18:14:22 +02:00
Christian Clauss 6d0dd46f68 pre-commit: Add pyproject-fmt 2023-09-05 17:50:02 +02:00
kalebmckale 5f220a0a36 Replace "python setup.py" builds with "python -m build"
Found left-over remnants of `setup.py` install and updated with current
build method using `build` package.
2023-09-01 08:57:17 -04:00
Matt Davis 6ac1451ec8 stop using requirementslib models (#5793)
* Move away from requirementslib models

* Revise test since PEP-440 does not support wildcard versions but does support equivalent compatible release specifiers.

* simplify and remove dead code

* Ensure the os_name marker is AND with the other markers.

* Move what we still need from requirementslib into the pipenv utils and stop vendoring it.

* Remove requirementslib.

* force upgrade of virtualenv for python 3.12

* remove virtualenv-clone

* Update vcs specifiers documentation; infer name from specific pip line formats where possible.

* Provide helpful text and error for recently removed commands

* Set the right log levels and verbosity to show users the errors generated by pip resolver when supplying -v flag

* Fix the collection of all matching package hashes for non-pypi indexes.  Plus lesson from testing torch which contains local identifiers.
2023-08-19 16:36:52 -04:00
Christian Clauss 44e8aebc41 ruff --select=FLY,UP --target-version=py37 --fix . 2023-06-30 08:36:14 +02:00
Matt Davis 99800ec7a2 Requirementslib==2.3.0 (#5672)
* Bump requirementslib that drops vistir.

* Add news fragment

* Add missing file

* Remove vistir entirely

* fix circular import

* revert issue that may be causing circular import issue

* Hackaround current pythonfinder version importlib usage.

* PR Feedback

* fix lint
2023-04-29 19:22:28 +02:00
Matt Davis adf586c837 Remove foresight (#5669)
* Revert "Add Foresight status badge to README"

This reverts commit 57bb1e5ccb.

* resolve conflict
2023-04-27 16:50:47 +02:00
Matt Davis 740c3c0865 Vendor in latest packages available (#5657)
* Update to the latest vendoring package versions available.

* add news fragment

* fix vendoring CI
2023-04-18 15:34:41 +02:00
Bill Nottingham 424f7ead67 Require the actual 'beautifulsoup4' package, not the 'bs4' redirect. (#5620)
* Require the actual 'beautifulsoup4' package, not the 'bs4' redirect.

* Add changelog.
2023-02-28 07:43:25 +01:00
Matt Davis a81af08c7c Try matching how bdist_wheel is built locally. 2022-11-24 16:49:55 -05:00
Oz Tiram d1716a7b26 vendor: remove references to parse in vendor script
Install parse in the vendor environment, as it is still
used.
2022-11-20 17:25:03 +01:00
Oz Tiram 615f516d63 move concurrency to the top 2022-11-18 20:55:29 +01:00
Oz Tiram decfa6d9f7 Try again ... 2022-11-18 20:52:52 +01:00
Oz Tiram c71cb8f133 Fix syntax of CI job 2022-11-18 20:51:40 +01:00
Oz Tiram 428e973264 Allow starting CI jobs manually 2022-11-18 20:47:12 +01:00
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
Jeremy Fleischman 77bc74dce5 Actually filter out missing interpreters (#5262)
* Actually filter out missing interpreters

This fixes https://github.com/pypa/pipenv/issues/5261.

Before this change, I would get a "The Python interpreter can't be
found" error when running `pipenv install --system` with a python3 but
no python.
2022-08-16 15:33:34 -04: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
Oz N Tiram 25245b1625 Add FUNDING.yml 2022-06-21 08:07:44 +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