Skip to content

update setup.py to use requirements.txt#56

Merged
manoelmarques merged 4 commits intoqiskit-community:masterfrom
ikkoham:update-setup
Mar 24, 2021
Merged

update setup.py to use requirements.txt#56
manoelmarques merged 4 commits intoqiskit-community:masterfrom
ikkoham:update-setup

Conversation

@ikkoham
Copy link
Copy Markdown
Contributor

@ikkoham ikkoham commented Mar 23, 2021

Summary

Update setup.py to use requirements.txt.
This is discussed in Terra Qiskit/qiskit#1586.

Details and comments

Comment thread MANIFEST.in
@manoelmarques
Copy link
Copy Markdown
Contributor

I agree with this change, however the PR #45 adds the following line to requirements.txt:

--extra-index-url https://pypi.gurobi.com

This is one of those flags that only works on requirements.txt but will fail on setup.py. If that PR goes ahead with that then we cannot use requirements.txt in setup.py. I will add a hold to this PR pending a decision next meeting.

@t-imamichi
Copy link
Copy Markdown
Collaborator

I think gurobi should be extra_required. Then, it is not included requirements.txt and this PR works.

@manoelmarques
Copy link
Copy Markdown
Contributor

manoelmarques commented Mar 24, 2021

Unfortunately because gurobipy is hosted on a private pypi site, it doesn’t work in setup.py via setuptools for security reasons. It can’t currently be in install_requires or extra_required. I will probably just remove it from requirements.txt in the other PR and then approve this one.

@t-imamichi
Copy link
Copy Markdown
Collaborator

t-imamichi commented Mar 24, 2021

I have a worry to include a private pypi site in requirements.txt because our CI may fail due to their server error. Users may fail installation of qiskit-optimization. But, we are not responsible for the private pypi site...

@manoelmarques
Copy link
Copy Markdown
Contributor

Exactly, that is why I want to remove it from requirements.txt in the other PR and let the users install themselves.

@manoelmarques manoelmarques merged commit 9a8cd73 into qiskit-community:master Mar 24, 2021
@ikkoham ikkoham deleted the update-setup branch March 24, 2021 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants