Skip to content
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

SPEC4: add instruction on how to add the index server with tox. #215

Open
Carreau opened this issue May 29, 2023 · 4 comments
Open

SPEC4: add instruction on how to add the index server with tox. #215

Carreau opened this issue May 29, 2023 · 4 comments

Comments

@Carreau
Copy link
Contributor

Carreau commented May 29, 2023

I belive

[testenv]
indexserver =
    # we use Spec 4 index server that contain nightly wheel. 
    # this will be used only when using --pre with tox/pip as it only contains nightly.
    extra = https://pypi.anaconda.org/scientific-python-nightly-wheels/simple
@Carreau
Copy link
Contributor Author

Carreau commented May 29, 2023

I personally think that's one of the point where tox becomes problematic as it's becomes too hard to use/configure.

@mattip
Copy link
Contributor

mattip commented Aug 15, 2023

Could someone change the title of this to include "SPEC 04".

I believe the need for --pre comes from pip, not tox. If I understood the comment correctly.

@bsipocz bsipocz changed the title Nightly spec: add instruction on how to add the index server with tox. SPEC4: add instruction on how to add the index server with tox. Aug 15, 2023
@bsipocz
Copy link
Member

bsipocz commented Aug 15, 2023

An example for a working tox file is here: https://github.com/astropy/astroquery/blob/main/tox.ini#L26

caveats: if it's just a pip install line in the command sections then new dependencies are not being picked up. If it's an extra pip index, then however the imo silly version number requirement is need to be added, e.g. devdeps: numpy>=0.0.dev0

@bsipocz
Copy link
Member

bsipocz commented Aug 16, 2023

Shall we e.g. link the above tox file in the notes along with the other links, or you prefer to have narrative explanation in the text itself?

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

No branches or pull requests

3 participants