Skip to content
This repository has been archived by the owner on Oct 24, 2024. It is now read-only.

move to a pyproject.toml-based build configuration #219

Merged
merged 7 commits into from
Feb 10, 2023

Conversation

keewis
Copy link
Contributor

@keewis keewis commented Feb 10, 2023

I don't know what the reason for the failure is, but moving the project metadata to pyproject.toml side-steps the issue entirely (plus, we would have to do the migration some time soon anyways).

In the process I also upgraded the minimum requirement for setuptools_scm to >=7.0, which gets rid of the setuptools_scm_git_archive plugin (because that's now included in the main package).

I've read somewhere that having setup.* together with pyproject.toml is not great because pip gets confused, but I don't know what issue exactly that was referring to. In any case, we can move isort and mypy configuration to pyproject.toml, as well, and flake8 can be moved to .flake8, which allows us to entirely remove setup.cfg.

Since xarray recently moved to ruff we might want to follow here, but I'd say let's do that in a separate PR.

@keewis keewis changed the title move to a pyproject.toml-based configuration move to a pyproject.toml-based build configuration Feb 10, 2023
@TomNicholas
Copy link
Member

Amazing thank you @keewis ! Merge this whenever you feel like it's ready!

@keewis keewis merged commit 06ed0f4 into xarray-contrib:main Feb 10, 2023
@keewis keewis deleted the pyproject.toml branch February 10, 2023 14:01
flamingbear pushed a commit to flamingbear/rewritten-datatree that referenced this pull request Jan 19, 2024
…atatree#219

* move to a `pyproject.toml`-based configuration

* move the `flake8` configuration to a separate file

* move `isort` and `mypy` configuration to `pyproject.toml`

* update the `isort` version to avoid the install error

* install the currently checked-out version of datatree [skip-ci]

* install xarray from conda-forge

* fix the install path
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Broken CI due to setuptools error
2 participants