question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

dev-dependencies extras doesn't get recognised for project

See original GitHub issue
[tool.poetry]
name = "pyramidtesting"
version = "0.1.0"
description = ""
authors = ["Your Name <you@example.com>"]

[tool.poetry.dependencies]
python = "*"
pyramid = "^1.9"

[tool.poetry.dev-dependencies]
pyramid = {version = "^1.9", extras = ["testing"]}

Will install the following:

Riley:pyramidtesting2 xistence$ poetry show
hupper              1.3   Integrated process monitor for developing and reloading daemons.
pastedeploy         1.5.2 Load, configure, and compose WSGI applications and servers
plaster             1.0   A loader interface around multiple config file formats.
plaster-pastedeploy 0.5   A loader implementing the PasteDeploy syntax to be used by plaster.
pyramid             1.9.2 The Pyramid Web Framework, a Pylons project
repoze.lru          0.7   A tiny LRU cache implementation and decorator
translationstring   1.3   Utility library for i18n relied on by various Repoze and Pyramid packages
venusian            1.1.0 A library for deferring decorator actions
webob               1.8.1 WSGI request and response object
zope.deprecation    4.3.0 Zope Deprecation Infrastructure
zope.interface      4.5.0 Interfaces for Python

But not any of the extras defined for testing in Pyramid.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:11 (10 by maintainers)

github_iconTop GitHub Comments

2reactions
cipriantartacommented, Jan 20, 2019

Not sure if this is a good place, but instead of creating a new issue I though I’ll put this here since it’s related.

This is how my pyproject.toml file looks like

...
[tool.poetry.dependencies]
private_package = {version = "^2.0",extras = ["api", "etl"]}

[tool.poetry.dev-dependencies]
private_package = {path = "../private_package",extras = ["api", "etl"]}

The package comes from a private repo, but that’s not important. What matters is that in development mode, I want that package to use a path since I’m the author of bot the private_package and the one that the file above is for.

The problem is that the extras packages in the dev dependencies are being ignored. Shouldn’t dev-dependencies take highest priority when installing without --no-dev?

2reactions
sdispatercommented, May 28, 2018

Release 0.10.0 is out!

Read more comments on GitHub >

github_iconTop Results From Across the Web

poetry dependencies not available when running script with tox
I believe something like the following should work: pyproject.toml [tool.poetry] name = "foo" version = "0.1.0" description = "" authors ...
Read more >
Manage Dependencies - PDM
All development dependencies are included as long as --prod is not passed and -G doesn't specify any dev groups. Besides, if you don't...
Read more >
Adding dependencies to a package.json file - npm Docs
Specifying dependencies and devDependencies in a package.json file ... To specify the packages your project depends on, you must list them as "dependencies"...
Read more >
Installation | webpack
This guide goes through the various methods used to install webpack. Prerequisites. Before we begin, make sure you have a fresh version of...
Read more >
TypeScript — Use Nodemon to Restart Your Server on Changes
First, add nodemon and ts-node as devDependencies to your project. ... Get your weekly push notification about new and trending
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found