Skip to content

Commit

Permalink
Merge pull request #474 from quantumlib/revert-467-split-dev-dependen…
Browse files Browse the repository at this point in the history
…cies

Revert "refactor: split dev requirements out of main requirements.txt"
  • Loading branch information
95-martin-orion authored Nov 9, 2021
2 parents 2b56f58 + 51ba016 commit 98aec8d
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 21 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/cirq_compatibility.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,5 @@ jobs:
run: pip3 install -U cirq --pre
- name: Install qsim requirements
run: pip3 install -r requirements.txt
- name: Install test requirements
run: pip3 install -r dev-requirements.txt
- name: Run python tests
run: make run-py-tests
6 changes: 4 additions & 2 deletions .github/workflows/python_format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ jobs:
with:
python-version: '3.7'
architecture: 'x64'
- name: Install dev requirements
run: pip install -r dev-requirements.txt
- name: Install flynt
run: cat requirements.txt | grep flynt | xargs pip install
- name: Install black
run: cat requirements.txt | grep black | xargs pip install
- name: Format
run: check/format-incremental
1 change: 0 additions & 1 deletion .github/workflows/testing_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ jobs:
CIBW_REPAIR_WHEEL_COMMAND_MACOS: ""
# due to package and module name conflict have to temporarily move it away to run tests
CIBW_BEFORE_TEST: "mv {package}/qsimcirq /tmp"
CIBW_TEST_EXTRAS: "dev"
CIBW_TEST_COMMAND: "pytest {package}/qsimcirq_tests/qsimcirq_test.py && mv /tmp/qsimcirq {package}"
steps:
- uses: actions/checkout@v2
Expand Down
1 change: 0 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
include requirements.txt
include dev-requirements.txt
include CMakeLists.txt

graft pybind_interface
Expand Down
3 changes: 0 additions & 3 deletions dev-requirements.txt

This file was deleted.

6 changes: 0 additions & 6 deletions docs/install_qsimcirq.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,6 @@ Prerequisites are included in the
[`requirements.txt`](https://github.com/quantumlib/qsim/blob/master/requirements.txt)
file, and will be automatically installed along with qsimcirq.

If you'd like to develop qsimcirq, a separate set of dependencies are includes
in the
[`dev-requirements.txt`](https://github.com/quantumlib/qsim/blob/master/dev-requirements.txt)
file. You can install them with `pip3 install -r dev-requirements.txt` or
`pip3 install qsimcirq[dev]`.

## Linux installation

We provide `qsimcirq` Python wheels on 64-bit `x86` architectures with `Python 3.{6,7,8,9}`.
Expand Down
12 changes: 10 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
absl-py
# Runtime requirements for the python 3 version of cirq.

cirq-core
numpy~=1.16
pybind11
typing_extensions
absl-py

# Build and test requirements

black==20.8b1
flynt~=0.60
pybind11
pytest
4 changes: 0 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ def build_extension(self, ext):


requirements = open("requirements.txt").readlines()
dev_requirements = open("dev-requirements.txt").readlines()

description = "Schrödinger and Schrödinger-Feynman simulators for quantum circuits."

Expand All @@ -95,9 +94,6 @@ def build_extension(self, ext):
author_email="devabathini92@gmail.com",
python_requires=">=3.3.0",
install_requires=requirements,
extras_require={
"dev": dev_requirements,
},
license="Apache 2",
description=description,
long_description=long_description,
Expand Down

0 comments on commit 98aec8d

Please sign in to comment.