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

Start using hatch for Python project management #241

Merged
merged 5 commits into from
May 2, 2024
Merged

Start using hatch for Python project management #241

merged 5 commits into from
May 2, 2024

Commits on May 1, 2024

  1. packaging: sort project keywords

    This will be helpful for comparing the package build results in the
    subsequent changes, as some tools sort the PKG-INFO no matter what.
    jnikula committed May 1, 2024
    Configuration menu
    Copy the full SHA
    a41b43a View commit details
    Browse the repository at this point in the history
  2. packaging: switch to SPDX-compatible license identifier

    Switch to a more standards compliant license short identifier:
    https://spdx.org/licenses/BSD-2-Clause.
    jnikula committed May 1, 2024
    Configuration menu
    Copy the full SHA
    93e44ca View commit details
    Browse the repository at this point in the history
  3. packaging: switch to pyproject.toml

    Prefer pyproject.toml over setup.cfg for packaging. The changes in the
    build results are minimal, only PKG-INFO changes:
    
    -Home-page: https://github.com/jnikula/hawkmoth
    -Author: Jani Nikula
    -Author-email: [email protected]
    +Author-email: Jani Nikula <[email protected]>
     License: BSD-2-Clause
    +Project-URL: Homepage, https://github.com/jnikula/hawkmoth
    
    Flake8 configuration remains in setup.cfg.
    jnikula committed May 1, 2024
    Configuration menu
    Copy the full SHA
    fb4c946 View commit details
    Browse the repository at this point in the history
  4. packaging: switch to hatch

    Start using hatch [1] for the project management.
    
    Due to hatch defaults, we'll need to add explicit include/exclude rules
    for some files, e.g. include setup.py and exclude Makefiles.
    
    Due to setuptools defaults [2], we've included some files from test/ as
    well as the generated hawkmoth.egg-info in the source tarball. Drop
    them.
    
    [1] https://hatch.pypa.io/latest/
    [2] https://setuptools.pypa.io/en/latest/userguide/miscellaneous.html
    jnikula committed May 1, 2024
    Configuration menu
    Copy the full SHA
    78bf0c6 View commit details
    Browse the repository at this point in the history
  5. build: update to reflect setuptools to hatch change

    Use hatch build and publish, remove old build-tools target, remove old
    .gitignore and distclean files.
    
    The build and upload targets could perhaps be removed in the future in
    favour of using hatch directly, but keep them for now.
    jnikula committed May 1, 2024
    Configuration menu
    Copy the full SHA
    313f939 View commit details
    Browse the repository at this point in the history