Commit Graph

7434 Commits

Author SHA1 Message Date
Oz N Tiram 658d19ad1d Tiny fixes to the makefile
The built-in `virtualenv` module is called `venv`. Seems like this
Makefile hasn't been used in a while. I like dusting stuff ...
2022-05-17 09:58:29 +02:00
Oz N Tiram d497caa29e Replace vistir.compat.Path with built-in pathlib.Path
Built-in since Python3.5. We only support later versions.
2022-05-17 09:58:29 +02:00
Oz N Tiram c3fddce41a Remove vistir.compat.Mapping
Since Python3.4+ this is imported only from `collections.abc`.
2022-05-17 09:58:29 +02:00
Oz N Tiram 2cb8b2c7b2 Remove vistir.compat.get_terminal_size
This is built-in in shutil of Python3.4+ and later.
We only support later versions.
2022-05-17 09:58:29 +02:00
Oz N Tiram e89710f049 Remove vistir.compat.ResourceWarning
Built-in since Python3.
2022-05-17 09:58:29 +02:00
Oz N Tiram e409d73174 Replace vistir.compat.samefile with os.path.samefile
This is built-in since python3.4, we only support later
versions.
2022-05-17 09:58:29 +02:00
Oz N Tiram 8505024ca1 Remove vistir.compat.ResourceWarning
pipenv supports only python3 now, and this exception is built-in
since 3+.
2022-05-17 09:58:29 +02:00
Oz N Tiram 3bef4598ad Remove vistir.echo in favor of click.echo
Could be that for some users (especially on windows) this might
be a regression. However, taking this on a good faith that upstream
click is already much better.
2022-05-17 09:58:29 +02:00
Oz N Tiram 23de4bbcfc Fix usage of secho (wrongly did echo) 2022-05-17 09:58:29 +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