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.

Support for setup.py

See original GitHub issue

I need requirements in setup.py in the install_requires config setting, but these aren’t picked up in setup.py.

I know its probably difficult, but do you have any plans on support for this?

Issue Analytics

  • State:open
  • Created 7 years ago
  • Reactions:10
  • Comments:24 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
keimlinkcommented, Mar 9, 2017

We define a version range in setup.py:

setup(
    name='mydist',
    install_requires=[
        'Django>=1.8,<1.9',
    ]
)

Then we use a constraints file to specify the exact version:

django==1.8.17 # pyup: >=1.8,<1.9

constraints.pip is watched by pyup.io to update it as soon as a new Django version is available.

The distribution is then installed like this:

python3 -m pip install --constraint constraints.pip mydist
1reaction
ntraviscommented, May 8, 2019

@cooperlees

Is there anything we could do in the Bandersnatch repo to tell pyup.io to stop with urllib3 for now?

https://pyup.io/docs/bot/filter/

Read more comments on GitHub >

github_iconTop Results From Across the Web

2. Writing the Setup Script — Python 3.11.1 documentation
The setup script is the centre of all activity in building, distributing, and installing modules using the Distutils. The main purpose of the...
Read more >
Getting Started With setuptools and setup.py - PythonHosted.org
To install setuptools visit http://pypi.python.org/pypi/setuptools and follow the instructions for your operating system. Also, check out http://peak.
Read more >
setup.py (legacy) - pip documentation v22.3.1
To support projects that directly use distutils , pip injects setuptools into sys.modules before invoking setup.py . This injection should be transparent to ......
Read more >
What is setup.py? - Educative.io
The setup.py is a Python script typically included with Python-written libraries or apps. Its objective is to ensure that the program is installed...
Read more >
Create and run setup.py | PyCharm Documentation - JetBrains
In the Project tool window, select the package. Then, from the main menu, select Tools | Create setup.py. In the New Setup Script...
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