Skip to content

Upgrade setuptools before installation in .readthedocs.yml #7836

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jofmi opened this issue Jan 17, 2021 · 1 comment
Closed

Upgrade setuptools before installation in .readthedocs.yml #7836

jofmi opened this issue Jan 17, 2021 · 1 comment
Labels
Support Support question

Comments

@jofmi
Copy link

jofmi commented Jan 17, 2021

Using a configuration file .readthedocs.yml, I want to upgrade setuptools to a higher version than the default before installing my package. However, the pip command of .readthedocs.yml only takes path as an argument, so how can I call pip to upgrade setuptools?

Here is what I would put into .readthedocs.yml, but I am missing a command where it says ????:

version: 2
formats: all
python:
  version: 3.7
  install:
    - method: pip
      ????: setuptools >= 46.4.0
    - method: pip
      path: .
@stsewd
Copy link
Member

stsewd commented Jan 18, 2021

@JoelForamitti you can use a requirements file https://docs.readthedocs.io/en/stable/config-file/v2.html#requirements-file. This should be more easy once #7289 is merged.

Also, we are planning to do this automatically #7290

@stsewd stsewd closed this as completed Jan 18, 2021
@stsewd stsewd added the Support Support question label Jan 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Support Support question
Projects
None yet
Development

No branches or pull requests

2 participants