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).
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.
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.
* 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
* 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
* 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
* 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
* 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.
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.
* 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.
* 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.
* 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>