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

ENH: Modernize package setup #5

Merged
merged 1 commit into from Feb 13, 2022

Conversation

jhlegarreta
Copy link
Collaborator

Modernize package setup:

  • Adopt PEP518 to specify minimum build system requirements for the
    package.
    Documentation:
    https://www.python.org/dev/peps/pep-0518/

  • Transition to setuptools_scm versioning system:

    • Host package static metadata in setup.cfg.
    • Host package dependiencies in setup.cfg.

Allows to reduce the number of files containing package configuration
data:

  • Requirements are directly hosted in setup.cfg and thus
    requirements*.txt files are no longer necessary.
  • Project-specific info.py and setup_helpers.py scripts are no
    longer necessary.
  • The script setup.py is no longer necessary: pyproject.toml and
    setup.cfg contain the necessary information for the package set up.

Change the package testing worfklow accordingly.

Add the automatically generated version file to .gitignore.

Modernize package setup:
- Adopt PEP518 to specify minimum build system requirements for the
package.
Documentation:
https://www.python.org/dev/peps/pep-0518/

- Transition to `setuptools_scm` versioning system:
  - Host package static metadata in `setup.cfg`.
  - Host package dependiencies in `setup.cfg`.

Allows to reduce the number of files containing package configuration
data:
- Requirements are directly hosted in `setup.cfg` and thus
`requirements*.txt` files are no longer necessary.
- Project-specific `info.py` and `setup_helpers.py` scripts are no
longer necessary.
- The script `setup.py` is no longer necessary: `pyproject.toml` and
`setup.cfg` contain the necessary information for the package set up.

Change the package testing worfklow accordingly.

Add the automatically generated version file to `.gitignore`.
@jhlegarreta jhlegarreta merged commit 0783df2 into brainhackorg:main Feb 13, 2022
@jhlegarreta jhlegarreta deleted the ModernizePackageSetup branch February 13, 2022 20:10
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

1 participant