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.

Setup.py vs Pipfile

See original GitHub issue

My current strategy is to add my requirements (generally pinned) to setup.py and then have a requirements.txt file that specifies particular versions.

The workflow I’ve migrated to is: pipenv install "-e ." and pipenv install "-e .[test]" --dev. Looking at requests’s Pipfile this seems to be the same approach, with a couple caveats / notes:

  1. the dev dependencies contains more installation requirements than requests[text]. This is probably fine, as I assume it means you want even more packages installed when developing requests(?).
  2. your dependencies are "-e ." = {extras = ["socks"]}. This appears to be handcoded, as my output looks like: "e1839a8" = {path = ".", editable = true}. Is the first approach better? I.e. should I be manually adding "-e ." = {} to my dependencies?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

5reactions
dfeecommented, Sep 25, 2017

Can you help me understand what “e1839a8” means? At first glance it looks like the short hash of something. But I’m not sure what.

0reactions
kennethreitzcommented, Sep 25, 2017

it’s effectively nice filler content, that ensures no collisions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Pipenv vs setup.py - Stack Overflow
Thus, pipenv vs setup.py is a wrong formulation. They can't be against each other.
Read more >
Simplifying Python Builds. A Single Source of Truth for…
We'll use the standard setup.py for building Python libraries and pipenv for managing ... Maintain my dependencies in both the Pipfile and the...
Read more >
How to keep setup.py install_requires and Pipfile in sync #1263
In an ideal world, Pipfile replaces setup.py's install_requires , and be used to specify virtual dependencies, while the lock file is used to ......
Read more >
Pipenv: A Guide to the New Python Packaging Tool
Pipfile; Represents the concrete requirements for your package; Pull the minimally required dependencies from setup.py by installing your package using ...
Read more >
pipenv-setup - PyPI
A beautiful python package development tool: sync dependencies in Pipfile or Pipfile.lock to setup.py . Never need again to change dependencies manually in ......
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 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