Commit Graph

7426 Commits

Author SHA1 Message Date
Tomas Orsava 08ee1155e1 Make pipenv work with the venv install scheme if it is detected 2022-05-26 15:07:51 +02:00
github-actions[bot] 3e15161cb7 Bumped version.
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-05-03 03:46:11 +00:00
Matt Davis 08d96a3df1 v2022.5.2 2022-05-02 23:41:51 -04:00
Matt Davis 5b64a6d2a9 Merge pull request #5091 from tomarad/main
Fix lock -r warning being logged to stdout instead of stderr
2022-05-02 06:08:10 -04:00
Tom Arad 470acd3b9e Added a newline at the end of the news fragment 2022-05-02 08:27:53 +03:00
Tom Arad 8b8d2e14d1 Added a news fragment 2022-05-01 15:38:46 +03:00
Tom Arad 60f1f6dc44 Fixed lock -r warning being logged to stdout instead of stderr 2022-05-01 15:11:14 +03:00
github-actions[bot] 107925fb6d Bumped version.
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-30 23:12:57 +00:00
Matt Davis e8ce365b95 v2022.4.30 2022-04-30 19:09:27 -04:00
Oz N Tiram f429a30db0 Replace echo(style(...)) with secho(...) (#5090) 2022-04-30 10:26:13 +02:00
ImreC 6e26552628 Update docs and add deprecation warning for lock -r (#5069)
* Update docs and add deprecation warning for lock -r
2022-04-30 10:22:51 +02:00
Matt Davis ba259a674b revert setuptools required upgrade. (#5087)
* revert setuptools required upgrade.
2022-04-29 11:13:46 +02:00
Oz N Tiram ec34097407 Fixes of `requirements` with git requirements (#5083)
Solved by using existing convert_deps_to_pip function.

Fix #5076.

Original implementation by @fraser-langton. This also
solves the export of packages with editable mode, as suggested
by @hoyaaaa (#5071).
2022-04-26 13:19:17 +02:00
Matt Davis 347ce47973 vendor in requirementslib==1.6.4 (#5082)
* vendor in requirementslib==1.6.4

* add news fragment.
2022-04-25 11:04:47 +02:00
Matt Davis 295fb30873 Merge pull request #5078 from pypa/more-vistir-dropping
More vistir dropping
2022-04-24 23:15:18 -04:00
Oz N Tiram b5c7c1eb3b Drop crayons in exceptions.py (#5080)
* Remove crayons usage from exceptions.py

Replace all crayon color with appropriate `click.style`
calls.
2022-04-24 12:13:26 +02:00
Oz N Tiram fe552a0088 Limit resource usage in CI (#5079)
Fix #5073
2022-04-24 09:08:05 +02:00
Oz N Tiram e5d08fb85f Limit resource usage in CI (#5079)
Fix #5073
2022-04-23 22:42:47 -04:00
Oz N Tiram f83b4c3eea Add news fragment - describe dropping usage of vistir. 2022-04-24 01:11:08 +02:00
Oz N Tiram d5fe3fd384 Replace vistir.misc.echo with click.secho
The former is simply a copy paste of `click.echo`.

Since `click` has a much larger user base, it is likely
to correct all bugs on all OSes faster.
2022-04-24 01:01:00 +02:00
Oz N Tiram 1ae251482f Remove vistir.misc.dedup
This function is a nice to have alias for one line of code.
Also, it uses OrderedDict, which is no longer needed. `dict`s after
Python3.6 are guaranteed to be ordered (bonus: dict is faster than
ordered dict).

If we really want, we can also import it from zipp or python finder.
2022-04-23 22:57:36 +02:00
Oz N Tiram c8bb3fe568 Remove pipenv.vendor.vistir.compat.Path
pathlib was introduced after Python3.5. We now only
support Python3.7+, hence we don't need compat here.
2022-04-23 15:07:52 +02:00
Oz N Tiram 640d70d6f9 Removed vistir.compat.Mapping for collections.abc
Earlier versions of Python had Mapping in ``collections``. All versions
after 3.4 moved Mapping to ``collections.abc``
Since we only support version 3.7+ we can drop this.
2022-04-23 15:00:56 +02:00
Oz N Tiram 2bb915e16f Replace vistir.compat.NamedTemporaryFile with STL
NamedTemporaryFile was introduced in Python 3.4.
We only support Python 3.7+, hence this goes away.
2022-04-23 14:52:38 +02:00
Changho Park 9a6cf5db1a Print -e option and path for editable package when using pipenv requirements (#5071)
* Print `-e` option and path for editable package

* Reduce depth for logical complexity

* Add news fragment
2022-04-23 14:43:20 +02:00
github-actions[bot] 5ed5419336 Bumped version.
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-22 03:51:01 +00:00
Matt Davis 7191f5ca57 v2022.4.21 2022-04-21 23:47:15 -04:00
Oz N Tiram f0199ee47c Remove some more vistir usage (#5067)
* Removed usage of vistir.compat.JSONDecodeError

This is no longer needed since Python version 3.6. Earlier versions
didn't have json.JSONDecodeError and raised ValueError instead.

* Removed vistir.path.rmtree in favour of shutil.rmtree
2022-04-21 12:59:54 -04:00
Matt Davis 23851d8170 Issue 5056 setupy 36 (#5066)
* Fix that the setup.py still claimed to support 3.6
* Add news fragment.
2022-04-21 10:46:04 -04:00
github-actions[bot] 7dcfdda4e0 Bumped version.
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-21 02:55:51 +00: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
Matt Davis c47fc3e39d Release 2022.4.20 2022-04-20 22:32:40 -04:00
Matt Davis 453078e163 Release 2022.4.20 2022-04-20 22:12:38 -04:00
Matt Davis 5b3c55d85d Fix install failures that silently pass (#5046)
* Check at the end of install if the failed dependency queue is empty or not and exit with error when there are still failed dependencies.

* Address PR feedback about crayons.

* Fix windows tests that fail because of showing the progress bar, but only local -- CI still breaks. 

* Skip these tests on the windows CI for now.   Created https://github.com/pypa/pipenv/issues/5064 to track
2022-04-20 21:52:53 -04:00
Matt Davis dc8ac38b1b Allow pipenv option to consider all listed package sources when syncing the Pipfile.lock (#5039)
* Allow option to search all sources during installation.

* Add documentation for new Pipenv option ``install_search_all_sources``.
2022-04-20 21:21:38 -04:00
Jonathan ca8ff553a8 [fix] allow the user to overwrite the no_input flag to pip (#5036)
Support `no_input` flag for when you want to e.g. use keyring to authenticate against Google Artifact Registry.
2022-04-20 19:16:48 -04:00
Oz N Tiram 2bf70b7416 Removed usage of fs_str from vistir (#5062)
* Removed usage of fs_str from vistir

  This function was all about compatability of py2-py3.3 versions.
  Later versions don't need it.

* Explicitly convert dict values to strings

* Add news fragment
2022-04-20 16:17:57 +02: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
Oz N Tiram 853aaf8321 Really run the tests in parallel (#5058)
For those who will use the makefile, added a sensinble default.
2022-04-19 20:02:38 +02: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 6034244498 cleanup stale links (#5048)
* cleanup stale links

* only support one sidebar html file. Address PR feedback.  HTML5 attributes.

* Update sphinx dependenencies

* Corrected CLI patch for new version of sphinx-click.

* fix placement of search bar back to original spot.

* cleanup a sphinx build warning.
2022-04-18 06:59:16 +02:00
Oz N Tiram a912f17dd8 Fix MANIFEST.in (#5051)
When building a source distribution for pipenv, many warning are omitted
since the MANIFEST.in was long time neglected and includes much stuff
which is no longer in the repository or wasn't even there.
2022-04-17 00:43:31 +02: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 952e7fb90e Removed more-itertools vendor dep. (#5047) 2022-04-14 08:58:24 +02:00
github-actions[bot] 0fd1160052 Bumped version.
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-08 21:45:48 +00:00
Matt Davis 1d0fc93770 Release 2022.4.8 2022-04-08 17:41:15 -04: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 949ee95d67 More granular control over PIPENV_VENV_IN_PROJECT variable. (#5026)
* Allow PIPENV_VENV_IN_PROJECT to be read in as None, and ensure if it is set to False that it does not use .venv directory.

* refactor based on PR feedback and add news fragment.

* Review unit test coverage and add new tests.  Remove unneccesary bits from other tests.
2022-04-06 21:10:05 +02:00
Matt Davis 99cf729dd5 Improve documentation around index restrictions (#5029)
* Improve documentation around index restrictions

* Update docs/advanced.rst

* Refine index documentation updates.   Factor out and re-use method before closing down other PR.

* Fully remove the --extra-index-url argument

Co-authored-by: Yusuke Nishioka <yusuke.nishioka.0713@gmail.com>
2022-04-06 11:16:13 +02:00
ImreC 63ac0d03a9 Implements requirements command as per #4959 (#5013)
* Implements reqs command

* Add news document

* Process comments

* Rename newsfile

* Adds --dev-only and --hash args

* Linting fixes

Co-authored-by: Imre Persoonlijk <imre1@pop-os.localdomain>
2022-04-05 14:13:33 +02:00