qir-alliance / pyqir

PyQIR is a set of APIs for generating, parsing, and evaluating Quantum Intermediate Representation (QIR).
https://qir-alliance.github.io/pyqir
MIT License
54 stars 24 forks source link

Also release source distribution on PyPI #240

Open qartik opened 1 year ago

qartik commented 1 year ago

Describe the bug

It looks like since v0.7.x no source distributions are being uploaded to PyPI. Is it possible to upload source distributions as part of the release process as used to be the case before?

To Reproduce

 ❯ pip install --no-binary pyqir==0.8.2 pyqir==0.8.2
ERROR: Could not find a version that satisfies the requirement pyqir==0.8.2 (from versions: 0.3.2a1, 0.4.0a1, 0.4.1a1, 0.4.2a1, 0.5.0a1, 0.6.0, 0.6.1, 0.6.2)
ERROR: No matching distribution found for pyqir==0.8.2

Expected behavior

❯ pip install --no-binary pyqir==0.6.2 pyqir==0.6.2
Collecting pyqir==0.6.2
  Using cached pyqir-0.6.2-py3-none-any.whl (1.9 kB)
Requirement already satisfied: pyqir-generator>=0.6.2 in ./.venv/lib/pypy3.9/site-packages (from pyqir==0.6.2) (0.7.0)
Requirement already satisfied: pyqir-evaluator>=0.6.2 in ./.venv/lib/pypy3.9/site-packages (from pyqir==0.6.2) (0.7.0)
Requirement already satisfied: pyqir-parser>=0.6.2 in ./.venv/lib/pypy3.9/site-packages (from pyqir==0.6.2) (0.7.0)
Installing collected packages: pyqir
Successfully installed pyqir-0.6.2

System information

graham-atom commented 5 months ago

is there any update on this? I am seeing failures to install with poetry that might be related

graham-atom commented 5 months ago

specifically:

10.84   RuntimeError
10.84 
10.84   Unable to find installation candidates for pyqir (0.10.0)
10.84 
10.84   at ~/.local/share/pypoetry/venv/lib/python3.10/site-packages/poetry/installation/chooser.py:74 in choose_for
10.85        70│ 
10.85        71│             links.append(link)
10.85        72│ 
10.85        73│         if not links:
10.85     →  74│             raise RuntimeError(f"Unable to find installation candidates for {package}")
10.85        75│ 
10.85        76│         # Get the best link
10.85        77│         chosen = max(links, key=lambda link: self._sort_key(package, link))
10.85        78│ 
10.85 
10.85 Cannot install pyqir.