Skip to content

Development dependencies are considered as actual dependencies when adding drf-nested-router package #267

Description

@EarthModule

The package requirements.txt only lists Django and DRF, however when installing this package, all the doc and testing packages and their version locks are installed as well. At least with Poetry, here is an example:

poetry add drf-nested-routers
Using version ^0.93.4 for drf-nested-routers

Updating dependencies
Resolving dependencies... (0.5s)

Writing lock file

Package operations: 15 installs, 23 updates, 0 removals

  • Updating markupsafe (2.1.1 -> 2.1.0)
  • Updating asgiref (3.5.2 -> 3.5.0)
  • Updating certifi (2022.6.15 -> 2021.10.8)
  • Updating charset-normalizer (2.1.0 -> 2.0.12)
  • Updating jinja2 (3.1.2 -> 3.0.3)
  • Updating pyparsing (3.0.9 -> 3.0.7)
  • Updating pytz (2022.1 -> 2021.3)
  • Updating urllib3 (1.26.10 -> 1.26.8)
  • Updating zipp (3.8.1 -> 3.7.0)
  • Installing alabaster (0.7.12)
  • Installing babel (2.9.1)
  • Updating distlib (0.3.5 -> 0.3.4)
  • Updating django (3.2.14 -> 3.2.12)
  • Installing docutils (0.17.1)
  • Updating filelock (3.7.1 -> 3.6.0)
  • Installing imagesize (1.3.0)
  • Updating importlib-metadata (4.12.0 -> 4.11.2)
  • Updating platformdirs (2.5.2 -> 2.5.1)
  • Updating pygments (2.12.0 -> 2.11.2)
  • Updating requests (2.28.1 -> 2.27.1)
  • Installing snowballstemmer (2.2.0)
  • Installing sphinxcontrib-applehelp (1.0.2)
  • Installing sphinxcontrib-devhelp (1.0.2)
  • Installing sphinxcontrib-htmlhelp (2.0.0)
  • Installing sphinxcontrib-jsmath (1.0.1)
  • Installing sphinxcontrib-qthelp (1.0.3)
  • Installing sphinxcontrib-serializinghtml (1.1.5)
  • Installing colorama (0.4.4)
  • Installing commonmark (0.9.1)
  • Updating pytest (7.1.2 -> 7.0.1)
  • Installing sphinx (4.4.0)
  • Updating virtualenv (20.15.1 -> 20.13.2)
  • Updating django-debug-toolbar (3.5.0 -> 3.2.4)
  • Updating django-extensions (3.2.0 -> 3.1.5)
  • Updating drf-yasg (1.21.0 -> 1.20.0)
  • Installing recommonmark (0.7.1)
  • Updating tox (3.25.1 -> 3.24.5)
  • Updating werkzeug (2.1.2 -> 2.0.3)

I think the setup.py function get_packages dynamically includes the development dependencies as part of the installation process.

Expected behavior would be that Django and DRF are the only packages to consider when installing drf-nested-router.

Really love drf-nested-routers package, but this issue prevents me from using it in any real-world projects.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions