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.

Be able to specify which version of setuptools has to be used

See original GitHub issue
  • [x ] I have searched the issues of this repo and believe that this is not a duplicate.
  • I have searched the documentation and believe that my question is not covered.

Feature Request

I just ran into this bug: https://github.com/tikitu/jsmin/pull/34 Setuptools >=58 removed functionality jsmin relies on. The result is that jsmin can’t be installed and our CI/CD pipeline fails.

My solution was to run the following before a build in out CI: poetry run pip install --upgrade setuptools==57.5.0 To counter this, it would be great if the setuptools version can be specified in the pyproject.toml.

Issue Analytics

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

github_iconTop GitHub Comments

12reactions
StevenMMortimercommented, Sep 17, 2021

Big thanks @rvanlaar! Your suggestion works well in a Docker container. I’ve implemented by adding the poetry pip install of setuptools before running poetry install

RUN pip install --no-cache-dir 'poetry==1.1.5'
RUN poetry run pip install 'setuptools==57.5.0'
RUN poetry install --no-root
4reactions
finswimmercommented, Sep 19, 2021

Hello,

for poetry <1.2 we have marked setuptools as “unsafe” to remove or change because poetry relies on it. We removed the limitation in the current preview release. You can now add setuptools to your pyproject.toml like any other dependency.

fin swimmer

Read more comments on GitHub >

github_iconTop Results From Across the Web

python - Install specific version of setuptools as a dependency ...
To use a specific version of setuptools it is necessary to have it in both locations - in pyproject.toml and at the beginning...
Read more >
Specifying Your Project's Version - Setuptools
Following a release number, you can have either a pre-release or post-release tag. Pre-release tags make a version be considered older than the...
Read more >
Specifying package version in `setup.py` - Python Help
I'm trying to upload my first package to PyPI. I'm specifying version="0.1.0" in setup.py, and version = 0.1.0 in setup.cfg.
Read more >
setuptools 3.7.1 - PyPI
0.7.2. Issue #14: Use markerlib when the parser module is not available. ... Distribute #90: unknown setuptools version can be added in the...
Read more >
Getting Started With setuptools and setup.py - PythonHosted.org
Currently (as of November, 2009), setuptools is pretty easy to install for Python version 2.3 through 2.6. Bootstrapping setuptools¶. If you are having...
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