Skip to content

Commit

Permalink
build: PyPI doesn't like direct installation from git
Browse files Browse the repository at this point in the history
Fixes:

ERROR    HTTPError: 400 Bad Request from https://upload.pypi.org/legacy/
         Invalid value for requires_dist. Error: Can't have direct dependency:
         "quantum-pecos @
         git+https://github.com/PECOS-packages/PECOS.git@e2e-testing ; extra ==
         'phirc'"
  • Loading branch information
qartik committed Nov 17, 2023
1 parent 895cad2 commit ac9b1d7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ Just issue `pip install pytket-phir` to obtain the latest stable release.

The package includes a tool for emulating QASM files from the command line using PECOS.

PECOS needs to be installed using `pip install .[phirc]` for the CLI to work.
NOTE: PECOS currently requires installation using
`pip install "quantum-pecos@git+https://github.com/PECOS-packages/PECOS.git@e2e-testing"`
for the CLI to work.

```sh
❯ phirc -h
Expand Down
8 changes: 0 additions & 8 deletions docs/source/pytket.phir.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,6 @@ pytket.phir.api module
:undoc-members:
:show-inheritance:

pytket.phir.cli module
----------------------

.. automodule:: pytket.phir.cli
:members:
:undoc-members:
:show-inheritance:

pytket.phir.machine module
--------------------------

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ dependencies = ["phir>=0.1.6", "pytket"]

[project.optional-dependencies]
docs = ["sphinx", "pydata_sphinx_theme"]
phirc = ["quantum-pecos@git+https://github.com/PECOS-packages/PECOS.git@e2e-testing"]
# phirc = ["quantum-pecos@git+https://github.com/PECOS-packages/PECOS.git@e2e-testing"]
tests = ["pytest"]

[project.scripts]
Expand Down

0 comments on commit ac9b1d7

Please sign in to comment.