Skip to content
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

Ditch setup.cfg and use only pyproject.toml #438

Merged
merged 6 commits into from
Oct 25, 2023
Merged

Conversation

santisoler
Copy link
Member

@santisoler santisoler commented Sep 22, 2023

Remove setup.cfg. Move all project metadata and build instructions to pyproject.toml. Move flake8 configuration to .flake8. Use harmonica/_version.py to store the generated version by setuptools-scm, and append the leading v to the version number directly in harmonica/__init__.py. Pin newer version of setuptools and setuptools_scm. Make use of dependente==0.3.0 that adds support to packages that use pyproject.toml only.

Remove `setup.cfg`. Move all project metadata and build instructions
to `pyproject.toml`. Move flake8 configuration to .flake8. Use
`harmonica/_version.py` to store the generated version by
`setuptools-scm`, and append the leading `v` to the version number
directly in `harmonica/__init__.py`.
@santisoler santisoler mentioned this pull request Oct 10, 2023
@santisoler santisoler added this to the v0.7.0 milestone Oct 10, 2023
Copy link
Member

@leouieda leouieda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Would be nice to get rid of .flake8 at some point but 🤷🏾

The reason we had a _version_generated and a _version file was because of Pooch. When data were hosted here, we needed to import the __version__ string and it caused a circular import if we fetched it from the base __init__.py. Now that we use Ensaio, we don't need it anymore.

@santisoler santisoler merged commit c677dfa into main Oct 25, 2023
20 checks passed
@santisoler santisoler deleted the pyproject-only branch October 25, 2023 20:46
santisoler added a commit that referenced this pull request Mar 22, 2024
Extend the list of classifiers, mostly restore the ones that were lost
during the move from `setup.cfg` to `pyproject.toml`.

Restoring classifiers that were lost in #438.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants