|
1 | 1 | [build-system] |
2 | | -requires = ["setuptools >= 40.6.0", "wheel"] |
| 2 | +requires = ["setuptools>=61.2", "setuptools-scm"] |
3 | 3 | build-backend = "setuptools.build_meta" |
4 | 4 |
|
| 5 | +[project] |
| 6 | +name = "workflows" |
| 7 | +version = "2.27" |
| 8 | +description = "Data processing in distributed environments" |
| 9 | +readme = "README.rst" |
| 10 | +authors = [ |
| 11 | + { name = "Diamond Light Source", email = "[email protected]" }, |
| 12 | +] |
| 13 | +classifiers = [ |
| 14 | + "Development Status :: 5 - Production/Stable", |
| 15 | + "Intended Audience :: Developers", |
| 16 | + "License :: OSI Approved :: BSD License", |
| 17 | + "Programming Language :: Python :: 3", |
| 18 | + "Programming Language :: Python :: 3.8", |
| 19 | + "Programming Language :: Python :: 3.9", |
| 20 | + "Programming Language :: Python :: 3.10", |
| 21 | + "Programming Language :: Python :: 3.11", |
| 22 | + "Operating System :: OS Independent", |
| 23 | + "Topic :: Software Development :: Libraries :: Python Modules", |
| 24 | +] |
| 25 | +license = { text = "BSD-3-Clause" } |
| 26 | +requires-python = ">=3.8" |
| 27 | +dependencies = ["bidict", "pika", "setuptools", "stomp-py>=7"] |
| 28 | + |
| 29 | +[project.urls] |
| 30 | +Download = "https://github.com/DiamondLightSource/python-workflows/releases" |
| 31 | +Documentation = "https://github.com/DiamondLightSource/python-workflows" |
| 32 | +GitHub = "https://github.com/DiamondLightSource/python-workflows" |
| 33 | +Bug-Tracker = "https://github.com/DiamondLightSource/python-workflows/issues" |
| 34 | + |
| 35 | +[project.optional-dependencies] |
| 36 | +prometheus = ["prometheus-client"] |
| 37 | + |
| 38 | +[project.entry-points."libtbx.dispatcher.script"] |
| 39 | +"workflows.validate_recipe" = "workflows.validate_recipe" |
| 40 | + |
| 41 | +[project.entry-points."libtbx.precommit"] |
| 42 | +workflows = "workflows" |
| 43 | + |
| 44 | +[project.entry-points."workflows.services"] |
| 45 | +SampleConsumer = "workflows.services.sample_consumer:SampleConsumer" |
| 46 | +SampleProducer = "workflows.services.sample_producer:SampleProducer" |
| 47 | +SampleTxn = "workflows.services.sample_transaction:SampleTxn" |
| 48 | +SampleTxnProducer = "workflows.services.sample_transaction:SampleTxnProducer" |
| 49 | + |
| 50 | +[project.entry-points."workflows.transport"] |
| 51 | +PikaTransport = "workflows.transport.pika_transport:PikaTransport" |
| 52 | +StompTransport = "workflows.transport.stomp_transport:StompTransport" |
| 53 | +OfflineTransport = "workflows.transport.offline_transport:OfflineTransport" |
| 54 | + |
| 55 | +[project.entry-points."zocalo.configuration.plugins"] |
| 56 | +pika = "workflows.util.zocalo.configuration:Pika" |
| 57 | +stomp = "workflows.util.zocalo.configuration:Stomp" |
| 58 | +transport = "workflows.util.zocalo.configuration:DefaultTransport" |
| 59 | + |
| 60 | +[project.scripts] |
| 61 | +"workflows.validate_recipe" = "workflows.recipe.validate:main" |
| 62 | + |
5 | 63 | [tool.isort] |
6 | 64 | profile = "black" |
7 | 65 |
|
8 | 66 | [tool.pytest.ini_options] |
9 | 67 | addopts = "-ra" |
10 | 68 | required_plugins = "pytest-timeout" |
| 69 | + |
| 70 | +[tool.bumpversion] |
| 71 | +current_version = "2.27" |
| 72 | +parse = '(?P<major>\d+)\.(?P<minor>\d+)' |
| 73 | +serialize = ["{major}.{minor}"] |
| 74 | +commit = true |
| 75 | +tag = true |
| 76 | + |
| 77 | +[[tool.bumpversion.files]] |
| 78 | +filename = "src/workflows/__init__.py" |
| 79 | + |
| 80 | +[tool.ruff.lint] |
| 81 | +select = ["E", "F", "W", "C4", "I"] |
| 82 | +unfixable = ["F841"] |
| 83 | +# E501 line too long (handled by formatter) |
| 84 | +ignore = ["E501"] |
| 85 | + |
| 86 | +[tool.ruff.lint.isort] |
| 87 | +known-first-party = ["dxtbx_*", "dxtbx"] |
| 88 | +required-imports = ["from __future__ import annotations"] |
| 89 | + |
| 90 | +[tool.mypy] |
| 91 | +mypy_path = "src/" |
0 commit comments