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

Merged
merged 10 commits into from
Dec 21, 2024
Merged
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
@@ -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
@@ -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:
4 changes: 4 additions & 0 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -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
@@ -4,7 +4,7 @@ channels:
- conda-forge

dependencies:
- python >= 3.9
- python >= 3.9, < 3.13
- qutip
- pandoc
- pip
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.

Loading