Skip to content
Snippets Groups Projects
Commit 0b023b11 authored by Loic Huder's avatar Loic Huder
Browse files

Migrate to pyproject.toml

parent e70ff519
No related branches found
No related tags found
1 merge request!112Migrate to pyproject.toml
Pipeline #218279 passed
[flake8]
extend-ignore = E203,E501,E701
max-line-length = 88
exclude = [".eggs"]
......@@ -3,6 +3,7 @@
!.gitignore
!.gitlab-ci.yml
!.readthedocs.yaml
!.flake8
# Byte / compiled / optimized
*.py[cod]
......
......@@ -2,14 +2,11 @@ include:
- project: dau/ci/pyci
file: .gitlab-ci-template.yml
test-3.7:
extends: .test-3.7
test-3.8:
extends: .test-3.8
test-3.9:
extends: .test-3.9
test-3.11:
extends: .test-3.11
test-3.12:
extends: .test-3.12
test-3.9-scripts:
extends: .test-3.9
......@@ -23,12 +20,12 @@ test-3.9-scripts:
build_sdist:
extends: .build_sdist
test_sdist-3.10:
extends: .test_sdist-3.10
test_sdist-3.8-win:
extends: .test_sdist-3.8-win
test_sdist-3.12:
extends: .test_sdist-3.12
build_doc:
extends: .build_doc
......@@ -37,3 +34,9 @@ pages:
assets:
extends: .assets
testpypi:
extends: .testpypi
pypi:
extends: .pypi
......@@ -2,6 +2,8 @@
## Unreleased
- Drop Python 3.6 and 3.7
## 1.0.0
## 0.4.0
......
......@@ -4,7 +4,9 @@
# -- Project information -----------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
from ewoksppf import __version__ as release
import importlib.metadata
release = importlib.metadata.version("ewoksppf")
project = "ewoksppf"
version = ".".join(release.split(".")[:2])
......
[build-system]
requires = [
"setuptools>=46.4"
requires = ["setuptools>=46.4"]
build-backend = "setuptools.build_meta"
[project]
name = "ewoksppf"
version = "1.0.0"
authors = [{ name = "ESRF", email = "dau-pydev@esrf.fr" }]
description = "Pypushflow binding for Ewoks"
readme = { file = "README.md", content-type = "text/markdown" }
license = { file = "LICENSE.md" }
classifiers = [
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
]
build-backend = "setuptools.build_meta"
\ No newline at end of file
requires-python = ">=3.8"
dependencies = ["ewokscore >=1.0.0", "pypushflow >=1.0.0"]
[project.urls]
Homepage = "https://gitlab.esrf.fr/workflow/ewoks/ewoksppf/"
Documentation = "https://ewoksppf.readthedocs.io/"
Repository = "https://gitlab.esrf.fr/workflow/ewoks/ewoksppf/"
Issues = "https://gitlab.esrf.fr/workflow/ewoks/ewoksppf/issues"
Changelog = "https://gitlab.esrf.fr/workflow/ewoks/ewoksppf/-/blob/main/CHANGELOG.md"
[project.optional-dependencies]
test = ["pytest >=7"]
dev = ["ewoksppf[test]", "black >=22", "flake8 >=4"]
doc = [
"ewoksppf[test]",
"sphinx >=4.5",
"sphinxcontrib-mermaid >=0.7",
"sphinx-autodoc-typehints >=1.16",
"pydata-sphinx-theme",
]
[tool.setuptools]
package-dir = { "" = "src" }
[tool.setuptools.packages.find]
where = ["src"]
[tool.coverage.run]
omit = ['*/tests/*']
[metadata]
name = ewoksppf
version = attr: ewoksppf.__version__
author = ESRF
author_email = wout.de_nolf@esrf.fr
description = Pypushflow binding for Ewoks
long_description = file: README.md
long_description_content_type = text/markdown
license = MIT
url = https://gitlab.esrf.fr/workflow/ewoks/ewoksppf/
project_urls =
Source = https://gitlab.esrf.fr/workflow/ewoks/ewoksppf/
Documentation = https://ewoksppf.readthedocs.io/
Tracker = https://gitlab.esrf.fr/workflow/ewoks/ewoksppf/issues/
classifiers =
Intended Audience :: Science/Research
License :: OSI Approved :: MIT License
Programming Language :: Python :: 3
[options]
package_dir=
=src
packages=find:
python_requires = >=3.6
install_requires =
ewokscore >=1.0.0
pypushflow >=1.0.0
[options.packages.find]
where=src
[options.extras_require]
test =
pytest >=7
dev =
%(test)s
black >=22
flake8 >=4
doc =
%(test)s
sphinx >=4.5
sphinxcontrib-mermaid >=0.7
sphinx-autodoc-typehints >=1.16
pydata-sphinx-theme < 0.15
# E501 (line too long) ignored for now
# E203 and W503 incompatible with black formatting (https://black.readthedocs.io/en/stable/compatible_configs.html#flake8)
[flake8]
ignore = E501, E203, W503
max-line-length = 88
exclude =
.eggs
[coverage:run]
omit =
setup.py
*/tests/*
import setuptools
if __name__ == "__main__":
setuptools.setup()
from .bindings import execute_graph # noqa: F401
__version__ = "1.0.0"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment