pip install git+https from fork generates wrong version number
See original GitHub issueI’m pip installing the dev version from PR #13238 which generates 0.5.dev24307+g017b38793
instead of 5.2.dev388+g017b38793
(which I get locally after a pip install -e .
)
pip install s3fs fsspec git+https://github.com/barentsen/astropy@cloud-support
Defaulting to user installation because normal site-packages is not writeable
Collecting git+https://github.com/barentsen/astropy@cloud-support
Cloning https://github.com/barentsen/astropy (to revision cloud-support) to /tmp/pip-req-build-lbg62m24
Running command git clone --filter=blob:none --quiet https://github.com/barentsen/astropy /tmp/pip-req-build-lbg62m24
Running command git checkout -b cloud-support --track origin/cloud-support
Switched to a new branch 'cloud-support'
Branch 'cloud-support' set up to track remote branch 'cloud-support' from 'origin'.
Resolved https://github.com/barentsen/astropy to commit 017b387938bbaa08c862f30ff6734e14514f3775
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting s3fs
Using cached s3fs-2022.7.1-py3-none-any.whl (27 kB)
Collecting fsspec
Using cached fsspec-2022.7.1-py3-none-any.whl (141 kB)
Collecting aiobotocore~=2.3.4
Using cached aiobotocore-2.3.4-py3-none-any.whl (64 kB)
Collecting aiohttp
Using cached aiohttp-3.8.1-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (1.2 MB)
Requirement already satisfied: PyYAML>=3.13 in /srv/conda/envs/tractor/lib/python3.10/site-packages (from astropy==0.5.dev24307+g017b38793) (6.0)
Requirement already satisfied: numpy>=1.18 in /srv/conda/envs/tractor/lib/python3.10/site-packages (from astropy==0.5.dev24307+g017b38793) (1.21.6)
Requirement already satisfied: pyerfa>=2.0 in /srv/conda/envs/tractor/lib/python3.10/site-packages (from astropy==0.5.dev24307+g017b38793) (2.0.0.1)
Requirement already satisfied: packaging>=19.0 in /srv/conda/envs/tractor/lib/python3.10/site-packages (from astropy==0.5.dev24307+g017b38793) (21.3)
Collecting aioitertools>=0.5.1
Using cached aioitertools-0.10.0-py3-none-any.whl (23 kB)
Collecting wrapt>=1.10.10
Using cached wrapt-1.14.1-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (77 kB)
Collecting botocore<1.24.22,>=1.24.21
Using cached botocore-1.24.21-py3-none-any.whl (8.6 MB)
Requirement already satisfied: charset-normalizer<3.0,>=2.0 in /srv/conda/envs/tractor/lib/python3.10/site-packages (from aiohttp->s3fs) (2.1.0)
Collecting aiosignal>=1.1.2
Using cached aiosignal-1.2.0-py3-none-any.whl (8.2 kB)
Collecting yarl<2.0,>=1.0
Using cached yarl-1.8.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (263 kB)
Collecting async-timeout<5.0,>=4.0.0a3
Using cached async_timeout-4.0.2-py3-none-any.whl (5.8 kB)
Collecting frozenlist>=1.1.1
Using cached frozenlist-1.3.1-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (149 kB)
Collecting attrs>=17.3.0
Using cached attrs-22.1.0-py2.py3-none-any.whl (58 kB)
Collecting multidict<7.0,>=4.5
Using cached multidict-6.0.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (114 kB)
Requirement already satisfied: pyparsing!=3.0.5,>=2.0.2 in /srv/conda/envs/tractor/lib/python3.10/site-packages (from packaging>=19.0->astropy==0.5.dev24307+g017b38793) (3.0.9)
Collecting jmespath<2.0.0,>=0.7.1
Using cached jmespath-1.0.1-py3-none-any.whl (20 kB)
Requirement already satisfied: urllib3<1.27,>=1.25.4 in /srv/conda/envs/tractor/lib/python3.10/site-packages (from botocore<1.24.22,>=1.24.21->aiobotocore~=2.3.4->s3fs) (1.26.11)
Requirement already satisfied: python-dateutil<3.0.0,>=2.1 in /srv/conda/envs/tractor/lib/python3.10/site-packages (from botocore<1.24.22,>=1.24.21->aiobotocore~=2.3.4->s3fs) (2.8.2)
Requirement already satisfied: idna>=2.0 in /srv/conda/envs/tractor/lib/python3.10/site-packages (from yarl<2.0,>=1.0->aiohttp->s3fs) (3.3)
Requirement already satisfied: six>=1.5 in /srv/conda/envs/tractor/lib/python3.10/site-packages (from python-dateutil<3.0.0,>=2.1->botocore<1.24.22,>=1.24.21->aiobotocore~=2.3.4->s3fs) (1.16.0)
Building wheels for collected packages: astropy
Building wheel for astropy (pyproject.toml) ... done
Created wheel for astropy: filename=astropy-0.5.dev24307+g017b38793-cp310-cp310-linux_x86_64.whl size=6866023 sha256=8506746201454a42ccfc4eb206901650d2fffd6122884e63e496a2730b3372d5
Stored in directory: /tmp/pip-ephem-wheel-cache-95sfzses/wheels/26/ec/7d/3fd2815e033fcaa7d838b75fcc935f6775b7d14a6f8047d4d3
Successfully built astropy
Installing collected packages: wrapt, multidict, jmespath, fsspec, frozenlist, attrs, async-timeout, aioitertools, yarl, botocore, astropy, aiosignal, aiohttp, aiobotocore, s3fs
WARNING: The scripts fits2bitmap, fitscheck, fitsdiff, fitsheader, fitsinfo, samp_hub, showtable, volint and wcslint are installed in '/home/jovyan/.local/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
pyvo 1.3 requires astropy>=4.0, but you have astropy 0.5.dev24307+g017b38793 which is incompatible.
astroquery 0.4.6 requires astropy>=4.0, but you have astropy 0.5.dev24307+g017b38793 which is incompatible.
Successfully installed aiobotocore-2.3.4 aiohttp-3.8.1 aioitertools-0.10.0 aiosignal-1.2.0 astropy-0.5.dev24307+g017b38793 async-timeout-4.0.2 attrs-22.1.0 botocore-1.24.21 frozenlist-1.3.1 fsspec-2022.7.1 jmespath-1.0.1 multidict-6.0.2 s3fs-2022.7.1 wrapt-1.14.1 yarl-1.8.1
Note: you may need to restart the kernel to use updated packages.
Description
Expected behavior
Actual behavior
Steps to Reproduce
- [First Step]
- [Second Step]
- [and so on…]
# Put your Python code snippet here.
System Details
Issue Analytics
- State:
- Created a year ago
- Comments:10 (7 by maintainers)
Top Results From Across the Web
pip install specific fork - python - Stack Overflow
I'm trying to pip install a specific fork of a repo, which is located here: https://github.com/grutz/flask-session/tree/ ...
Read more >Troubleshooting SSL - GitLab Docs
It's important to run the following commands using this OpenSSL version. Perform a test connection to the host over HTTPS. Replace HOSTNAME with...
Read more >Python: Creating a pip installable package
Introduction. This is a quickstart guide to Python Packaging with a particular focus on the creation of a PyPI package, which will enable...
Read more >setuptools-scm - PyPI
setuptools_scm extracts Python package versions from git or hg metadata instead of declaring them as the version argument or in a SCM managed...
Read more >Installing the development version of scikit-learn
Use Git to check out the latest source from the scikit-learn repository on Github. ... You will have to run the pip install...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Glad that works! We’ll have to thank @duytnguyendtn for that incantation. 😸
To which I’ll tip my hat to the stackoverflow user who gave me the incantation! https://stackoverflow.com/a/50095199