Skip to content

Commit

Permalink
Migrate to pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
LKajan committed Nov 28, 2023
1 parent 632c9a7 commit f23d3fc
Show file tree
Hide file tree
Showing 4 changed files with 86 additions and 113 deletions.
14 changes: 14 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[flake8]
max_line_length = 88
per-file-ignores =
src/pytest_qgis/pytest_qgis.py:QGS105
src/pytest_qgis/qgis_interface.py:N802,N803
tests/*:ANN001,ANN201
extend-ignore =
# whitespace before ':'
E203,
# Missing type annotation for self in method
ANN101,
# fixture '{name}' does not return anything, add leading underscore
PT004
ban-relative-imports = true
72 changes: 72 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
[build-system]
requires = ["setuptools", "setuptools-scm"]
build-backend = "setuptools.build_meta"

[project]
name = "pytest-qgis"
authors = [{ name = "Gispo Ltd.", email = "[email protected]" }]
maintainers = [{ name = "Gispo Ltd.", email = "[email protected]" }]

description = "A pytest plugin for testing QGIS python plugins"
readme = "README.md"

dynamic = ["version"]
keywords = ["pytest", "qgis", "QGIS", "PyQGIS"]

requires-python = ">=3.7"
license = { file = "LICENSE" }
classifiers = [
"Development Status :: 5 - Production/Stable",
"Framework :: Pytest",
"Intended Audience :: Developers",
"Topic :: Software Development :: Testing",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Operating System :: OS Independent",
"License :: OSI Approved :: GNU General Public License v2 (GPLv2)",
]
dependencies = ["pytest >= 6.0"]

[project.urls]
homepage = "https://github.com/GispoCoding/pytest-qgis"
repository = "https://github.com/GispoCoding/pytest-qgis"
changelog = "https://github.com/GispoCoding/pytest-qgis/CHANGELOG.md"

[project.entry-points.pytest11]
pytest_qgis = "pytest_qgis"


[tool]

[tool.setuptools.packages.find]
where = ["src"]

[tool.setuptools.dynamic]
version = { attr = "pytest_qgis._version.__version__" }

[tool.setuptools.package-data]
pytest_qgis = ["py.typed"]


[tool.pytest.ini_options]
doctest_encoding = "utf-8"


[tool.isort]
profile = "black"
multi_line_output = 3


[tool.mypy]
disable_error_code = "misc"
ignore_missing_imports = true
follow_imports = "silent"
show_column_numbers = true
87 changes: 0 additions & 87 deletions setup.cfg

This file was deleted.

26 changes: 0 additions & 26 deletions setup.py

This file was deleted.

0 comments on commit f23d3fc

Please sign in to comment.