From 8569728b6ba0e5775fd4b34ec1a377437c358767 Mon Sep 17 00:00:00 2001 From: Nick Coghlan Date: Fri, 10 Apr 2020 14:25:05 +1000 Subject: [PATCH 1/2] Issue #701: Note pipenv project maintenance problems * set public deadline for tutorial removal if the pipenv release doesn't happen * emphasise poetry more as an option for library developers (and developers of applications that can be distributed as libraries) * update GitHub URL for poetry project --- source/tutorials/managing-dependencies.rst | 51 ++++++++++++++++++---- source/tutorials/packaging-projects.rst | 2 +- 2 files changed, 43 insertions(+), 10 deletions(-) diff --git a/source/tutorials/managing-dependencies.rst b/source/tutorials/managing-dependencies.rst index 2d3ae1c146..d9c24bcaab 100644 --- a/source/tutorials/managing-dependencies.rst +++ b/source/tutorials/managing-dependencies.rst @@ -21,8 +21,35 @@ applicable to the development and deployment of network services (including web applications), but is also very well suited to managing development and testing environments for any kind of project. -.. Note:: This guide is written for Python 3, however, these instructions - should also work on Python 2.7. +Developers of Python libraries, or of applications that support distribution +as Python libraries, should also consider the +`poetry `_ project as a possible dependency +management solution. + + +Recommendation caveats (as of April 2020) +----------------------------------------- + +While this tutorial covers the ``pipenv`` project as a tool that focuses +primarily on the needs of Python application development rather than Python +library development, the project itself is currently working through several +`process and maintenance issues `_ +that are preventing bug fixes and new features from being published (with the +entirety of 2019 passing without a new release). + +This means that in the near term, ``pipenv`` still suffers from several quirks +and performance problems without a clear timeline for resolution of those isses. + +While this remains the case, project maintainers are likely to want to +investigate :ref:`other-dependency-management-tools` for use instead of, or +together with, ``pipenv``. + +Assuming the April 2020 ``pipenv`` release goes ahead as planned, and the +release after that also remains on track, then this caveat on the tutorial will +be removed. If those releases *don't* remain on track, then the tutorial itself +will be removed, and replaced with a discussion page on the available dependency +management options. + Installing Pipenv ----------------- @@ -143,18 +170,24 @@ they (and their dependencies) can be added to your ``pipenv`` environment with ``pipenv install -e `` (e.g. ``pipenv install -e .`` or ``pipenv install -e src``). + +.. _other-dependency-management-tools: + +Other Tools for Application Dependency Management +------------------------------------------------- + If you find this particular approach to managing application dependencies isn't working well for you or your use case, you may want to explore these other tools and techniques to see if one of them is a better fit: -* `pip-tools `_ to build your own - custom workflow from lower level pieces like ``pip-compile`` and ``pip-sync`` -* `hatch `_ for opinionated coverage of even - more steps in the project management workflow (such as incrementing versions, - tagging releases, and creating new skeleton projects from project templates) -* `poetry `_ for a tool comparable in scope - to `pipenv` that focuses more directly on use cases where the repository being +* `poetry `__ for a tool comparable in scope + to ``pipenv`` that focuses more directly on use cases where the repository being managed is structured as a Python project with a valid ``pyproject.toml`` file (by contrast, ``pipenv`` explicitly avoids making the assumption that the application being worked on that's depending on components from PyPI will itself support distribution as a ``pip``-installable Python package). +* `hatch `_ for opinionated coverage of even + more steps in the project management workflow (such as incrementing versions, + tagging releases, and creating new skeleton projects from project templates) +* `pip-tools `_ to build your own + custom workflow from lower level pieces like ``pip-compile`` and ``pip-sync`` diff --git a/source/tutorials/packaging-projects.rst b/source/tutorials/packaging-projects.rst index 3364ea9885..daaea8f6d2 100644 --- a/source/tutorials/packaging-projects.rst +++ b/source/tutorials/packaging-projects.rst @@ -360,4 +360,4 @@ some things you can do: and `poetry`_. .. _hatch: https://github.com/ofek/hatch -.. _poetry: https://github.com/sdispater/poetry +.. _poetry: https://github.com/python-poetry/poetry From 51834330f6b82845758d18e699e05cf717a94379 Mon Sep 17 00:00:00 2001 From: Nick Coghlan Date: Fri, 10 Apr 2020 22:28:23 +1000 Subject: [PATCH 2/2] Accept Paul's suggested wording tweak. --- source/tutorials/managing-dependencies.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/tutorials/managing-dependencies.rst b/source/tutorials/managing-dependencies.rst index d9c24bcaab..3a512568b6 100644 --- a/source/tutorials/managing-dependencies.rst +++ b/source/tutorials/managing-dependencies.rst @@ -23,7 +23,7 @@ testing environments for any kind of project. Developers of Python libraries, or of applications that support distribution as Python libraries, should also consider the -`poetry `_ project as a possible dependency +`poetry `_ project as an alternative dependency management solution.