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

move configuration into pyproject.toml #21

Merged
merged 7 commits into from
Apr 20, 2023

Conversation

zacharyburnett
Copy link
Collaborator

@zacharyburnett zacharyburnett commented Oct 25, 2022

setuptools now supports the [project] table, which is defined by PEP621.

Additionally, setuptools now supports its own entry in pyproject.toml called [tool.setuptools] (pypa/setuptools#1688, https://setuptools.pypa.io/en/latest/userguide/pyproject_config.html#setuptools-specific-configuration); however, it comes with the following disclaimer:

Support for declaring configurations not standardized by PEP 621 (i.e. the [tool.setuptools] table), is still in beta stage and might change in future releases.

Reading toml is supported natively in Python 3.11 with tomllib

Given this, we can attempt to consolidate the build configuration into a single pyproject.toml file that can possibly be read by other build systems in the future.

@zacharyburnett zacharyburnett self-assigned this Oct 25, 2022
@zacharyburnett zacharyburnett force-pushed the pep621 branch 3 times, most recently from 9f1eef3 to d8e6516 Compare October 25, 2022 18:13
@codecov
Copy link

codecov bot commented Oct 25, 2022

Codecov Report

Patch and project coverage have no change.

Comparison is base (8d04c8b) 50.00% compared to head (bcbff18) 50.00%.

❗ Current head bcbff18 differs from pull request most recent head 170cb8b. Consider uploading reports for the commit 170cb8b to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##           master      #21   +/-   ##
=======================================
  Coverage   50.00%   50.00%           
=======================================
  Files           2        2           
  Lines          12       12           
=======================================
  Hits            6        6           
  Misses          6        6           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@zacharyburnett zacharyburnett requested a review from a team as a code owner April 19, 2023 15:35

import sys, os
if sys.version_info < (3, 11):
Copy link
Member

Choose a reason for hiding this comment

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

RTD build fails here because of the missing import for sys

@mcara
Copy link
Member

mcara commented Apr 20, 2023

No other tests for this package, ...

@mcara mcara merged commit 9c6bc67 into spacetelescope:master Apr 20, 2023
@zacharyburnett zacharyburnett deleted the pep621 branch April 20, 2023 18:24
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.

2 participants