Skip to content

Commit

Permalink
Merge branch 'master' into feature/small_improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
thangleiter committed Feb 4, 2025
2 parents c6744a8 + 5a9219d commit 06e672a
Show file tree
Hide file tree
Showing 9 changed files with 112 additions and 71 deletions.
7 changes: 0 additions & 7 deletions .coveragerc

This file was deleted.

8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ jobs:
- name: Install
run: |
python -m pip install --upgrade pip
pip install .[${{ matrix.install_extras }}]
python -m pip install hatch .[${{ matrix.install_extras }}]
- name: Test with pytest
run: |
pytest
python -m hatch run tests:run
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
Expand Down Expand Up @@ -60,11 +60,11 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
python -m pip install hatch
- name: Build package
run: |
python setup.py sdist bdist_wheel
python -m hatch build
- name: Publish package
env:
Expand Down
4 changes: 4 additions & 0 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,7 @@ python:
sphinx:
builder: html
configuration: doc/source/conf.py

formats:
- pdf
- epub
2 changes: 1 addition & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ channels:
- conda-forge

dependencies:
- python >= 3.9
- python >= 3.9, < 3.13
- qutip
- pandoc
- pip
Expand Down
3 changes: 0 additions & 3 deletions pycodestyle.cfg

This file was deleted.

103 changes: 103 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[project]
name = "filter_functions"
description = "Package for efficient calculation of generalized filter functions"
readme = "README.md"
requires_python = ">= 3.9"
license = {file = "LICENSE"}
dynamic = ["version"]
authors = [
{name = "Tobias Hangleiter", email = "tobias.hangleiter@rwth-aachen.de"},
{name = "Quantum Technology Group, RWTH Aachen University"},
]
classifiers = [
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Operating System :: OS Independent",
"Topic :: Scientific/Engineering :: Physics",
]
keywords = ["physics", "numerics", "quantum information", "quantum computing", "noise"]
dependencies = [
"numpy",
"scipy",
"opt_einsum",
"sparse",
"tqdm",
]

[project.optional-dependencies]
plotting = ["matplotlib"]
bloch_sphere_visualization = [
"filter_functions[plotting]",
"qutip",
]
doc = [
"jupyter",
"nbsphinx",
"numpydoc",
"sphinx",
"sphinx_rtd_theme",
"sphinxcontrib-apidoc",
"ipympl",
"qutip-qip",
"qutip-qtrl",
"numpy<2"
]
tests = [
"pytest >= 4.6",
"pytest-cov",
"codecov"
]
all = [
"filter_functions[plotting]",
"filter_functions[bloch_sphere_visualization]",
"filter_functions[doc]",
"filter_functions[tests]",
]

[project.urls]
Source = "https://github.com/qutech/filter_functions"
Documentation = "https://filter-functions.readthedocs.io/en/latest/"
Homepage = "https://www.quantuminfo.physik.rwth-aachen.de/cms/Quantuminfo/Forschung/Quantum-Technology-Group/~zcsx/code/lidx/1/"

[tool.hatch.version]
path = "filter_functions/__init__.py"

[tool.hatch.envs.tests]
features = ["tests"]
[tool.hatch.envs.tests.scripts]
run = ["python -m pytest"]

[tool.hatch.envs.doc]
features = [
"doc",
]
[tool.hatch.envs.doc.scripts]
build = [
"sphinx-build -b html doc/source public"
]

[tool.pytest.ini_options]
minversion = "4.6"
addopts = "-ra --verbose --cov=filter_functions --cov-report=xml"
testpaths = [
"tests"
]

[tool.coverage.run]
branch = true
omit = ["tests/*", "*/__init__.py"]

[tool.pylint.'MESSAGES CONTROL']
disable = "E123,E226,W504"

[tool.pylint.FORMAT]
# Maximum number of characters on a single line.
max-line-length = 99
7 changes: 0 additions & 7 deletions pytest.ini

This file was deleted.

3 changes: 0 additions & 3 deletions setup.cfg

This file was deleted.

46 changes: 0 additions & 46 deletions setup.py

This file was deleted.

0 comments on commit 06e672a

Please sign in to comment.