Skip to content

Commit

Permalink
Move requirements to pyproject.toml (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
haiiliin authored Sep 2, 2024
1 parent a680bb6 commit bc088cd
Show file tree
Hide file tree
Showing 9 changed files with 31 additions and 38 deletions.
9 changes: 0 additions & 9 deletions docs/requirements.txt

This file was deleted.

40 changes: 28 additions & 12 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ authors = [
]
description = "Ribbon Bar for PyQt or PySide applications"
readme = "README.md"
dynamic = ["version", "dependencies", "optional-dependencies"]
dynamic = ["version"]
requires-python = ">=3.8"
classifiers = [
"Programming Language :: Python",
Expand All @@ -26,28 +26,44 @@ classifiers = [
"Operating System :: OS Independent",
"Development Status :: 4 - Beta",
]
dependencies = ["numpy", "qtpy"]

[project.urls]
"GitHub" = "https://github.com/haiiliin/pyqtribbon"
"Documentation" = "https://pyqribbon.readthedocs.io/en/stable/"

[project.optional-dependencies]
dev = [
"coveralls",
"coverage",
"flake8",
"pytest",
"pytest-cov",
"pytest-qt",
"tox",
]
docs = [
"PyQt5",
"sphinx",
"sphinxcontrib-apidoc",
"sphinx-codeautolink",
"sphinx-copybutton",
"sphinx-hoverxref",
"sphinx-rtd-theme",
"sphinx-toolbox",
"sphinx-qt-documentation",
]
pyqt5 = ["PyQt5"]
pyqt6 = ["PyQt6"]
pyside2 = ["PySide2"]
pyside6 = ["PySide6"]

[tool.setuptools]
packages = ['pyqtribbon']

[tool.setuptools.package-data]
pyqtribbon = ["icons/*", "styles/*"]

[tool.setuptools.dynamic.dependencies]
file = ["requirements/deps.txt"]

[tool.setuptools.dynamic.optional-dependencies]
dev.file = ["requirements/dev.txt"]
docs.file = ["docs/requirements.txt"]
PyQt5.file = ["requirements/PyQt5.txt"]
PyQt6.file = ["requirements/PyQt6.txt"]
PySide2.file = ["requirements/PySide2.txt"]
PySide6.file = ["requirements/PySide6.txt"]

[tool.setuptools_scm]
root = "."
version_scheme = "post-release"
Expand Down
1 change: 0 additions & 1 deletion requirements/PyQt5.txt

This file was deleted.

1 change: 0 additions & 1 deletion requirements/PyQt6.txt

This file was deleted.

2 changes: 0 additions & 2 deletions requirements/PySide2.txt

This file was deleted.

1 change: 0 additions & 1 deletion requirements/PySide6.txt

This file was deleted.

2 changes: 0 additions & 2 deletions requirements/deps.txt

This file was deleted.

7 changes: 0 additions & 7 deletions requirements/dev.txt

This file was deleted.

6 changes: 3 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ envlist = py{38,39,310,311,312}-{PyQt5,PyQt6,PySide6}
[testenv]
extras =
dev
PyQt5: PyQt5
PyQt6: PyQt6
PySide6: PySide6
PyQt5: pyqt5
PyQt6: pyqt6
PySide6: pyside6
commands =
pytest
setenv=
Expand Down

0 comments on commit bc088cd

Please sign in to comment.