-
Notifications
You must be signed in to change notification settings - Fork 54
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
setup.cfg
-> pyproject.toml
#2860
Open
MetRonnie
wants to merge
1
commit into
metomi:master
Choose a base branch
from
MetRonnie:pyproject-toml
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+146
−158
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,145 @@ | ||
# Copyright (C) British Crown (Met Office) & Contributors. | ||
# | ||
# This file is part of Rose, a framework for meteorological suites. | ||
# | ||
# Rose is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
# the Free Software Foundation, either version 3 of the License, or | ||
# (at your option) any later version. | ||
# | ||
# Rose is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with Rose. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
[build-system] | ||
requires = ["setuptools"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "metomi-rose" | ||
description = "Rose, a framework for meteorological suites." | ||
authors = [ | ||
{ name = "British Crown (Met Office) & Contributors", email = "metomi@metoffice.gov.uk" } | ||
] | ||
readme = "README.md" | ||
license = { text = "GPL" } | ||
keywords = ["hpc", "weather-modelling", "weather-model", "meteorological-suites", "meteorological-modelling", "meteorological-models"] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Only semi relevent, but we should consider adding "workflows" and "workflow automation" to this list. |
||
classifiers = [ | ||
"Environment :: Console", | ||
"Environment :: Web Environment", | ||
"Intended Audience :: Developers", | ||
"Intended Audience :: System Administrators", | ||
"Intended Audience :: Science/Research", | ||
"Operating System :: POSIX :: Linux", | ||
"Programming Language :: Python :: 3.7", | ||
"Topic :: Scientific/Engineering :: Atmospheric Science" | ||
] | ||
requires-python = ">=3.7" | ||
dynamic = ["version"] | ||
dependencies = [ | ||
"aiofiles", | ||
"jinja2>=2.10.1", | ||
"keyring==23.*", | ||
"ldap3", | ||
"metomi-isodatetime==1!3.*", | ||
"psutil>=5.6.0", | ||
"requests", | ||
"sqlalchemy==1.*", | ||
"importlib_metadata>=5.0; python_version < '3.12'", | ||
"importlib_resources>=2.0; python_version < '3.9'" | ||
] | ||
|
||
[project.urls] | ||
Homepage = "https://metomi.github.io/rose/doc/html/index.html" | ||
Repository = "https://github.com/metomi/rose" | ||
Changelog = "https://github.com/metomi/rose/blob/master/CHANGES.md" | ||
|
||
[project.optional-dependencies] | ||
docs = [ | ||
"cylc-sphinx-extensions[all]>=1.2.0", | ||
"hieroglyph>=2.1.0", | ||
"sphinx", | ||
"sphinx_rtd_theme", | ||
"sphinxcontrib-httpdomain", | ||
"sphinxcontrib-svg2pdfconverter" | ||
] | ||
graph = [ | ||
"pygraphviz>1.0,!=1.8" | ||
] | ||
tests = [ | ||
"aiosmtpd", | ||
"pytest" | ||
# Note: some tests also depend on cylc-rose which has to be the | ||
# development version installed manually (because the latest production | ||
# version is pinned to the previous rose release) | ||
] | ||
lint = [ | ||
"flake8>=4.0.0", | ||
"flake8-type-checking; python_version > '3.7'", | ||
"mypy>=0.800", | ||
"types-aiofiles" | ||
] | ||
rosa = [] | ||
# disco = [ | ||
# TODO: rosie disco has been disabled due to the removal of WSGI support at | ||
# Tornado 6. | ||
# tornado | ||
# ] | ||
all = [ | ||
"metomi-rose[lint]", | ||
"metomi-rose[docs]", | ||
"metomi-rose[graph]", | ||
"metomi-rose[tests]", | ||
"metomi-rose[rosa]" | ||
] | ||
|
||
[project.scripts] | ||
rose = "metomi.rose.rose:rose" | ||
rosie = "metomi.rose.rose:rosie" | ||
rosa = "metomi.rose.rose:rosa" | ||
|
||
[project.entry-points."rose.commands"] | ||
"app-run" = "metomi.rose.app_run:main" | ||
"app-upgrade" = "metomi.rose.upgrade:main" | ||
"check-software" = "metomi.rose.check_software:main" | ||
"config" = "metomi.rose.config_cli:main" | ||
"config-diff" = "metomi.rose.config_diff:main" | ||
"config-dump" = "metomi.rose.config_dump:main" | ||
"date" = "metomi.rose.date_cli:main" | ||
"env-cat" = "metomi.rose.env_cat:main" | ||
"host-select" = "metomi.rose.host_select:main" | ||
"host-select-client" = "metomi.rose.host_select_client:main" | ||
"macro" = "metomi.rose.macro:main" | ||
"metadata-check" = "metomi.rose.metadata_check:main" | ||
"metadata-gen" = "metomi.rose.metadata_gen:main" | ||
"metadata-graph" = "metomi.rose.metadata_graph:main [graph]" | ||
"namelist-dump" = "metomi.rose.namelist_dump:main" | ||
"resource" = "metomi.rose.resource:main" | ||
"task-env" = "metomi.rose.task_env:main" | ||
"task-run" = "metomi.rose.task_run:main" | ||
|
||
[project.entry-points."rosie.commands"] | ||
"checkout" = "metomi.rosie.vc:checkout" | ||
"create" = "metomi.rosie.vc:create" | ||
"delete" = "metomi.rosie.vc:delete" | ||
# "disco" = "metomi.rosie.ws:main [disco]" | ||
"go" = "metomi.rosie.browser:main" | ||
"graph" = "metomi.rosie.graph:main [graph]" | ||
"hello" = "metomi.rosie.ws_client_cli:hello" | ||
"id" = "metomi.rosie.suite_id:main" | ||
"lookup" = "metomi.rosie.ws_client_cli:lookup" | ||
"ls" = "metomi.rosie.ws_client_cli:list_local_suites" | ||
|
||
[tool.setuptools.packages.find] | ||
include = ["metomi*"] | ||
exclude = ["metomi.rose.tests*", "metomi.rosie.tests*"] | ||
|
||
[tool.setuptools] | ||
include-package-data = true | ||
|
||
[tool.setuptools.dynamic] | ||
version = { attr = "metomi.rose.__version__" } |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought we needed to specify the
setuptools
version inpyproject.toml[build-system]
in order to fix the PEP 625 incompatibility, but it turns out it was just that we needed to use a newer Python version for the build (the minimum version of setuptools that is compatible with PEP 625 is not available on Python 3.9)Seeing as I'd done the legwork (with the help of Copilot), I've kept the
pyproject.toml
conversion.