Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pep 518/612 #98

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -21,3 +21,7 @@ python:
sphinx:
builder: html
configuration: doc/source/conf.py

formats:
- pdf
- epub
1 change: 0 additions & 1 deletion environment.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: filter_functions

channels:
- defaults
- conda-forge

dependencies:
Expand Down
3 changes: 0 additions & 3 deletions pycodestyle.cfg

This file was deleted.

107 changes: 107 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
[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.8"
license = {file = "LICENSE"}
dynamic = ["version"]
authors = [
{name = "Tobias Hangleiter", email = "[email protected]"},
{name = "Quantum Technology Group, RWTH Aachen University"},
]
classifiers = [
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"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",
]
fancy_progressbar = [
"ipynbname",
"jupyter"
]
doc = [
"jupyter",
"nbsphinx",
"numpydoc",
"sphinx",
"sphinx_rtd_theme",
"ipympl",
"qutip-qip",
"qutip-qtrl"
]
tests = [
"pytest >= 4.6",
"pytest-cov",
"codecov"
]
all = [
"filter_functions[plotting]",
"filter_functions[bloch_sphere_visualization]",
"filter_functions[fancy_progressbar]",
"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.

47 changes: 0 additions & 47 deletions setup.py

This file was deleted.