Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master' into merge.master.47.raw
Browse files Browse the repository at this point in the history
  • Loading branch information
Ericgig committed Apr 10, 2022
2 parents d240c4c + 4a59f33 commit 99ce2d5
Show file tree
Hide file tree
Showing 391 changed files with 28,017 additions and 10,739 deletions.
10 changes: 10 additions & 0 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
version: "2"
exclude_patterns:
- "doc/"
- "dist/"
- "**/tests/"
checks:
argument-count:
config:
Expand Down Expand Up @@ -34,3 +38,9 @@ plugins:
enabled: true
pep8:
enabled: true
duplication:
enabled: true
config:
languages:
python:
python_version: 3
35 changes: 0 additions & 35 deletions .github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

53 changes: 53 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: 🐛 Bug Report
description: Spotted a bug? Report it to us!
labels: ["bug"]
body:
- type: textarea
id: bug-description
attributes:
label: Bug Description
description: Tell us what went wrong (including what triggered the bug)
placeholder: "A clear and concise description of what the bug is, and the steps to reproduce it"
validations:
required: true
- type: textarea
id: code-to-reproduce
attributes:
label: Code to Reproduce the Bug
description: Please provide a minimal working example. Paste your code directly (It will be automatically formatted, so there's no need for backticks)
placeholder: "from qutip import identity\nprint(identity(2))"
render: shell
- type: textarea
id: bug-output
attributes:
label: Code Output
description: Please paste the relevant output here (automatically formatted)
placeholder: "Quantum object: dims = [[2], [2]], shape = (2, 2), type = oper, isherm = True\nQobj data =\n[[1. 0.]\n[0. 1.]]"
render: shell
- type: textarea
id: expected-behaviour
attributes:
label: Expected Behaviour
description: What should have happened instead?
placeholder: "A clear and concise description of what you expected to happen"
validations:
required: true
- type: textarea
id: your-environment
attributes:
label: Your Environment
description: Please use `qutip.about()` to get the information about your environment and paste it here (automatically formatted)
placeholder: "QuTiP Version: ***\nNumpy Version: ***\nScipy Version: ***\nCython Version: ***\nMatplotlib Version: ***\nPython Version: ***\nNumber of CPUs: ***\nBLAS Info: ***\nOPENMP Installed: ***\nINTEL MKL Ext: ***\nPlatform Info: ***"
render: shell
validations:
required: true
- type: textarea
id: additional-context
attributes:
label: Additional Context
description: Add anything else you want to tell us. You can include images, plots, etc.
placeholder: "Additional information, images, graphs, plots, etc."
- type: markdown
id: thank-you
attributes:
value: Thanks for taking the time to fill out this bug report!
20 changes: 0 additions & 20 deletions .github/ISSUE_TEMPLATE/feature_request.md

This file was deleted.

36 changes: 36 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: 🚀 Feature Request
description: Suggest an idea for this project!
labels: ["ENH"]
body:
- type: textarea
id: problem-description
attributes:
label: Problem Description
description: Give us a clear and concise description of what the problem is!
placeholder: "Example - It would be better if [...]"
validations:
required: true
- type: textarea
id: proposed-solution
attributes:
label: Proposed Solution
description: Give us a description of your proposed solution
placeholder: "A clear and concise description of what you want to happen"
validations:
required: true
- type: textarea
id: alternate-solutions
attributes:
label: Alternate Solutions
description: Are there other ways of implementing this feature?
placeholder: "A clear and concise description of any alternative solutions or features you've considered"
- type: textarea
id: additional-context
attributes:
label: Additional Context
description: You can tell us more about your idea, add code snippets or images, etc.
placeholder: "Give us more context or screenshots about the feature request here"
- type: markdown
id: thank-you
attributes:
value: Thanks for taking the time to fill out this feature request!
26 changes: 0 additions & 26 deletions .github/ISSUE_TEMPLATE/others.md

This file was deleted.

15 changes: 15 additions & 0 deletions .github/ISSUE_TEMPLATE/others.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: 🤔 Others
description: Tell us about issues that aren't exactly bugs or features
body:
- type: textarea
id: issue-description
attributes:
label: Describe the Issue!
description: Tell us about your issue. You can include screenshots, code snippets, etc.
placeholder: "Please describe the issue here"
validations:
required: true
- type: markdown
id: thank-you
attributes:
value: Thanks for taking the time to fill out this issue!
4 changes: 2 additions & 2 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
**Checklist**
Thank you for contributing to QuTiP! Please make sure you have finished the following tasks before opening the PR.

- [ ] Please read [Contributing to QuTiP Development](https://github.com/qutip/qutip-doc/blob/master/CONTRIBUTING.md)
- [ ] Please read [Contributing to QuTiP Development](http://qutip.org/docs/latest/development/contributing.html)
- [ ] Contributions to qutip should follow the [pep8 style](https://www.python.org/dev/peps/pep-0008/).
You can use [pycodestyle](http://pycodestyle.pycqa.org/en/latest/index.html) to check your code automatically
- [ ] Please add tests to cover your changes if applicable.
- [ ] If the behavior of the code has changed or new feature has been added, please also update the [documentation](https://github.com/qutip/qutip-doc) and the [notebook](https://github.com/qutip/qutip-notebooks). Feel free to ask if you are not sure.
- [ ] If the behavior of the code has changed or new feature has been added, please also update the documentation in the `doc` folder, and the [notebook](https://github.com/qutip/qutip-notebooks). Feel free to ask if you are not sure.

Delete this checklist after you have completed all the tasks. If you have not finished them all, you can also open a [Draft Pull Request](https://github.blog/2019-02-14-introducing-draft-pull-requests/) to let the others know this on-going work and keep this checklist in the PR description.

Expand Down
11 changes: 7 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,11 @@ jobs:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
env:
# Set up wheels matrix. This is CPython 3.6--3.9 for all OS targets.
CIBW_BUILD: "cp3[6-9]-*"
# Set up wheels matrix. This is CPython 3.6--3.10 for all OS targets.
CIBW_BUILD: "cp3{6,7,8,9,10}-*"
# Numpy and SciPy do not supply wheels for i686 for Python 3.10, so we
# skip those too:
CIBW_SKIP: "*-musllinux* cp310-manylinux_i686 cp310-win32"
OVERRIDE_VERSION: ${{ github.event.inputs.override_version }}

steps:
Expand All @@ -120,8 +123,8 @@ jobs:
- name: Install cibuildwheel
run: |
# cibuildwheel does the heavy lifting for us. Originally tested on
# 1.8.0, but should be fine at least up to any major new release.
python -m pip install 'cibuildwheel<2.0'
# 2.3.0, but should be fine at least up to any minor new release.
python -m pip install 'cibuildwheel==2.3.*'
- name: Build wheels
shell: bash
Expand Down
47 changes: 47 additions & 0 deletions .github/workflows/build_documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Build HTML documentation

on:
[push, pull_request]

jobs:
build:
name: Build documentation
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- uses: actions/setup-python@v2
name: Install Python
with:
python-version: '3.8'

- name: Install documentation dependencies
run: |
python -mpip install -r doc/requirements.txt
- name: Install QuTiP from GitHub
run: |
# Build without build isolation so that we use the build
# dependencies already installed from doc/requirements.txt.
python -m pip install -e .[full] --no-build-isolation
# Install in editable mode so it doesn't matter if we import from
# inside the installation directory, otherwise we can get some errors
# because we're importing from the wrong location.
python -c 'import qutip; qutip.about()'
- name: Build documentation
working-directory: doc
run: |
make html SPHINXOPTS="-W --keep-going -T"
# Above flags are:
# -W : turn warnings into errors
# --keep-going : do not stop after the first error
# -T : display a full traceback if a Python exception occurs
- name: Upload built files
uses: actions/upload-artifact@v2
with:
name: qutip_html_docs
path: doc/_build/html/*
if-no-files-found: error
12 changes: 9 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,13 @@ jobs:
# Ignore ImportWarning because pyximport registered an importer
# PyxImporter that does not have a find_spec method and this raises
# a warning on Python 3.10
# Ignore DeprecationWarnings raised by cvxpy importing scipy.sparse.X
# under SciPy 1.8.0+.
- case-name: Python 3.10
os: ubuntu-latest
python-version: "3.10"
condaforge: 1
pytest-extra-options: "-W ignore::ImportWarning"
pytest-extra-options: "-W ignore::ImportWarning -W ignore::DeprecationWarning:cvxpy.interface.scipy_wrapper"

steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -108,7 +110,7 @@ jobs:
fi
python -m pip install -e .[$QUTIP_TARGET]
python -m pip install coverage==6.2
python -m pip install pytest-cov coveralls
python -m pip install pytest-cov coveralls pytest-timeout
- name: Package information
run: |
Expand Down Expand Up @@ -136,13 +138,17 @@ jobs:
# truly being executed.
export QUTIP_NUM_PROCESSES=2
fi
pytest --strict-config --strict-markers --durations=0 --durations-min=1.0 --verbosity=1 --cov=qutip --cov-report= --color=yes ${{ matrix.pytest-extra-options }} qutip/tests
pytest -Werror --strict-config --strict-markers --timeout=300 --durations=0 --durations-min=1.0 --verbosity=1 --cov=qutip --cov-report= --color=yes ${{ matrix.pytest-extra-options }} qutip/tests
# Above flags are:
# -Werror
# treat warnings as errors
# --strict-config
# error out if the configuration file is not parseable
# --strict-markers
# error out if a marker is used but not defined in the
# configuration file
# --timeout=300
# error any individual test that goes longer than the given time
# --durations=0 --durations-min=1.0
# at the end, show a list of all the tests that took longer than a
# second to run
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
.DS_Store
.f2py_f2cmap
.idea/
.vscode/

# Packages
*.egg
Expand Down Expand Up @@ -41,3 +42,4 @@ qutip/solver/ode/*.c
benchmark/benchmark_data.js
*-tasks.txt
*compiled_coeff*
result_images/
33 changes: 26 additions & 7 deletions .mailmap
Original file line number Diff line number Diff line change
@@ -1,8 +1,27 @@
Paul Nation <nonhermitian@gmail.com> Paul Nation <paul@Pauls-MacBook-Pro.local>
Paul Nation <nonhermitian@gmail.com> Paul Nation <paul@Pauls-Air.local>
Anubhav Vardhan <anubhavvardhan@gmail.com> Anubhav <anubhavvardhan@gmail.com>
Christopher Granade <cgranade@cgranade.com> Chris Granade <cgranade@gmail.com>
Markus Baden <markus.baden@gmail.com> Markus Baden <Markus.Baden@gmail.com>
kafischer <fischer.kevin.a@gmail.com> kevinf <fischer.kevin.a@gmail.com>
Alexander Pitchford <alex.pitchford@gmail.com> ajgpitch <alex.pitchford@gmail.com>
Markus Baden <markus.baden@gmail.com> <Markus.Baden@gmail.com>
Ivan Carvalho <ivan.carvalho@alumni.ubc.ca> <ivan.ivancps.cn@gmail.com>
Ben Criger <bcriger@gmail.com>
Simon Cross <hodgestar@gmail.com> <hodgestar+github@gmail.com>
Kevin Fischer <fischer.kevin.a@gmail.com>
Eric Giguère <eric.giguere@calculquebec.ca>
Canoming <canoming@163.com>
Canoming <canoming@163.com> <36161480+Canoming@users.noreply.github.com>
Christopher Granade <cgranade@cgranade.com>
Christopher Granade <cgranade@cgranade.com> <cgranade@gmail.com>
Arne Grimsmo <arne.grimsmo@gmail.com>
Stefan Krastanov <krastanov.stefan@gmail.com> <stefan@debian.krastanov>
Neill Lambert <nwlambert@gmail.com>
Boxi Li <etamin1201@gmail.com>
Jake Lishman <jake@binhbar.com> <jakelishman@gmail.com>
Paul Nation <nonhermitian@gmail.com> <paul@Pauls-Air.local>
Paul Nation <nonhermitian@gmail.com> <paul@Pauls-MacBook-Pro.local>
Alexander Pitchford <alex.pitchford@gmail.com>
Alexander Pitchford <alex.pitchford@gmail.com> Alexander James Pitchford <agp1@aber.ac.uk>
Nicolas Quesada <zeitus@gmail.com> <nicolas@xanadu.ai>
Tarun Raheja <trolldemort9@gmail.com>
Tarun Raheja <trolldemort9@gmail.com> <31796197+tehruhn@users.noreply.github.com>
Sidhant Saraogi <ssaraogi@uwaterloo.ca>
Sidhant Saraogi <ssaraogi@uwaterloo.ca> sid <ssaraogi@edu.uwaterloo.ca>
Anubhav Vardhan <anubhavvardhan@gmail.com>
Lucas Verney <phyks@phyks.me>
Florestan Ziem <flo.zie@gmx.de>
File renamed without changes.
4 changes: 2 additions & 2 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ Instances of abusive, harassing, or otherwise unacceptable behavior may be repor

This Code of Conduct is adapted from the Contributor Covenant , version 1.2.0, available at https://www.contributor-covenant.org/version/1/2/0/code-of-conduct.html

[homepage]: http://contributor-covenant.org
[version]: http://contributor-covenant.org/version/1/2/
[homepage]: https://contributor-covenant.org
[version]: https://contributor-covenant.org/version/1/2/

0 comments on commit 99ce2d5

Please sign in to comment.